Skip to content

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

regenerate docs after merge

Inian638d80bbd21f
diff --git a/spec/cli_v1_commands.yaml b/spec/cli_v1_commands.yaml
index a55059edbf6..ca9116bdf17 100644
--- a/spec/cli_v1_commands.yaml
+++ b/spec/cli_v1_commands.yaml
@@ -1,4 +1,4 @@
-clispec: "001"
+clispec: '001'
info:
id: cli
version: 1.23.0
@@ -20,19 +20,19 @@ flags:
- id: debug
name: --debug
description: output debug logs to stderr
- default_value: "false"
+ default_value: 'false'
- id: experimental
name: --experimental
description: enable experimental features
- default_value: "false"
+ default_value: 'false'
- id: help
name: -h, --help
description: help for supabase
- default_value: "false"
+ default_value: 'false'
- id: workdir
name: --workdir <string>
description: path to a Supabase project directory
- default_value: ""
+ default_value: ''
commands:
- id: supabase-vanity-subdomains
title: supabase vanity-subdomains
@@ -53,7 +53,7 @@ commands:
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
- default_value: ""
+ default_value: ''
- id: supabase-vanity-subdomains-get
title: supabase vanity-subdomains get
summary: Get the current vanity subdomain
@@ -84,7 +84,7 @@ commands:
name: --desired-subdomain <string>
description: |
The desired vanity subdomain to use for your Supabase project.
- default_value: ""
+ default_value: ''
- id: supabase-vanity-subdomains-activate
title: supabase vanity-subdomains activate
summary: Activate a vanity subdomain
@@ -102,7 +102,7 @@ commands:
name: --desired-subdomain <string>
description: |
The desired vanity subdomain to use for your Supabase project.
- default_value: ""
+ default_value: ''
- id: supabase-test
title: supabase test
summary: Run tests on local Supabase containers
@@ -132,7 +132,7 @@ commands:
- id: backup
name: --backup
description: Backs up the current database before stopping.
- default_value: "false"
+ default_value: 'false'
- id: supabase-status
title: supabase status
summary: Show status of local Supabase containers
@@ -212,7 +212,7 @@ commands:
- id: env-file
name: --env-file <string>
description: Read secrets from a .env file.
- default_value: ""
+ default_value: ''
- id: supabase-secrets-list
title: supabase secrets list
summary: List all secrets on Supabase
@@ -252,15 +252,15 @@ commands:
- id: db-password
name: --db-password <string>
description: Database password of the project.
- default_value: ""
+ default_value: ''
- id: interactive
name: -i, --interactive
description: Enables interactive mode.
- default_value: "false"
+ default_value: 'false'
- id: org-id
name: --org-id <string>
description: Organization ID to create the project in.
- default_value: ""
+ default_value: ''
- id: plan
name: --plan <[ free | pro ]>
description: Select a plan that suits your needs.
@@ -275,7 +275,7 @@ commands:
- id: region
name: --region <string>
description: Select a region close to you for the best performance.
- default_value: ""
+ default_value: ''
accepted_values:
- id: ap-northeast-1
name: ap-northeast-1
@@ -347,7 +347,7 @@ commands:
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
- default_value: ""
+ default_value: ''
- id: supabase-network-restrictions-update
title: supabase network-restrictions update
summary: Update network restrictions
@@ -359,7 +359,7 @@ commands:
- id: bypass-cidr-checks
name: --bypass-cidr-checks
description: Bypass some of the CIDR validation checks.
- default_value: "false"
+ default_value: 'false'
- id: db-allow-cidr
name: --db-allow-cidr <strings>
description: CIDR to allow DB connections from.
@@ -395,7 +395,7 @@ commands:
name: --status <[ applied | reverted ]>
description: Version status to update.
required: true
- default_value: ""
+ default_value: ''
accepted_values:
- id: applied
name: applied
@@ -422,7 +422,7 @@ commands:
- id: password
name: -p, --password <string>
description: Password to your remote Postgres database.
- default_value: ""
+ default_value: ''
- id: supabase-login
title: supabase login
summary: Authenticate using an access token
@@ -444,12 +444,12 @@ commands:
- id: password
name: -p, --password <string>
description: Password to your remote Postgres database.
- default_value: ""
+ default_value: ''
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
required: true
- default_value: ""
+ default_value: ''
- id: supabase-init
title: supabase init
summary: Initialize a local project
@@ -489,19 +489,19 @@ commands:
- id: db-url
name: --db-url <string>
description: Generate types from a database url.
- default_value: ""
+ default_value: ''
- id: linked
name: --linked
description: Generate types from the linked project.
- default_value: "false"
+ default_value: 'false'
- id: local
name: --local
description: Generate types from the local dev database.
- default_value: "false"
+ default_value: 'false'
- id: project-id
name: --project-id <string>
description: Generate types from a project ID.
- default_value: ""
+ default_value: ''
- id: schema
name: --schema <stringArray>
description: Schemas to generate types for.
@@ -530,11 +530,11 @@ commands:
name: --env-file <string>
description: |
Path to an env file to be populated to the Function environment.
- default_value: ""
+ default_value: ''
- id: no-verify-jwt
name: --no-verify-jwt
description: Disable JWT verification for the Function.
- default_value: "false"
+ default_value: 'false'
- id: supabase-functions-new
title: supabase functions new
summary: Create a new Function locally
@@ -555,15 +555,15 @@ commands:
- id: legacy-bundle
name: --legacy-bundle
description: Use legacy bundling mechanism.
- default_value: "false"
+ default_value: 'false'
- id: no-verify-jwt
name: --no-verify-jwt
description: Disable JWT verification for the Function.
- default_value: "false"
+ default_value: 'false'
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
- default_value: ""
+ default_value: ''
- id: supabase-functions-delete
title: supabase functions delete
summary: Delete a Function from Supabase
@@ -577,7 +577,7 @@ commands:
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
- default_value: ""
+ default_value: ''
- id: supabase-domains
title: supabase domains
summary: Manage custom domain names for Supabase projects
@@ -598,11 +598,11 @@ commands:
- id: include-raw-output
name: --include-raw-output
description: Include raw output (useful for debugging).
- default_value: "false"
+ default_value: 'false'
- id: project-ref
name: --project-ref <string>
description: Project ref of the Supabase project.
- default_value: ""
+ default_value: ''
- id: supabase-domains-reverify
title: supabase domains reverify
summary: Re-verify the custom hostname config for your project
@@ -644,7 +644,7 @@ commands:
- id: custom-hostname
name: --custom-hostname <string>
description: The custom hostname to use for your Supabase project.
- default_value: ""
+ default_value: ''
- id: supabase-domains-activate
title: supabase domains activate
summary: Activate the custom hostname for a project
@@ -699,7 +699,7 @@ commands:
- id: password
name: -p, --password <string>
description: Password to your remote Postgres database.
- default_value: ""
+ default_value: ''
- id: supabase-db-remote-commit
title: supabase db remote commit
summary: Commit remote changes as a new migration
@@ -720,11 +720,11 @@ commands:
name: --dry-run
description: |
Print the migrations that would be applied, but don't actually apply them.
- default_value: "false"
+ default_value: 'false'
- id: password
name: -p, --password <string>
description: Password to your remote Postgres database.
- default_value: ""
+ default_value: ''
- id: supabase-db-lint
title: supabase db lint
summary: Checks local database for typing error
@@ -759,11 +759,11 @@ commands:
- id: file
name: -f, --file <string>
description: Saves schema diff to a file.
- default_value: ""
+ default_value: ''
- id: linked
name: --linked
description: Diffs local schema against linked project.
- default_value: "false"
+ default_value: 'false'
- id: schema
name: -s, --schema <strings>
description: List of schema to include.
@@ -771,7 +771,7 @@ commands:
- id: use-migra
name: --use-migra
description: Use migra to generate schema diff.
- default_value: "false"
+ default_value: 'false'
- id: supabase-completion
title: supabase completion
summary: Generate the autocompletion script for the specified shell
@@ -821,7 +821,7 @@ commands:
- id: no-descriptions
name: --no-descriptions
description: disable completion descriptions
- default_value: "false"
+ default_value: 'false'
- id: supabase-completion-powershell
title: supabase completion powershell
summary: Generate the autocompletion script for powershell
@@ -842,7 +842,7 @@ commands:
- id: no-descriptions
name: --no-descriptions
description: disable completion descriptions
- default_value: "false"
+ default_value: 'false'
- id: supabase-completion-fish
title: supabase completion fish
summary: Generate the autocompletion script for fish
@@ -866,7 +866,7 @@ commands:
- id: no-descriptions
name: --no-descriptions
description: disable completion descriptions
- default_value: "false"
+ default_value: 'false'
- id: supabase-completion-bash
title: supabase completion bash
summary: Generate the autocompletion script for bash
@@ -899,4 +899,4 @@ commands:
- id: no-descriptions
name: --no-descriptions
description: disable completion descriptions
- default_value: "false"
+ default_value: 'false'
diff --git a/spec/enrichments/tsdoc_v2/combined.json b/spec/enrichments/tsdoc_v2/combined.json
index 4af3936ad21..84e9353dcfd 100644
--- a/spec/enrichments/tsdoc_v2/combined.json
+++ b/spec/enrichments/tsdoc_v2/combined.json
@@ -463,7 +463,8 @@
"type": {
"type": "reference",
"id": 78,
- "name": "SchemaName"
+ "name": "SchemaName",
+ "dereferenced": {}
}
}
],
@@ -529,7 +530,31 @@
"type": {
"type": "reference",
"id": 60,
- "name": "Fetch"
+ "name": "Fetch",
+ "dereferenced": {
+ "id": 60,
+ "name": "Fetch",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 8,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "id": 18,
+ "qualifiedName": "fetch",
+ "package": "typescript",
+ "name": "fetch"
+ }
+ }
+ }
}
},
{
@@ -2753,7 +2778,8 @@
"type": {
"type": "reference",
"id": 78,
- "name": "SchemaName"
+ "name": "SchemaName",
+ "dereferenced": {}
}
}
],
@@ -2819,7 +2845,31 @@
"type": {
"type": "reference",
"id": 60,
- "name": "Fetch"
+ "name": "Fetch",
+ "dereferenced": {
+ "id": 60,
+ "name": "Fetch",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 8,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "id": 18,
+ "qualifiedName": "fetch",
+ "package": "typescript",
+ "name": "fetch"
+ }
+ }
+ }
}
},
{
@@ -3832,7 +3882,8 @@
"type": {
"type": "reference",
"id": 78,
- "name": "SchemaName"
+ "name": "SchemaName",
+ "dereferenced": {}
}
}
],
@@ -3898,7 +3949,31 @@
"type": {
"type": "reference",
"id": 60,
- "name": "Fetch"
+ "name": "Fetch",
+ "dereferenced": {
+ "id": 60,
+ "name": "Fetch",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 8,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "id": 18,
+ "qualifiedName": "fetch",
+ "package": "typescript",
+ "name": "fetch"
+ }
+ }
+ }
}
},
{
@@ -4256,7 +4331,8 @@
"type": {
"type": "reference",
"id": 78,
- "name": "SchemaName"
+ "name": "SchemaName",
+ "dereferenced": {}
}
}
],
@@ -4322,7 +4398,31 @@
"type": {
"type": "reference",
"id": 60,
- "name": "Fetch"
+ "name": "Fetch",
+ "dereferenced": {
+ "id": 60,
+ "name": "Fetch",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 8,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "id": 18,
+ "qualifiedName": "fetch",
+ "package": "typescript",
+ "name": "fetch"
+ }
+ }
+ }
}
},
{
@@ -5611,7 +5711,8 @@
"type": {
"type": "reference",
"id": 78,
- "name": "SchemaName"
+ "name": "SchemaName",
+ "dereferenced": {}
}
}
],
@@ -5677,7 +5778,31 @@
"type": {
"type": "reference",
"id": 60,
- "name": "Fetch"
+ "name": "Fetch",
+ "dereferenced": {
+ "id": 60,
+ "name": "Fetch",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 8,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "id": 18,
+ "qualifiedName": "fetch",
+ "package": "typescript",
+ "name": "fetch"
+ }
+ }
+ }
}
},
{
@@ -8014,7 +8139,300 @@
"type": {
"type": "reference",
"id": 699,
- "name": "GoTrueAdminMFAApi"
+ "name": "GoTrueAdminMFAApi",
+ "dereferenced": {
+ "id": 699,
+ "name": "GoTrueAdminMFAApi",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "comment": {
+ "shortText": "Contains the full multi-factor authentication administration API.",
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "children": [
+ {
+ "id": 703,
+ "name": "deleteFactor",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 704,
+ "name": "deleteFactor",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 705,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "dereferenced": {
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 842,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 684,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 685,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the MFA factor to delete."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 844,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 686,
+ "name": "userId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the user whose factor is being deleted."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 847,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [685, 686]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 842,
+ "character": 45
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 674,
+ "name": "AuthMFAAdminDeleteFactorResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 700,
+ "name": "listFactors",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 701,
+ "name": "listFactors",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Lists all factors associated to a user."
+ },
+ "parameters": [
+ {
+ "id": 702,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
+ "dereferenced": {
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 866,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 697,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 698,
+ "name": "userId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 868,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [698]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 866,
+ "character": 44
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 687,
+ "name": "AuthMFAAdminListFactorsResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [703, 700]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 876,
+ "character": 17
+ }
+ ]
+ }
}
},
{
@@ -10176,7 +10594,58 @@
"type": {
"type": "reference",
"id": 706,
- "name": "SupportedStorage"
+ "name": "SupportedStorage",
+ "dereferenced": {
+ "id": 706,
+ "name": "SupportedStorage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 903,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Storage",
+ "package": "typescript",
+ "name": "Storage"
+ },
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "getItem"
+ },
+ {
+ "type": "literal",
+ "value": "setItem"
+ },
+ {
+ "type": "literal",
+ "value": "removeItem"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ ],
+ "name": "PromisifyMethods"
+ }
+ }
}
},
{
@@ -10267,1515 +10736,1657 @@
"type": {
"type": "reference",
"id": 1,
- "name": "default"
- }
- },
- {
- "id": 80,
- "name": "mfa",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Namespace for the MFA methods."
- },
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 91,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 654,
- "name": "GoTrueMFAApi"
- }
- },
- {
- "id": 124,
- "name": "getSession",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 487,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 125,
- "name": "getSession",
- "kind": 4096,
- "kindString": "Call signature",
+ "name": "default",
+ "dereferenced": {
+ "id": 1,
+ "name": "GoTrueAdminApi",
+ "kind": 128,
+ "kindString": "Class",
"flags": {},
- "comment": {
- "shortText": "Returns the session, refreshing it if necessary.\nThe session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out."
- },
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 126,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "children": [
+ {
+ "id": 2,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 28,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 3,
+ "name": "new GoTrueAdminApi",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 4,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "children": [
- {
- "id": 127,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 5,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
+ "children": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 489,
- "character": 8
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 128,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ "id": 11,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 129,
- "name": "session",
- "kind": 1024,
- "kindString": "Property",
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 37,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 12,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
+ "signatures": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 490,
- "character": 10
+ "id": 13,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 14,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "id": 15,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- ],
- "type": {
- "type": "reference",
- "id": 347,
- "name": "Session"
- }
+ ]
+ }
+ }
+ },
+ {
+ "id": 7,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 34,
+ "character": 4
}
],
- "groups": [
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 8,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 9,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 10,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 6,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [129]
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 33,
+ "character": 4
}
- ]
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
- }
- },
- {
- "id": 130,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ ],
+ "groups": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 492,
- "character": 8
+ "title": "Properties",
+ "kind": 1024,
+ "children": [11, 7, 6]
}
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [127, 130]
+ ]
}
- ]
+ }
}
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 16,
+ "name": "mfa",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Contains all MFA administration methods."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 20,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 699,
+ "name": "GoTrueAdminMFAApi",
+ "dereferenced": {
+ "id": 699,
+ "name": "GoTrueAdminMFAApi",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "comment": {
+ "shortText": "Contains the full multi-factor authentication administration API.",
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
},
- {
- "type": "reflection",
- "declaration": {
- "id": 131,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "children": [
+ {
+ "id": 703,
+ "name": "deleteFactor",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "children": [
+ "signatures": [
{
- "id": 132,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
+ "id": 704,
+ "name": "deleteFactor",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
+ "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"
+ }
+ ]
+ },
+ "parameters": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 495,
- "character": 8
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 133,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 705,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "children": [
- {
- "id": 134,
- "name": "session",
- "kind": 1024,
- "kindString": "Property",
+ "type": {
+ "type": "reference",
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "dereferenced": {
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
"sources": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 496,
- "character": 10
+ "fileName": "src/lib/types.ts",
+ "line": 842,
+ "character": 12
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "reflection",
+ "declaration": {
+ "id": 684,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 685,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the MFA factor to delete."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 844,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 686,
+ "name": "userId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the user whose factor is being deleted."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 847,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [685, 686]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 842,
+ "character": 45
+ }
+ ]
+ }
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [134]
- }
- ]
- }
- }
- },
- {
- "id": 135,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 498,
- "character": 8
+ }
}
],
"type": {
"type": "reference",
- "id": 727,
- "name": "AuthError"
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 674,
+ "name": "AuthMFAAdminDeleteFactorResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [132, 135]
- }
]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 136,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ },
+ {
+ "id": 700,
+ "name": "listFactors",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "children": [
+ "signatures": [
{
- "id": 137,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
+ "id": 701,
+ "name": "listFactors",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
+ "comment": {
+ "shortText": "Lists all factors associated to a user."
+ },
+ "parameters": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 501,
- "character": 8
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 138,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 702,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "children": [
- {
- "id": 139,
- "name": "session",
- "kind": 1024,
- "kindString": "Property",
+ "type": {
+ "type": "reference",
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
+ "dereferenced": {
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
"sources": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 502,
- "character": 10
+ "fileName": "src/lib/types.ts",
+ "line": 866,
+ "character": 12
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "reflection",
+ "declaration": {
+ "id": 697,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 698,
+ "name": "userId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 868,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [698]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 866,
+ "character": 44
+ }
+ ]
+ }
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [139]
- }
- ]
- }
- }
- },
- {
- "id": 140,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 504,
- "character": 8
+ }
}
],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [137, 140]
- }
- ]
- }
- }
- ]
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 141,
- "name": "getUser",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 550,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 142,
- "name": "getUser",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Gets the current user details if there is an existing session."
- },
- "parameters": [
- {
- "id": 143,
- "name": "jwt",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Takes in an optional access token jwt. If no jwt is provided, getUser() will attempt to get the jwt from the current session.\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 336,
- "name": "UserResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 102,
- "name": "initialize",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 162,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 103,
- "name": "initialize",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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)."
- },
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 707,
- "name": "InitializeResult"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 185,
- "name": "onAuthStateChange",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 834,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 186,
- "name": "onAuthStateChange",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Receive a notification every time an auth event happens."
- },
- "parameters": [
- {
- "id": 187,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "A callback function to be invoked when an auth event happens.\n"
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 188,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 189,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 190,
- "name": "event",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
"type": {
"type": "reference",
- "id": 287,
- "name": "AuthChangeEvent"
- }
- },
- {
- "id": 191,
- "name": "session",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
+ "typeArguments": [
{
"type": "reference",
- "id": 347,
- "name": "Session"
+ "id": 687,
+ "name": "AuthMFAAdminListFactorsResponse"
}
- ]
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [703, 700]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 876,
+ "character": 17
}
]
}
}
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 192,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ },
+ {
+ "id": 43,
+ "name": "createUser",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 193,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 835,
- "character": 4
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 194,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 195,
- "name": "subscription",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 835,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "id": 421,
- "name": "Subscription"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [195]
- }
- ]
- }
- }
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 139,
+ "character": 8
}
],
- "groups": [
+ "signatures": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [193]
- }
- ]
- }
- }
- }
- ]
- },
- {
- "id": 160,
- "name": "refreshSession",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 689,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 161,
- "name": "refreshSession",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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."
- },
- "parameters": [
- {
- "id": 162,
- "name": "currentSession",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The current session. If passed in, it must contain a refresh token.\n"
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 163,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 44,
+ "name": "createUser",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "children": [
+ "comment": {
+ "shortText": "Creates a new user.\nThis function should only be called on a server. Never expose your `service_role` key in the browser."
+ },
+ "parameters": [
{
- "id": 164,
- "name": "refresh_token",
- "kind": 1024,
- "kindString": "Property",
+ "id": 45,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 689,
- "character": 42
- }
- ],
"type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [164]
- }
- ]
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 301,
- "name": "AuthResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 196,
- "name": "resetPasswordForEmail",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 857,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 197,
- "name": "resetPasswordForEmail",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Sends a password reset request to an email address."
- },
- "parameters": [
- {
- "id": 198,
- "name": "email",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The email address of the user."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 199,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 200,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 202,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site.\n"
- },
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 861,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 201,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The URL to send the user to after they click the password reset link."
- },
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 860,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [202, 201]
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 203,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 204,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
+ "type": "reference",
+ "id": 411,
+ "name": "AdminUserAttributes",
+ "dereferenced": {
+ "id": 411,
+ "name": "AdminUserAttributes",
+ "kind": 256,
+ "kindString": "Interface",
"flags": {},
- "sources": [
+ "children": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 865,
- "character": 8
+ "id": 413,
+ "name": "app_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 280,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 416,
+ "name": "ban_duration",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 306,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 420,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 255,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 410,
+ "name": "UserAttributes.data"
+ }
+ },
+ {
+ "id": 417,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 237,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 407,
+ "name": "UserAttributes.email"
+ }
+ },
+ {
+ "id": 414,
+ "name": "email_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Confirms the user's email address if set to true.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 287,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 419,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 247,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 409,
+ "name": "UserAttributes.password"
+ }
+ },
+ {
+ "id": 418,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's phone."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 242,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 408,
+ "name": "UserAttributes.phone"
+ }
+ },
+ {
+ "id": 415,
+ "name": "phone_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Confirms the user's phone number if set to true.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 294,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 412,
+ "name": "user_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "Only a service role can modify.\n\nThe `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 270,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
}
],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 205,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {}
- }
- }
- },
- {
- "id": 206,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "groups": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 866,
- "character": 8
+ "title": "Properties",
+ "kind": 1024,
+ "children": [413, 416, 420, 417, 414, 419, 418, 415, 412]
}
],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [204, 206]
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 207,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 208,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
"sources": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 868,
- "character": 8
+ "fileName": "src/lib/types.ts",
+ "line": 258,
+ "character": 17
}
],
- "type": {
- "type": "literal",
- "value": null
- }
- },
- {
- "id": 209,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "extendedTypes": [
{
- "fileName": "src/GoTrueClient.ts",
- "line": 868,
- "character": 20
+ "type": "reference",
+ "id": 406,
+ "name": "UserAttributes"
}
- ],
- "type": {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [208, 209]
+ ]
}
- ]
+ }
}
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
- ]
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 154,
- "name": "setSession",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 626,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 155,
- "name": "setSession",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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."
- },
- "parameters": [
+ }
+ ]
+ },
{
- "id": 156,
- "name": "currentSession",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 66,
+ "name": "deleteUser",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "comment": {
- "shortText": "The current session that minimally contains an access token and refresh token.\n"
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 157,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 234,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 67,
+ "name": "deleteUser",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "children": [
- {
- "id": 158,
- "name": "access_token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 627,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
+ "comment": {
+ "shortText": "Delete a user. Requires a `service_role` key."
+ },
+ "parameters": [
{
- "id": 159,
- "name": "refresh_token",
- "kind": 1024,
- "kindString": "Property",
+ "id": 68,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 628,
- "character": 4
- }
- ],
+ "comment": {
+ "shortText": "The user id you want to remove.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n"
+ },
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [158, 159]
- }
- ]
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 301,
- "name": "AuthResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 112,
- "name": "signInWithOAuth",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 340,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 113,
- "name": "signInWithOAuth",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Log in an existing user via a third-party provider."
- },
- "parameters": [
+ ]
+ },
{
- "id": 114,
- "name": "credentials",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 40,
+ "name": "generateLink",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "type": {
- "type": "reference",
- "id": 478,
- "name": "SignInWithOAuthCredentials",
- "dereferenced": {
- "id": 478,
- "name": "SignInWithOAuthCredentials",
- "kind": 4194304,
- "kindString": "Type alias",
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 105,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 41,
+ "name": "generateLink",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
+ "comment": {
+ "shortText": "Generates email links and OTPs to be sent via a custom email provider."
+ },
+ "parameters": [
{
- "fileName": "src/lib/types.ts",
- "line": 433,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 479,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 42,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "children": [
- {
- "id": 481,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "type": {
+ "type": "reference",
+ "id": 543,
+ "name": "GenerateLinkParams",
+ "dereferenced": {
+ "id": 543,
+ "name": "GenerateLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 436,
- "character": 2
+ "line": 545,
+ "character": 12
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 482,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 485,
- "name": "queryParams",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "An object of query params"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 442,
- "character": 4
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 486,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 442,
- "character": 18
- }
- ],
- "indexSignature": {
- "id": 487,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
+ "type": "union",
+ "types": [
+ {
+ "id": 518,
+ "name": "GenerateSignupLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 502,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 519,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 521,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "parameters": [
+ "sources": [
{
- "id": 488,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "fileName": "src/lib/types.ts",
+ "line": 504,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 523,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 506,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "data"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ]
}
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 522,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 505,
+ "character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
}
+ },
+ {
+ "id": 520,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 503,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "signup"
+ }
}
- }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [521, 523, 522, 520]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 502,
+ "character": 39
+ }
+ ]
}
- },
- {
- "id": 483,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A URL to send the user to after they are confirmed."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 438,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ }
+ },
+ {
+ "id": 524,
+ "name": "GenerateInviteOrMagiclinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 509,
+ "character": 12
}
- },
- {
- "id": 484,
- "name": "scopes",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A space-separated list of scopes granted to the OAuth application."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 440,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 525,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 527,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 512,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 528,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 513,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "data"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 526,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 510,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [527, 528, 526]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 509,
+ "character": 46
+ }
+ ]
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [485, 483, 484]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 436,
- "character": 12
+ },
+ {
+ "id": 529,
+ "name": "GenerateRecoveryLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 516,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 530,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 532,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 519,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 533,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 520,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 531,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 517,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "recovery"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [532, 533, 531]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 516,
+ "character": 41
+ }
+ ]
+ }
}
- ]
- }
- }
- },
- {
- "id": 480,
- "name": "provider",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "One of the providers supported by GoTrue."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 435,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 285,
- "name": "Provider"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [481, 480]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 433,
- "character": 41
- }
- ]
+ },
+ {
+ "id": 534,
+ "name": "GenerateEmailChangeLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 523,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 535,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 537,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 526,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 538,
+ "name": "newEmail",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's new email. Only required if type is 'email_change_current' or 'email_change_new'."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 530,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 539,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 531,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 536,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 524,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "email_change_current"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_new"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [537, 538, 539, 536]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 523,
+ "character": 44
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
}
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 544,
+ "name": "GenerateLinkResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
}
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 314,
- "name": "OAuthResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 115,
- "name": "signInWithOtp",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 355,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 116,
- "name": "signInWithOtp",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Log in a user using magiclink or a one-time password (OTP).\nIf 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."
- },
- "parameters": [
+ ]
+ },
{
- "id": 117,
- "name": "credentials",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 59,
+ "name": "getUserById",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "type": {
- "type": "reference",
- "id": 462,
- "name": "SignInWithPasswordlessCredentials",
- "dereferenced": {
- "id": 462,
- "name": "SignInWithPasswordlessCredentials",
- "kind": 4194304,
- "kindString": "Type alias",
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 189,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 60,
+ "name": "getUserById",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
+ "comment": {
+ "shortText": "Get user by id."
+ },
+ "parameters": [
{
- "fileName": "src/lib/types.ts",
- "line": 397,
- "character": 12
+ "id": 61,
+ "name": "uid",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "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"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
"type": {
- "type": "union",
- "types": [
+ "type": "reference",
+ "typeArguments": [
{
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 33,
+ "name": "inviteUserByEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 75,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 34,
+ "name": "inviteUserByEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sends an invite link to an email address."
+ },
+ "parameters": [
+ {
+ "id": 35,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 36,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
"type": "reflection",
"declaration": {
- "id": 463,
+ "id": 37,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 464,
- "name": "email",
+ "id": 39,
+ "name": "data",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"comment": {
- "shortText": "The user's email address."
+ "shortText": "Optional user metadata\n"
},
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 400,
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 79,
"character": 6
}
],
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "object"
}
},
{
- "id": 465,
- "name": "options",
+ "id": 38,
+ "name": "redirectTo",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
+ "comment": {
+ "shortText": "A URL or mobile deeplink to send the user to after they are confirmed."
+ },
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 401,
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 78,
"character": 6
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 466,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 470,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 413,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 469,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 411,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 467,
- "name": "emailRedirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The redirect url embedded in the email link"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 403,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 468,
- "name": "shouldCreateUser",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If set to false, this method will not create a new user. Defaults to true."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 405,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [470, 469, 467, 468]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 401,
- "character": 16
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
}
}
],
@@ -11783,158 +12394,450 @@
{
"title": "Properties",
"kind": 1024,
- "children": [464, 465]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 398,
- "character": 4
+ "children": [39, 38]
}
]
}
},
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
{
- "type": "reflection",
- "declaration": {
- "id": 471,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 46,
+ "name": "listUsers",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 161,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 47,
+ "name": "listUsers",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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."
+ },
+ "parameters": [
+ {
+ "id": 48,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "An object which supports `page` and `per_page` as numbers, to alter the paginated results.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 717,
+ "name": "PageParams",
+ "dereferenced": {
+ "id": 717,
+ "name": "PageParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 473,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "fileName": "src/lib/types.ts",
+ "line": 917,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 718,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 719,
+ "name": "page",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The page number"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 919,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 720,
+ "name": "perPage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Number of items returned per page"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 921,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [719, 720]
+ }
+ ],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 419,
- "character": 6
+ "line": 917,
+ "character": 25
}
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 474,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 49,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 50,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 477,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 51,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 429,
- "character": 8
+ "id": 52,
+ "name": "users",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 23
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 384,
+ "name": "User"
+ }
+ }
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 476,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
+ "groups": [
{
- "fileName": "src/lib/types.ts",
- "line": 427,
- "character": 8
+ "title": "Properties",
+ "kind": 1024,
+ "children": [52]
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
+ ]
+ }
+ }
+ },
+ {
+ "id": 53,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
{
- "id": 475,
- "name": "shouldCreateUser",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If set to false, this method will not create a new user. Defaults to true."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 421,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 40
}
],
- "groups": [
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [50, 53]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 54,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 55,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [477, 476, 475]
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 58
}
],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 56,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 57,
+ "name": "users",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 66
+ }
+ ],
+ "type": {
+ "type": "tuple"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [57]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 58,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 419,
- "character": 16
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 79
}
- ]
+ ],
+ "type": {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [55, 58]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 27,
+ "name": "signOut",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 52,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 28,
+ "name": "signOut",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Removes a logged-in session."
+ },
+ "parameters": [
+ {
+ "id": 29,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A valid, logged-in JWT.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 30,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 31,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 52,
+ "character": 40
}
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
}
},
{
- "id": 472,
- "name": "phone",
+ "id": 32,
+ "name": "error",
"kind": 1024,
"kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The user's phone number."
- },
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 418,
- "character": 6
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 52,
+ "character": 52
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ ]
}
}
],
@@ -11942,385 +12845,305 @@
{
"title": "Properties",
"kind": 1024,
- "children": [473, 472]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 416,
- "character": 4
+ "children": [31, 32]
}
]
}
}
- ]
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
}
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 301,
- "name": "AuthResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 109,
- "name": "signInWithPassword",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 288,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 110,
- "name": "signInWithPassword",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Log in an existing user with an email and password or phone and password."
- },
- "parameters": [
+ ]
+ },
{
- "id": 111,
- "name": "credentials",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 62,
+ "name": "updateUserById",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "type": {
- "type": "reference",
- "id": 447,
- "name": "SignInWithPasswordCredentials",
- "dereferenced": {
- "id": 447,
- "name": "SignInWithPasswordCredentials",
- "kind": 4194304,
- "kindString": "Type alias",
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 211,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 63,
+ "name": "updateUserById",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
+ "comment": {
+ "shortText": "Updates the user data."
+ },
+ "parameters": [
{
- "fileName": "src/lib/types.ts",
- "line": 363,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 448,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 64,
+ "name": "uid",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 65,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "id": 411,
+ "name": "AdminUserAttributes",
+ "dereferenced": {
+ "id": 411,
+ "name": "AdminUserAttributes",
+ "kind": 256,
+ "kindString": "Interface",
"flags": {},
"children": [
{
- "id": 449,
+ "id": 413,
+ "name": "app_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 280,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 416,
+ "name": "ban_duration",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 306,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 420,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 255,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 410,
+ "name": "UserAttributes.data"
+ }
+ },
+ {
+ "id": 417,
"name": "email",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"comment": {
- "shortText": "The user's email address."
+ "shortText": "The user's email."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 366,
- "character": 6
+ "line": 237,
+ "character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 407,
+ "name": "UserAttributes.email"
}
},
{
- "id": 451,
- "name": "options",
+ "id": 414,
+ "name": "email_confirm",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
+ "comment": {
+ "shortText": "Confirms the user's email address if set to true.",
+ "text": "Only a service role can modify.\n"
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 369,
- "character": 6
+ "line": 287,
+ "character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 452,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 454,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 377,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 453,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 375,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [454, 453]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 369,
- "character": 16
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "boolean"
}
},
{
- "id": 450,
+ "id": 419,
"name": "password",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"comment": {
"shortText": "The user's password."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 368,
- "character": 6
+ "line": 247,
+ "character": 2
}
],
"type": {
"type": "intrinsic",
"name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 409,
+ "name": "UserAttributes.password"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [449, 451, 450]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 364,
- "character": 4
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 455,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ },
{
- "id": 458,
- "name": "options",
+ "id": 418,
+ "name": "phone",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
+ "comment": {
+ "shortText": "The user's phone."
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 385,
- "character": 6
+ "line": 242,
+ "character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 459,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 461,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 393,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 460,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 391,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [461, 460]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 385,
- "character": 16
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 408,
+ "name": "UserAttributes.phone"
}
},
{
- "id": 457,
- "name": "password",
+ "id": 415,
+ "name": "phone_confirm",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"comment": {
- "shortText": "The user's password."
+ "shortText": "Confirms the user's phone number if set to true.",
+ "text": "Only a service role can modify.\n"
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 384,
- "character": 6
+ "line": 294,
+ "character": 2
}
],
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "boolean"
}
},
{
- "id": 456,
- "name": "phone",
+ "id": 412,
+ "name": "user_metadata",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"comment": {
- "shortText": "The user's phone number."
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "Only a service role can modify.\n\nThe `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n"
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 382,
- "character": 6
+ "line": 270,
+ "character": 2
}
],
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "object"
}
}
],
@@ -12328,237 +13151,164 @@
{
"title": "Properties",
"kind": 1024,
- "children": [458, 457, 456]
+ "children": [413, 416, 420, 417, 414, 419, 418, 415, 412]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 380,
- "character": 4
+ "line": 258,
+ "character": 17
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "UserAttributes"
}
]
}
}
- ]
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
}
- }
+ ]
}
],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 301,
- "name": "AuthResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [2]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [16]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [43, 66, 40, 59, 33, 46, 27, 62]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 18,
+ "character": 21
+ }
+ ]
}
- ]
+ }
},
{
- "id": 121,
- "name": "signInWithSSO",
- "kind": 2048,
- "kindString": "Method",
+ "id": 80,
+ "name": "mfa",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "comment": {
+ "shortText": "Namespace for the MFA methods."
+ },
"sources": [
{
"fileName": "src/GoTrueClient.ts",
- "line": 458,
- "character": 8
+ "line": 91,
+ "character": 2
}
],
- "signatures": [
- {
- "id": 122,
- "name": "signInWithSSO",
- "kind": 4096,
- "kindString": "Call signature",
+ "type": {
+ "type": "reference",
+ "id": 654,
+ "name": "GoTrueMFAApi",
+ "dereferenced": {
+ "id": 654,
+ "name": "GoTrueMFAApi",
+ "kind": 256,
+ "kindString": "Interface",
"flags": {},
"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\nThis API is experimental and availability is conditional on correct\nsettings on the Auth service.\n",
- "tags": [
- {
- "tag": "experimental",
- "text": "\n"
- }
- ]
+ "shortText": "Contains the full multi-factor authentication API."
},
- "parameters": [
+ "children": [
{
- "id": 123,
- "name": "params",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 658,
+ "name": "challenge",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "type": {
- "type": "reference",
- "id": 508,
- "name": "SignInWithSSO",
- "dereferenced": {
- "id": 508,
- "name": "SignInWithSSO",
- "kind": 4194304,
- "kindString": "Type alias",
+ "signatures": [
+ {
+ "id": 659,
+ "name": "challenge",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
+ "comment": {
+ "shortText": "Prepares a challenge used to verify that a user has access to a MFA\nfactor."
+ },
+ "parameters": [
{
- "fileName": "src/lib/types.ts",
- "line": 484,
- "character": 12
- }
- ],
- "type": {
- "type": "intersection",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 509,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 660,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 578,
+ "name": "MFAChallengeParams",
+ "dereferenced": {
+ "id": 578,
+ "name": "MFAChallengeParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "children": [
- {
- "id": 510,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 485,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 511,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 513,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 489,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 512,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A URL to send the user to after they have signed-in."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 487,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [513, 512]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 485,
- "character": 12
- }
- ]
- }
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [510]
- }
- ],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 484,
- "character": 28
+ "line": 622,
+ "character": 12
}
- ]
- }
- },
- {
- "type": "union",
- "types": [
- {
+ ],
+ "type": {
"type": "reflection",
"declaration": {
- "id": 514,
+ "id": 579,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 515,
- "name": "providerId",
+ "id": 580,
+ "name": "factorId",
"kind": 1024,
"kindString": "Property",
"flags": {},
"comment": {
- "shortText": "UUID of the SSO provider to invoke single-sign on to."
+ "shortText": "ID of the factor to be challenged. Returned in enroll()."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 494,
- "character": 6
+ "line": 624,
+ "character": 2
}
],
"type": {
@@ -12571,41 +13321,122 @@
{
"title": "Properties",
"kind": 1024,
- "children": [515]
+ "children": [580]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 492,
- "character": 4
+ "line": 622,
+ "character": 33
}
]
}
- },
- {
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 622,
+ "name": "AuthMFAChallengeResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 667,
+ "name": "challengeAndVerify",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 668,
+ "name": "challengeAndVerify",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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."
+ },
+ "parameters": [
+ {
+ "id": 669,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 581,
+ "name": "MFAChallengeAndVerifyParams",
+ "dereferenced": {
+ "id": 581,
+ "name": "MFAChallengeAndVerifyParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 627,
+ "character": 12
+ }
+ ],
+ "type": {
"type": "reflection",
"declaration": {
- "id": 516,
+ "id": 582,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 517,
- "name": "domain",
+ "id": 584,
+ "name": "code",
"kind": 1024,
"kindString": "Property",
"flags": {},
"comment": {
- "shortText": "Domain name of the organization for which to invoke single-sign on."
+ "shortText": "Verification code provided by the user."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 498,
- "character": 6
+ "line": 631,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 583,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being verified. Returned in enroll()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 629,
+ "character": 2
}
],
"type": {
@@ -12618,691 +13449,888 @@
{
"title": "Properties",
"kind": 1024,
- "children": [517]
+ "children": [584, 583]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 496,
- "character": 4
+ "line": 627,
+ "character": 42
}
]
}
}
- ]
- }
- ]
- }
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 327,
- "name": "SSOResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 181,
- "name": "signOut",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 809,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 182,
- "name": "signOut",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand 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"
- },
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 183,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 184,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 809,
- "character": 29
}
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
- }
- ]
}
}
],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [184]
- }
- ]
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 585,
+ "name": "AuthMFAVerifyResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 106,
- "name": "signUp",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 225,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 107,
- "name": "signUp",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Creates a new user.",
- "returns": "A logged-in session if the server has \"autoconfirm\" ON"
- },
- "parameters": [
+ ]
+ },
{
- "id": 108,
- "name": "credentials",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 655,
+ "name": "enroll",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "type": {
- "type": "reference",
- "id": 431,
- "name": "SignUpWithPasswordCredentials",
- "dereferenced": {
- "id": 431,
- "name": "SignUpWithPasswordCredentials",
- "kind": 4194304,
- "kindString": "Type alias",
+ "signatures": [
+ {
+ "id": 656,
+ "name": "enroll",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
+ "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"
+ },
+ "parameters": [
{
- "fileName": "src/lib/types.ts",
- "line": 328,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 432,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 657,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 565,
+ "name": "MFAEnrollParams",
+ "dereferenced": {
+ "id": 565,
+ "name": "MFAEnrollParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 433,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
+ "fileName": "src/lib/types.ts",
+ "line": 597,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 566,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "The user's email address."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 331,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 435,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 334,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 436,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 567,
+ "name": "factorType",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
- {
- "id": 439,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 344,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 438,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 342,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
+ "comment": {
+ "shortText": "The type of factor being enrolled."
+ },
+ "sources": [
{
- "id": 437,
- "name": "emailRedirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The redirect url embedded in the email link"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 336,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 599,
+ "character": 2
}
],
- "groups": [
+ "type": {
+ "type": "literal",
+ "value": "totp"
+ }
+ },
+ {
+ "id": 569,
+ "name": "friendlyName",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Human readable name assigned to the factor."
+ },
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [439, 438, 437]
+ "fileName": "src/lib/types.ts",
+ "line": 603,
+ "character": 2
}
],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 568,
+ "name": "issuer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Domain which the user is enrolled with."
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 334,
- "character": 16
+ "line": 601,
+ "character": 2
}
- ]
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
- }
- },
- {
- "id": 434,
- "name": "password",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's password."
- },
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [567, 569, 568]
+ }
+ ],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 333,
- "character": 6
+ "line": 597,
+ "character": 30
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [433, 435, 434]
+ ]
}
- ],
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 598,
+ "name": "AuthMFAEnrollResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 672,
+ "name": "getAuthenticatorAssuranceLevel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 673,
+ "name": "getAuthenticatorAssuranceLevel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 643,
+ "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 670,
+ "name": "listFactors",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 671,
+ "name": "listFactors",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the list of MFA factors enabled for this user. For most use cases\nyou should consider using {@link\nGoTrueMFAApi#getAuthenticatorAssuranceLevel}. This uses a cached version\nof the factors and avoids incurring a network call. If you need to update\nthis list, call {@link GoTrueClient#getUser} first.",
+ "tags": [
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#enroll}"
+ },
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#getAuthenticatorAssuranceLevel}"
+ },
+ {
+ "tag": "see",
+ "text": "{@link GoTrueClient#getUser}\n\n"
+ }
+ ]
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 632,
+ "name": "AuthMFAListFactorsResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 664,
+ "name": "unenroll",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 665,
+ "name": "unenroll",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Unenroll removes a MFA factor.\nA user has to have an `aal2` authenticator level in order to unenroll a `verified` factor."
+ },
+ "parameters": [
+ {
+ "id": 666,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 570,
+ "name": "MFAUnenrollParams",
+ "dereferenced": {
+ "id": 570,
+ "name": "MFAUnenrollParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 329,
- "character": 4
+ "line": 606,
+ "character": 12
}
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 440,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 443,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 571,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 572,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being unenrolled."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 608,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [572]
+ }
+ ],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 352,
- "character": 6
+ "line": 606,
+ "character": 32
}
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 444,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 613,
+ "name": "AuthMFAUnenrollResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 661,
+ "name": "verify",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 662,
+ "name": "verify",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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."
+ },
+ "parameters": [
+ {
+ "id": 663,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 573,
+ "name": "MFAVerifyParams",
+ "dereferenced": {
+ "id": 573,
+ "name": "MFAVerifyParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 611,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 574,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 576,
+ "name": "challengeId",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
- {
- "id": 446,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 360,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
+ "comment": {
+ "shortText": "ID of the challenge being verified. Returned in challenge()."
+ },
+ "sources": [
{
- "id": 445,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 358,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 616,
+ "character": 2
}
],
- "groups": [
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 577,
+ "name": "code",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Verification code provided by the user."
+ },
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [446, 445]
+ "fileName": "src/lib/types.ts",
+ "line": 619,
+ "character": 2
}
],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 575,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being verified. Returned in enroll()."
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 352,
- "character": 16
+ "line": 613,
+ "character": 2
}
- ]
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
- }
- },
- {
- "id": 442,
- "name": "password",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's password."
- },
- "sources": [
+ ],
+ "groups": [
{
- "fileName": "src/lib/types.ts",
- "line": 351,
- "character": 6
+ "title": "Properties",
+ "kind": 1024,
+ "children": [576, 577, 575]
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 441,
- "name": "phone",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's phone number."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 349,
- "character": 6
+ "line": 611,
+ "character": 30
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [443, 442, 441]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 347,
- "character": 4
+ ]
}
- ]
+ }
}
}
- ]
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 585,
+ "name": "AuthMFAVerifyResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
}
- }
+ ]
}
],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 301,
- "name": "AuthResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
+ "groups": [
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [658, 667, 655, 672, 670, 664, 661]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 759,
+ "character": 17
+ }
+ ]
}
- ]
+ }
},
{
- "id": 144,
- "name": "updateUser",
+ "id": 124,
+ "name": "getSession",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/GoTrueClient.ts",
- "line": 579,
+ "line": 487,
"character": 8
}
],
"signatures": [
{
- "id": 145,
- "name": "updateUser",
+ "id": 125,
+ "name": "getSession",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Updates user data, if there is a logged in user."
+ "shortText": "Returns the session, refreshing it if necessary.\nThe session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out."
},
- "parameters": [
- {
- "id": 146,
- "name": "attributes",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 406,
- "name": "UserAttributes",
- "dereferenced": {
- "id": 406,
- "name": "UserAttributes",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "children": [
- {
- "id": 410,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 255,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 407,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The user's email."
- },
- "sources": [
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 126,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 237,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 409,
- "name": "password",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The user's password."
- },
- "sources": [
+ "id": 127,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 489,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 128,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 129,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 490,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 347,
+ "name": "Session"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [129]
+ }
+ ]
+ }
+ }
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 247,
- "character": 2
+ "id": 130,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 492,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 408,
- "name": "phone",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The user's phone."
- },
- "sources": [
+ "groups": [
{
- "fileName": "src/lib/types.ts",
- "line": 242,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [127, 130]
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [410, 407, 409, 408]
+ ]
}
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 233,
- "character": 17
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 131,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 132,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 495,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 133,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 134,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 496,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [134]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 135,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 498,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [132, 135]
+ }
+ ]
}
- ],
- "extendedBy": [
- {
- "type": "reference",
- "id": 411,
- "name": "AdminUserAttributes"
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 136,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 137,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 501,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 138,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 139,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 502,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [139]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 140,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 504,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [137, 140]
+ }
+ ]
}
- ]
- }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 141,
+ "name": "getUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 550,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 142,
+ "name": "getUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Gets the current user details if there is an existing session."
+ },
+ "parameters": [
+ {
+ "id": 143,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Takes in an optional access token jwt. If no jwt is provided, getUser() will attempt to get the jwt from the current session.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
],
@@ -13323,400 +14351,487 @@
]
},
{
- "id": 118,
- "name": "verifyOtp",
+ "id": 102,
+ "name": "initialize",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/GoTrueClient.ts",
- "line": 399,
- "character": 8
+ "line": 162,
+ "character": 2
}
],
"signatures": [
{
- "id": 119,
- "name": "verifyOtp",
+ "id": 103,
+ "name": "initialize",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Log in a user given a User supplied OTP received via mobile."
+ "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)."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 707,
+ "name": "InitializeResult"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 185,
+ "name": "onAuthStateChange",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 834,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 186,
+ "name": "onAuthStateChange",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Receive a notification every time an auth event happens."
},
"parameters": [
{
- "id": 120,
- "name": "params",
+ "id": 187,
+ "name": "callback",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "A callback function to be invoked when an auth event happens.\n"
+ },
"type": {
- "type": "reference",
- "id": 489,
- "name": "VerifyOtpParams",
- "dereferenced": {
- "id": 489,
- "name": "VerifyOtpParams",
- "kind": 4194304,
- "kindString": "Type alias",
+ "type": "reflection",
+ "declaration": {
+ "id": 188,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 189,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 190,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 287,
+ "name": "AuthChangeEvent"
+ }
+ },
+ {
+ "id": 191,
+ "name": "session",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 347,
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 192,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 193,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 446,
- "character": 12
+ "fileName": "src/GoTrueClient.ts",
+ "line": 835,
+ "character": 4
}
],
"type": {
- "type": "union",
- "types": [
- {
- "id": 490,
- "name": "VerifyMobileOtpParams",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "children": [
- {
- "id": 494,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 454,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 495,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 497,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site.",
- "tags": [
- {
- "tag": "deprecated",
- "text": "\n"
- }
- ]
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 463,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "type": "reflection",
+ "declaration": {
+ "id": 194,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 195,
+ "name": "subscription",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 835,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 421,
+ "name": "Subscription",
+ "dereferenced": {
+ "id": 421,
+ "name": "Subscription",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 422,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The subscriber UUID. This will be set by the client."
},
- {
- "id": 496,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A URL to send the user to after they are confirmed."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 456,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 313,
+ "character": 2
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [497, 496]
- }
- ]
- }
- }
- },
- {
- "id": 491,
- "name": "phone",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's phone number."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 449,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 492,
- "name": "token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The otp sent to the user's phone number."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 451,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 493,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's verification type."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 453,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 506,
- "name": "MobileOtpType"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [494, 491, 492, 493]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 447,
- "character": 17
- }
- ]
- },
- {
- "id": 498,
- "name": "VerifyEmailOtpParams",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "children": [
- {
- "id": 499,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's email address."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 468,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 502,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 473,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 503,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 505,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 477,
- "character": 4
+ },
+ {
+ "id": 423,
+ "name": "callback",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 317,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 424,
+ "name": "callback",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "The function to call every time there is an event. eg: (eventName) => {}"
+ },
+ "parameters": [
+ {
+ "id": 425,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 287,
+ "name": "AuthChangeEvent",
+ "dereferenced": {
+ "id": 287,
+ "name": "AuthChangeEvent",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 25,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "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": "USER_DELETED"
+ },
+ {
+ "id": 286,
+ "name": "AuthChangeEventMFA",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 23,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "MFA_CHALLENGE_VERIFIED"
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ {
+ "id": 426,
+ "name": "session",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 347,
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
}
- },
- {
- "id": 504,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A URL to send the user to after they are confirmed."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 475,
- "character": 4
+ ]
+ },
+ {
+ "id": 427,
+ "name": "unsubscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 321,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 428,
+ "name": "unsubscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Call this to remove the listener."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [505, 504]
- }
- ]
- }
- }
- },
- {
- "id": 500,
- "name": "token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The otp sent to the user's email address."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 470,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 501,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's verification type."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 472,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 507,
- "name": "EmailOtpType"
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [422]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [423, 427]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 309,
+ "character": 17
+ }
+ ]
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [499, 502, 500, 501]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 466,
- "character": 17
- }
- ]
- }
- ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [195]
+ }
+ ]
+ }
}
}
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [193]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 160,
+ "name": "refreshSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 689,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 161,
+ "name": "refreshSession",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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."
+ },
+ "parameters": [
+ {
+ "id": 162,
+ "name": "currentSession",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The current session. If passed in, it must contain a refresh token.\n"
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 163,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 164,
+ "name": "refresh_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 689,
+ "character": 42
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [164]
+ }
+ ]
+ }
}
}
],
@@ -13735,985 +14850,667 @@
}
}
]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [76]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [79, 80]
},
{
- "title": "Methods",
+ "id": 196,
+ "name": "resetPasswordForEmail",
"kind": 2048,
- "children": [
- 124, 141, 102, 185, 160, 196, 154, 112, 115, 109, 121, 181, 106, 144, 118
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 82,
- "character": 21
- }
- ]
- },
- {
- "id": 356,
- "name": "AMREntry",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "comment": {
- "shortText": "An authentication methord reference (AMR) entry.",
- "text": "An entry designates what method was used by the user to verify their\nidentity and at what time.\n",
- "tags": [
- {
- "tag": "see",
- "text": "{@link GoTrueMFAApi#getAuthenticatorAssuranceLevel}.\n"
- }
- ]
- },
- "children": [
- {
- "id": 357,
- "name": "method",
- "kind": 1024,
- "kindString": "Property",
+ "kindString": "Method",
"flags": {},
- "comment": {
- "shortText": "Authentication method name."
- },
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 152,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 358,
- "name": "timestamp",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Timestamp when the method was successfully used. Represents number of\nseconds since 1st January 1970 (UNIX epoch) in UTC."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 158,
- "character": 2
+ "fileName": "src/GoTrueClient.ts",
+ "line": 857,
+ "character": 8
}
],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [357, 358]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 150,
- "character": 17
- }
- ]
- },
- {
- "id": 411,
- "name": "AdminUserAttributes",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "children": [
- {
- "id": 413,
- "name": "app_metadata",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "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"
- },
- "sources": [
+ "signatures": [
{
- "fileName": "src/lib/types.ts",
- "line": 280,
- "character": 2
+ "id": 197,
+ "name": "resetPasswordForEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sends a password reset request to an email address."
+ },
+ "parameters": [
+ {
+ "id": 198,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 199,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 200,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 202,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 861,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 201,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The URL to send the user to after they click the password reset link."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 860,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [202, 201]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 203,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 204,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 865,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 205,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {}
+ }
+ }
+ },
+ {
+ "id": 206,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 866,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [204, 206]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 207,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 208,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 868,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 209,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 868,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [208, 209]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
+ ]
},
{
- "id": 416,
- "name": "ban_duration",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "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"
- },
+ "id": 154,
+ "name": "setSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 306,
- "character": 2
+ "fileName": "src/GoTrueClient.ts",
+ "line": 626,
+ "character": 8
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 420,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n"
- },
- "sources": [
+ "signatures": [
{
- "fileName": "src/lib/types.ts",
- "line": 255,
- "character": 2
+ "id": 155,
+ "name": "setSession",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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."
+ },
+ "parameters": [
+ {
+ "id": 156,
+ "name": "currentSession",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The current session that minimally contains an access token and refresh token.\n"
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 157,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 158,
+ "name": "access_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 627,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 159,
+ "name": "refresh_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 628,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [158, 159]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 301,
+ "name": "AuthResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 410,
- "name": "UserAttributes.data"
- }
+ ]
},
{
- "id": 417,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The user's email."
- },
+ "id": 112,
+ "name": "signInWithOAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 237,
- "character": 2
+ "fileName": "src/GoTrueClient.ts",
+ "line": 340,
+ "character": 8
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 407,
- "name": "UserAttributes.email"
- }
- },
- {
- "id": 414,
- "name": "email_confirm",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Confirms the user's email address if set to true.",
- "text": "Only a service role can modify.\n"
- },
- "sources": [
+ "signatures": [
{
- "fileName": "src/lib/types.ts",
- "line": 287,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 419,
- "name": "password",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The user's password."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 247,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 409,
- "name": "UserAttributes.password"
- }
- },
- {
- "id": 418,
- "name": "phone",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The user's phone."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 242,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 408,
- "name": "UserAttributes.phone"
- }
- },
- {
- "id": 415,
- "name": "phone_confirm",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Confirms the user's phone number if set to true.",
- "text": "Only a service role can modify.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 294,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 412,
- "name": "user_metadata",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "Only a service role can modify.\n\nThe `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 270,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [413, 416, 420, 417, 414, 419, 418, 415, 412]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 258,
- "character": 17
- }
- ],
- "extendedTypes": [
- {
- "type": "reference",
- "id": 406,
- "name": "UserAttributes"
- }
- ]
- },
- {
- "id": 370,
- "name": "Factor",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "comment": {
- "shortText": "A MFA factor.",
- "tags": [
- {
- "tag": "see",
- "text": "{@link GoTrueMFAApi#enroll}"
- },
- {
- "tag": "see",
- "text": "{@link GoTrueMFAApi#listFactors}"
- },
- {
- "tag": "see",
- "text": "{@link GoTrueMFAAdminApi#listFactors}\n"
- }
- ]
- },
- "children": [
- {
- "id": 375,
- "name": "created_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 196,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 373,
- "name": "factor_type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Type of factor. Only `totp` supported with this version but may change in\nfuture versions."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 191,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 372,
- "name": "friendly_name",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 185,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 371,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the factor."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 182,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 374,
- "name": "status",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Factor's status."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 194,
- "character": 2
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "verified"
- },
- {
- "type": "literal",
- "value": "unverified"
- }
- ]
- }
- },
- {
- "id": 376,
- "name": "updated_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 197,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [375, 373, 372, 371, 374, 376]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 180,
- "character": 17
- }
- ]
- },
- {
- "id": 540,
- "name": "GenerateLinkOptions",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "children": [
- {
- "id": 541,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 540,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 542,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The URL which will be appended to the email link generated."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 542,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [541, 542]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 534,
- "character": 17
- }
- ]
- },
- {
- "id": 699,
- "name": "GoTrueAdminMFAApi",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "comment": {
- "shortText": "Contains the full multi-factor authentication administration API.",
- "tags": [
- {
- "tag": "expermental",
- "text": "\n"
- }
- ]
- },
- "children": [
- {
- "id": 703,
- "name": "deleteFactor",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "signatures": [
- {
- "id": 704,
- "name": "deleteFactor",
+ "id": 113,
+ "name": "signInWithOAuth",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
- }
- ]
+ "shortText": "Log in an existing user via a third-party provider."
},
"parameters": [
{
- "id": 705,
- "name": "params",
+ "id": 114,
+ "name": "credentials",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 683,
- "name": "AuthMFAAdminDeleteFactorParams",
+ "id": 478,
+ "name": "SignInWithOAuthCredentials",
"dereferenced": {
- "id": 683,
- "name": "AuthMFAAdminDeleteFactorParams",
+ "id": 478,
+ "name": "SignInWithOAuthCredentials",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
- "comment": {
- "tags": [
- {
- "tag": "expermental",
- "text": "\n"
- }
- ]
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 842,
+ "line": 433,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 684,
+ "id": 479,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 685,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the MFA factor to delete."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 844,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 686,
- "name": "userId",
+ "id": 481,
+ "name": "options",
"kind": 1024,
"kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the user whose factor is being deleted."
+ "flags": {
+ "isOptional": true
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 847,
+ "line": 436,
"character": 2
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [685, 686]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 842,
- "character": 45
- }
- ]
- }
- }
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 674,
- "name": "AuthMFAAdminDeleteFactorResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 700,
- "name": "listFactors",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "signatures": [
- {
- "id": 701,
- "name": "listFactors",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Lists all factors associated to a user."
- },
- "parameters": [
- {
- "id": 702,
- "name": "params",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 696,
- "name": "AuthMFAAdminListFactorsParams",
- "dereferenced": {
- "id": 696,
- "name": "AuthMFAAdminListFactorsParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "comment": {
- "tags": [
- {
- "tag": "expermental",
- "text": "\n"
- }
- ]
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 866,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 697,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 698,
- "name": "userId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the user."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 868,
- "character": 2
+ "type": "reflection",
+ "declaration": {
+ "id": 482,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 485,
+ "name": "queryParams",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "An object of query params"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 442,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 486,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 442,
+ "character": 18
+ }
+ ],
+ "indexSignature": {
+ "id": 487,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 488,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 483,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 438,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 484,
+ "name": "scopes",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A space-separated list of scopes granted to the OAuth application."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 440,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [485, 483, 484]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 436,
+ "character": 12
+ }
+ ]
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [698]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 866,
- "character": 44
- }
- ]
- }
- }
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 687,
- "name": "AuthMFAAdminListFactorsResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Methods",
- "kind": 2048,
- "children": [703, 700]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 876,
- "character": 17
- }
- ]
- },
- {
- "id": 654,
- "name": "GoTrueMFAApi",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "comment": {
- "shortText": "Contains the full multi-factor authentication API."
- },
- "children": [
- {
- "id": 658,
- "name": "challenge",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "signatures": [
- {
- "id": 659,
- "name": "challenge",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Prepares a challenge used to verify that a user has access to a MFA\nfactor."
- },
- "parameters": [
- {
- "id": 660,
- "name": "params",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 578,
- "name": "MFAChallengeParams",
- "dereferenced": {
- "id": 578,
- "name": "MFAChallengeParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 622,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 579,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ },
{
- "id": 580,
- "name": "factorId",
+ "id": 480,
+ "name": "provider",
"kind": 1024,
"kindString": "Property",
"flags": {},
"comment": {
- "shortText": "ID of the factor to be challenged. Returned in enroll()."
+ "shortText": "One of the providers supported by GoTrue."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 624,
+ "line": 435,
"character": 2
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "id": 285,
+ "name": "Provider",
+ "dereferenced": {
+ "id": 285,
+ "name": "Provider",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "shortText": "One of the providers supported by GoTrue."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 5,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ }
+ ]
+ }
+ }
}
}
],
@@ -14721,14 +15518,14 @@
{
"title": "Properties",
"kind": 1024,
- "children": [580]
+ "children": [481, 480]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 622,
- "character": 33
+ "line": 433,
+ "character": 41
}
]
}
@@ -14742,8 +15539,8 @@
"typeArguments": [
{
"type": "reference",
- "id": 622,
- "name": "AuthMFAChallengeResponse"
+ "id": 314,
+ "name": "OAuthResponse"
}
],
"qualifiedName": "Promise",
@@ -14754,124 +15551,409 @@
]
},
{
- "id": 667,
- "name": "challengeAndVerify",
+ "id": 115,
+ "name": "signInWithOtp",
"kind": 2048,
"kindString": "Method",
"flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 355,
+ "character": 8
+ }
+ ],
"signatures": [
{
- "id": 668,
- "name": "challengeAndVerify",
+ "id": 116,
+ "name": "signInWithOtp",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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."
+ "shortText": "Log in a user using magiclink or a one-time password (OTP).\nIf 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."
},
"parameters": [
{
- "id": 669,
- "name": "params",
+ "id": 117,
+ "name": "credentials",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 581,
- "name": "MFAChallengeAndVerifyParams",
+ "id": 462,
+ "name": "SignInWithPasswordlessCredentials",
"dereferenced": {
- "id": 581,
- "name": "MFAChallengeAndVerifyParams",
+ "id": 462,
+ "name": "SignInWithPasswordlessCredentials",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 627,
+ "line": 397,
"character": 12
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 582,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 584,
- "name": "code",
- "kind": 1024,
- "kindString": "Property",
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 463,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "Verification code provided by the user."
- },
- "sources": [
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 631,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 583,
- "name": "factorId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the factor being verified. Returned in enroll()."
- },
- "sources": [
+ "id": 464,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email address."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 400,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 629,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [584, 583]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 627,
- "character": 42
- }
- ]
- }
- }
- }
- }
- }
- ],
+ "id": 465,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 401,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 466,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 470,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 413,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 469,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 411,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 467,
+ "name": "emailRedirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The redirect url embedded in the email link"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 403,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 468,
+ "name": "shouldCreateUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If set to false, this method will not create a new user. Defaults to true."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 405,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [470, 469, 467, 468]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 401,
+ "character": 16
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [464, 465]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 398,
+ "character": 4
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 471,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 473,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 419,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 474,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 477,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 429,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 476,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 427,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 475,
+ "name": "shouldCreateUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If set to false, this method will not create a new user. Defaults to true."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 421,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [477, 476, 475]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 419,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 472,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 418,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [473, 472]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 416,
+ "character": 4
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ ],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reference",
- "id": 585,
- "name": "AuthMFAVerifyResponse"
+ "id": 301,
+ "name": "AuthResponse"
}
],
"qualifiedName": "Promise",
@@ -14882,138 +15964,370 @@
]
},
{
- "id": 655,
- "name": "enroll",
+ "id": 109,
+ "name": "signInWithPassword",
"kind": 2048,
"kindString": "Method",
"flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 288,
+ "character": 8
+ }
+ ],
"signatures": [
{
- "id": 656,
- "name": "enroll",
+ "id": 110,
+ "name": "signInWithPassword",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "shortText": "Log in an existing user with an email and password or phone and password."
},
"parameters": [
{
- "id": 657,
- "name": "params",
+ "id": 111,
+ "name": "credentials",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 565,
- "name": "MFAEnrollParams",
+ "id": 447,
+ "name": "SignInWithPasswordCredentials",
"dereferenced": {
- "id": 565,
- "name": "MFAEnrollParams",
+ "id": 447,
+ "name": "SignInWithPasswordCredentials",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 597,
+ "line": 363,
"character": 12
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 566,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 567,
- "name": "factorType",
- "kind": 1024,
- "kindString": "Property",
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 448,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "The type of factor being enrolled."
- },
- "sources": [
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 599,
- "character": 2
+ "id": 449,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email address."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 366,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 451,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 369,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 452,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 454,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 377,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 453,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 375,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [454, 453]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 369,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 450,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 368,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [449, 451, 450]
}
],
- "type": {
- "type": "literal",
- "value": "totp"
- }
- },
- {
- "id": 569,
- "name": "friendlyName",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Human readable name assigned to the factor."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 603,
- "character": 2
+ "line": 364,
+ "character": 4
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 455,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 458,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 385,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 459,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 461,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 393,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 460,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 391,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [461, 460]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 385,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 457,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 384,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 456,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 382,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [458, 457, 456]
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 568,
- "name": "issuer",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Domain which the user is enrolled with."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 601,
- "character": 2
+ "line": 380,
+ "character": 4
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [567, 569, 568]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 597,
- "character": 30
+ ]
}
- ]
- }
+ }
+ ]
}
}
}
@@ -15024,8 +16338,8 @@
"typeArguments": [
{
"type": "reference",
- "id": 598,
- "name": "AuthMFAEnrollResponse"
+ "id": 301,
+ "name": "AuthResponse"
}
],
"qualifiedName": "Promise",
@@ -15036,319 +16350,276 @@
]
},
{
- "id": 672,
- "name": "getAuthenticatorAssuranceLevel",
+ "id": 121,
+ "name": "signInWithSSO",
"kind": 2048,
"kindString": "Method",
"flags": {},
- "signatures": [
+ "sources": [
{
- "id": 673,
- "name": "getAuthenticatorAssuranceLevel",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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"
- },
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 643,
- "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
+ "fileName": "src/GoTrueClient.ts",
+ "line": 458,
+ "character": 8
}
- ]
- },
- {
- "id": 670,
- "name": "listFactors",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
+ ],
"signatures": [
{
- "id": 671,
- "name": "listFactors",
+ "id": 122,
+ "name": "signInWithSSO",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Returns the list of MFA factors enabled for this user. For most use cases\nyou should consider using {@link\nGoTrueMFAApi#getAuthenticatorAssuranceLevel}. This uses a cached version\nof the factors and avoids incurring a network call. If you need to update\nthis list, call {@link GoTrueClient#getUser} first.",
+ "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\nThis API is experimental and availability is conditional on correct\nsettings on the Auth service.\n",
"tags": [
{
- "tag": "see",
- "text": "{@link GoTrueMFAApi#enroll}"
- },
- {
- "tag": "see",
- "text": "{@link GoTrueMFAApi#getAuthenticatorAssuranceLevel}"
- },
- {
- "tag": "see",
- "text": "{@link GoTrueClient#getUser}\n\n"
+ "tag": "experimental",
+ "text": "\n"
}
]
},
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 632,
- "name": "AuthMFAListFactorsResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 664,
- "name": "unenroll",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "signatures": [
- {
- "id": 665,
- "name": "unenroll",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Unenroll removes a MFA factor.\nA user has to have an `aal2` authenticator level in order to unenroll a `verified` factor."
- },
"parameters": [
{
- "id": 666,
+ "id": 123,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 570,
- "name": "MFAUnenrollParams",
+ "id": 508,
+ "name": "SignInWithSSO",
"dereferenced": {
- "id": 570,
- "name": "MFAUnenrollParams",
+ "id": 508,
+ "name": "SignInWithSSO",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 606,
+ "line": 484,
"character": 12
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 571,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 572,
- "name": "factorId",
- "kind": 1024,
- "kindString": "Property",
+ "type": "intersection",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 509,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "ID of the factor being unenrolled."
- },
+ "children": [
+ {
+ "id": 510,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 485,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 511,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 513,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 489,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 512,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A URL to send the user to after they have signed-in."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 487,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [513, 512]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 485,
+ "character": 12
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [510]
+ }
+ ],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 608,
- "character": 2
+ "line": 484,
+ "character": 28
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [572]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 606,
- "character": 32
+ ]
}
- ]
- }
- }
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 613,
- "name": "AuthMFAUnenrollResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 661,
- "name": "verify",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "signatures": [
- {
- "id": 662,
- "name": "verify",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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."
- },
- "parameters": [
- {
- "id": 663,
- "name": "params",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 573,
- "name": "MFAVerifyParams",
- "dereferenced": {
- "id": 573,
- "name": "MFAVerifyParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 611,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 574,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 576,
- "name": "challengeId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the challenge being verified. Returned in challenge()."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 616,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 577,
- "name": "code",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Verification code provided by the user."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 619,
- "character": 2
+ },
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 514,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 515,
+ "name": "providerId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "UUID of the SSO provider to invoke single-sign on to."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 494,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [515]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 492,
+ "character": 4
+ }
+ ]
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 575,
- "name": "factorId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the factor being verified. Returned in enroll()."
},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 613,
- "character": 2
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 516,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 517,
+ "name": "domain",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Domain name of the organization for which to invoke single-sign on."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 498,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [517]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 496,
+ "character": 4
+ }
+ ]
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [576, 577, 575]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 611,
- "character": 30
- }
- ]
- }
+ ]
+ }
+ ]
}
}
}
@@ -15359,8 +16630,8 @@
"typeArguments": [
{
"type": "reference",
- "id": 585,
- "name": "AuthMFAVerifyResponse"
+ "id": 327,
+ "name": "SSOResponse"
}
],
"qualifiedName": "Promise",
@@ -15369,305 +16640,134 @@
}
}
]
- }
- ],
- "groups": [
- {
- "title": "Methods",
- "kind": 2048,
- "children": [658, 667, 655, 672, 670, 664, 661]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 759,
- "character": 17
- }
- ]
- },
- {
- "id": 347,
- "name": "Session",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "children": [
- {
- "id": 350,
- "name": "access_token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 125,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 353,
- "name": "expires_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 137,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
},
{
- "id": 352,
- "name": "expires_in",
- "kind": 1024,
- "kindString": "Property",
+ "id": 181,
+ "name": "signOut",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "comment": {
- "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 133,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 349,
- "name": "provider_refresh_token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "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."
- },
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 121,
- "character": 2
+ "fileName": "src/GoTrueClient.ts",
+ "line": 809,
+ "character": 8
}
],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- },
- {
- "id": 348,
- "name": "provider_token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
- },
- "sources": [
+ "signatures": [
{
- "fileName": "src/lib/types.ts",
- "line": 116,
- "character": 2
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
+ "id": 182,
+ "name": "signOut",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand 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"
},
- {
- "type": "intrinsic",
- "name": "string"
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 183,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 184,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 809,
+ "character": 29
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [184]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
- ]
- }
- },
- {
- "id": 351,
- "name": "refresh_token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "A one-time used refresh token that never expires."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 129,
- "character": 2
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ ]
},
{
- "id": 354,
- "name": "token_type",
- "kind": 1024,
- "kindString": "Property",
+ "id": 106,
+ "name": "signUp",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 138,
- "character": 2
+ "fileName": "src/GoTrueClient.ts",
+ "line": 225,
+ "character": 8
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 355,
- "name": "user",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "signatures": [
{
- "fileName": "src/lib/types.ts",
- "line": 139,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 384,
- "name": "User"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [350, 353, 352, 349, 348, 351, 354, 355]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 112,
- "character": 17
- }
- ]
- },
- {
- "id": 421,
- "name": "Subscription",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "children": [
- {
- "id": 422,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The subscriber UUID. This will be set by the client."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 313,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 423,
- "name": "callback",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 317,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 424,
- "name": "callback",
+ "id": 107,
+ "name": "signUp",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "The function to call every time there is an event. eg: (eventName) => {}"
+ "shortText": "Creates a new user.",
+ "returns": "A logged-in session if the server has \"autoconfirm\" ON"
},
"parameters": [
{
- "id": 425,
- "name": "event",
+ "id": 108,
+ "name": "credentials",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 287,
- "name": "AuthChangeEvent",
+ "id": 431,
+ "name": "SignUpWithPasswordCredentials",
"dereferenced": {
- "id": 287,
- "name": "AuthChangeEvent",
+ "id": 431,
+ "name": "SignUpWithPasswordCredentials",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 25,
+ "line": 328,
"character": 12
}
],
@@ -15675,533 +16775,1078 @@
"type": "union",
"types": [
{
- "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": "USER_DELETED"
+ "type": "reflection",
+ "declaration": {
+ "id": 432,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 433,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email address."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 331,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 435,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 334,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 436,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 439,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 344,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 438,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 342,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 437,
+ "name": "emailRedirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The redirect url embedded in the email link"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 336,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [439, 438, 437]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 334,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 434,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 333,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [433, 435, 434]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 329,
+ "character": 4
+ }
+ ]
+ }
},
{
- "id": 286,
- "name": "AuthChangeEventMFA",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 23,
- "character": 12
- }
- ],
- "type": {
- "type": "literal",
- "value": "MFA_CHALLENGE_VERIFIED"
+ "type": "reflection",
+ "declaration": {
+ "id": 440,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 443,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 352,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 444,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 446,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 360,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 358,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [446, 445]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 352,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 442,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 351,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 441,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 349,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [443, 442, 441]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 347,
+ "character": 4
+ }
+ ]
}
}
]
}
}
}
- },
- {
- "id": 426,
- "name": "session",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reference",
- "id": 347,
- "name": "Session"
- }
- ]
- }
}
],
"type": {
- "type": "intrinsic",
- "name": "void"
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 301,
+ "name": "AuthResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
}
]
},
{
- "id": 427,
- "name": "unsubscribe",
+ "id": 144,
+ "name": "updateUser",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 321,
- "character": 2
+ "fileName": "src/GoTrueClient.ts",
+ "line": 579,
+ "character": 8
}
],
"signatures": [
{
- "id": 428,
- "name": "unsubscribe",
+ "id": 145,
+ "name": "updateUser",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Call this to remove the listener."
+ "shortText": "Updates user data, if there is a logged in user."
},
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [422]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [423, 427]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 309,
- "character": 17
- }
- ]
- },
- {
- "id": 429,
- "name": "UpdatableFactorAttributes",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "children": [
- {
- "id": 430,
- "name": "friendlyName",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 325,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [430]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 324,
- "character": 17
- }
- ]
- },
- {
- "id": 384,
- "name": "User",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "children": [
- {
- "id": 394,
- "name": "action_link",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 219,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 386,
- "name": "app_metadata",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 211,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 377,
- "name": "UserAppMetadata"
- }
- },
- {
- "id": 388,
- "name": "aud",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 213,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 389,
- "name": "confirmation_sent_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 214,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 398,
- "name": "confirmed_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 223,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 397,
- "name": "created_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 222,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 395,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 220,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 391,
- "name": "email_change_sent_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 216,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 399,
- "name": "email_confirmed_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 224,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 405,
- "name": "factors",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 230,
- "character": 2
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 370,
- "name": "Factor"
+ "parameters": [
+ {
+ "id": 146,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 406,
+ "name": "UserAttributes",
+ "dereferenced": {
+ "id": 406,
+ "name": "UserAttributes",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 410,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 255,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 407,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 237,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 409,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 247,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 408,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's phone."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 242,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [410, 407, 409, 408]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 233,
+ "character": 17
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 411,
+ "name": "AdminUserAttributes"
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- }
+ ]
},
{
- "id": 385,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
+ "id": 118,
+ "name": "verifyOtp",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/lib/types.ts",
- "line": 210,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 404,
- "name": "identities",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 229,
- "character": 2
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 359,
- "name": "UserIdentity"
- }
- }
- },
- {
- "id": 393,
- "name": "invited_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 218,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 401,
- "name": "last_sign_in_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 226,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 392,
- "name": "new_email",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 217,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 396,
- "name": "phone",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 221,
- "character": 2
+ "fileName": "src/GoTrueClient.ts",
+ "line": 399,
+ "character": 8
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 400,
- "name": "phone_confirmed_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ "signatures": [
{
- "fileName": "src/lib/types.ts",
- "line": 225,
- "character": 2
+ "id": 119,
+ "name": "verifyOtp",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Log in a user given a User supplied OTP received via mobile."
+ },
+ "parameters": [
+ {
+ "id": 120,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 489,
+ "name": "VerifyOtpParams",
+ "dereferenced": {
+ "id": 489,
+ "name": "VerifyOtpParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 446,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "id": 490,
+ "name": "VerifyMobileOtpParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 494,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 454,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 495,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 497,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site.",
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "\n"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 463,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 496,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 456,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [497, 496]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 491,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 449,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 492,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The otp sent to the user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 451,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 493,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's verification type."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 453,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 506,
+ "name": "MobileOtpType",
+ "dereferenced": {
+ "id": 506,
+ "name": "MobileOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 481,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "phone_change"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [494, 491, 492, 493]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 447,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 498,
+ "name": "VerifyEmailOtpParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 499,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email address."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 468,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 502,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 473,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 503,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 505,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 477,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 504,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 475,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [505, 504]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 500,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The otp sent to the user's email address."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 470,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 501,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's verification type."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 472,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 507,
+ "name": "EmailOtpType",
+ "dereferenced": {
+ "id": 507,
+ "name": "EmailOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 482,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "email_change"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [499, 502, 500, 501]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 466,
+ "character": 17
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 301,
+ "name": "AuthResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [76]
},
{
- "id": 390,
- "name": "recovery_sent_at",
+ "title": "Properties",
+ "kind": 1024,
+ "children": [79, 80]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 124, 141, 102, 185, 160, 196, 154, 112, 115, 109, 121, 181, 106, 144, 118
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 82,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 356,
+ "name": "AMREntry",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "comment": {
+ "shortText": "An authentication methord reference (AMR) entry.",
+ "text": "An entry designates what method was used by the user to verify their\nidentity and at what time.\n",
+ "tags": [
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#getAuthenticatorAssuranceLevel}.\n"
+ }
+ ]
+ },
+ "children": [
+ {
+ "id": 357,
+ "name": "method",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
+ "flags": {},
+ "comment": {
+ "shortText": "Authentication method name."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 215,
+ "line": 152,
"character": 2
}
],
@@ -16211,62 +17856,24 @@
}
},
{
- "id": 402,
- "name": "role",
+ "id": 358,
+ "name": "timestamp",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 227,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 403,
- "name": "updated_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
+ "flags": {},
+ "comment": {
+ "shortText": "Timestamp when the method was successfully used. Represents number of\nseconds since 1st January 1970 (UNIX epoch) in UTC."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 228,
+ "line": 158,
"character": 2
}
],
"type": {
"type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 387,
- "name": "user_metadata",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 212,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 381,
- "name": "UserMetadata"
+ "name": "number"
}
}
],
@@ -16274,95 +17881,74 @@
{
"title": "Properties",
"kind": 1024,
- "children": [
- 394, 386, 388, 389, 398, 397, 395, 391, 399, 405, 385, 404, 393, 401, 392, 396, 400,
- 390, 402, 403, 387
- ]
+ "children": [357, 358]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 209,
+ "line": 150,
"character": 17
}
]
},
{
- "id": 377,
- "name": "UserAppMetadata",
+ "id": 411,
+ "name": "AdminUserAttributes",
"kind": 256,
"kindString": "Interface",
"flags": {},
"children": [
{
- "id": 378,
- "name": "provider",
+ "id": 413,
+ "name": "app_metadata",
"kind": 1024,
"kindString": "Property",
"flags": {
"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"
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 201,
+ "line": 280,
"character": 2
}
],
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "object"
}
- }
- ],
- "groups": [
+ },
{
- "title": "Properties",
+ "id": 416,
+ "name": "ban_duration",
"kind": 1024,
- "children": [378]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 200,
- "character": 17
- }
- ],
- "indexSignature": {
- "id": 379,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 380,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 306,
+ "character": 2
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- },
- {
- "id": 406,
- "name": "UserAttributes",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "children": [
+ },
{
- "id": 410,
+ "id": 420,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -16383,10 +17969,15 @@
"type": {
"type": "intrinsic",
"name": "object"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 410,
+ "name": "UserAttributes.data"
}
},
{
- "id": 407,
+ "id": 417,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -16406,10 +17997,39 @@
"type": {
"type": "intrinsic",
"name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 407,
+ "name": "UserAttributes.email"
}
},
{
- "id": 409,
+ "id": 414,
+ "name": "email_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Confirms the user's email address if set to true.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 287,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 419,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -16429,10 +18049,15 @@
"type": {
"type": "intrinsic",
"name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 409,
+ "name": "UserAttributes.password"
}
},
{
- "id": 408,
+ "id": 418,
"name": "phone",
"kind": 1024,
"kindString": "Property",
@@ -16452,6 +18077,59 @@
"type": {
"type": "intrinsic",
"name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 408,
+ "name": "UserAttributes.phone"
+ }
+ },
+ {
+ "id": 415,
+ "name": "phone_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Confirms the user's phone number if set to true.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 294,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 412,
+ "name": "user_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "Only a service role can modify.\n\nThe `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 270,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
}
}
],
@@ -16459,33 +18137,50 @@
{
"title": "Properties",
"kind": 1024,
- "children": [410, 407, 409, 408]
+ "children": [413, 416, 420, 417, 414, 419, 418, 415, 412]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 233,
+ "line": 258,
"character": 17
}
],
- "extendedBy": [
+ "extendedTypes": [
{
"type": "reference",
- "id": 411,
- "name": "AdminUserAttributes"
+ "id": 406,
+ "name": "UserAttributes"
}
]
},
{
- "id": 359,
- "name": "UserIdentity",
+ "id": 370,
+ "name": "Factor",
"kind": 256,
"kindString": "Interface",
"flags": {},
+ "comment": {
+ "shortText": "A MFA factor.",
+ "tags": [
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#enroll}"
+ },
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#listFactors}"
+ },
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAAdminApi#listFactors}\n"
+ }
+ ]
+ },
"children": [
{
- "id": 367,
+ "id": 375,
"name": "created_at",
"kind": 1024,
"kindString": "Property",
@@ -16493,7 +18188,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 168,
+ "line": 196,
"character": 2
}
],
@@ -16503,15 +18198,18 @@
}
},
{
- "id": 360,
- "name": "id",
+ "id": 373,
+ "name": "factor_type",
"kind": 1024,
"kindString": "Property",
"flags": {},
+ "comment": {
+ "shortText": "Type of factor. Only `totp` supported with this version but may change in\nfuture versions."
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 162,
+ "line": 191,
"character": 2
}
],
@@ -16521,62 +18219,20 @@
}
},
{
- "id": 362,
- "name": "identity_data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 164,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 363,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 364,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 365,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- },
- {
- "id": 368,
- "name": "last_sign_in_at",
+ "id": 372,
+ "name": "friendly_name",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Friendly name of the factor, useful to disambiguate between multiple factors."
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 169,
+ "line": 185,
"character": 2
}
],
@@ -16586,15 +18242,18 @@
}
},
{
- "id": 366,
- "name": "provider",
+ "id": 371,
+ "name": "id",
"kind": 1024,
"kindString": "Property",
"flags": {},
+ "comment": {
+ "shortText": "ID of the factor."
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 167,
+ "line": 182,
"character": 2
}
],
@@ -16604,35 +18263,45 @@
}
},
{
- "id": 369,
- "name": "updated_at",
+ "id": 374,
+ "name": "status",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
+ "flags": {},
+ "comment": {
+ "shortText": "Factor's status."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 170,
+ "line": 194,
"character": 2
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "verified"
+ },
+ {
+ "type": "literal",
+ "value": "unverified"
+ }
+ ]
}
},
{
- "id": 361,
- "name": "user_id",
+ "id": 376,
+ "name": "updated_at",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 163,
+ "line": 197,
"character": 2
}
],
@@ -16646,1110 +18315,1386 @@
{
"title": "Properties",
"kind": 1024,
- "children": [367, 360, 362, 368, 366, 369, 361]
+ "children": [375, 373, 372, 371, 374, 376]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 161,
+ "line": 180,
"character": 17
}
]
},
{
- "id": 381,
- "name": "UserMetadata",
- "kind": 256,
- "kindString": "Interface",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 205,
- "character": 17
- }
- ],
- "indexSignature": {
- "id": 382,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 383,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- },
- {
- "id": 498,
- "name": "VerifyEmailOtpParams",
+ "id": 540,
+ "name": "GenerateLinkOptions",
"kind": 256,
"kindString": "Interface",
"flags": {},
"children": [
{
- "id": 499,
- "name": "email",
+ "id": 541,
+ "name": "data",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"comment": {
- "shortText": "The user's email address."
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 468,
+ "line": 540,
"character": 2
}
],
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "object"
}
},
{
- "id": 502,
- "name": "options",
+ "id": 542,
+ "name": "redirectTo",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
+ "comment": {
+ "shortText": "The URL which will be appended to the email link generated."
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 473,
+ "line": 542,
"character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 503,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 505,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 477,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 504,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A URL to send the user to after they are confirmed."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 475,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [505, 504]
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
}
- },
- {
- "id": 500,
- "name": "token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The otp sent to the user's email address."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 470,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 501,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's verification type."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 472,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 507,
- "name": "EmailOtpType"
- }
- }
- ],
- "groups": [
+ }
+ ],
+ "groups": [
{
"title": "Properties",
"kind": 1024,
- "children": [499, 502, 500, 501]
+ "children": [541, 542]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 466,
+ "line": 534,
"character": 17
}
]
},
{
- "id": 490,
- "name": "VerifyMobileOtpParams",
+ "id": 699,
+ "name": "GoTrueAdminMFAApi",
"kind": 256,
"kindString": "Interface",
"flags": {},
+ "comment": {
+ "shortText": "Contains the full multi-factor authentication administration API.",
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
"children": [
{
- "id": 494,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ "id": 703,
+ "name": "deleteFactor",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
{
- "fileName": "src/lib/types.ts",
- "line": 454,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 495,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 704,
+ "name": "deleteFactor",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "children": [
- {
- "id": 497,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site.",
- "tags": [
- {
- "tag": "deprecated",
- "text": "\n"
- }
- ]
+ "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"
},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 463,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ {
+ "tag": "expermental",
+ "text": "\n"
}
- },
+ ]
+ },
+ "parameters": [
{
- "id": 496,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A URL to send the user to after they are confirmed."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 456,
- "character": 4
- }
- ],
+ "id": 705,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "dereferenced": {
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 842,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 684,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 685,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the MFA factor to delete."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 844,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 686,
+ "name": "userId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the user whose factor is being deleted."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 847,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [685, 686]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 842,
+ "character": 45
+ }
+ ]
+ }
+ }
+ }
}
}
],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [497, 496]
- }
- ]
- }
- }
- },
- {
- "id": 491,
- "name": "phone",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's phone number."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 449,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 492,
- "name": "token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The otp sent to the user's phone number."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 451,
- "character": 2
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 674,
+ "name": "AuthMFAAdminDeleteFactorResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ ]
},
{
- "id": 493,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
+ "id": 700,
+ "name": "listFactors",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "comment": {
- "shortText": "The user's verification type."
- },
- "sources": [
+ "signatures": [
{
- "fileName": "src/lib/types.ts",
- "line": 453,
- "character": 2
+ "id": 701,
+ "name": "listFactors",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Lists all factors associated to a user."
+ },
+ "parameters": [
+ {
+ "id": 702,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
+ "dereferenced": {
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 866,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 697,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 698,
+ "name": "userId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 868,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [698]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 866,
+ "character": 44
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 687,
+ "name": "AuthMFAAdminListFactorsResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- ],
- "type": {
- "type": "reference",
- "id": 506,
- "name": "MobileOtpType"
- }
+ ]
}
],
"groups": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [494, 491, 492, 493]
+ "title": "Methods",
+ "kind": 2048,
+ "children": [703, 700]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 447,
+ "line": 876,
"character": 17
}
]
},
{
- "id": 287,
- "name": "AuthChangeEvent",
- "kind": 4194304,
- "kindString": "Type alias",
+ "id": 654,
+ "name": "GoTrueMFAApi",
+ "kind": 256,
+ "kindString": "Interface",
"flags": {},
- "sources": [
+ "comment": {
+ "shortText": "Contains the full multi-factor authentication API."
+ },
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 25,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "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": "USER_DELETED"
- },
- {
- "id": 286,
- "name": "AuthChangeEventMFA",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 23,
- "character": 12
- }
- ],
- "type": {
- "type": "literal",
- "value": "MFA_CHALLENGE_VERIFIED"
- }
- }
- ]
- }
- },
- {
- "id": 286,
- "name": "AuthChangeEventMFA",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 23,
- "character": 12
- }
- ],
- "type": {
- "type": "literal",
- "value": "MFA_CHALLENGE_VERIFIED"
- }
- },
- {
- "id": 683,
- "name": "AuthMFAAdminDeleteFactorParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "comment": {
- "tags": [
- {
- "tag": "expermental",
- "text": "\n"
- }
- ]
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 842,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 684,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 658,
+ "name": "challenge",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "children": [
+ "signatures": [
{
- "id": 685,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
+ "id": 659,
+ "name": "challenge",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "ID of the MFA factor to delete."
+ "shortText": "Prepares a challenge used to verify that a user has access to a MFA\nfactor."
},
- "sources": [
+ "parameters": [
{
- "fileName": "src/lib/types.ts",
- "line": 844,
- "character": 2
+ "id": 660,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 578,
+ "name": "MFAChallengeParams",
+ "dereferenced": {
+ "id": 578,
+ "name": "MFAChallengeParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 622,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 579,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 580,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor to be challenged. Returned in enroll()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 624,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [580]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 622,
+ "character": 33
+ }
+ ]
+ }
+ }
+ }
+ }
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 622,
+ "name": "AuthMFAChallengeResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 667,
+ "name": "challengeAndVerify",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
{
- "id": 686,
- "name": "userId",
- "kind": 1024,
- "kindString": "Property",
+ "id": 668,
+ "name": "challengeAndVerify",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "ID of the user whose factor is being deleted."
+ "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."
},
- "sources": [
+ "parameters": [
{
- "fileName": "src/lib/types.ts",
- "line": 847,
- "character": 2
+ "id": 669,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 581,
+ "name": "MFAChallengeAndVerifyParams",
+ "dereferenced": {
+ "id": 581,
+ "name": "MFAChallengeAndVerifyParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 627,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 582,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 584,
+ "name": "code",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Verification code provided by the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 631,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 583,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being verified. Returned in enroll()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 629,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [584, 583]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 627,
+ "character": 42
+ }
+ ]
+ }
+ }
+ }
+ }
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 585,
+ "name": "AuthMFAVerifyResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [685, 686]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 842,
- "character": 45
- }
]
- }
- }
- },
- {
- "id": 674,
- "name": "AuthMFAAdminDeleteFactorResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "comment": {
- "tags": [
- {
- "tag": "expermental",
- "text": "\n"
- }
- ]
- },
- "sources": [
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 829,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 675,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 655,
+ "name": "enroll",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 656,
+ "name": "enroll",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "children": [
+ "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"
+ },
+ "parameters": [
{
- "id": 676,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
+ "id": 657,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 831,
- "character": 6
- }
- ],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 677,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reference",
+ "id": 565,
+ "name": "MFAEnrollParams",
+ "dereferenced": {
+ "id": 565,
+ "name": "MFAEnrollParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 678,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
+ "fileName": "src/lib/types.ts",
+ "line": 597,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 566,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "ID of the factor that was successfully deleted."
- },
+ "children": [
+ {
+ "id": 567,
+ "name": "factorType",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The type of factor being enrolled."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 599,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "totp"
+ }
+ },
+ {
+ "id": 569,
+ "name": "friendlyName",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Human readable name assigned to the factor."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 603,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 568,
+ "name": "issuer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Domain which the user is enrolled with."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 601,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [567, 569, 568]
+ }
+ ],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 833,
- "character": 8
+ "line": 597,
+ "character": 30
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [678]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 831,
- "character": 12
+ ]
}
- ]
+ }
}
}
- },
- {
- "id": 679,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 835,
- "character": 6
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [676, 679]
}
],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 830,
- "character": 4
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 680,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 681,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 837,
- "character": 6
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- },
- {
- "id": 682,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 837,
- "character": 18
- }
- ],
- "type": {
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
"type": "reference",
- "id": 727,
- "name": "AuthError"
+ "id": 598,
+ "name": "AuthMFAEnrollResponse"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [681, 682]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 837,
- "character": 4
- }
- ]
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- }
- ]
- }
- },
- {
- "id": 696,
- "name": "AuthMFAAdminListFactorsParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "comment": {
- "tags": [
- {
- "tag": "expermental",
- "text": "\n"
- }
- ]
- },
- "sources": [
+ ]
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 866,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 697,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 672,
+ "name": "getAuthenticatorAssuranceLevel",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "children": [
+ "signatures": [
{
- "id": 698,
- "name": "userId",
- "kind": 1024,
- "kindString": "Property",
+ "id": 673,
+ "name": "getAuthenticatorAssuranceLevel",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "ID of the user."
+ "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"
},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 868,
- "character": 2
- }
- ],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 643,
+ "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [698]
- }
- ],
- "sources": [
+ ]
+ },
+ {
+ "id": 670,
+ "name": "listFactors",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
{
- "fileName": "src/lib/types.ts",
- "line": 866,
- "character": 44
+ "id": 671,
+ "name": "listFactors",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the list of MFA factors enabled for this user. For most use cases\nyou should consider using {@link\nGoTrueMFAApi#getAuthenticatorAssuranceLevel}. This uses a cached version\nof the factors and avoids incurring a network call. If you need to update\nthis list, call {@link GoTrueClient#getUser} first.",
+ "tags": [
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#enroll}"
+ },
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#getAuthenticatorAssuranceLevel}"
+ },
+ {
+ "tag": "see",
+ "text": "{@link GoTrueClient#getUser}\n\n"
+ }
+ ]
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 632,
+ "name": "AuthMFAListFactorsResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
]
- }
- }
- },
- {
- "id": 687,
- "name": "AuthMFAAdminListFactorsResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "comment": {
- "tags": [
- {
- "tag": "expermental",
- "text": "\n"
- }
- ]
- },
- "sources": [
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 853,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 688,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 664,
+ "name": "unenroll",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 665,
+ "name": "unenroll",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "children": [
+ "comment": {
+ "shortText": "Unenroll removes a MFA factor.\nA user has to have an `aal2` authenticator level in order to unenroll a `verified` factor."
+ },
+ "parameters": [
{
- "id": 689,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
+ "id": 666,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 855,
- "character": 6
- }
- ],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 690,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reference",
+ "id": 570,
+ "name": "MFAUnenrollParams",
+ "dereferenced": {
+ "id": 570,
+ "name": "MFAUnenrollParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 691,
- "name": "factors",
- "kind": 1024,
- "kindString": "Property",
+ "fileName": "src/lib/types.ts",
+ "line": 606,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 571,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "All factors attached to the user."
- },
- "sources": [
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 857,
- "character": 8
+ "id": 572,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being unenrolled."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 608,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 370,
- "name": "Factor"
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [572]
}
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [691]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 855,
- "character": 12
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 606,
+ "character": 32
+ }
+ ]
}
- ]
- }
- }
- },
- {
- "id": 692,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 859,
- "character": 6
+ }
}
- ],
- "type": {
- "type": "literal",
- "value": null
}
}
],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [689, 692]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 854,
- "character": 4
- }
- ]
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 613,
+ "name": "AuthMFAUnenrollResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 693,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ ]
+ },
+ {
+ "id": 661,
+ "name": "verify",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 662,
+ "name": "verify",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "children": [
- {
- "id": 694,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 861,
- "character": 6
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- },
+ "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."
+ },
+ "parameters": [
{
- "id": 695,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
+ "id": 663,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 861,
- "character": 18
- }
- ],
"type": {
"type": "reference",
- "id": 727,
- "name": "AuthError"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [694, 695]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 861,
- "character": 4
- }
- ]
- }
- }
- ]
- }
- },
- {
- "id": 622,
- "name": "AuthMFAChallengeResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
+ "id": 573,
+ "name": "MFAVerifyParams",
+ "dereferenced": {
+ "id": 573,
+ "name": "MFAVerifyParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 611,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 574,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 576,
+ "name": "challengeId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the challenge being verified. Returned in challenge()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 616,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 577,
+ "name": "code",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Verification code provided by the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 619,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 575,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being verified. Returned in enroll()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 613,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [576, 577, 575]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 611,
+ "character": 30
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 585,
+ "name": "AuthMFAVerifyResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
{
- "fileName": "src/lib/types.ts",
- "line": 702,
- "character": 12
+ "title": "Methods",
+ "kind": 2048,
+ "children": [658, 667, 655, 672, 670, 664, 661]
}
],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 623,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 759,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 347,
+ "name": "Session",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 350,
+ "name": "access_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 125,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 353,
+ "name": "expires_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 137,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 352,
+ "name": "expires_in",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 133,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 349,
+ "name": "provider_refresh_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 121,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 348,
+ "name": "provider_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The oauth provider token. If present, this can be used to make external API requests to the oauth provider used."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 116,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 351,
+ "name": "refresh_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "A one-time used refresh token that never expires."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 129,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 354,
+ "name": "token_type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 138,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 355,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 139,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 384,
+ "name": "User",
+ "dereferenced": {
+ "id": 384,
+ "name": "User",
+ "kind": 256,
+ "kindString": "Interface",
"flags": {},
"children": [
{
- "id": 624,
- "name": "data",
+ "id": 394,
+ "name": "action_link",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 219,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 386,
+ "name": "app_metadata",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 704,
- "character": 6
+ "line": 211,
+ "character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 625,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reference",
+ "id": 377,
+ "name": "UserAppMetadata",
+ "dereferenced": {
+ "id": 377,
+ "name": "UserAppMetadata",
+ "kind": 256,
+ "kindString": "Interface",
"flags": {},
"children": [
{
- "id": 627,
- "name": "expires_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Timestamp in UNIX seconds when this challenge will no longer be usable."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 709,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 626,
- "name": "id",
+ "id": 378,
+ "name": "provider",
"kind": 1024,
"kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the newly created challenge."
+ "flags": {
+ "isOptional": true
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 706,
- "character": 8
+ "line": 201,
+ "character": 2
}
],
"type": {
@@ -17762,1074 +19707,458 @@
{
"title": "Properties",
"kind": 1024,
- "children": [627, 626]
+ "children": [378]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 704,
- "character": 12
+ "line": 200,
+ "character": 17
}
- ]
+ ],
+ "indexSignature": {
+ "id": 379,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 380,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
}
}
},
{
- "id": 628,
- "name": "error",
+ "id": 388,
+ "name": "aud",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 711,
- "character": 6
+ "line": 213,
+ "character": 2
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ],
- "groups": [
+ },
{
- "title": "Properties",
+ "id": 389,
+ "name": "confirmation_sent_at",
"kind": 1024,
- "children": [624, 628]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 703,
- "character": 4
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 629,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 214,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
{
- "id": 630,
- "name": "data",
+ "id": 398,
+ "name": "confirmed_at",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 713,
- "character": 6
+ "line": 223,
+ "character": 2
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 631,
- "name": "error",
+ "id": 397,
+ "name": "created_at",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 713,
- "character": 18
+ "line": 222,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [630, 631]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 713,
- "character": 4
- }
- ]
- }
- }
- ]
- }
- },
- {
- "id": 598,
- "name": "AuthMFAEnrollResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 659,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 599,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ },
{
- "id": 600,
- "name": "data",
+ "id": 395,
+ "name": "email",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 661,
- "character": 6
+ "line": 220,
+ "character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 601,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 602,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the factor that was just enrolled (in an unverified state)."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 663,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 604,
- "name": "totp",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "TOTP enrollment information."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 669,
- "character": 8
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 605,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 606,
- "name": "qr_code",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Contains a QR code encoding the authenticator URI. You can\nconvert it to a URL by prepending `data:image/svg+xml;utf-8,` to\nthe value. Avoid logging this value to the console."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 673,
- "character": 10
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 607,
- "name": "secret",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The TOTP secret (also encoded in the QR code). Show this secret\nin a password-style field to the user, in case they are unable to\nscan the QR code. Avoid logging this value to the console."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 678,
- "character": 10
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 608,
- "name": "uri",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The authenticator URI encoded within the QR code, should you need\nto use it. Avoid loggin this value to the console."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 682,
- "character": 10
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [606, 607, 608]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 669,
- "character": 14
- }
- ]
- }
- }
- },
- {
- "id": 603,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Type of MFA factor. Only `totp` supported for now."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 666,
- "character": 8
- }
- ],
- "type": {
- "type": "literal",
- "value": "totp"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [602, 604, 603]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 661,
- "character": 12
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 609,
- "name": "error",
+ "id": 391,
+ "name": "email_change_sent_at",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 685,
- "character": 6
+ "line": 216,
+ "character": 2
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ],
- "groups": [
+ },
{
- "title": "Properties",
+ "id": 399,
+ "name": "email_confirmed_at",
"kind": 1024,
- "children": [600, 609]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 660,
- "character": 4
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 610,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 224,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
{
- "id": 611,
- "name": "data",
+ "id": 405,
+ "name": "factors",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 688,
- "character": 6
+ "line": 230,
+ "character": 2
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 370,
+ "name": "Factor"
+ }
}
},
{
- "id": 612,
- "name": "error",
+ "id": 385,
+ "name": "id",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 689,
- "character": 6
+ "line": 210,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [611, 612]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 687,
- "character": 4
- }
- ]
- }
- }
- ]
- }
- },
- {
- "id": 643,
- "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 730,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 644,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ },
{
- "id": 645,
- "name": "data",
+ "id": 404,
+ "name": "identities",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 732,
- "character": 6
+ "line": 229,
+ "character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 646,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 649,
- "name": "currentAuthenticationMethods",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "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."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 749,
- "character": 8
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 356,
- "name": "AMREntry"
- }
- }
- },
- {
- "id": 647,
- "name": "currentLevel",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Current AAL level of the session."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 734,
- "character": 8
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 642,
- "name": "AuthenticatorAssuranceLevels"
- },
- {
- "type": "literal",
- "value": null
- }
- ]
- }
- },
- {
- "id": 648,
- "name": "nextLevel",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "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"
- }
- ]
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 742,
- "character": 8
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 642,
- "name": "AuthenticatorAssuranceLevels"
- },
- {
- "type": "literal",
- "value": null
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [649, 647, 648]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 732,
- "character": 12
- }
- ]
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 359,
+ "name": "UserIdentity"
}
}
},
{
- "id": 650,
- "name": "error",
+ "id": 393,
+ "name": "invited_at",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 751,
- "character": 6
+ "line": 218,
+ "character": 2
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ],
- "groups": [
+ },
{
- "title": "Properties",
- "kind": 1024,
- "children": [645, 650]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 731,
- "character": 4
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 651,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 652,
- "name": "data",
+ "id": 401,
+ "name": "last_sign_in_at",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 753,
- "character": 6
+ "line": 226,
+ "character": 2
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 653,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 753,
- "character": 18
- }
- ],
- "type": {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [652, 653]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 753,
- "character": 4
- }
- ]
- }
- }
- ]
- }
- },
- {
- "id": 632,
- "name": "AuthMFAListFactorsResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 715,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 633,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 634,
- "name": "data",
+ "id": 392,
+ "name": "new_email",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 717,
- "character": 6
+ "line": 217,
+ "character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 635,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 636,
- "name": "all",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "All available factors (verified and unverified)."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 719,
- "character": 8
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 370,
- "name": "Factor"
- }
- }
- },
- {
- "id": 637,
- "name": "totp",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Only verified TOTP factors. (A subset of `all`.)"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 722,
- "character": 8
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 370,
- "name": "Factor"
- }
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [636, 637]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 717,
- "character": 12
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 638,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 724,
- "character": 6
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [634, 638]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 716,
- "character": 4
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 639,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 640,
- "name": "data",
+ "id": 396,
+ "name": "phone",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 726,
- "character": 6
+ "line": 221,
+ "character": 2
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 641,
- "name": "error",
+ "id": 400,
+ "name": "phone_confirmed_at",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 726,
- "character": 18
+ "line": 225,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [640, 641]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 726,
- "character": 4
- }
- ]
- }
- }
- ]
- }
- },
- {
- "id": 613,
- "name": "AuthMFAUnenrollResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 692,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 614,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ },
{
- "id": 615,
- "name": "data",
+ "id": 390,
+ "name": "recovery_sent_at",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 694,
- "character": 6
+ "line": 215,
+ "character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 616,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 617,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the factor that was successfully unenrolled."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 696,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [617]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 694,
- "character": 12
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 618,
- "name": "error",
+ "id": 402,
+ "name": "role",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 698,
- "character": 6
+ "line": 227,
+ "character": 2
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [615, 618]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 693,
- "character": 4
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 619,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ },
{
- "id": 620,
- "name": "data",
+ "id": 403,
+ "name": "updated_at",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 700,
- "character": 6
+ "line": 228,
+ "character": 2
}
],
"type": {
- "type": "literal",
- "value": null
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 621,
- "name": "error",
+ "id": 387,
+ "name": "user_metadata",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 700,
- "character": 18
+ "line": 212,
+ "character": 2
}
],
"type": {
"type": "reference",
- "id": 727,
- "name": "AuthError"
+ "id": 381,
+ "name": "UserMetadata",
+ "dereferenced": {
+ "id": 381,
+ "name": "UserMetadata",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 205,
+ "character": 17
+ }
+ ],
+ "indexSignature": {
+ "id": 382,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 383,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
}
}
],
@@ -18837,271 +20166,353 @@
{
"title": "Properties",
"kind": 1024,
- "children": [620, 621]
+ "children": [
+ 394, 386, 388, 389, 398, 397, 395, 391, 399, 405, 385, 404, 393, 401, 392,
+ 396, 400, 390, 402, 403, 387
+ ]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 700,
- "character": 4
+ "line": 209,
+ "character": 17
}
]
}
}
- ]
- }
- },
- {
- "id": 585,
- "name": "AuthMFAVerifyResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [350, 353, 352, 349, 348, 351, 354, 355]
+ }
+ ],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 634,
- "character": 12
+ "line": 112,
+ "character": 17
}
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 586,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 587,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 636,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 588,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ ]
+ },
+ {
+ "id": 421,
+ "name": "Subscription",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 422,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The subscriber UUID. This will be set by the client."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 313,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 423,
+ "name": "callback",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 317,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 424,
+ "name": "callback",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "The function to call every time there is an event. eg: (eventName) => {}"
+ },
+ "parameters": [
+ {
+ "id": 425,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 287,
+ "name": "AuthChangeEvent",
+ "dereferenced": {
+ "id": 287,
+ "name": "AuthChangeEvent",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 589,
- "name": "access_token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "New access token (JWT) after successful verification."
+ "fileName": "src/lib/types.ts",
+ "line": 25,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "PASSWORD_RECOVERY"
},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 638,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 591,
- "name": "expires_in",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Number of seconds in which the access token will expire."
+ {
+ "type": "literal",
+ "value": "SIGNED_IN"
},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 644,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 592,
- "name": "refresh_token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Refresh token you can use to obtain new access tokens when expired."
+ {
+ "type": "literal",
+ "value": "SIGNED_OUT"
},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 647,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 590,
- "name": "token_type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Type of token, typically `Bearer`."
+ {
+ "type": "literal",
+ "value": "TOKEN_REFRESHED"
},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 641,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 593,
- "name": "user",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Updated user profile."
+ {
+ "type": "literal",
+ "value": "USER_UPDATED"
},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 650,
- "character": 8
+ {
+ "type": "literal",
+ "value": "USER_DELETED"
+ },
+ {
+ "id": 286,
+ "name": "AuthChangeEventMFA",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 23,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "MFA_CHALLENGE_VERIFIED"
}
- ],
- "type": {
- "type": "reference",
- "id": 384,
- "name": "User"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [589, 591, 592, 590, 593]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 636,
- "character": 12
- }
- ]
+ ]
+ }
}
}
},
{
- "id": 594,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
+ "id": 426,
+ "name": "session",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 652,
- "character": 6
- }
- ],
"type": {
- "type": "literal",
- "value": null
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 347,
+ "name": "Session"
+ }
+ ]
}
}
],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [587, 594]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 635,
- "character": 4
- }
- ]
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 427,
+ "name": "unsubscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 321,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 428,
+ "name": "unsubscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Call this to remove the listener."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [422]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [423, 427]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 309,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 429,
+ "name": "UpdatableFactorAttributes",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 430,
+ "name": "friendlyName",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 325,
+ "character": 2
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [430]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 324,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 384,
+ "name": "User",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 394,
+ "name": "action_link",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "reflection",
- "declaration": {
- "id": 595,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 219,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 386,
+ "name": "app_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 211,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 377,
+ "name": "UserAppMetadata",
+ "dereferenced": {
+ "id": 377,
+ "name": "UserAppMetadata",
+ "kind": 256,
+ "kindString": "Interface",
"flags": {},
"children": [
{
- "id": 596,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 655,
- "character": 6
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- },
- {
- "id": 597,
- "name": "error",
+ "id": 378,
+ "name": "provider",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 656,
- "character": 6
+ "line": 201,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
+ "type": "intrinsic",
+ "name": "string"
}
}
],
@@ -19109,1403 +20520,1415 @@
{
"title": "Properties",
"kind": 1024,
- "children": [596, 597]
+ "children": [378]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 654,
- "character": 4
+ "line": 200,
+ "character": 17
}
- ]
+ ],
+ "indexSignature": {
+ "id": 379,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 380,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
}
}
- ]
- }
- },
- {
- "id": 301,
- "name": "AuthResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 53,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 302,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 303,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 55,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 304,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 306,
- "name": "session",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 57,
- "character": 8
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 347,
- "name": "Session"
- },
- {
- "type": "literal",
- "value": null
- }
- ]
- }
- },
- {
- "id": 305,
- "name": "user",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 56,
- "character": 8
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 384,
- "name": "User"
- },
- {
- "type": "literal",
- "value": null
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [306, 305]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 55,
- "character": 12
- }
- ]
- }
- }
- },
- {
- "id": 307,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 59,
- "character": 6
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [303, 307]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 54,
- "character": 4
- }
- ]
+ "id": 388,
+ "name": "aud",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 213,
+ "character": 2
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 389,
+ "name": "confirmation_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "reflection",
- "declaration": {
- "id": 308,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 309,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 62,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 310,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 312,
- "name": "session",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 64,
- "character": 8
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- },
- {
- "id": 311,
- "name": "user",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 63,
- "character": 8
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [312, 311]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 62,
- "character": 12
- }
- ]
- }
- }
- },
- {
- "id": 313,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 66,
- "character": 6
- }
- ],
- "type": {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [309, 313]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 61,
- "character": 4
- }
- ]
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 214,
+ "character": 2
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ]
- }
- },
- {
- "id": 642,
- "name": "AuthenticatorAssuranceLevels",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 728,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "aal1"
+ "id": 398,
+ "name": "confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "literal",
- "value": "aal2"
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 223,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ]
- }
- },
- {
- "id": 710,
- "name": "CallRefreshTokenResult",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 907,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 711,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 713,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 910,
- "character": 6
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- },
- {
- "id": 712,
- "name": "session",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 909,
- "character": 6
- }
- ],
- "type": {
- "type": "reference",
- "id": 347,
- "name": "Session"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [713, 712]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 908,
- "character": 4
- }
- ]
+ "id": 397,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 222,
+ "character": 2
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 395,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "reflection",
- "declaration": {
- "id": 714,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 716,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 914,
- "character": 6
- }
- ],
- "type": {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
- }
- },
- {
- "id": 715,
- "name": "session",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 913,
- "character": 6
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [716, 715]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 912,
- "character": 4
- }
- ]
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 220,
+ "character": 2
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ]
- }
- },
- {
- "id": 507,
- "name": "EmailOtpType",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 482,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "signup"
- },
- {
- "type": "literal",
- "value": "invite"
+ "id": 391,
+ "name": "email_change_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "literal",
- "value": "magiclink"
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 216,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 399,
+ "name": "email_confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "literal",
- "value": "recovery"
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 224,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 405,
+ "name": "factors",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "literal",
- "value": "email_change"
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 230,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 370,
+ "name": "Factor"
+ }
}
- ]
- }
- },
- {
- "id": 534,
- "name": "GenerateEmailChangeLinkParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 523,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 535,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 385,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 537,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's email"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 526,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
+ "fileName": "src/lib/types.ts",
+ "line": 210,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 404,
+ "name": "identities",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 538,
- "name": "newEmail",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's new email. Only required if type is 'email_change_current' or 'email_change_new'."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 530,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
+ "fileName": "src/lib/types.ts",
+ "line": 229,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 359,
+ "name": "UserIdentity"
+ }
+ }
+ },
+ {
+ "id": 393,
+ "name": "invited_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 539,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 531,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 540,
- "name": "GenerateLinkOptions"
- },
- {
- "type": "literal",
- "value": "redirectTo"
- }
- ],
- "qualifiedName": "Pick",
- "package": "typescript",
- "name": "Pick"
- }
- },
+ "fileName": "src/lib/types.ts",
+ "line": 218,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 401,
+ "name": "last_sign_in_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 536,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 524,
- "character": 2
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "email_change_current"
- },
- {
- "type": "literal",
- "value": "email_change_new"
- }
- ]
- }
+ "fileName": "src/lib/types.ts",
+ "line": 226,
+ "character": 2
}
],
- "groups": [
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 392,
+ "name": "new_email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [537, 538, 539, 536]
+ "fileName": "src/lib/types.ts",
+ "line": 217,
+ "character": 2
}
],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 396,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 523,
- "character": 44
+ "line": 221,
+ "character": 2
}
- ]
- }
- }
- },
- {
- "id": 524,
- "name": "GenerateInviteOrMagiclinkParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 509,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 525,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 400,
+ "name": "phone_confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 225,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 390,
+ "name": "recovery_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 215,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 402,
+ "name": "role",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 227,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 403,
+ "name": "updated_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 228,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 387,
+ "name": "user_metadata",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 527,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
+ "fileName": "src/lib/types.ts",
+ "line": 212,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 381,
+ "name": "UserMetadata",
+ "dereferenced": {
+ "id": 381,
+ "name": "UserMetadata",
+ "kind": 256,
+ "kindString": "Interface",
"flags": {},
- "comment": {
- "shortText": "The user's email"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 512,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 528,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 513,
- "character": 2
+ "line": 205,
+ "character": 17
}
],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 540,
- "name": "GenerateLinkOptions"
- },
+ "indexSignature": {
+ "id": 382,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
{
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "data"
- },
- {
- "type": "literal",
- "value": "redirectTo"
- }
- ]
+ "id": 383,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
- "qualifiedName": "Pick",
- "package": "typescript",
- "name": "Pick"
- }
- },
- {
- "id": 526,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 510,
- "character": 2
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
}
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "invite"
- },
- {
- "type": "literal",
- "value": "magiclink"
- }
- ]
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [527, 528, 526]
- }
- ],
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 394, 386, 388, 389, 398, 397, 395, 391, 399, 405, 385, 404, 393, 401, 392, 396, 400,
+ 390, 402, 403, 387
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 209,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 377,
+ "name": "UserAppMetadata",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 378,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 509,
- "character": 46
+ "line": 201,
+ "character": 2
}
- ]
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [378]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 200,
+ "character": 17
+ }
+ ],
+ "indexSignature": {
+ "id": 379,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 380,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
}
}
},
{
- "id": 543,
- "name": "GenerateLinkParams",
- "kind": 4194304,
- "kindString": "Type alias",
+ "id": 406,
+ "name": "UserAttributes",
+ "kind": 256,
+ "kindString": "Interface",
"flags": {},
+ "children": [
+ {
+ "id": 410,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 255,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 407,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 237,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 409,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 247,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 408,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's phone."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 242,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [410, 407, 409, 408]
+ }
+ ],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 545,
- "character": 12
+ "line": 233,
+ "character": 17
}
],
- "type": {
- "type": "union",
- "types": [
- {
- "id": 518,
- "name": "GenerateSignupLinkParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 502,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 519,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 411,
+ "name": "AdminUserAttributes"
+ }
+ ]
+ },
+ {
+ "id": 359,
+ "name": "UserIdentity",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 367,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 168,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 360,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 162,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 362,
+ "name": "identity_data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 164,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 363,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 364,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
"flags": {},
- "children": [
- {
- "id": 521,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 504,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 523,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 506,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 540,
- "name": "GenerateLinkOptions"
- },
- {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "data"
- },
- {
- "type": "literal",
- "value": "redirectTo"
- }
- ]
- }
- ],
- "qualifiedName": "Pick",
- "package": "typescript",
- "name": "Pick"
- }
- },
+ "parameters": [
{
- "id": 522,
- "name": "password",
- "kind": 1024,
- "kindString": "Property",
+ "id": 365,
+ "name": "key",
+ "kind": 32768,
"flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 505,
- "character": 2
- }
- ],
"type": {
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 520,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 503,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "signup"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [521, 523, 522, 520]
}
],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 502,
- "character": 39
- }
- ]
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
}
}
+ }
+ },
+ {
+ "id": 368,
+ "name": "last_sign_in_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 169,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 366,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 167,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 369,
+ "name": "updated_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "id": 524,
- "name": "GenerateInviteOrMagiclinkParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 509,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 525,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 527,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's email"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 512,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 528,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 513,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 540,
- "name": "GenerateLinkOptions"
- },
- {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "data"
- },
- {
- "type": "literal",
- "value": "redirectTo"
- }
- ]
- }
- ],
- "qualifiedName": "Pick",
- "package": "typescript",
- "name": "Pick"
- }
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 170,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 361,
+ "name": "user_id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 163,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [367, 360, 362, 368, 366, 369, 361]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 161,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 381,
+ "name": "UserMetadata",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 205,
+ "character": 17
+ }
+ ],
+ "indexSignature": {
+ "id": 382,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 383,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ },
+ {
+ "id": 498,
+ "name": "VerifyEmailOtpParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 499,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email address."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 468,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 502,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 473,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 503,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 505,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "id": 526,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 510,
- "character": 2
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "invite"
- },
- {
- "type": "literal",
- "value": "magiclink"
- }
- ]
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 477,
+ "character": 4
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [527, 528, 526]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 509,
- "character": 46
+ },
+ {
+ "id": 504,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 475,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ]
- }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [505, 504]
+ }
+ ]
}
+ }
+ },
+ {
+ "id": 500,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The otp sent to the user's email address."
},
- {
- "id": 529,
- "name": "GenerateRecoveryLinkParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 516,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 530,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 470,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 501,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's verification type."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 472,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 507,
+ "name": "EmailOtpType",
+ "dereferenced": {
+ "id": 507,
+ "name": "EmailOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 482,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
{
- "id": 532,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's email"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 519,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "type": "literal",
+ "value": "signup"
},
{
- "id": 533,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 520,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 540,
- "name": "GenerateLinkOptions"
- },
- {
- "type": "literal",
- "value": "redirectTo"
- }
- ],
- "qualifiedName": "Pick",
- "package": "typescript",
- "name": "Pick"
- }
+ "type": "literal",
+ "value": "invite"
},
{
- "id": 531,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 517,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "recovery"
- }
- }
- ],
- "groups": [
+ "type": "literal",
+ "value": "magiclink"
+ },
{
- "title": "Properties",
- "kind": 1024,
- "children": [532, 533, 531]
- }
- ],
- "sources": [
+ "type": "literal",
+ "value": "recovery"
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 516,
- "character": 41
+ "type": "literal",
+ "value": "email_change"
}
]
}
}
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [499, 502, 500, 501]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 466,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 490,
+ "name": "VerifyMobileOtpParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 494,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "id": 534,
- "name": "GenerateEmailChangeLinkParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 523,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 535,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 537,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's email"
- },
- "sources": [
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 454,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 495,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 497,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site.",
+ "tags": [
{
- "fileName": "src/lib/types.ts",
- "line": 526,
- "character": 2
+ "tag": "deprecated",
+ "text": "\n"
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ ]
},
- {
- "id": 538,
- "name": "newEmail",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's new email. Only required if type is 'email_change_current' or 'email_change_new'."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 530,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 463,
+ "character": 4
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 496,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "id": 539,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 531,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 540,
- "name": "GenerateLinkOptions"
- },
- {
- "type": "literal",
- "value": "redirectTo"
- }
- ],
- "qualifiedName": "Pick",
- "package": "typescript",
- "name": "Pick"
- }
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
},
- {
- "id": 536,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 524,
- "character": 2
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "email_change_current"
- },
- {
- "type": "literal",
- "value": "email_change_new"
- }
- ]
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 456,
+ "character": 4
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ],
- "groups": [
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [497, 496]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 491,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 449,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 492,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The otp sent to the user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 451,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 493,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's verification type."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 453,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 506,
+ "name": "MobileOtpType",
+ "dereferenced": {
+ "id": 506,
+ "name": "MobileOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 481,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [537, 538, 539, 536]
- }
- ],
- "sources": [
+ "type": "literal",
+ "value": "sms"
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 523,
- "character": 44
+ "type": "literal",
+ "value": "phone_change"
}
]
}
}
}
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [494, 491, 492, 493]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 447,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 287,
+ "name": "AuthChangeEvent",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 25,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "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": "USER_DELETED"
+ },
+ {
+ "id": 286,
+ "name": "AuthChangeEventMFA",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 23,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "MFA_CHALLENGE_VERIFIED"
+ }
+ }
]
}
},
{
- "id": 557,
- "name": "GenerateLinkProperties",
+ "id": 286,
+ "name": "AuthChangeEventMFA",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 23,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "MFA_CHALLENGE_VERIFIED"
+ }
+ },
+ {
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"comment": {
- "shortText": "The properties related to the email link generated"
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 568,
+ "line": 842,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 558,
+ "id": 684,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 559,
- "name": "action_link",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "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}"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 573,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 560,
- "name": "email_otp",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "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."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 578,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 561,
- "name": "hashed_token",
+ "id": 685,
+ "name": "id",
"kind": 1024,
"kindString": "Property",
"flags": {},
"comment": {
- "shortText": "The hashed token appended to the action link."
+ "shortText": "ID of the MFA factor to delete."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 582,
+ "line": 844,
"character": 2
}
],
@@ -20515,18 +21938,18 @@
}
},
{
- "id": 562,
- "name": "redirect_to",
+ "id": 686,
+ "name": "userId",
"kind": 1024,
"kindString": "Property",
"flags": {},
"comment": {
- "shortText": "The URL appended to the action link."
+ "shortText": "ID of the user whose factor is being deleted."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 584,
+ "line": 847,
"character": 2
}
],
@@ -20534,57 +21957,43 @@
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 563,
- "name": "verification_type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The verification type that the email link is associated to."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 586,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 564,
- "name": "GenerateLinkType"
- }
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
- "children": [559, 560, 561, 562, 563]
+ "children": [685, 686]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 568,
- "character": 37
+ "line": 842,
+ "character": 45
}
]
}
}
},
{
- "id": 544,
- "name": "GenerateLinkResponse",
+ "id": 674,
+ "name": "AuthMFAAdminDeleteFactorResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 551,
+ "line": 829,
"character": 12
}
],
@@ -20594,14 +22003,14 @@
{
"type": "reflection",
"declaration": {
- "id": 545,
+ "id": 675,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 546,
+ "id": 676,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -20609,55 +22018,38 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 553,
+ "line": 831,
"character": 6
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 547,
+ "id": 677,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 548,
- "name": "properties",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 554,
- "character": 8
- }
- ],
- "type": {
- "type": "reference",
- "id": 557,
- "name": "GenerateLinkProperties"
- }
- },
- {
- "id": 549,
- "name": "user",
+ "id": 678,
+ "name": "id",
"kind": 1024,
"kindString": "Property",
"flags": {},
+ "comment": {
+ "shortText": "ID of the factor that was successfully deleted."
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 555,
+ "line": 833,
"character": 8
}
],
"type": {
- "type": "reference",
- "id": 384,
- "name": "User"
+ "type": "intrinsic",
+ "name": "string"
}
}
],
@@ -20665,13 +22057,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [548, 549]
+ "children": [678]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 553,
+ "line": 831,
"character": 12
}
]
@@ -20679,7 +22071,7 @@
}
},
{
- "id": 550,
+ "id": 679,
"name": "error",
"kind": 1024,
"kindString": "Property",
@@ -20687,7 +22079,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 557,
+ "line": 835,
"character": 6
}
],
@@ -20701,13 +22093,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [546, 550]
+ "children": [676, 679]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 552,
+ "line": 830,
"character": 4
}
]
@@ -20716,14 +22108,14 @@
{
"type": "reflection",
"declaration": {
- "id": 551,
+ "id": 680,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 552,
+ "id": 681,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -20731,75 +22123,17 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 560,
+ "line": 837,
"character": 6
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 553,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 554,
- "name": "properties",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 561,
- "character": 8
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- },
- {
- "id": 555,
- "name": "user",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 562,
- "character": 8
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [554, 555]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 560,
- "character": 12
- }
- ]
- }
+ "type": "literal",
+ "value": null
}
},
{
- "id": 556,
+ "id": 682,
"name": "error",
"kind": 1024,
"kindString": "Property",
@@ -20807,8 +22141,8 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 564,
- "character": 6
+ "line": 837,
+ "character": 18
}
],
"type": {
@@ -20822,13 +22156,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [552, 556]
+ "children": [681, 682]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 559,
+ "line": 837,
"character": 4
}
]
@@ -20838,83 +22172,48 @@
}
},
{
- "id": 564,
- "name": "GenerateLinkType",
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 589,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "signup"
- },
- {
- "type": "literal",
- "value": "invite"
- },
- {
- "type": "literal",
- "value": "magiclink"
- },
- {
- "type": "literal",
- "value": "recovery"
- },
- {
- "type": "literal",
- "value": "email_change_current"
- },
+ "comment": {
+ "tags": [
{
- "type": "literal",
- "value": "email_change_new"
+ "tag": "expermental",
+ "text": "\n"
}
]
- }
- },
- {
- "id": 529,
- "name": "GenerateRecoveryLinkParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 516,
+ "line": 866,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 530,
+ "id": 697,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 532,
- "name": "email",
+ "id": 698,
+ "name": "userId",
"kind": 1024,
"kindString": "Property",
"flags": {},
"comment": {
- "shortText": "The user's email"
+ "shortText": "ID of the user."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 519,
+ "line": 868,
"character": 2
}
],
@@ -20922,985 +22221,459 @@
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 533,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 520,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 540,
- "name": "GenerateLinkOptions"
- },
- {
- "type": "literal",
- "value": "redirectTo"
- }
- ],
- "qualifiedName": "Pick",
- "package": "typescript",
- "name": "Pick"
- }
- },
- {
- "id": 531,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 517,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "recovery"
- }
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
- "children": [532, 533, 531]
+ "children": [698]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 516,
- "character": 41
+ "line": 866,
+ "character": 44
}
]
}
}
},
{
- "id": 518,
- "name": "GenerateSignupLinkParams",
+ "id": 687,
+ "name": "AuthMFAAdminListFactorsResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 502,
+ "line": 853,
"character": 12
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 519,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 521,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 688,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 504,
- "character": 2
+ "id": 689,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 855,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 690,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 691,
+ "name": "factors",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "All factors attached to the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 857,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 370,
+ "name": "Factor"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [691]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 855,
+ "character": 12
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 692,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 859,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [689, 692]
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 523,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 506,
- "character": 2
+ "line": 854,
+ "character": 4
}
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 693,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 694,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 861,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 695,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 861,
+ "character": 18
+ }
+ ],
+ "type": {
"type": "reference",
- "id": 540,
- "name": "GenerateLinkOptions"
- },
- {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "data"
- },
- {
- "type": "literal",
- "value": "redirectTo"
- }
- ]
+ "id": 727,
+ "name": "AuthError"
}
- ],
- "qualifiedName": "Pick",
- "package": "typescript",
- "name": "Pick"
- }
- },
- {
- "id": 522,
- "name": "password",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ }
+ ],
+ "groups": [
{
- "fileName": "src/lib/types.ts",
- "line": 505,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [694, 695]
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 520,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 503,
- "character": 2
+ "line": 861,
+ "character": 4
}
- ],
- "type": {
- "type": "literal",
- "value": "signup"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [521, 523, 522, 520]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 502,
- "character": 39
+ ]
}
- ]
- }
+ }
+ ]
}
},
{
- "id": 288,
- "name": "GoTrueClientOptions",
+ "id": 622,
+ "name": "AuthMFAChallengeResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 34,
+ "line": 702,
"character": 12
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 289,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 297,
- "name": "autoRefreshToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 44,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 296,
- "name": "detectSessionInUrl",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 42,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 300,
- "name": "fetch",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 623,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 50,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "name": "Fetch"
- }
- },
- {
- "id": 291,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 38,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 292,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 624,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 38,
- "character": 12
+ "line": 704,
+ "character": 6
}
],
- "indexSignature": {
- "id": 293,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 294,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 625,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 627,
+ "name": "expires_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Timestamp in UNIX seconds when this challenge will no longer be usable."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 709,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 626,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the newly created challenge."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 706,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [627, 626]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 704,
+ "character": 12
+ }
+ ]
}
}
- }
- }
- },
- {
- "id": 298,
- "name": "persistSession",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 46,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 299,
- "name": "storage",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 48,
- "character": 2
+ "id": 628,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 711,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
}
],
- "type": {
- "type": "reference",
- "id": 706,
- "name": "SupportedStorage"
- }
- },
- {
- "id": 295,
- "name": "storageKey",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ "groups": [
{
- "fileName": "src/lib/types.ts",
- "line": 40,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [624, 628]
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 290,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 36,
- "character": 2
+ "line": 703,
+ "character": 4
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [297, 296, 300, 291, 298, 299, 295, 290]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 34,
- "character": 34
+ ]
}
- ]
- }
- }
- },
- {
- "id": 707,
- "name": "InitializeResult",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 905,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 708,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 709,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 629,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 905,
- "character": 33
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
- },
- {
+ "id": 630,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 713,
+ "character": 6
+ }
+ ],
+ "type": {
"type": "literal",
"value": null
}
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [709]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 905,
- "character": 31
- }
- ]
- }
- }
- },
- {
- "id": 581,
- "name": "MFAChallengeAndVerifyParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 627,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 582,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 584,
- "name": "code",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Verification code provided by the user."
- },
- "sources": [
+ },
{
- "fileName": "src/lib/types.ts",
- "line": 631,
- "character": 2
+ "id": 631,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 713,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 583,
- "name": "factorId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the factor being verified. Returned in enroll()."
- },
- "sources": [
+ "groups": [
{
- "fileName": "src/lib/types.ts",
- "line": 629,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [630, 631]
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [584, 583]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 627,
- "character": 42
- }
- ]
- }
- }
- },
- {
- "id": 578,
- "name": "MFAChallengeParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 622,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 579,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 580,
- "name": "factorId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the factor to be challenged. Returned in enroll()."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 624,
- "character": 2
+ "line": 713,
+ "character": 4
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [580]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 622,
- "character": 33
+ ]
}
- ]
- }
+ }
+ ]
}
},
{
- "id": 565,
- "name": "MFAEnrollParams",
+ "id": 598,
+ "name": "AuthMFAEnrollResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 597,
+ "line": 659,
"character": 12
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 566,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 567,
- "name": "factorType",
- "kind": 1024,
- "kindString": "Property",
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 599,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "The type of factor being enrolled."
- },
- "sources": [
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 599,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "totp"
- }
- },
- {
- "id": 569,
- "name": "friendlyName",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Human readable name assigned to the factor."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 603,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 568,
- "name": "issuer",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Domain which the user is enrolled with."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 601,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [567, 569, 568]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 597,
- "character": 30
- }
- ]
- }
- }
- },
- {
- "id": 570,
- "name": "MFAUnenrollParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 606,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 571,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 572,
- "name": "factorId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the factor being unenrolled."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 608,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [572]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 606,
- "character": 32
- }
- ]
- }
- }
- },
- {
- "id": 573,
- "name": "MFAVerifyParams",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 611,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 574,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 576,
- "name": "challengeId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the challenge being verified. Returned in challenge()."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 616,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 577,
- "name": "code",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Verification code provided by the user."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 619,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 575,
- "name": "factorId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "ID of the factor being verified. Returned in enroll()."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 613,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [576, 577, 575]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 611,
- "character": 30
- }
- ]
- }
- }
- },
- {
- "id": 506,
- "name": "MobileOtpType",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 481,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "sms"
- },
- {
- "type": "literal",
- "value": "phone_change"
- }
- ]
- }
- },
- {
- "id": 314,
- "name": "OAuthResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 69,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 315,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 316,
+ "id": 600,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -21908,54 +22681,165 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 71,
+ "line": 661,
"character": 6
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 317,
+ "id": 601,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 318,
- "name": "provider",
+ "id": 602,
+ "name": "id",
"kind": 1024,
"kindString": "Property",
"flags": {},
+ "comment": {
+ "shortText": "ID of the factor that was just enrolled (in an unverified state)."
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 72,
+ "line": 663,
"character": 8
}
],
"type": {
- "type": "reference",
- "id": 285,
- "name": "Provider"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 319,
- "name": "url",
+ "id": 604,
+ "name": "totp",
"kind": 1024,
"kindString": "Property",
"flags": {},
+ "comment": {
+ "shortText": "TOTP enrollment information."
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 73,
+ "line": 669,
"character": 8
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reflection",
+ "declaration": {
+ "id": 605,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 606,
+ "name": "qr_code",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Contains a QR code encoding the authenticator URI. You can\nconvert it to a URL by prepending `data:image/svg+xml;utf-8,` to\nthe value. Avoid logging this value to the console."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 673,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 607,
+ "name": "secret",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The TOTP secret (also encoded in the QR code). Show this secret\nin a password-style field to the user, in case they are unable to\nscan the QR code. Avoid logging this value to the console."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 678,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 608,
+ "name": "uri",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The authenticator URI encoded within the QR code, should you need\nto use it. Avoid loggin this value to the console."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 682,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [606, 607, 608]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 669,
+ "character": 14
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 603,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Type of MFA factor. Only `totp` supported for now."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 666,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "totp"
}
}
],
@@ -21963,13 +22847,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [318, 319]
+ "children": [602, 604, 603]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 71,
+ "line": 661,
"character": 12
}
]
@@ -21977,7 +22861,7 @@
}
},
{
- "id": 320,
+ "id": 609,
"name": "error",
"kind": 1024,
"kindString": "Property",
@@ -21985,7 +22869,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 75,
+ "line": 685,
"character": 6
}
],
@@ -21999,13 +22883,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [316, 320]
+ "children": [600, 609]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 70,
+ "line": 660,
"character": 4
}
]
@@ -22014,14 +22898,14 @@
{
"type": "reflection",
"declaration": {
- "id": 321,
+ "id": 610,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 322,
+ "id": 611,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -22029,76 +22913,17 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 78,
+ "line": 688,
"character": 6
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 323,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 324,
- "name": "provider",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 79,
- "character": 8
- }
- ],
- "type": {
- "type": "reference",
- "id": 285,
- "name": "Provider"
- }
- },
- {
- "id": 325,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 80,
- "character": 8
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [324, 325]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 78,
- "character": 12
- }
- ]
- }
+ "type": "literal",
+ "value": null
}
},
{
- "id": 326,
+ "id": 612,
"name": "error",
"kind": 1024,
"kindString": "Property",
@@ -22106,7 +22931,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 82,
+ "line": 689,
"character": 6
}
],
@@ -22121,13 +22946,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [322, 326]
+ "children": [611, 612]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 77,
+ "line": 687,
"character": 4
}
]
@@ -22137,187 +22962,274 @@
}
},
{
- "id": 717,
- "name": "PageParams",
+ "id": 643,
+ "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 917,
+ "line": 730,
"character": 12
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 718,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 719,
- "name": "page",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The page number"
- },
- "sources": [
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 644,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 919,
- "character": 2
+ "id": 645,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 732,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 646,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 649,
+ "name": "currentAuthenticationMethods",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "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."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 749,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 356,
+ "name": "AMREntry"
+ }
+ }
+ },
+ {
+ "id": 647,
+ "name": "currentLevel",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Current AAL level of the session."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 734,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 642,
+ "name": "AuthenticatorAssuranceLevels"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ },
+ {
+ "id": 648,
+ "name": "nextLevel",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "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"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 742,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 642,
+ "name": "AuthenticatorAssuranceLevels"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [649, 647, 648]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 732,
+ "character": 12
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 650,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 751,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [645, 650]
}
],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 720,
- "name": "perPage",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Number of items returned per page"
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 921,
- "character": 2
+ "line": 731,
+ "character": 4
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [719, 720]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 917,
- "character": 25
+ ]
}
- ]
- }
- }
- },
- {
- "id": 285,
- "name": "Provider",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "comment": {
- "shortText": "One of the providers supported by GoTrue."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 5,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "apple"
- },
- {
- "type": "literal",
- "value": "azure"
- },
- {
- "type": "literal",
- "value": "bitbucket"
- },
- {
- "type": "literal",
- "value": "discord"
- },
- {
- "type": "literal",
- "value": "facebook"
- },
- {
- "type": "literal",
- "value": "github"
- },
- {
- "type": "literal",
- "value": "gitlab"
- },
- {
- "type": "literal",
- "value": "google"
- },
- {
- "type": "literal",
- "value": "keycloak"
- },
- {
- "type": "literal",
- "value": "linkedin"
- },
- {
- "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": "reflection",
+ "declaration": {
+ "id": 651,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 652,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 753,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 653,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 753,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [652, 653]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 753,
+ "character": 4
+ }
+ ]
+ }
}
]
}
},
{
- "id": 327,
- "name": "SSOResponse",
+ "id": 632,
+ "name": "AuthMFAListFactorsResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 85,
+ "line": 715,
"character": 12
}
],
@@ -22327,14 +23239,14 @@
{
"type": "reflection",
"declaration": {
- "id": 328,
+ "id": 633,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 329,
+ "id": 634,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -22342,38 +23254,67 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 87,
+ "line": 717,
"character": 6
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 330,
+ "id": 635,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 331,
- "name": "url",
+ "id": 636,
+ "name": "all",
"kind": 1024,
"kindString": "Property",
"flags": {},
"comment": {
- "shortText": "URL to take the user to (in a browser) to complete SSO."
+ "shortText": "All available factors (verified and unverified)."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 89,
+ "line": 719,
"character": 8
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 370,
+ "name": "Factor"
+ }
+ }
+ },
+ {
+ "id": 637,
+ "name": "totp",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Only verified TOTP factors. (A subset of `all`.)"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 722,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 370,
+ "name": "Factor"
+ }
}
}
],
@@ -22381,13 +23322,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [331]
+ "children": [636, 637]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 87,
+ "line": 717,
"character": 12
}
]
@@ -22395,7 +23336,7 @@
}
},
{
- "id": 332,
+ "id": 638,
"name": "error",
"kind": 1024,
"kindString": "Property",
@@ -22403,7 +23344,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 91,
+ "line": 724,
"character": 6
}
],
@@ -22417,13 +23358,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [329, 332]
+ "children": [634, 638]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 86,
+ "line": 716,
"character": 4
}
]
@@ -22432,14 +23373,14 @@
{
"type": "reflection",
"declaration": {
- "id": 333,
+ "id": 639,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 334,
+ "id": 640,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -22447,7 +23388,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 94,
+ "line": 726,
"character": 6
}
],
@@ -22457,7 +23398,7 @@
}
},
{
- "id": 335,
+ "id": 641,
"name": "error",
"kind": 1024,
"kindString": "Property",
@@ -22465,8 +23406,8 @@
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 95,
- "character": 6
+ "line": 726,
+ "character": 18
}
],
"type": {
@@ -22480,13 +23421,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [334, 335]
+ "children": [640, 641]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 93,
+ "line": 726,
"character": 4
}
]
@@ -22496,299 +23437,65 @@
}
},
{
- "id": 478,
- "name": "SignInWithOAuthCredentials",
+ "id": 613,
+ "name": "AuthMFAUnenrollResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 433,
+ "line": 692,
"character": 12
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 479,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 481,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 614,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 436,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 482,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 485,
- "name": "queryParams",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "An object of query params"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 442,
- "character": 4
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 486,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 442,
- "character": 18
- }
- ],
- "indexSignature": {
- "id": 487,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 488,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- }
- }
- },
- {
- "id": 483,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A URL to send the user to after they are confirmed."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 438,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 484,
- "name": "scopes",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A space-separated list of scopes granted to the OAuth application."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 440,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [485, 483, 484]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 436,
- "character": 12
- }
- ]
- }
- }
- },
- {
- "id": 480,
- "name": "provider",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "One of the providers supported by GoTrue."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 435,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 285,
- "name": "Provider"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [481, 480]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 433,
- "character": 41
- }
- ]
- }
- }
- },
- {
- "id": 447,
- "name": "SignInWithPasswordCredentials",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 363,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 448,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 449,
- "name": "email",
+ "id": 615,
+ "name": "data",
"kind": 1024,
"kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The user's email address."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 366,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 451,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 369,
+ "line": 694,
"character": 6
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 452,
+ "id": 616,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 454,
- "name": "captchaToken",
+ "id": 617,
+ "name": "id",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
+ "shortText": "ID of the factor that was successfully unenrolled."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 377,
+ "line": 696,
"character": 8
}
],
@@ -22796,68 +23503,41 @@
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 453,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 375,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
- "children": [454, 453]
+ "children": [617]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 369,
- "character": 16
+ "line": 694,
+ "character": 12
}
]
}
}
},
{
- "id": 450,
- "name": "password",
+ "id": 618,
+ "name": "error",
"kind": 1024,
"kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The user's password."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 368,
+ "line": 698,
"character": 6
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "literal",
+ "value": null
}
}
],
@@ -22865,13 +23545,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [449, 451, 450]
+ "children": [615, 618]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 364,
+ "line": 693,
"character": 4
}
]
@@ -22880,141 +23560,47 @@
{
"type": "reflection",
"declaration": {
- "id": 455,
+ "id": 619,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 458,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 385,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 459,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 461,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 393,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 460,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 391,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [461, 460]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 385,
- "character": 16
- }
- ]
- }
- }
- },
- {
- "id": 457,
- "name": "password",
+ "id": 620,
+ "name": "data",
"kind": 1024,
"kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The user's password."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 384,
+ "line": 700,
"character": 6
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "literal",
+ "value": null
}
},
{
- "id": 456,
- "name": "phone",
+ "id": 621,
+ "name": "error",
"kind": 1024,
"kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The user's phone number."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 382,
- "character": 6
+ "line": 700,
+ "character": 18
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
}
}
],
@@ -23022,13 +23608,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [458, 457, 456]
+ "children": [620, 621]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 380,
+ "line": 700,
"character": 4
}
]
@@ -23038,15 +23624,15 @@
}
},
{
- "id": 462,
- "name": "SignInWithPasswordlessCredentials",
+ "id": 585,
+ "name": "AuthMFAVerifyResponse",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 397,
+ "line": 634,
"character": 12
}
],
@@ -23056,72 +23642,47 @@
{
"type": "reflection",
"declaration": {
- "id": 463,
+ "id": 586,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 464,
- "name": "email",
+ "id": 587,
+ "name": "data",
"kind": 1024,
"kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The user's email address."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 400,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 465,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 401,
+ "line": 636,
"character": 6
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 466,
+ "id": 588,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 470,
- "name": "captchaToken",
+ "id": 589,
+ "name": "access_token",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
+ "shortText": "New access token (JWT) after successful verification."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 413,
+ "line": 638,
"character": 8
}
],
@@ -23131,44 +23692,39 @@
}
},
{
- "id": 469,
- "name": "data",
+ "id": 591,
+ "name": "expires_in",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ "shortText": "Number of seconds in which the access token will expire."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 411,
+ "line": 644,
"character": 8
}
],
"type": {
"type": "intrinsic",
- "name": "object"
+ "name": "number"
}
},
{
- "id": 467,
- "name": "emailRedirectTo",
+ "id": 592,
+ "name": "refresh_token",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"comment": {
- "shortText": "The redirect url embedded in the email link"
+ "shortText": "Refresh token you can use to obtain new access tokens when expired."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 403,
+ "line": 647,
"character": 8
}
],
@@ -23178,58 +23734,96 @@
}
},
{
- "id": 468,
- "name": "shouldCreateUser",
+ "id": 590,
+ "name": "token_type",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"comment": {
- "shortText": "If set to false, this method will not create a new user. Defaults to true."
+ "shortText": "Type of token, typically `Bearer`."
},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 405,
+ "line": 641,
"character": 8
}
],
"type": {
"type": "intrinsic",
- "name": "boolean"
+ "name": "string"
}
- }
- ],
- "groups": [
+ },
{
- "title": "Properties",
+ "id": 593,
+ "name": "user",
"kind": 1024,
- "children": [470, 469, 467, 468]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 401,
- "character": 16
- }
- ]
- }
- }
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Updated user profile."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 650,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 384,
+ "name": "User"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [589, 591, 592, 590, 593]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 636,
+ "character": 12
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 594,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 652,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
- "children": [464, 465]
+ "children": [587, 594]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 398,
+ "line": 635,
"character": 4
}
]
@@ -23238,104 +23832,170 @@
{
"type": "reflection",
"declaration": {
- "id": 471,
+ "id": 595,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 473,
- "name": "options",
+ "id": 596,
+ "name": "data",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 419,
+ "line": 655,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 597,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 656,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [596, 597]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 654,
+ "character": 4
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 301,
+ "name": "AuthResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 53,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 302,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 303,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 55,
"character": 6
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 474,
+ "id": 304,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 477,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 429,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 476,
- "name": "data",
+ "id": 306,
+ "name": "session",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 427,
+ "line": 57,
"character": 8
}
],
"type": {
- "type": "intrinsic",
- "name": "object"
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 347,
+ "name": "Session"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
}
},
{
- "id": 475,
- "name": "shouldCreateUser",
+ "id": 305,
+ "name": "user",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If set to false, this method will not create a new user. Defaults to true."
- },
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 421,
+ "line": 56,
"character": 8
}
],
"type": {
- "type": "intrinsic",
- "name": "boolean"
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 384,
+ "name": "User"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
}
}
],
@@ -23343,38 +24003,35 @@
{
"title": "Properties",
"kind": 1024,
- "children": [477, 476, 475]
+ "children": [306, 305]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 419,
- "character": 16
+ "line": 55,
+ "character": 12
}
]
}
}
},
{
- "id": 472,
- "name": "phone",
+ "id": 307,
+ "name": "error",
"kind": 1024,
"kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The user's phone number."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 418,
+ "line": 59,
"character": 6
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "literal",
+ "value": null
}
}
],
@@ -23382,114 +24039,83 @@
{
"title": "Properties",
"kind": 1024,
- "children": [473, 472]
+ "children": [303, 307]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 416,
+ "line": 54,
"character": 4
}
]
}
- }
- ]
- }
- },
- {
- "id": 508,
- "name": "SignInWithSSO",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 484,
- "character": 12
- }
- ],
- "type": {
- "type": "intersection",
- "types": [
+ },
{
"type": "reflection",
"declaration": {
- "id": 509,
+ "id": 308,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 510,
- "name": "options",
+ "id": 309,
+ "name": "data",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 485,
- "character": 2
+ "line": 62,
+ "character": 6
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 511,
+ "id": 310,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 513,
- "name": "captchaToken",
+ "id": 312,
+ "name": "session",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 489,
- "character": 4
+ "line": 64,
+ "character": 8
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "literal",
+ "value": null
}
},
{
- "id": 512,
- "name": "redirectTo",
+ "id": 311,
+ "name": "user",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A URL to send the user to after they have signed-in."
- },
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 487,
- "character": 4
+ "line": 63,
+ "character": 8
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "literal",
+ "value": null
}
}
],
@@ -23497,148 +24123,95 @@
{
"title": "Properties",
"kind": 1024,
- "children": [513, 512]
+ "children": [312, 311]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 485,
+ "line": 62,
"character": 12
}
]
}
}
+ },
+ {
+ "id": 313,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 66,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
- "children": [510]
+ "children": [309, 313]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 484,
- "character": 28
+ "line": 61,
+ "character": 4
}
]
}
+ }
+ ]
+ }
+ },
+ {
+ "id": 642,
+ "name": "AuthenticatorAssuranceLevels",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 728,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "aal1"
},
{
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 514,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 515,
- "name": "providerId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "UUID of the SSO provider to invoke single-sign on to."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 494,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [515]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 492,
- "character": 4
- }
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 516,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 517,
- "name": "domain",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Domain name of the organization for which to invoke single-sign on."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 498,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [517]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 496,
- "character": 4
- }
- ]
- }
- }
- ]
+ "type": "literal",
+ "value": "aal2"
}
]
}
},
{
- "id": 431,
- "name": "SignUpWithPasswordCredentials",
+ "id": 710,
+ "name": "CallRefreshTokenResult",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 328,
+ "line": 907,
"character": 12
}
],
@@ -23648,164 +24221,47 @@
{
"type": "reflection",
"declaration": {
- "id": 432,
+ "id": 711,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 433,
- "name": "email",
+ "id": 713,
+ "name": "error",
"kind": 1024,
"kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The user's email address."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 331,
+ "line": 910,
"character": 6
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "literal",
+ "value": null
}
},
{
- "id": 435,
- "name": "options",
+ "id": 712,
+ "name": "session",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 334,
+ "line": 909,
"character": 6
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 436,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 439,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 344,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 438,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 342,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 437,
- "name": "emailRedirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The redirect url embedded in the email link"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 336,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [439, 438, 437]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 334,
- "character": 16
- }
- ]
- }
- }
- },
- {
- "id": 434,
- "name": "password",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's password."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 333,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "id": 347,
+ "name": "Session"
}
}
],
@@ -23813,13 +24269,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [433, 435, 434]
+ "children": [713, 712]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 329,
+ "line": 908,
"character": 4
}
]
@@ -23828,141 +24284,47 @@
{
"type": "reflection",
"declaration": {
- "id": 440,
+ "id": 714,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 443,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 352,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 444,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 446,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 360,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 445,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
- "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 358,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [446, 445]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 352,
- "character": 16
- }
- ]
- }
- }
- },
- {
- "id": 442,
- "name": "password",
+ "id": 716,
+ "name": "error",
"kind": 1024,
"kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The user's password."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 351,
+ "line": 914,
"character": 6
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
}
},
{
- "id": 441,
- "name": "phone",
+ "id": 715,
+ "name": "session",
"kind": 1024,
"kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The user's phone number."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 349,
+ "line": 913,
"character": 6
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "literal",
+ "value": null
}
}
],
@@ -23970,13 +24332,13 @@
{
"title": "Properties",
"kind": 1024,
- "children": [443, 442, 441]
+ "children": [716, 715]
}
],
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 347,
+ "line": 912,
"character": 4
}
]
@@ -23986,291 +24348,326 @@
}
},
{
- "id": 706,
- "name": "SupportedStorage",
+ "id": 507,
+ "name": "EmailOtpType",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 903,
+ "line": 482,
"character": 12
}
],
"type": {
- "type": "reference",
- "typeArguments": [
+ "type": "union",
+ "types": [
{
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "qualifiedName": "Storage",
- "package": "typescript",
- "name": "Storage"
- },
- {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "getItem"
- },
- {
- "type": "literal",
- "value": "setItem"
- },
- {
- "type": "literal",
- "value": "removeItem"
- }
- ]
- }
- ],
- "qualifiedName": "Pick",
- "package": "typescript",
- "name": "Pick"
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "email_change"
}
- ],
- "name": "PromisifyMethods"
+ ]
}
},
{
- "id": 336,
- "name": "UserResponse",
+ "id": 534,
+ "name": "GenerateEmailChangeLinkParams",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 98,
+ "line": 523,
"character": 12
}
],
"type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 337,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reflection",
+ "declaration": {
+ "id": 535,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 537,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
- {
- "id": 338,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 100,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 339,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 340,
- "name": "user",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 101,
- "character": 8
- }
- ],
- "type": {
- "type": "reference",
- "id": 384,
- "name": "User"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [340]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 100,
- "character": 12
- }
- ]
- }
- }
- },
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
{
- "id": 341,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 103,
- "character": 6
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
+ "fileName": "src/lib/types.ts",
+ "line": 526,
+ "character": 2
}
],
- "groups": [
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 538,
+ "name": "newEmail",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's new email. Only required if type is 'email_change_current' or 'email_change_new'."
+ },
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [338, 341]
+ "fileName": "src/lib/types.ts",
+ "line": 530,
+ "character": 2
}
],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 539,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 99,
- "character": 4
+ "line": 531,
+ "character": 2
}
- ]
- }
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 342,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 536,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 343,
- "name": "data",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 106,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 344,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 345,
- "name": "user",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 107,
- "character": 8
- }
- ],
- "type": {
- "type": "literal",
- "value": null
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [345]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 106,
- "character": 12
- }
- ]
- }
+ "fileName": "src/lib/types.ts",
+ "line": 524,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "email_change_current"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_new"
}
- },
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [537, 538, 539, 536]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 523,
+ "character": 44
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 524,
+ "name": "GenerateInviteOrMagiclinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 509,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 525,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 527,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
{
- "id": 346,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 109,
- "character": 6
- }
- ],
- "type": {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 512,
+ "character": 2
}
],
- "groups": [
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 528,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [343, 346]
+ "fileName": "src/lib/types.ts",
+ "line": 513,
+ "character": 2
}
],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "data"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 526,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 105,
- "character": 4
+ "line": 510,
+ "character": 2
}
- ]
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ }
+ ]
+ }
}
- }
- ]
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [527, 528, 526]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 509,
+ "character": 46
+ }
+ ]
+ }
}
},
{
- "id": 489,
- "name": "VerifyOtpParams",
+ "id": 543,
+ "name": "GenerateLinkParams",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 446,
+ "line": 545,
"character": 12
}
],
@@ -24278,1703 +24675,1461 @@
"type": "union",
"types": [
{
- "id": 490,
- "name": "VerifyMobileOtpParams",
- "kind": 256,
- "kindString": "Interface",
+ "id": 518,
+ "name": "GenerateSignupLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 494,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ "fileName": "src/lib/types.ts",
+ "line": 502,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 519,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 454,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 495,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 521,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 497,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
+ "fileName": "src/lib/types.ts",
+ "line": 504,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 523,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 506,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
},
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site.",
- "tags": [
+ {
+ "type": "union",
+ "types": [
{
- "tag": "deprecated",
- "text": "\n"
+ "type": "literal",
+ "value": "data"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
}
]
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 463,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
}
- },
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 522,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
{
- "id": 496,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A URL to send the user to after they are confirmed."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 456,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 505,
+ "character": 2
}
],
- "groups": [
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 520,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [497, 496]
+ "fileName": "src/lib/types.ts",
+ "line": 503,
+ "character": 2
}
- ]
- }
- }
- },
- {
- "id": 491,
- "name": "phone",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's phone number."
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 449,
- "character": 2
+ ],
+ "type": {
+ "type": "literal",
+ "value": "signup"
+ }
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 492,
- "name": "token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The otp sent to the user's phone number."
- },
- "sources": [
+ "groups": [
{
- "fileName": "src/lib/types.ts",
- "line": 451,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [521, 523, 522, 520]
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 493,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's verification type."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 453,
- "character": 2
+ "line": 502,
+ "character": 39
}
- ],
- "type": {
- "type": "reference",
- "id": 506,
- "name": "MobileOtpType"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [494, 491, 492, 493]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 447,
- "character": 17
+ ]
}
- ]
+ }
},
{
- "id": 498,
- "name": "VerifyEmailOtpParams",
- "kind": 256,
- "kindString": "Interface",
+ "id": 524,
+ "name": "GenerateInviteOrMagiclinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 499,
- "name": "email",
- "kind": 1024,
- "kindString": "Property",
+ "fileName": "src/lib/types.ts",
+ "line": 509,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 525,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "The user's email address."
- },
- "sources": [
+ "children": [
{
- "fileName": "src/lib/types.ts",
- "line": 468,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 502,
- "name": "options",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 473,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 503,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 527,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
{
- "id": 505,
- "name": "captchaToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Verification token received when the user completes the captcha on the site."
+ "fileName": "src/lib/types.ts",
+ "line": 512,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 528,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 513,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 477,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "data"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ]
}
- },
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 526,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
{
- "id": 504,
- "name": "redirectTo",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A URL to send the user to after they are confirmed."
+ "fileName": "src/lib/types.ts",
+ "line": 510,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "invite"
},
- "sources": [
- {
- "fileName": "src/lib/types.ts",
- "line": 475,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ {
+ "type": "literal",
+ "value": "magiclink"
}
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [527, 528, 526]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 509,
+ "character": 46
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 529,
+ "name": "GenerateRecoveryLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 516,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 530,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 532,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 519,
+ "character": 2
}
],
- "groups": [
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 533,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [505, 504]
+ "fileName": "src/lib/types.ts",
+ "line": 520,
+ "character": 2
}
- ]
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 531,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 517,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "recovery"
+ }
}
- }
- },
- {
- "id": 500,
- "name": "token",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The otp sent to the user's email address."
- },
- "sources": [
+ ],
+ "groups": [
{
- "fileName": "src/lib/types.ts",
- "line": 470,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [532, 533, 531]
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 501,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "The user's verification type."
- },
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 472,
- "character": 2
+ "line": 516,
+ "character": 41
}
- ],
- "type": {
- "type": "reference",
- "id": 507,
- "name": "EmailOtpType"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [499, 502, 500, 501]
+ ]
}
- ],
+ }
+ },
+ {
+ "id": 534,
+ "name": "GenerateEmailChangeLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
"sources": [
{
"fileName": "src/lib/types.ts",
- "line": 466,
- "character": 17
+ "line": 523,
+ "character": 12
}
- ]
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 535,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 537,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 526,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 538,
+ "name": "newEmail",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's new email. Only required if type is 'email_change_current' or 'email_change_new'."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 530,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 539,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 531,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 536,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 524,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "email_change_current"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_new"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [537, 538, 539, 536]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 523,
+ "character": 44
+ }
+ ]
+ }
+ }
}
]
}
},
{
- "id": 724,
- "name": "isAuthApiError",
- "kind": 64,
- "kindString": "Function",
+ "id": 557,
+ "name": "GenerateLinkProperties",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
+ "comment": {
+ "shortText": "The properties related to the email link generated"
+ },
"sources": [
{
- "fileName": "src/lib/errors.ts",
- "line": 32,
- "character": 16
+ "fileName": "src/lib/types.ts",
+ "line": 568,
+ "character": 12
}
],
- "signatures": [
- {
- "id": 725,
- "name": "isAuthApiError",
- "kind": 4096,
- "kindString": "Call signature",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 558,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "parameters": [
+ "children": [
{
- "id": 726,
- "name": "error",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 559,
+ "name": "action_link",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "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}"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 573,
+ "character": 2
+ }
+ ],
"type": {
"type": "intrinsic",
- "name": "unknown"
+ "name": "string"
}
- }
- ],
- "type": {
- "type": "predicate",
- "name": "error",
- "asserts": false,
- "targetType": {
- "type": "reference",
- "id": 732,
- "name": "AuthApiError"
- }
- }
- }
- ]
- },
- {
- "id": 721,
- "name": "isAuthError",
- "kind": 64,
- "kindString": "Function",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/errors.ts",
- "line": 10,
- "character": 16
- }
- ],
- "signatures": [
- {
- "id": 722,
- "name": "isAuthError",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
+ },
{
- "id": 723,
- "name": "error",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 560,
+ "name": "email_otp",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "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."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 578,
+ "character": 2
+ }
+ ],
"type": {
"type": "intrinsic",
- "name": "unknown"
+ "name": "string"
+ }
+ },
+ {
+ "id": 561,
+ "name": "hashed_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The hashed token appended to the action link."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 582,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 562,
+ "name": "redirect_to",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The URL appended to the action link."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 584,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 563,
+ "name": "verification_type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The verification type that the email link is associated to."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 586,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 564,
+ "name": "GenerateLinkType",
+ "dereferenced": {
+ "id": 564,
+ "name": "GenerateLinkType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 589,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "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"
+ }
+ ]
+ }
+ }
}
}
],
- "type": {
- "type": "predicate",
- "name": "error",
- "asserts": false,
- "targetType": {
- "type": "reference",
- "id": 727,
- "name": "AuthError"
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [559, 560, 561, 562, 563]
}
- }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 568,
+ "character": 37
+ }
+ ]
}
- ]
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [732, 727, 792, 779, 817, 767, 745, 752, 1, 75]
- },
- {
- "title": "Interfaces",
- "kind": 256,
- "children": [
- 356, 411, 370, 540, 699, 654, 347, 421, 429, 384, 377, 406, 359, 381, 498, 490
- ]
+ }
},
{
- "title": "Type Aliases",
+ "id": 544,
+ "name": "GenerateLinkResponse",
"kind": 4194304,
- "children": [
- 287, 286, 683, 674, 696, 687, 622, 598, 643, 632, 613, 585, 301, 642, 710, 507, 534,
- 524, 543, 557, 544, 564, 529, 518, 288, 707, 581, 578, 565, 570, 573, 506, 314, 717,
- 285, 327, 478, 447, 462, 508, 431, 706, 336, 489
- ]
- },
- {
- "title": "Functions",
- "kind": 64,
- "children": [724, 721]
- }
- ],
- "sources": [
- {
- "fileName": "src/index.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 0,
- "name": "@supabase/postgrest-js",
- "kind": 1,
- "kindString": "Project",
- "flags": {},
- "originalName": "",
- "children": [
- {
- "id": 498,
- "name": "PostgrestBuilder",
- "kind": 128,
- "kindString": "Class",
- "flags": {
- "isAbstract": true
- },
- "children": [
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 499,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 18,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 500,
- "name": "new PostgrestBuilder",
- "kind": 16384,
- "kindString": "Constructor signature",
+ "fileName": "src/lib/types.ts",
+ "line": 551,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 545,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "typeParameter": [
- {
- "id": 501,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "parameters": [
+ "children": [
{
- "id": 502,
- "name": "builder",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 546,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 553,
+ "character": 6
+ }
+ ],
"type": {
- "type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "default",
- "dereferenced": {
- "id": 498,
- "name": "PostgrestBuilder",
- "kind": 128,
- "kindString": "Class",
- "flags": {
- "isAbstract": true
- },
- "children": "[Circular ~.children.0.children]",
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [499]
- },
+ "type": "reflection",
+ "declaration": {
+ "id": 547,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "title": "Properties",
+ "id": 548,
+ "name": "properties",
"kind": 1024,
- "children": [515, 507, 510, 505, 503, 506, 508, 509, 504]
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 554,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 557,
+ "name": "GenerateLinkProperties"
+ }
},
{
- "title": "Methods",
- "kind": 2048,
- "children": [518, 516]
- }
- ],
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 5,
- "character": 30
- }
- ],
- "typeParameter": [
- {
- "id": 530,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
+ "id": 549,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 555,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 384,
+ "name": "User"
+ }
}
],
- "extendedBy": [
+ "groups": [
{
- "type": "reference",
- "id": 401,
- "name": "PostgrestTransformBuilder"
+ "title": "Properties",
+ "kind": 1024,
+ "children": [548, 549]
}
],
- "implementedTypes": [
+ "sources": [
{
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ "fileName": "src/lib/types.ts",
+ "line": 553,
+ "character": 12
}
]
}
}
+ },
+ {
+ "id": 550,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 557,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
}
],
- "type": {
- "type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 515,
- "name": "allowEmpty",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 16,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 507,
- "name": "body",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 12,
- "character": 12
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [546, 550]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 552,
+ "character": 4
+ }
+ ]
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "unknown"
- }
- },
- {
- "id": 510,
- "name": "fetch",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
},
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 15,
- "character": 12
- }
- ],
- "type": {
+ {
"type": "reflection",
"declaration": {
- "id": 511,
+ "id": 551,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
- "signatures": [
+ "children": [
{
- "id": 512,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 552,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "parameters": [
+ "sources": [
{
- "id": 513,
- "name": "input",
- "kind": 32768,
- "kindString": "Parameter",
+ "fileName": "src/lib/types.ts",
+ "line": 560,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 553,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "qualifiedName": "RequestInfo",
- "package": "typescript",
- "name": "RequestInfo"
- },
- {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
+ "children": [
+ {
+ "id": 554,
+ "name": "properties",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 561,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
}
- ]
- }
- },
+ },
+ {
+ "id": 555,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 562,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [554, 555]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 560,
+ "character": 12
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 556,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
{
- "id": 514,
- "name": "init",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "RequestInit",
- "package": "typescript",
- "name": "RequestInit"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 564,
+ "character": 6
}
],
"type": {
"type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "qualifiedName": "Response",
- "package": "typescript",
- "name": "Response"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
+ "id": 727,
+ "name": "AuthError"
}
}
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [552, 556]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 559,
+ "character": 4
+ }
]
}
}
- },
+ ]
+ }
+ },
+ {
+ "id": 564,
+ "name": "GenerateLinkType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 505,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
+ "fileName": "src/lib/types.ts",
+ "line": 589,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "signup"
},
- "sources": [
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_current"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_new"
+ }
+ ]
+ }
+ },
+ {
+ "id": 529,
+ "name": "GenerateRecoveryLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 516,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 530,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 10,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
+ "id": 532,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email"
},
- {
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 519,
+ "character": 2
+ }
+ ],
+ "type": {
"type": "intrinsic",
"name": "string"
}
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- },
- {
- "id": 503,
- "name": "method",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
+ },
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 8,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "GET"
- },
- {
- "type": "literal",
- "value": "HEAD"
- },
- {
- "type": "literal",
- "value": "POST"
- },
- {
- "type": "literal",
- "value": "PATCH"
+ "id": 533,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "literal",
- "value": "DELETE"
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 520,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
}
- ]
- }
- },
- {
- "id": 506,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 11,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 508,
- "name": "shouldThrowOnError",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
+ },
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 13,
- "character": 12
+ "id": 531,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 517,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "recovery"
+ }
}
],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- },
- "defaultValue": "false"
- },
- {
- "id": 509,
- "name": "signal",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
- },
- "sources": [
+ "groups": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 14,
- "character": 12
+ "title": "Properties",
+ "kind": 1024,
+ "children": [532, 533, 531]
}
],
- "type": {
- "type": "reference",
- "qualifiedName": "AbortSignal",
- "package": "typescript",
- "name": "AbortSignal"
- }
- },
- {
- "id": 504,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 9,
- "character": 12
+ "fileName": "src/lib/types.ts",
+ "line": 516,
+ "character": 41
}
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
- }
- },
+ ]
+ }
+ }
+ },
+ {
+ "id": 518,
+ "name": "GenerateSignupLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 518,
- "name": "then",
- "kind": 2048,
- "kindString": "Method",
+ "fileName": "src/lib/types.ts",
+ "line": 502,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 519,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 48,
- "character": 2
- }
- ],
- "signatures": [
+ "children": [
{
- "id": 519,
- "name": "then",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 521,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "typeParameter": [
- {
- "id": 520,
- "name": "TResult1",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- },
+ "sources": [
{
- "id": 521,
- "name": "TResult2",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
- "type": "intrinsic",
- "name": "never"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 504,
+ "character": 2
}
],
- "parameters": [
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 523,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 522,
- "name": "onfulfilled",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 523,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 524,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 525,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- {
- "id": 526,
- "name": "onrejected",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 527,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 528,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 529,
- "name": "reason",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- }
- }
- ]
- }
+ "fileName": "src/lib/types.ts",
+ "line": 506,
+ "character": 2
}
],
"type": {
"type": "reference",
"typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
{
"type": "union",
"types": [
{
- "type": "reference",
- "id": 388,
- "name": "TResult1"
+ "type": "literal",
+ "value": "data"
},
{
- "type": "reference",
- "id": 389,
- "name": "TResult2"
+ "type": "literal",
+ "value": "redirectTo"
}
]
}
],
- "qualifiedName": "PromiseLike",
+ "qualifiedName": "Pick",
"package": "typescript",
- "name": "PromiseLike"
- },
- "implementationOf": {
- "type": "reference",
- "name": "PromiseLike.then"
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 522,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 505,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 520,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 503,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "signup"
}
}
],
- "implementationOf": {
- "type": "reference",
- "name": "PromiseLike.then"
- }
- },
- {
- "id": 516,
- "name": "throwOnError",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
+ "groups": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 43,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [521, 523, 522, 520]
}
],
- "signatures": [
+ "sources": [
{
- "id": 517,
- "name": "throwOnError",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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"
- },
- "type": {
- "type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "default"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 502,
+ "character": 39
}
]
}
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [499]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [515, 507, 510, 505, 503, 506, 508, 509, 504]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [518, 516]
- }
- ],
+ }
+ },
+ {
+ "id": 288,
+ "name": "GoTrueClientOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 5,
- "character": 30
- }
- ],
- "typeParameter": [
- {
- "id": 530,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "extendedBy": [
- {
- "type": "reference",
- "id": 401,
- "name": "PostgrestTransformBuilder"
+ "fileName": "src/lib/types.ts",
+ "line": 34,
+ "character": 12
}
],
- "implementedTypes": [
- {
- "type": "reference",
- "typeArguments": [
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 289,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "type": "reference",
- "id": 531,
- "typeArguments": [
+ "id": 297,
+ "name": "autoRefreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "type": "reference",
- "id": 501,
- "name": "Result"
+ "fileName": "src/lib/types.ts",
+ "line": 44,
+ "character": 2
}
],
- "name": "PostgrestResponse"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- },
- {
- "id": 1,
- "name": "PostgrestClient",
- "kind": 128,
- "kindString": "Class",
- "flags": {},
- "comment": {
- "shortText": "PostgREST client."
- },
- "children": [
- {
- "id": 2,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {},
- "sources": [
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
{
- "fileName": "src/PostgrestClient.ts",
- "line": 41,
- "character": 2
- }
- ],
- "signatures": [
+ "id": 296,
+ "name": "detectSessionInUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 42,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
{
- "id": 3,
- "name": "new PostgrestClient",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {},
- "comment": {
- "shortText": "Creates a PostgREST client."
+ "id": 300,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- "typeParameter": [
+ "sources": [
{
- "id": 4,
- "name": "Database",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
- "type": "intrinsic",
- "name": "any"
- }
- },
+ "fileName": "src/lib/types.ts",
+ "line": 50,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 291,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 5,
- "name": "SchemaName",
- "kind": 131072,
- "kindString": "Type parameter",
+ "fileName": "src/lib/types.ts",
+ "line": 38,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 292,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "default": {
- "type": "conditional",
- "checkType": {
- "type": "literal",
- "value": "public"
- },
- "extendsType": {
- "type": "typeOperator",
- "operator": "keyof",
- "target": {
- "type": "reference",
- "id": 4,
- "name": "Database"
- }
- },
- "trueType": {
- "type": "literal",
- "value": "public"
- },
- "falseType": {
- "type": "intersection",
- "types": [
- {
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 38,
+ "character": 12
+ }
+ ],
+ "indexSignature": {
+ "id": 293,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 294,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
"type": "intrinsic",
"name": "string"
- },
- {
- "type": "typeOperator",
- "operator": "keyof",
- "target": {
- "type": "reference",
- "id": 4,
- "name": "Database"
- }
}
- ]
- }
- }
- },
- {
- "id": 6,
- "name": "Schema",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "name": "GenericSchema"
- },
- "default": {
- "type": "conditional",
- "checkType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 5,
- "name": "SchemaName"
- },
- "objectType": {
- "type": "reference",
- "id": 4,
- "name": "Database"
- }
- },
- "extendsType": {
- "type": "reference",
- "name": "GenericSchema"
- },
- "trueType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "intrinsic",
- "name": "any"
- },
- "objectType": {
- "type": "intrinsic",
- "name": "any"
}
- },
- "falseType": {
+ ],
+ "type": {
"type": "intrinsic",
- "name": "any"
+ "name": "string"
}
}
}
- ],
- "parameters": [
- {
- "id": 7,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "URL of the PostgREST endpoint"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
+ }
+ },
+ {
+ "id": 298,
+ "name": "persistSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 8,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "Named parameters"
- },
- "originalName": "__namedParameters",
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 9,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 12,
- "name": "fetch",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestClient.ts",
- "line": 50,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 13,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 14,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Custom fetch\n"
- },
- "parameters": [
- {
- "id": 15,
- "name": "input",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "qualifiedName": "RequestInfo",
- "package": "typescript",
- "name": "RequestInfo"
- },
- {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
- }
- ]
- }
- },
- {
- "id": 16,
- "name": "init",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "RequestInit",
- "package": "typescript",
- "name": "RequestInit"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "qualifiedName": "Response",
- "package": "typescript",
- "name": "Response"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- }
- }
- },
- {
- "id": 10,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Custom headers"
- },
- "sources": [
- {
- "fileName": "src/PostgrestClient.ts",
- "line": 48,
- "character": 6
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- },
- {
- "id": 11,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Postgres schema to switch to"
- },
- "sources": [
- {
- "fileName": "src/PostgrestClient.ts",
- "line": 49,
- "character": 6
- }
- ],
- "type": {
- "type": "reference",
- "id": 5,
- "name": "SchemaName"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [12, 10, 11]
- }
- ]
- }
- },
- "defaultValue": "{}"
+ "fileName": "src/lib/types.ts",
+ "line": 46,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "id": 1,
- "typeArguments": [
- {
- "type": "reference",
- "id": 4,
- "name": "Database"
- },
- {
- "type": "reference",
- "id": 5,
- "name": "SchemaName"
- },
- {
- "type": "reference",
- "id": 6,
- "name": "Schema"
- }
- ],
- "name": "default"
+ "type": "intrinsic",
+ "name": "boolean"
}
- }
- ]
- },
- {
- "id": 20,
- "name": "fetch",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ },
{
- "fileName": "src/PostgrestClient.ts",
- "line": 29,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 21,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
+ "id": 299,
+ "name": "storage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 22,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
+ "fileName": "src/lib/types.ts",
+ "line": 48,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 706,
+ "name": "SupportedStorage",
+ "dereferenced": {
+ "id": 706,
+ "name": "SupportedStorage",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "parameters": [
- {
- "id": 23,
- "name": "input",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "qualifiedName": "RequestInfo",
- "package": "typescript",
- "name": "RequestInfo"
- },
- {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
- }
- ]
- }
- },
+ "sources": [
{
- "id": 24,
- "name": "init",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "RequestInit",
- "package": "typescript",
- "name": "RequestInit"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 903,
+ "character": 12
}
],
"type": {
@@ -25982,448 +26137,690 @@
"typeArguments": [
{
"type": "reference",
- "qualifiedName": "Response",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Storage",
+ "package": "typescript",
+ "name": "Storage"
+ },
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "getItem"
+ },
+ {
+ "type": "literal",
+ "value": "setItem"
+ },
+ {
+ "type": "literal",
+ "value": "removeItem"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Pick",
"package": "typescript",
- "name": "Response"
+ "name": "Pick"
}
],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
+ "name": "PromisifyMethods"
}
}
- ]
- }
- }
- },
- {
- "id": 18,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ }
+ },
{
- "fileName": "src/PostgrestClient.ts",
- "line": 27,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
+ "id": 295,
+ "name": "storageKey",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 40,
+ "character": 2
+ }
+ ],
+ "type": {
"type": "intrinsic",
"name": "string"
+ }
+ },
+ {
+ "id": 290,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 36,
+ "character": 2
+ }
+ ],
+ "type": {
"type": "intrinsic",
"name": "string"
}
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- },
- {
- "id": 19,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestClient.ts",
- "line": 28,
- "character": 2
}
],
- "type": {
- "type": "reference",
- "id": 5,
- "name": "SchemaName"
- }
- },
- {
- "id": 17,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "groups": [
{
- "fileName": "src/PostgrestClient.ts",
- "line": 26,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [297, 296, 300, 291, 298, 299, 295, 290]
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 25,
- "name": "from",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
"sources": [
{
- "fileName": "src/PostgrestClient.ts",
- "line": 59,
- "character": 2
+ "fileName": "src/lib/types.ts",
+ "line": 34,
+ "character": 34
}
- ],
- "signatures": [
- {
- "id": 26,
- "name": "from",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Perform a query on a table or a view."
- },
- "typeParameter": [
- {
- "id": 27,
- "name": "TableName",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 28,
- "name": "Table",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "name": "GenericTable"
- }
- }
- ],
- "parameters": [
+ ]
+ }
+ }
+ },
+ {
+ "id": 707,
+ "name": "InitializeResult",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 905,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 708,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 709,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
{
- "id": 29,
- "name": "relation",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The table or view name to query\n"
- },
- "type": {
- "type": "reference",
- "id": 27,
- "name": "TableName",
- "dereferenced": {}
- }
+ "fileName": "src/lib/types.ts",
+ "line": 905,
+ "character": 33
}
],
"type": {
- "type": "reference",
- "id": 49,
- "typeArguments": [
+ "type": "union",
+ "types": [
{
"type": "reference",
- "id": 6,
- "name": "Schema"
+ "id": 727,
+ "name": "AuthError"
},
{
- "type": "reference",
- "id": 28,
- "name": "Table"
+ "type": "literal",
+ "value": null
}
- ],
- "name": "default"
+ ]
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 30,
- "name": "from",
- "kind": 4096,
- "kindString": "Call signature",
+ "title": "Properties",
+ "kind": 1024,
+ "children": [709]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 905,
+ "character": 31
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 581,
+ "name": "MFAChallengeAndVerifyParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 627,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 582,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 584,
+ "name": "code",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
"comment": {
- "shortText": "Perform a query on a table or a view."
+ "shortText": "Verification code provided by the user."
},
- "typeParameter": [
- {
- "id": 31,
- "name": "ViewName",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 32,
- "name": "View",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "name": "GenericView"
- }
- }
- ],
- "parameters": [
+ "sources": [
{
- "id": 33,
- "name": "relation",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The table or view name to query\n"
- },
- "type": {
- "type": "reference",
- "id": 31,
- "name": "ViewName",
- "dereferenced": {}
- }
+ "fileName": "src/lib/types.ts",
+ "line": 631,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "id": 49,
- "typeArguments": [
- {
- "type": "reference",
- "id": 6,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 32,
- "name": "View"
- }
- ],
- "name": "default"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 34,
- "name": "from",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 583,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
"comment": {
- "shortText": "Perform a query on a table or a view."
+ "shortText": "ID of the factor being verified. Returned in enroll()."
},
- "parameters": [
+ "sources": [
{
- "id": 35,
- "name": "relation",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The table or view name to query\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 629,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "id": 49,
- "typeArguments": [
- {
- "type": "reference",
- "id": 6,
- "name": "Schema"
- },
- {
- "type": "intrinsic",
- "name": "any"
- }
- ],
- "name": "default"
+ "type": "intrinsic",
+ "name": "string"
}
}
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [584, 583]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 627,
+ "character": 42
+ }
]
- },
+ }
+ }
+ },
+ {
+ "id": 578,
+ "name": "MFAChallengeParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 36,
- "name": "rpc",
- "kind": 2048,
- "kindString": "Method",
+ "fileName": "src/lib/types.ts",
+ "line": 622,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 579,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
+ "children": [
{
- "fileName": "src/PostgrestClient.ts",
- "line": 102,
- "character": 2
+ "id": 580,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor to be challenged. Returned in enroll()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 624,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
- "signatures": [
+ "groups": [
{
- "id": 37,
- "name": "rpc",
- "kind": 4096,
- "kindString": "Call signature",
+ "title": "Properties",
+ "kind": 1024,
+ "children": [580]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 622,
+ "character": 33
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 565,
+ "name": "MFAEnrollParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 597,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 566,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 567,
+ "name": "factorType",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
"comment": {
- "shortText": "Perform a function call."
+ "shortText": "The type of factor being enrolled."
},
- "typeParameter": [
+ "sources": [
{
- "id": 38,
- "name": "FunctionName",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
+ "fileName": "src/lib/types.ts",
+ "line": 599,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "totp"
+ }
+ },
+ {
+ "id": 569,
+ "name": "friendlyName",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Human readable name assigned to the factor."
+ },
+ "sources": [
{
- "id": 39,
- "name": "Function_",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "name": "GenericFunction"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 603,
+ "character": 2
}
],
- "parameters": [
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 568,
+ "name": "issuer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Domain which the user is enrolled with."
+ },
+ "sources": [
{
- "id": 40,
- "name": "fn",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The function name to call"
- },
- "type": {
- "type": "reference",
- "id": 38,
- "name": "FunctionName",
- "dereferenced": {}
- }
- },
+ "fileName": "src/lib/types.ts",
+ "line": 601,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [567, 569, 568]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 597,
+ "character": 30
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 570,
+ "name": "MFAUnenrollParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 606,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 571,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 572,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being unenrolled."
+ },
+ "sources": [
{
- "id": 41,
- "name": "args",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The arguments to pass to the function call"
- },
- "type": {
- "type": "indexedAccess",
- "indexType": {
- "type": "literal",
- "value": "Args"
- },
- "objectType": {
- "type": "reference",
- "id": 39,
- "name": "Function_"
- }
- },
- "defaultValue": "{}"
- },
+ "fileName": "src/lib/types.ts",
+ "line": 608,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [572]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 606,
+ "character": 32
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 573,
+ "name": "MFAVerifyParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 611,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 574,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 576,
+ "name": "challengeId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the challenge being verified. Returned in challenge()."
+ },
+ "sources": [
{
- "id": 42,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
+ "fileName": "src/lib/types.ts",
+ "line": 616,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 577,
+ "name": "code",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Verification code provided by the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 619,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 575,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being verified. Returned in enroll()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 613,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [576, 577, 575]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 611,
+ "character": 30
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 506,
+ "name": "MobileOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 481,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "phone_change"
+ }
+ ]
+ }
+ },
+ {
+ "id": 314,
+ "name": "OAuthResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 69,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 315,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 316,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "Named parameters"
- },
- "originalName": "__namedParameters",
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 71,
+ "character": 6
+ }
+ ],
"type": {
"type": "reflection",
"declaration": {
- "id": 43,
+ "id": 317,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 45,
- "name": "count",
+ "id": 318,
+ "name": "provider",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "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"
- },
+ "flags": {},
"sources": [
{
- "fileName": "src/PostgrestClient.ts",
- "line": 113,
- "character": 6
+ "fileName": "src/lib/types.ts",
+ "line": 72,
+ "character": 8
}
],
"type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "exact"
- },
- {
- "type": "literal",
- "value": "planned"
- },
- {
- "type": "literal",
- "value": "estimated"
- }
- ]
+ "type": "reference",
+ "id": 285,
+ "name": "Provider"
}
},
{
- "id": 44,
- "name": "head",
+ "id": 319,
+ "name": "url",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "When set to `true`, `data` will not be returned.\nUseful if you only need the count."
- },
+ "flags": {},
"sources": [
{
- "fileName": "src/PostgrestClient.ts",
- "line": 112,
- "character": 6
+ "fileName": "src/lib/types.ts",
+ "line": 73,
+ "character": 8
}
],
"type": {
"type": "intrinsic",
- "name": "boolean"
+ "name": "string"
}
}
],
@@ -26431,649 +26828,1252 @@
{
"title": "Properties",
"kind": 1024,
- "children": [45, 44]
+ "children": [318, 319]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 71,
+ "character": 12
}
]
}
- },
- "defaultValue": "{}"
+ }
+ },
+ {
+ "id": 320,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 75,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
}
],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 6,
- "name": "Schema"
- },
- {
- "type": "conditional",
- "checkType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "literal",
- "value": "Returns"
- },
- "objectType": {
- "type": "reference",
- "id": 39,
- "name": "Function_"
- }
- },
- "extendsType": {
- "type": "array",
- "elementType": {
- "type": "intrinsic",
- "name": "any"
- }
- },
- "trueType": {
- "type": "conditional",
- "checkType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "intrinsic",
- "name": "number"
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [316, 320]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 70,
+ "character": 4
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 321,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 322,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 78,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 323,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 324,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 79,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 285,
+ "name": "Provider"
+ }
},
- "objectType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "intrinsic",
- "name": "any"
- },
- "objectType": {
- "type": "intrinsic",
- "name": "any"
+ {
+ "id": 325,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 80,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
}
}
- },
- "extendsType": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- },
- "trueType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "intrinsic",
- "name": "any"
- },
- "objectType": {
- "type": "intrinsic",
- "name": "any"
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [324, 325]
}
- },
- "falseType": {
- "type": "intrinsic",
- "name": "never"
- }
- },
- "falseType": {
- "type": "intrinsic",
- "name": "never"
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 78,
+ "character": 12
+ }
+ ]
}
- },
- {
- "type": "indexedAccess",
- "indexType": {
- "type": "literal",
- "value": "Returns"
- },
- "objectType": {
- "type": "reference",
- "id": 39,
- "name": "Function_"
+ }
+ },
+ {
+ "id": 326,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 82,
+ "character": 6
}
+ ],
+ "type": {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
}
- ],
- "name": "default"
- }
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [2]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [20, 18, 19, 17]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [25, 36]
- }
- ],
- "sources": [
- {
- "fileName": "src/PostgrestClient.ts",
- "line": 17,
- "character": 21
- }
- ],
- "typeParameter": [
- {
- "id": 46,
- "name": "Database",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "comment": {
- "shortText": "Types for the schema from the [type\ngenerator](https://supabase.com/docs/reference/javascript/next/typescript-support)\n"
- },
- "default": {
- "type": "intrinsic",
- "name": "any"
- }
- },
- {
- "id": 47,
- "name": "SchemaName",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "comment": {
- "shortText": "Postgres schema to switch to. Must be a string\nliteral, the same one passed to the constructor. If the schema is not\n`\"public\"`, this must be supplied manually.\n"
- },
- "type": {
- "type": "intersection",
- "types": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "typeOperator",
- "operator": "keyof",
- "target": {
- "type": "reference",
- "id": 4,
- "name": "Database"
}
- }
- ]
- },
- "default": {
- "type": "conditional",
- "checkType": {
- "type": "literal",
- "value": "public"
- },
- "extendsType": {
- "type": "typeOperator",
- "operator": "keyof",
- "target": {
- "type": "reference",
- "id": 4,
- "name": "Database"
- }
- },
- "trueType": {
- "type": "literal",
- "value": "public"
- },
- "falseType": {
- "type": "intersection",
- "types": [
+ ],
+ "groups": [
{
- "type": "intrinsic",
- "name": "string"
- },
+ "title": "Properties",
+ "kind": 1024,
+ "children": [322, 326]
+ }
+ ],
+ "sources": [
{
- "type": "typeOperator",
- "operator": "keyof",
- "target": {
- "type": "reference",
- "id": 4,
- "name": "Database"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 77,
+ "character": 4
}
]
}
}
- },
+ ]
+ }
+ },
+ {
+ "id": 717,
+ "name": "PageParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 48,
- "name": "Schema",
- "kind": 131072,
- "kindString": "Type parameter",
+ "fileName": "src/lib/types.ts",
+ "line": 917,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 718,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "type": {
- "type": "reference",
- "name": "GenericSchema"
- },
- "default": {
- "type": "conditional",
- "checkType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 5,
- "name": "SchemaName"
+ "children": [
+ {
+ "id": 719,
+ "name": "page",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- "objectType": {
- "type": "reference",
- "id": 4,
- "name": "Database"
+ "comment": {
+ "shortText": "The page number"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 919,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
}
},
- "extendsType": {
- "type": "reference",
- "name": "GenericSchema"
- },
- "trueType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 5,
- "name": "SchemaName"
+ {
+ "id": 720,
+ "name": "perPage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- "objectType": {
- "type": "reference",
- "id": 4,
- "name": "Database"
+ "comment": {
+ "shortText": "Number of items returned per page"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 921,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
}
- },
- "falseType": {
- "type": "intrinsic",
- "name": "any"
}
- }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [719, 720]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 917,
+ "character": 25
+ }
+ ]
}
- ]
+ }
},
{
- "id": 112,
- "name": "PostgrestFilterBuilder",
- "kind": 128,
- "kindString": "Class",
+ "id": 285,
+ "name": "Provider",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "children": [
+ "comment": {
+ "shortText": "One of the providers supported by GoTrue."
+ },
+ "sources": [
{
- "id": 113,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {},
- "signatures": [
- {
- "id": 114,
- "name": "new PostgrestFilterBuilder",
- "kind": 16384,
- "kindString": "Constructor signature",
+ "fileName": "src/lib/types.ts",
+ "line": 5,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ }
+ ]
+ }
+ },
+ {
+ "id": 327,
+ "name": "SSOResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 85,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 328,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "typeParameter": [
+ "children": [
{
- "id": 115,
- "name": "Schema",
- "kind": 131072,
- "kindString": "Type parameter",
+ "id": 329,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 87,
+ "character": 6
+ }
+ ],
"type": {
- "type": "reference",
- "name": "GenericSchema"
+ "type": "reflection",
+ "declaration": {
+ "id": 330,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 331,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "URL to take the user to (in a browser) to complete SSO."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 89,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [331]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 87,
+ "character": 12
+ }
+ ]
+ }
}
},
{
- "id": 116,
- "name": "Row",
- "kind": 131072,
- "kindString": "Type parameter",
+ "id": 332,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 91,
+ "character": 6
+ }
+ ],
"type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
+ "type": "literal",
+ "value": null
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 117,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
+ "title": "Properties",
+ "kind": 1024,
+ "children": [329, 332]
}
],
- "parameters": [
+ "sources": [
{
- "id": 118,
- "name": "builder",
- "kind": 32768,
- "kindString": "Parameter",
+ "fileName": "src/lib/types.ts",
+ "line": 86,
+ "character": 4
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 333,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 334,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 94,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 335,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 95,
+ "character": 6
+ }
+ ],
"type": {
"type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default",
- "dereferenced": {
- "id": 498,
- "name": "PostgrestBuilder",
- "kind": 128,
- "kindString": "Class",
+ "id": 727,
+ "name": "AuthError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [334, 335]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 93,
+ "character": 4
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 478,
+ "name": "SignInWithOAuthCredentials",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 433,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 479,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 481,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 436,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 482,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 485,
+ "name": "queryParams",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {
- "isAbstract": true
+ "isOptional": true
},
- "children": [
+ "comment": {
+ "shortText": "An object of query params"
+ },
+ "sources": [
{
- "id": 499,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
+ "fileName": "src/lib/types.ts",
+ "line": 442,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 486,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 18,
- "character": 2
+ "fileName": "src/lib/types.ts",
+ "line": 442,
+ "character": 18
}
],
- "signatures": [
- {
- "id": 500,
- "name": "new PostgrestBuilder",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {},
- "typeParameter": [
- {
- "id": 501,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "parameters": [
- {
- "id": 502,
- "name": "builder",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "default",
- "dereferenced": "[Circular ~.children.2.children.0.signatures.0.parameters.0.type.dereferenced]"
- }
+ "indexSignature": {
+ "id": 487,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 488,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ],
- "type": {
- "type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "default"
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ]
- },
+ }
+ }
+ }
+ },
+ {
+ "id": 483,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ },
+ "sources": [
{
- "id": 515,
- "name": "allowEmpty",
+ "fileName": "src/lib/types.ts",
+ "line": 438,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 484,
+ "name": "scopes",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A space-separated list of scopes granted to the OAuth application."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 440,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [485, 483, 484]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 436,
+ "character": 12
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 480,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "One of the providers supported by GoTrue."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 435,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 285,
+ "name": "Provider",
+ "dereferenced": {
+ "id": 285,
+ "name": "Provider",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "shortText": "One of the providers supported by GoTrue."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 5,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [481, 480]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 433,
+ "character": 41
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 447,
+ "name": "SignInWithPasswordCredentials",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 363,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 448,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 449,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email address."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 366,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 451,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 369,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 452,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 454,
+ "name": "captchaToken",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isProtected": true
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 16,
- "character": 12
+ "fileName": "src/lib/types.ts",
+ "line": 377,
+ "character": 8
}
],
"type": {
"type": "intrinsic",
- "name": "boolean"
+ "name": "string"
}
},
{
- "id": 507,
- "name": "body",
+ "id": 453,
+ "name": "data",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isProtected": true,
"isOptional": true
},
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ },
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 12,
- "character": 12
+ "fileName": "src/lib/types.ts",
+ "line": 375,
+ "character": 8
}
],
"type": {
"type": "intrinsic",
- "name": "unknown"
+ "name": "object"
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 510,
- "name": "fetch",
+ "title": "Properties",
"kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 15,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 511,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 512,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 513,
- "name": "input",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "qualifiedName": "RequestInfo",
- "package": "typescript",
- "name": "RequestInfo"
- },
- {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
- }
- ]
- }
- },
- {
- "id": 514,
- "name": "init",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "RequestInit",
- "package": "typescript",
- "name": "RequestInit"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "qualifiedName": "Response",
- "package": "typescript",
- "name": "Response"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- }
- }
- },
+ "children": [454, 453]
+ }
+ ],
+ "sources": [
{
- "id": 505,
- "name": "headers",
+ "fileName": "src/lib/types.ts",
+ "line": 369,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 450,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 368,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [449, 451, 450]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 364,
+ "character": 4
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 455,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 458,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 385,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 459,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 461,
+ "name": "captchaToken",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isProtected": true
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 10,
- "character": 12
+ "fileName": "src/lib/types.ts",
+ "line": 393,
+ "character": 8
}
],
"type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 503,
- "name": "method",
+ "id": 460,
+ "name": "data",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isProtected": true
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 8,
- "character": 12
+ "fileName": "src/lib/types.ts",
+ "line": 391,
+ "character": 8
}
],
"type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "GET"
- },
- {
- "type": "literal",
- "value": "HEAD"
- },
- {
- "type": "literal",
- "value": "POST"
- },
- {
- "type": "literal",
- "value": "PATCH"
- },
- {
- "type": "literal",
- "value": "DELETE"
- }
- ]
+ "type": "intrinsic",
+ "name": "object"
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 506,
- "name": "schema",
+ "title": "Properties",
+ "kind": 1024,
+ "children": [461, 460]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 385,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 457,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 384,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 456,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 382,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [458, 457, 456]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 380,
+ "character": 4
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 462,
+ "name": "SignInWithPasswordlessCredentials",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 397,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 463,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 464,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email address."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 400,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 465,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 401,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 466,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 470,
+ "name": "captchaToken",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isProtected": true,
"isOptional": true
},
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 11,
- "character": 12
+ "fileName": "src/lib/types.ts",
+ "line": 413,
+ "character": 8
}
],
"type": {
@@ -27082,2016 +28082,2632 @@
}
},
{
- "id": 508,
- "name": "shouldThrowOnError",
+ "id": 469,
+ "name": "data",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isProtected": true
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 13,
- "character": 12
+ "fileName": "src/lib/types.ts",
+ "line": 411,
+ "character": 8
}
],
"type": {
"type": "intrinsic",
- "name": "boolean"
- },
- "defaultValue": "false"
+ "name": "object"
+ }
},
{
- "id": 509,
- "name": "signal",
+ "id": 467,
+ "name": "emailRedirectTo",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isProtected": true,
"isOptional": true
},
+ "comment": {
+ "shortText": "The redirect url embedded in the email link"
+ },
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 14,
- "character": 12
+ "fileName": "src/lib/types.ts",
+ "line": 403,
+ "character": 8
}
],
"type": {
- "type": "reference",
- "qualifiedName": "AbortSignal",
- "package": "typescript",
- "name": "AbortSignal"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 504,
- "name": "url",
+ "id": 468,
+ "name": "shouldCreateUser",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isProtected": true
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If set to false, this method will not create a new user. Defaults to true."
},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 9,
- "character": 12
+ "fileName": "src/lib/types.ts",
+ "line": 405,
+ "character": 8
}
],
"type": {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
+ "type": "intrinsic",
+ "name": "boolean"
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 518,
- "name": "then",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
+ "title": "Properties",
+ "kind": 1024,
+ "children": [470, 469, 467, 468]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 401,
+ "character": 16
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [464, 465]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 398,
+ "character": 4
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 471,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 473,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 419,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 474,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 477,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 48,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 519,
- "name": "then",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "typeParameter": [
- {
- "id": 520,
- "name": "TResult1",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- },
- {
- "id": 521,
- "name": "TResult2",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
- "type": "intrinsic",
- "name": "never"
- }
- }
- ],
- "parameters": [
- {
- "id": 522,
- "name": "onfulfilled",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 523,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 524,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 525,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- {
- "id": 526,
- "name": "onrejected",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 527,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 528,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 529,
- "name": "reason",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- }
- }
- ]
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- },
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- }
- ]
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- },
- "implementationOf": {
- "type": "reference",
- "name": "PromiseLike.then"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 429,
+ "character": 8
}
],
- "implementationOf": {
- "type": "reference",
- "name": "PromiseLike.then"
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 516,
- "name": "throwOnError",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
+ "id": 476,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ },
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 43,
- "character": 2
+ "fileName": "src/lib/types.ts",
+ "line": 427,
+ "character": 8
}
],
- "signatures": [
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 475,
+ "name": "shouldCreateUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If set to false, this method will not create a new user. Defaults to true."
+ },
+ "sources": [
{
- "id": 517,
- "name": "throwOnError",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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"
- },
- "type": {
- "type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "default"
- }
+ "fileName": "src/lib/types.ts",
+ "line": 421,
+ "character": 8
}
- ]
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
}
],
"groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [499]
- },
{
"title": "Properties",
"kind": 1024,
- "children": [515, 507, 510, 505, 503, 506, 508, 509, 504]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [518, 516]
+ "children": [477, 476, 475]
}
],
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 5,
- "character": 30
- }
- ],
- "typeParameter": [
- {
- "id": 530,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "extendedBy": [
- {
- "type": "reference",
- "id": 401,
- "name": "PostgrestTransformBuilder"
- }
- ],
- "implementedTypes": [
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ "fileName": "src/lib/types.ts",
+ "line": 419,
+ "character": 16
}
]
}
}
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
+ },
+ {
+ "id": 472,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's phone number."
},
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 418,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ],
- "name": "default"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 403,
- "name": "default.constructor"
- }
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 402,
- "name": "default.constructor"
- }
- },
- {
- "id": 383,
- "name": "allowEmpty",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 16,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 480,
- "name": "default.allowEmpty"
- }
- },
- {
- "id": 375,
- "name": "body",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 12,
- "character": 12
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [473, 472]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 416,
+ "character": 4
+ }
+ ]
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "unknown"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 472,
- "name": "default.body"
}
- },
+ ]
+ }
+ },
+ {
+ "id": 508,
+ "name": "SignInWithSSO",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 378,
- "name": "fetch",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 15,
- "character": 12
- }
- ],
- "type": {
+ "fileName": "src/lib/types.ts",
+ "line": 484,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intersection",
+ "types": [
+ {
"type": "reflection",
"declaration": {
- "id": 379,
+ "id": 509,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
- "signatures": [
+ "children": [
{
- "id": 380,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
+ "id": 510,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 381,
- "name": "input",
- "kind": 32768,
- "kindString": "Parameter",
+ "fileName": "src/lib/types.ts",
+ "line": 485,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 511,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "qualifiedName": "RequestInfo",
- "package": "typescript",
- "name": "RequestInfo"
+ "children": [
+ {
+ "id": 513,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 489,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ]
- }
- },
- {
- "id": 382,
- "name": "init",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "RequestInit",
- "package": "typescript",
- "name": "RequestInit"
- }
+ },
+ {
+ "id": 512,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A URL to send the user to after they have signed-in."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 487,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [513, 512]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 485,
+ "character": 12
+ }
+ ]
}
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "qualifiedName": "Response",
- "package": "typescript",
- "name": "Response"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
}
}
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [510]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 484,
+ "character": 28
+ }
]
}
},
- "inheritedFrom": {
- "type": "reference",
- "id": 475,
- "name": "default.fetch"
- }
- },
- {
- "id": 373,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 10,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 470,
- "name": "default.headers"
- }
- },
- {
- "id": 371,
- "name": "method",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 8,
- "character": 12
- }
- ],
- "type": {
+ {
"type": "union",
"types": [
{
- "type": "literal",
- "value": "GET"
- },
- {
- "type": "literal",
- "value": "HEAD"
- },
- {
- "type": "literal",
- "value": "POST"
- },
- {
- "type": "literal",
- "value": "PATCH"
+ "type": "reflection",
+ "declaration": {
+ "id": 514,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 515,
+ "name": "providerId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "UUID of the SSO provider to invoke single-sign on to."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 494,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [515]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 492,
+ "character": 4
+ }
+ ]
+ }
},
{
- "type": "literal",
- "value": "DELETE"
+ "type": "reflection",
+ "declaration": {
+ "id": 516,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 517,
+ "name": "domain",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Domain name of the organization for which to invoke single-sign on."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 498,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [517]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 496,
+ "character": 4
+ }
+ ]
+ }
}
]
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 468,
- "name": "default.method"
- }
- },
- {
- "id": 374,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 11,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 471,
- "name": "default.schema"
- }
- },
- {
- "id": 376,
- "name": "shouldThrowOnError",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 13,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- },
- "defaultValue": "false",
- "inheritedFrom": {
- "type": "reference",
- "id": 473,
- "name": "default.shouldThrowOnError"
- }
- },
- {
- "id": 377,
- "name": "signal",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 14,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "AbortSignal",
- "package": "typescript",
- "name": "AbortSignal"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 474,
- "name": "default.signal"
- }
- },
- {
- "id": 372,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 9,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 469,
- "name": "default.url"
}
- },
+ ]
+ }
+ },
+ {
+ "id": 431,
+ "name": "SignUpWithPasswordCredentials",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 345,
- "name": "abortSignal",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 130,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 346,
- "name": "abortSignal",
- "kind": 4096,
- "kindString": "Call signature",
+ "fileName": "src/lib/types.ts",
+ "line": 328,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 432,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "Set the AbortSignal for the fetch request."
- },
- "parameters": [
+ "children": [
{
- "id": 347,
- "name": "signal",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 433,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
"comment": {
- "shortText": "The AbortSignal to use for the fetch request\n"
+ "shortText": "The user's email address."
},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 331,
+ "character": 6
+ }
+ ],
"type": {
- "type": "reference",
- "qualifiedName": "AbortSignal",
- "package": "typescript",
- "name": "AbortSignal"
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
+ },
+ {
+ "id": 435,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 334,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 436,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 439,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 344,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 438,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 342,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 437,
+ "name": "emailRedirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The redirect url embedded in the email link"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 336,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [439, 438, 437]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 334,
+ "character": 16
+ }
+ ]
+ }
}
- ],
- "name": "default"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 443,
- "name": "default.abortSignal"
- }
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 442,
- "name": "default.abortSignal"
- }
- },
- {
- "id": 207,
- "name": "containedBy",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 209,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 208,
- "name": "containedBy",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\nevery element appearing in `column` is contained by `value`."
- },
- "typeParameter": [
+ },
{
- "id": 209,
- "name": "ColumnName",
- "kind": 131072,
- "kindString": "Type parameter",
+ "id": 434,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 333,
+ "character": 6
+ }
+ ],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
- "parameters": [
+ "groups": [
{
- "id": 210,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The jsonb, array, or range column to filter on"
- },
- "type": {
- "type": "reference",
- "id": 209,
- "name": "ColumnName",
- "dereferenced": {}
- }
- },
+ "title": "Properties",
+ "kind": 1024,
+ "children": [433, 435, 434]
+ }
+ ],
+ "sources": [
{
- "id": 211,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The jsonb, array, or range value to filter with\n"
+ "fileName": "src/lib/types.ts",
+ "line": 329,
+ "character": 4
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 440,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 443,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 352,
+ "character": 6
+ }
+ ],
"type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
+ "type": "reflection",
+ "declaration": {
+ "id": 444,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 446,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 360,
+ "character": 8
+ }
+ ],
+ "type": {
"type": "intrinsic",
- "name": "unknown"
+ "name": "string"
}
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- },
- {
- "type": "array",
- "elementType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 209,
- "name": "ColumnName"
+ },
+ {
+ "id": 445,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 358,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
}
}
- }
- ]
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [446, 445]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 352,
+ "character": 16
+ }
+ ]
+ }
}
- ],
- "name": "default"
- }
- },
- {
- "id": 212,
- "name": "containedBy",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\nevery element appearing in `column` is contained by `value`."
- },
- "parameters": [
+ },
{
- "id": 213,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 442,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
"comment": {
- "shortText": "The jsonb, array, or range column to filter on"
+ "shortText": "The user's password."
},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 351,
+ "character": 6
+ }
+ ],
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
- "id": 214,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 441,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
"comment": {
- "shortText": "The jsonb, array, or range value to filter with\n"
+ "shortText": "The user's phone number."
},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 349,
+ "character": 6
+ }
+ ],
"type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "array",
- "elementType": {
- "type": "intrinsic",
- "name": "unknown"
- }
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- ]
+ "type": "intrinsic",
+ "name": "string"
}
}
],
- "type": {
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [443, 442, 441]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 347,
+ "character": 4
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 706,
+ "name": "SupportedStorage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 903,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
"type": "reference",
- "id": 112,
- "typeArguments": [
+ "qualifiedName": "Storage",
+ "package": "typescript",
+ "name": "Storage"
+ },
+ {
+ "type": "union",
+ "types": [
{
- "type": "reference",
- "id": 115,
- "name": "Schema"
+ "type": "literal",
+ "value": "getItem"
},
{
- "type": "reference",
- "id": 116,
- "name": "Row"
+ "type": "literal",
+ "value": "setItem"
},
{
- "type": "reference",
- "id": 117,
- "name": "Result"
+ "type": "literal",
+ "value": "removeItem"
}
- ],
- "name": "default"
+ ]
}
- }
- ]
- },
- {
- "id": 199,
- "name": "contains",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 182,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 200,
- "name": "contains",
- "kind": 4096,
- "kindString": "Call signature",
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ ],
+ "name": "PromisifyMethods"
+ }
+ },
+ {
+ "id": 336,
+ "name": "UserResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 98,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 337,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\n`column` contains every element appearing in `value`."
- },
- "typeParameter": [
- {
- "id": 201,
- "name": "ColumnName",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "parameters": [
+ "children": [
{
- "id": 202,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 338,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The jsonb, array, or range column to filter on"
- },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 100,
+ "character": 6
+ }
+ ],
"type": {
- "type": "reference",
- "id": 201,
- "name": "ColumnName",
- "dereferenced": {}
+ "type": "reflection",
+ "declaration": {
+ "id": 339,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 340,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 101,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 384,
+ "name": "User"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [340]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 100,
+ "character": 12
+ }
+ ]
+ }
}
},
{
- "id": 203,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 341,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The jsonb, array, or range value to filter with\n"
- },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 103,
+ "character": 6
+ }
+ ],
"type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- },
- {
- "type": "array",
- "elementType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 201,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- }
- }
- ]
+ "type": "literal",
+ "value": null
}
}
],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- },
- {
- "id": 204,
- "name": "contains",
- "kind": 4096,
- "kindString": "Call signature",
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [338, 341]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 99,
+ "character": 4
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 342,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\n`column` contains every element appearing in `value`."
- },
- "parameters": [
+ "children": [
{
- "id": 205,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 343,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The jsonb, array, or range column to filter on"
- },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 106,
+ "character": 6
+ }
+ ],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reflection",
+ "declaration": {
+ "id": 344,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 345,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 107,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [345]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 106,
+ "character": 12
+ }
+ ]
+ }
}
},
{
- "id": 206,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 346,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "The jsonb, array, or range value to filter with\n"
- },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 109,
+ "character": 6
+ }
+ ],
"type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "string"
- },
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [343, 346]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 105,
+ "character": 4
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 489,
+ "name": "VerifyOtpParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 446,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "id": 490,
+ "name": "VerifyMobileOtpParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 494,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 454,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 495,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "type": "array",
- "elementType": {
+ "id": 497,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site.",
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "\n"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 463,
+ "character": 4
+ }
+ ],
+ "type": {
"type": "intrinsic",
- "name": "unknown"
+ "name": "string"
}
},
{
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
+ "id": 496,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ },
+ "sources": [
{
- "type": "intrinsic",
- "name": "unknown"
+ "fileName": "src/lib/types.ts",
+ "line": 456,
+ "character": 4
}
],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [497, 496]
}
]
}
}
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
+ },
+ {
+ "id": 491,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's phone number."
+ },
+ "sources": [
{
- "type": "reference",
- "id": 117,
- "name": "Result"
+ "fileName": "src/lib/types.ts",
+ "line": 449,
+ "character": 2
}
],
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 352,
- "name": "csv",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 161,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 353,
- "name": "csv",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Return `data` as a string in CSV format."
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
},
- "type": {
- "type": "reference",
- "typeArguments": [
+ {
+ "id": 492,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The otp sent to the user's phone number."
+ },
+ "sources": [
{
- "type": "reference",
- "id": 533,
- "typeArguments": [
+ "fileName": "src/lib/types.ts",
+ "line": 451,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 493,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's verification type."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 453,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 506,
+ "name": "MobileOtpType",
+ "dereferenced": {
+ "id": 506,
+ "name": "MobileOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "type": "intrinsic",
- "name": "string"
+ "fileName": "src/lib/types.ts",
+ "line": 481,
+ "character": 12
}
],
- "name": "PostgrestSingleResponse"
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "phone_change"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [494, 491, 492, 493]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 447,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 498,
+ "name": "VerifyEmailOtpParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 499,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email address."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 468,
+ "character": 2
}
],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
},
- "inheritedFrom": {
- "type": "reference",
- "id": 450,
- "name": "default.csv"
+ {
+ "id": 502,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 473,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 503,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 505,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Verification token received when the user completes the captcha on the site."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 477,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 504,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A URL to send the user to after they are confirmed."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 475,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [505, 504]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 500,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The otp sent to the user's email address."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 470,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 501,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's verification type."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 472,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 507,
+ "name": "EmailOtpType",
+ "dereferenced": {
+ "id": 507,
+ "name": "EmailOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 482,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "email_change"
+ }
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [499, 502, 500, 501]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 466,
+ "character": 17
+ }
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "id": 724,
+ "name": "isAuthApiError",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/errors.ts",
+ "line": 32,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 725,
+ "name": "isAuthApiError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 726,
+ "name": "error",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
}
}
],
- "inheritedFrom": {
- "type": "reference",
- "id": 449,
- "name": "default.csv"
+ "type": {
+ "type": "predicate",
+ "name": "error",
+ "asserts": false,
+ "targetType": {
+ "type": "reference",
+ "id": 732,
+ "name": "AuthApiError"
+ }
}
- },
+ }
+ ]
+ },
+ {
+ "id": 721,
+ "name": "isAuthError",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "sources": [
{
- "id": 119,
- "name": "eq",
- "kind": 2048,
- "kindString": "Method",
+ "fileName": "src/lib/errors.ts",
+ "line": 10,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 722,
+ "name": "isAuthError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 723,
+ "name": "error",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ],
+ "type": {
+ "type": "predicate",
+ "name": "error",
+ "asserts": false,
+ "targetType": {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [732, 727, 792, 779, 817, 767, 745, 752, 1, 75]
+ },
+ {
+ "title": "Interfaces",
+ "kind": 256,
+ "children": [
+ 356, 411, 370, 540, 699, 654, 347, 421, 429, 384, 377, 406, 359, 381, 498, 490
+ ]
+ },
+ {
+ "title": "Type Aliases",
+ "kind": 4194304,
+ "children": [
+ 287, 286, 683, 674, 696, 687, 622, 598, 643, 632, 613, 585, 301, 642, 710, 507, 534,
+ 524, 543, 557, 544, 564, 529, 518, 288, 707, 581, 578, 565, 570, 573, 506, 314, 717,
+ 285, 327, 478, 447, 462, 508, 431, 706, 336, 489
+ ]
+ },
+ {
+ "title": "Functions",
+ "kind": 64,
+ "children": [724, 721]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 0,
+ "name": "@supabase/postgrest-js",
+ "kind": 1,
+ "kindString": "Project",
+ "flags": {},
+ "originalName": "",
+ "children": [
+ {
+ "id": 498,
+ "name": "PostgrestBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isAbstract": true
+ },
+ "children": [
+ {
+ "id": 499,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 33,
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 18,
"character": 2
}
],
"signatures": [
{
- "id": 120,
- "name": "eq",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 500,
+ "name": "new PostgrestBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
"flags": {},
- "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"
- },
"typeParameter": [
{
- "id": 121,
- "name": "ColumnName",
+ "id": 501,
+ "name": "Result",
"kind": 131072,
"kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "flags": {}
}
],
"parameters": [
{
- "id": 122,
- "name": "column",
+ "id": 502,
+ "name": "builder",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
"type": {
"type": "reference",
- "id": 121,
- "name": "ColumnName",
- "dereferenced": {}
- }
- },
- {
- "id": 123,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
- "type": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 121,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
+ "id": 498,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "default",
+ "dereferenced": {
+ "id": 498,
+ "name": "PostgrestBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isAbstract": true
+ },
+ "children": "[Circular ~.children.0.children]",
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [499]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [515, 507, 510, 505, 503, 506, 508, 509, 504]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [518, 516]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 5,
+ "character": 30
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 530,
+ "name": "Result",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 401,
+ "name": "PostgrestTransformBuilder"
+ }
+ ],
+ "implementedTypes": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
}
}
}
],
"type": {
"type": "reference",
- "id": 112,
+ "id": 498,
"typeArguments": [
{
"type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
+ "id": 501,
"name": "Result"
}
],
"name": "default"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 515,
+ "name": "allowEmpty",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
{
- "id": 124,
- "name": "eq",
- "kind": 4096,
- "kindString": "Call signature",
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 507,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 12,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ },
+ {
+ "id": 510,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 15,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 511,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "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"
- },
- "parameters": [
- {
- "id": 125,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
+ "signatures": [
{
- "id": 126,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 512,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
+ "parameters": [
+ {
+ "id": 513,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "id": 514,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
+ }
+ }
+ ],
"type": {
- "type": "intrinsic",
- "name": "unknown"
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
"type": "reference",
- "id": 117,
- "name": "Result"
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
- ],
- "name": "default"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 505,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 10,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 503,
+ "name": "method",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 8,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "GET"
+ },
+ {
+ "type": "literal",
+ "value": "HEAD"
+ },
+ {
+ "type": "literal",
+ "value": "POST"
+ },
+ {
+ "type": "literal",
+ "value": "PATCH"
+ },
+ {
+ "type": "literal",
+ "value": "DELETE"
}
+ ]
+ }
+ },
+ {
+ "id": 506,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 11,
+ "character": 12
}
- ]
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
},
{
- "id": 356,
- "name": "explain",
+ "id": 508,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 509,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 14,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "AbortSignal",
+ "package": "typescript",
+ "name": "AbortSignal"
+ }
+ },
+ {
+ "id": 504,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 9,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ },
+ {
+ "id": 518,
+ "name": "then",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 195,
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 48,
"character": 2
}
],
"signatures": [
{
- "id": 357,
- "name": "explain",
+ "id": 519,
+ "name": "then",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
- "comment": {
- "shortText": "Return `data` as the EXPLAIN plan for the query."
- },
+ "typeParameter": [
+ {
+ "id": 520,
+ "name": "TResult1",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "id": 521,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ],
"parameters": [
{
- "id": 358,
- "name": "options",
+ "id": 522,
+ "name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "Named parameters\n"
+ "flags": {
+ "isOptional": true
},
- "originalName": "__namedParameters",
"type": {
- "type": "reflection",
- "declaration": {
- "id": 359,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 360,
- "name": "analyze",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, the query will be executed and the\nactual run time will be returned\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 203,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 363,
- "name": "buffers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, include information on buffer usage\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 206,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 365,
- "name": "format",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The format of the output, can be `\"text\"` (default)\nor `\"json\"`\n"
- },
- "sources": [
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 523,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 208,
- "character": 4
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "text"
- },
- {
- "type": "literal",
- "value": "json"
+ "id": 524,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 525,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
}
- ]
- }
- },
- {
- "id": 362,
- "name": "settings",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, include information on configuration\nparameters that affect query planning\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 205,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 361,
- "name": "verbose",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, the query identifier will be returned\nand `data` will include the output columns of the query\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 204,
- "character": 4
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 364,
- "name": "wal",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, include information on WAL record generation\n"
- },
- "sources": [
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 526,
+ "name": "onrejected",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 527,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 207,
- "character": 4
+ "id": 528,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 529,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ }
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [360, 363, 365, 362, 361, 364]
+ ]
}
- ]
- }
- },
- "defaultValue": "{}"
+ }
+ ]
+ }
}
],
"type": {
- "type": "union",
- "types": [
+ "type": "reference",
+ "typeArguments": [
{
- "type": "reference",
- "typeArguments": [
+ "type": "union",
+ "types": [
{
"type": "reference",
- "id": 533,
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- }
- ],
- "name": "PostgrestSingleResponse"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- },
- {
- "type": "reference",
- "typeArguments": [
+ "id": 388,
+ "name": "TResult1"
+ },
{
"type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- ],
- "name": "PostgrestResponse"
+ "id": 389,
+ "name": "TResult2"
}
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ ]
}
- ]
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
},
- "inheritedFrom": {
+ "implementationOf": {
"type": "reference",
- "id": 454,
- "name": "default.explain"
+ "name": "PromiseLike.then"
}
}
],
- "inheritedFrom": {
+ "implementationOf": {
"type": "reference",
- "id": 453,
- "name": "default.explain"
+ "name": "PromiseLike.then"
}
},
{
- "id": 301,
- "name": "filter",
+ "id": 516,
+ "name": "throwOnError",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 428,
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 43,
"character": 2
}
],
"signatures": [
{
- "id": 302,
- "name": "filter",
+ "id": 517,
+ "name": "throwOnError",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "id": 498,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [499]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [515, 507, 510, 505, 503, 506, 508, 509, 504]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [518, 516]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 5,
+ "character": 30
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 530,
+ "name": "Result",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 401,
+ "name": "PostgrestTransformBuilder"
+ }
+ ],
+ "implementedTypes": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ },
+ {
+ "id": 1,
+ "name": "PostgrestClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "comment": {
+ "shortText": "PostgREST client."
+ },
+ "children": [
+ {
+ "id": 2,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestClient.ts",
+ "line": 41,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 3,
+ "name": "new PostgrestClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Creates a PostgREST client."
},
"typeParameter": [
{
- "id": 303,
- "name": "ColumnName",
+ "id": 4,
+ "name": "Database",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
- "type": {
+ "default": {
"type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "parameters": [
- {
- "id": 304,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "reference",
- "id": 303,
- "name": "ColumnName",
- "dereferenced": {}
+ "name": "any"
}
},
{
- "id": 305,
- "name": "operator",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 5,
+ "name": "SchemaName",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "comment": {
- "shortText": "The operator to filter with, following PostgREST syntax"
- },
"type": {
- "type": "union",
- "types": [
- {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "default": {
+ "type": "conditional",
+ "checkType": {
+ "type": "literal",
+ "value": "public"
+ },
+ "extendsType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
"type": "reference",
- "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"
+ "id": 4,
+ "name": "Database"
}
- ]
+ },
+ "trueType": {
+ "type": "literal",
+ "value": "public"
+ },
+ "falseType": {
+ "type": "intersection",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "reference",
+ "id": 4,
+ "name": "Database"
+ }
+ }
+ ]
+ }
}
},
{
- "id": 306,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 6,
+ "name": "Schema",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "comment": {
- "shortText": "The value to filter with, following PostgREST syntax\n"
- },
"type": {
- "type": "intrinsic",
- "name": "unknown"
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
"type": "reference",
- "id": 116,
- "name": "Row"
+ "name": "GenericSchema"
},
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
+ "default": {
+ "type": "conditional",
+ "checkType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 5,
+ "name": "SchemaName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 4,
+ "name": "Database"
+ }
+ },
+ "extendsType": {
+ "type": "reference",
+ "name": "GenericSchema"
+ },
+ "trueType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "objectType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "falseType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
}
- ],
- "name": "default"
- }
- },
- {
- "id": 307,
- "name": "filter",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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"
- },
+ }
+ ],
"parameters": [
{
- "id": 308,
- "name": "column",
+ "id": 7,
+ "name": "url",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to filter on"
+ "shortText": "URL of the PostgREST endpoint"
},
"type": {
"type": "intrinsic",
@@ -29099,52 +30715,208 @@
}
},
{
- "id": 309,
- "name": "operator",
+ "id": 8,
+ "name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The operator to filter with, following PostgREST syntax"
+ "shortText": "Named parameters"
},
+ "originalName": "__namedParameters",
"type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 310,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The value to filter with, following PostgREST syntax\n"
+ "type": "reflection",
+ "declaration": {
+ "id": 9,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 12,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestClient.ts",
+ "line": 50,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 13,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 14,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Custom fetch\n"
+ },
+ "parameters": [
+ {
+ "id": 15,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "id": 16,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 10,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Custom headers"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestClient.ts",
+ "line": 48,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 11,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Postgres schema to switch to"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestClient.ts",
+ "line": 49,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 5,
+ "name": "SchemaName",
+ "dereferenced": {}
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [12, 10, 11]
+ }
+ ]
+ }
},
- "type": {
- "type": "intrinsic",
- "name": "unknown"
- }
+ "defaultValue": "{}"
}
],
"type": {
"type": "reference",
- "id": 112,
+ "id": 1,
"typeArguments": [
{
"type": "reference",
- "id": 115,
- "name": "Schema"
+ "id": 4,
+ "name": "Database"
},
{
"type": "reference",
- "id": 116,
- "name": "Row"
+ "id": 5,
+ "name": "SchemaName"
},
{
"type": "reference",
- "id": 117,
- "name": "Result"
+ "id": 6,
+ "name": "Schema"
}
],
"name": "default"
@@ -29153,99 +30925,192 @@
]
},
{
- "id": 354,
- "name": "geojson",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
+ "id": 20,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 169,
+ "fileName": "src/PostgrestClient.ts",
+ "line": 29,
"character": 2
}
],
- "signatures": [
- {
- "id": 355,
- "name": "geojson",
- "kind": 4096,
- "kindString": "Call signature",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 21,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "Return `data` as an object in [GeoJSON](https://geojson.org) format."
- },
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 533,
- "typeArguments": [
- {
- "type": "reference",
- "typeArguments": [
+ "signatures": [
+ {
+ "id": 22,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 23,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
{
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
},
{
- "type": "intrinsic",
- "name": "unknown"
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
}
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
+ ]
}
- ],
- "name": "PostgrestSingleResponse"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 452,
- "name": "default.geojson"
+ },
+ {
+ "id": 24,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 18,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestClient.ts",
+ "line": 27,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
}
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 19,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestClient.ts",
+ "line": 28,
+ "character": 2
}
],
- "inheritedFrom": {
+ "type": {
"type": "reference",
- "id": 451,
- "name": "default.geojson"
+ "id": 5,
+ "name": "SchemaName",
+ "dereferenced": {}
}
},
{
- "id": 135,
- "name": "gt",
+ "id": 17,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestClient.ts",
+ "line": 26,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 25,
+ "name": "from",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 61,
+ "fileName": "src/PostgrestClient.ts",
+ "line": 59,
"character": 2
}
],
"signatures": [
{
- "id": 136,
- "name": "gt",
+ "id": 26,
+ "name": "from",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Match only rows where `column` is greater than `value`."
+ "shortText": "Perform a query on a table or a view."
},
"typeParameter": [
{
- "id": 137,
- "name": "ColumnName",
+ "id": 27,
+ "name": "TableName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
@@ -29253,293 +31118,161 @@
"type": "intrinsic",
"name": "string"
}
- }
- ],
- "parameters": [
+ },
{
- "id": 138,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 28,
+ "name": "Table",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
"type": {
"type": "reference",
- "id": 137,
- "name": "ColumnName",
- "dereferenced": {}
+ "name": "GenericTable"
}
- },
+ }
+ ],
+ "parameters": [
{
- "id": 139,
- "name": "value",
+ "id": 29,
+ "name": "relation",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The value to filter with\n"
+ "shortText": "The table or view name to query\n"
},
"type": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 137,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
+ "type": "reference",
+ "id": 27,
+ "name": "TableName",
+ "dereferenced": {}
}
}
],
"type": {
"type": "reference",
- "id": 112,
+ "id": 49,
"typeArguments": [
{
"type": "reference",
- "id": 115,
+ "id": 6,
"name": "Schema"
},
{
"type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
+ "id": 28,
+ "name": "Table"
}
],
"name": "default"
}
},
{
- "id": 140,
- "name": "gt",
+ "id": 30,
+ "name": "from",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Match only rows where `column` is greater than `value`."
+ "shortText": "Perform a query on a table or a view."
},
- "parameters": [
+ "typeParameter": [
{
- "id": 141,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 31,
+ "name": "ViewName",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
"type": {
"type": "intrinsic",
"name": "string"
}
},
{
- "id": 142,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "unknown"
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 143,
- "name": "gte",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 74,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 144,
- "name": "gte",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` is greater than or equal to `value`."
- },
- "typeParameter": [
- {
- "id": 145,
- "name": "ColumnName",
+ "id": 32,
+ "name": "View",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "name": "GenericView"
}
}
],
"parameters": [
{
- "id": 146,
- "name": "column",
+ "id": 33,
+ "name": "relation",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to filter on"
+ "shortText": "The table or view name to query\n"
},
"type": {
"type": "reference",
- "id": 145,
- "name": "ColumnName",
+ "id": 31,
+ "name": "ViewName",
"dereferenced": {}
}
- },
- {
- "id": 147,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
- "type": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 145,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- }
}
],
"type": {
"type": "reference",
- "id": 112,
+ "id": 49,
"typeArguments": [
{
"type": "reference",
- "id": 115,
+ "id": 6,
"name": "Schema"
},
{
"type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
+ "id": 32,
+ "name": "View"
}
],
"name": "default"
}
},
{
- "id": 148,
- "name": "gte",
+ "id": 34,
+ "name": "from",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Match only rows where `column` is greater than or equal to `value`."
+ "shortText": "Perform a query on a table or a view."
},
"parameters": [
{
- "id": 149,
- "name": "column",
+ "id": 35,
+ "name": "relation",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to filter on"
+ "shortText": "The table or view name to query\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 150,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "unknown"
- }
}
],
"type": {
"type": "reference",
- "id": 112,
+ "id": 49,
"typeArguments": [
{
"type": "reference",
- "id": 115,
+ "id": 6,
"name": "Schema"
},
{
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
+ "type": "intrinsic",
+ "name": "any"
}
],
"name": "default"
@@ -29548,32 +31281,32 @@
]
},
{
- "id": 175,
- "name": "ilike",
+ "id": 36,
+ "name": "rpc",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 126,
+ "fileName": "src/PostgrestClient.ts",
+ "line": 102,
"character": 2
}
],
"signatures": [
{
- "id": 176,
- "name": "ilike",
+ "id": 37,
+ "name": "rpc",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Match only rows where `column` matches `pattern` case-insensitively."
+ "shortText": "Perform a function call."
},
"typeParameter": [
{
- "id": 177,
- "name": "ColumnName",
+ "id": 38,
+ "name": "FunctionName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
@@ -29581,38 +31314,148 @@
"type": "intrinsic",
"name": "string"
}
+ },
+ {
+ "id": 39,
+ "name": "Function_",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "name": "GenericFunction"
+ }
}
],
"parameters": [
{
- "id": 178,
- "name": "column",
+ "id": 40,
+ "name": "fn",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to filter on"
+ "shortText": "The function name to call"
},
"type": {
"type": "reference",
- "id": 177,
- "name": "ColumnName",
+ "id": 38,
+ "name": "FunctionName",
"dereferenced": {}
}
},
{
- "id": 179,
- "name": "pattern",
+ "id": 41,
+ "name": "args",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The pattern to match with\n"
+ "shortText": "The arguments to pass to the function call"
},
"type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "Args"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 39,
+ "name": "Function_"
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 42,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "Named parameters"
+ },
+ "originalName": "__namedParameters",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 43,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 45,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestClient.ts",
+ "line": 113,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ }
+ },
+ {
+ "id": 44,
+ "name": "head",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "When set to `true`, `data` will not be returned.\nUseful if you only need the count."
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestClient.ts",
+ "line": 112,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [45, 44]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
}
],
"type": {
@@ -29621,1172 +31464,1053 @@
"typeArguments": [
{
"type": "reference",
- "id": 115,
+ "id": 6,
"name": "Schema"
},
{
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- },
- {
- "id": 180,
- "name": "ilike",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` matches `pattern` case-insensitively."
- },
- "parameters": [
- {
- "id": 181,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 182,
- "name": "pattern",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The pattern to match with\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
+ "type": "conditional",
+ "checkType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "Returns"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 39,
+ "name": "Function_"
+ }
+ },
+ "extendsType": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "trueType": {
+ "type": "conditional",
+ "checkType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "objectType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "objectType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ },
+ "extendsType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ },
+ "trueType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "objectType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "falseType": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ },
+ "falseType": {
+ "type": "intrinsic",
+ "name": "never"
+ }
},
{
- "type": "reference",
- "id": 117,
- "name": "Result"
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "Returns"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 39,
+ "name": "Function_"
+ }
}
],
"name": "default"
}
}
]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [2]
},
{
- "id": 191,
- "name": "in",
+ "title": "Properties",
+ "kind": 1024,
+ "children": [20, 18, 19, 17]
+ },
+ {
+ "title": "Methods",
"kind": 2048,
- "kindString": "Method",
+ "children": [25, 36]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/PostgrestClient.ts",
+ "line": 17,
+ "character": 21
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 46,
+ "name": "Database",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 161,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 192,
- "name": "in",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` is included in the `values` array."
+ "comment": {
+ "shortText": "Types for the schema from the [type\ngenerator](https://supabase.com/docs/reference/javascript/next/typescript-support)\n"
+ },
+ "default": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 47,
+ "name": "SchemaName",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "Postgres schema to switch to. Must be a string\nliteral, the same one passed to the constructor. If the schema is not\n`\"public\"`, this must be supplied manually.\n"
+ },
+ "type": {
+ "type": "intersection",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
},
- "typeParameter": [
- {
- "id": 193,
- "name": "ColumnName",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "reference",
+ "id": 4,
+ "name": "Database"
}
- ],
- "parameters": [
+ }
+ ]
+ },
+ "default": {
+ "type": "conditional",
+ "checkType": {
+ "type": "literal",
+ "value": "public"
+ },
+ "extendsType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "reference",
+ "id": 4,
+ "name": "Database"
+ }
+ },
+ "trueType": {
+ "type": "literal",
+ "value": "public"
+ },
+ "falseType": {
+ "type": "intersection",
+ "types": [
{
- "id": 194,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "reference",
- "id": 193,
- "name": "ColumnName",
- "dereferenced": {}
- }
+ "type": "intrinsic",
+ "name": "string"
},
{
- "id": 195,
- "name": "values",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The values array to filter with\n"
- },
- "type": {
- "type": "array",
- "elementType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 193,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- }
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "reference",
+ "id": 4,
+ "name": "Database"
}
}
- ],
- "type": {
+ ]
+ }
+ }
+ },
+ {
+ "id": 48,
+ "name": "Schema",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "name": "GenericSchema"
+ },
+ "default": {
+ "type": "conditional",
+ "checkType": {
+ "type": "indexedAccess",
+ "indexType": {
"type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
+ "id": 5,
+ "name": "SchemaName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 4,
+ "name": "Database"
}
},
- {
- "id": 196,
- "name": "in",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` is included in the `values` array."
+ "extendsType": {
+ "type": "reference",
+ "name": "GenericSchema"
+ },
+ "trueType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 5,
+ "name": "SchemaName"
},
- "parameters": [
- {
- "id": 197,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 198,
- "name": "values",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The values array to filter with\n"
- },
- "type": {
- "type": "array",
- "elementType": {
- "type": "intrinsic",
- "name": "unknown"
- }
- }
- }
- ],
- "type": {
+ "objectType": {
"type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
+ "id": 4,
+ "name": "Database"
}
+ },
+ "falseType": {
+ "type": "intrinsic",
+ "name": "any"
}
- ]
- },
+ }
+ }
+ ]
+ },
+ {
+ "id": 112,
+ "name": "PostgrestFilterBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
{
- "id": 183,
- "name": "is",
- "kind": 2048,
- "kindString": "Method",
+ "id": 113,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
"flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 139,
- "character": 2
- }
- ],
"signatures": [
{
- "id": 184,
- "name": "is",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 114,
+ "name": "new PostgrestFilterBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
"flags": {},
- "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"
- },
"typeParameter": [
{
- "id": 185,
- "name": "ColumnName",
+ "id": 115,
+ "name": "Schema",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "parameters": [
- {
- "id": 186,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
"type": {
"type": "reference",
- "id": 185,
- "name": "ColumnName",
- "dereferenced": {}
+ "name": "GenericSchema"
}
},
{
- "id": 187,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 116,
+ "name": "Row",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
"type": {
- "type": "intersection",
- "types": [
- {
- "type": "intersection",
- "types": [
- {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 185,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- },
- {
- "type": "literal",
- "value": null
- }
- ]
- },
- {
- "type": "intersection",
- "types": [
- {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 185,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- },
- {
- "type": "literal",
- "value": false
- }
- ]
- },
- {
- "type": "intersection",
- "types": [
- {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 185,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- },
- {
- "type": "literal",
- "value": true
- }
- ]
- }
- ]
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
"type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- },
- {
- "id": 188,
- "name": "is",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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"
- },
- "parameters": [
- {
- "id": 189,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 190,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
- "type": {
- "type": "union",
- "types": [
+ "typeArguments": [
{
- "type": "literal",
- "value": null
+ "type": "intrinsic",
+ "name": "string"
},
{
"type": "intrinsic",
- "name": "boolean"
+ "name": "unknown"
}
- ]
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
}
- ],
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 167,
- "name": "like",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 113,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 168,
- "name": "like",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` matches `pattern` case-sensitively."
- },
- "typeParameter": [
+ },
{
- "id": 169,
- "name": "ColumnName",
+ "id": 117,
+ "name": "Result",
"kind": 131072,
"kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "parameters": [
- {
- "id": 170,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "reference",
- "id": 169,
- "name": "ColumnName",
- "dereferenced": {}
- }
- },
- {
- "id": 171,
- "name": "pattern",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The pattern to match with\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "flags": {}
}
],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- },
- {
- "id": 172,
- "name": "like",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` matches `pattern` case-sensitively."
- },
"parameters": [
{
- "id": 173,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 174,
- "name": "pattern",
+ "id": 118,
+ "name": "builder",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
- "comment": {
- "shortText": "The pattern to match with\n"
- },
"type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
"type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 332,
- "name": "limit",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 101,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 333,
- "name": "limit",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Limit the query result by `count`."
- },
- "parameters": [
- {
- "id": 334,
- "name": "count",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The maximum number of rows to return"
- },
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 335,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "Named parameters"
- },
- "originalName": "__namedParameters",
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 336,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
+ "id": 498,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default",
+ "dereferenced": {
+ "id": 498,
+ "name": "PostgrestBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isAbstract": true
+ },
"children": [
{
- "id": 337,
- "name": "foreignTable",
+ "id": 499,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 18,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 500,
+ "name": "new PostgrestBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 501,
+ "name": "Result",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "parameters": [
+ {
+ "id": 502,
+ "name": "builder",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 498,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "default",
+ "dereferenced": "[Circular ~.children.2.children.0.signatures.0.parameters.0.type.dereferenced]"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 498,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 515,
+ "name": "allowEmpty",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isOptional": true
+ "isProtected": true
},
- "comment": {
- "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n"
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 507,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
},
"sources": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 101,
- "character": 43
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 12,
+ "character": 12
}
],
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "unknown"
}
- }
- ],
- "groups": [
+ },
{
- "title": "Properties",
+ "id": 510,
+ "name": "fetch",
"kind": 1024,
- "children": [337]
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 430,
- "name": "default.limit"
- }
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 429,
- "name": "default.limit"
- }
- },
- {
- "id": 151,
- "name": "lt",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 87,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 152,
- "name": "lt",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` is less than `value`."
- },
- "typeParameter": [
- {
- "id": 153,
- "name": "ColumnName",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "parameters": [
- {
- "id": 154,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "reference",
- "id": 153,
- "name": "ColumnName",
- "dereferenced": {}
- }
- },
- {
- "id": 155,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
- "type": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 153,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- },
- {
- "id": 156,
- "name": "lt",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` is less than `value`."
- },
- "parameters": [
- {
- "id": 157,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 158,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "unknown"
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 159,
- "name": "lte",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 100,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 160,
- "name": "lte",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` is less than or equal to `value`."
- },
- "typeParameter": [
- {
- "id": 161,
- "name": "ColumnName",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "parameters": [
- {
- "id": 162,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "reference",
- "id": 161,
- "name": "ColumnName",
- "dereferenced": {}
- }
- },
- {
- "id": 163,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
- "type": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 161,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- },
- {
- "id": 164,
- "name": "lte",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` is less than or equal to `value`."
- },
- "parameters": [
- {
- "id": 165,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 166,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The value to filter with\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "unknown"
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 279,
- "name": "match",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 369,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 280,
- "name": "match",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where each column in `query` keys is equal to its\nassociated value. Shorthand for multiple `.eq()`s."
- },
- "typeParameter": [
- {
- "id": 281,
- "name": "ColumnName",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "parameters": [
- {
- "id": 282,
- "name": "query",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The object to filter with, with column names as keys mapped\nto their filter values\n"
- },
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 281,
- "name": "ColumnName"
- },
- {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 281,
- "name": "ColumnName"
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 15,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 511,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 512,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 513,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "id": 514,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ }
},
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
+ {
+ "id": 505,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 10,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 503,
+ "name": "method",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 8,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "GET"
+ },
+ {
+ "type": "literal",
+ "value": "HEAD"
+ },
+ {
+ "type": "literal",
+ "value": "POST"
+ },
+ {
+ "type": "literal",
+ "value": "PATCH"
+ },
+ {
+ "type": "literal",
+ "value": "DELETE"
+ }
+ ]
+ }
+ },
+ {
+ "id": 506,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 11,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 508,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 509,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 14,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "AbortSignal",
+ "package": "typescript",
+ "name": "AbortSignal"
+ }
+ },
+ {
+ "id": 504,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 9,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ },
+ {
+ "id": 518,
+ "name": "then",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 48,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 519,
+ "name": "then",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 520,
+ "name": "TResult1",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "id": 521,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 522,
+ "name": "onfulfilled",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 523,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 524,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 525,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 526,
+ "name": "onrejected",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 527,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 528,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 529,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ },
+ "implementationOf": {
+ "type": "reference",
+ "name": "PromiseLike.then"
+ }
+ }
+ ],
+ "implementationOf": {
+ "type": "reference",
+ "name": "PromiseLike.then"
+ }
+ },
+ {
+ "id": 516,
+ "name": "throwOnError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 43,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 517,
+ "name": "throwOnError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "id": 498,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [499]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [515, 507, 510, 505, 503, 506, 508, 509, 504]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [518, 516]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 5,
+ "character": 30
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 530,
+ "name": "Result",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 401,
+ "name": "PostgrestTransformBuilder"
+ }
+ ],
+ "implementedTypes": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ }
}
}
],
@@ -30811,153 +32535,458 @@
}
],
"name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 403,
+ "name": "default.constructor"
}
- },
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 402,
+ "name": "default.constructor"
+ }
+ },
+ {
+ "id": 383,
+ "name": "allowEmpty",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
{
- "id": 283,
- "name": "match",
- "kind": 4096,
- "kindString": "Call signature",
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 480,
+ "name": "default.allowEmpty"
+ }
+ },
+ {
+ "id": 375,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 12,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 472,
+ "name": "default.body"
+ }
+ },
+ {
+ "id": 378,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 15,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 379,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "comment": {
- "shortText": "Match only rows where each column in `query` keys is equal to its\nassociated value. Shorthand for multiple `.eq()`s."
- },
- "parameters": [
+ "signatures": [
{
- "id": 284,
- "name": "query",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 380,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "comment": {
- "shortText": "The object to filter with, with column names as keys mapped\nto their filter values\n"
- },
+ "parameters": [
+ {
+ "id": 381,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "id": 382,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
+ }
+ }
+ ],
"type": {
"type": "reference",
"typeArguments": [
{
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
}
],
- "qualifiedName": "Record",
+ "qualifiedName": "Promise",
"package": "typescript",
- "name": "Record"
+ "name": "Promise"
}
}
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
+ ]
+ }
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 475,
+ "name": "default.fetch"
+ }
+ },
+ {
+ "id": 373,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 10,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
}
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 470,
+ "name": "default.headers"
+ }
+ },
+ {
+ "id": 371,
+ "name": "method",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 8,
+ "character": 12
}
- ]
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "GET"
+ },
+ {
+ "type": "literal",
+ "value": "HEAD"
+ },
+ {
+ "type": "literal",
+ "value": "POST"
+ },
+ {
+ "type": "literal",
+ "value": "PATCH"
+ },
+ {
+ "type": "literal",
+ "value": "DELETE"
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 468,
+ "name": "default.method"
+ }
},
{
- "id": 350,
- "name": "maybeSingle",
+ "id": 374,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 11,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 471,
+ "name": "default.schema"
+ }
+ },
+ {
+ "id": 376,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false",
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 473,
+ "name": "default.shouldThrowOnError"
+ }
+ },
+ {
+ "id": 377,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 14,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "AbortSignal",
+ "package": "typescript",
+ "name": "AbortSignal"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 474,
+ "name": "default.signal"
+ }
+ },
+ {
+ "id": 372,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 9,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 469,
+ "name": "default.url"
+ }
+ },
+ {
+ "id": 345,
+ "name": "abortSignal",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 152,
+ "line": 130,
"character": 2
}
],
"signatures": [
{
- "id": 351,
- "name": "maybeSingle",
+ "id": 346,
+ "name": "abortSignal",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "shortText": "Set the AbortSignal for the fetch request."
},
+ "parameters": [
+ {
+ "id": 347,
+ "name": "signal",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The AbortSignal to use for the fetch request\n"
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "AbortSignal",
+ "package": "typescript",
+ "name": "AbortSignal"
+ }
+ }
+ ],
"type": {
"type": "reference",
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 535,
- "typeArguments": [
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "PostgrestMaybeSingleResponse"
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
}
],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ "name": "default"
},
"inheritedFrom": {
"type": "reference",
- "id": 448,
- "name": "default.maybeSingle"
+ "id": 443,
+ "name": "default.abortSignal"
}
}
],
"inheritedFrom": {
"type": "reference",
- "id": 447,
- "name": "default.maybeSingle"
+ "id": 442,
+ "name": "default.abortSignal"
}
},
{
- "id": 127,
- "name": "neq",
+ "id": 207,
+ "name": "containedBy",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
- "line": 48,
+ "line": 209,
"character": 2
}
],
"signatures": [
{
- "id": 128,
- "name": "neq",
+ "id": 208,
+ "name": "containedBy",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Match only rows where `column` is not equal to `value`."
+ "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\nevery element appearing in `column` is contained by `value`."
},
"typeParameter": [
{
- "id": 129,
+ "id": 209,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
@@ -30970,86 +32999,114 @@
],
"parameters": [
{
- "id": 130,
+ "id": 210,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to filter on"
+ "shortText": "The jsonb, array, or range column to filter on"
},
"type": {
"type": "reference",
- "id": 129,
+ "id": 209,
"name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 131,
+ "id": 211,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The value to filter with\n"
+ "shortText": "The jsonb, array, or range value to filter with\n"
},
"type": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 129,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- },
- {
- "id": 132,
- "name": "neq",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Match only rows where `column` is not equal to `value`."
- },
- "parameters": [
- {
- "id": 133,
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 209,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ },
+ {
+ "id": 212,
+ "name": "containedBy",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\nevery element appearing in `column` is contained by `value`."
+ },
+ "parameters": [
+ {
+ "id": 213,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to filter on"
+ "shortText": "The jsonb, array, or range column to filter on"
},
"type": {
"type": "intrinsic",
@@ -31057,17 +33114,45 @@
}
},
{
- "id": 134,
+ "id": 214,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The value to filter with\n"
+ "shortText": "The jsonb, array, or range value to filter with\n"
},
"type": {
- "type": "intrinsic",
- "name": "unknown"
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ ]
}
}
],
@@ -31097,32 +33182,31 @@
]
},
{
- "id": 285,
- "name": "not",
+ "id": 199,
+ "name": "contains",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
- "line": 385,
+ "line": 182,
"character": 2
}
],
"signatures": [
{
- "id": 286,
- "name": "not",
+ "id": 200,
+ "name": "contains",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\n`column` contains every element appearing in `value`."
},
"typeParameter": [
{
- "id": 287,
+ "id": 201,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
@@ -31135,56 +33219,70 @@
],
"parameters": [
{
- "id": 288,
+ "id": 202,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to filter on"
+ "shortText": "The jsonb, array, or range column to filter on"
},
"type": {
"type": "reference",
- "id": 287,
+ "id": 201,
"name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 289,
- "name": "operator",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The operator to be negated to filter with, following\nPostgREST syntax"
- },
- "type": {
- "type": "reference",
- "name": "FilterOperator"
- }
- },
- {
- "id": 290,
+ "id": 203,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The value to filter with, following PostgREST syntax\n"
+ "shortText": "The jsonb, array, or range value to filter with\n"
},
"type": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 287,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 201,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
+ }
+ }
+ ]
}
}
],
@@ -31212,38 +33310,23 @@
}
},
{
- "id": 291,
- "name": "not",
+ "id": 204,
+ "name": "contains",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\n`column` contains every element appearing in `value`."
},
"parameters": [
{
- "id": 292,
+ "id": 205,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to filter on"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 293,
- "name": "operator",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The operator to be negated to filter with, following\nPostgREST syntax"
+ "shortText": "The jsonb, array, or range column to filter on"
},
"type": {
"type": "intrinsic",
@@ -31251,17 +33334,45 @@
}
},
{
- "id": 294,
+ "id": 206,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The value to filter with, following PostgREST syntax\n"
+ "shortText": "The jsonb, array, or range value to filter with\n"
},
"type": {
- "type": "intrinsic",
- "name": "unknown"
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ ]
}
}
],
@@ -31291,94 +33402,199 @@
]
},
{
- "id": 295,
- "name": "or",
+ "id": 352,
+ "name": "csv",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 161,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 353,
+ "name": "csv",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Return `data` as a string in CSV format."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 533,
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 450,
+ "name": "default.csv"
+ }
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 449,
+ "name": "default.csv"
+ }
+ },
+ {
+ "id": 119,
+ "name": "eq",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
- "line": 422,
+ "line": 33,
"character": 2
}
],
"signatures": [
{
- "id": 296,
- "name": "or",
+ "id": 120,
+ "name": "eq",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "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"
},
+ "typeParameter": [
+ {
+ "id": 121,
+ "name": "ColumnName",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
"parameters": [
{
- "id": 297,
- "name": "filters",
+ "id": 122,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The filters to use, following PostgREST syntax"
+ "shortText": "The column to filter on"
},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "id": 121,
+ "name": "ColumnName",
+ "dereferenced": {}
}
},
{
- "id": 298,
- "name": "foreignTable",
+ "id": 123,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "Set this to filter on foreign tables instead of the\ncurrent table\n"
+ "shortText": "The value to filter with\n"
},
- "originalName": "__namedParameters",
"type": {
- "type": "reflection",
- "declaration": {
- "id": 299,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 300,
- "name": "foreignTable",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 422,
- "character": 42
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [300]
- }
- ]
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 121,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
}
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
},
- "defaultValue": "{}"
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ },
+ {
+ "id": 124,
+ "name": "eq",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 125,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The column to filter on"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 126,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The value to filter with\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
}
],
"type": {
@@ -31407,95 +33623,64 @@
]
},
{
- "id": 316,
- "name": "order",
+ "id": 356,
+ "name": "explain",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 49,
+ "line": 195,
"character": 2
}
],
"signatures": [
{
- "id": 317,
- "name": "order",
+ "id": 357,
+ "name": "explain",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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 foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n"
+ "shortText": "Return `data` as the EXPLAIN plan for the query."
},
- "typeParameter": [
- {
- "id": 318,
- "name": "ColumnName",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
"parameters": [
{
- "id": 319,
- "name": "column",
+ "id": 358,
+ "name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to order by"
- },
- "type": {
- "type": "reference",
- "id": 318,
- "name": "ColumnName",
- "dereferenced": {}
- }
- },
- {
- "id": 320,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Named parameters"
+ "shortText": "Named parameters\n"
},
+ "originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
- "id": 321,
+ "id": 359,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 322,
- "name": "ascending",
+ "id": 360,
+ "name": "analyze",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
- "shortText": "If `true`, the result will be in ascending order"
+ "shortText": "If `true`, the query will be executed and the\nactual run time will be returned\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 51,
- "character": 16
+ "line": 203,
+ "character": 4
}
],
"type": {
@@ -31504,152 +33689,76 @@
}
},
{
- "id": 324,
- "name": "foreignTable",
+ "id": 363,
+ "name": "buffers",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
- "shortText": "Set this to order a foreign table by foreign\ncolumns\n"
+ "shortText": "If `true`, include information on buffer usage\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 51,
- "character": 59
+ "line": 206,
+ "character": 4
}
],
"type": {
"type": "intrinsic",
- "name": "undefined"
+ "name": "boolean"
}
},
{
- "id": 323,
- "name": "nullsFirst",
+ "id": 365,
+ "name": "format",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
- "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
+ "shortText": "The format of the output, can be `\"text\"` (default)\nor `\"json\"`\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 51,
- "character": 37
+ "line": 208,
+ "character": 4
}
],
"type": {
- "type": "intrinsic",
- "name": "boolean"
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "text"
+ },
+ {
+ "type": "literal",
+ "value": "json"
+ }
+ ]
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [322, 324, 323]
- }
- ]
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 414,
- "name": "default.order"
- }
- },
- {
- "id": 325,
- "name": "order",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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 foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n"
- },
- "parameters": [
- {
- "id": 326,
- "name": "column",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The column to order by"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 327,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Named parameters"
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 328,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ },
{
- "id": 329,
- "name": "ascending",
+ "id": 362,
+ "name": "settings",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
- "shortText": "If `true`, the result will be in ascending order"
+ "shortText": "If `true`, include information on configuration\nparameters that affect query planning\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 55,
- "character": 16
+ "line": 205,
+ "character": 4
}
],
"type": {
@@ -31658,42 +33767,44 @@
}
},
{
- "id": 331,
- "name": "foreignTable",
+ "id": 361,
+ "name": "verbose",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"comment": {
- "shortText": "Set this to order a foreign table by foreign\ncolumns\n"
+ "shortText": "If `true`, the query identifier will be returned\nand `data` will include the output columns of the query\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 55,
- "character": 59
+ "line": 204,
+ "character": 4
}
],
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "boolean"
}
},
{
- "id": 330,
- "name": "nullsFirst",
+ "id": 364,
+ "name": "wal",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
- "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
+ "shortText": "If `true`, include information on WAL record generation\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 55,
- "character": 37
+ "line": 207,
+ "character": 4
}
],
"type": {
@@ -31706,74 +33817,109 @@
{
"title": "Properties",
"kind": 1024,
- "children": [329, 331, 330]
+ "children": [360, 363, 365, 362, 361, 364]
}
]
}
- }
+ },
+ "defaultValue": "{}"
}
],
"type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
+ "type": "union",
+ "types": [
{
"type": "reference",
- "id": 116,
- "name": "Row"
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 533,
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
},
{
"type": "reference",
- "id": 117,
- "name": "Result"
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
}
- ],
- "name": "default"
+ ]
},
"inheritedFrom": {
"type": "reference",
- "id": 422,
- "name": "default.order"
+ "id": 454,
+ "name": "default.explain"
}
}
],
"inheritedFrom": {
"type": "reference",
- "id": 413,
- "name": "default.order"
+ "id": 453,
+ "name": "default.explain"
}
},
{
- "id": 255,
- "name": "overlaps",
+ "id": 301,
+ "name": "filter",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
- "line": 308,
+ "line": 428,
"character": 2
}
],
"signatures": [
{
- "id": 256,
- "name": "overlaps",
+ "id": 302,
+ "name": "filter",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Only relevant for array and range columns. Match only rows where\n`column` and `value` have an element in common."
+ "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"
},
"typeParameter": [
{
- "id": 257,
+ "id": 303,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
@@ -31786,55 +33932,141 @@
],
"parameters": [
{
- "id": 258,
+ "id": 304,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The array or range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "reference",
- "id": 257,
+ "id": 303,
"name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 259,
- "name": "value",
+ "id": 305,
+ "name": "operator",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The array or range value to filter with\n"
+ "shortText": "The operator to filter with, following PostgREST syntax"
},
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "name": "FilterOperator"
},
{
- "type": "array",
- "elementType": {
- "type": "indexedAccess",
- "indexType": {
- "type": "reference",
- "id": 257,
- "name": "ColumnName"
- },
- "objectType": {
- "type": "reference",
- "id": 116,
- "name": "Row"
- }
- }
+ "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"
}
]
}
+ },
+ {
+ "id": 306,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The value to filter with, following PostgREST syntax\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
}
],
"type": {
@@ -31861,23 +34093,24 @@
}
},
{
- "id": 260,
- "name": "overlaps",
+ "id": 307,
+ "name": "filter",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Only relevant for array and range columns. Match only rows where\n`column` and `value` have an element in common."
+ "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"
},
"parameters": [
{
- "id": 261,
+ "id": 308,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The array or range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
@@ -31885,29 +34118,31 @@
}
},
{
- "id": 262,
+ "id": 309,
+ "name": "operator",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The operator to filter with, following PostgREST syntax"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 310,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The array or range value to filter with\n"
+ "shortText": "The value to filter with, following PostgREST syntax\n"
},
"type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "array",
- "elementType": {
- "type": "intrinsic",
- "name": "unknown"
- }
- }
- ]
+ "type": "intrinsic",
+ "name": "unknown"
}
}
],
@@ -31937,173 +34172,98 @@
]
},
{
- "id": 338,
- "name": "range",
+ "id": 354,
+ "name": "geojson",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 116,
+ "line": 169,
"character": 2
}
],
"signatures": [
{
- "id": 339,
- "name": "range",
+ "id": 355,
+ "name": "geojson",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Limit the query result by `from` and `to` inclusively."
+ "shortText": "Return `data` as an object in [GeoJSON](https://geojson.org) format."
},
- "parameters": [
- {
- "id": 340,
- "name": "from",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The starting index from which to limit the result"
- },
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 341,
- "name": "to",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The last index to which to limit the result"
- },
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 342,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "Named parameters"
- },
- "originalName": "__namedParameters",
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 343,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 344,
- "name": "foreignTable",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 116,
- "character": 54
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [344]
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "id": 112,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 533,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ ],
+ "name": "PostgrestSingleResponse"
}
],
- "name": "default"
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
},
"inheritedFrom": {
"type": "reference",
- "id": 436,
- "name": "default.range"
+ "id": 452,
+ "name": "default.geojson"
}
}
],
"inheritedFrom": {
"type": "reference",
- "id": 435,
- "name": "default.range"
+ "id": 451,
+ "name": "default.geojson"
}
},
{
- "id": 247,
- "name": "rangeAdjacent",
+ "id": 135,
+ "name": "gt",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
- "line": 293,
+ "line": 61,
"character": 2
}
],
"signatures": [
{
- "id": 248,
- "name": "rangeAdjacent",
+ "id": 136,
+ "name": "gt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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."
+ "shortText": "Match only rows where `column` is greater than `value`."
},
"typeParameter": [
{
- "id": 249,
+ "id": 137,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
@@ -32116,33 +34276,42 @@
],
"parameters": [
{
- "id": 250,
+ "id": 138,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "reference",
- "id": 249,
+ "id": 137,
"name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 251,
- "name": "range",
+ "id": 139,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range to filter with\n"
+ "shortText": "The value to filter with\n"
},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 137,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
}
}
],
@@ -32170,23 +34339,23 @@
}
},
{
- "id": 252,
- "name": "rangeAdjacent",
+ "id": 140,
+ "name": "gt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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."
+ "shortText": "Match only rows where `column` is greater than `value`."
},
"parameters": [
{
- "id": 253,
+ "id": 141,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
@@ -32194,17 +34363,17 @@
}
},
{
- "id": 254,
- "name": "range",
+ "id": 142,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range to filter with\n"
+ "shortText": "The value to filter with\n"
},
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "unknown"
}
}
],
@@ -32234,31 +34403,31 @@
]
},
{
- "id": 215,
- "name": "rangeGt",
+ "id": 143,
+ "name": "gte",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
- "line": 235,
+ "line": 74,
"character": 2
}
],
"signatures": [
{
- "id": 216,
- "name": "rangeGt",
+ "id": 144,
+ "name": "gte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is greater than any element in `range`."
+ "shortText": "Match only rows where `column` is greater than or equal to `value`."
},
"typeParameter": [
{
- "id": 217,
+ "id": 145,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
@@ -32271,33 +34440,42 @@
],
"parameters": [
{
- "id": 218,
+ "id": 146,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "reference",
- "id": 217,
+ "id": 145,
"name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 219,
- "name": "range",
+ "id": 147,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range to filter with\n"
+ "shortText": "The value to filter with\n"
},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 145,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
}
}
],
@@ -32325,23 +34503,23 @@
}
},
{
- "id": 220,
- "name": "rangeGt",
+ "id": 148,
+ "name": "gte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is greater than any element in `range`."
+ "shortText": "Match only rows where `column` is greater than or equal to `value`."
},
"parameters": [
{
- "id": 221,
+ "id": 149,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
@@ -32349,17 +34527,17 @@
}
},
{
- "id": 222,
- "name": "range",
+ "id": 150,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range to filter with\n"
+ "shortText": "The value to filter with\n"
},
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "unknown"
}
}
],
@@ -32389,31 +34567,31 @@
]
},
{
- "id": 223,
- "name": "rangeGte",
+ "id": 175,
+ "name": "ilike",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
- "line": 249,
+ "line": 126,
"character": 2
}
],
"signatures": [
{
- "id": 224,
- "name": "rangeGte",
+ "id": 176,
+ "name": "ilike",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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`."
+ "shortText": "Match only rows where `column` matches `pattern` case-insensitively."
},
"typeParameter": [
{
- "id": 225,
+ "id": 177,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
@@ -32426,29 +34604,29 @@
],
"parameters": [
{
- "id": 226,
+ "id": 178,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "reference",
- "id": 225,
+ "id": 177,
"name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 227,
- "name": "range",
+ "id": 179,
+ "name": "pattern",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range to filter with\n"
+ "shortText": "The pattern to match with\n"
},
"type": {
"type": "intrinsic",
@@ -32480,23 +34658,23 @@
}
},
{
- "id": 228,
- "name": "rangeGte",
+ "id": 180,
+ "name": "ilike",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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`."
+ "shortText": "Match only rows where `column` matches `pattern` case-insensitively."
},
"parameters": [
{
- "id": 229,
+ "id": 181,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
@@ -32504,13 +34682,13 @@
}
},
{
- "id": 230,
- "name": "range",
+ "id": 182,
+ "name": "pattern",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range to filter with\n"
+ "shortText": "The pattern to match with\n"
},
"type": {
"type": "intrinsic",
@@ -32544,31 +34722,31 @@
]
},
{
- "id": 231,
- "name": "rangeLt",
+ "id": 191,
+ "name": "in",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
- "line": 264,
+ "line": 161,
"character": 2
}
],
"signatures": [
{
- "id": 232,
- "name": "rangeLt",
+ "id": 192,
+ "name": "in",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is less than any element in `range`."
+ "shortText": "Match only rows where `column` is included in the `values` array."
},
"typeParameter": [
{
- "id": 233,
+ "id": 193,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
@@ -32581,33 +34759,45 @@
],
"parameters": [
{
- "id": 234,
+ "id": 194,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "reference",
- "id": 233,
+ "id": 193,
"name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 235,
- "name": "range",
+ "id": 195,
+ "name": "values",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range to filter with\n"
+ "shortText": "The values array to filter with\n"
},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "array",
+ "elementType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 193,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
+ }
}
}
],
@@ -32635,23 +34825,23 @@
}
},
{
- "id": 236,
- "name": "rangeLt",
+ "id": 196,
+ "name": "in",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is less than any element in `range`."
+ "shortText": "Match only rows where `column` is included in the `values` array."
},
"parameters": [
{
- "id": 237,
+ "id": 197,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
@@ -32659,17 +34849,20 @@
}
},
{
- "id": 238,
- "name": "range",
+ "id": 198,
+ "name": "values",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range to filter with\n"
+ "shortText": "The values array to filter with\n"
},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
}
}
],
@@ -32699,31 +34892,32 @@
]
},
{
- "id": 239,
- "name": "rangeLte",
+ "id": 183,
+ "name": "is",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
- "line": 278,
+ "line": 139,
"character": 2
}
],
"signatures": [
{
- "id": 240,
- "name": "rangeLte",
+ "id": 184,
+ "name": "is",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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`."
+ "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"
},
"typeParameter": [
{
- "id": 241,
+ "id": 185,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
@@ -32736,33 +34930,100 @@
],
"parameters": [
{
- "id": 242,
+ "id": 186,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "reference",
- "id": 241,
+ "id": 185,
"name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 243,
- "name": "range",
+ "id": 187,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range to filter with\n"
+ "shortText": "The value to filter with\n"
},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "intersection",
+ "types": [
+ {
+ "type": "intersection",
+ "types": [
+ {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 185,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ },
+ {
+ "type": "intersection",
+ "types": [
+ {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 185,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
+ },
+ {
+ "type": "literal",
+ "value": false
+ }
+ ]
+ },
+ {
+ "type": "intersection",
+ "types": [
+ {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 185,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
+ },
+ {
+ "type": "literal",
+ "value": true
+ }
+ ]
+ }
+ ]
}
}
],
@@ -32790,23 +35051,24 @@
}
},
{
- "id": 244,
- "name": "rangeLte",
+ "id": 188,
+ "name": "is",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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`."
+ "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"
},
"parameters": [
{
- "id": 245,
+ "id": 189,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
@@ -32814,17 +35076,26 @@
}
},
{
- "id": 246,
- "name": "range",
+ "id": 190,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The range to filter with\n"
+ "shortText": "The value to filter with\n"
},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ ]
}
}
],
@@ -32854,43 +35125,76 @@
]
},
{
- "id": 368,
- "name": "returns",
+ "id": 167,
+ "name": "like",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 249,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 113,
"character": 2
}
],
"signatures": [
{
- "id": 369,
- "name": "returns",
+ "id": 168,
+ "name": "like",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Override the type of the returned `data`."
+ "shortText": "Match only rows where `column` matches `pattern` case-sensitively."
},
"typeParameter": [
{
- "id": 370,
- "name": "NewResult",
+ "id": 169,
+ "name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 170,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
"comment": {
- "shortText": "The new result type to override with\n"
+ "shortText": "The column to filter on"
+ },
+ "type": {
+ "type": "reference",
+ "id": 169,
+ "name": "ColumnName",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 171,
+ "name": "pattern",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The pattern to match with\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
@@ -32904,49 +35208,52 @@
},
{
"type": "reference",
- "id": 370,
- "name": "NewResult"
+ "id": 117,
+ "name": "Result"
}
],
"name": "default"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 466,
- "name": "default.returns"
}
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 465,
- "name": "default.returns"
- }
- },
- {
- "id": 366,
- "name": "rollback",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 235,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 367,
- "name": "rollback",
+ "id": 172,
+ "name": "like",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Rollback the query.",
- "text": "`data` will still be returned, but the query is not committed.\n"
+ "shortText": "Match only rows where `column` matches `pattern` case-sensitively."
},
+ "parameters": [
+ {
+ "id": 173,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The column to filter on"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 174,
+ "name": "pattern",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The pattern to match with\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
"type": {
"type": "reference",
"id": 112,
@@ -32968,112 +35275,106 @@
}
],
"name": "default"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 464,
- "name": "default.rollback"
}
}
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 463,
- "name": "default.rollback"
- }
+ ]
},
{
- "id": 311,
- "name": "select",
+ "id": 332,
+ "name": "limit",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 24,
+ "line": 101,
"character": 2
}
],
"signatures": [
{
- "id": 312,
- "name": "select",
+ "id": 333,
+ "name": "limit",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "shortText": "Limit the query result by `count`."
},
- "typeParameter": [
+ "parameters": [
{
- "id": 313,
- "name": "Query",
- "kind": 131072,
- "kindString": "Type parameter",
+ "id": 334,
+ "name": "count",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "The maximum number of rows to return"
+ },
"type": {
"type": "intrinsic",
- "name": "string"
- },
- "default": {
- "type": "literal",
- "value": "*"
+ "name": "number"
}
},
{
- "id": 314,
- "name": "NewResult",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 313,
- "name": "Query"
- }
- ],
- "name": "GetResult"
- }
- }
- ],
- "parameters": [
- {
- "id": 315,
- "name": "columns",
+ "id": 335,
+ "name": "options",
"kind": 32768,
"kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"comment": {
- "shortText": "The columns to retrieve, separated by commas\n"
+ "shortText": "Named parameters"
},
+ "originalName": "__namedParameters",
"type": {
- "type": "reference",
- "id": 313,
- "name": "Query",
- "dereferenced": {}
- }
+ "type": "reflection",
+ "declaration": {
+ "id": 336,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 337,
+ "name": "foreignTable",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 101,
+ "character": 43
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [337]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
}
],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
@@ -33087,108 +35388,51 @@
},
{
"type": "reference",
- "id": 314,
- "name": "NewResult"
+ "id": 117,
+ "name": "Result"
}
],
"name": "default"
},
"inheritedFrom": {
"type": "reference",
- "id": 409,
- "name": "default.select"
- }
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 408,
- "name": "default.select"
- }
- },
- {
- "id": 348,
- "name": "single",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 141,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 349,
- "name": "single",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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"
- },
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 533,
- "typeArguments": [
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "PostgrestSingleResponse"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 446,
- "name": "default.single"
+ "id": 430,
+ "name": "default.limit"
}
}
],
"inheritedFrom": {
"type": "reference",
- "id": 445,
- "name": "default.single"
+ "id": 429,
+ "name": "default.limit"
}
},
{
- "id": 263,
- "name": "textSearch",
+ "id": 151,
+ "name": "lt",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestFilterBuilder.ts",
- "line": 331,
+ "line": 87,
"character": 2
}
],
"signatures": [
{
- "id": 264,
- "name": "textSearch",
+ "id": 152,
+ "name": "lt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Only relevant for text and tsvector columns. Match only rows where\n`column` matches the query string in `query`."
+ "shortText": "Match only rows where `column` is less than `value`."
},
"typeParameter": [
{
- "id": 265,
+ "id": 153,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
@@ -33201,122 +35445,41 @@
],
"parameters": [
{
- "id": 266,
+ "id": 154,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The text or tsvector column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "reference",
- "id": 265,
+ "id": 153,
"name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 267,
- "name": "query",
+ "id": 155,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The query text to match with"
+ "shortText": "The value to filter with\n"
},
"type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 268,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Named parameters"
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 269,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 270,
- "name": "config",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The text search configuration to use"
- },
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 334,
- "character": 16
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 271,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Change how the `query` text is interpreted\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 334,
- "character": 33
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "plain"
- },
- {
- "type": "literal",
- "value": "phrase"
- },
- {
- "type": "literal",
- "value": "websearch"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [270, 271]
- }
- ]
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 153,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
}
}
}
@@ -33345,23 +35508,23 @@
}
},
{
- "id": 272,
- "name": "textSearch",
+ "id": 156,
+ "name": "lt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Only relevant for text and tsvector columns. Match only rows where\n`column` matches the query string in `query`."
+ "shortText": "Match only rows where `column` is less than `value`."
},
"parameters": [
{
- "id": 273,
+ "id": 157,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The text or tsvector column to filter on"
+ "shortText": "The column to filter on"
},
"type": {
"type": "intrinsic",
@@ -33369,107 +35532,17 @@
}
},
{
- "id": 274,
- "name": "query",
+ "id": 158,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The query text to match with"
+ "shortText": "The value to filter with\n"
},
"type": {
"type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 275,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Named parameters"
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 276,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 277,
- "name": "config",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The text search configuration to use"
- },
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 339,
- "character": 16
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 278,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Change how the `query` text is interpreted\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 339,
- "character": 33
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "plain"
- },
- {
- "type": "literal",
- "value": "phrase"
- },
- {
- "type": "literal",
- "value": "websearch"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [277, 278]
- }
- ]
- }
+ "name": "unknown"
}
}
],
@@ -33499,273 +35572,144 @@
]
},
{
- "id": 386,
- "name": "then",
+ "id": 159,
+ "name": "lte",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 48,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 100,
"character": 2
}
],
"signatures": [
{
- "id": 387,
- "name": "then",
+ "id": 160,
+ "name": "lte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
+ "comment": {
+ "shortText": "Match only rows where `column` is less than or equal to `value`."
+ },
"typeParameter": [
{
- "id": 388,
- "name": "TResult1",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- },
- {
- "id": 389,
- "name": "TResult2",
+ "id": 161,
+ "name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
- "default": {
+ "type": {
"type": "intrinsic",
- "name": "never"
+ "name": "string"
}
}
],
"parameters": [
{
- "id": 390,
- "name": "onfulfilled",
+ "id": 162,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
- "flags": {
- "isOptional": true
+ "flags": {},
+ "comment": {
+ "shortText": "The column to filter on"
},
"type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 391,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 392,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 393,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- }
- }
- ]
+ "type": "reference",
+ "id": 161,
+ "name": "ColumnName",
+ "dereferenced": {}
}
},
{
- "id": 394,
- "name": "onrejected",
+ "id": 163,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
- "flags": {
- "isOptional": true
+ "flags": {},
+ "comment": {
+ "shortText": "The value to filter with\n"
},
"type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 395,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 396,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 397,
- "name": "reason",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- }
- }
- ]
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 161,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
}
}
],
"type": {
"type": "reference",
+ "id": 112,
"typeArguments": [
{
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- },
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- }
- ]
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
}
],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 484,
- "name": "default.then"
+ "name": "default"
}
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 483,
- "name": "default.then"
- }
- },
- {
- "id": 384,
- "name": "throwOnError",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 43,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 385,
- "name": "throwOnError",
+ "id": 164,
+ "name": "lte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "shortText": "Match only rows where `column` is less than or equal to `value`."
},
+ "parameters": [
+ {
+ "id": 165,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The column to filter on"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 166,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The value to filter with\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ],
"type": {
"type": "reference",
"id": 112,
@@ -33787,373 +35731,162 @@
}
],
"name": "default"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 482,
- "name": "default.throwOnError"
}
}
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 481,
- "name": "default.throwOnError"
- }
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [113]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [383, 375, 378, 373, 371, 374, 376, 377, 372]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 345, 207, 199, 352, 119, 356, 301, 354, 135, 143, 175, 191, 183, 167, 332, 151, 159,
- 279, 350, 127, 285, 295, 316, 255, 338, 247, 215, 223, 231, 239, 368, 366, 311, 348,
- 263, 386, 384
]
- }
- ],
- "sources": [
- {
- "fileName": "src/PostgrestFilterBuilder.ts",
- "line": 28,
- "character": 21
- }
- ],
- "typeParameter": [
- {
- "id": 398,
- "name": "Schema",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "name": "GenericSchema"
- }
- },
- {
- "id": 399,
- "name": "Row",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
},
{
- "id": 400,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "extendedTypes": [
- {
- "type": "reference",
- "id": 401,
- "typeArguments": [
- {
- "type": "reference",
- "id": 115,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 116,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 117,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- ]
- },
- {
- "id": 49,
- "name": "PostgrestQueryBuilder",
- "kind": 128,
- "kindString": "Class",
- "flags": {},
- "children": [
- {
- "id": 50,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
+ "id": 279,
+ "name": "match",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 16,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 369,
"character": 2
}
],
"signatures": [
{
- "id": 51,
- "name": "new PostgrestQueryBuilder",
- "kind": 16384,
- "kindString": "Constructor signature",
+ "id": 280,
+ "name": "match",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
+ "comment": {
+ "shortText": "Match only rows where each column in `query` keys is equal to its\nassociated value. Shorthand for multiple `.eq()`s."
+ },
"typeParameter": [
{
- "id": 52,
- "name": "Schema",
+ "id": 281,
+ "name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
- "type": "reference",
- "name": "GenericSchema"
+ "type": "intrinsic",
+ "name": "string"
}
- },
+ }
+ ],
+ "parameters": [
{
- "id": 53,
- "name": "Relation",
- "kind": 131072,
- "kindString": "Type parameter",
+ "id": 282,
+ "name": "query",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "The object to filter with, with column names as keys mapped\nto their filter values\n"
+ },
"type": {
- "type": "union",
- "types": [
+ "type": "reference",
+ "typeArguments": [
{
"type": "reference",
- "name": "GenericTable"
+ "id": 281,
+ "name": "ColumnName"
},
{
- "type": "reference",
- "name": "GenericView"
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 281,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
}
- ]
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
}
}
],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ },
+ {
+ "id": 283,
+ "name": "match",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Match only rows where each column in `query` keys is equal to its\nassociated value. Shorthand for multiple `.eq()`s."
+ },
"parameters": [
{
- "id": 54,
- "name": "url",
+ "id": 284,
+ "name": "query",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "The object to filter with, with column names as keys mapped\nto their filter values\n"
+ },
"type": {
"type": "reference",
- "qualifiedName": "URL",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
"package": "typescript",
- "name": "URL"
- }
- },
- {
- "id": 55,
- "name": "__namedParameters",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 56,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 59,
- "name": "fetch",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 25,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 60,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 61,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 62,
- "name": "input",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "qualifiedName": "RequestInfo",
- "package": "typescript",
- "name": "RequestInfo"
- },
- {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
- }
- ]
- }
- },
- {
- "id": 63,
- "name": "init",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "RequestInit",
- "package": "typescript",
- "name": "RequestInit"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "qualifiedName": "Response",
- "package": "typescript",
- "name": "Response"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- }
- }
- },
- {
- "id": 57,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 23,
- "character": 6
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- },
- {
- "id": 58,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 24,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [59, 57, 58]
- }
- ]
- }
+ "name": "Record"
}
}
],
"type": {
"type": "reference",
- "id": 49,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 52,
+ "id": 115,
"name": "Schema"
},
{
"type": "reference",
- "id": 53,
- "name": "Relation"
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
}
],
"name": "default"
@@ -34162,278 +35895,137 @@
]
},
{
- "id": 68,
- "name": "fetch",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "id": 350,
+ "name": "maybeSingle",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
"sources": [
{
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 14,
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 152,
"character": 2
}
],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 69,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "signatures": [
+ {
+ "id": 351,
+ "name": "maybeSingle",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "signatures": [
- {
- "id": 70,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 71,
- "name": "input",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "qualifiedName": "RequestInfo",
- "package": "typescript",
- "name": "RequestInfo"
- },
- {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
- }
- ]
- }
- },
- {
- "id": 72,
- "name": "init",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "RequestInit",
- "package": "typescript",
- "name": "RequestInit"
- }
- }
- ],
- "type": {
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
"type": "reference",
+ "id": 535,
"typeArguments": [
{
"type": "reference",
- "qualifiedName": "Response",
- "package": "typescript",
- "name": "Response"
+ "id": 117,
+ "name": "Result"
}
],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
+ "name": "PostgrestMaybeSingleResponse"
}
- }
- ]
- }
- }
- },
- {
- "id": 65,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 11,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
},
- {
- "type": "intrinsic",
- "name": "string"
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 448,
+ "name": "default.maybeSingle"
}
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- },
- {
- "id": 66,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 12,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 67,
- "name": "signal",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 13,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "AbortSignal",
- "package": "typescript",
- "name": "AbortSignal"
- }
- },
- {
- "id": 64,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 10,
- "character": 2
}
],
- "type": {
+ "inheritedFrom": {
"type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
+ "id": 447,
+ "name": "default.maybeSingle"
}
},
{
- "id": 105,
- "name": "delete",
+ "id": 127,
+ "name": "neq",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 296,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 48,
"character": 2
}
],
"signatures": [
{
- "id": 106,
- "name": "delete",
+ "id": 128,
+ "name": "neq",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "shortText": "Match only rows where `column` is not equal to `value`."
},
+ "typeParameter": [
+ {
+ "id": 129,
+ "name": "ColumnName",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
"parameters": [
{
- "id": 107,
- "name": "options",
+ "id": 130,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "Named parameters\n"
+ "shortText": "The column to filter on"
},
- "originalName": "__namedParameters",
"type": {
- "type": "reflection",
- "declaration": {
- "id": 108,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 109,
- "name": "count",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "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"
- },
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 299,
- "character": 4
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "exact"
- },
- {
- "type": "literal",
- "value": "planned"
- },
- {
- "type": "literal",
- "value": "estimated"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [109]
- }
- ]
- }
+ "type": "reference",
+ "id": 129,
+ "name": "ColumnName",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 131,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The value to filter with\n"
},
- "defaultValue": "{}"
+ "type": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 129,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ }
+ }
}
],
"type": {
@@ -34442,175 +36034,60 @@
"typeArguments": [
{
"type": "reference",
- "id": 52,
+ "id": 115,
"name": "Schema"
},
{
- "type": "indexedAccess",
- "indexType": {
- "type": "literal",
- "value": "Row"
- },
- "objectType": {
- "type": "reference",
- "id": 53,
- "name": "Relation"
- }
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
},
{
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
}
],
"name": "default"
}
- }
- ]
- },
- {
- "id": 82,
- "name": "insert",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 117,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 83,
- "name": "insert",
+ "id": 132,
+ "name": "neq",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "shortText": "Match only rows where `column` is not equal to `value`."
},
- "typeParameter": [
- {
- "id": 84,
- "name": "Row",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- }
- ],
"parameters": [
{
- "id": 85,
- "name": "values",
+ "id": 133,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The values to insert. Pass an object to insert a single row\nor an array to insert multiple rows.\n"
+ "shortText": "The column to filter on"
},
"type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 84,
- "name": "Row"
- },
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 84,
- "name": "Row"
- }
- }
- ]
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 86,
- "name": "options",
+ "id": 134,
+ "name": "value",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "Named parameters\n"
+ "shortText": "The value to filter with\n"
},
- "originalName": "__namedParameters",
"type": {
- "type": "reflection",
- "declaration": {
- "id": 87,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 88,
- "name": "count",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "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"
- },
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 122,
- "character": 6
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "exact"
- },
- {
- "type": "literal",
- "value": "planned"
- },
- {
- "type": "literal",
- "value": "estimated"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [88]
- }
- ]
- }
- },
- "defaultValue": "{}"
+ "type": "intrinsic",
+ "name": "unknown"
+ }
}
],
"type": {
@@ -34619,24 +36096,18 @@
"typeArguments": [
{
"type": "reference",
- "id": 52,
+ "id": 115,
"name": "Schema"
},
{
- "type": "indexedAccess",
- "indexType": {
- "type": "literal",
- "value": "Row"
- },
- "objectType": {
- "type": "reference",
- "id": 53,
- "name": "Relation"
- }
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
},
{
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
}
],
"name": "default"
@@ -34645,188 +36116,172 @@
]
},
{
- "id": 73,
- "name": "select",
+ "id": 285,
+ "name": "not",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 55,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 385,
"character": 2
}
],
"signatures": [
{
- "id": 74,
- "name": "select",
+ "id": 286,
+ "name": "not",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Perform a SELECT query on the table or view."
+ "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"
},
"typeParameter": [
{
- "id": 75,
- "name": "Query",
+ "id": 287,
+ "name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
- },
- "default": {
- "type": "literal",
- "value": "*"
- }
- },
- {
- "id": 76,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 52,
- "name": "Schema"
- },
- {
- "type": "indexedAccess",
- "indexType": {
- "type": "literal",
- "value": "Row"
- },
- "objectType": {
- "type": "reference",
- "id": 53,
- "name": "Relation"
- }
- },
- {
- "type": "reference",
- "id": 75,
- "name": "Query"
- }
- ],
- "name": "GetResult"
}
}
],
"parameters": [
{
- "id": 77,
- "name": "columns",
+ "id": 288,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"comment": {
- "shortText": "The columns to retrieve, separated by commas\n"
+ "shortText": "The column to filter on"
},
"type": {
"type": "reference",
- "id": 75,
- "name": "Query",
+ "id": 287,
+ "name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 78,
- "name": "options",
+ "id": 289,
+ "name": "operator",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "Named parameters\n"
+ "shortText": "The operator to be negated to filter with, following\nPostgREST syntax"
},
- "originalName": "__namedParameters",
"type": {
- "type": "reflection",
- "declaration": {
- "id": 79,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 81,
- "name": "count",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "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"
- },
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 62,
- "character": 6
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "exact"
- },
- {
- "type": "literal",
- "value": "planned"
- },
- {
- "type": "literal",
- "value": "estimated"
- }
- ]
- }
- },
- {
- "id": 80,
- "name": "head",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "When set to `true`, `data` will not be returned.\nUseful if you only need the count.\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 61,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [81, 80]
- }
- ]
+ "type": "reference",
+ "name": "FilterOperator"
+ }
+ },
+ {
+ "id": 290,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The value to filter with, following PostgREST syntax\n"
+ },
+ "type": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "reference",
+ "id": 287,
+ "name": "ColumnName"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
}
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
},
- "defaultValue": "{}"
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ },
+ {
+ "id": 291,
+ "name": "not",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 292,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The column to filter on"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 293,
+ "name": "operator",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The operator to be negated to filter with, following\nPostgREST syntax"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 294,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The value to filter with, following PostgREST syntax\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
}
],
"type": {
@@ -34835,24 +36290,17 @@
"typeArguments": [
{
"type": "reference",
- "id": 52,
+ "id": 115,
"name": "Schema"
},
{
- "type": "indexedAccess",
- "indexType": {
- "type": "literal",
- "value": "Row"
- },
- "objectType": {
- "type": "reference",
- "id": 53,
- "name": "Relation"
- }
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
},
{
"type": "reference",
- "id": 76,
+ "id": 117,
"name": "Result"
}
],
@@ -34862,124 +36310,81 @@
]
},
{
- "id": 98,
- "name": "update",
+ "id": 295,
+ "name": "or",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 247,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 422,
"character": 2
}
],
"signatures": [
{
- "id": 99,
- "name": "update",
+ "id": 296,
+ "name": "or",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "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"
},
- "typeParameter": [
- {
- "id": 100,
- "name": "Row",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- }
- ],
"parameters": [
{
- "id": 101,
- "name": "values",
+ "id": 297,
+ "name": "filters",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The values to update with\n"
+ "shortText": "The filters to use, following PostgREST syntax"
},
"type": {
- "type": "reference",
- "id": 100,
- "name": "Row",
- "dereferenced": {}
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 102,
- "name": "options",
+ "id": 298,
+ "name": "foreignTable",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "Named parameters\n"
+ "shortText": "Set this to filter on foreign tables instead of the\ncurrent table\n"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
- "id": 103,
+ "id": 299,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 104,
- "name": "count",
+ "id": 300,
+ "name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"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"
- },
"sources": [
{
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 252,
- "character": 6
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 422,
+ "character": 42
}
],
"type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "exact"
- },
- {
- "type": "literal",
- "value": "planned"
- },
- {
- "type": "literal",
- "value": "estimated"
- }
- ]
+ "type": "intrinsic",
+ "name": "string"
}
}
],
@@ -34987,7 +36392,7 @@
{
"title": "Properties",
"kind": 1024,
- "children": [104]
+ "children": [300]
}
]
}
@@ -35001,24 +36406,18 @@
"typeArguments": [
{
"type": "reference",
- "id": 52,
+ "id": 115,
"name": "Schema"
},
{
- "type": "indexedAccess",
- "indexType": {
- "type": "literal",
- "value": "Row"
- },
- "objectType": {
- "type": "reference",
- "id": 53,
- "name": "Relation"
- }
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
},
{
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
}
],
"name": "default"
@@ -35027,182 +36426,146 @@
]
},
{
- "id": 89,
- "name": "upsert",
+ "id": 316,
+ "name": "order",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 189,
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 49,
"character": 2
}
],
"signatures": [
{
- "id": 90,
- "name": "upsert",
+ "id": 317,
+ "name": "order",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "shortText": "Order the query result by `column`.",
+ "text": "You can call this method multiple times to order by multiple columns.\n\nYou can order foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n"
},
"typeParameter": [
{
- "id": 91,
- "name": "Row",
+ "id": 318,
+ "name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
+ "type": "intrinsic",
+ "name": "string"
}
}
],
"parameters": [
{
- "id": 92,
- "name": "values",
+ "id": 319,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The values to upsert with. Pass an object to upsert a\nsingle row or an array to upsert multiple rows.\n"
+ "shortText": "The column to order by"
},
"type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 91,
- "name": "Row"
- },
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 91,
- "name": "Row"
- }
- }
- ]
+ "type": "reference",
+ "id": 318,
+ "name": "ColumnName",
+ "dereferenced": {}
}
},
{
- "id": 93,
+ "id": 320,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"comment": {
- "shortText": "Named parameters\n"
+ "shortText": "Named parameters"
},
- "originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
- "id": 94,
+ "id": 321,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 97,
- "name": "count",
+ "id": 322,
+ "name": "ascending",
"kind": 1024,
"kindString": "Property",
"flags": {
"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"
+ "shortText": "If `true`, the result will be in ascending order"
},
"sources": [
{
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 198,
- "character": 6
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 51,
+ "character": 16
}
],
"type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "exact"
- },
- {
- "type": "literal",
- "value": "planned"
- },
- {
- "type": "literal",
- "value": "estimated"
- }
- ]
+ "type": "intrinsic",
+ "name": "boolean"
}
},
{
- "id": 96,
- "name": "ignoreDuplicates",
+ "id": 324,
+ "name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
- "shortText": "If `true`, duplicate rows are ignored. If\n`false`, duplicate rows are merged with existing rows.\n"
+ "shortText": "Set this to order a foreign table by foreign\ncolumns\n"
},
"sources": [
{
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 197,
- "character": 6
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 51,
+ "character": 59
}
],
"type": {
"type": "intrinsic",
- "name": "boolean"
+ "name": "undefined"
}
},
{
- "id": 95,
- "name": "onConflict",
+ "id": 323,
+ "name": "nullsFirst",
"kind": 1024,
"kindString": "Property",
"flags": {
"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"
+ "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
},
"sources": [
{
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 196,
- "character": 6
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 51,
+ "character": 37
}
],
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "boolean"
}
}
],
@@ -35210,12 +36573,11 @@
{
"title": "Properties",
"kind": 1024,
- "children": [97, 96, 95]
+ "children": [322, 324, 323]
}
]
}
- },
- "defaultValue": "{}"
+ }
}
],
"type": {
@@ -35224,259 +36586,89 @@
"typeArguments": [
{
"type": "reference",
- "id": 52,
+ "id": 115,
"name": "Schema"
},
{
- "type": "indexedAccess",
- "indexType": {
- "type": "literal",
- "value": "Row"
- },
- "objectType": {
- "type": "reference",
- "id": 53,
- "name": "Relation"
- }
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
},
{
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
}
],
"name": "default"
- }
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [50]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [68, 65, 66, 67, 64]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [105, 82, 73, 98, 89]
- }
- ],
- "sources": [
- {
- "fileName": "src/PostgrestQueryBuilder.ts",
- "line": 6,
- "character": 21
- }
- ],
- "typeParameter": [
- {
- "id": 110,
- "name": "Schema",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "name": "GenericSchema"
- }
- },
- {
- "id": 111,
- "name": "Relation",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "GenericTable"
},
- {
+ "inheritedFrom": {
"type": "reference",
- "name": "GenericView"
+ "id": 414,
+ "name": "default.order"
}
- ]
- }
- }
- ]
- },
- {
- "id": 401,
- "name": "PostgrestTransformBuilder",
- "kind": 128,
- "kindString": "Class",
- "flags": {},
- "children": [
- {
- "id": 402,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {},
- "signatures": [
+ },
{
- "id": 403,
- "name": "new PostgrestTransformBuilder",
- "kind": 16384,
- "kindString": "Constructor signature",
+ "id": 325,
+ "name": "order",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "typeParameter": [
+ "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 foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n"
+ },
+ "parameters": [
{
- "id": 404,
- "name": "Schema",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "name": "GenericSchema"
- }
- },
- {
- "id": 405,
- "name": "Row",
- "kind": 131072,
- "kindString": "Type parameter",
+ "id": 326,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "The column to order by"
+ },
"type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 406,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "parameters": [
- {
- "id": 407,
- "name": "builder",
+ "id": 327,
+ "name": "options",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ },
"type": {
- "type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 406,
- "name": "Result"
- }
- ],
- "name": "default",
- "dereferenced": {
- "id": 498,
- "name": "PostgrestBuilder",
- "kind": 128,
- "kindString": "Class",
- "flags": {
- "isAbstract": true
- },
+ "type": "reflection",
+ "declaration": {
+ "id": 328,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
"children": [
{
- "id": 499,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 18,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 500,
- "name": "new PostgrestBuilder",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {},
- "typeParameter": [
- {
- "id": 501,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "parameters": [
- {
- "id": 502,
- "name": "builder",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "default",
- "dereferenced": "[Circular ~.children.4.children.0.signatures.0.parameters.0.type.dereferenced]"
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 515,
- "name": "allowEmpty",
+ "id": 329,
+ "name": "ascending",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isProtected": true
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, the result will be in ascending order"
},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 16,
- "character": 12
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 55,
+ "character": 16
}
],
"type": {
@@ -35485,618 +36677,55 @@
}
},
{
- "id": 507,
- "name": "body",
+ "id": 331,
+ "name": "foreignTable",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
+ "flags": {},
+ "comment": {
+ "shortText": "Set this to order a foreign table by foreign\ncolumns\n"
},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 12,
- "character": 12
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 55,
+ "character": 59
}
],
"type": {
"type": "intrinsic",
- "name": "unknown"
- }
- },
- {
- "id": 510,
- "name": "fetch",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 15,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 511,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 512,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 513,
- "name": "input",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "qualifiedName": "RequestInfo",
- "package": "typescript",
- "name": "RequestInfo"
- },
- {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
- }
- ]
- }
- },
- {
- "id": 514,
- "name": "init",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "RequestInit",
- "package": "typescript",
- "name": "RequestInit"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "qualifiedName": "Response",
- "package": "typescript",
- "name": "Response"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- }
- }
- },
- {
- "id": 505,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 10,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- },
- {
- "id": 503,
- "name": "method",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 8,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "GET"
- },
- {
- "type": "literal",
- "value": "HEAD"
- },
- {
- "type": "literal",
- "value": "POST"
- },
- {
- "type": "literal",
- "value": "PATCH"
- },
- {
- "type": "literal",
- "value": "DELETE"
- }
- ]
+ "name": "string"
}
},
{
- "id": 506,
- "name": "schema",
+ "id": 330,
+ "name": "nullsFirst",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isProtected": true,
"isOptional": true
},
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 11,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 508,
- "name": "shouldThrowOnError",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
+ "comment": {
+ "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 13,
- "character": 12
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 55,
+ "character": 37
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
- },
- "defaultValue": "false"
- },
- {
- "id": 509,
- "name": "signal",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 14,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "AbortSignal",
- "package": "typescript",
- "name": "AbortSignal"
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 504,
- "name": "url",
+ "title": "Properties",
"kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 9,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
- }
- },
- {
- "id": 518,
- "name": "then",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 48,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 519,
- "name": "then",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "typeParameter": [
- {
- "id": 520,
- "name": "TResult1",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- },
- {
- "id": 521,
- "name": "TResult2",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
- "type": "intrinsic",
- "name": "never"
- }
- }
- ],
- "parameters": [
- {
- "id": 522,
- "name": "onfulfilled",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 523,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 524,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 525,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- }
- }
- ]
- }
- },
- {
- "id": 526,
- "name": "onrejected",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 527,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 528,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 529,
- "name": "reason",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- }
- }
- ]
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- },
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- }
- ]
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- },
- "implementationOf": {
- "type": "reference",
- "name": "PromiseLike.then"
- }
- }
- ],
- "implementationOf": {
- "type": "reference",
- "name": "PromiseLike.then"
- }
- },
- {
- "id": 516,
- "name": "throwOnError",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 43,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 517,
- "name": "throwOnError",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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"
- },
- "type": {
- "type": "reference",
- "id": 498,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "default"
- }
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [499]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [515, 507, 510, 505, 503, 506, 508, 509, 504]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [518, 516]
- }
- ],
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 5,
- "character": 30
- }
- ],
- "typeParameter": [
- {
- "id": 530,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "extendedBy": [
- {
- "type": "reference",
- "id": 401,
- "name": "PostgrestTransformBuilder"
- }
- ],
- "implementedTypes": [
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 501,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ "children": [329, 331, 330]
}
]
}
@@ -36105,21 +36734,21 @@
],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 404,
+ "id": 115,
"name": "Schema"
},
{
"type": "reference",
- "id": 405,
+ "id": 116,
"name": "Row"
},
{
"type": "reference",
- "id": 406,
+ "id": 117,
"name": "Result"
}
],
@@ -36127,411 +36756,197 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 500,
- "name": "default.constructor"
+ "id": 422,
+ "name": "default.order"
}
}
],
"inheritedFrom": {
"type": "reference",
- "id": 499,
- "name": "default.constructor"
- }
- },
- {
- "id": 480,
- "name": "allowEmpty",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 16,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 515,
- "name": "default.allowEmpty"
+ "id": 413,
+ "name": "default.order"
}
},
{
- "id": 472,
- "name": "body",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
- },
+ "id": 255,
+ "name": "overlaps",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 12,
- "character": 12
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 308,
+ "character": 2
}
],
- "type": {
- "type": "intrinsic",
- "name": "unknown"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 507,
- "name": "default.body"
- }
- },
- {
- "id": 475,
- "name": "fetch",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
+ "signatures": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 15,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 476,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 256,
+ "name": "overlaps",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "signatures": [
+ "comment": {
+ "shortText": "Only relevant for array and range columns. Match only rows where\n`column` and `value` have an element in common."
+ },
+ "typeParameter": [
{
- "id": 477,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 257,
+ "name": "ColumnName",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "parameters": [
- {
- "id": 478,
- "name": "input",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 258,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The array or range column to filter on"
+ },
+ "type": {
+ "type": "reference",
+ "id": 257,
+ "name": "ColumnName",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 259,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The array or range value to filter with\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "indexedAccess",
+ "indexType": {
"type": "reference",
- "qualifiedName": "RequestInfo",
- "package": "typescript",
- "name": "RequestInfo"
+ "id": 257,
+ "name": "ColumnName"
},
- {
+ "objectType": {
"type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
+ "id": 116,
+ "name": "Row"
}
- ]
- }
- },
- {
- "id": 479,
- "name": "init",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "RequestInit",
- "package": "typescript",
- "name": "RequestInit"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "qualifiedName": "Response",
- "package": "typescript",
- "name": "Response"
+ }
}
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
+ ]
}
}
- ]
- }
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 510,
- "name": "default.fetch"
- }
- },
- {
- "id": 470,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
+ ],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ },
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 10,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 505,
- "name": "default.headers"
- }
- },
- {
- "id": 468,
- "name": "method",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 8,
- "character": 12
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "GET"
- },
- {
- "type": "literal",
- "value": "HEAD"
- },
- {
- "type": "literal",
- "value": "POST"
- },
- {
- "type": "literal",
- "value": "PATCH"
- },
- {
- "type": "literal",
- "value": "DELETE"
- }
- ]
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 503,
- "name": "default.method"
- }
- },
- {
- "id": 471,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 11,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 506,
- "name": "default.schema"
- }
- },
- {
- "id": 473,
- "name": "shouldThrowOnError",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 13,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- },
- "defaultValue": "false",
- "inheritedFrom": {
- "type": "reference",
- "id": 508,
- "name": "default.shouldThrowOnError"
- }
- },
- {
- "id": 474,
- "name": "signal",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 14,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "AbortSignal",
- "package": "typescript",
- "name": "AbortSignal"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 509,
- "name": "default.signal"
- }
- },
- {
- "id": 469,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true
- },
- "sources": [
- {
- "fileName": "src/PostgrestBuilder.ts",
- "line": 9,
- "character": 12
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "URL",
- "package": "typescript",
- "name": "URL"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 504,
- "name": "default.url"
- }
- },
- {
- "id": 442,
- "name": "abortSignal",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 130,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 443,
- "name": "abortSignal",
+ "id": 260,
+ "name": "overlaps",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Set the AbortSignal for the fetch request."
+ "shortText": "Only relevant for array and range columns. Match only rows where\n`column` and `value` have an element in common."
},
"parameters": [
{
- "id": 444,
- "name": "signal",
+ "id": 261,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The AbortSignal to use for the fetch request\n"
+ "shortText": "The array or range column to filter on"
},
"type": {
- "type": "reference",
- "qualifiedName": "AbortSignal",
- "package": "typescript",
- "name": "AbortSignal"
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 262,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The array or range value to filter with\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ]
}
}
],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 404,
+ "id": 115,
"name": "Schema"
},
{
"type": "reference",
- "id": 405,
+ "id": 116,
"name": "Row"
},
{
"type": "reference",
- "id": 406,
+ "id": 117,
"name": "Result"
}
],
@@ -36541,238 +36956,97 @@
]
},
{
- "id": 449,
- "name": "csv",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 161,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 450,
- "name": "csv",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Return `data` as a string in CSV format."
- },
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 533,
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- }
- ],
- "name": "PostgrestSingleResponse"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- }
- ]
- },
- {
- "id": 453,
- "name": "explain",
+ "id": 338,
+ "name": "range",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 195,
+ "line": 116,
"character": 2
}
],
"signatures": [
{
- "id": 454,
- "name": "explain",
+ "id": 339,
+ "name": "range",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Return `data` as the EXPLAIN plan for the query."
+ "shortText": "Limit the query result by `from` and `to` inclusively."
},
"parameters": [
{
- "id": 455,
+ "id": 340,
+ "name": "from",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The starting index from which to limit the result"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 341,
+ "name": "to",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The last index to which to limit the result"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 342,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "Named parameters\n"
+ "shortText": "Named parameters"
},
"originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
- "id": 456,
+ "id": 343,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 457,
- "name": "analyze",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, the query will be executed and the\nactual run time will be returned\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 203,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 460,
- "name": "buffers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, include information on buffer usage\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 206,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 462,
- "name": "format",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The format of the output, can be `\"text\"` (default)\nor `\"json\"`\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 208,
- "character": 4
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "text"
- },
- {
- "type": "literal",
- "value": "json"
- }
- ]
- }
- },
- {
- "id": 459,
- "name": "settings",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, include information on configuration\nparameters that affect query planning\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 205,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 458,
- "name": "verbose",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, the query identifier will be returned\nand `data` will include the output columns of the query\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 204,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 461,
- "name": "wal",
+ "id": 344,
+ "name": "foreignTable",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
- "shortText": "If `true`, include information on WAL record generation\n"
+ "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n"
},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 207,
- "character": 4
+ "line": 116,
+ "character": 54
}
],
"type": {
"type": "intrinsic",
- "name": "boolean"
+ "name": "string"
}
}
],
@@ -36780,7 +37054,7 @@
{
"title": "Properties",
"kind": 1024,
- "children": [457, 460, 462, 459, 458, 461]
+ "children": [344]
}
]
}
@@ -36789,312 +37063,221 @@
}
],
"type": {
- "type": "union",
- "types": [
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
{
"type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 533,
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- }
- ],
- "name": "PostgrestSingleResponse"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ "id": 115,
+ "name": "Schema"
},
{
"type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- ],
- "name": "PostgrestResponse"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- },
- {
- "id": 451,
- "name": "geojson",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 169,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 452,
- "name": "geojson",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Return `data` as an object in [GeoJSON](https://geojson.org) format."
- },
- "type": {
- "type": "reference",
- "typeArguments": [
+ "id": 116,
+ "name": "Row"
+ },
{
"type": "reference",
- "id": 533,
- "typeArguments": [
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- ],
- "name": "PostgrestSingleResponse"
+ "id": 117,
+ "name": "Result"
}
],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 436,
+ "name": "default.range"
}
}
- ]
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 435,
+ "name": "default.range"
+ }
},
{
- "id": 429,
- "name": "limit",
+ "id": 247,
+ "name": "rangeAdjacent",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 101,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 293,
"character": 2
}
],
"signatures": [
{
- "id": 430,
- "name": "limit",
+ "id": 248,
+ "name": "rangeAdjacent",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Limit the query result by `count`."
+ "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."
},
+ "typeParameter": [
+ {
+ "id": 249,
+ "name": "ColumnName",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
"parameters": [
{
- "id": 431,
- "name": "count",
+ "id": 250,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The maximum number of rows to return"
+ "shortText": "The range column to filter on"
},
"type": {
- "type": "intrinsic",
- "name": "number"
+ "type": "reference",
+ "id": 249,
+ "name": "ColumnName",
+ "dereferenced": {}
}
},
{
- "id": 432,
- "name": "options",
+ "id": 251,
+ "name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "Named parameters"
+ "shortText": "The range to filter with\n"
},
- "originalName": "__namedParameters",
"type": {
- "type": "reflection",
- "declaration": {
- "id": 433,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 434,
- "name": "foreignTable",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 101,
- "character": 43
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [434]
- }
- ]
- }
- },
- "defaultValue": "{}"
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 404,
+ "id": 115,
"name": "Schema"
},
{
"type": "reference",
- "id": 405,
+ "id": 116,
"name": "Row"
},
{
"type": "reference",
- "id": 406,
+ "id": 117,
"name": "Result"
}
],
"name": "default"
}
- }
- ]
- },
- {
- "id": 447,
- "name": "maybeSingle",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 152,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 448,
- "name": "maybeSingle",
+ "id": 252,
+ "name": "rangeAdjacent",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "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."
},
+ "parameters": [
+ {
+ "id": 253,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The range column to filter on"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 254,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The range to filter with\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
"type": {
"type": "reference",
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 535,
- "typeArguments": [
- {
- "type": "reference",
- "id": 406,
- "name": "Result"
- }
- ],
- "name": "PostgrestMaybeSingleResponse"
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
}
],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ "name": "default"
}
}
]
},
{
- "id": 413,
- "name": "order",
+ "id": 215,
+ "name": "rangeGt",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 49,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 235,
"character": 2
}
],
"signatures": [
{
- "id": 414,
- "name": "order",
+ "id": 216,
+ "name": "rangeGt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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 foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n"
+ "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is greater than any element in `range`."
},
"typeParameter": [
{
- "id": 415,
+ "id": 217,
"name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
@@ -37107,139 +37290,53 @@
],
"parameters": [
{
- "id": 416,
+ "id": 218,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to order by"
+ "shortText": "The range column to filter on"
},
"type": {
"type": "reference",
- "id": 318,
+ "id": 217,
"name": "ColumnName",
"dereferenced": {}
}
},
{
- "id": 417,
- "name": "options",
+ "id": 219,
+ "name": "range",
"kind": 32768,
"kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"comment": {
- "shortText": "Named parameters"
+ "shortText": "The range to filter with\n"
},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 418,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 419,
- "name": "ascending",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, the result will be in ascending order"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 51,
- "character": 16
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 421,
- "name": "foreignTable",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Set this to order a foreign table by foreign\ncolumns\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 51,
- "character": 59
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "undefined"
- }
- },
- {
- "id": 420,
- "name": "nullsFirst",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 51,
- "character": 37
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [419, 421, 420]
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
}
}
],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 404,
+ "id": 115,
"name": "Schema"
},
{
"type": "reference",
- "id": 405,
+ "id": 116,
"name": "Row"
},
{
"type": "reference",
- "id": 406,
+ "id": 117,
"name": "Result"
}
],
@@ -37247,24 +37344,23 @@
}
},
{
- "id": 422,
- "name": "order",
+ "id": 220,
+ "name": "rangeGt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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 foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n"
+ "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is greater than any element in `range`."
},
"parameters": [
{
- "id": 423,
+ "id": 221,
"name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The column to order by"
+ "shortText": "The range column to filter on"
},
"type": {
"type": "intrinsic",
@@ -37272,121 +37368,37 @@
}
},
{
- "id": 424,
- "name": "options",
+ "id": 222,
+ "name": "range",
"kind": 32768,
"kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"comment": {
- "shortText": "Named parameters"
+ "shortText": "The range to filter with\n"
},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 425,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 426,
- "name": "ascending",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, the result will be in ascending order"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 55,
- "character": 16
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 428,
- "name": "foreignTable",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Set this to order a foreign table by foreign\ncolumns\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 55,
- "character": 59
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 427,
- "name": "nullsFirst",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 55,
- "character": 37
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [426, 428, 427]
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
}
}
],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 404,
+ "id": 115,
"name": "Schema"
},
{
"type": "reference",
- "id": 405,
+ "id": 116,
"name": "Row"
},
{
"type": "reference",
- "id": 406,
+ "id": 117,
"name": "Result"
}
],
@@ -37396,129 +37408,152 @@
]
},
{
- "id": 435,
- "name": "range",
+ "id": 223,
+ "name": "rangeGte",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 116,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 249,
"character": 2
}
],
"signatures": [
{
- "id": 436,
- "name": "range",
+ "id": 224,
+ "name": "rangeGte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Limit the query result by `from` and `to` inclusively."
+ "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`."
},
+ "typeParameter": [
+ {
+ "id": 225,
+ "name": "ColumnName",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
"parameters": [
{
- "id": 437,
- "name": "from",
+ "id": 226,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The starting index from which to limit the result"
+ "shortText": "The range column to filter on"
},
"type": {
- "type": "intrinsic",
- "name": "number"
+ "type": "reference",
+ "id": 225,
+ "name": "ColumnName",
+ "dereferenced": {}
}
},
{
- "id": 438,
- "name": "to",
+ "id": 227,
+ "name": "range",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "The last index to which to limit the result"
+ "shortText": "The range to filter with\n"
},
"type": {
"type": "intrinsic",
- "name": "number"
+ "name": "string"
}
- },
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ },
+ {
+ "id": 228,
+ "name": "rangeGte",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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`."
+ },
+ "parameters": [
{
- "id": 439,
- "name": "options",
+ "id": 229,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"comment": {
- "shortText": "Named parameters"
+ "shortText": "The range column to filter on"
},
- "originalName": "__namedParameters",
"type": {
- "type": "reflection",
- "declaration": {
- "id": 440,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 441,
- "name": "foreignTable",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n"
- },
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 116,
- "character": 54
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [441]
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 230,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The range to filter with\n"
},
- "defaultValue": "{}"
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 404,
+ "id": 115,
"name": "Schema"
},
{
"type": "reference",
- "id": 405,
+ "id": 116,
"name": "Row"
},
{
"type": "reference",
- "id": 406,
+ "id": 117,
"name": "Result"
}
],
@@ -37528,106 +37563,152 @@
]
},
{
- "id": 465,
- "name": "returns",
+ "id": 231,
+ "name": "rangeLt",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 249,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 264,
"character": 2
}
],
"signatures": [
{
- "id": 466,
- "name": "returns",
+ "id": 232,
+ "name": "rangeLt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Override the type of the returned `data`."
+ "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is less than any element in `range`."
},
"typeParameter": [
{
- "id": 467,
- "name": "NewResult",
+ "id": 233,
+ "name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 234,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
"comment": {
- "shortText": "The new result type to override with\n"
+ "shortText": "The range column to filter on"
+ },
+ "type": {
+ "type": "reference",
+ "id": 233,
+ "name": "ColumnName",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 235,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The range to filter with\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 404,
+ "id": 115,
"name": "Schema"
},
{
"type": "reference",
- "id": 405,
+ "id": 116,
"name": "Row"
},
{
"type": "reference",
- "id": 370,
- "name": "NewResult"
+ "id": 117,
+ "name": "Result"
}
],
"name": "default"
}
- }
- ]
- },
- {
- "id": 463,
- "name": "rollback",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 235,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 464,
- "name": "rollback",
+ "id": 236,
+ "name": "rangeLt",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Rollback the query.",
- "text": "`data` will still be returned, but the query is not committed.\n"
+ "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is less than any element in `range`."
},
+ "parameters": [
+ {
+ "id": 237,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The range column to filter on"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 238,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The range to filter with\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 404,
+ "id": 115,
"name": "Schema"
},
{
"type": "reference",
- "id": 405,
+ "id": 116,
"name": "Row"
},
{
"type": "reference",
- "id": 406,
+ "id": 117,
"name": "Result"
}
],
@@ -37637,112 +37718,153 @@
]
},
{
- "id": 408,
- "name": "select",
+ "id": 239,
+ "name": "rangeLte",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 24,
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 278,
"character": 2
}
],
"signatures": [
{
- "id": 409,
- "name": "select",
+ "id": 240,
+ "name": "rangeLte",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "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`."
},
"typeParameter": [
{
- "id": 410,
- "name": "Query",
+ "id": 241,
+ "name": "ColumnName",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
"name": "string"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 242,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The range column to filter on"
},
- "default": {
- "type": "literal",
- "value": "*"
+ "type": {
+ "type": "reference",
+ "id": 241,
+ "name": "ColumnName",
+ "dereferenced": {}
}
},
{
- "id": 411,
- "name": "NewResult",
- "kind": 131072,
- "kindString": "Type parameter",
+ "id": 243,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "default": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 404,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 405,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 313,
- "name": "Query"
- }
- ],
- "name": "GetResult"
+ "comment": {
+ "shortText": "The range to filter with\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ },
+ {
+ "id": 244,
+ "name": "rangeLte",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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`."
+ },
"parameters": [
{
- "id": 412,
- "name": "columns",
+ "id": 245,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
- "flags": {
- "isOptional": true
+ "flags": {},
+ "comment": {
+ "shortText": "The range column to filter on"
},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 246,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
"comment": {
- "shortText": "The columns to retrieve, separated by commas\n"
+ "shortText": "The range to filter with\n"
},
"type": {
- "type": "reference",
- "id": 313,
- "name": "Query",
- "dereferenced": {}
+ "type": "intrinsic",
+ "name": "string"
}
}
],
"type": {
"type": "reference",
- "id": 401,
+ "id": 112,
"typeArguments": [
{
"type": "reference",
- "id": 404,
+ "id": 115,
"name": "Schema"
},
{
"type": "reference",
- "id": 405,
+ "id": 116,
"name": "Row"
},
{
"type": "reference",
- "id": 314,
- "name": "NewResult"
+ "id": 117,
+ "name": "Result"
}
],
"name": "default"
@@ -37751,1724 +37873,1925 @@
]
},
{
- "id": 445,
- "name": "single",
+ "id": 368,
+ "name": "returns",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
"fileName": "src/PostgrestTransformBuilder.ts",
- "line": 141,
+ "line": 249,
"character": 2
}
],
"signatures": [
{
- "id": 446,
- "name": "single",
+ "id": 369,
+ "name": "returns",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "shortText": "Override the type of the returned `data`."
},
+ "typeParameter": [
+ {
+ "id": 370,
+ "name": "NewResult",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The new result type to override with\n"
+ }
+ }
+ ],
"type": {
"type": "reference",
+ "id": 401,
"typeArguments": [
{
"type": "reference",
- "id": 533,
- "typeArguments": [
- {
- "type": "reference",
- "id": 406,
- "name": "Result"
- }
- ],
- "name": "PostgrestSingleResponse"
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 370,
+ "name": "NewResult"
}
],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 466,
+ "name": "default.returns"
}
}
- ]
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 465,
+ "name": "default.returns"
+ }
},
{
- "id": 483,
- "name": "then",
+ "id": 366,
+ "name": "rollback",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 48,
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 235,
"character": 2
}
],
"signatures": [
{
- "id": 484,
- "name": "then",
+ "id": 367,
+ "name": "rollback",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
- "typeParameter": [
- {
- "id": 485,
- "name": "TResult1",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "default": {
+ "comment": {
+ "shortText": "Rollback the query.",
+ "text": "`data` will still be returned, but the query is not committed.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
"type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 406,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
}
- },
+ ],
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 464,
+ "name": "default.rollback"
+ }
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 463,
+ "name": "default.rollback"
+ }
+ },
+ {
+ "id": 311,
+ "name": "select",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 312,
+ "name": "select",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "typeParameter": [
{
- "id": 486,
- "name": "TResult2",
+ "id": 313,
+ "name": "Query",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
- "default": {
+ "type": {
"type": "intrinsic",
- "name": "never"
+ "name": "string"
+ },
+ "default": {
+ "type": "literal",
+ "value": "*"
}
- }
- ],
- "parameters": [
+ },
{
- "id": 487,
- "name": "onfulfilled",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "union",
- "types": [
+ "id": 314,
+ "name": "NewResult",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "reference",
+ "typeArguments": [
{
- "type": "literal",
- "value": null
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
},
{
- "type": "reflection",
- "declaration": {
- "id": 488,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 489,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 490,
- "name": "value",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 531,
- "typeArguments": [
- {
- "type": "reference",
- "id": 406,
- "name": "Result"
- }
- ],
- "name": "PostgrestResponse"
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- }
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 313,
+ "name": "Query"
}
- ]
+ ],
+ "name": "GetResult"
}
- },
+ }
+ ],
+ "parameters": [
{
- "id": 491,
- "name": "onrejected",
+ "id": 315,
+ "name": "columns",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isOptional": true
},
+ "comment": {
+ "shortText": "The columns to retrieve, separated by commas\n"
+ },
"type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 492,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 493,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 494,
- "name": "reason",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- },
- {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- }
- ],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
- }
- ]
- }
- }
- ]
- }
- }
- ]
+ "type": "reference",
+ "id": 313,
+ "name": "Query",
+ "dereferenced": {}
}
}
],
"type": {
"type": "reference",
+ "id": 401,
"typeArguments": [
{
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 388,
- "name": "TResult1"
- },
- {
- "type": "reference",
- "id": 389,
- "name": "TResult2"
- }
- ]
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 314,
+ "name": "NewResult"
}
],
- "qualifiedName": "PromiseLike",
- "package": "typescript",
- "name": "PromiseLike"
+ "name": "default"
},
"inheritedFrom": {
"type": "reference",
- "id": 519,
- "name": "default.then"
+ "id": 409,
+ "name": "default.select"
}
}
],
"inheritedFrom": {
"type": "reference",
- "id": 518,
- "name": "default.then"
+ "id": 408,
+ "name": "default.select"
}
},
{
- "id": 481,
- "name": "throwOnError",
+ "id": 348,
+ "name": "single",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "src/PostgrestBuilder.ts",
- "line": 43,
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 141,
"character": 2
}
],
"signatures": [
{
- "id": 482,
- "name": "throwOnError",
+ "id": 349,
+ "name": "single",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"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"
+ "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"
},
"type": {
"type": "reference",
- "id": 401,
"typeArguments": [
{
"type": "reference",
- "id": 404,
- "name": "Schema"
- },
- {
- "type": "reference",
- "id": 405,
- "name": "Row"
- },
- {
- "type": "reference",
- "id": 406,
- "name": "Result"
+ "id": 533,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestSingleResponse"
}
],
- "name": "default"
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
},
"inheritedFrom": {
"type": "reference",
- "id": 517,
- "name": "default.throwOnError"
+ "id": 446,
+ "name": "default.single"
}
}
],
"inheritedFrom": {
"type": "reference",
- "id": 516,
- "name": "default.throwOnError"
+ "id": 445,
+ "name": "default.single"
}
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [402]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [480, 472, 475, 470, 468, 471, 473, 474, 469]
},
{
- "title": "Methods",
+ "id": 263,
+ "name": "textSearch",
"kind": 2048,
- "children": [442, 449, 453, 451, 429, 447, 413, 435, 465, 463, 408, 445, 483, 481]
- }
- ],
- "sources": [
- {
- "fileName": "src/PostgrestTransformBuilder.ts",
- "line": 10,
- "character": 21
- }
- ],
- "typeParameter": [
- {
- "id": 495,
- "name": "Schema",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "name": "GenericSchema"
- }
- },
- {
- "id": 496,
- "name": "Row",
- "kind": 131072,
- "kindString": "Type parameter",
+ "kindString": "Method",
"flags": {},
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "intrinsic",
- "name": "unknown"
- }
- ],
- "qualifiedName": "Record",
- "package": "typescript",
- "name": "Record"
- }
- },
- {
- "id": 497,
- "name": "Result",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "extendedTypes": [
- {
- "type": "reference",
- "id": 498,
- "typeArguments": [
+ "sources": [
{
- "type": "reference",
- "id": 406,
- "name": "Result"
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 331,
+ "character": 2
}
],
- "name": "default"
- }
- ],
- "extendedBy": [
- {
- "type": "reference",
- "id": 112,
- "name": "PostgrestFilterBuilder"
- }
- ]
- },
- {
- "id": 537,
- "name": "PostgrestError",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "comment": {
- "shortText": "Error format",
- "text": "{@link https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes}\n"
- },
- "sources": [
- {
- "fileName": "src/types.ts",
- "line": 8,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 538,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ "signatures": [
{
- "id": 542,
- "name": "code",
- "kind": 1024,
- "kindString": "Property",
+ "id": 264,
+ "name": "textSearch",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
+ "comment": {
+ "shortText": "Only relevant for text and tsvector columns. Match only rows where\n`column` matches the query string in `query`."
+ },
+ "typeParameter": [
{
- "fileName": "src/types.ts",
- "line": 12,
- "character": 2
+ "id": 265,
+ "name": "ColumnName",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 540,
- "name": "details",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "parameters": [
{
- "fileName": "src/types.ts",
- "line": 10,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 541,
- "name": "hint",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "id": 266,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The text or tsvector column to filter on"
+ },
+ "type": {
+ "type": "reference",
+ "id": 265,
+ "name": "ColumnName",
+ "dereferenced": {}
+ }
+ },
{
- "fileName": "src/types.ts",
- "line": 11,
- "character": 2
+ "id": 267,
+ "name": "query",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The query text to match with"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 268,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 269,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 270,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The text search configuration to use"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 334,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 271,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Change how the `query` text is interpreted\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 334,
+ "character": 33
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "plain"
+ },
+ {
+ "type": "literal",
+ "value": "phrase"
+ },
+ {
+ "type": "literal",
+ "value": "websearch"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [270, 271]
+ }
+ ]
+ }
+ }
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
}
},
{
- "id": 539,
- "name": "message",
- "kind": 1024,
- "kindString": "Property",
+ "id": 272,
+ "name": "textSearch",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
+ "comment": {
+ "shortText": "Only relevant for text and tsvector columns. Match only rows where\n`column` matches the query string in `query`."
+ },
+ "parameters": [
{
- "fileName": "src/types.ts",
- "line": 9,
- "character": 2
+ "id": 273,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The text or tsvector column to filter on"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 274,
+ "name": "query",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The query text to match with"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 275,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 276,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 277,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The text search configuration to use"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 339,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 278,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Change how the `query` text is interpreted\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 339,
+ "character": 33
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "plain"
+ },
+ {
+ "type": "literal",
+ "value": "phrase"
+ },
+ {
+ "type": "literal",
+ "value": "websearch"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [277, 278]
+ }
+ ]
+ }
+ }
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [542, 540, 541, 539]
- }
- ],
- "sources": [
- {
- "fileName": "src/types.ts",
- "line": 8,
- "character": 29
- }
- ]
- }
- }
- },
- {
- "id": 535,
- "name": "PostgrestMaybeSingleResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/types.ts",
- "line": 45,
- "character": 12
- }
- ],
- "typeParameter": [
- {
- "id": 536,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "type": {
- "type": "reference",
- "id": 533,
- "typeArguments": [
- {
- "type": "union",
- "types": [
- {
"type": "reference",
- "id": 536,
- "name": "T"
- },
- {
- "type": "literal",
- "value": null
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
}
- ]
- }
- ],
- "name": "PostgrestSingleResponse"
- }
- },
- {
- "id": 531,
- "name": "PostgrestResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/types.ts",
- "line": 35,
- "character": 12
- }
- ],
- "typeParameter": [
- {
- "id": 532,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "type": {
- "type": "union",
- "types": [null, null]
- }
- },
- {
- "id": 533,
- "name": "PostgrestSingleResponse",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "src/types.ts",
- "line": 42,
- "character": 12
- }
- ],
- "typeParameter": [
- {
- "id": 534,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {}
- }
- ],
- "type": {
- "type": "union",
- "types": [null, null]
- }
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [498, 1, 112, 49, 401]
- },
- {
- "title": "Type Aliases",
- "kind": 4194304,
- "children": [537, 535, 531, 533]
- }
- ],
- "sources": [
- {
- "fileName": "src/index.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 0,
- "name": "@supabase/realtime-js",
- "kind": 1,
- "kindString": "Project",
- "flags": {},
- "originalName": "",
- "children": [
- {
- "id": 500,
- "name": "REALTIME_LISTEN_TYPES",
- "kind": 8,
- "kindString": "Enumeration",
- "flags": {},
- "children": [
- {
- "id": 501,
- "name": "BROADCAST",
- "kind": 16,
- "kindString": "Enumeration Member",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 77,
- "character": 2
}
- ],
- "type": {
- "type": "literal",
- "value": "broadcast"
- },
- "defaultValue": "\"broadcast\""
+ ]
},
{
- "id": 503,
- "name": "POSTGRES_CHANGES",
- "kind": 16,
- "kindString": "Enumeration Member",
+ "id": 386,
+ "name": "then",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 79,
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 48,
"character": 2
}
],
- "type": {
- "type": "literal",
- "value": "postgres_changes"
- },
- "defaultValue": "\"postgres_changes\""
- },
- {
- "id": 502,
- "name": "PRESENCE",
- "kind": 16,
- "kindString": "Enumeration Member",
- "flags": {},
- "sources": [
+ "signatures": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 78,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "presence"
- },
- "defaultValue": "\"presence\""
- }
- ],
- "groups": [
- {
- "title": "Enumeration Members",
- "kind": 16,
- "children": [501, 503, 502]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 76,
- "character": 12
- }
- ]
- },
- {
- "id": 504,
- "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT",
- "kind": 8,
- "kindString": "Enumeration",
- "flags": {},
- "children": [
- {
- "id": 505,
- "name": "ALL",
- "kind": 16,
- "kindString": "Enumeration Member",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 70,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "*"
- },
- "defaultValue": "\"*\""
- },
- {
- "id": 508,
- "name": "DELETE",
- "kind": 16,
- "kindString": "Enumeration Member",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 73,
- "character": 2
+ "id": 387,
+ "name": "then",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 388,
+ "name": "TResult1",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "id": 389,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 390,
+ "name": "onfulfilled",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 391,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 392,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 393,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 394,
+ "name": "onrejected",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 395,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 396,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 397,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 484,
+ "name": "default.then"
+ }
}
],
- "type": {
- "type": "literal",
- "value": "DELETE"
- },
- "defaultValue": "\"DELETE\""
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 483,
+ "name": "default.then"
+ }
},
{
- "id": 506,
- "name": "INSERT",
- "kind": 16,
- "kindString": "Enumeration Member",
+ "id": 384,
+ "name": "throwOnError",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 71,
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 43,
"character": 2
}
],
- "type": {
- "type": "literal",
- "value": "INSERT"
- },
- "defaultValue": "\"INSERT\""
- },
- {
- "id": 507,
- "name": "UPDATE",
- "kind": 16,
- "kindString": "Enumeration Member",
- "flags": {},
- "sources": [
+ "signatures": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 72,
- "character": 2
+ "id": 385,
+ "name": "throwOnError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 482,
+ "name": "default.throwOnError"
+ }
}
],
- "type": {
- "type": "literal",
- "value": "UPDATE"
- },
- "defaultValue": "\"UPDATE\""
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 481,
+ "name": "default.throwOnError"
+ }
}
],
"groups": [
{
- "title": "Enumeration Members",
- "kind": 16,
- "children": [505, 508, 506, 507]
+ "title": "Constructors",
+ "kind": 512,
+ "children": [113]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [383, 375, 378, 373, 371, 374, 376, 377, 372]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 345, 207, 199, 352, 119, 356, 301, 354, 135, 143, 175, 191, 183, 167, 332, 151, 159,
+ 279, 350, 127, 285, 295, 316, 255, 338, 247, 215, 223, 231, 239, 368, 366, 311, 348,
+ 263, 386, 384
+ ]
}
],
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 69,
- "character": 12
+ "fileName": "src/PostgrestFilterBuilder.ts",
+ "line": 28,
+ "character": 21
}
- ]
- },
- {
- "id": 509,
- "name": "REALTIME_PRESENCE_LISTEN_EVENTS",
- "kind": 8,
- "kindString": "Enumeration",
- "flags": {},
- "children": [
+ ],
+ "typeParameter": [
{
- "id": 511,
- "name": "JOIN",
- "kind": 16,
- "kindString": "Enumeration Member",
+ "id": 398,
+ "name": "Schema",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimePresence.ts",
- "line": 36,
- "character": 2
- }
- ],
"type": {
- "type": "literal",
- "value": "join"
- },
- "defaultValue": "\"join\""
+ "type": "reference",
+ "name": "GenericSchema"
+ }
},
{
- "id": 512,
- "name": "LEAVE",
- "kind": 16,
- "kindString": "Enumeration Member",
+ "id": 399,
+ "name": "Row",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimePresence.ts",
- "line": 37,
- "character": 2
- }
- ],
"type": {
- "type": "literal",
- "value": "leave"
- },
- "defaultValue": "\"leave\""
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
},
{
- "id": 510,
- "name": "SYNC",
- "kind": 16,
- "kindString": "Enumeration Member",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimePresence.ts",
- "line": 35,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "sync"
- },
- "defaultValue": "\"sync\""
- }
- ],
- "groups": [
- {
- "title": "Enumeration Members",
- "kind": 16,
- "children": [511, 512, 510]
+ "id": 400,
+ "name": "Result",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
}
],
- "sources": [
+ "extendedTypes": [
{
- "fileName": "RealtimePresence.ts",
- "line": 34,
- "character": 12
+ "type": "reference",
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 115,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 116,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 117,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
}
]
},
{
- "id": 513,
- "name": "REALTIME_SUBSCRIBE_STATES",
- "kind": 8,
- "kindString": "Enumeration",
+ "id": 49,
+ "name": "PostgrestQueryBuilder",
+ "kind": 128,
+ "kindString": "Class",
"flags": {},
"children": [
{
- "id": 517,
- "name": "CHANNEL_ERROR",
- "kind": 16,
- "kindString": "Enumeration Member",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 86,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "CHANNEL_ERROR"
- },
- "defaultValue": "\"CHANNEL_ERROR\""
- },
- {
- "id": 516,
- "name": "CLOSED",
- "kind": 16,
- "kindString": "Enumeration Member",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 85,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "CLOSED"
- },
- "defaultValue": "\"CLOSED\""
- },
- {
- "id": 514,
- "name": "SUBSCRIBED",
- "kind": 16,
- "kindString": "Enumeration Member",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 83,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "SUBSCRIBED"
- },
- "defaultValue": "\"SUBSCRIBED\""
- },
- {
- "id": 515,
- "name": "TIMED_OUT",
- "kind": 16,
- "kindString": "Enumeration Member",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 84,
- "character": 2
- }
- ],
- "type": {
- "type": "literal",
- "value": "TIMED_OUT"
- },
- "defaultValue": "\"TIMED_OUT\""
- }
- ],
- "groups": [
- {
- "title": "Enumeration Members",
- "kind": 16,
- "children": [517, 516, 514, 515]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 82,
- "character": 12
- }
- ]
- },
- {
- "id": 55,
- "name": "RealtimeChannel",
- "kind": 128,
- "kindString": "Class",
- "flags": {},
- "comment": {
- "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
- },
- "children": [
- {
- "id": 66,
+ "id": 50,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 111,
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 16,
"character": 2
}
],
"signatures": [
{
- "id": 67,
- "name": "new RealtimeChannel",
+ "id": 51,
+ "name": "new PostgrestQueryBuilder",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
+ "typeParameter": [
+ {
+ "id": 52,
+ "name": "Schema",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "name": "GenericSchema"
+ }
+ },
+ {
+ "id": 53,
+ "name": "Relation",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "GenericTable"
+ },
+ {
+ "type": "reference",
+ "name": "GenericView"
+ }
+ ]
+ }
+ }
+ ],
"parameters": [
{
- "id": 68,
- "name": "topic",
+ "id": 54,
+ "name": "url",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
}
},
{
- "id": 69,
- "name": "params",
+ "id": 55,
+ "name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
- "type": "reference",
- "id": 294,
- "name": "RealtimeChannelOptions",
- "dereferenced": {
- "id": 294,
- "name": "RealtimeChannelOptions",
- "kind": 4194304,
- "kindString": "Type alias",
+ "type": "reflection",
+ "declaration": {
+ "id": 56,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
+ "children": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 295,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ "id": 59,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 296,
- "name": "config",
- "kind": 1024,
- "kindString": "Property",
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 25,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 60,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
+ "signatures": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 297,
+ "id": 61,
"name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "children": [
+ "parameters": [
{
- "id": 298,
- "name": "broadcast",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 4
- }
- ],
+ "id": 62,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 299,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 301,
- "name": "ack",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 34
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 300,
- "name": "self",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 18
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [301, 300]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 16
- }
- ]
- }
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ ]
}
},
{
- "id": 302,
- "name": "presence",
- "kind": 1024,
- "kindString": "Property",
+ "id": 63,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {
"isOptional": true
},
- "comment": {
- "shortText": "key option is used to track presence payload across clients"
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 4
- }
- ],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 303,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 304,
- "name": "key",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 17
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [304]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 15
- }
- ]
- }
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
}
}
],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [298, 302]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 10
- }
- ]
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- }
+ ]
}
- ],
- "groups": [
+ }
+ },
+ {
+ "id": 57,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [296]
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 23,
+ "character": 6
}
],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 58,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 37
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 24,
+ "character": 6
}
- ]
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
- }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [59, 57, 58]
+ }
+ ]
}
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 49,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 52,
+ "name": "Schema"
},
- "defaultValue": "..."
- },
- {
- "id": 70,
- "name": "socket",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
+ {
"type": "reference",
- "id": 306,
- "name": "default",
- "dereferenced": {
- "id": 306,
- "name": "RealtimeClient",
- "kind": 128,
- "kindString": "Class",
+ "id": 53,
+ "name": "Relation"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 68,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 69,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 70,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 71,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "id": 72,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 65,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 11,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 66,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 12,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 67,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 13,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "AbortSignal",
+ "package": "typescript",
+ "name": "AbortSignal"
+ }
+ },
+ {
+ "id": 64,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 10,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ },
+ {
+ "id": 105,
+ "name": "delete",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 296,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 106,
+ "name": "delete",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 107,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "Named parameters\n"
+ },
+ "originalName": "__namedParameters",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 108,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 307,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {},
+ "id": 109,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 88,
- "character": 2
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 299,
+ "character": 4
}
],
- "signatures": [
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [109]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 52,
+ "name": "Schema"
+ },
+ {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "Row"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 53,
+ "name": "Relation"
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 82,
+ "name": "insert",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 117,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 83,
+ "name": "insert",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "typeParameter": [
+ {
+ "id": 84,
+ "name": "Row",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 85,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The values to insert. Pass an object to insert a single row\nor an array to insert multiple rows.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 84,
+ "name": "Row"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 84,
+ "name": "Row"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 86,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "Named parameters\n"
+ },
+ "originalName": "__namedParameters",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 87,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 88,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
{
- "id": 308,
- "name": "new RealtimeClient",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {},
- "comment": {
- "shortText": "Initializes the Socket."
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 122,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "exact"
},
- "parameters": [
- {
- "id": 309,
- "name": "endPoint",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 310,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 418,
- "name": "RealtimeClientOptions",
- "dereferenced": {
- "id": 418,
- "name": "RealtimeClientOptions",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 16,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 419,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 425,
- "name": "decode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 22,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 424,
- "name": "encode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 21,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 427,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 24,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 428,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 24,
- "character": 12
- }
- ],
- "indexSignature": {
- "id": 429,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 430,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- }
- }
- },
- {
- "id": 422,
- "name": "heartbeatIntervalMs",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 19,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 423,
- "name": "logger",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 20,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 431,
- "name": "params",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 25,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 432,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 25,
- "character": 11
- }
- ],
- "indexSignature": {
- "id": 433,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 434,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- },
- {
- "id": 426,
- "name": "reconnectAfterMs",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 23,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 421,
- "name": "timeout",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 18,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 420,
- "name": "transport",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 17,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "WebSocket",
- "package": "typescript",
- "name": "WebSocket"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 425, 424, 427, 422, 423, 431, 426, 421, 420
- ]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 16,
- "character": 36
- }
- ]
- }
- }
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 306,
- "name": "default"
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
}
- }
- ]
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [88]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 52,
+ "name": "Schema"
+ },
+ {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "Row"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 53,
+ "name": "Relation"
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 73,
+ "name": "select",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 55,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 74,
+ "name": "select",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Perform a SELECT query on the table or view."
+ },
+ "typeParameter": [
+ {
+ "id": 75,
+ "name": "Query",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "default": {
+ "type": "literal",
+ "value": "*"
+ }
+ },
+ {
+ "id": 76,
+ "name": "Result",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 52,
+ "name": "Schema"
+ },
+ {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "Row"
},
+ "objectType": {
+ "type": "reference",
+ "id": 53,
+ "name": "Relation"
+ }
+ },
+ {
+ "type": "reference",
+ "id": 75,
+ "name": "Query"
+ }
+ ],
+ "name": "GetResult"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 77,
+ "name": "columns",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The columns to retrieve, separated by commas\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 75,
+ "name": "Query",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 78,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "Named parameters\n"
+ },
+ "originalName": "__namedParameters",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 79,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "id": 311,
- "name": "accessToken",
+ "id": 81,
+ "name": "count",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "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"
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 41,
- "character": 2
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 62,
+ "character": 6
}
],
"type": {
@@ -39476,50 +39799,188 @@
"types": [
{
"type": "literal",
- "value": null
+ "value": "exact"
},
{
- "type": "intrinsic",
- "name": "string"
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
}
]
- },
- "defaultValue": "null"
+ }
},
{
- "id": 312,
- "name": "channels",
+ "id": 80,
+ "name": "head",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "When set to `true`, `data` will not be returned.\nUseful if you only need the count.\n"
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 42,
- "character": 2
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 61,
+ "character": 6
}
],
"type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
- },
- "defaultValue": "[]"
- },
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
{
- "id": 333,
- "name": "conn",
+ "title": "Properties",
"kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 57,
- "character": 2
+ "children": [81, 80]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 52,
+ "name": "Schema"
+ },
+ {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "Row"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 53,
+ "name": "Relation"
+ }
+ },
+ {
+ "type": "reference",
+ "id": 76,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 98,
+ "name": "update",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 247,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 99,
+ "name": "update",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "typeParameter": [
+ {
+ "id": 100,
+ "name": "Row",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 101,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The values to update with\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 100,
+ "name": "Row",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 102,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "Named parameters\n"
+ },
+ "originalName": "__namedParameters",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 103,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 104,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 252,
+ "character": 6
}
],
"type": {
@@ -39527,1507 +39988,1134 @@
"types": [
{
"type": "literal",
- "value": null
+ "value": "exact"
},
{
- "type": "reference",
- "qualifiedName": "WebSocket",
- "package": "typescript",
- "name": "WebSocket"
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
}
]
- },
- "defaultValue": "null"
- },
- {
- "id": 331,
- "name": "decode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 55,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 330,
- "name": "encode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 54,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
}
- },
- {
- "id": 313,
- "name": "endPoint",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 43,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "''"
- },
+ }
+ ],
+ "groups": [
{
- "id": 342,
- "name": "eventsPerSecondLimitMs",
+ "title": "Properties",
"kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 71,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "100"
- },
+ "children": [104]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 52,
+ "name": "Schema"
+ },
+ {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "Row"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 53,
+ "name": "Relation"
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 89,
+ "name": "upsert",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 189,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 90,
+ "name": "upsert",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "typeParameter": [
+ {
+ "id": 91,
+ "name": "Row",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 92,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The values to upsert with. Pass an object to upsert a\nsingle row or an array to upsert multiple rows.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 91,
+ "name": "Row"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 91,
+ "name": "Row"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 93,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "Named parameters\n"
+ },
+ "originalName": "__namedParameters",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 94,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "id": 314,
- "name": "headers",
+ "id": 97,
+ "name": "count",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 44,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 315,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 316,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 317,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- }
- },
- "defaultValue": "DEFAULT_HEADERS"
- },
- {
- "id": 324,
- "name": "heartbeatIntervalMs",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 48,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
+ "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"
},
- "defaultValue": "30000"
- },
- {
- "id": 325,
- "name": "heartbeatTimer",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 49,
- "character": 2
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 198,
+ "character": 6
}
],
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "undefined"
+ "type": "literal",
+ "value": "exact"
},
{
- "type": "reference",
- "qualifiedName": "global.NodeJS.Timer",
- "package": "@types/node",
- "name": "Timer"
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
}
]
- },
- "defaultValue": "undefined"
+ }
},
{
- "id": 343,
- "name": "inThrottle",
+ "id": 96,
+ "name": "ignoreDuplicates",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, duplicate rows are ignored. If\n`false`, duplicate rows are merged with existing rows.\n"
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 72,
- "character": 2
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 197,
+ "character": 6
}
],
"type": {
"type": "intrinsic",
"name": "boolean"
- },
- "defaultValue": "false"
+ }
},
{
- "id": 329,
- "name": "logger",
+ "id": 95,
+ "name": "onConflict",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "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"
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 53,
- "character": 2
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 196,
+ "character": 6
}
],
"type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- },
- "defaultValue": "noop"
- },
- {
- "id": 318,
- "name": "params",
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [97, 96, 95]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 52,
+ "name": "Schema"
+ },
+ {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "Row"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 53,
+ "name": "Relation"
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [50]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [68, 65, 66, 67, 64]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [105, 82, 73, 98, 89]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/PostgrestQueryBuilder.ts",
+ "line": 6,
+ "character": 21
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 110,
+ "name": "Schema",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "name": "GenericSchema"
+ }
+ },
+ {
+ "id": 111,
+ "name": "Relation",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "GenericTable"
+ },
+ {
+ "type": "reference",
+ "name": "GenericView"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 401,
+ "name": "PostgrestTransformBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 402,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 403,
+ "name": "new PostgrestTransformBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 404,
+ "name": "Schema",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "name": "GenericSchema"
+ }
+ },
+ {
+ "id": 405,
+ "name": "Row",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 406,
+ "name": "Result",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "parameters": [
+ {
+ "id": 407,
+ "name": "builder",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 498,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
+ "name": "default",
+ "dereferenced": {
+ "id": 498,
+ "name": "PostgrestBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isAbstract": true
+ },
+ "children": [
+ {
+ "id": 499,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 18,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 500,
+ "name": "new PostgrestBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 501,
+ "name": "Result",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "parameters": [
+ {
+ "id": 502,
+ "name": "builder",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 498,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "default",
+ "dereferenced": "[Circular ~.children.4.children.0.signatures.0.parameters.0.type.dereferenced]"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 498,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 515,
+ "name": "allowEmpty",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 507,
+ "name": "body",
"kind": 1024,
"kindString": "Property",
"flags": {
+ "isProtected": true,
"isOptional": true
},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 45,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 12,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ },
+ {
+ "id": 510,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 15,
+ "character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 319,
+ "id": 511,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
- "indexSignature": {
- "id": 320,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 321,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "signatures": [
+ {
+ "id": 512,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 513,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "id": 514,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
+ }
}
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
}
- }
+ ]
}
- },
- "defaultValue": "{}"
+ }
},
{
- "id": 326,
- "name": "pendingHeartbeatRef",
+ "id": 505,
+ "name": "headers",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 50,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 10,
+ "character": 12
}
],
"type": {
- "type": "union",
- "types": [
+ "type": "reference",
+ "typeArguments": [
{
- "type": "literal",
- "value": null
+ "type": "intrinsic",
+ "name": "string"
},
{
"type": "intrinsic",
"name": "string"
}
- ]
- },
- "defaultValue": "null"
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
},
{
- "id": 332,
- "name": "reconnectAfterMs",
+ "id": 503,
+ "name": "method",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 56,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 8,
+ "character": 12
}
],
"type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "GET"
+ },
+ {
+ "type": "literal",
+ "value": "HEAD"
+ },
+ {
+ "type": "literal",
+ "value": "POST"
+ },
+ {
+ "type": "literal",
+ "value": "PATCH"
+ },
+ {
+ "type": "literal",
+ "value": "DELETE"
+ }
+ ]
}
},
{
- "id": 328,
- "name": "reconnectTimer",
+ "id": 506,
+ "name": "schema",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 52,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 11,
+ "character": 12
}
],
"type": {
- "type": "reference",
- "name": "default"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 327,
- "name": "ref",
+ "id": 508,
+ "name": "shouldThrowOnError",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 51,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 13,
+ "character": 12
}
],
"type": {
"type": "intrinsic",
- "name": "number"
+ "name": "boolean"
},
- "defaultValue": "0"
+ "defaultValue": "false"
},
{
- "id": 334,
- "name": "sendBuffer",
+ "id": 509,
+ "name": "signal",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 58,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 14,
+ "character": 12
}
],
"type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- "defaultValue": "[]"
+ "type": "reference",
+ "qualifiedName": "AbortSignal",
+ "package": "typescript",
+ "name": "AbortSignal"
+ }
},
{
- "id": 335,
- "name": "serializer",
+ "id": 504,
+ "name": "url",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true
+ },
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 59,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 9,
+ "character": 12
}
],
"type": {
"type": "reference",
- "name": "default"
- },
- "defaultValue": "..."
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
},
{
- "id": 336,
- "name": "stateChangeCallbacks",
- "kind": 1024,
- "kindString": "Property",
+ "id": 518,
+ "name": "then",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 60,
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 48,
"character": 2
}
],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 337,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "signatures": [
+ {
+ "id": 519,
+ "name": "then",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "children": [
+ "typeParameter": [
{
- "id": 339,
- "name": "close",
- "kind": 1024,
- "kindString": "Property",
+ "id": 520,
+ "name": "TResult1",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 62,
- "character": 4
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
+ "default": {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
}
},
{
- "id": 340,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
+ "id": 521,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 63,
- "character": 4
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
}
- },
+ }
+ ],
+ "parameters": [
{
- "id": 341,
- "name": "message",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 64,
- "character": 4
- }
- ],
+ "id": 522,
+ "name": "onfulfilled",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
"type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 523,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 524,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 525,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
}
},
{
- "id": 338,
- "name": "open",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 61,
- "character": 4
- }
- ],
+ "id": 526,
+ "name": "onrejected",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
"type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 527,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 528,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 529,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
}
}
],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [339, 340, 341, 338]
- }
- ]
- }
- },
- "defaultValue": "..."
- },
- {
- "id": 322,
- "name": "timeout",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 46,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "DEFAULT_TIMEOUT"
- },
- {
- "id": 323,
- "name": "transport",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 47,
- "character": 2
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ },
+ "implementationOf": {
+ "type": "reference",
+ "name": "PromiseLike.then"
+ }
}
],
- "type": {
- "type": "intrinsic",
- "name": "any"
- },
- "defaultValue": "w3cwebsocket"
+ "implementationOf": {
+ "type": "reference",
+ "name": "PromiseLike.then"
+ }
},
{
- "id": 366,
- "name": "channel",
+ "id": 516,
+ "name": "throwOnError",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 218,
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 43,
"character": 2
}
],
"signatures": [
{
- "id": 367,
- "name": "channel",
+ "id": 517,
+ "name": "throwOnError",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
- "parameters": [
- {
- "id": 368,
- "name": "topic",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "id": 498,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 501,
+ "name": "Result"
}
- },
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [499]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [515, 507, 510, 505, 503, 506, 508, 509, 504]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [518, 516]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 5,
+ "character": 30
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 530,
+ "name": "Result",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 401,
+ "name": "PostgrestTransformBuilder"
+ }
+ ],
+ "implementedTypes": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
{
- "id": 369,
- "name": "params",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 294,
- "name": "RealtimeChannelOptions",
- "dereferenced": {
- "id": 294,
- "name": "RealtimeChannelOptions",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 295,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 296,
- "name": "config",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 297,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 298,
- "name": "broadcast",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 4
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 299,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 301,
- "name": "ack",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 34
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 300,
- "name": "self",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 18
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [301, 300]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 16
- }
- ]
- }
- }
- },
- {
- "id": 302,
- "name": "presence",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "key option is used to track presence payload across clients"
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 4
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 303,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 304,
- "name": "key",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 17
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [304]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 15
- }
- ]
- }
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [298, 302]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 10
- }
- ]
- }
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [296]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 37
- }
- ]
- }
- }
- }
- },
- "defaultValue": "..."
- }
- ],
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 344,
- "name": "connect",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 125,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 345,
- "name": "connect",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Connects the socket, unless already connected."
- },
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- },
- {
- "id": 362,
- "name": "connectionState",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 198,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 363,
- "name": "connectionState",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Returns the current state of the socket."
- },
- "type": {
- "type": "reference",
- "name": "CONNECTION_STATE"
- }
- }
- ]
- },
- {
- "id": 346,
- "name": "disconnect",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 147,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 347,
- "name": "disconnect",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Disconnects the socket."
- },
- "parameters": [
- {
- "id": 348,
- "name": "code",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A numeric status code to send on disconnect."
- },
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 349,
- "name": "reason",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom reason for the disconnect.\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- },
- {
- "id": 350,
- "name": "getChannels",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 162,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 351,
- "name": "getChannels",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "type": {
- "type": "array",
- "elementType": {
"type": "reference",
- "id": 55,
- "name": "default"
- }
- }
- }
- ]
- },
- {
- "id": 364,
- "name": "isConnected",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 214,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 365,
- "name": "isConnected",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Returns `true` is the connection is open."
- },
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ]
- },
- {
- "id": 357,
- "name": "log",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 191,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 358,
- "name": "log",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Logs the message.",
- "text": "For customized logging, `this.logger` can be overridden.\n"
- },
- "parameters": [
- {
- "id": 359,
- "name": "kind",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 360,
- "name": "msg",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 361,
- "name": "data",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
+ "id": 501,
+ "name": "Result"
}
],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- },
- {
- "id": 370,
- "name": "push",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 236,
- "character": 2
+ "name": "PostgrestResponse"
}
],
- "signatures": [
- {
- "id": 371,
- "name": "push",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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"
- },
- "parameters": [
- {
- "id": 372,
- "name": "data",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 435,
- "name": "RealtimeMessage",
- "dereferenced": {
- "id": 435,
- "name": "RealtimeMessage",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 28,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 436,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 438,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 30,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 441,
- "name": "join_ref",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 33,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 439,
- "name": "payload",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 31,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- },
- {
- "id": 440,
- "name": "ref",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 32,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 437,
- "name": "topic",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 29,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [438, 441, 439, 440, 437]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 28,
- "character": 30
- }
- ]
- }
- }
- }
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "void"
- },
- {
- "type": "literal",
- "value": "rate limited"
- }
- ]
- }
- }
- ]
- },
- {
- "id": 355,
- "name": "removeAllChannels",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 177,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 356,
- "name": "removeAllChannels",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 499,
- "name": "RealtimeRemoveChannelResponse"
- }
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 352,
- "name": "removeChannel",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 166,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 353,
- "name": "removeChannel",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 354,
- "name": "channel",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default",
- "dereferenced": {
- "id": 55,
- "name": "RealtimeChannel",
- "kind": 128,
- "kindString": "Class",
- "flags": {},
- "comment": {
- "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
- },
- "children": "[Circular ~.children.4.children]",
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [66]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 71, 86, 85, 91, 89, 88, 87, 92, 84, 83, 90
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [119, 101, 204, 93, 103, 221, 113, 215]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 94,
- "character": 21
- }
- ]
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 499,
- "name": "RealtimeRemoveChannelResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 373,
- "name": "setAuth",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 263,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 374,
- "name": "setAuth",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
- },
- "parameters": [
- {
- "id": 375,
- "name": "token",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "A JWT string.\n"
- },
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [307]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 311, 312, 333, 331, 330, 313, 342, 314, 324, 325, 343, 329, 318,
- 326, 332, 328, 327, 334, 335, 336, 322, 323
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [366, 344, 362, 346, 350, 364, 357, 370, 355, 352, 373]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 40,
- "character": 21
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
}
]
}
@@ -41036,624 +41124,674 @@
],
"type": {
"type": "reference",
- "id": 55,
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
"name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 500,
+ "name": "default.constructor"
}
}
- ]
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 499,
+ "name": "default.constructor"
+ }
},
{
- "id": 71,
- "name": "bindings",
+ "id": 480,
+ "name": "allowEmpty",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true
+ },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 95,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 515,
+ "name": "default.allowEmpty"
+ }
+ },
+ {
+ "id": 472,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 12,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 507,
+ "name": "default.body"
+ }
+ },
+ {
+ "id": 475,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 15,
+ "character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 72,
+ "id": 476,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
- "indexSignature": {
- "id": 73,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 74,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reflection",
- "declaration": {
- "id": 75,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "signatures": [
+ {
+ "id": 477,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 478,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "children": [
- {
- "id": 81,
- "name": "callback",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 99,
- "character": 6
- }
- ],
- "type": {
+ "type": {
+ "type": "union",
+ "types": [
+ {
"type": "reference",
- "qualifiedName": "Function",
+ "qualifiedName": "RequestInfo",
"package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 77,
- "name": "filter",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 98,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 78,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 98,
- "character": 14
- }
- ],
- "indexSignature": {
- "id": 79,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 80,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- },
- {
- "id": 82,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
+ "name": "RequestInfo"
},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 100,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 76,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 97,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
}
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [81, 77, 82, 76]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 96,
- "character": 19
- }
- ]
+ ]
+ }
+ },
+ {
+ "id": 479,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
+ }
}
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
}
- }
+ ]
}
},
- "defaultValue": "{}"
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 510,
+ "name": "default.fetch"
+ }
},
{
- "id": 86,
- "name": "joinPush",
+ "id": 470,
+ "name": "headers",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true
+ },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 106,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 10,
+ "character": 12
}
],
"type": {
"type": "reference",
- "name": "default"
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 505,
+ "name": "default.headers"
}
},
{
- "id": 85,
- "name": "joinedOnce",
+ "id": 468,
+ "name": "method",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true
+ },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 105,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 8,
+ "character": 12
}
],
"type": {
- "type": "intrinsic",
- "name": "boolean"
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "GET"
+ },
+ {
+ "type": "literal",
+ "value": "HEAD"
+ },
+ {
+ "type": "literal",
+ "value": "POST"
+ },
+ {
+ "type": "literal",
+ "value": "PATCH"
+ },
+ {
+ "type": "literal",
+ "value": "DELETE"
+ }
+ ]
},
- "defaultValue": "false"
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 503,
+ "name": "default.method"
+ }
},
{
- "id": 91,
- "name": "params",
+ "id": 471,
+ "name": "schema",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isPublic": true
- },
- "type": {
- "type": "reference",
- "id": 294,
- "name": "RealtimeChannelOptions"
+ "isProtected": true,
+ "isOptional": true
},
- "defaultValue": "..."
- },
- {
- "id": 89,
- "name": "presence",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 109,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 11,
+ "character": 12
}
],
"type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
"type": "reference",
- "id": 1,
- "name": "default"
+ "id": 506,
+ "name": "default.schema"
}
},
{
- "id": 88,
- "name": "pushBuffer",
+ "id": 473,
+ "name": "shouldThrowOnError",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true
+ },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 108,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 13,
+ "character": 12
}
],
"type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "name": "default"
- }
+ "type": "intrinsic",
+ "name": "boolean"
},
- "defaultValue": "[]"
+ "defaultValue": "false",
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 508,
+ "name": "default.shouldThrowOnError"
+ }
},
{
- "id": 87,
- "name": "rejoinTimer",
+ "id": 474,
+ "name": "signal",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 107,
- "character": 2
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 14,
+ "character": 12
}
],
"type": {
"type": "reference",
- "name": "default"
+ "qualifiedName": "AbortSignal",
+ "package": "typescript",
+ "name": "AbortSignal"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 509,
+ "name": "default.signal"
}
},
{
- "id": 92,
- "name": "socket",
+ "id": 469,
+ "name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isPublic": true
+ "isProtected": true
},
+ "sources": [
+ {
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 9,
+ "character": 12
+ }
+ ],
"type": {
"type": "reference",
- "id": 306,
- "name": "default"
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 504,
+ "name": "default.url"
}
},
{
- "id": 84,
- "name": "state",
- "kind": 1024,
- "kindString": "Property",
+ "id": 442,
+ "name": "abortSignal",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 104,
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 130,
"character": 2
}
],
- "type": {
- "type": "reference",
- "name": "CHANNEL_STATES"
- },
- "defaultValue": "CHANNEL_STATES.closed"
+ "signatures": [
+ {
+ "id": 443,
+ "name": "abortSignal",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Set the AbortSignal for the fetch request."
+ },
+ "parameters": [
+ {
+ "id": 444,
+ "name": "signal",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The AbortSignal to use for the fetch request\n"
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "AbortSignal",
+ "package": "typescript",
+ "name": "AbortSignal"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
},
{
- "id": 83,
- "name": "timeout",
- "kind": 1024,
- "kindString": "Property",
+ "id": 449,
+ "name": "csv",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 103,
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 161,
"character": 2
}
],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 90,
- "name": "topic",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isPublic": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "signatures": [
+ {
+ "id": 450,
+ "name": "csv",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Return `data` as a string in CSV format."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 533,
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ }
+ ]
},
{
- "id": 119,
- "name": "on",
+ "id": 453,
+ "name": "explain",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 315,
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 195,
"character": 2
}
],
"signatures": [
{
- "id": 120,
- "name": "on",
+ "id": 454,
+ "name": "explain",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"comment": {
- "shortText": "Listen to messages."
+ "shortText": "Return `data` as the EXPLAIN plan for the query."
},
"parameters": [
{
- "id": 121,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "literal",
- "value": "broadcast"
- }
- },
- {
- "id": 122,
- "name": "filter",
+ "id": 455,
+ "name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "Named parameters\n"
+ },
+ "originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
- "id": 123,
+ "id": 456,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 124,
- "name": "event",
+ "id": 457,
+ "name": "analyze",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, the query will be executed and the\nactual run time will be returned\n"
+ },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 317,
- "character": 14
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 203,
+ "character": 4
}
],
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "boolean"
}
- }
- ],
- "groups": [
+ },
{
- "title": "Properties",
+ "id": 460,
+ "name": "buffers",
"kind": 1024,
- "children": [124]
- }
- ]
- }
- }
- },
- {
- "id": 125,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 126,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, include information on buffer usage\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 206,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
{
- "id": 127,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
+ "id": 462,
+ "name": "format",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The format of the output, can be `\"text\"` (default)\nor `\"json\"`\n"
+ },
+ "sources": [
{
- "id": 128,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 129,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 131,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 320,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 130,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 319,
- "character": 6
- }
- ],
- "type": {
- "type": "literal",
- "value": "broadcast"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [131, 130]
- }
- ],
- "indexSignature": {
- "id": 132,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 133,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 208,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "text"
+ },
+ {
+ "type": "literal",
+ "value": "json"
}
+ ]
+ }
+ },
+ {
+ "id": 459,
+ "name": "settings",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, include information on configuration\nparameters that affect query planning\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 205,
+ "character": 4
}
],
"type": {
"type": "intrinsic",
- "name": "void"
+ "name": "boolean"
}
- }
- ]
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
- },
- {
- "id": 134,
- "name": "on",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 135,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "literal",
- "value": "presence"
- }
- },
- {
- "id": 136,
- "name": "filter",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 137,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
+ },
{
- "id": 138,
- "name": "event",
+ "id": 458,
+ "name": "verbose",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, the query identifier will be returned\nand `data` will include the output columns of the query\n"
+ },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 326,
- "character": 14
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 204,
+ "character": 4
}
],
"type": {
- "type": "literal",
- "value": "sync"
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 461,
+ "name": "wal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, include information on WAL record generation\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 207,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
}
}
],
@@ -41661,98 +41799,207 @@
{
"title": "Properties",
"kind": 1024,
- "children": [138]
+ "children": [457, 460, 462, 459, 458, 461]
}
]
}
- }
- },
- {
- "id": 139,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 140,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 141,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "type": {
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 533,
+ "typeArguments": [
+ {
"type": "intrinsic",
- "name": "void"
+ "name": "string"
}
- }
- ]
- }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
}
- }
- ],
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 451,
+ "name": "geojson",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 169,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 452,
+ "name": "geojson",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Return `data` as an object in [GeoJSON](https://geojson.org) format."
+ },
"type": {
"type": "reference",
- "id": 55,
- "name": "default"
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 533,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 429,
+ "name": "limit",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
{
- "id": 142,
- "name": "on",
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 101,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 430,
+ "name": "limit",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
+ "comment": {
+ "shortText": "Limit the query result by `count`."
+ },
"parameters": [
{
- "id": 143,
- "name": "type",
+ "id": 431,
+ "name": "count",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "The maximum number of rows to return"
+ },
"type": {
- "type": "literal",
- "value": "presence"
+ "type": "intrinsic",
+ "name": "number"
}
},
{
- "id": 144,
- "name": "filter",
+ "id": 432,
+ "name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "Named parameters"
+ },
+ "originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
- "id": 145,
+ "id": 433,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 146,
- "name": "event",
+ "id": 434,
+ "name": "foreignTable",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n"
+ },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 331,
- "character": 14
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 101,
+ "character": 43
}
],
"type": {
- "type": "literal",
- "value": "join"
+ "type": "intrinsic",
+ "name": "string"
}
}
],
@@ -41760,112 +42007,227 @@
{
"title": "Properties",
"kind": 1024,
- "children": [146]
+ "children": [434]
}
]
}
- }
- },
- {
- "id": 147,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 148,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 149,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 150,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 483,
- "name": "RealtimePresenceJoinPayload"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
- }
+ },
+ "defaultValue": "{}"
}
],
"type": {
"type": "reference",
- "id": 55,
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
"name": "default"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 447,
+ "name": "maybeSingle",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
{
- "id": 151,
- "name": "on",
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 152,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 448,
+ "name": "maybeSingle",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 535,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestMaybeSingleResponse"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ }
+ ]
+ },
+ {
+ "id": 413,
+ "name": "order",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 49,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 414,
+ "name": "order",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
+ "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 foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n"
+ },
+ "typeParameter": [
+ {
+ "id": 415,
+ "name": "ColumnName",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
"parameters": [
{
- "id": 152,
- "name": "type",
+ "id": 416,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "The column to order by"
+ },
"type": {
- "type": "literal",
- "value": "presence"
+ "type": "reference",
+ "id": 318,
+ "name": "ColumnName",
+ "dereferenced": {}
}
},
{
- "id": 153,
- "name": "filter",
+ "id": 417,
+ "name": "options",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ },
"type": {
"type": "reflection",
"declaration": {
- "id": 154,
+ "id": 418,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 155,
- "name": "event",
+ "id": 419,
+ "name": "ascending",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, the result will be in ascending order"
+ },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 336,
- "character": 14
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 51,
+ "character": 16
}
],
"type": {
- "type": "literal",
- "value": "leave"
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 421,
+ "name": "foreignTable",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set this to order a foreign table by foreign\ncolumns\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 51,
+ "character": 59
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ },
+ {
+ "id": 420,
+ "name": "nullsFirst",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 51,
+ "character": 37
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
}
}
],
@@ -41873,52 +42235,155 @@
{
"title": "Properties",
"kind": 1024,
- "children": [155]
+ "children": [419, 421, 420]
}
]
}
}
- },
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ },
+ {
+ "id": 422,
+ "name": "order",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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 foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n"
+ },
+ "parameters": [
{
- "id": 156,
- "name": "callback",
+ "id": 423,
+ "name": "column",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "The column to order by"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 424,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Named parameters"
+ },
"type": {
"type": "reflection",
"declaration": {
- "id": 157,
+ "id": 425,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
- "signatures": [
+ "children": [
{
- "id": 158,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 426,
+ "name": "ascending",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, the result will be in ascending order"
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 55,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 428,
+ "name": "foreignTable",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "parameters": [
+ "comment": {
+ "shortText": "Set this to order a foreign table by foreign\ncolumns\n"
+ },
+ "sources": [
{
- "id": 159,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 489,
- "name": "RealtimePresenceLeavePayload"
- }
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 55,
+ "character": 59
}
],
"type": {
"type": "intrinsic",
- "name": "void"
+ "name": "string"
+ }
+ },
+ {
+ "id": 427,
+ "name": "nullsFirst",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last."
+ },
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 55,
+ "character": 37
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
}
}
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [426, 428, 427]
+ }
]
}
}
@@ -41926,2764 +42391,1458 @@
],
"type": {
"type": "reference",
- "id": 55,
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
"name": "default"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 435,
+ "name": "range",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
{
- "id": 160,
- "name": "on",
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 116,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 436,
+ "name": "range",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
- "typeParameter": [
+ "comment": {
+ "shortText": "Limit the query result by `from` and `to` inclusively."
+ },
+ "parameters": [
{
- "id": 164,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
+ "id": 437,
+ "name": "from",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "The starting index from which to limit the result"
+ },
"type": {
- "type": "reflection",
- "declaration": {
- "id": 161,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 162,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 163,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
+ "type": "intrinsic",
+ "name": "number"
}
- }
- ],
- "parameters": [
+ },
{
- "id": 165,
- "name": "type",
+ "id": 438,
+ "name": "to",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "The last index to which to limit the result"
+ },
"type": {
- "type": "literal",
- "value": "postgres_changes"
+ "type": "intrinsic",
+ "name": "number"
}
},
{
- "id": 166,
- "name": "filter",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 442,
- "typeArguments": [
- {
- "type": "literal",
- "value": "*"
- }
- ],
- "name": "RealtimePostgresChangesFilter",
- "dereferenced": {
- "id": 442,
- "name": "RealtimePostgresChangesFilter",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 12
- }
- ],
- "typeParameter": [
- {
- "id": 448,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 443,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 444,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 61,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 448,
- "name": "T"
- }
- },
- {
- "id": 447,
- "name": "filter",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 64,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 445,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 62,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 446,
- "name": "table",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 63,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [444, 447, 445, 446]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 62
- }
- ]
- }
- }
- }
- }
- },
- {
- "id": 167,
- "name": "callback",
+ "id": 439,
+ "name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "Named parameters"
+ },
+ "originalName": "__namedParameters",
"type": {
"type": "reflection",
"declaration": {
- "id": 168,
+ "id": 440,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
- "signatures": [
+ "children": [
{
- "id": 169,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
+ "id": 441,
+ "name": "foreignTable",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n"
+ },
+ "sources": [
{
- "id": 170,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 449,
- "typeArguments": [
- {
- "type": "reference",
- "id": 164,
- "name": "T"
- }
- ],
- "name": "RealtimePostgresChangesPayload"
- }
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 116,
+ "character": 54
}
],
"type": {
"type": "intrinsic",
- "name": "void"
+ "name": "string"
}
}
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [441]
+ }
]
}
- }
+ },
+ "defaultValue": "{}"
}
],
"type": {
"type": "reference",
- "id": 55,
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
"name": "default"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 465,
+ "name": "returns",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
{
- "id": 171,
- "name": "on",
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 249,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 466,
+ "name": "returns",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
+ "comment": {
+ "shortText": "Override the type of the returned `data`."
+ },
"typeParameter": [
{
- "id": 175,
- "name": "T",
+ "id": 467,
+ "name": "NewResult",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 172,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 173,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 174,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
+ "comment": {
+ "shortText": "The new result type to override with\n"
}
}
],
- "parameters": [
+ "type": {
+ "type": "reference",
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 370,
+ "name": "NewResult"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 463,
+ "name": "rollback",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 235,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 464,
+ "name": "rollback",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Rollback the query.",
+ "text": "`data` will still be returned, but the query is not committed.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 408,
+ "name": "select",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 409,
+ "name": "select",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "typeParameter": [
{
- "id": 176,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 410,
+ "name": "Query",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
"type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "default": {
"type": "literal",
- "value": "postgres_changes"
+ "value": "*"
}
},
{
- "id": 177,
- "name": "filter",
+ "id": 411,
+ "name": "NewResult",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 313,
+ "name": "Query"
+ }
+ ],
+ "name": "GetResult"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 412,
+ "name": "columns",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The columns to retrieve, separated by commas\n"
+ },
"type": {
"type": "reference",
- "id": 442,
+ "id": 313,
+ "name": "Query",
+ "dereferenced": {}
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 314,
+ "name": "NewResult"
+ }
+ ],
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 445,
+ "name": "single",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 141,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 446,
+ "name": "single",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 533,
"typeArguments": [
{
- "type": "literal",
- "value": "INSERT"
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
}
],
- "name": "RealtimePostgresChangesFilter",
- "dereferenced": {
- "id": 442,
- "name": "RealtimePostgresChangesFilter",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 12
- }
- ],
- "typeParameter": [
- {
- "id": 448,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 443,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 444,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 61,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 448,
- "name": "T"
- }
- },
- {
- "id": 447,
- "name": "filter",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 64,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 445,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 62,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 446,
- "name": "table",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 63,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [444, 447, 445, 446]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 62
- }
- ]
- }
- }
- }
- }
- },
- {
- "id": 178,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 179,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 180,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 181,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 454,
- "typeArguments": [
- {
- "type": "reference",
- "id": 175,
- "name": "T"
- }
- ],
- "name": "RealtimePostgresInsertPayload"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
+ "name": "PostgrestSingleResponse"
}
- }
- ],
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default"
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 483,
+ "name": "then",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
{
- "id": 182,
- "name": "on",
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 48,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 484,
+ "name": "then",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"typeParameter": [
{
- "id": 186,
- "name": "T",
+ "id": 485,
+ "name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 183,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 184,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 185,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
+ "default": {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
}
- }
+ ],
+ "name": "PostgrestResponse"
}
- }
- ],
- "parameters": [
+ },
{
- "id": 187,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 486,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "type": {
- "type": "literal",
- "value": "postgres_changes"
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
}
- },
+ }
+ ],
+ "parameters": [
{
- "id": 188,
- "name": "filter",
+ "id": 487,
+ "name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"type": {
- "type": "reference",
- "id": 442,
- "typeArguments": [
+ "type": "union",
+ "types": [
{
"type": "literal",
- "value": "UPDATE"
- }
- ],
- "name": "RealtimePostgresChangesFilter",
- "dereferenced": {
- "id": 442,
- "name": "RealtimePostgresChangesFilter",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 12
- }
- ],
- "typeParameter": [
- {
- "id": 448,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
+ "value": null
+ },
+ {
"type": "reflection",
"declaration": {
- "id": 443,
+ "id": 488,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
- "children": [
- {
- "id": 444,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 61,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 448,
- "name": "T"
- }
- },
- {
- "id": 447,
- "name": "filter",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 64,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
+ "signatures": [
{
- "id": 445,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
+ "id": 489,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 62,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 446,
- "name": "table",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ "parameters": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 63,
- "character": 2
+ "id": 490,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 531,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [444, 447, 445, 446]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 62
- }
]
}
}
- }
+ ]
}
},
{
- "id": 189,
- "name": "callback",
+ "id": 491,
+ "name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"type": {
- "type": "reflection",
- "declaration": {
- "id": 190,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 191,
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 492,
"name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "parameters": [
+ "signatures": [
{
- "id": 192,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 493,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
+ "parameters": [
+ {
+ "id": 494,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
"type": {
- "type": "reference",
- "id": 464,
- "typeArguments": [
+ "type": "union",
+ "types": [
{
"type": "reference",
- "id": 186,
- "name": "T"
- }
- ],
- "name": "RealtimePostgresUpdatePayload"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
- },
- {
- "id": 193,
- "name": "on",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "typeParameter": [
- {
- "id": 197,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 194,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 195,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 196,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- }
- ],
- "parameters": [
- {
- "id": 198,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "literal",
- "value": "postgres_changes"
- }
- },
- {
- "id": 199,
- "name": "filter",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 442,
- "typeArguments": [
- {
- "type": "literal",
- "value": "DELETE"
- }
- ],
- "name": "RealtimePostgresChangesFilter",
- "dereferenced": {
- "id": 442,
- "name": "RealtimePostgresChangesFilter",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 12
- }
- ],
- "typeParameter": [
- {
- "id": 448,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 443,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 444,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 61,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 448,
- "name": "T"
- }
- },
- {
- "id": 447,
- "name": "filter",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 64,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 445,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 62,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 446,
- "name": "table",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 63,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [444, 447, 445, 446]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 62
- }
- ]
- }
- }
- }
- }
- },
- {
- "id": 200,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 201,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 202,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 203,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 473,
- "typeArguments": [
+ "id": 389,
+ "name": "TResult2"
+ },
{
"type": "reference",
- "id": 197,
- "name": "T"
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
}
- ],
- "name": "RealtimePostgresDeletePayload"
+ ]
}
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
+ ]
}
- ]
- }
+ }
+ ]
}
}
],
"type": {
"type": "reference",
- "id": 55,
- "name": "default"
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 388,
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "id": 389,
+ "name": "TResult2"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 519,
+ "name": "default.then"
}
}
- ]
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 518,
+ "name": "default.then"
+ }
},
{
- "id": 101,
- "name": "presenceState",
+ "id": 481,
+ "name": "throwOnError",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 284,
+ "fileName": "src/PostgrestBuilder.ts",
+ "line": 43,
"character": 2
}
],
"signatures": [
{
- "id": 102,
- "name": "presenceState",
+ "id": 482,
+ "name": "throwOnError",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
+ "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"
+ },
"type": {
"type": "reference",
- "id": 495,
- "name": "RealtimePresenceState"
+ "id": 401,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 404,
+ "name": "Schema"
+ },
+ {
+ "type": "reference",
+ "id": 405,
+ "name": "Row"
+ },
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
+ }
+ ],
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 517,
+ "name": "default.throwOnError"
}
}
- ]
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 516,
+ "name": "default.throwOnError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [402]
},
{
- "id": 204,
- "name": "send",
+ "title": "Properties",
+ "kind": 1024,
+ "children": [480, 472, 475, 470, 468, 471, 473, 474, 469]
+ },
+ {
+ "title": "Methods",
"kind": 2048,
- "kindString": "Method",
+ "children": [442, 449, 453, 451, 429, 447, 413, 435, 465, 463, 408, 445, 483, 481]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/PostgrestTransformBuilder.ts",
+ "line": 10,
+ "character": 21
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 495,
+ "name": "Schema",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "sources": [
+ "type": {
+ "type": "reference",
+ "name": "GenericSchema"
+ }
+ },
+ {
+ "id": 496,
+ "name": "Row",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 497,
+ "name": "Result",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 498,
+ "typeArguments": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 367,
- "character": 2
+ "type": "reference",
+ "id": 406,
+ "name": "Result"
}
],
- "signatures": [
+ "name": "default"
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 112,
+ "name": "PostgrestFilterBuilder"
+ }
+ ]
+ },
+ {
+ "id": 537,
+ "name": "PostgrestError",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "shortText": "Error format",
+ "text": "{@link https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes}\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/types.ts",
+ "line": 8,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 538,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "id": 205,
- "name": "send",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 542,
+ "name": "code",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "parameters": [
+ "sources": [
{
- "id": 206,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 207,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 208,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 368,
- "character": 15
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [208]
- }
- ],
- "indexSignature": {
- "id": 209,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 210,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- },
- {
- "id": 211,
- "name": "opts",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 212,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 213,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 214,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- },
- "defaultValue": "{}"
+ "fileName": "src/types.ts",
+ "line": 12,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 305,
- "name": "RealtimeChannelSendResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ]
- },
- {
- "id": 93,
- "name": "subscribe",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 171,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 94,
- "name": "subscribe",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 540,
+ "name": "details",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "comment": {
- "shortText": "Subscribe registers your client with the server"
- },
- "parameters": [
- {
- "id": 95,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 96,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 97,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 98,
- "name": "status",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "SUBSCRIBED"
- },
- {
- "type": "literal",
- "value": "TIMED_OUT"
- },
- {
- "type": "literal",
- "value": "CLOSED"
- },
- {
- "type": "literal",
- "value": "CHANNEL_ERROR"
- }
- ]
- }
- },
- {
- "id": 99,
- "name": "err",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "Error",
- "package": "typescript",
- "name": "Error"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
- }
- },
+ "sources": [
{
- "id": 100,
- "name": "timeout",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "..."
+ "fileName": "src/types.ts",
+ "line": 10,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "id": 55,
- "name": "default"
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ]
- },
- {
- "id": 103,
- "name": "track",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 288,
- "character": 8
- }
- ],
- "signatures": [
+ },
{
- "id": 104,
- "name": "track",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 541,
+ "name": "hint",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "parameters": [
- {
- "id": 105,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 106,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 107,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 108,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- },
+ "sources": [
{
- "id": 109,
- "name": "opts",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 110,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 111,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 112,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- },
- "defaultValue": "{}"
+ "fileName": "src/types.ts",
+ "line": 11,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 305,
- "name": "RealtimeChannelSendResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ]
- },
- {
- "id": 221,
- "name": "unsubscribe",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 407,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 222,
- "name": "unsubscribe",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 539,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "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"
- },
- "parameters": [
+ "sources": [
{
- "id": 223,
- "name": "timeout",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "..."
+ "fileName": "src/types.ts",
+ "line": 9,
+ "character": 2
}
],
"type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "error"
- },
- {
- "type": "literal",
- "value": "ok"
- },
- {
- "type": "literal",
- "value": "timed out"
- }
- ]
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
+ "type": "intrinsic",
+ "name": "string"
}
}
- ]
- },
- {
- "id": 113,
- "name": "untrack",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
+ ],
+ "groups": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 302,
- "character": 8
+ "title": "Properties",
+ "kind": 1024,
+ "children": [542, 540, 541, 539]
}
],
- "signatures": [
+ "sources": [
{
- "id": 114,
- "name": "untrack",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 115,
- "name": "opts",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 116,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 117,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 118,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 305,
- "name": "RealtimeChannelSendResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
+ "fileName": "src/types.ts",
+ "line": 8,
+ "character": 29
}
]
- },
+ }
+ }
+ },
+ {
+ "id": 535,
+ "name": "PostgrestMaybeSingleResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 215,
- "name": "updateJoinPayload",
- "kind": 2048,
- "kindString": "Method",
+ "fileName": "src/types.ts",
+ "line": 45,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 536,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 533,
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 536,
+ "name": "T"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ },
+ {
+ "id": 531,
+ "name": "PostgrestResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/types.ts",
+ "line": 35,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 532,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [null, null]
+ }
+ },
+ {
+ "id": 533,
+ "name": "PostgrestSingleResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/types.ts",
+ "line": 42,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 534,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [null, null]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [498, 1, 112, 49, 401]
+ },
+ {
+ "title": "Type Aliases",
+ "kind": 4194304,
+ "children": [537, 535, 531, 533]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 0,
+ "name": "@supabase/realtime-js",
+ "kind": 1,
+ "kindString": "Project",
+ "flags": {},
+ "originalName": "",
+ "children": [
+ {
+ "id": 500,
+ "name": "REALTIME_LISTEN_TYPES",
+ "kind": 8,
+ "kindString": "Enumeration",
+ "flags": {},
+ "children": [
+ {
+ "id": 501,
+ "name": "BROADCAST",
+ "kind": 16,
+ "kindString": "Enumeration Member",
"flags": {},
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 394,
+ "line": 77,
"character": 2
}
],
- "signatures": [
+ "type": {
+ "type": "literal",
+ "value": "broadcast"
+ },
+ "defaultValue": "\"broadcast\""
+ },
+ {
+ "id": 503,
+ "name": "POSTGRES_CHANGES",
+ "kind": 16,
+ "kindString": "Enumeration Member",
+ "flags": {},
+ "sources": [
{
- "id": 216,
- "name": "updateJoinPayload",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 217,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 218,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 219,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 220,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
+ "fileName": "RealtimeChannel.ts",
+ "line": 79,
+ "character": 2
}
- ]
+ ],
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ },
+ "defaultValue": "\"postgres_changes\""
+ },
+ {
+ "id": 502,
+ "name": "PRESENCE",
+ "kind": 16,
+ "kindString": "Enumeration Member",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 78,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ },
+ "defaultValue": "\"presence\""
}
],
"groups": [
{
- "title": "Constructors",
- "kind": 512,
- "children": [66]
+ "title": "Enumeration Members",
+ "kind": 16,
+ "children": [501, 503, 502]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 76,
+ "character": 12
+ }
+ ]
+ },
+ {
+ "id": 504,
+ "name": "REALTIME_POSTGRES_CHANGES_LISTEN_EVENT",
+ "kind": 8,
+ "kindString": "Enumeration",
+ "flags": {},
+ "children": [
+ {
+ "id": 505,
+ "name": "ALL",
+ "kind": 16,
+ "kindString": "Enumeration Member",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 70,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "*"
+ },
+ "defaultValue": "\"*\""
},
{
- "title": "Properties",
- "kind": 1024,
- "children": [71, 86, 85, 91, 89, 88, 87, 92, 84, 83, 90]
+ "id": 508,
+ "name": "DELETE",
+ "kind": 16,
+ "kindString": "Enumeration Member",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 73,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "DELETE"
+ },
+ "defaultValue": "\"DELETE\""
},
{
- "title": "Methods",
- "kind": 2048,
- "children": [119, 101, 204, 93, 103, 221, 113, 215]
+ "id": 506,
+ "name": "INSERT",
+ "kind": 16,
+ "kindString": "Enumeration Member",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 71,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "INSERT"
+ },
+ "defaultValue": "\"INSERT\""
+ },
+ {
+ "id": 507,
+ "name": "UPDATE",
+ "kind": 16,
+ "kindString": "Enumeration Member",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 72,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "UPDATE"
+ },
+ "defaultValue": "\"UPDATE\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumeration Members",
+ "kind": 16,
+ "children": [505, 508, 506, 507]
}
],
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 94,
- "character": 21
+ "line": 69,
+ "character": 12
}
]
},
{
- "id": 306,
- "name": "RealtimeClient",
- "kind": 128,
- "kindString": "Class",
+ "id": 509,
+ "name": "REALTIME_PRESENCE_LISTEN_EVENTS",
+ "kind": 8,
+ "kindString": "Enumeration",
"flags": {},
"children": [
{
- "id": 307,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
+ "id": 511,
+ "name": "JOIN",
+ "kind": 16,
+ "kindString": "Enumeration Member",
"flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 88,
+ "fileName": "RealtimePresence.ts",
+ "line": 36,
"character": 2
}
],
- "signatures": [
+ "type": {
+ "type": "literal",
+ "value": "join"
+ },
+ "defaultValue": "\"join\""
+ },
+ {
+ "id": 512,
+ "name": "LEAVE",
+ "kind": 16,
+ "kindString": "Enumeration Member",
+ "flags": {},
+ "sources": [
{
- "id": 308,
- "name": "new RealtimeClient",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {},
- "comment": {
- "shortText": "Initializes the Socket."
- },
- "parameters": [
- {
- "id": 309,
- "name": "endPoint",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 310,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 418,
- "name": "RealtimeClientOptions",
- "dereferenced": {
- "id": 418,
- "name": "RealtimeClientOptions",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 16,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 419,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 425,
- "name": "decode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 22,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 424,
- "name": "encode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 21,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 427,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 24,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 428,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 24,
- "character": 12
- }
- ],
- "indexSignature": {
- "id": 429,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 430,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- }
- }
- },
- {
- "id": 422,
- "name": "heartbeatIntervalMs",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 19,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 423,
- "name": "logger",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 20,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 431,
- "name": "params",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 25,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 432,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 25,
- "character": 11
- }
- ],
- "indexSignature": {
- "id": 433,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 434,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- },
- {
- "id": 426,
- "name": "reconnectAfterMs",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 23,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 421,
- "name": "timeout",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 18,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 420,
- "name": "transport",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 17,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "WebSocket",
- "package": "typescript",
- "name": "WebSocket"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [425, 424, 427, 422, 423, 431, 426, 421, 420]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 16,
- "character": 36
- }
- ]
- }
- }
- }
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 306,
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 311,
- "name": "accessToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 41,
- "character": 2
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- },
- "defaultValue": "null"
- },
- {
- "id": 312,
- "name": "channels",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 42,
+ "fileName": "RealtimePresence.ts",
+ "line": 37,
"character": 2
}
],
"type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
+ "type": "literal",
+ "value": "leave"
},
- "defaultValue": "[]"
+ "defaultValue": "\"leave\""
},
{
- "id": 333,
- "name": "conn",
- "kind": 1024,
- "kindString": "Property",
+ "id": 510,
+ "name": "SYNC",
+ "kind": 16,
+ "kindString": "Enumeration Member",
"flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 57,
+ "fileName": "RealtimePresence.ts",
+ "line": 35,
"character": 2
}
],
"type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reference",
- "qualifiedName": "WebSocket",
- "package": "typescript",
- "name": "WebSocket"
- }
- ]
+ "type": "literal",
+ "value": "sync"
},
- "defaultValue": "null"
- },
+ "defaultValue": "\"sync\""
+ }
+ ],
+ "groups": [
{
- "id": 331,
- "name": "decode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 55,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
+ "title": "Enumeration Members",
+ "kind": 16,
+ "children": [511, 512, 510]
+ }
+ ],
+ "sources": [
{
- "id": 330,
- "name": "encode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 54,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
+ "fileName": "RealtimePresence.ts",
+ "line": 34,
+ "character": 12
+ }
+ ]
+ },
+ {
+ "id": 513,
+ "name": "REALTIME_SUBSCRIBE_STATES",
+ "kind": 8,
+ "kindString": "Enumeration",
+ "flags": {},
+ "children": [
{
- "id": 313,
- "name": "endPoint",
- "kind": 1024,
- "kindString": "Property",
+ "id": 517,
+ "name": "CHANNEL_ERROR",
+ "kind": 16,
+ "kindString": "Enumeration Member",
"flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 43,
+ "fileName": "RealtimeChannel.ts",
+ "line": 86,
"character": 2
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "literal",
+ "value": "CHANNEL_ERROR"
},
- "defaultValue": "''"
+ "defaultValue": "\"CHANNEL_ERROR\""
},
{
- "id": 342,
- "name": "eventsPerSecondLimitMs",
- "kind": 1024,
- "kindString": "Property",
+ "id": 516,
+ "name": "CLOSED",
+ "kind": 16,
+ "kindString": "Enumeration Member",
"flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 71,
+ "fileName": "RealtimeChannel.ts",
+ "line": 85,
"character": 2
}
],
"type": {
- "type": "intrinsic",
- "name": "number"
+ "type": "literal",
+ "value": "CLOSED"
},
- "defaultValue": "100"
+ "defaultValue": "\"CLOSED\""
},
{
- "id": 314,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "id": 514,
+ "name": "SUBSCRIBED",
+ "kind": 16,
+ "kindString": "Enumeration Member",
+ "flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 44,
+ "fileName": "RealtimeChannel.ts",
+ "line": 83,
"character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 315,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 316,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 317,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- }
+ "type": "literal",
+ "value": "SUBSCRIBED"
},
- "defaultValue": "DEFAULT_HEADERS"
+ "defaultValue": "\"SUBSCRIBED\""
},
{
- "id": 324,
- "name": "heartbeatIntervalMs",
- "kind": 1024,
- "kindString": "Property",
+ "id": 515,
+ "name": "TIMED_OUT",
+ "kind": 16,
+ "kindString": "Enumeration Member",
"flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 48,
+ "fileName": "RealtimeChannel.ts",
+ "line": 84,
"character": 2
}
],
"type": {
- "type": "intrinsic",
- "name": "number"
+ "type": "literal",
+ "value": "TIMED_OUT"
},
- "defaultValue": "30000"
- },
+ "defaultValue": "\"TIMED_OUT\""
+ }
+ ],
+ "groups": [
{
- "id": 325,
- "name": "heartbeatTimer",
- "kind": 1024,
- "kindString": "Property",
+ "title": "Enumeration Members",
+ "kind": 16,
+ "children": [517, 516, 514, 515]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 82,
+ "character": 12
+ }
+ ]
+ },
+ {
+ "id": 55,
+ "name": "RealtimeChannel",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "comment": {
+ "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
+ },
+ "children": [
+ {
+ "id": 66,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
"flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 49,
- "character": 2
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "reference",
- "qualifiedName": "global.NodeJS.Timer",
- "package": "@types/node",
- "name": "Timer"
- }
- ]
- },
- "defaultValue": "undefined"
- },
- {
- "id": 343,
- "name": "inThrottle",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 72,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- },
- "defaultValue": "false"
- },
- {
- "id": 329,
- "name": "logger",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 53,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- },
- "defaultValue": "noop"
- },
- {
- "id": 318,
- "name": "params",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 45,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 319,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 320,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 321,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- }
- },
- "defaultValue": "{}"
- },
- {
- "id": 326,
- "name": "pendingHeartbeatRef",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 50,
- "character": 2
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- },
- "defaultValue": "null"
- },
- {
- "id": 332,
- "name": "reconnectAfterMs",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 56,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 328,
- "name": "reconnectTimer",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 52,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "name": "default"
- }
- },
- {
- "id": 327,
- "name": "ref",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 51,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "0"
- },
- {
- "id": 334,
- "name": "sendBuffer",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 58,
- "character": 2
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- "defaultValue": "[]"
- },
- {
- "id": 335,
- "name": "serializer",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 59,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "name": "default"
- },
- "defaultValue": "..."
- },
- {
- "id": 336,
- "name": "stateChangeCallbacks",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 60,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 337,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 339,
- "name": "close",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 62,
- "character": 4
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- }
- },
- {
- "id": 340,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 63,
- "character": 4
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- }
- },
- {
- "id": 341,
- "name": "message",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 64,
- "character": 4
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- }
- },
- {
- "id": 338,
- "name": "open",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 61,
- "character": 4
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [339, 340, 341, 338]
- }
- ]
- }
- },
- "defaultValue": "..."
- },
- {
- "id": 322,
- "name": "timeout",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 46,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "DEFAULT_TIMEOUT"
- },
- {
- "id": 323,
- "name": "transport",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 47,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- },
- "defaultValue": "w3cwebsocket"
- },
- {
- "id": 366,
- "name": "channel",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 218,
+ "fileName": "RealtimeChannel.ts",
+ "line": 111,
"character": 2
}
],
"signatures": [
{
- "id": 367,
- "name": "channel",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 67,
+ "name": "new RealtimeChannel",
+ "kind": 16384,
+ "kindString": "Constructor signature",
"flags": {},
"parameters": [
{
- "id": 368,
+ "id": 68,
"name": "topic",
"kind": 32768,
"kindString": "Parameter",
@@ -44694,7 +43853,7 @@
}
},
{
- "id": 369,
+ "id": 69,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -44711,107 +43870,15560 @@
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 295,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 70,
+ "name": "socket",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default",
+ "dereferenced": {
+ "id": 306,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 307,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 88,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 308,
+ "name": "new RealtimeClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Initializes the Socket."
+ },
+ "parameters": [
+ {
+ "id": 309,
+ "name": "endPoint",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 310,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "dereferenced": {
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 419,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 425,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 22,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 424,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 21,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 427,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 428,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "indexSignature": {
+ "id": 429,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 430,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 422,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 19,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 423,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 20,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 431,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 432,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 11
+ }
+ ],
+ "indexSignature": {
+ "id": 433,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 434,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 426,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 23,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 421,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 18,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 420,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 17,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 425, 424, 427, 422, 423, 431, 426, 421, 420
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 36
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 311,
+ "name": "accessToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 41,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 312,
+ "name": "channels",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 42,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 333,
+ "name": "conn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 57,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 331,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 55,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 330,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 54,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 313,
+ "name": "endPoint",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 43,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "''"
+ },
+ {
+ "id": 342,
+ "name": "eventsPerSecondLimitMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 71,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "100"
+ },
+ {
+ "id": 314,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 44,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 315,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 316,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 317,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "DEFAULT_HEADERS"
+ },
+ {
+ "id": 324,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 48,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "30000"
+ },
+ {
+ "id": 325,
+ "name": "heartbeatTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 49,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "global.NodeJS.Timer",
+ "package": "@types/node",
+ "name": "Timer"
+ }
+ ]
+ },
+ "defaultValue": "undefined"
+ },
+ {
+ "id": 343,
+ "name": "inThrottle",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 72,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 329,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 53,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ },
+ "defaultValue": "noop"
+ },
+ {
+ "id": 318,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 45,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 319,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 320,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 321,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 326,
+ "name": "pendingHeartbeatRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 50,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 332,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 56,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 328,
+ "name": "reconnectTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 52,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 327,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 51,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
+ },
+ {
+ "id": 334,
+ "name": "sendBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 58,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 335,
+ "name": "serializer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 59,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 336,
+ "name": "stateChangeCallbacks",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 60,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 337,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 339,
+ "name": "close",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 62,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 340,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 63,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 341,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 64,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 338,
+ "name": "open",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 61,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [339, 340, 341, 338]
+ }
+ ]
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 322,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 46,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "DEFAULT_TIMEOUT"
+ },
+ {
+ "id": 323,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 47,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "defaultValue": "w3cwebsocket"
+ },
+ {
+ "id": 366,
+ "name": "channel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 218,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 367,
+ "name": "channel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 368,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 369,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 344,
+ "name": "connect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 125,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 345,
+ "name": "connect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Connects the socket, unless already connected."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 362,
+ "name": "connectionState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 198,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 363,
+ "name": "connectionState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the current state of the socket."
+ },
+ "type": {
+ "type": "reference",
+ "name": "CONNECTION_STATE"
+ }
+ }
+ ]
+ },
+ {
+ "id": 346,
+ "name": "disconnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 147,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 347,
+ "name": "disconnect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Disconnects the socket."
+ },
+ "parameters": [
+ {
+ "id": 348,
+ "name": "code",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A numeric status code to send on disconnect."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 349,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom reason for the disconnect.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 350,
+ "name": "getChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 162,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 351,
+ "name": "getChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 364,
+ "name": "isConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 214,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 365,
+ "name": "isConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns `true` is the connection is open."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 357,
+ "name": "log",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 191,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 358,
+ "name": "log",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Logs the message.",
+ "text": "For customized logging, `this.logger` can be overridden.\n"
+ },
+ "parameters": [
+ {
+ "id": 359,
+ "name": "kind",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 360,
+ "name": "msg",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 361,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 370,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 236,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 371,
+ "name": "push",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 372,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 435,
+ "name": "RealtimeMessage",
+ "dereferenced": {
+ "id": 435,
+ "name": "RealtimeMessage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 436,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 438,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 30,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 441,
+ "name": "join_ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 33,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 439,
+ "name": "payload",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 31,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 440,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 32,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 437,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 29,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [438, 441, 439, 440, 437]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 30
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "void"
+ },
+ {
+ "type": "literal",
+ "value": "rate limited"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 355,
+ "name": "removeAllChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 177,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 356,
+ "name": "removeAllChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 352,
+ "name": "removeChannel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 166,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 353,
+ "name": "removeChannel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 354,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": {
+ "id": 55,
+ "name": "RealtimeChannel",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "comment": {
+ "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
+ },
+ "children": "[Circular ~.children.4.children]",
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [66]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 71, 86, 85, 91, 89, 88, 87, 92, 84, 83, 90
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [119, 101, 204, 93, 103, 221, 113, 215]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 94,
+ "character": 21
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 373,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 263,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 374,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ },
+ "parameters": [
+ {
+ "id": 375,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A JWT string.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [307]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 311, 312, 333, 331, 330, 313, 342, 314, 324, 325, 343, 329, 318,
+ 326, 332, 328, 327, 334, 335, 336, 322, 323
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [366, 344, 362, 346, 350, 364, 357, 370, 355, 352, 373]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 40,
+ "character": 21
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 71,
+ "name": "bindings",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 95,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 72,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 73,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 74,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reflection",
+ "declaration": {
+ "id": 75,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 81,
+ "name": "callback",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 99,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 77,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 98,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 78,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 98,
+ "character": 14
+ }
+ ],
+ "indexSignature": {
+ "id": 79,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 80,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 82,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 100,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 76,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 97,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [81, 77, 82, 76]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 96,
+ "character": 19
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 86,
+ "name": "joinPush",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 106,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 85,
+ "name": "joinedOnce",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 105,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 91,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 89,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 109,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "default",
+ "dereferenced": {
+ "id": 1,
+ "name": "RealtimePresence",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 28,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 83,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 29,
+ "name": "new RealtimePresence",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Initializes the Presence."
+ },
+ "parameters": [
+ {
+ "id": 30,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The RealtimeChannel"
+ },
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": {
+ "id": 55,
+ "name": "RealtimeChannel",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "comment": {
+ "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
+ },
+ "children": "[Circular ~.children.4.children]",
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [66]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [71, 86, 85, 91, 89, 88, 87, 92, 84, 83, 90]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [119, 101, 204, 93, 103, 221, 113, 215]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 94,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 31,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The options,\n for example `{events: {state: 'state', diff: 'diff'}}`\n"
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "PresenceOpts",
+ "package": "@types/phoenix",
+ "name": "PresenceOpts"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 35,
+ "name": "caller",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 66,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 36,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 37,
+ "name": "onJoin",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 67,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "PresenceOnJoinCallback",
+ "package": "@types/phoenix",
+ "name": "PresenceOnJoinCallback"
+ }
+ },
+ {
+ "id": 38,
+ "name": "onLeave",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 68,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "PresenceOnLeaveCallback",
+ "package": "@types/phoenix",
+ "name": "PresenceOnLeaveCallback"
+ }
+ },
+ {
+ "id": 39,
+ "name": "onSync",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 69,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 40,
+ "name": "onSync",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [37, 38]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [39]
+ }
+ ]
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 41,
+ "name": "channel",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": {
+ "id": 55,
+ "name": "RealtimeChannel",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "comment": {
+ "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
+ },
+ "children": "[Circular ~.children.4.children]",
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [66]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [71, 86, 85, 91, 89, 88, 87, 92, 84, 83, 90]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [119, 101, 204, 93, 103, 221, 113, 215]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 94,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 34,
+ "name": "joinRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 65,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 33,
+ "name": "pendingDiffs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "name": "RawPresenceDiff"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 32,
+ "name": "state",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 495,
+ "name": "RealtimePresenceState",
+ "dereferenced": {
+ "id": 495,
+ "name": "RealtimePresenceState",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 18,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 496,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 18,
+ "character": 36
+ }
+ ],
+ "indexSignature": {
+ "id": 497,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 498,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "name": "Presence"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [28]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [35, 41, 34, 33, 32]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 62,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 88,
+ "name": "pushBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 108,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 87,
+ "name": "rejoinTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 107,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 92,
+ "name": "socket",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default",
+ "dereferenced": {
+ "id": 306,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 307,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 88,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 308,
+ "name": "new RealtimeClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Initializes the Socket."
+ },
+ "parameters": [
+ {
+ "id": 309,
+ "name": "endPoint",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 310,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "dereferenced": {
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 419,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 425,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 22,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 424,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 21,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 427,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 428,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "indexSignature": {
+ "id": 429,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 430,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 422,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 19,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 423,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 20,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 431,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 432,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 11
+ }
+ ],
+ "indexSignature": {
+ "id": 433,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 434,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 426,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 23,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 421,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 18,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 420,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 17,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [425, 424, 427, 422, 423, 431, 426, 421, 420]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 36
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 311,
+ "name": "accessToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 41,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 312,
+ "name": "channels",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 42,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 333,
+ "name": "conn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 57,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 331,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 55,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 330,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 54,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 313,
+ "name": "endPoint",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 43,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "''"
+ },
+ {
+ "id": 342,
+ "name": "eventsPerSecondLimitMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 71,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "100"
+ },
+ {
+ "id": 314,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 44,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 315,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 316,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 317,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "DEFAULT_HEADERS"
+ },
+ {
+ "id": 324,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 48,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "30000"
+ },
+ {
+ "id": 325,
+ "name": "heartbeatTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 49,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "global.NodeJS.Timer",
+ "package": "@types/node",
+ "name": "Timer"
+ }
+ ]
+ },
+ "defaultValue": "undefined"
+ },
+ {
+ "id": 343,
+ "name": "inThrottle",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 72,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 329,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 53,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ },
+ "defaultValue": "noop"
+ },
+ {
+ "id": 318,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 45,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 319,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 320,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 321,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 326,
+ "name": "pendingHeartbeatRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 50,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 332,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 56,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 328,
+ "name": "reconnectTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 52,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 327,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 51,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
+ },
+ {
+ "id": 334,
+ "name": "sendBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 58,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 335,
+ "name": "serializer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 59,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 336,
+ "name": "stateChangeCallbacks",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 60,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 337,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 339,
+ "name": "close",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 62,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 340,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 63,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 341,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 64,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 338,
+ "name": "open",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 61,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [339, 340, 341, 338]
+ }
+ ]
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 322,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 46,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "DEFAULT_TIMEOUT"
+ },
+ {
+ "id": 323,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 47,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "defaultValue": "w3cwebsocket"
+ },
+ {
+ "id": 366,
+ "name": "channel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 218,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 367,
+ "name": "channel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 368,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 369,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 344,
+ "name": "connect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 125,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 345,
+ "name": "connect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Connects the socket, unless already connected."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 362,
+ "name": "connectionState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 198,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 363,
+ "name": "connectionState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the current state of the socket."
+ },
+ "type": {
+ "type": "reference",
+ "name": "CONNECTION_STATE"
+ }
+ }
+ ]
+ },
+ {
+ "id": 346,
+ "name": "disconnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 147,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 347,
+ "name": "disconnect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Disconnects the socket."
+ },
+ "parameters": [
+ {
+ "id": 348,
+ "name": "code",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A numeric status code to send on disconnect."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 349,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom reason for the disconnect.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 350,
+ "name": "getChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 162,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 351,
+ "name": "getChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 364,
+ "name": "isConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 214,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 365,
+ "name": "isConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns `true` is the connection is open."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 357,
+ "name": "log",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 191,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 358,
+ "name": "log",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Logs the message.",
+ "text": "For customized logging, `this.logger` can be overridden.\n"
+ },
+ "parameters": [
+ {
+ "id": 359,
+ "name": "kind",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 360,
+ "name": "msg",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 361,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 370,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 236,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 371,
+ "name": "push",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 372,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 435,
+ "name": "RealtimeMessage",
+ "dereferenced": {
+ "id": 435,
+ "name": "RealtimeMessage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 436,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 438,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 30,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 441,
+ "name": "join_ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 33,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 439,
+ "name": "payload",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 31,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 440,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 32,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 437,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 29,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [438, 441, 439, 440, 437]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 30
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "void"
+ },
+ {
+ "type": "literal",
+ "value": "rate limited"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 355,
+ "name": "removeAllChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 177,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 356,
+ "name": "removeAllChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 352,
+ "name": "removeChannel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 166,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 353,
+ "name": "removeChannel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 354,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": {
+ "id": 55,
+ "name": "RealtimeChannel",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "comment": {
+ "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
+ },
+ "children": "[Circular ~.children.4.children]",
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [66]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [71, 86, 85, 91, 89, 88, 87, 92, 84, 83, 90]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [119, 101, 204, 93, 103, 221, 113, 215]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 94,
+ "character": 21
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 373,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 263,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 374,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ },
+ "parameters": [
+ {
+ "id": 375,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A JWT string.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [307]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 311, 312, 333, 331, 330, 313, 342, 314, 324, 325, 343, 329, 318, 326, 332,
+ 328, 327, 334, 335, 336, 322, 323
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [366, 344, 362, 346, 350, 364, 357, 370, 355, 352, 373]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 40,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 84,
+ "name": "state",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 104,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "CHANNEL_STATES"
+ },
+ "defaultValue": "CHANNEL_STATES.closed"
+ },
+ {
+ "id": 83,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 103,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 90,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 119,
+ "name": "on",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 315,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 120,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Listen to messages."
+ },
+ "parameters": [
+ {
+ "id": 121,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "broadcast"
+ }
+ },
+ {
+ "id": 122,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 123,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 124,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 317,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [124]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 125,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 126,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 127,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 128,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 129,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 131,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 320,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 130,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 319,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "broadcast"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [131, 130]
+ }
+ ],
+ "indexSignature": {
+ "id": 132,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 133,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 134,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 135,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ }
+ },
+ {
+ "id": 136,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 137,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 138,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 326,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "sync"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [138]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 139,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 140,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 141,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 142,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 143,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ }
+ },
+ {
+ "id": 144,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 145,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 146,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 331,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "join"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [146]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 147,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 148,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 149,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 150,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 483,
+ "name": "RealtimePresenceJoinPayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 151,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 152,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ }
+ },
+ {
+ "id": 153,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 154,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 155,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 336,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "leave"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [155]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 156,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 157,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 158,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 159,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 489,
+ "name": "RealtimePresenceLeavePayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 160,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 164,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 161,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 162,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 163,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 165,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ },
+ {
+ "id": 166,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "*"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 448,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 167,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 168,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 169,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 170,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 449,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 164,
+ "name": "T"
+ }
+ ],
+ "name": "RealtimePostgresChangesPayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 171,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 175,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 172,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 173,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 174,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 176,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ },
+ {
+ "id": 177,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "INSERT"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 448,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 178,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 179,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 180,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 181,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 454,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 175,
+ "name": "T"
+ }
+ ],
+ "name": "RealtimePostgresInsertPayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 182,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 186,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 183,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 184,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 185,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 187,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ },
+ {
+ "id": 188,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "UPDATE"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 448,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 189,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 190,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 191,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 192,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 464,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 186,
+ "name": "T"
+ }
+ ],
+ "name": "RealtimePostgresUpdatePayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 193,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 197,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 194,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 195,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 196,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 198,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ },
+ {
+ "id": 199,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "DELETE"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 448,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 200,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 201,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 202,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 203,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 473,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 197,
+ "name": "T"
+ }
+ ],
+ "name": "RealtimePostgresDeletePayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 101,
+ "name": "presenceState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 284,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 102,
+ "name": "presenceState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 495,
+ "name": "RealtimePresenceState"
+ }
+ }
+ ]
+ },
+ {
+ "id": 204,
+ "name": "send",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 367,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 205,
+ "name": "send",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 206,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 207,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 208,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 368,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [208]
+ }
+ ],
+ "indexSignature": {
+ "id": 209,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 210,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 211,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 212,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 213,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 214,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 305,
+ "name": "RealtimeChannelSendResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 93,
+ "name": "subscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 171,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 94,
+ "name": "subscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Subscribe registers your client with the server"
+ },
+ "parameters": [
+ {
+ "id": 95,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 96,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 97,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 98,
+ "name": "status",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "SUBSCRIBED"
+ },
+ {
+ "type": "literal",
+ "value": "TIMED_OUT"
+ },
+ {
+ "type": "literal",
+ "value": "CLOSED"
+ },
+ {
+ "type": "literal",
+ "value": "CHANNEL_ERROR"
+ }
+ ]
+ }
+ },
+ {
+ "id": 99,
+ "name": "err",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Error",
+ "package": "typescript",
+ "name": "Error"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 100,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 103,
+ "name": "track",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 288,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 104,
+ "name": "track",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 105,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 106,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 107,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 108,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 109,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 110,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 111,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 112,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 305,
+ "name": "RealtimeChannelSendResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 221,
+ "name": "unsubscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 407,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 222,
+ "name": "unsubscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 223,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "error"
+ },
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 113,
+ "name": "untrack",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 302,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 114,
+ "name": "untrack",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 115,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 116,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 117,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 118,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 305,
+ "name": "RealtimeChannelSendResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 215,
+ "name": "updateJoinPayload",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 394,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 216,
+ "name": "updateJoinPayload",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 217,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 218,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 219,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 220,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [66]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [71, 86, 85, 91, 89, 88, 87, 92, 84, 83, 90]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [119, 101, 204, 93, 103, 221, 113, 215]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 94,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 306,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 307,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 88,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 308,
+ "name": "new RealtimeClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Initializes the Socket."
+ },
+ "parameters": [
+ {
+ "id": 309,
+ "name": "endPoint",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 310,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "dereferenced": {
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 419,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 425,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 22,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 424,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 21,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 427,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 428,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "indexSignature": {
+ "id": 429,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 430,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 422,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 19,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 423,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 20,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 431,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 432,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 11
+ }
+ ],
+ "indexSignature": {
+ "id": 433,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 434,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 426,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 23,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 421,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 18,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 420,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 17,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [425, 424, 427, 422, 423, 431, 426, 421, 420]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 36
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 311,
+ "name": "accessToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 41,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 312,
+ "name": "channels",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 42,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 333,
+ "name": "conn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 57,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 331,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 55,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 330,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 54,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 313,
+ "name": "endPoint",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 43,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "''"
+ },
+ {
+ "id": 342,
+ "name": "eventsPerSecondLimitMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 71,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "100"
+ },
+ {
+ "id": 314,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 44,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 315,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 316,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 317,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "DEFAULT_HEADERS"
+ },
+ {
+ "id": 324,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 48,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "30000"
+ },
+ {
+ "id": 325,
+ "name": "heartbeatTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 49,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "global.NodeJS.Timer",
+ "package": "@types/node",
+ "name": "Timer"
+ }
+ ]
+ },
+ "defaultValue": "undefined"
+ },
+ {
+ "id": 343,
+ "name": "inThrottle",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 72,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 329,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 53,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ },
+ "defaultValue": "noop"
+ },
+ {
+ "id": 318,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 45,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 319,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 320,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 321,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 326,
+ "name": "pendingHeartbeatRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 50,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 332,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 56,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 328,
+ "name": "reconnectTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 52,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 327,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 51,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
+ },
+ {
+ "id": 334,
+ "name": "sendBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 58,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 335,
+ "name": "serializer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 59,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 336,
+ "name": "stateChangeCallbacks",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 60,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 337,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 339,
+ "name": "close",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 62,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 340,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 63,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 341,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 64,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 338,
+ "name": "open",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 61,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [339, 340, 341, 338]
+ }
+ ]
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 322,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 46,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "DEFAULT_TIMEOUT"
+ },
+ {
+ "id": 323,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 47,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "defaultValue": "w3cwebsocket"
+ },
+ {
+ "id": 366,
+ "name": "channel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 218,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 367,
+ "name": "channel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 368,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 369,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 344,
+ "name": "connect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 125,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 345,
+ "name": "connect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Connects the socket, unless already connected."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 362,
+ "name": "connectionState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 198,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 363,
+ "name": "connectionState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the current state of the socket."
+ },
+ "type": {
+ "type": "reference",
+ "name": "CONNECTION_STATE"
+ }
+ }
+ ]
+ },
+ {
+ "id": 346,
+ "name": "disconnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 147,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 347,
+ "name": "disconnect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Disconnects the socket."
+ },
+ "parameters": [
+ {
+ "id": 348,
+ "name": "code",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A numeric status code to send on disconnect."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 349,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom reason for the disconnect.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 350,
+ "name": "getChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 162,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 351,
+ "name": "getChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 364,
+ "name": "isConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 214,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 365,
+ "name": "isConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns `true` is the connection is open."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 357,
+ "name": "log",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 191,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 358,
+ "name": "log",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Logs the message.",
+ "text": "For customized logging, `this.logger` can be overridden.\n"
+ },
+ "parameters": [
+ {
+ "id": 359,
+ "name": "kind",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 360,
+ "name": "msg",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 361,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 370,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 236,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 371,
+ "name": "push",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 372,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 435,
+ "name": "RealtimeMessage",
+ "dereferenced": {
+ "id": 435,
+ "name": "RealtimeMessage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 436,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 438,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 30,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 441,
+ "name": "join_ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 33,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 439,
+ "name": "payload",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 31,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 440,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 32,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 437,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 29,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [438, 441, 439, 440, 437]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 30
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "void"
+ },
+ {
+ "type": "literal",
+ "value": "rate limited"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 355,
+ "name": "removeAllChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 177,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 356,
+ "name": "removeAllChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 352,
+ "name": "removeChannel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 166,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 353,
+ "name": "removeChannel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 354,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": {
+ "id": 55,
+ "name": "RealtimeChannel",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "comment": {
+ "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
+ },
+ "children": [
+ {
+ "id": 66,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 111,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 67,
+ "name": "new RealtimeChannel",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 68,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 69,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 70,
+ "name": "socket",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default",
+ "dereferenced": {
+ "id": 306,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": "[Circular ~.children.5.children]",
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [307]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 311, 312, 333, 331, 330, 313, 342, 314, 324, 325,
+ 343, 329, 318, 326, 332, 328, 327, 334, 335, 336,
+ 322, 323
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 366, 344, 362, 346, 350, 364, 357, 370, 355, 352,
+ 373
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 40,
+ "character": 21
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 71,
+ "name": "bindings",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 95,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 72,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 73,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 74,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reflection",
+ "declaration": {
+ "id": 75,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 81,
+ "name": "callback",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 99,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 77,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 98,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 78,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 98,
+ "character": 14
+ }
+ ],
+ "indexSignature": {
+ "id": 79,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 80,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 82,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 100,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 76,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 97,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [81, 77, 82, 76]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 96,
+ "character": 19
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 86,
+ "name": "joinPush",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 106,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 85,
+ "name": "joinedOnce",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 105,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 91,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 89,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 109,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "default",
+ "dereferenced": {
+ "id": 1,
+ "name": "RealtimePresence",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 28,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 83,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 29,
+ "name": "new RealtimePresence",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Initializes the Presence."
+ },
+ "parameters": [
+ {
+ "id": 30,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The RealtimeChannel"
+ },
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": "[Circular ~.children.5.children.32.signatures.0.parameters.0.type.dereferenced]"
+ }
+ },
+ {
+ "id": 31,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The options,\n for example `{events: {state: 'state', diff: 'diff'}}`\n"
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "PresenceOpts",
+ "package": "@types/phoenix",
+ "name": "PresenceOpts"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 35,
+ "name": "caller",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 66,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 36,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 37,
+ "name": "onJoin",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 67,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "PresenceOnJoinCallback",
+ "package": "@types/phoenix",
+ "name": "PresenceOnJoinCallback"
+ }
+ },
+ {
+ "id": 38,
+ "name": "onLeave",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 68,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "PresenceOnLeaveCallback",
+ "package": "@types/phoenix",
+ "name": "PresenceOnLeaveCallback"
+ }
+ },
+ {
+ "id": 39,
+ "name": "onSync",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 69,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 40,
+ "name": "onSync",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [37, 38]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [39]
+ }
+ ]
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 41,
+ "name": "channel",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": "[Circular ~.children.5.children.32.signatures.0.parameters.0.type.dereferenced]"
+ }
+ },
+ {
+ "id": 34,
+ "name": "joinRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 65,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 33,
+ "name": "pendingDiffs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "name": "RawPresenceDiff"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 32,
+ "name": "state",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 495,
+ "name": "RealtimePresenceState",
+ "dereferenced": {
+ "id": 495,
+ "name": "RealtimePresenceState",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 18,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 496,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 18,
+ "character": 36
+ }
+ ],
+ "indexSignature": {
+ "id": 497,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 498,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "name": "Presence"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [28]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [35, 41, 34, 33, 32]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 62,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 88,
+ "name": "pushBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 108,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 87,
+ "name": "rejoinTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 107,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 92,
+ "name": "socket",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default",
+ "dereferenced": {
+ "id": 306,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": "[Circular ~.children.5.children]",
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [307]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 311, 312, 333, 331, 330, 313, 342, 314, 324, 325, 343, 329,
+ 318, 326, 332, 328, 327, 334, 335, 336, 322, 323
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 366, 344, 362, 346, 350, 364, 357, 370, 355, 352, 373
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 40,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 84,
+ "name": "state",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 104,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "CHANNEL_STATES"
+ },
+ "defaultValue": "CHANNEL_STATES.closed"
+ },
+ {
+ "id": 83,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 103,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 90,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 119,
+ "name": "on",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 315,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 120,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Listen to messages."
+ },
+ "parameters": [
+ {
+ "id": 121,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "broadcast"
+ }
+ },
+ {
+ "id": 122,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 123,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 124,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 317,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [124]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 125,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 126,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 127,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 128,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 129,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 131,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 320,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 130,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 319,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "broadcast"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [131, 130]
+ }
+ ],
+ "indexSignature": {
+ "id": 132,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 133,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 134,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 135,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ }
+ },
+ {
+ "id": 136,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 137,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 138,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 326,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "sync"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [138]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 139,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 140,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 141,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 142,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 143,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ }
+ },
+ {
+ "id": 144,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 145,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 146,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 331,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "join"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [146]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 147,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 148,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 149,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 150,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 483,
+ "name": "RealtimePresenceJoinPayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 151,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 152,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ }
+ },
+ {
+ "id": 153,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 154,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 155,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 336,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "leave"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [155]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 156,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 157,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 158,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 159,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 489,
+ "name": "RealtimePresenceLeavePayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 160,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 164,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 161,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 162,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 163,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 165,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ },
+ {
+ "id": 166,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "*"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 448,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 167,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 168,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 169,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 170,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 449,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 164,
+ "name": "T"
+ }
+ ],
+ "name": "RealtimePostgresChangesPayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 171,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 175,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 172,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 173,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 174,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 176,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ },
+ {
+ "id": 177,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "INSERT"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 448,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 178,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 179,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 180,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 181,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 454,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 175,
+ "name": "T"
+ }
+ ],
+ "name": "RealtimePostgresInsertPayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 182,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 186,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 183,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 184,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 185,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 187,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ },
+ {
+ "id": 188,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "UPDATE"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 448,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 189,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 190,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 191,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 192,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 464,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 186,
+ "name": "T"
+ }
+ ],
+ "name": "RealtimePostgresUpdatePayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 193,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 197,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 194,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 195,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 196,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 198,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ },
+ {
+ "id": 199,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "DELETE"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 448,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 200,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 201,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 202,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 203,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 473,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 197,
+ "name": "T"
+ }
+ ],
+ "name": "RealtimePostgresDeletePayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 101,
+ "name": "presenceState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 284,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 102,
+ "name": "presenceState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 495,
+ "name": "RealtimePresenceState"
+ }
+ }
+ ]
+ },
+ {
+ "id": 204,
+ "name": "send",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 367,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 205,
+ "name": "send",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 206,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 207,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 208,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 368,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [208]
+ }
+ ],
+ "indexSignature": {
+ "id": 209,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 210,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 211,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 212,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 213,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 214,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 305,
+ "name": "RealtimeChannelSendResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 93,
+ "name": "subscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 171,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 94,
+ "name": "subscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Subscribe registers your client with the server"
+ },
+ "parameters": [
+ {
+ "id": 95,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 96,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 97,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 98,
+ "name": "status",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "SUBSCRIBED"
+ },
+ {
+ "type": "literal",
+ "value": "TIMED_OUT"
+ },
+ {
+ "type": "literal",
+ "value": "CLOSED"
+ },
+ {
+ "type": "literal",
+ "value": "CHANNEL_ERROR"
+ }
+ ]
+ }
+ },
+ {
+ "id": 99,
+ "name": "err",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Error",
+ "package": "typescript",
+ "name": "Error"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 100,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 103,
+ "name": "track",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 288,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 104,
+ "name": "track",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 105,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 106,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 107,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 108,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 109,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 110,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 111,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 112,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 305,
+ "name": "RealtimeChannelSendResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 221,
+ "name": "unsubscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 407,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 222,
+ "name": "unsubscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 223,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "error"
+ },
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 113,
+ "name": "untrack",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 302,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 114,
+ "name": "untrack",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 115,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 116,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 117,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 118,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 305,
+ "name": "RealtimeChannelSendResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 215,
+ "name": "updateJoinPayload",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 394,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 216,
+ "name": "updateJoinPayload",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 217,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 218,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 219,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 220,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [66]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [71, 86, 85, 91, 89, 88, 87, 92, 84, 83, 90]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [119, 101, 204, 93, 103, 221, 113, 215]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 94,
+ "character": 21
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 373,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 263,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 374,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ },
+ "parameters": [
+ {
+ "id": 375,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A JWT string.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [307]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 311, 312, 333, 331, 330, 313, 342, 314, 324, 325, 343, 329, 318, 326, 332, 328, 327,
+ 334, 335, 336, 322, 323
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [366, 344, 362, 346, 350, 364, 357, 370, 355, 352, 373]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 40,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 1,
+ "name": "RealtimePresence",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 28,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 83,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 29,
+ "name": "new RealtimePresence",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Initializes the Presence."
+ },
+ "parameters": [
+ {
+ "id": 30,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The RealtimeChannel"
+ },
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": {
+ "id": 55,
+ "name": "RealtimeChannel",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "comment": {
+ "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
+ },
+ "children": [
+ {
+ "id": 66,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 111,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 67,
+ "name": "new RealtimeChannel",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 68,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 69,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 70,
+ "name": "socket",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default",
+ "dereferenced": {
+ "id": 306,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 307,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 88,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 308,
+ "name": "new RealtimeClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Initializes the Socket."
+ },
+ "parameters": [
+ {
+ "id": 309,
+ "name": "endPoint",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 310,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "dereferenced": {
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 419,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 425,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 22,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 424,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 21,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 427,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 428,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "indexSignature": {
+ "id": 429,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 430,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 422,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 19,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 423,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 20,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 431,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 432,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 11
+ }
+ ],
+ "indexSignature": {
+ "id": 433,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 434,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 426,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 23,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 421,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 18,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 420,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 17,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 425, 424, 427, 422, 423, 431,
+ 426, 421, 420
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 36
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 311,
+ "name": "accessToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 41,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 312,
+ "name": "channels",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 42,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 333,
+ "name": "conn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 57,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 331,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 55,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 330,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 54,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 313,
+ "name": "endPoint",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 43,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "''"
+ },
+ {
+ "id": 342,
+ "name": "eventsPerSecondLimitMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 71,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "100"
+ },
+ {
+ "id": 314,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 44,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 315,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 316,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 317,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "DEFAULT_HEADERS"
+ },
+ {
+ "id": 324,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 48,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "30000"
+ },
+ {
+ "id": 325,
+ "name": "heartbeatTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 49,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "global.NodeJS.Timer",
+ "package": "@types/node",
+ "name": "Timer"
+ }
+ ]
+ },
+ "defaultValue": "undefined"
+ },
+ {
+ "id": 343,
+ "name": "inThrottle",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 72,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 329,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 53,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ },
+ "defaultValue": "noop"
+ },
+ {
+ "id": 318,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 45,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 319,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 320,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 321,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 326,
+ "name": "pendingHeartbeatRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 50,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 332,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 56,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 328,
+ "name": "reconnectTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 52,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 327,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 51,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
+ },
+ {
+ "id": 334,
+ "name": "sendBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 58,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 335,
+ "name": "serializer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 59,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 336,
+ "name": "stateChangeCallbacks",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 60,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 337,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 339,
+ "name": "close",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 62,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 340,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 63,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 341,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 64,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 338,
+ "name": "open",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 61,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [339, 340, 341, 338]
+ }
+ ]
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 322,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 46,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "DEFAULT_TIMEOUT"
+ },
+ {
+ "id": 323,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 47,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "defaultValue": "w3cwebsocket"
+ },
+ {
+ "id": 366,
+ "name": "channel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 218,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 367,
+ "name": "channel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 368,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 369,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 301, 300
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 344,
+ "name": "connect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 125,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 345,
+ "name": "connect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Connects the socket, unless already connected."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 362,
+ "name": "connectionState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 198,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 363,
+ "name": "connectionState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the current state of the socket."
+ },
+ "type": {
+ "type": "reference",
+ "name": "CONNECTION_STATE"
+ }
+ }
+ ]
+ },
+ {
+ "id": 346,
+ "name": "disconnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 147,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 347,
+ "name": "disconnect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Disconnects the socket."
+ },
+ "parameters": [
+ {
+ "id": 348,
+ "name": "code",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A numeric status code to send on disconnect."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 349,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom reason for the disconnect.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 350,
+ "name": "getChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 162,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 351,
+ "name": "getChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 364,
+ "name": "isConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 214,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 365,
+ "name": "isConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns `true` is the connection is open."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 357,
+ "name": "log",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 191,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 358,
+ "name": "log",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Logs the message.",
+ "text": "For customized logging, `this.logger` can be overridden.\n"
+ },
+ "parameters": [
+ {
+ "id": 359,
+ "name": "kind",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 360,
+ "name": "msg",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 361,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 370,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 236,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 371,
+ "name": "push",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 372,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 435,
+ "name": "RealtimeMessage",
+ "dereferenced": {
+ "id": 435,
+ "name": "RealtimeMessage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 436,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 438,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 30,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 441,
+ "name": "join_ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 33,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 439,
+ "name": "payload",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 31,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 440,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 32,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 437,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 29,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 438, 441, 439, 440, 437
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 30
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "void"
+ },
+ {
+ "type": "literal",
+ "value": "rate limited"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 355,
+ "name": "removeAllChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 177,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 356,
+ "name": "removeAllChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 352,
+ "name": "removeChannel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 166,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 353,
+ "name": "removeChannel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 354,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": "[Circular ~.children.6.children.0.signatures.0.parameters.0.type.dereferenced]"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 373,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 263,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 374,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ },
+ "parameters": [
+ {
+ "id": 375,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A JWT string.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [307]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 311, 312, 333, 331, 330, 313, 342, 314, 324, 325,
+ 343, 329, 318, 326, 332, 328, 327, 334, 335, 336,
+ 322, 323
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 366, 344, 362, 346, 350, 364, 357, 370, 355, 352,
+ 373
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 40,
+ "character": 21
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 71,
+ "name": "bindings",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 296,
- "name": "config",
- "kind": 1024,
- "kindString": "Property",
+ "fileName": "RealtimeChannel.ts",
+ "line": 95,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 72,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 73,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 74,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reflection",
+ "declaration": {
+ "id": 75,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 81,
+ "name": "callback",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 99,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 77,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 98,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 78,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 98,
+ "character": 14
+ }
+ ],
+ "indexSignature": {
+ "id": 79,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 80,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 82,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 100,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 76,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 97,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [81, 77, 82, 76]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 96,
+ "character": 19
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 86,
+ "name": "joinPush",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 106,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 85,
+ "name": "joinedOnce",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 105,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 91,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 2
+ "line": 13,
+ "character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 297,
+ "id": 295,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 298,
- "name": "broadcast",
+ "id": 296,
+ "name": "config",
"kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
- },
+ "kindString": "Property",
+ "flags": {},
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 4
+ "line": 14,
+ "character": 2
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 299,
+ "id": 297,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 301,
- "name": "ack",
+ "id": 298,
+ "name": "broadcast",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
"sources": [
{
"fileName": "RealtimeChannel.ts",
"line": 19,
- "character": 34
+ "character": 4
}
],
"type": {
- "type": "intrinsic",
- "name": "boolean"
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
}
},
{
- "id": 300,
- "name": "self",
+ "id": 302,
+ "name": "presence",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 18
+ "line": 23,
+ "character": 4
}
],
"type": {
- "type": "intrinsic",
- "name": "boolean"
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
}
}
],
@@ -44819,802 +59431,1385 @@
{
"title": "Properties",
"kind": 1024,
- "children": [301, 300]
+ "children": [298, 302]
}
],
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 16
+ "line": 14,
+ "character": 10
}
]
}
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 302,
- "name": "presence",
+ "title": "Properties",
"kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 89,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 109,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "default",
+ "dereferenced": {
+ "id": 1,
+ "name": "RealtimePresence",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": "[Circular ~.children.6.children]",
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [28]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [35, 41, 34, 33, 32]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 62,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 88,
+ "name": "pushBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 108,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 87,
+ "name": "rejoinTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 107,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 92,
+ "name": "socket",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default",
+ "dereferenced": {
+ "id": 306,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 307,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 88,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 308,
+ "name": "new RealtimeClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
"comment": {
- "shortText": "key option is used to track presence payload across clients"
+ "shortText": "Initializes the Socket."
},
- "sources": [
+ "parameters": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 4
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 303,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 309,
+ "name": "endPoint",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "children": [
- {
- "id": 304,
- "name": "key",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "comment": {
+ "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 310,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "dereferenced": {
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 17
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 12
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reflection",
+ "declaration": {
+ "id": 419,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 425,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 22,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 424,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 21,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 427,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 428,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "indexSignature": {
+ "id": 429,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 430,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 422,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 19,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 423,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 20,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 431,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 432,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 11
+ }
+ ],
+ "indexSignature": {
+ "id": 433,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 434,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 426,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 23,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 421,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 18,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 420,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 17,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 425, 424, 427, 422, 423, 431, 426, 421,
+ 420
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 36
+ }
+ ]
+ }
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [304]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 15
- }
- ]
+ }
}
+ ],
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 311,
+ "name": "accessToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 41,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 312,
+ "name": "channels",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 42,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 333,
+ "name": "conn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 57,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
}
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 331,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 55,
+ "character": 2
}
],
- "groups": [
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 330,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [298, 302]
+ "fileName": "RealtimeClient.ts",
+ "line": 54,
+ "character": 2
}
],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 313,
+ "name": "endPoint",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 10
+ "fileName": "RealtimeClient.ts",
+ "line": 43,
+ "character": 2
}
- ]
- }
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [296]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 37
- }
- ]
- }
- }
- }
- },
- "defaultValue": "..."
- }
- ],
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 344,
- "name": "connect",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 125,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 345,
- "name": "connect",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Connects the socket, unless already connected."
- },
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- },
- {
- "id": 362,
- "name": "connectionState",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 198,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 363,
- "name": "connectionState",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Returns the current state of the socket."
- },
- "type": {
- "type": "reference",
- "name": "CONNECTION_STATE"
- }
- }
- ]
- },
- {
- "id": 346,
- "name": "disconnect",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 147,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 347,
- "name": "disconnect",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Disconnects the socket."
- },
- "parameters": [
- {
- "id": 348,
- "name": "code",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A numeric status code to send on disconnect."
- },
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 349,
- "name": "reason",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom reason for the disconnect.\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- },
- {
- "id": 350,
- "name": "getChannels",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 162,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 351,
- "name": "getChannels",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
- }
- }
- ]
- },
- {
- "id": 364,
- "name": "isConnected",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 214,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 365,
- "name": "isConnected",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Returns `true` is the connection is open."
- },
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ]
- },
- {
- "id": 357,
- "name": "log",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 191,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 358,
- "name": "log",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Logs the message.",
- "text": "For customized logging, `this.logger` can be overridden.\n"
- },
- "parameters": [
- {
- "id": 359,
- "name": "kind",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 360,
- "name": "msg",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 361,
- "name": "data",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- },
- {
- "id": 370,
- "name": "push",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 236,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 371,
- "name": "push",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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"
- },
- "parameters": [
- {
- "id": 372,
- "name": "data",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 435,
- "name": "RealtimeMessage",
- "dereferenced": {
- "id": 435,
- "name": "RealtimeMessage",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 28,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 436,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 438,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "''"
+ },
+ {
+ "id": 342,
+ "name": "eventsPerSecondLimitMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 71,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "100"
+ },
+ {
+ "id": 314,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 44,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 315,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 316,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 317,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "DEFAULT_HEADERS"
+ },
+ {
+ "id": 324,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 48,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "30000"
+ },
{
- "fileName": "RealtimeClient.ts",
- "line": 30,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 441,
- "name": "join_ref",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
+ "id": 325,
+ "name": "heartbeatTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 49,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "global.NodeJS.Timer",
+ "package": "@types/node",
+ "name": "Timer"
+ }
+ ]
+ },
+ "defaultValue": "undefined"
+ },
{
- "fileName": "RealtimeClient.ts",
- "line": 33,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 439,
- "name": "payload",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "id": 343,
+ "name": "inThrottle",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 72,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
{
- "fileName": "RealtimeClient.ts",
- "line": 31,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- },
- {
- "id": 440,
- "name": "ref",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "id": 329,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 53,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ },
+ "defaultValue": "noop"
+ },
{
- "fileName": "RealtimeClient.ts",
- "line": 32,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 437,
- "name": "topic",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "id": 318,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 45,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 319,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 320,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 321,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ },
{
- "fileName": "RealtimeClient.ts",
- "line": 29,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [438, 441, 439, 440, 437]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 28,
- "character": 30
- }
- ]
- }
- }
- }
- }
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "void"
- },
- {
- "type": "literal",
- "value": "rate limited"
- }
- ]
- }
- }
- ]
- },
- {
- "id": 355,
- "name": "removeAllChannels",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 177,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 356,
- "name": "removeAllChannels",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 499,
- "name": "RealtimeRemoveChannelResponse"
- }
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 352,
- "name": "removeChannel",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 166,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 353,
- "name": "removeChannel",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 354,
- "name": "channel",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default",
- "dereferenced": {
- "id": 55,
- "name": "RealtimeChannel",
- "kind": 128,
- "kindString": "Class",
- "flags": {},
- "comment": {
- "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
- },
- "children": [
- {
- "id": 66,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 111,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 67,
- "name": "new RealtimeChannel",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {},
- "parameters": [
+ "id": 326,
+ "name": "pendingHeartbeatRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 50,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 332,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 56,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 328,
+ "name": "reconnectTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 52,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 327,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 51,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
+ },
+ {
+ "id": 334,
+ "name": "sendBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 58,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 335,
+ "name": "serializer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 59,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 336,
+ "name": "stateChangeCallbacks",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 60,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 337,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 339,
+ "name": "close",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 62,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 340,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 63,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 341,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 64,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 338,
+ "name": "open",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 61,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [339, 340, 341, 338]
+ }
+ ]
+ }
+ },
+ "defaultValue": "..."
+ },
{
- "id": 68,
- "name": "topic",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 322,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 46,
+ "character": 2
+ }
+ ],
"type": {
"type": "intrinsic",
- "name": "string"
- }
+ "name": "number"
+ },
+ "defaultValue": "DEFAULT_TIMEOUT"
},
{
- "id": 69,
- "name": "params",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 323,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 47,
+ "character": 2
+ }
+ ],
"type": {
- "type": "reference",
- "id": 294,
- "name": "RealtimeChannelOptions",
- "dereferenced": {
- "id": 294,
- "name": "RealtimeChannelOptions",
- "kind": 4194304,
- "kindString": "Type alias",
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "defaultValue": "w3cwebsocket"
+ },
+ {
+ "id": 366,
+ "name": "channel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 218,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 367,
+ "name": "channel",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "sources": [
+ "parameters": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 295,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 368,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "children": [
- {
- "id": 296,
- "name": "config",
- "kind": 1024,
- "kindString": "Property",
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 369,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 2
+ "line": 13,
+ "character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 297,
+ "id": 295,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 298,
- "name": "broadcast",
+ "id": 296,
+ "name": "config",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
- },
+ "flags": {},
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 4
+ "line": 14,
+ "character": 2
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 299,
+ "id": 297,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 301,
- "name": "ack",
+ "id": 298,
+ "name": "broadcast",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
"sources": [
{
"fileName": "RealtimeChannel.ts",
"line": 19,
- "character": 34
+ "character": 4
}
],
"type": {
- "type": "intrinsic",
- "name": "boolean"
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
}
},
{
- "id": 300,
- "name": "self",
+ "id": 302,
+ "name": "presence",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 18
+ "line": 23,
+ "character": 4
}
],
"type": {
- "type": "intrinsic",
- "name": "boolean"
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
}
}
],
@@ -45622,82 +60817,449 @@
{
"title": "Properties",
"kind": 1024,
- "children": [301, 300]
+ "children": [298, 302]
}
],
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 16
+ "line": 14,
+ "character": 10
}
]
}
}
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 344,
+ "name": "connect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 125,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 345,
+ "name": "connect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Connects the socket, unless already connected."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 362,
+ "name": "connectionState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 198,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 363,
+ "name": "connectionState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the current state of the socket."
+ },
+ "type": {
+ "type": "reference",
+ "name": "CONNECTION_STATE"
+ }
+ }
+ ]
+ },
+ {
+ "id": 346,
+ "name": "disconnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 147,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 347,
+ "name": "disconnect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Disconnects the socket."
+ },
+ "parameters": [
+ {
+ "id": 348,
+ "name": "code",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A numeric status code to send on disconnect."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 349,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom reason for the disconnect.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 350,
+ "name": "getChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 162,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 351,
+ "name": "getChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 364,
+ "name": "isConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 214,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 365,
+ "name": "isConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns `true` is the connection is open."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 357,
+ "name": "log",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 191,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 358,
+ "name": "log",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Logs the message.",
+ "text": "For customized logging, `this.logger` can be overridden.\n"
+ },
+ "parameters": [
+ {
+ "id": 359,
+ "name": "kind",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 360,
+ "name": "msg",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 361,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 370,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 236,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 371,
+ "name": "push",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 372,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 435,
+ "name": "RealtimeMessage",
+ "dereferenced": {
+ "id": 435,
+ "name": "RealtimeMessage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 436,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 438,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 30,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
},
{
- "id": 302,
- "name": "presence",
+ "id": 441,
+ "name": "join_ref",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
- "comment": {
- "shortText": "key option is used to track presence payload across clients"
- },
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 4
+ "fileName": "RealtimeClient.ts",
+ "line": 33,
+ "character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 303,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 304,
- "name": "key",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 17
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [304]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 15
- }
- ]
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 439,
+ "name": "payload",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 31,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 440,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 32,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 437,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 29,
+ "character": 2
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
],
@@ -45705,408 +61267,214 @@
{
"title": "Properties",
"kind": 1024,
- "children": [298, 302]
+ "children": [438, 441, 439, 440, 437]
}
],
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 10
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 30
}
]
}
}
}
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [296]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 37
- }
- ]
+ }
}
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "void"
+ },
+ {
+ "type": "literal",
+ "value": "rate limited"
+ }
+ ]
}
}
- },
- "defaultValue": "..."
+ ]
},
{
- "id": 70,
- "name": "socket",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 355,
+ "name": "removeAllChannels",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
- "type": {
- "type": "reference",
- "id": 306,
- "name": "default",
- "dereferenced": {
- "id": 306,
- "name": "RealtimeClient",
- "kind": 128,
- "kindString": "Class",
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 177,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 356,
+ "name": "removeAllChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "children": "[Circular ~.children.5.children]",
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [307]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 311, 312, 333, 331, 330, 313, 342, 314, 324, 325,
- 343, 329, 318, 326, 332, 328, 327, 334, 335, 336,
- 322, 323
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 366, 344, 362, 346, 350, 364, 357, 370, 355, 352,
- 373
- ]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 40,
- "character": 21
- }
- ]
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 71,
- "name": "bindings",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 95,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 72,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 73,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 74,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
+ ]
+ },
+ {
+ "id": 352,
+ "name": "removeChannel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 166,
+ "character": 2
}
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reflection",
- "declaration": {
- "id": 75,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ ],
+ "signatures": [
+ {
+ "id": 353,
+ "name": "removeChannel",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "children": [
+ "parameters": [
{
- "id": 81,
- "name": "callback",
- "kind": 1024,
- "kindString": "Property",
+ "id": 354,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 99,
- "character": 6
- }
- ],
"type": {
"type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 77,
- "name": "filter",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 98,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 78,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 98,
- "character": 14
- }
- ],
- "indexSignature": {
- "id": 79,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 80,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
+ "id": 55,
+ "name": "default",
+ "dereferenced": "[Circular ~.children.6.children.0.signatures.0.parameters.0.type.dereferenced]"
}
- },
- {
- "id": 82,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 100,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
}
- },
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 373,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 263,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 374,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ },
+ "parameters": [
{
- "id": 76,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
+ "id": 375,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 97,
- "character": 6
- }
- ],
+ "comment": {
+ "shortText": "A JWT string.\n"
+ },
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
}
}
],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [81, 77, 82, 76]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 96,
- "character": 19
- }
- ]
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
}
- }
+ ]
}
- }
- }
- },
- "defaultValue": "{}"
- },
- {
- "id": 86,
- "name": "joinPush",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 106,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "name": "default"
- }
- },
- {
- "id": 85,
- "name": "joinedOnce",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 105,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- },
- "defaultValue": "false"
- },
- {
- "id": 91,
- "name": "params",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isPublic": true
- },
- "type": {
- "type": "reference",
- "id": 294,
- "name": "RealtimeChannelOptions"
- },
- "defaultValue": "..."
- },
- {
- "id": 89,
- "name": "presence",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 109,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 1,
- "name": "default"
- }
- },
- {
- "id": 88,
- "name": "pushBuffer",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 108,
- "character": 2
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "name": "default"
- }
- },
- "defaultValue": "[]"
- },
- {
- "id": 87,
- "name": "rejoinTimer",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 107,
- "character": 2
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [307]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 311, 312, 333, 331, 330, 313, 342, 314, 324, 325, 343, 329,
+ 318, 326, 332, 328, 327, 334, 335, 336, 322, 323
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 366, 344, 362, 346, 350, 364, 357, 370, 355, 352, 373
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 40,
+ "character": 21
+ }
+ ]
}
- ],
- "type": {
- "type": "reference",
- "name": "default"
- }
- },
- {
- "id": 92,
- "name": "socket",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isPublic": true
- },
- "type": {
- "type": "reference",
- "id": 306,
- "name": "default"
}
},
{
@@ -46814,7 +62182,8 @@
"type": {
"type": "reference",
"id": 448,
- "name": "T"
+ "name": "T",
+ "dereferenced": {}
}
},
{
@@ -47080,7 +62449,8 @@
"type": {
"type": "reference",
"id": 448,
- "name": "T"
+ "name": "T",
+ "dereferenced": {}
}
},
{
@@ -47346,7 +62716,8 @@
"type": {
"type": "reference",
"id": 448,
- "name": "T"
+ "name": "T",
+ "dereferenced": {}
}
},
{
@@ -47612,7 +62983,8 @@
"type": {
"type": "reference",
"id": 448,
- "name": "T"
+ "name": "T",
+ "dereferenced": {}
}
},
{
@@ -48409,2406 +63781,3498 @@
]
}
}
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 499,
- "name": "RealtimeRemoveChannelResponse"
- }
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
- }
- ]
- },
- {
- "id": 373,
- "name": "setAuth",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 263,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 374,
- "name": "setAuth",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
- },
- "parameters": [
+ },
{
- "id": 375,
- "name": "token",
+ "id": 31,
+ "name": "opts",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
"comment": {
- "shortText": "A JWT string.\n"
+ "shortText": "The options,\n for example `{events: {state: 'state', diff: 'diff'}}`\n"
},
"type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
+ "type": "reference",
+ "qualifiedName": "PresenceOpts",
+ "package": "@types/phoenix",
+ "name": "PresenceOpts"
}
}
],
"type": {
- "type": "intrinsic",
- "name": "void"
+ "type": "reference",
+ "id": 1,
+ "name": "default"
}
}
]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [307]
},
{
- "title": "Properties",
+ "id": 35,
+ "name": "caller",
"kind": 1024,
- "children": [
- 311, 312, 333, 331, 330, 313, 342, 314, 324, 325, 343, 329, 318, 326, 332, 328, 327,
- 334, 335, 336, 322, 323
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [366, 344, 362, 346, 350, 364, 357, 370, 355, 352, 373]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 40,
- "character": 21
- }
- ]
- },
- {
- "id": 1,
- "name": "RealtimePresence",
- "kind": 128,
- "kindString": "Class",
- "flags": {},
- "children": [
- {
- "id": 28,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
+ "kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "RealtimePresence.ts",
- "line": 83,
+ "line": 66,
"character": 2
}
],
- "signatures": [
- {
- "id": 29,
- "name": "new RealtimePresence",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {},
- "comment": {
- "shortText": "Initializes the Presence."
- },
- "parameters": [
- {
- "id": 30,
- "name": "channel",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The RealtimeChannel"
- },
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default",
- "dereferenced": {
- "id": 55,
- "name": "RealtimeChannel",
- "kind": 128,
- "kindString": "Class",
- "flags": {},
- "comment": {
- "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
- },
- "children": [
- {
- "id": 66,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 111,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 67,
- "name": "new RealtimeChannel",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {},
- "parameters": [
- {
- "id": 68,
- "name": "topic",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 69,
- "name": "params",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 294,
- "name": "RealtimeChannelOptions",
- "dereferenced": {
- "id": 294,
- "name": "RealtimeChannelOptions",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 295,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 296,
- "name": "config",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 297,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 298,
- "name": "broadcast",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 4
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 299,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 301,
- "name": "ack",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 34
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 300,
- "name": "self",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 18
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [301, 300]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 16
- }
- ]
- }
- }
- },
- {
- "id": 302,
- "name": "presence",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "key option is used to track presence payload across clients"
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 4
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 303,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 304,
- "name": "key",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 17
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [304]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 15
- }
- ]
- }
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [298, 302]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 10
- }
- ]
- }
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [296]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 37
- }
- ]
- }
- }
- }
- },
- "defaultValue": "..."
- },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 36,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 37,
+ "name": "onJoin",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 67,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "PresenceOnJoinCallback",
+ "package": "@types/phoenix",
+ "name": "PresenceOnJoinCallback"
+ }
+ },
+ {
+ "id": 38,
+ "name": "onLeave",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 68,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "PresenceOnLeaveCallback",
+ "package": "@types/phoenix",
+ "name": "PresenceOnLeaveCallback"
+ }
+ },
+ {
+ "id": 39,
+ "name": "onSync",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 69,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 40,
+ "name": "onSync",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [37, 38]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [39]
+ }
+ ]
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 41,
+ "name": "channel",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": {
+ "id": 55,
+ "name": "RealtimeChannel",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "comment": {
+ "shortText": "A channel is the basic building block of Realtime\nand narrows the scope of data flow to subscribed clients.\nYou can think of a channel as a chatroom where participants are able to see who's online\nand send and receive messages."
+ },
+ "children": [
+ {
+ "id": 66,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 111,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 67,
+ "name": "new RealtimeChannel",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 68,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 69,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 70,
- "name": "socket",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 306,
- "name": "default",
- "dereferenced": {
- "id": 306,
- "name": "RealtimeClient",
- "kind": 128,
- "kindString": "Class",
- "flags": {},
- "children": [
- {
- "id": 307,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 88,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 308,
- "name": "new RealtimeClient",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {},
- "comment": {
- "shortText": "Initializes the Socket."
- },
- "parameters": [
- {
- "id": 309,
- "name": "endPoint",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 310,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 418,
- "name": "RealtimeClientOptions",
- "dereferenced": {
- "id": 418,
- "name": "RealtimeClientOptions",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 16,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 419,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 425,
- "name": "decode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 22,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 424,
- "name": "encode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 21,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 427,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 24,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 428,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 24,
- "character": 12
- }
- ],
- "indexSignature": {
- "id": 429,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 430,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- }
- }
- },
- {
- "id": 422,
- "name": "heartbeatIntervalMs",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 19,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 423,
- "name": "logger",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 20,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 431,
- "name": "params",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 25,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 432,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 25,
- "character": 11
- }
- ],
- "indexSignature": {
- "id": 433,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 434,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- },
- {
- "id": 426,
- "name": "reconnectAfterMs",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 23,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 421,
- "name": "timeout",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 18,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
- {
- "id": 420,
- "name": "transport",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 17,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "WebSocket",
- "package": "typescript",
- "name": "WebSocket"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 425, 424, 427, 422, 423, 431,
- 426, 421, 420
- ]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 16,
- "character": 36
- }
- ]
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
}
}
- }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
}
- ],
- "type": {
- "type": "reference",
- "id": 306,
- "name": "default"
}
- }
- ]
- },
- {
- "id": 311,
- "name": "accessToken",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ },
{
- "fileName": "RealtimeClient.ts",
- "line": 41,
- "character": 2
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- {
- "type": "intrinsic",
- "name": "string"
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
}
- ]
- },
- "defaultValue": "null"
- },
- {
- "id": 312,
- "name": "channels",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 42,
- "character": 2
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
- },
- "defaultValue": "[]"
- },
- {
- "id": 333,
- "name": "conn",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 57,
- "character": 2
}
],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "reference",
- "qualifiedName": "WebSocket",
- "package": "typescript",
- "name": "WebSocket"
- }
- ]
- },
- "defaultValue": "null"
- },
- {
- "id": 331,
- "name": "decode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "groups": [
{
- "fileName": "RealtimeClient.ts",
- "line": 55,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
}
],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 330,
- "name": "encode",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
"sources": [
{
- "fileName": "RealtimeClient.ts",
- "line": 54,
- "character": 2
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
}
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 70,
+ "name": "socket",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default",
+ "dereferenced": {
+ "id": 306,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 307,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 88,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 308,
+ "name": "new RealtimeClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Initializes the Socket."
+ },
+ "parameters": [
{
- "id": 313,
+ "id": 309,
"name": "endPoint",
- "kind": 1024,
- "kindString": "Property",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 43,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "comment": {
+ "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
},
- "defaultValue": "''"
- },
- {
- "id": 342,
- "name": "eventsPerSecondLimitMs",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 71,
- "character": 2
- }
- ],
"type": {
"type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "100"
+ "name": "string"
+ }
},
{
- "id": 314,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
+ "id": 310,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {
"isOptional": true
},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 44,
- "character": 2
- }
- ],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 315,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reference",
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "dereferenced": {
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "indexSignature": {
- "id": 316,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 317,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 419,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 425,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 22,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 424,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 21,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 427,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 428,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "indexSignature": {
+ "id": 429,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 430,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 422,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 19,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 423,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 20,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 431,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 432,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 11
+ }
+ ],
+ "indexSignature": {
+ "id": 433,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 434,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 426,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 23,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 421,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 18,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 420,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 17,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
}
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 425, 424, 427, 422, 423, 431, 426, 421,
+ 420
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 36
+ }
+ ]
}
}
}
- },
- "defaultValue": "DEFAULT_HEADERS"
- },
- {
- "id": 324,
- "name": "heartbeatIntervalMs",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 48,
- "character": 2
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 311,
+ "name": "accessToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 41,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 312,
+ "name": "channels",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 42,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 333,
+ "name": "conn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 57,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 331,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 55,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 330,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 54,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 313,
+ "name": "endPoint",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 43,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "''"
+ },
+ {
+ "id": 342,
+ "name": "eventsPerSecondLimitMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 71,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "100"
+ },
+ {
+ "id": 314,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 44,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 315,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 316,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 317,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "30000"
- },
- {
- "id": 325,
- "name": "heartbeatTimer",
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "DEFAULT_HEADERS"
+ },
+ {
+ "id": 324,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 48,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "30000"
+ },
+ {
+ "id": 325,
+ "name": "heartbeatTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 49,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "global.NodeJS.Timer",
+ "package": "@types/node",
+ "name": "Timer"
+ }
+ ]
+ },
+ "defaultValue": "undefined"
+ },
+ {
+ "id": 343,
+ "name": "inThrottle",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 72,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 329,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 53,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ },
+ "defaultValue": "noop"
+ },
+ {
+ "id": 318,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 45,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 319,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 320,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 321,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 326,
+ "name": "pendingHeartbeatRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 50,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 332,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 56,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 328,
+ "name": "reconnectTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 52,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 327,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 51,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
+ },
+ {
+ "id": 334,
+ "name": "sendBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 58,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 335,
+ "name": "serializer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 59,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 336,
+ "name": "stateChangeCallbacks",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 60,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 337,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 339,
+ "name": "close",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 49,
- "character": 2
+ "line": 62,
+ "character": 4
}
],
"type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "reference",
- "qualifiedName": "global.NodeJS.Timer",
- "package": "@types/node",
- "name": "Timer"
- }
- ]
- },
- "defaultValue": "undefined"
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
},
{
- "id": 343,
- "name": "inThrottle",
+ "id": 340,
+ "name": "error",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 72,
- "character": 2
+ "line": 63,
+ "character": 4
}
],
"type": {
- "type": "intrinsic",
- "name": "boolean"
- },
- "defaultValue": "false"
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
},
{
- "id": 329,
- "name": "logger",
+ "id": 341,
+ "name": "message",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 53,
- "character": 2
+ "line": 64,
+ "character": 4
}
],
"type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- },
- "defaultValue": "noop"
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
},
{
- "id": 318,
- "name": "params",
+ "id": 338,
+ "name": "open",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 45,
- "character": 2
+ "line": 61,
+ "character": 4
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 319,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [339, 340, 341, 338]
+ }
+ ]
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 322,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 46,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "DEFAULT_TIMEOUT"
+ },
+ {
+ "id": 323,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 47,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "defaultValue": "w3cwebsocket"
+ },
+ {
+ "id": 366,
+ "name": "channel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 218,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 367,
+ "name": "channel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 368,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 369,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "indexSignature": {
- "id": 320,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 321,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
}
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
}
}
}
},
- "defaultValue": "{}"
- },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 344,
+ "name": "connect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 125,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 345,
+ "name": "connect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Connects the socket, unless already connected."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 362,
+ "name": "connectionState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 198,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 363,
+ "name": "connectionState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the current state of the socket."
+ },
+ "type": {
+ "type": "reference",
+ "name": "CONNECTION_STATE"
+ }
+ }
+ ]
+ },
+ {
+ "id": 346,
+ "name": "disconnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 147,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 347,
+ "name": "disconnect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Disconnects the socket."
+ },
+ "parameters": [
{
- "id": 326,
- "name": "pendingHeartbeatRef",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 50,
- "character": 2
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
+ "id": 348,
+ "name": "code",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
},
- "defaultValue": "null"
+ "comment": {
+ "shortText": "A numeric status code to send on disconnect."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
},
{
- "id": 332,
- "name": "reconnectAfterMs",
- "kind": 1024,
- "kindString": "Property",
+ "id": 349,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom reason for the disconnect.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 350,
+ "name": "getChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 162,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 351,
+ "name": "getChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 364,
+ "name": "isConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 214,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 365,
+ "name": "isConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns `true` is the connection is open."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 357,
+ "name": "log",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 191,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 358,
+ "name": "log",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Logs the message.",
+ "text": "For customized logging, `this.logger` can be overridden.\n"
+ },
+ "parameters": [
+ {
+ "id": 359,
+ "name": "kind",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 56,
- "character": 2
- }
- ],
"type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 328,
- "name": "reconnectTimer",
- "kind": 1024,
- "kindString": "Property",
+ "id": 360,
+ "name": "msg",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 52,
- "character": 2
- }
- ],
"type": {
- "type": "reference",
- "name": "default"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 327,
- "name": "ref",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 51,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
+ "id": 361,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
},
- "defaultValue": "0"
- },
- {
- "id": 334,
- "name": "sendBuffer",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 58,
- "character": 2
- }
- ],
"type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- "defaultValue": "[]"
- },
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 370,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 236,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 371,
+ "name": "push",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
{
- "id": 335,
- "name": "serializer",
- "kind": 1024,
- "kindString": "Property",
+ "id": 372,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 59,
- "character": 2
- }
- ],
"type": {
"type": "reference",
- "name": "default"
- },
- "defaultValue": "..."
- },
- {
- "id": 336,
- "name": "stateChangeCallbacks",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 60,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 337,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "id": 435,
+ "name": "RealtimeMessage",
+ "dereferenced": {
+ "id": 435,
+ "name": "RealtimeMessage",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 339,
- "name": "close",
- "kind": 1024,
- "kindString": "Property",
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 436,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
+ "children": [
{
- "fileName": "RealtimeClient.ts",
- "line": 62,
- "character": 4
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- }
- },
- {
- "id": 340,
- "name": "error",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "id": 438,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 30,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
{
- "fileName": "RealtimeClient.ts",
- "line": 63,
- "character": 4
+ "id": 441,
+ "name": "join_ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 33,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 439,
+ "name": "payload",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 31,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 440,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 32,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 437,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 29,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- }
- },
- {
- "id": 341,
- "name": "message",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
+ "groups": [
{
- "fileName": "RealtimeClient.ts",
- "line": 64,
- "character": 4
+ "title": "Properties",
+ "kind": 1024,
+ "children": [438, 441, 439, 440, 437]
}
],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- }
- },
- {
- "id": 338,
- "name": "open",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 61,
- "character": 4
- }
- ],
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
+ "line": 28,
+ "character": 30
}
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [339, 340, 341, 338]
+ ]
}
- ]
+ }
}
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "void"
},
- "defaultValue": "..."
- },
+ {
+ "type": "literal",
+ "value": "rate limited"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 355,
+ "name": "removeAllChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 177,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 356,
+ "name": "removeAllChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 352,
+ "name": "removeChannel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 166,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 353,
+ "name": "removeChannel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
{
- "id": 322,
- "name": "timeout",
- "kind": 1024,
- "kindString": "Property",
+ "id": 354,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 46,
- "character": 2
- }
- ],
"type": {
- "type": "intrinsic",
- "name": "number"
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": "[Circular ~.children.6.children.2.type.dereferenced]"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 373,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 263,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 374,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ },
+ "parameters": [
+ {
+ "id": 375,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A JWT string.\n"
},
- "defaultValue": "DEFAULT_TIMEOUT"
- },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [307]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 311, 312, 333, 331, 330, 313, 342, 314, 324, 325, 343, 329,
+ 318, 326, 332, 328, 327, 334, 335, 336, 322, 323
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 366, 344, 362, 346, 350, 364, 357, 370, 355, 352, 373
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 40,
+ "character": 21
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 71,
+ "name": "bindings",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 95,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 72,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 73,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 74,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reflection",
+ "declaration": {
+ "id": 75,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 81,
+ "name": "callback",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 99,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 77,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 98,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 78,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
{
- "id": 323,
- "name": "transport",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 47,
- "character": 2
+ "fileName": "RealtimeChannel.ts",
+ "line": 98,
+ "character": 14
+ }
+ ],
+ "indexSignature": {
+ "id": 79,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 80,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- },
- "defaultValue": "w3cwebsocket"
- },
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 82,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 100,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 76,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 97,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [81, 77, 82, 76]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 96,
+ "character": 19
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 86,
+ "name": "joinPush",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 106,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 85,
+ "name": "joinedOnce",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 105,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 91,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 297,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 298,
+ "name": "broadcast",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
+ "sources": [
{
- "id": 366,
- "name": "channel",
- "kind": 2048,
- "kindString": "Method",
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 218,
- "character": 2
- }
- ],
- "signatures": [
+ "children": [
{
- "id": 367,
- "name": "channel",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 368,
- "name": "topic",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 369,
- "name": "params",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 294,
- "name": "RealtimeChannelOptions",
- "dereferenced": {
- "id": 294,
- "name": "RealtimeChannelOptions",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 295,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 296,
- "name": "config",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 297,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 298,
- "name": "broadcast",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 4
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 299,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 301,
- "name": "ack",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 34
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- },
- {
- "id": 300,
- "name": "self",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 18
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 301, 300
- ]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 19,
- "character": 16
- }
- ]
- }
- }
- },
- {
- "id": 302,
- "name": "presence",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "key option is used to track presence payload across clients"
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 4
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 303,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 304,
- "name": "key",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 17
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [304]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 23,
- "character": 15
- }
- ]
- }
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [298, 302]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 14,
- "character": 10
- }
- ]
- }
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [296]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 13,
- "character": 37
- }
- ]
- }
- }
- }
- },
- "defaultValue": "..."
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
}
],
"type": {
- "type": "reference",
- "id": 55,
- "name": "default"
+ "type": "intrinsic",
+ "name": "boolean"
}
- }
- ]
- },
- {
- "id": 344,
- "name": "connect",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 125,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 345,
- "name": "connect",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Connects the socket, unless already connected."
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
"type": {
"type": "intrinsic",
- "name": "void"
+ "name": "boolean"
}
}
- ]
- },
- {
- "id": 362,
- "name": "connectionState",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
+ ],
+ "groups": [
{
- "fileName": "RealtimeClient.ts",
- "line": 198,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
}
],
- "signatures": [
+ "sources": [
{
- "id": 363,
- "name": "connectionState",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Returns the current state of the socket."
- },
- "type": {
- "type": "reference",
- "name": "CONNECTION_STATE"
- }
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
}
]
- },
+ }
+ }
+ },
+ {
+ "id": 302,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
+ "sources": [
{
- "id": 346,
- "name": "disconnect",
- "kind": 2048,
- "kindString": "Method",
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 147,
- "character": 2
- }
- ],
- "signatures": [
+ "children": [
{
- "id": 347,
- "name": "disconnect",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Disconnects the socket."
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- "parameters": [
- {
- "id": 348,
- "name": "code",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A numeric status code to send on disconnect."
- },
- "type": {
- "type": "intrinsic",
- "name": "number"
- }
- },
+ "sources": [
{
- "id": 349,
- "name": "reason",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "A custom reason for the disconnect.\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
}
],
"type": {
"type": "intrinsic",
- "name": "void"
+ "name": "string"
}
}
- ]
- },
- {
- "id": 350,
- "name": "getChannels",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
+ ],
+ "groups": [
{
- "fileName": "RealtimeClient.ts",
- "line": 162,
- "character": 2
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
}
],
- "signatures": [
+ "sources": [
{
- "id": 351,
- "name": "getChannels",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "type": {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
- }
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
}
]
- },
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [298, 302]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
+ }
+ }
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 89,
+ "name": "presence",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 109,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "default",
+ "dereferenced": {
+ "id": 1,
+ "name": "RealtimePresence",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": "[Circular ~.children.6.children]",
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [28]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [35, 41, 34, 33, 32]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 62,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 88,
+ "name": "pushBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 108,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 87,
+ "name": "rejoinTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 107,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "default"
+ }
+ },
+ {
+ "id": 92,
+ "name": "socket",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 306,
+ "name": "default",
+ "dereferenced": {
+ "id": 306,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 307,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 88,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 308,
+ "name": "new RealtimeClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Initializes the Socket."
+ },
+ "parameters": [
+ {
+ "id": 309,
+ "name": "endPoint",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 310,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "dereferenced": {
+ "id": 418,
+ "name": "RealtimeClientOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
{
- "id": 364,
- "name": "isConnected",
- "kind": 2048,
- "kindString": "Method",
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 419,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 214,
- "character": 2
- }
- ],
- "signatures": [
+ "children": [
{
- "id": 365,
- "name": "isConnected",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Returns `true` is the connection is open."
+ "id": 425,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 22,
+ "character": 2
+ }
+ ],
"type": {
- "type": "intrinsic",
- "name": "boolean"
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
}
- }
- ]
- },
- {
- "id": 357,
- "name": "log",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 191,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 358,
- "name": "log",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Logs the message.",
- "text": "For customized logging, `this.logger` can be overridden.\n"
- },
- "parameters": [
- {
- "id": 359,
- "name": "kind",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 360,
- "name": "msg",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
+ "id": 424,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 361,
- "name": "data",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
+ "fileName": "RealtimeClient.ts",
+ "line": 21,
+ "character": 2
}
],
"type": {
- "type": "intrinsic",
- "name": "void"
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
}
- }
- ]
- },
- {
- "id": 370,
- "name": "push",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 236,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 371,
- "name": "push",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "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"
+ "id": 427,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- "parameters": [
+ "sources": [
{
- "id": 372,
- "name": "data",
- "kind": 32768,
- "kindString": "Parameter",
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 428,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "type": {
- "type": "reference",
- "id": 435,
- "name": "RealtimeMessage",
- "dereferenced": {
- "id": 435,
- "name": "RealtimeMessage",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 28,
- "character": 12
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 436,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 438,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 30,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 441,
- "name": "join_ref",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 33,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 439,
- "name": "payload",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 31,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- },
- {
- "id": 440,
- "name": "ref",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 32,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 437,
- "name": "topic",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 29,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 438, 441, 439, 440, 437
- ]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 28,
- "character": 30
- }
- ]
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "indexSignature": {
+ "id": 429,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 430,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
}
+ }
+ },
+ {
+ "id": 422,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 19,
+ "character": 2
+ }
],
"type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "void"
- },
- {
- "type": "literal",
- "value": "rate limited"
- }
- ]
+ "type": "intrinsic",
+ "name": "number"
}
- }
- ]
- },
- {
- "id": 355,
- "name": "removeAllChannels",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 177,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 356,
- "name": "removeAllChannels",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
+ "id": 423,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 20,
+ "character": 2
+ }
+ ],
"type": {
"type": "reference",
- "typeArguments": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 499,
- "name": "RealtimeRemoveChannelResponse"
- }
- }
- ],
- "qualifiedName": "Promise",
+ "qualifiedName": "Function",
"package": "typescript",
- "name": "Promise"
+ "name": "Function"
}
- }
- ]
- },
- {
- "id": 352,
- "name": "removeChannel",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 166,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 353,
- "name": "removeChannel",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
+ "id": 431,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 354,
- "name": "channel",
- "kind": 32768,
- "kindString": "Parameter",
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 432,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default",
- "dereferenced": "[Circular ~.children.6.children.0.signatures.0.parameters.0.type.dereferenced]"
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 11
+ }
+ ],
+ "indexSignature": {
+ "id": 433,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 434,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
}
}
+ }
+ },
+ {
+ "id": 426,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 23,
+ "character": 2
+ }
],
"type": {
"type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 499,
- "name": "RealtimeRemoveChannelResponse"
- }
- ],
- "qualifiedName": "Promise",
+ "qualifiedName": "Function",
"package": "typescript",
- "name": "Promise"
+ "name": "Function"
}
- }
- ]
- },
- {
- "id": 373,
- "name": "setAuth",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 263,
- "character": 2
- }
- ],
- "signatures": [
+ },
{
- "id": 374,
- "name": "setAuth",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "comment": {
- "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ "id": 421,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
},
- "parameters": [
+ "sources": [
{
- "id": 375,
- "name": "token",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "comment": {
- "shortText": "A JWT string.\n"
- },
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": null
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
+ "fileName": "RealtimeClient.ts",
+ "line": 18,
+ "character": 2
}
],
"type": {
"type": "intrinsic",
- "name": "void"
+ "name": "number"
+ }
+ },
+ {
+ "id": 420,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 17,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
}
}
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 425, 424, 427, 422, 423, 431, 426, 421, 420
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 36
+ }
]
}
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [307]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 311, 312, 333, 331, 330, 313, 342, 314, 324, 325,
- 343, 329, 318, 326, 332, 328, 327, 334, 335, 336,
- 322, 323
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 366, 344, 362, 346, 350, 364, 357, 370, 355, 352,
- 373
- ]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeClient.ts",
- "line": 40,
- "character": 21
- }
- ]
+ }
}
}
}
],
"type": {
"type": "reference",
- "id": 55,
+ "id": 306,
"name": "default"
}
}
]
},
{
- "id": 71,
- "name": "bindings",
+ "id": 311,
+ "name": "accessToken",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 95,
+ "fileName": "RealtimeClient.ts",
+ "line": 41,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 312,
+ "name": "channels",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 42,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 333,
+ "name": "conn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 57,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 331,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 55,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 330,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 54,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 313,
+ "name": "endPoint",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 43,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "''"
+ },
+ {
+ "id": 342,
+ "name": "eventsPerSecondLimitMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 71,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "100"
+ },
+ {
+ "id": 314,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 44,
"character": 2
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 72,
+ "id": 315,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"indexSignature": {
- "id": 73,
+ "id": 316,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
"flags": {},
"parameters": [
{
- "id": 74,
+ "id": 317,
"name": "key",
"kind": 32768,
"flags": {},
@@ -50819,232 +67283,248 @@
}
],
"type": {
- "type": "array",
- "elementType": {
- "type": "reflection",
- "declaration": {
- "id": 75,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 81,
- "name": "callback",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 99,
- "character": 6
- }
- ],
- "type": {
- "type": "reference",
- "qualifiedName": "Function",
- "package": "typescript",
- "name": "Function"
- }
- },
- {
- "id": 77,
- "name": "filter",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 98,
- "character": 6
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 78,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 98,
- "character": 14
- }
- ],
- "indexSignature": {
- "id": 79,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 80,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- },
- {
- "id": 82,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 100,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 76,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 97,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [81, 77, 82, 76]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 96,
- "character": 19
- }
- ]
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "defaultValue": "DEFAULT_HEADERS"
+ },
+ {
+ "id": 324,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 48,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "30000"
+ },
+ {
+ "id": 325,
+ "name": "heartbeatTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 49,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "global.NodeJS.Timer",
+ "package": "@types/node",
+ "name": "Timer"
+ }
+ ]
+ },
+ "defaultValue": "undefined"
+ },
+ {
+ "id": 343,
+ "name": "inThrottle",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 72,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 329,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 53,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ },
+ "defaultValue": "noop"
+ },
+ {
+ "id": 318,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 45,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 319,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 320,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 321,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
- }
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 326,
+ "name": "pendingHeartbeatRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 50,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
},
- "defaultValue": "{}"
+ "defaultValue": "null"
},
{
- "id": 86,
- "name": "joinPush",
+ "id": 332,
+ "name": "reconnectAfterMs",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 106,
+ "fileName": "RealtimeClient.ts",
+ "line": 56,
"character": 2
}
],
"type": {
"type": "reference",
- "name": "default"
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
}
},
{
- "id": 85,
- "name": "joinedOnce",
+ "id": 328,
+ "name": "reconnectTimer",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 105,
+ "fileName": "RealtimeClient.ts",
+ "line": 52,
"character": 2
}
],
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- },
- "defaultValue": "false"
- },
- {
- "id": 91,
- "name": "params",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isPublic": true
- },
"type": {
"type": "reference",
- "id": 294,
- "name": "RealtimeChannelOptions"
- },
- "defaultValue": "..."
+ "name": "default"
+ }
},
{
- "id": 89,
- "name": "presence",
+ "id": 327,
+ "name": "ref",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 109,
+ "fileName": "RealtimeClient.ts",
+ "line": 51,
"character": 2
}
],
"type": {
- "type": "reference",
- "id": 1,
- "name": "default"
- }
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
},
{
- "id": 88,
- "name": "pushBuffer",
+ "id": 334,
+ "name": "sendBuffer",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 108,
+ "fileName": "RealtimeClient.ts",
+ "line": 58,
"character": 2
}
],
@@ -51052,243 +67532,430 @@
"type": "array",
"elementType": {
"type": "reference",
- "name": "default"
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
}
},
"defaultValue": "[]"
},
{
- "id": 87,
- "name": "rejoinTimer",
+ "id": 335,
+ "name": "serializer",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 107,
+ "fileName": "RealtimeClient.ts",
+ "line": 59,
"character": 2
}
],
"type": {
"type": "reference",
"name": "default"
- }
- },
- {
- "id": 92,
- "name": "socket",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isPublic": true
},
- "type": {
- "type": "reference",
- "id": 306,
- "name": "default"
- }
+ "defaultValue": "..."
},
{
- "id": 84,
- "name": "state",
+ "id": 336,
+ "name": "stateChangeCallbacks",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 104,
+ "fileName": "RealtimeClient.ts",
+ "line": 60,
"character": 2
}
],
"type": {
- "type": "reference",
- "name": "CHANNEL_STATES"
+ "type": "reflection",
+ "declaration": {
+ "id": 337,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 339,
+ "name": "close",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 62,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 340,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 63,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 341,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 64,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 338,
+ "name": "open",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 61,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [339, 340, 341, 338]
+ }
+ ]
+ }
},
- "defaultValue": "CHANNEL_STATES.closed"
+ "defaultValue": "..."
},
{
- "id": 83,
+ "id": 322,
"name": "timeout",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 103,
+ "fileName": "RealtimeClient.ts",
+ "line": 46,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "number"
- }
+ },
+ "defaultValue": "DEFAULT_TIMEOUT"
},
{
- "id": 90,
- "name": "topic",
+ "id": 323,
+ "name": "transport",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isPublic": true
- },
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 47,
+ "character": 2
+ }
+ ],
"type": {
"type": "intrinsic",
- "name": "string"
- }
+ "name": "any"
+ },
+ "defaultValue": "w3cwebsocket"
},
{
- "id": 119,
- "name": "on",
+ "id": 366,
+ "name": "channel",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 315,
+ "fileName": "RealtimeClient.ts",
+ "line": 218,
"character": 2
}
],
"signatures": [
{
- "id": 120,
- "name": "on",
+ "id": 367,
+ "name": "channel",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
- "comment": {
- "shortText": "Listen to messages."
- },
"parameters": [
{
- "id": 121,
- "name": "type",
+ "id": 368,
+ "name": "topic",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
- "type": "literal",
- "value": "broadcast"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 122,
- "name": "filter",
+ "id": 369,
+ "name": "params",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 123,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "reference",
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "dereferenced": {
+ "id": 294,
+ "name": "RealtimeChannelOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 124,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 317,
- "character": 14
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 12
}
],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [124]
- }
- ]
- }
- }
- },
- {
- "id": 125,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 126,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 127,
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 295,
"name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "parameters": [
+ "children": [
{
- "id": 128,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 296,
+ "name": "config",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 2
+ }
+ ],
"type": {
"type": "reflection",
"declaration": {
- "id": 129,
+ "id": 297,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 131,
- "name": "event",
+ "id": 298,
+ "name": "broadcast",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "self option enables client to receive message it broadcast\nack option instructs server to acknowledge that broadcast message was received"
+ },
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 320,
- "character": 6
+ "line": 19,
+ "character": 4
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reflection",
+ "declaration": {
+ "id": 299,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "ack",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 300,
+ "name": "self",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 19,
+ "character": 16
+ }
+ ]
+ }
}
},
{
- "id": 130,
- "name": "type",
+ "id": 302,
+ "name": "presence",
"kind": 1024,
"kindString": "Property",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "key option is used to track presence payload across clients"
+ },
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 319,
- "character": 6
+ "line": 23,
+ "character": 4
}
],
"type": {
- "type": "literal",
- "value": "broadcast"
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 304,
+ "name": "key",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 23,
+ "character": 15
+ }
+ ]
+ }
}
}
],
@@ -51296,44 +67963,39 @@
{
"title": "Properties",
"kind": 1024,
- "children": [131, 130]
+ "children": [298, 302]
}
],
- "indexSignature": {
- "id": 132,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 133,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 14,
+ "character": 10
}
- }
+ ]
}
}
}
],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [296]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 13,
+ "character": 37
+ }
+ ]
}
- ]
+ }
}
- }
+ },
+ "defaultValue": "..."
}
],
"type": {
@@ -51341,465 +68003,340 @@
"id": 55,
"name": "default"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 344,
+ "name": "connect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
{
- "id": 134,
- "name": "on",
+ "fileName": "RealtimeClient.ts",
+ "line": 125,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 345,
+ "name": "connect",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
- "parameters": [
- {
- "id": 135,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "literal",
- "value": "presence"
- }
- },
- {
- "id": 136,
- "name": "filter",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 137,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 138,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 326,
- "character": 14
- }
- ],
- "type": {
- "type": "literal",
- "value": "sync"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [138]
- }
- ]
- }
- }
- },
- {
- "id": 139,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 140,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 141,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
- }
- }
- ],
+ "comment": {
+ "shortText": "Connects the socket, unless already connected."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 362,
+ "name": "connectionState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 198,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 363,
+ "name": "connectionState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the current state of the socket."
+ },
"type": {
"type": "reference",
- "id": 55,
- "name": "default"
+ "name": "CONNECTION_STATE"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 346,
+ "name": "disconnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
{
- "id": 142,
- "name": "on",
+ "fileName": "RealtimeClient.ts",
+ "line": 147,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 347,
+ "name": "disconnect",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
+ "comment": {
+ "shortText": "Disconnects the socket."
+ },
"parameters": [
{
- "id": 143,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "literal",
- "value": "presence"
- }
- },
- {
- "id": 144,
- "name": "filter",
+ "id": 348,
+ "name": "code",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A numeric status code to send on disconnect."
+ },
"type": {
- "type": "reflection",
- "declaration": {
- "id": 145,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 146,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 331,
- "character": 14
- }
- ],
- "type": {
- "type": "literal",
- "value": "join"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [146]
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "number"
}
},
{
- "id": 147,
- "name": "callback",
+ "id": 349,
+ "name": "reason",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom reason for the disconnect.\n"
+ },
"type": {
- "type": "reflection",
- "declaration": {
- "id": 148,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 149,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 150,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 483,
- "name": "RealtimePresenceJoinPayload"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
}
}
],
"type": {
- "type": "reference",
- "id": 55,
- "name": "default"
+ "type": "intrinsic",
+ "name": "void"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 350,
+ "name": "getChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
{
- "id": 151,
- "name": "on",
+ "fileName": "RealtimeClient.ts",
+ "line": 162,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 351,
+ "name": "getChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 364,
+ "name": "isConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 214,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 365,
+ "name": "isConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns `true` is the connection is open."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 357,
+ "name": "log",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 191,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 358,
+ "name": "log",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
+ "comment": {
+ "shortText": "Logs the message.",
+ "text": "For customized logging, `this.logger` can be overridden.\n"
+ },
"parameters": [
{
- "id": 152,
- "name": "type",
+ "id": 359,
+ "name": "kind",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
- "type": "literal",
- "value": "presence"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 153,
- "name": "filter",
+ "id": 360,
+ "name": "msg",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 154,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 155,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 336,
- "character": 14
- }
- ],
- "type": {
- "type": "literal",
- "value": "leave"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [155]
- }
- ]
- }
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 156,
- "name": "callback",
+ "id": 361,
+ "name": "data",
"kind": 32768,
"kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 157,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 158,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 159,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 489,
- "name": "RealtimePresenceLeavePayload"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
}
}
],
"type": {
- "type": "reference",
- "id": 55,
- "name": "default"
+ "type": "intrinsic",
+ "name": "void"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 370,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
{
- "id": 160,
- "name": "on",
+ "fileName": "RealtimeClient.ts",
+ "line": 236,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 371,
+ "name": "push",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
- "typeParameter": [
- {
- "id": 164,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 161,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 162,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 163,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- }
- ],
+ "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"
+ },
"parameters": [
{
- "id": 165,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "literal",
- "value": "postgres_changes"
- }
- },
- {
- "id": 166,
- "name": "filter",
+ "id": 372,
+ "name": "data",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 442,
- "typeArguments": [
- {
- "type": "literal",
- "value": "*"
- }
- ],
- "name": "RealtimePostgresChangesFilter",
+ "id": 435,
+ "name": "RealtimeMessage",
"dereferenced": {
- "id": 442,
- "name": "RealtimePostgresChangesFilter",
+ "id": 435,
+ "name": "RealtimeMessage",
"kind": 4194304,
"kindString": "Type alias",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 60,
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
"character": 12
}
],
- "typeParameter": [
- {
- "id": 448,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
"type": {
"type": "reflection",
"declaration": {
- "id": 443,
+ "id": 436,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 444,
+ "id": 438,
"name": "event",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 61,
+ "fileName": "RealtimeClient.ts",
+ "line": 30,
"character": 2
}
],
"type": {
- "type": "reference",
- "id": 448,
- "name": "T"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 447,
- "name": "filter",
+ "id": 441,
+ "name": "join_ref",
"kind": 1024,
"kindString": "Property",
"flags": {
@@ -51807,8 +68344,8 @@
},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 64,
+ "fileName": "RealtimeClient.ts",
+ "line": 33,
"character": 2
}
],
@@ -51818,15 +68355,33 @@
}
},
{
- "id": 445,
- "name": "schema",
+ "id": 439,
+ "name": "payload",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 62,
+ "fileName": "RealtimeClient.ts",
+ "line": 31,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 440,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 32,
"character": 2
}
],
@@ -51836,17 +68391,15 @@
}
},
{
- "id": 446,
- "name": "table",
+ "id": 437,
+ "name": "topic",
"kind": 1024,
"kindString": "Property",
- "flags": {
- "isOptional": true
- },
+ "flags": {},
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 63,
+ "fileName": "RealtimeClient.ts",
+ "line": 29,
"character": 2
}
],
@@ -51860,192 +68413,382 @@
{
"title": "Properties",
"kind": 1024,
- "children": [444, 447, 445, 446]
+ "children": [438, 441, 439, 440, 437]
}
],
"sources": [
{
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 62
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 30
}
]
}
}
}
}
- },
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "void"
+ },
+ {
+ "type": "literal",
+ "value": "rate limited"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 355,
+ "name": "removeAllChannels",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 177,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 356,
+ "name": "removeAllChannels",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 352,
+ "name": "removeChannel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 166,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 353,
+ "name": "removeChannel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
{
- "id": 167,
- "name": "callback",
+ "id": 354,
+ "name": "channel",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 168,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 169,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 170,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 449,
- "typeArguments": [
- {
- "type": "reference",
- "id": 164,
- "name": "T"
- }
- ],
- "name": "RealtimePostgresChangesPayload"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
+ "type": "reference",
+ "id": 55,
+ "name": "default",
+ "dereferenced": "[Circular ~.children.6.children.2.type.dereferenced]"
}
}
],
"type": {
"type": "reference",
- "id": 55,
- "name": "default"
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 499,
+ "name": "RealtimeRemoveChannelResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
}
- },
+ }
+ ]
+ },
+ {
+ "id": 373,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
{
- "id": 171,
- "name": "on",
+ "fileName": "RealtimeClient.ts",
+ "line": 263,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 374,
+ "name": "setAuth",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
- "typeParameter": [
+ "comment": {
+ "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ },
+ "parameters": [
{
- "id": 175,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
+ "id": 375,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
+ "comment": {
+ "shortText": "A JWT string.\n"
+ },
"type": {
- "type": "reflection",
- "declaration": {
- "id": 172,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 173,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 174,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
}
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [307]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 311, 312, 333, 331, 330, 313, 342, 314, 324, 325, 343, 329, 318,
+ 326, 332, 328, 327, 334, 335, 336, 322, 323
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [366, 344, 362, 346, 350, 364, 357, 370, 355, 352, 373]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 40,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 84,
+ "name": "state",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 104,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "CHANNEL_STATES"
+ },
+ "defaultValue": "CHANNEL_STATES.closed"
+ },
+ {
+ "id": 83,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 103,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 90,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 119,
+ "name": "on",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 315,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 120,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Listen to messages."
+ },
+ "parameters": [
+ {
+ "id": 121,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "broadcast"
+ }
+ },
+ {
+ "id": 122,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 123,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 124,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 317,
+ "character": 14
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
],
- "parameters": [
+ "groups": [
{
- "id": 176,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "literal",
- "value": "postgres_changes"
- }
- },
+ "title": "Properties",
+ "kind": 1024,
+ "children": [124]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 125,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 126,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
{
- "id": 177,
- "name": "filter",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 127,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "type": {
- "type": "reference",
- "id": 442,
- "typeArguments": [
- {
- "type": "literal",
- "value": "INSERT"
- }
- ],
- "name": "RealtimePostgresChangesFilter",
- "dereferenced": {
- "id": 442,
- "name": "RealtimePostgresChangesFilter",
- "kind": 4194304,
- "kindString": "Type alias",
+ "parameters": [
+ {
+ "id": 128,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 12
- }
- ],
- "typeParameter": [
- {
- "id": 448,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
"type": {
"type": "reflection",
"declaration": {
- "id": 443,
+ "id": 129,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 444,
+ "id": 131,
"name": "event",
"kind": 1024,
"kindString": "Property",
@@ -52053,29 +68796,8 @@
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 61,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 448,
- "name": "T"
- }
- },
- {
- "id": 447,
- "name": "filter",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 64,
- "character": 2
+ "line": 320,
+ "character": 6
}
],
"type": {
@@ -52084,41 +68806,21 @@
}
},
{
- "id": 445,
- "name": "schema",
+ "id": 130,
+ "name": "type",
"kind": 1024,
"kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 62,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 446,
- "name": "table",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 63,
- "character": 2
+ "line": 319,
+ "character": 6
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "literal",
+ "value": "broadcast"
}
}
],
@@ -52126,1379 +68828,2069 @@
{
"title": "Properties",
"kind": 1024,
- "children": [444, 447, 445, 446]
+ "children": [131, 130]
}
],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 62
+ "indexSignature": {
+ "id": 132,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 133,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
}
- ]
+ }
}
}
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
}
- },
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 134,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 135,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ }
+ },
+ {
+ "id": 136,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 137,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
{
- "id": 178,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 138,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 326,
+ "character": 14
+ }
+ ],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 179,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "literal",
+ "value": "sync"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [138]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 139,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 140,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 141,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 142,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 143,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ }
+ },
+ {
+ "id": 144,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 145,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 146,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 331,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "join"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [146]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 147,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 148,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 149,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 150,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "signatures": [
- {
- "id": 180,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 181,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 454,
- "typeArguments": [
- {
- "type": "reference",
- "id": 175,
- "name": "T"
- }
- ],
- "name": "RealtimePostgresInsertPayload"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
+ "type": {
+ "type": "reference",
+ "id": 483,
+ "name": "RealtimePresenceJoinPayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 151,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 152,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "presence"
+ }
+ },
+ {
+ "id": 153,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 154,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 155,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 336,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "leave"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [155]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 156,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 157,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 158,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 159,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 489,
+ "name": "RealtimePresenceLeavePayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 160,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 164,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 161,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 162,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 163,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
}
- ],
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default"
}
- },
- {
- "id": 182,
- "name": "on",
- "kind": 4096,
- "kindString": "Call signature",
+ }
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 165,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ },
+ {
+ "id": 166,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "*"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
"typeParameter": [
{
- "id": 186,
+ "id": 448,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 183,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 184,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 185,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
+ "type": "intrinsic",
+ "name": "string"
}
}
],
- "parameters": [
- {
- "id": 187,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "literal",
- "value": "postgres_changes"
- }
- },
- {
- "id": 188,
- "name": "filter",
- "kind": 32768,
- "kindString": "Parameter",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "type": {
- "type": "reference",
- "id": 442,
- "typeArguments": [
- {
- "type": "literal",
- "value": "UPDATE"
- }
- ],
- "name": "RealtimePostgresChangesFilter",
- "dereferenced": {
- "id": 442,
- "name": "RealtimePostgresChangesFilter",
- "kind": 4194304,
- "kindString": "Type alias",
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 12
+ "line": 61,
+ "character": 2
}
],
- "typeParameter": [
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 448,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 443,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 444,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 61,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 448,
- "name": "T"
- }
- },
- {
- "id": 447,
- "name": "filter",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 64,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 445,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 62,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 446,
- "name": "table",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 63,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [444, 447, 445, 446]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 62
- }
- ]
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
- }
- },
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 167,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 168,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
{
- "id": 189,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 169,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 190,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "parameters": [
+ {
+ "id": 170,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "signatures": [
- {
- "id": 191,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 192,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 464,
- "typeArguments": [
- {
- "type": "reference",
- "id": 186,
- "name": "T"
- }
- ],
- "name": "RealtimePostgresUpdatePayload"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
+ "type": {
+ "type": "reference",
+ "id": 449,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 164,
+ "name": "T"
}
- }
- ]
+ ],
+ "name": "RealtimePostgresChangesPayload"
+ }
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
}
}
- ],
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default"
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 171,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 175,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 172,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 173,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 174,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
}
- },
- {
- "id": 193,
- "name": "on",
- "kind": 4096,
- "kindString": "Call signature",
+ }
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 176,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
+ },
+ {
+ "id": 177,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "INSERT"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
"typeParameter": [
{
- "id": 197,
+ "id": 448,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
"flags": {},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 194,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 195,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 196,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
+ "type": "intrinsic",
+ "name": "string"
}
}
],
- "parameters": [
- {
- "id": 198,
- "name": "type",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "literal",
- "value": "postgres_changes"
- }
- },
- {
- "id": 199,
- "name": "filter",
- "kind": 32768,
- "kindString": "Parameter",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "type": {
- "type": "reference",
- "id": 442,
- "typeArguments": [
- {
- "type": "literal",
- "value": "DELETE"
- }
- ],
- "name": "RealtimePostgresChangesFilter",
- "dereferenced": {
- "id": 442,
- "name": "RealtimePostgresChangesFilter",
- "kind": 4194304,
- "kindString": "Type alias",
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
"sources": [
{
"fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 12
+ "line": 61,
+ "character": 2
}
],
- "typeParameter": [
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "id": 448,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
}
],
"type": {
- "type": "reflection",
- "declaration": {
- "id": 443,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 444,
- "name": "event",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 61,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 448,
- "name": "T"
- }
- },
- {
- "id": 447,
- "name": "filter",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 64,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 445,
- "name": "schema",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 62,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 446,
- "name": "table",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 63,
- "character": 2
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [444, 447, 445, 446]
- }
- ],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 60,
- "character": 62
- }
- ]
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
- }
- },
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 178,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 179,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
{
- "id": 200,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 180,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 201,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "parameters": [
+ {
+ "id": 181,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "signatures": [
- {
- "id": 202,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 203,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 473,
- "typeArguments": [
- {
- "type": "reference",
- "id": 197,
- "name": "T"
- }
- ],
- "name": "RealtimePostgresDeletePayload"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
+ "type": {
+ "type": "reference",
+ "id": 454,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 175,
+ "name": "T"
}
- }
- ]
+ ],
+ "name": "RealtimePostgresInsertPayload"
+ }
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
}
}
- ],
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default"
- }
+ ]
}
- ]
- },
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 182,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
{
- "id": 101,
- "name": "presenceState",
- "kind": 2048,
- "kindString": "Method",
+ "id": 186,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 284,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 102,
- "name": "presenceState",
- "kind": 4096,
- "kindString": "Call signature",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 183,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "type": {
- "type": "reference",
- "id": 495,
- "name": "RealtimePresenceState"
+ "indexSignature": {
+ "id": 184,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 185,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
}
}
- ]
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 187,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
},
{
- "id": 204,
- "name": "send",
- "kind": 2048,
- "kindString": "Method",
+ "id": 188,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 367,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 205,
- "name": "send",
- "kind": 4096,
- "kindString": "Call signature",
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "UPDATE"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "parameters": [
+ "sources": [
{
- "id": 206,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 448,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 207,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
- "children": [
+ "sources": [
{
- "id": 208,
- "name": "type",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 368,
- "character": 15
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
}
],
- "groups": [
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
{
- "title": "Properties",
- "kind": 1024,
- "children": [208]
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
}
],
- "indexSignature": {
- "id": 209,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 210,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
- }
- },
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 189,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 190,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
{
- "id": 211,
- "name": "opts",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 191,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 212,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "parameters": [
+ {
+ "id": 192,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "indexSignature": {
- "id": 213,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
+ "type": {
+ "type": "reference",
+ "id": 464,
+ "typeArguments": [
{
- "id": 214,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "type": "reference",
+ "id": 186,
+ "name": "T"
}
],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
+ "name": "RealtimePostgresUpdatePayload"
}
}
- },
- "defaultValue": "{}"
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
}
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ },
+ {
+ "id": 193,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 197,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 194,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 195,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
{
- "type": "reference",
- "id": 305,
- "name": "RealtimeChannelSendResponse"
+ "id": 196,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
}
}
- ]
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 198,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": "postgres_changes"
+ }
},
{
- "id": 93,
- "name": "subscribe",
- "kind": 2048,
- "kindString": "Method",
+ "id": 199,
+ "name": "filter",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 171,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 94,
- "name": "subscribe",
- "kind": 4096,
- "kindString": "Call signature",
+ "type": {
+ "type": "reference",
+ "id": 442,
+ "typeArguments": [
+ {
+ "type": "literal",
+ "value": "DELETE"
+ }
+ ],
+ "name": "RealtimePostgresChangesFilter",
+ "dereferenced": {
+ "id": 442,
+ "name": "RealtimePostgresChangesFilter",
+ "kind": 4194304,
+ "kindString": "Type alias",
"flags": {},
- "comment": {
- "shortText": "Subscribe registers your client with the server"
- },
- "parameters": [
+ "sources": [
{
- "id": 95,
- "name": "callback",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 96,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "signatures": [
- {
- "id": 97,
- "name": "__type",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 98,
- "name": "status",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "SUBSCRIBED"
- },
- {
- "type": "literal",
- "value": "TIMED_OUT"
- },
- {
- "type": "literal",
- "value": "CLOSED"
- },
- {
- "type": "literal",
- "value": "CHANNEL_ERROR"
- }
- ]
- }
- },
- {
- "id": 99,
- "name": "err",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "qualifiedName": "Error",
- "package": "typescript",
- "name": "Error"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ]
- }
- }
- },
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
{
- "id": 100,
- "name": "timeout",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 448,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
"flags": {},
"type": {
"type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "..."
+ "name": "string"
+ }
}
],
"type": {
- "type": "reference",
- "id": 55,
- "name": "default"
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 444,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 448,
+ "name": "T",
+ "dereferenced": {}
+ }
+ },
+ {
+ "id": 447,
+ "name": "filter",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 445,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 446,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 63,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [444, 447, 445, 446]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 60,
+ "character": 62
+ }
+ ]
+ }
}
}
- ]
+ }
},
{
- "id": 103,
- "name": "track",
- "kind": 2048,
- "kindString": "Method",
+ "id": 200,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 288,
- "character": 8
- }
- ],
- "signatures": [
- {
- "id": 104,
- "name": "track",
- "kind": 4096,
- "kindString": "Call signature",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 201,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "parameters": [
- {
- "id": 105,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 106,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 107,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 108,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- }
- }
- },
+ "signatures": [
{
- "id": 109,
- "name": "opts",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 202,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 110,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "parameters": [
+ {
+ "id": 203,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "indexSignature": {
- "id": 111,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
+ "type": {
+ "type": "reference",
+ "id": 473,
+ "typeArguments": [
{
- "id": 112,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "type": "reference",
+ "id": 197,
+ "name": "T"
}
],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
+ "name": "RealtimePostgresDeletePayload"
}
}
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reference",
- "id": 305,
- "name": "RealtimeChannelSendResponse"
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
}
- ],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
- }
+ }
+ ]
}
- ]
- },
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 101,
+ "name": "presenceState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 284,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 102,
+ "name": "presenceState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 495,
+ "name": "RealtimePresenceState"
+ }
+ }
+ ]
+ },
+ {
+ "id": 204,
+ "name": "send",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 367,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 205,
+ "name": "send",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
{
- "id": 221,
- "name": "unsubscribe",
- "kind": 2048,
- "kindString": "Method",
+ "id": 206,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 407,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 222,
- "name": "unsubscribe",
- "kind": 4096,
- "kindString": "Call signature",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 207,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "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"
- },
- "parameters": [
+ "children": [
{
- "id": 223,
- "name": "timeout",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 208,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 368,
+ "character": 15
+ }
+ ],
"type": {
"type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "..."
+ "name": "string"
+ }
}
],
- "type": {
- "type": "reference",
- "typeArguments": [
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [208]
+ }
+ ],
+ "indexSignature": {
+ "id": 209,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
{
- "type": "union",
- "types": [
- {
- "type": "literal",
- "value": "error"
- },
- {
- "type": "literal",
- "value": "ok"
- },
- {
- "type": "literal",
- "value": "timed out"
- }
- ]
+ "id": 210,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
}
}
- ]
+ }
},
{
- "id": 113,
- "name": "untrack",
- "kind": 2048,
- "kindString": "Method",
+ "id": 211,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 302,
- "character": 8
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 212,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 213,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 214,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
}
- ],
- "signatures": [
- {
- "id": 114,
- "name": "untrack",
- "kind": 4096,
- "kindString": "Call signature",
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 305,
+ "name": "RealtimeChannelSendResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 93,
+ "name": "subscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 171,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 94,
+ "name": "subscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Subscribe registers your client with the server"
+ },
+ "parameters": [
+ {
+ "id": 95,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 96,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "parameters": [
+ "signatures": [
{
- "id": 115,
- "name": "opts",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 97,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 116,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
+ "parameters": [
+ {
+ "id": 98,
+ "name": "status",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "indexSignature": {
- "id": 117,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
+ "type": {
+ "type": "union",
+ "types": [
{
- "id": 118,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "type": "literal",
+ "value": "SUBSCRIBED"
+ },
+ {
+ "type": "literal",
+ "value": "TIMED_OUT"
+ },
+ {
+ "type": "literal",
+ "value": "CLOSED"
+ },
+ {
+ "type": "literal",
+ "value": "CHANNEL_ERROR"
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
+ ]
+ }
+ },
+ {
+ "id": 99,
+ "name": "err",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Error",
+ "package": "typescript",
+ "name": "Error"
}
}
- },
- "defaultValue": "{}"
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
}
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
+ ]
+ }
+ }
+ },
+ {
+ "id": 100,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 55,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 103,
+ "name": "track",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 288,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 104,
+ "name": "track",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 105,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 106,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 107,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
{
- "type": "reference",
- "id": 305,
- "name": "RealtimeChannelSendResponse"
+ "id": 108,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
- "qualifiedName": "Promise",
- "package": "typescript",
- "name": "Promise"
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
}
}
- ]
+ }
},
{
- "id": 215,
- "name": "updateJoinPayload",
- "kind": 2048,
- "kindString": "Method",
+ "id": 109,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
"flags": {},
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 394,
- "character": 2
- }
- ],
- "signatures": [
- {
- "id": 216,
- "name": "updateJoinPayload",
- "kind": 4096,
- "kindString": "Call signature",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 110,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {},
- "parameters": [
- {
- "id": 217,
- "name": "payload",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 218,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": {
- "id": 219,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 220,
- "name": "key",
- "kind": 32768,
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
+ "indexSignature": {
+ "id": 111,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 112,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
}
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
}
}
- ]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [66]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [71, 86, 85, 91, 89, 88, 87, 92, 84, 83, 90]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [119, 101, 204, 93, 103, 221, 113, 215]
+ },
+ "defaultValue": "{}"
}
],
- "sources": [
- {
- "fileName": "RealtimeChannel.ts",
- "line": 94,
- "character": 21
- }
- ]
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 305,
+ "name": "RealtimeChannelSendResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
}
- }
+ ]
},
{
- "id": 31,
- "name": "opts",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "comment": {
- "shortText": "The options,\n for example `{events: {state: 'state', diff: 'diff'}}`\n"
- },
- "type": {
- "type": "reference",
- "qualifiedName": "PresenceOpts",
- "package": "@types/phoenix",
- "name": "PresenceOpts"
- }
- }
- ],
- "type": {
- "type": "reference",
- "id": 1,
- "name": "default"
- }
- }
- ]
- },
- {
- "id": 35,
- "name": "caller",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "sources": [
- {
- "fileName": "RealtimePresence.ts",
- "line": 66,
- "character": 2
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 36,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "children": [
- {
- "id": 37,
- "name": "onJoin",
- "kind": 1024,
- "kindString": "Property",
+ "id": 221,
+ "name": "unsubscribe",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimePresence.ts",
- "line": 67,
- "character": 4
+ "fileName": "RealtimeChannel.ts",
+ "line": 407,
+ "character": 2
}
],
- "type": {
- "type": "reference",
- "qualifiedName": "PresenceOnJoinCallback",
- "package": "@types/phoenix",
- "name": "PresenceOnJoinCallback"
- }
+ "signatures": [
+ {
+ "id": 222,
+ "name": "unsubscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 223,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "error"
+ },
+ {
+ "type": "literal",
+ "value": "ok"
+ },
+ {
+ "type": "literal",
+ "value": "timed out"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
},
{
- "id": 38,
- "name": "onLeave",
- "kind": 1024,
- "kindString": "Property",
+ "id": 113,
+ "name": "untrack",
+ "kind": 2048,
+ "kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimePresence.ts",
- "line": 68,
- "character": 4
+ "fileName": "RealtimeChannel.ts",
+ "line": 302,
+ "character": 8
}
],
- "type": {
- "type": "reference",
- "qualifiedName": "PresenceOnLeaveCallback",
- "package": "@types/phoenix",
- "name": "PresenceOnLeaveCallback"
- }
+ "signatures": [
+ {
+ "id": 114,
+ "name": "untrack",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 115,
+ "name": "opts",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 116,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 117,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 118,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 305,
+ "name": "RealtimeChannelSendResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
},
{
- "id": 39,
- "name": "onSync",
+ "id": 215,
+ "name": "updateJoinPayload",
"kind": 2048,
"kindString": "Method",
"flags": {},
"sources": [
{
- "fileName": "RealtimePresence.ts",
- "line": 69,
- "character": 4
+ "fileName": "RealtimeChannel.ts",
+ "line": 394,
+ "character": 2
}
],
"signatures": [
{
- "id": 40,
- "name": "onSync",
+ "id": 216,
+ "name": "updateJoinPayload",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
+ "parameters": [
+ {
+ "id": 217,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 218,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 219,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 220,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
"type": {
"type": "intrinsic",
"name": "void"
@@ -53508,33 +70900,30 @@
}
],
"groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [66]
+ },
{
"title": "Properties",
"kind": 1024,
- "children": [37, 38]
+ "children": [71, 86, 85, 91, 89, 88, 87, 92, 84, 83, 90]
},
{
"title": "Methods",
"kind": 2048,
- "children": [39]
+ "children": [119, 101, 204, 93, 103, 221, 113, 215]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeChannel.ts",
+ "line": 94,
+ "character": 21
}
]
}
- },
- "defaultValue": "..."
- },
- {
- "id": 41,
- "name": "channel",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isPublic": true
- },
- "type": {
- "type": "reference",
- "id": 55,
- "name": "default"
}
},
{
@@ -53603,7 +70992,64 @@
"type": {
"type": "reference",
"id": 495,
- "name": "RealtimePresenceState"
+ "name": "RealtimePresenceState",
+ "dereferenced": {
+ "id": 495,
+ "name": "RealtimePresenceState",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 18,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 496,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimePresence.ts",
+ "line": 18,
+ "character": 36
+ }
+ ],
+ "indexSignature": {
+ "id": 497,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 498,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "name": "Presence"
+ }
+ }
+ }
+ }
+ }
+ }
},
"defaultValue": "{}"
}
@@ -54374,7 +71820,8 @@
"type": {
"type": "reference",
"id": 448,
- "name": "T"
+ "name": "T",
+ "dereferenced": {}
}
},
{
@@ -58114,7 +75561,138 @@
"type": {
"type": "reference",
"id": 357,
- "name": "Bucket"
+ "name": "Bucket",
+ "dereferenced": {
+ "id": 357,
+ "name": "Bucket",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 361,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 5,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 358,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 2,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 359,
+ "name": "name",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 3,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 360,
+ "name": "owner",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 4,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 363,
+ "name": "public",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 7,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 362,
+ "name": "updated_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 6,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [361, 358, 359, 360, 363, 362]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 1,
+ "character": 17
+ }
+ ]
+ }
}
},
{
@@ -58501,7 +76079,70 @@
"type": {
"type": "reference",
"id": 374,
- "name": "SortBy"
+ "name": "SortBy",
+ "dereferenced": {
+ "id": 374,
+ "name": "SortBy",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 375,
+ "name": "column",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 23,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 376,
+ "name": "order",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [375, 376]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 22,
+ "character": 17
+ }
+ ]
+ }
}
}
],
@@ -60681,7 +78322,112 @@
"type": {
"type": "reference",
"id": 390,
- "name": "TransformOptions"
+ "name": "TransformOptions",
+ "dereferenced": {
+ "id": 390,
+ "name": "TransformOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 392,
+ "name": "height",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The height of the image in pixels."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 84,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 393,
+ "name": "resize",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 91,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "cover"
+ },
+ {
+ "type": "literal",
+ "value": "contain"
+ },
+ {
+ "type": "literal",
+ "value": "fill"
+ }
+ ]
+ }
+ },
+ {
+ "id": 391,
+ "name": "width",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The width of the image in pixels."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 80,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [392, 393, 391]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 76,
+ "character": 17
+ }
+ ]
+ }
}
}
],
@@ -61263,7 +79009,112 @@
"type": {
"type": "reference",
"id": 390,
- "name": "TransformOptions"
+ "name": "TransformOptions",
+ "dereferenced": {
+ "id": 390,
+ "name": "TransformOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 392,
+ "name": "height",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The height of the image in pixels."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 84,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 393,
+ "name": "resize",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 91,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "cover"
+ },
+ {
+ "type": "literal",
+ "value": "contain"
+ },
+ {
+ "type": "literal",
+ "value": "fill"
+ }
+ ]
+ }
+ },
+ {
+ "id": 391,
+ "name": "width",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The width of the image in pixels."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 80,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [392, 393, 391]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 76,
+ "character": 17
+ }
+ ]
+ }
}
}
],
@@ -61515,7 +79366,112 @@
"type": {
"type": "reference",
"id": 390,
- "name": "TransformOptions"
+ "name": "TransformOptions",
+ "dereferenced": {
+ "id": 390,
+ "name": "TransformOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 392,
+ "name": "height",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The height of the image in pixels."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 84,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 393,
+ "name": "resize",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 91,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "cover"
+ },
+ {
+ "type": "literal",
+ "value": "contain"
+ },
+ {
+ "type": "literal",
+ "value": "fill"
+ }
+ ]
+ }
+ },
+ {
+ "id": 391,
+ "name": "width",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The width of the image in pixels."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 80,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [392, 393, 391]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 76,
+ "character": 17
+ }
+ ]
+ }
}
}
],
@@ -61752,7 +79708,70 @@
"type": {
"type": "reference",
"id": 374,
- "name": "SortBy"
+ "name": "SortBy",
+ "dereferenced": {
+ "id": 374,
+ "name": "SortBy",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 375,
+ "name": "column",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 23,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 376,
+ "name": "order",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [375, 376]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 22,
+ "character": 17
+ }
+ ]
+ }
}
}
],
diff --git a/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json b/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json
index e1e43bc04ec..ec733c758d5 100644
--- a/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json
+++ b/spec/enrichments/tsdoc_v2/gotrue_dereferenced.json
@@ -2162,7 +2162,300 @@
"type": {
"type": "reference",
"id": 699,
- "name": "GoTrueAdminMFAApi"
+ "name": "GoTrueAdminMFAApi",
+ "dereferenced": {
+ "id": 699,
+ "name": "GoTrueAdminMFAApi",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "comment": {
+ "shortText": "Contains the full multi-factor authentication administration API.",
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "children": [
+ {
+ "id": 703,
+ "name": "deleteFactor",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 704,
+ "name": "deleteFactor",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 705,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "dereferenced": {
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 842,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 684,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 685,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the MFA factor to delete."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 844,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 686,
+ "name": "userId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the user whose factor is being deleted."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 847,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [685, 686]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 842,
+ "character": 45
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 674,
+ "name": "AuthMFAAdminDeleteFactorResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 700,
+ "name": "listFactors",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 701,
+ "name": "listFactors",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Lists all factors associated to a user."
+ },
+ "parameters": [
+ {
+ "id": 702,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
+ "dereferenced": {
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 866,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 697,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 698,
+ "name": "userId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 868,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [698]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 866,
+ "character": 44
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 687,
+ "name": "AuthMFAAdminListFactorsResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [703, 700]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 876,
+ "character": 17
+ }
+ ]
+ }
}
},
{
@@ -4324,7 +4617,58 @@
"type": {
"type": "reference",
"id": 706,
- "name": "SupportedStorage"
+ "name": "SupportedStorage",
+ "dereferenced": {
+ "id": 706,
+ "name": "SupportedStorage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 903,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Storage",
+ "package": "typescript",
+ "name": "Storage"
+ },
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "getItem"
+ },
+ {
+ "type": "literal",
+ "value": "setItem"
+ },
+ {
+ "type": "literal",
+ "value": "removeItem"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ ],
+ "name": "PromisifyMethods"
+ }
+ }
}
},
{
@@ -4415,42 +4759,3269 @@
"type": {
"type": "reference",
"id": 1,
- "name": "default"
- }
- },
- {
- "id": 80,
- "name": "mfa",
- "kind": 1024,
- "kindString": "Property",
- "flags": {},
- "comment": {
- "shortText": "Namespace for the MFA methods."
- },
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 91,
- "character": 2
- }
- ],
- "type": {
- "type": "reference",
- "id": 654,
- "name": "GoTrueMFAApi"
- }
- },
- {
- "id": 124,
- "name": "getSession",
- "kind": 2048,
- "kindString": "Method",
- "flags": {},
- "sources": [
- {
- "fileName": "src/GoTrueClient.ts",
- "line": 487,
- "character": 8
+ "name": "default",
+ "dereferenced": {
+ "id": 1,
+ "name": "GoTrueAdminApi",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 2,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 28,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 3,
+ "name": "new GoTrueAdminApi",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 4,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 5,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 11,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 37,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 12,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 13,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 14,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ }
+ ]
+ }
+ },
+ {
+ "id": 15,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInit",
+ "package": "typescript",
+ "name": "RequestInit"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Response",
+ "package": "typescript",
+ "name": "Response"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 7,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 34,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 8,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 9,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 10,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 6,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 33,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [11, 7, 6]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 16,
+ "name": "mfa",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Contains all MFA administration methods."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 20,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 699,
+ "name": "GoTrueAdminMFAApi",
+ "dereferenced": {
+ "id": 699,
+ "name": "GoTrueAdminMFAApi",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "comment": {
+ "shortText": "Contains the full multi-factor authentication administration API.",
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "children": [
+ {
+ "id": 703,
+ "name": "deleteFactor",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 704,
+ "name": "deleteFactor",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 705,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "dereferenced": {
+ "id": 683,
+ "name": "AuthMFAAdminDeleteFactorParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 842,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 684,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 685,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the MFA factor to delete."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 844,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 686,
+ "name": "userId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the user whose factor is being deleted."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 847,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [685, 686]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 842,
+ "character": 45
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 674,
+ "name": "AuthMFAAdminDeleteFactorResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 700,
+ "name": "listFactors",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 701,
+ "name": "listFactors",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Lists all factors associated to a user."
+ },
+ "parameters": [
+ {
+ "id": 702,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
+ "dereferenced": {
+ "id": 696,
+ "name": "AuthMFAAdminListFactorsParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "expermental",
+ "text": "\n"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 866,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 697,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 698,
+ "name": "userId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 868,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [698]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 866,
+ "character": 44
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 687,
+ "name": "AuthMFAAdminListFactorsResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [703, 700]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 876,
+ "character": 17
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 43,
+ "name": "createUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 139,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 44,
+ "name": "createUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Creates a new user.\nThis function should only be called on a server. Never expose your `service_role` key in the browser."
+ },
+ "parameters": [
+ {
+ "id": 45,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 411,
+ "name": "AdminUserAttributes",
+ "dereferenced": {
+ "id": 411,
+ "name": "AdminUserAttributes",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 413,
+ "name": "app_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 280,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 416,
+ "name": "ban_duration",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 306,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 420,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 255,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 410,
+ "name": "UserAttributes.data"
+ }
+ },
+ {
+ "id": 417,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 237,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 407,
+ "name": "UserAttributes.email"
+ }
+ },
+ {
+ "id": 414,
+ "name": "email_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Confirms the user's email address if set to true.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 287,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 419,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 247,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 409,
+ "name": "UserAttributes.password"
+ }
+ },
+ {
+ "id": 418,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's phone."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 242,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 408,
+ "name": "UserAttributes.phone"
+ }
+ },
+ {
+ "id": 415,
+ "name": "phone_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Confirms the user's phone number if set to true.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 294,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 412,
+ "name": "user_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "Only a service role can modify.\n\nThe `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 270,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [413, 416, 420, 417, 414, 419, 418, 415, 412]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 258,
+ "character": 17
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "UserAttributes"
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 66,
+ "name": "deleteUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 234,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 67,
+ "name": "deleteUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Delete a user. Requires a `service_role` key."
+ },
+ "parameters": [
+ {
+ "id": 68,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The user id you want to remove.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 40,
+ "name": "generateLink",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 105,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 41,
+ "name": "generateLink",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Generates email links and OTPs to be sent via a custom email provider."
+ },
+ "parameters": [
+ {
+ "id": 42,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 543,
+ "name": "GenerateLinkParams",
+ "dereferenced": {
+ "id": 543,
+ "name": "GenerateLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 545,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "id": 518,
+ "name": "GenerateSignupLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 502,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 519,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 521,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 504,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 523,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 506,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "data"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 522,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 505,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 520,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 503,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "signup"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [521, 523, 522, 520]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 502,
+ "character": 39
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 524,
+ "name": "GenerateInviteOrMagiclinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 509,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 525,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 527,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 512,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 528,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 513,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "data"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 526,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 510,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [527, 528, 526]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 509,
+ "character": 46
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 529,
+ "name": "GenerateRecoveryLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 516,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 530,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 532,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 519,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 533,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 520,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 531,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 517,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "recovery"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [532, 533, 531]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 516,
+ "character": 41
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 534,
+ "name": "GenerateEmailChangeLinkParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 523,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 535,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 537,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 526,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 538,
+ "name": "newEmail",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's new email. Only required if type is 'email_change_current' or 'email_change_new'."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 530,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 539,
+ "name": "options",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 531,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 540,
+ "name": "GenerateLinkOptions"
+ },
+ {
+ "type": "literal",
+ "value": "redirectTo"
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ },
+ {
+ "id": 536,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 524,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "email_change_current"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_new"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [537, 538, 539, 536]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 523,
+ "character": 44
+ }
+ ]
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 544,
+ "name": "GenerateLinkResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 59,
+ "name": "getUserById",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 189,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 60,
+ "name": "getUserById",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Get user by id."
+ },
+ "parameters": [
+ {
+ "id": 61,
+ "name": "uid",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "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"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 33,
+ "name": "inviteUserByEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 75,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 34,
+ "name": "inviteUserByEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sends an invite link to an email address."
+ },
+ "parameters": [
+ {
+ "id": 35,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 36,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 37,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 39,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Optional user metadata\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 79,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 38,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A URL or mobile deeplink to send the user to after they are confirmed."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 78,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [39, 38]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 46,
+ "name": "listUsers",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 161,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 47,
+ "name": "listUsers",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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."
+ },
+ "parameters": [
+ {
+ "id": 48,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "An object which supports `page` and `per_page` as numbers, to alter the paginated results.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 717,
+ "name": "PageParams",
+ "dereferenced": {
+ "id": 717,
+ "name": "PageParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 917,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 718,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 719,
+ "name": "page",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The page number"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 919,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 720,
+ "name": "perPage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Number of items returned per page"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 921,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [719, 720]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 917,
+ "character": 25
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 49,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 50,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 51,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 52,
+ "name": "users",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 23
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 384,
+ "name": "User"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [52]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 53,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 40
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [50, 53]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 54,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 55,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 58
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 56,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 57,
+ "name": "users",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 66
+ }
+ ],
+ "type": {
+ "type": "tuple"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [57]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 58,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 163,
+ "character": 79
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [55, 58]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 27,
+ "name": "signOut",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 52,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 28,
+ "name": "signOut",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Removes a logged-in session."
+ },
+ "parameters": [
+ {
+ "id": 29,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A valid, logged-in JWT.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 30,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 31,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 52,
+ "character": 40
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 32,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 52,
+ "character": 52
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 727,
+ "name": "AuthError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [31, 32]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 62,
+ "name": "updateUserById",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 211,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 63,
+ "name": "updateUserById",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Updates the user data."
+ },
+ "parameters": [
+ {
+ "id": 64,
+ "name": "uid",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 65,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "id": 411,
+ "name": "AdminUserAttributes",
+ "dereferenced": {
+ "id": 411,
+ "name": "AdminUserAttributes",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 413,
+ "name": "app_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 280,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 416,
+ "name": "ban_duration",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "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"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 306,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 420,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 255,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 410,
+ "name": "UserAttributes.data"
+ }
+ },
+ {
+ "id": 417,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 237,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 407,
+ "name": "UserAttributes.email"
+ }
+ },
+ {
+ "id": 414,
+ "name": "email_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Confirms the user's email address if set to true.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 287,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 419,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 247,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 409,
+ "name": "UserAttributes.password"
+ }
+ },
+ {
+ "id": 418,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's phone."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 242,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 408,
+ "name": "UserAttributes.phone"
+ }
+ },
+ {
+ "id": 415,
+ "name": "phone_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Confirms the user's phone number if set to true.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 294,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 412,
+ "name": "user_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.",
+ "text": "Only a service role can modify.\n\nThe `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 270,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [413, 416, 420, 417, 414, 419, 418, 415, 412]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 258,
+ "character": 17
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 406,
+ "name": "UserAttributes"
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 336,
+ "name": "UserResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [2]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [16]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [43, 66, 40, 59, 33, 46, 27, 62]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/GoTrueAdminApi.ts",
+ "line": 18,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 80,
+ "name": "mfa",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Namespace for the MFA methods."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 91,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 654,
+ "name": "GoTrueMFAApi",
+ "dereferenced": {
+ "id": 654,
+ "name": "GoTrueMFAApi",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "comment": {
+ "shortText": "Contains the full multi-factor authentication API."
+ },
+ "children": [
+ {
+ "id": 658,
+ "name": "challenge",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 659,
+ "name": "challenge",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Prepares a challenge used to verify that a user has access to a MFA\nfactor."
+ },
+ "parameters": [
+ {
+ "id": 660,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 578,
+ "name": "MFAChallengeParams",
+ "dereferenced": {
+ "id": 578,
+ "name": "MFAChallengeParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 622,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 579,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 580,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor to be challenged. Returned in enroll()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 624,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [580]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 622,
+ "character": 33
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 622,
+ "name": "AuthMFAChallengeResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 667,
+ "name": "challengeAndVerify",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 668,
+ "name": "challengeAndVerify",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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."
+ },
+ "parameters": [
+ {
+ "id": 669,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 581,
+ "name": "MFAChallengeAndVerifyParams",
+ "dereferenced": {
+ "id": 581,
+ "name": "MFAChallengeAndVerifyParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 627,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 582,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 584,
+ "name": "code",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Verification code provided by the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 631,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 583,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being verified. Returned in enroll()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 629,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [584, 583]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 627,
+ "character": 42
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 585,
+ "name": "AuthMFAVerifyResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 655,
+ "name": "enroll",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 656,
+ "name": "enroll",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 657,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 565,
+ "name": "MFAEnrollParams",
+ "dereferenced": {
+ "id": 565,
+ "name": "MFAEnrollParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 597,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 566,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 567,
+ "name": "factorType",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The type of factor being enrolled."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 599,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "totp"
+ }
+ },
+ {
+ "id": 569,
+ "name": "friendlyName",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Human readable name assigned to the factor."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 603,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 568,
+ "name": "issuer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Domain which the user is enrolled with."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 601,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [567, 569, 568]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 597,
+ "character": 30
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 598,
+ "name": "AuthMFAEnrollResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 672,
+ "name": "getAuthenticatorAssuranceLevel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 673,
+ "name": "getAuthenticatorAssuranceLevel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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"
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 643,
+ "name": "AuthMFAGetAuthenticatorAssuranceLevelResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 670,
+ "name": "listFactors",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 671,
+ "name": "listFactors",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the list of MFA factors enabled for this user. For most use cases\nyou should consider using {@link\nGoTrueMFAApi#getAuthenticatorAssuranceLevel}. This uses a cached version\nof the factors and avoids incurring a network call. If you need to update\nthis list, call {@link GoTrueClient#getUser} first.",
+ "tags": [
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#enroll}"
+ },
+ {
+ "tag": "see",
+ "text": "{@link GoTrueMFAApi#getAuthenticatorAssuranceLevel}"
+ },
+ {
+ "tag": "see",
+ "text": "{@link GoTrueClient#getUser}\n\n"
+ }
+ ]
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 632,
+ "name": "AuthMFAListFactorsResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 664,
+ "name": "unenroll",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 665,
+ "name": "unenroll",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Unenroll removes a MFA factor.\nA user has to have an `aal2` authenticator level in order to unenroll a `verified` factor."
+ },
+ "parameters": [
+ {
+ "id": 666,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 570,
+ "name": "MFAUnenrollParams",
+ "dereferenced": {
+ "id": 570,
+ "name": "MFAUnenrollParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 606,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 571,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 572,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being unenrolled."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 608,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [572]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 606,
+ "character": 32
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 613,
+ "name": "AuthMFAUnenrollResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 661,
+ "name": "verify",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 662,
+ "name": "verify",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "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."
+ },
+ "parameters": [
+ {
+ "id": 663,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 573,
+ "name": "MFAVerifyParams",
+ "dereferenced": {
+ "id": 573,
+ "name": "MFAVerifyParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 611,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 574,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 576,
+ "name": "challengeId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the challenge being verified. Returned in challenge()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 616,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 577,
+ "name": "code",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Verification code provided by the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 619,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 575,
+ "name": "factorId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "ID of the factor being verified. Returned in enroll()."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 613,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [576, 577, 575]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 611,
+ "character": 30
+ }
+ ]
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 585,
+ "name": "AuthMFAVerifyResponse"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [658, 667, 655, 672, 670, 664, 661]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 759,
+ "character": 17
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 124,
+ "name": "getSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 487,
+ "character": 8
}
],
"signatures": [
@@ -4981,7 +8552,212 @@
"type": {
"type": "reference",
"id": 421,
- "name": "Subscription"
+ "name": "Subscription",
+ "dereferenced": {
+ "id": 421,
+ "name": "Subscription",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 422,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The subscriber UUID. This will be set by the client."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 313,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 423,
+ "name": "callback",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 317,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 424,
+ "name": "callback",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "The function to call every time there is an event. eg: (eventName) => {}"
+ },
+ "parameters": [
+ {
+ "id": 425,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 287,
+ "name": "AuthChangeEvent",
+ "dereferenced": {
+ "id": 287,
+ "name": "AuthChangeEvent",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 25,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "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": "USER_DELETED"
+ },
+ {
+ "id": 286,
+ "name": "AuthChangeEventMFA",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 23,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "MFA_CHALLENGE_VERIFIED"
+ }
+ }
+ ]
+ }
+ }
+ }
+ },
+ {
+ "id": 426,
+ "name": "session",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 347,
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 427,
+ "name": "unsubscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 321,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 428,
+ "name": "unsubscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Call this to remove the listener."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [422]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [423, 427]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 309,
+ "character": 17
+ }
+ ]
+ }
}
}
],
@@ -5671,7 +9447,93 @@
"type": {
"type": "reference",
"id": 285,
- "name": "Provider"
+ "name": "Provider",
+ "dereferenced": {
+ "id": 285,
+ "name": "Provider",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "shortText": "One of the providers supported by GoTrue."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 5,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ }
+ ]
+ }
+ }
}
}
],
@@ -7675,7 +11537,34 @@
"type": {
"type": "reference",
"id": 506,
- "name": "MobileOtpType"
+ "name": "MobileOtpType",
+ "dereferenced": {
+ "id": 506,
+ "name": "MobileOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 481,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "phone_change"
+ }
+ ]
+ }
+ }
}
}
],
@@ -7839,11 +11728,50 @@
"line": 472,
"character": 2
}
- ],
- "type": {
- "type": "reference",
- "id": 507,
- "name": "EmailOtpType"
+ ],
+ "type": {
+ "type": "reference",
+ "id": 507,
+ "name": "EmailOtpType",
+ "dereferenced": {
+ "id": 507,
+ "name": "EmailOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 482,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "email_change"
+ }
+ ]
+ }
+ }
}
}
],
@@ -9719,11 +13647,560 @@
"line": 139,
"character": 2
}
- ],
- "type": {
- "type": "reference",
- "id": 384,
- "name": "User"
+ ],
+ "type": {
+ "type": "reference",
+ "id": 384,
+ "name": "User",
+ "dereferenced": {
+ "id": 384,
+ "name": "User",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 394,
+ "name": "action_link",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 219,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 386,
+ "name": "app_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 211,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 377,
+ "name": "UserAppMetadata",
+ "dereferenced": {
+ "id": 377,
+ "name": "UserAppMetadata",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 378,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 201,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [378]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 200,
+ "character": 17
+ }
+ ],
+ "indexSignature": {
+ "id": 379,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 380,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 388,
+ "name": "aud",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 213,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 389,
+ "name": "confirmation_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 214,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 398,
+ "name": "confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 223,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 397,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 222,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 395,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 220,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 391,
+ "name": "email_change_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 216,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 399,
+ "name": "email_confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 224,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 405,
+ "name": "factors",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 230,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 370,
+ "name": "Factor"
+ }
+ }
+ },
+ {
+ "id": 385,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 210,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 404,
+ "name": "identities",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 229,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 359,
+ "name": "UserIdentity"
+ }
+ }
+ },
+ {
+ "id": 393,
+ "name": "invited_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 218,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 401,
+ "name": "last_sign_in_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 226,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 392,
+ "name": "new_email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 217,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 396,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 221,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 400,
+ "name": "phone_confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 225,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 390,
+ "name": "recovery_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 215,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 402,
+ "name": "role",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 227,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 403,
+ "name": "updated_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 228,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 387,
+ "name": "user_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 212,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 381,
+ "name": "UserMetadata",
+ "dereferenced": {
+ "id": 381,
+ "name": "UserMetadata",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 205,
+ "character": 17
+ }
+ ],
+ "indexSignature": {
+ "id": 382,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 383,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 394, 386, 388, 389, 398, 397, 395, 391, 399, 405, 385, 404, 393, 401, 392, 396,
+ 400, 390, 402, 403, 387
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 209,
+ "character": 17
+ }
+ ]
+ }
}
}
],
@@ -10027,11 +14504,77 @@
"line": 211,
"character": 2
}
- ],
- "type": {
- "type": "reference",
- "id": 377,
- "name": "UserAppMetadata"
+ ],
+ "type": {
+ "type": "reference",
+ "id": 377,
+ "name": "UserAppMetadata",
+ "dereferenced": {
+ "id": 377,
+ "name": "UserAppMetadata",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 378,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 201,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [378]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 200,
+ "character": 17
+ }
+ ],
+ "indexSignature": {
+ "id": 379,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 380,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
}
},
{
@@ -10412,7 +14955,44 @@
"type": {
"type": "reference",
"id": 381,
- "name": "UserMetadata"
+ "name": "UserMetadata",
+ "dereferenced": {
+ "id": 381,
+ "name": "UserMetadata",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 205,
+ "character": 17
+ }
+ ],
+ "indexSignature": {
+ "id": 382,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 383,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
}
}
],
@@ -10989,7 +15569,46 @@
"type": {
"type": "reference",
"id": 507,
- "name": "EmailOtpType"
+ "name": "EmailOtpType",
+ "dereferenced": {
+ "id": 507,
+ "name": "EmailOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 482,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "email_change"
+ }
+ ]
+ }
+ }
}
}
],
@@ -11163,7 +15782,34 @@
"type": {
"type": "reference",
"id": 506,
- "name": "MobileOtpType"
+ "name": "MobileOtpType",
+ "dereferenced": {
+ "id": 506,
+ "name": "MobileOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 481,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "phone_change"
+ }
+ ]
+ }
+ }
}
}
],
@@ -14700,7 +19346,50 @@
"type": {
"type": "reference",
"id": 564,
- "name": "GenerateLinkType"
+ "name": "GenerateLinkType",
+ "dereferenced": {
+ "id": 564,
+ "name": "GenerateLinkType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 589,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "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"
+ }
+ ]
+ }
+ }
}
}
],
@@ -15450,7 +20139,58 @@
"type": {
"type": "reference",
"id": 706,
- "name": "SupportedStorage"
+ "name": "SupportedStorage",
+ "dereferenced": {
+ "id": 706,
+ "name": "SupportedStorage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 903,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "qualifiedName": "Storage",
+ "package": "typescript",
+ "name": "Storage"
+ },
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "getItem"
+ },
+ {
+ "type": "literal",
+ "value": "setItem"
+ },
+ {
+ "type": "literal",
+ "value": "removeItem"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Pick",
+ "package": "typescript",
+ "name": "Pick"
+ }
+ ],
+ "name": "PromisifyMethods"
+ }
+ }
}
},
{
@@ -16829,7 +21569,93 @@
"type": {
"type": "reference",
"id": 285,
- "name": "Provider"
+ "name": "Provider",
+ "dereferenced": {
+ "id": 285,
+ "name": "Provider",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "shortText": "One of the providers supported by GoTrue."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 5,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "apple"
+ },
+ {
+ "type": "literal",
+ "value": "azure"
+ },
+ {
+ "type": "literal",
+ "value": "bitbucket"
+ },
+ {
+ "type": "literal",
+ "value": "discord"
+ },
+ {
+ "type": "literal",
+ "value": "facebook"
+ },
+ {
+ "type": "literal",
+ "value": "github"
+ },
+ {
+ "type": "literal",
+ "value": "gitlab"
+ },
+ {
+ "type": "literal",
+ "value": "google"
+ },
+ {
+ "type": "literal",
+ "value": "keycloak"
+ },
+ {
+ "type": "literal",
+ "value": "linkedin"
+ },
+ {
+ "type": "literal",
+ "value": "notion"
+ },
+ {
+ "type": "literal",
+ "value": "slack"
+ },
+ {
+ "type": "literal",
+ "value": "spotify"
+ },
+ {
+ "type": "literal",
+ "value": "twitch"
+ },
+ {
+ "type": "literal",
+ "value": "twitter"
+ },
+ {
+ "type": "literal",
+ "value": "workos"
+ }
+ ]
+ }
+ }
}
}
],
@@ -18578,7 +23404,34 @@
"type": {
"type": "reference",
"id": 506,
- "name": "MobileOtpType"
+ "name": "MobileOtpType",
+ "dereferenced": {
+ "id": 506,
+ "name": "MobileOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 481,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "phone_change"
+ }
+ ]
+ }
+ }
}
}
],
@@ -18746,7 +23599,46 @@
"type": {
"type": "reference",
"id": 507,
- "name": "EmailOtpType"
+ "name": "EmailOtpType",
+ "dereferenced": {
+ "id": 507,
+ "name": "EmailOtpType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 482,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "email_change"
+ }
+ ]
+ }
+ }
}
}
],
diff --git a/spec/supabase_dart_v1.yml b/spec/supabase_dart_v1.yml
index 18a0c29668d..931e511b6f5 100644
--- a/spec/supabase_dart_v1.yml
+++ b/spec/supabase_dart_v1.yml
@@ -1410,7 +1410,7 @@ functions:
.from('users')
.select()
.eq('address->postcode', 90210);
- ```
+ ```
- id: filter-foreign-tables
name: Filter Foreign Tables
code: |