Skip to content

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

Adds makefile

Copple6fabf04357aa
diff --git a/spec/Makefile b/spec/Makefile
new file mode 100644
index 00000000000..2cb3cec9c8b
--- /dev/null
+++ b/spec/Makefile
@@ -0,0 +1,22 @@
+REPO_DIR=$(shell pwd)
+
+run: download.api.v1 download.tsdoc.v1 format
+
+format:
+ npx prettier --write .
+
+download.api.v1:
+ curl -sS https://api.supabase.com/api/v1-json > $(REPO_DIR)/api_v0_openapi.json
+
+download.tsdoc.v1:
+ curl -sS https://supabase.github.io/supabase-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/supabase.json
+
+ curl -sS https://supabase.github.io/gotrue-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/gotrue.json
+
+ curl -sS https://supabase.github.io/postgrest-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/postgrest.json
+
+ curl -sS https://supabase.github.io/realtime-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/realtime.json
+
+ curl -sS https://supabase.github.io/storage-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/storage.json
+
+ curl -sS https://supabase.github.io/functions-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/functions.json
\ No newline at end of file
diff --git a/spec/cli_v1_commands.yaml b/spec/cli_v1_commands.yaml
index 16f299b1f48..609cef743e5 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.0.0
@@ -15,555 +15,555 @@ info:
-h, --help help for supabase
```
commands:
-- id: supabase-stop
- title: supabase stop
- summary: Stop all local Supabase containers
- tags: []
- links: []
- usage: |-
- ```sh
- supabase stop [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for stop
- ```
-- id: supabase-status
- title: supabase status
- summary: Show status of local Supabase containers
- tags: []
- links: []
- usage: |-
- ```sh
- supabase status [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for status
- ```
-- id: supabase-start
- title: supabase start
- summary: Start containers for Supabase local development
- tags: []
- links: []
- usage: |-
- ```sh
- supabase start [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for start
- ```
-- id: supabase-secrets
- title: supabase secrets
- summary: Manage Supabase secrets
- tags: []
- links: []
- subcommands:
- - supabase-secrets-list
- - supabase-secrets-set
- - supabase-secrets-unset
- options: |-
- ```sh
- -h, --help help for secrets
- ```
-- id: supabase-secrets-unset
- title: supabase secrets unset
- summary: Unset a secret(s) on Supabase
- description: Unset a secret(s) from the linked Supabase project.
- tags: []
- links: []
- usage: |-
- ```sh
- supabase secrets unset <NAME> ... [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for unset
- ```
-- id: supabase-secrets-set
- title: supabase secrets set
- summary: Set a secret(s) on Supabase
- description: Set a secret(s) to the linked Supabase project.
- tags: []
- links: []
- usage: |-
- ```sh
- supabase secrets set [flags] <NAME=VALUE> ...
- ```
- subcommands: []
- options: |-
- ```sh
- --env-file string Read secrets from a .env file.
- -h, --help help for set
- ```
-- id: supabase-secrets-list
- title: supabase secrets list
- summary: List all secrets on Supabase
- description: List all secrets in the linked project.
- tags: []
- links: []
- usage: |-
- ```sh
- supabase secrets list [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for list
- ```
-- id: supabase-projects
- title: supabase projects
- summary: Manage Supabase projects
- tags: []
- links: []
- subcommands:
- - supabase-projects-create
- - supabase-projects-list
- options: |-
- ```sh
- -h, --help help for projects
- ```
-- id: supabase-projects-list
- title: supabase projects list
- summary: List all Supabase projects
- description: List all Supabase projects the logged-in user can access.
- tags: []
- links: []
- usage: |-
- ```sh
- supabase projects list [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for list
- ```
-- id: supabase-projects-create
- title: supabase projects create
- summary: Create a project on Supabase
- tags: []
- links: []
- usage: |-
- ```sh
- supabase projects create <project name> [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- --db-password string Database password of the project.
- -h, --help help for create
- -i, --interactive Enables interactive mode.
- --org-id string Organization ID to create the project in.
- --plan string Select a plan that suits your needs. (default "free")
- --region string Select a region close to you for the best performance.
- ```
-- id: supabase-orgs
- title: supabase orgs
- summary: Manage Supabase organizations
- tags: []
- links: []
- subcommands:
- - supabase-orgs-list
- options: |-
- ```sh
- -h, --help help for orgs
- ```
-- id: supabase-orgs-list
- title: supabase orgs list
- summary: List all organizations
- description: List all organizations the logged-in user belongs.
- tags: []
- links: []
- usage: |-
- ```sh
- supabase orgs list [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for list
- ```
-- id: supabase-migration
- title: supabase migration
- summary: Manage database migration scripts
- tags: []
- links: []
- subcommands:
- - supabase-migration-list
- - supabase-migration-new
- options: |-
- ```sh
- -h, --help help for migration
- ```
-- id: supabase-migration-new
- title: supabase migration new
- summary: Create an empty migration script
- tags: []
- links: []
- usage: |-
- ```sh
- supabase migration new <migration name> [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for new
- ```
-- id: supabase-migration-list
- title: supabase migration list
- summary: List local and remote migrations
- tags: []
- links: []
- usage: |-
- ```sh
- supabase migration list [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for list
- -p, --password string Password to your remote Postgres database.
- ```
-- id: supabase-login
- title: supabase login
- summary: Authenticate using an access token
- tags: []
- links: []
- usage: |-
- ```sh
- supabase login [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for login
- ```
-- id: supabase-link
- title: supabase link
- summary: Link to a Supabase project
- tags: []
- links: []
- usage: |-
- ```sh
- supabase link [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for link
- -p, --password string Password to your remote Postgres database.
- --project-ref string Project ref of the Supabase project.
- ```
-- id: supabase-init
- title: supabase init
- summary: Initialize a local project
- tags: []
- links: []
- usage: |-
- ```sh
- supabase init [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for init
- ```
-- id: supabase-gen
- title: supabase gen
- summary: Run code generation tools
- tags: []
- links: []
- subcommands:
- - supabase-gen-types
- options: |-
- ```sh
- -h, --help help for gen
- ```
-- id: supabase-gen-types
- title: supabase gen types
- summary: Generate types from Postgres schema
- tags: []
- links: []
- subcommands:
- - supabase-gen-types-typescript
- options: |-
- ```sh
- -h, --help help for types
- ```
-- id: supabase-gen-types-typescript
- title: supabase gen types typescript
- summary: Generate types for TypeScript
- description: |
- Generate types for TypeScript. Must specify either --local or --db-url
- tags: []
- links: []
- usage: |-
- ```sh
- supabase gen types typescript [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- --db-url string Generate types from a database url.
- -h, --help help for typescript
- --local Generate types from the local dev database.
- ```
-- id: supabase-functions
- title: supabase functions
- summary: Manage Supabase Edge functions
- tags: []
- links: []
- subcommands:
- - supabase-functions-delete
- - supabase-functions-deploy
- - supabase-functions-new
- - supabase-functions-serve
- options: |-
- ```sh
- -h, --help help for functions
- ```
-- id: supabase-functions-serve
- title: supabase functions serve
- summary: Serve a Function locally
- tags: []
- links: []
- usage: |-
- ```sh
- supabase functions serve <Function name> [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- --env-file string Path to an env file to be populated to the Function environment.
- -h, --help help for serve
- --no-verify-jwt Disable JWT verification for the Function.
- ```
-- id: supabase-functions-new
- title: supabase functions new
- summary: Create a new Function locally
- tags: []
- links: []
- usage: |-
- ```sh
- supabase functions new <Function name> [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for new
- ```
-- id: supabase-functions-deploy
- title: supabase functions deploy
- summary: Deploy a Function to Supabase
- description: Deploy a Function to the linked Supabase project.
- tags: []
- links: []
- usage: |-
- ```sh
- supabase functions deploy <Function name> [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for deploy
- --no-verify-jwt Disable JWT verification for the Function.
- --project-ref string Project ref of the Supabase project.
- ```
-- id: supabase-functions-delete
- title: supabase functions delete
- summary: Delete a Function from Supabase
- description: |
- Delete a Function from the linked Supabase project. This does NOT remove the Function locally.
- tags: []
- links: []
- usage: |-
- ```sh
- supabase functions delete <Function name> [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for delete
- --project-ref string Project ref of the Supabase project.
- ```
-- id: supabase-db
- title: supabase db
- summary: Manage Postgres databases
- tags: []
- links: []
- subcommands:
- - supabase-db-branch
- - supabase-db-diff
- - supabase-db-push
- - supabase-db-remote
- - supabase-db-reset
- options: |-
- ```sh
- -h, --help help for db
- ```
-- id: supabase-db-reset
- title: supabase db reset
- summary: Resets the local database to current migrations
- tags: []
- links: []
- usage: |-
- ```sh
- supabase db reset [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for reset
- ```
-- id: supabase-db-remote
- title: supabase db remote
- summary: Manage remote databases
- tags: []
- links: []
- subcommands:
- - supabase-db-remote-changes
- - supabase-db-remote-commit
- options: |-
- ```sh
- -h, --help help for remote
- -p, --password string Password to your remote Postgres database.
- ```
-- id: supabase-db-remote-commit
- title: supabase db remote commit
- summary: Commit remote changes as a new migration
- tags: []
- links: []
- usage: |-
- ```sh
- supabase db remote commit [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for commit
- ```
-- id: supabase-db-remote-changes
- title: supabase db remote changes
- summary: Show changes on the remote database
- description: Show changes on the remote database since last migration.
- tags: []
- links: []
- usage: |-
- ```sh
- supabase db remote changes [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for changes
- ```
-- id: supabase-db-push
- title: supabase db push
- summary: Push new migrations to the remote database
- tags: []
- links: []
- usage: |-
- ```sh
- supabase db push [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- --dry-run Print the migrations that would be applied, but don't actually apply them.
- -h, --help help for push
- -p, --password string Password to your remote Postgres database.
- ```
-- id: supabase-db-diff
- title: supabase db diff
- summary: Diffs the local database for schema changes
- tags: []
- links: []
- usage: |-
- ```sh
- supabase db diff [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -f, --file string Saves schema diff to a file.
- -h, --help help for diff
- -s, --schema strings List of schema to include. (default [public])
- --use-migra Use migra to generate schema diff.
- ```
-- id: supabase-db-branch
- title: supabase db branch
- summary: Manage database branches
- description: |
- Manage database branches. Each branch is associated with a separate database.
- tags: []
- links: []
- subcommands:
- - supabase-db-branch-create
- - supabase-db-branch-delete
- - supabase-db-branch-list
- - supabase-db-branch-switch
- options: |-
- ```sh
- -h, --help help for branch
- ```
-- id: supabase-db-branch-switch
- title: supabase db branch switch
- summary: Switch the active branch
- tags: []
- links: []
- usage: |-
- ```sh
- supabase db branch switch <branch name> [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for switch
- ```
-- id: supabase-db-branch-list
- title: supabase db branch list
- summary: List branches
- tags: []
- links: []
- usage: |-
- ```sh
- supabase db branch list [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for list
- ```
-- id: supabase-db-branch-delete
- title: supabase db branch delete
- summary: Delete a branch
- tags: []
- links: []
- usage: |-
- ```sh
- supabase db branch delete <branch name> [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for delete
- ```
-- id: supabase-db-branch-create
- title: supabase db branch create
- summary: Create a branch
- tags: []
- links: []
- usage: |-
- ```sh
- supabase db branch create <branch name> [flags]
- ```
- subcommands: []
- options: |-
- ```sh
- -h, --help help for create
- ```
+ - id: supabase-stop
+ title: supabase stop
+ summary: Stop all local Supabase containers
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase stop [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for stop
+ ```
+ - id: supabase-status
+ title: supabase status
+ summary: Show status of local Supabase containers
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase status [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for status
+ ```
+ - id: supabase-start
+ title: supabase start
+ summary: Start containers for Supabase local development
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase start [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for start
+ ```
+ - id: supabase-secrets
+ title: supabase secrets
+ summary: Manage Supabase secrets
+ tags: []
+ links: []
+ subcommands:
+ - supabase-secrets-list
+ - supabase-secrets-set
+ - supabase-secrets-unset
+ options: |-
+ ```sh
+ -h, --help help for secrets
+ ```
+ - id: supabase-secrets-unset
+ title: supabase secrets unset
+ summary: Unset a secret(s) on Supabase
+ description: Unset a secret(s) from the linked Supabase project.
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase secrets unset <NAME> ... [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for unset
+ ```
+ - id: supabase-secrets-set
+ title: supabase secrets set
+ summary: Set a secret(s) on Supabase
+ description: Set a secret(s) to the linked Supabase project.
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase secrets set [flags] <NAME=VALUE> ...
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ --env-file string Read secrets from a .env file.
+ -h, --help help for set
+ ```
+ - id: supabase-secrets-list
+ title: supabase secrets list
+ summary: List all secrets on Supabase
+ description: List all secrets in the linked project.
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase secrets list [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for list
+ ```
+ - id: supabase-projects
+ title: supabase projects
+ summary: Manage Supabase projects
+ tags: []
+ links: []
+ subcommands:
+ - supabase-projects-create
+ - supabase-projects-list
+ options: |-
+ ```sh
+ -h, --help help for projects
+ ```
+ - id: supabase-projects-list
+ title: supabase projects list
+ summary: List all Supabase projects
+ description: List all Supabase projects the logged-in user can access.
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase projects list [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for list
+ ```
+ - id: supabase-projects-create
+ title: supabase projects create
+ summary: Create a project on Supabase
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase projects create <project name> [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ --db-password string Database password of the project.
+ -h, --help help for create
+ -i, --interactive Enables interactive mode.
+ --org-id string Organization ID to create the project in.
+ --plan string Select a plan that suits your needs. (default "free")
+ --region string Select a region close to you for the best performance.
+ ```
+ - id: supabase-orgs
+ title: supabase orgs
+ summary: Manage Supabase organizations
+ tags: []
+ links: []
+ subcommands:
+ - supabase-orgs-list
+ options: |-
+ ```sh
+ -h, --help help for orgs
+ ```
+ - id: supabase-orgs-list
+ title: supabase orgs list
+ summary: List all organizations
+ description: List all organizations the logged-in user belongs.
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase orgs list [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for list
+ ```
+ - id: supabase-migration
+ title: supabase migration
+ summary: Manage database migration scripts
+ tags: []
+ links: []
+ subcommands:
+ - supabase-migration-list
+ - supabase-migration-new
+ options: |-
+ ```sh
+ -h, --help help for migration
+ ```
+ - id: supabase-migration-new
+ title: supabase migration new
+ summary: Create an empty migration script
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase migration new <migration name> [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for new
+ ```
+ - id: supabase-migration-list
+ title: supabase migration list
+ summary: List local and remote migrations
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase migration list [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for list
+ -p, --password string Password to your remote Postgres database.
+ ```
+ - id: supabase-login
+ title: supabase login
+ summary: Authenticate using an access token
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase login [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for login
+ ```
+ - id: supabase-link
+ title: supabase link
+ summary: Link to a Supabase project
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase link [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for link
+ -p, --password string Password to your remote Postgres database.
+ --project-ref string Project ref of the Supabase project.
+ ```
+ - id: supabase-init
+ title: supabase init
+ summary: Initialize a local project
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase init [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for init
+ ```
+ - id: supabase-gen
+ title: supabase gen
+ summary: Run code generation tools
+ tags: []
+ links: []
+ subcommands:
+ - supabase-gen-types
+ options: |-
+ ```sh
+ -h, --help help for gen
+ ```
+ - id: supabase-gen-types
+ title: supabase gen types
+ summary: Generate types from Postgres schema
+ tags: []
+ links: []
+ subcommands:
+ - supabase-gen-types-typescript
+ options: |-
+ ```sh
+ -h, --help help for types
+ ```
+ - id: supabase-gen-types-typescript
+ title: supabase gen types typescript
+ summary: Generate types for TypeScript
+ description: |
+ Generate types for TypeScript. Must specify either --local or --db-url
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase gen types typescript [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ --db-url string Generate types from a database url.
+ -h, --help help for typescript
+ --local Generate types from the local dev database.
+ ```
+ - id: supabase-functions
+ title: supabase functions
+ summary: Manage Supabase Edge functions
+ tags: []
+ links: []
+ subcommands:
+ - supabase-functions-delete
+ - supabase-functions-deploy
+ - supabase-functions-new
+ - supabase-functions-serve
+ options: |-
+ ```sh
+ -h, --help help for functions
+ ```
+ - id: supabase-functions-serve
+ title: supabase functions serve
+ summary: Serve a Function locally
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase functions serve <Function name> [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ --env-file string Path to an env file to be populated to the Function environment.
+ -h, --help help for serve
+ --no-verify-jwt Disable JWT verification for the Function.
+ ```
+ - id: supabase-functions-new
+ title: supabase functions new
+ summary: Create a new Function locally
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase functions new <Function name> [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for new
+ ```
+ - id: supabase-functions-deploy
+ title: supabase functions deploy
+ summary: Deploy a Function to Supabase
+ description: Deploy a Function to the linked Supabase project.
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase functions deploy <Function name> [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for deploy
+ --no-verify-jwt Disable JWT verification for the Function.
+ --project-ref string Project ref of the Supabase project.
+ ```
+ - id: supabase-functions-delete
+ title: supabase functions delete
+ summary: Delete a Function from Supabase
+ description: |
+ Delete a Function from the linked Supabase project. This does NOT remove the Function locally.
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase functions delete <Function name> [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for delete
+ --project-ref string Project ref of the Supabase project.
+ ```
+ - id: supabase-db
+ title: supabase db
+ summary: Manage Postgres databases
+ tags: []
+ links: []
+ subcommands:
+ - supabase-db-branch
+ - supabase-db-diff
+ - supabase-db-push
+ - supabase-db-remote
+ - supabase-db-reset
+ options: |-
+ ```sh
+ -h, --help help for db
+ ```
+ - id: supabase-db-reset
+ title: supabase db reset
+ summary: Resets the local database to current migrations
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase db reset [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for reset
+ ```
+ - id: supabase-db-remote
+ title: supabase db remote
+ summary: Manage remote databases
+ tags: []
+ links: []
+ subcommands:
+ - supabase-db-remote-changes
+ - supabase-db-remote-commit
+ options: |-
+ ```sh
+ -h, --help help for remote
+ -p, --password string Password to your remote Postgres database.
+ ```
+ - id: supabase-db-remote-commit
+ title: supabase db remote commit
+ summary: Commit remote changes as a new migration
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase db remote commit [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for commit
+ ```
+ - id: supabase-db-remote-changes
+ title: supabase db remote changes
+ summary: Show changes on the remote database
+ description: Show changes on the remote database since last migration.
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase db remote changes [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for changes
+ ```
+ - id: supabase-db-push
+ title: supabase db push
+ summary: Push new migrations to the remote database
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase db push [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ --dry-run Print the migrations that would be applied, but don't actually apply them.
+ -h, --help help for push
+ -p, --password string Password to your remote Postgres database.
+ ```
+ - id: supabase-db-diff
+ title: supabase db diff
+ summary: Diffs the local database for schema changes
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase db diff [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -f, --file string Saves schema diff to a file.
+ -h, --help help for diff
+ -s, --schema strings List of schema to include. (default [public])
+ --use-migra Use migra to generate schema diff.
+ ```
+ - id: supabase-db-branch
+ title: supabase db branch
+ summary: Manage database branches
+ description: |
+ Manage database branches. Each branch is associated with a separate database.
+ tags: []
+ links: []
+ subcommands:
+ - supabase-db-branch-create
+ - supabase-db-branch-delete
+ - supabase-db-branch-list
+ - supabase-db-branch-switch
+ options: |-
+ ```sh
+ -h, --help help for branch
+ ```
+ - id: supabase-db-branch-switch
+ title: supabase db branch switch
+ summary: Switch the active branch
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase db branch switch <branch name> [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for switch
+ ```
+ - id: supabase-db-branch-list
+ title: supabase db branch list
+ summary: List branches
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase db branch list [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for list
+ ```
+ - id: supabase-db-branch-delete
+ title: supabase db branch delete
+ summary: Delete a branch
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase db branch delete <branch name> [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for delete
+ ```
+ - id: supabase-db-branch-create
+ title: supabase db branch create
+ summary: Create a branch
+ tags: []
+ links: []
+ usage: |-
+ ```sh
+ supabase db branch create <branch name> [flags]
+ ```
+ subcommands: []
+ options: |-
+ ```sh
+ -h, --help help for create
+ ```
diff --git a/spec/enrichments/tsdoc_v1/functions.json b/spec/enrichments/tsdoc_v1/functions.json
new file mode 100644
index 00000000000..6e9cea9f878
--- /dev/null
+++ b/spec/enrichments/tsdoc_v1/functions.json
@@ -0,0 +1,613 @@
+{
+ "id": 0,
+ "name": "@supabase/functions-js",
+ "kind": 1,
+ "kindString": "Project",
+ "flags": {},
+ "originalName": "",
+ "children": [
+ {
+ "id": 1,
+ "name": "FunctionsClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 2,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 9,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 3,
+ "name": "new FunctionsClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 4,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 5,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 6,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 8,
+ "name": "customFetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 16,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 9,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 10,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 11,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 12,
+ "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/index.ts",
+ "line": 15,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [8, 7]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "FunctionsClient"
+ }
+ }
+ ]
+ },
+ {
+ "id": 15,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 7,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 16,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 17,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 18,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 19,
+ "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": 14,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 6,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "qualifiedName": "Record",
+ "package": "typescript",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 13,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 5,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 23,
+ "name": "invoke",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 40,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 24,
+ "name": "invoke",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Invokes a function"
+ },
+ "typeParameter": [
+ {
+ "id": 25,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 26,
+ "name": "functionName",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "the name of the function to invoke"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 27,
+ "name": "invokeOptions",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "object with the following properties\n`headers`: object representing the headers to send with the request\n`body`: the body of the request\n`responseType`: how the response should be parsed. The default is `json`\n"
+ },
+ "type": {
+ "type": "reference",
+ "name": "FunctionInvokeOptions"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 28,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 29,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 43,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 25,
+ "name": "T"
+ }
+ },
+ {
+ "id": 30,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 43,
+ "character": 24
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [29, 30]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 31,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 32,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 43,
+ "character": 42
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 33,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 43,
+ "character": 54
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Error",
+ "package": "typescript",
+ "name": "Error"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [32, 33]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 20,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 28,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 21,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Updates the authorization header",
+ "tags": [
+ {
+ "tag": "params",
+ "text": "token - the new jwt token sent in the authorisation header\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 22,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [2]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [15, 14, 13]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [23, 20]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 4,
+ "character": 13
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [1]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+}
diff --git a/spec/enrichments/tsdoc_v1/gotrue.json b/spec/enrichments/tsdoc_v1/gotrue.json
new file mode 100644
index 00000000000..778105f9092
--- /dev/null
+++ b/spec/enrichments/tsdoc_v1/gotrue.json
@@ -0,0 +1,11269 @@
+{
+ "id": 0,
+ "name": "@supabase/gotrue-js",
+ "kind": 1,
+ "kindString": "Project",
+ "flags": {},
+ "originalName": "",
+ "children": [
+ {
+ "id": 1,
+ "name": "GoTrueApi",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 2,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 25,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 3,
+ "name": "new GoTrueApi",
+ "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": "cookieOptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 35,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 557,
+ "name": "CookieOptions"
+ }
+ },
+ {
+ "id": 12,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 36,
+ "character": 4
+ }
+ ],
+ "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": {},
+ "parameters": [
+ {
+ "id": 15,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "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": 7,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 32,
+ "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/GoTrueApi.ts",
+ "line": 31,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [11, 12, 7, 6]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 22,
+ "name": "cookieOptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 22,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 557,
+ "name": "CookieOptions"
+ }
+ },
+ {
+ "id": 23,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 23,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 24,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 25,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 26,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 27,
+ "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": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 19,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 19,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 20,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 21,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 17,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 18,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 28,
+ "name": "_createRequestHeaders",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 49,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 29,
+ "name": "_createRequestHeaders",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods"
+ },
+ "parameters": [
+ {
+ "id": 30,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A valid, logged-in JWT.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 31,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {}
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 32,
+ "name": "cookieName",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 55,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 33,
+ "name": "cookieName",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "id": 196,
+ "name": "createUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 659,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 197,
+ "name": "createUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Creates a new user.",
+ "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"
+ },
+ "parameters": [
+ {
+ "id": 198,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The data you want to create the user with.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 539,
+ "name": "AdminUserAttributes"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 199,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 201,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 662,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 202,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 662,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ },
+ {
+ "id": 200,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 662,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [201, 202, 200]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 203,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 205,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 662,
+ "character": 64
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ },
+ {
+ "id": 206,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 662,
+ "character": 76
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 204,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 662,
+ "character": 52
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [205, 206, 204]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 173,
+ "name": "deleteAuthCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 549,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 174,
+ "name": "deleteAuthCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Deletes the Auth Cookies and redirects to the"
+ },
+ "parameters": [
+ {
+ "id": 175,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The request object."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 176,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The response object."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 177,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "Optionally specify a `redirectTo` URL in the options.\n"
+ },
+ "originalName": "__namedParameters",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 178,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 179,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 549,
+ "character": 63
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [179]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ]
+ },
+ {
+ "id": 241,
+ "name": "deleteUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 799,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 242,
+ "name": "deleteUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Delete a user. Requires a `service_role` key.",
+ "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"
+ },
+ "parameters": [
+ {
+ "id": 243,
+ "name": "uid",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The user uid you want to remove.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 244,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 246,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 801,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 247,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 801,
+ "character": 53
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 245,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 801,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [246, 247, 245]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 184,
+ "name": "generateLink",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 616,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 185,
+ "name": "generateLink",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Generates links to be sent via email or other."
+ },
+ "parameters": [
+ {
+ "id": 186,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_current"
+ },
+ {
+ "type": "literal",
+ "value": "email_change_new"
+ }
+ ]
+ }
+ },
+ {
+ "id": 187,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 188,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 189,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 191,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 627,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 190,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 626,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 192,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 628,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [191, 190, 192]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 193,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 194,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 630,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 195,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 630,
+ "character": 44
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [194, 195]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 180,
+ "name": "getAuthCookieString",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 568,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 181,
+ "name": "getAuthCookieString",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Helper method to generate the Auth Cookie string for you in case you can't use `setAuthCookie`.",
+ "returns": "The Cookie string that needs to be set as the value for the `Set-Cookie` header.\n"
+ },
+ "parameters": [
+ {
+ "id": 182,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The request object."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 183,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The response object."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 34,
+ "name": "getUrlForProvider",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 65,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 35,
+ "name": "getUrlForProvider",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Generates the relevant login URL for a third-party provider."
+ },
+ "parameters": [
+ {
+ "id": 36,
+ "name": "provider",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "One of the providers supported by GoTrue."
+ },
+ "type": {
+ "type": "reference",
+ "id": 481,
+ "name": "Provider"
+ }
+ },
+ {
+ "id": 37,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 38,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 41,
+ "name": "queryParams",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 70,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 42,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 43,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 44,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 39,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 68,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 40,
+ "name": "scopes",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 69,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [41, 39, 40]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "id": 248,
+ "name": "getUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 826,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 249,
+ "name": "getUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Gets the current user details.",
+ "text": "This method is called by the GoTrueClient `update` where\nthe jwt is set to this.currentSession.access_token\nand therefore, acts like getting the currently authenticated user\n"
+ },
+ "parameters": [
+ {
+ "id": 250,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A valid, logged-in JWT. Typically, the access_token for the currentSession\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 251,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 253,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 828,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 254,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 828,
+ "character": 53
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 252,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 828,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [253, 254, 252]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 224,
+ "name": "getUserByCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 714,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 225,
+ "name": "getUserByCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ },
+ "parameters": [
+ {
+ "id": 226,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 227,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 228,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 231,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 720,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 232,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 721,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 229,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 718,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 230,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 719,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [231, 232, 229, 230]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 215,
+ "name": "getUserById",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 697,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 216,
+ "name": "getUserById",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Get user by id."
+ },
+ "parameters": [
+ {
+ "id": 217,
+ "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": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 218,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 219,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 699,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 220,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 699,
+ "character": 27
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [219, 220]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 221,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 222,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 699,
+ "character": 49
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ },
+ {
+ "id": 223,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 699,
+ "character": 61
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [222, 223]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 142,
+ "name": "inviteUserByEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 419,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 143,
+ "name": "inviteUserByEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sends an invite link to an email address."
+ },
+ "parameters": [
+ {
+ "id": 144,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 145,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 146,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 148,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 423,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 147,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 422,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [148, 147]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 149,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 150,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 425,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 151,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 425,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [150, 151]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 207,
+ "name": "listUsers",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 679,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 208,
+ "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.\n"
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 209,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 210,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 679,
+ "character": 31
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 211,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 679,
+ "character": 43
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [210, 211]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 212,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 213,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 679,
+ "character": 65
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ }
+ },
+ {
+ "id": 214,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 679,
+ "character": 79
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [213, 214]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 163,
+ "name": "refreshAccessToken",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 479,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 164,
+ "name": "refreshAccessToken",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Generates a new JWT."
+ },
+ "parameters": [
+ {
+ "id": 165,
+ "name": "refreshToken",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A valid refresh token that was returned on login.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 166,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 167,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 481,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 168,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 481,
+ "character": 37
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [167, 168]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 152,
+ "name": "resetPasswordForEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 450,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 153,
+ "name": "resetPasswordForEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sends a reset request to an email address."
+ },
+ "parameters": [
+ {
+ "id": 154,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 155,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 156,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 158,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 454,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 157,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 453,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [158, 157]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 159,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 160,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 456,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 161,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {}
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 162,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 456,
+ "character": 32
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [160, 162]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 95,
+ "name": "sendMagicLinkEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 272,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 96,
+ "name": "sendMagicLinkEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sends a magic login link to an email address."
+ },
+ "parameters": [
+ {
+ "id": 97,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 98,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 99,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 102,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 277,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 101,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 276,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 100,
+ "name": "shouldCreateUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 275,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [102, 101, 100]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 103,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 104,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 279,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 105,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {}
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 106,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 279,
+ "character": 32
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [104, 106]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 107,
+ "name": "sendMobileOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 310,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 108,
+ "name": "sendMobileOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist"
+ },
+ "parameters": [
+ {
+ "id": 109,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's phone number WITH international prefix"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 110,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 111,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 113,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 314,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 112,
+ "name": "shouldCreateUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 313,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [113, 112]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 114,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 115,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 316,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 116,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {}
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 117,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 316,
+ "character": 32
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [115, 117]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 169,
+ "name": "setAuthCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 503,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 170,
+ "name": "setAuthCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ },
+ "parameters": [
+ {
+ "id": 171,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The request object."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 172,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The response object.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 57,
+ "name": "signInWithEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 139,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 58,
+ "name": "signInWithEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Logs in an existing user using their email address."
+ },
+ "parameters": [
+ {
+ "id": 59,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 60,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 61,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 62,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 64,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 144,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 63,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 143,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [64, 63]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 65,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 66,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 146,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 67,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 146,
+ "character": 37
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [66, 67]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 89,
+ "name": "signInWithOpenIDConnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 241,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 90,
+ "name": "signInWithOpenIDConnect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Logs in an OpenID Connect user using their id_token."
+ },
+ "parameters": [
+ {
+ "id": 91,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 583,
+ "name": "OpenIDConnectCredentials"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 92,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 93,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 247,
+ "character": 42
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 94,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 247,
+ "character": 64
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [93, 94]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 79,
+ "name": "signInWithPhone",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 209,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 80,
+ "name": "signInWithPhone",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Logs in an existing user using their phone number and password."
+ },
+ "parameters": [
+ {
+ "id": 81,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The phone number of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 82,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 83,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 84,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 85,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 213,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [85]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 86,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 87,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 215,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 88,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 215,
+ "character": 37
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [87, 88]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 118,
+ "name": "signOut",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 340,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 119,
+ "name": "signOut",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Removes a logged-in session."
+ },
+ "parameters": [
+ {
+ "id": 120,
+ "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": 121,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 122,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 340,
+ "character": 40
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [122]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 45,
+ "name": "signUpWithEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 98,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 46,
+ "name": "signUpWithEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Creates a new user using their email address.",
+ "returns": "A logged-in session if the server has \"autoconfirm\" ON"
+ },
+ "parameters": [
+ {
+ "id": 47,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 48,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 49,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 50,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 53,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 104,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 52,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 103,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 51,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 102,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [53, 52, 51]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "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/GoTrueApi.ts",
+ "line": 106,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 56,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 106,
+ "character": 44
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [55, 56]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 68,
+ "name": "signUpWithPhone",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 174,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 69,
+ "name": "signUpWithPhone",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Signs up a new user using their phone number and a password."
+ },
+ "parameters": [
+ {
+ "id": 70,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The phone number of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 71,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 72,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 73,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 75,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 179,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 74,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 178,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [75, 74]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 76,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 77,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 181,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 78,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 181,
+ "character": 44
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [77, 78]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 255,
+ "name": "updateUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 844,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 256,
+ "name": "updateUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Updates the user data."
+ },
+ "parameters": [
+ {
+ "id": 257,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A valid, logged-in JWT."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 258,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The data you want to update.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 533,
+ "name": "UserAttributes"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 259,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 261,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 847,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 262,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 847,
+ "character": 53
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 260,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 847,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [261, 262, 260]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 233,
+ "name": "updateUserById",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 777,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 234,
+ "name": "updateUserById",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Updates the user data."
+ },
+ "parameters": [
+ {
+ "id": 235,
+ "name": "uid",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 236,
+ "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": 539,
+ "name": "AdminUserAttributes"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 237,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 239,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 780,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 240,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 780,
+ "character": 53
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 238,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 780,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [239, 240, 238]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 123,
+ "name": "verifyMobileOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 360,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 124,
+ "name": "verifyMobileOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `verifyOTP` instead!"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 125,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The user's phone number WITH international prefix"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 126,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "token that user was sent to their mobile phone"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 127,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 128,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 129,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 364,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [129]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 130,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 131,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 366,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 132,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 366,
+ "character": 44
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [131, 132]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 133,
+ "name": "verifyOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 391,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 134,
+ "name": "verifyOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Send User supplied Email / Mobile OTP to be verified"
+ },
+ "parameters": [
+ {
+ "id": 135,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 570,
+ "name": "VerifyOTPParams"
+ }
+ },
+ {
+ "id": 136,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 137,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 138,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 394,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [138]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 139,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 140,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 396,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 141,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 396,
+ "character": 44
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [140, 141]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [2]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [22, 23, 18, 17]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 28, 32, 196, 173, 241, 184, 180, 34, 248, 224, 215, 142, 207, 163, 152, 95, 107, 169,
+ 57, 89, 79, 118, 45, 68, 255, 233, 123, 133
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/GoTrueApi.ts",
+ "line": 17,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 263,
+ "name": "GoTrueClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 264,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 82,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 265,
+ "name": "new GoTrueClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Create a new client for use in the browser."
+ },
+ "parameters": [
+ {
+ "id": 266,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 267,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 274,
+ "name": "autoRefreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set to \"true\" if you want to automatically refresh the token before expiring."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 86,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 278,
+ "name": "cookieOptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 90,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 557,
+ "name": "CookieOptions"
+ }
+ },
+ {
+ "id": 273,
+ "name": "detectSessionInUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 85,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 279,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 91,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 280,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 281,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "A custom fetch implementation.\n"
+ },
+ "parameters": [
+ {
+ "id": 282,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 283,
+ "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": 269,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Any additional headers to send to the GoTrue server."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 84,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 270,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 271,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 272,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 276,
+ "name": "localStorage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Provide your own local storage implementation to use instead of the browser's local storage."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 88,
+ "character": 4
+ }
+ ],
+ "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"
+ }
+ },
+ {
+ "id": 277,
+ "name": "multiTab",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set to \"false\" if you want to disable multi-tab/window events."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 89,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 275,
+ "name": "persistSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set to \"true\" if you want to automatically save the user session into local storage."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 87,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 268,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The URL of the GoTrue server."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 83,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [274, 278, 273, 279, 269, 276, 277, 275, 268]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 263,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 284,
+ "name": "api",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 52,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 1,
+ "name": "default"
+ }
+ },
+ {
+ "id": 287,
+ "name": "autoRefreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 62,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 286,
+ "name": "currentSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "comment": {
+ "shortText": "The session object for the currently logged in user or null."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 60,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 285,
+ "name": "currentUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "comment": {
+ "shortText": "The currently logged in user or null."
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 56,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 289,
+ "name": "localStorage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 64,
+ "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"
+ }
+ },
+ {
+ "id": 290,
+ "name": "multiTab",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 65,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 293,
+ "name": "networkRetries",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 68,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
+ },
+ {
+ "id": 288,
+ "name": "persistSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 63,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 292,
+ "name": "refreshTokenTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 67,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "NodeJS.Timeout",
+ "package": "@types/node",
+ "name": "Timeout"
+ }
+ },
+ {
+ "id": 291,
+ "name": "stateChangeEmitters",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 66,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "reference",
+ "id": 549,
+ "name": "Subscription"
+ }
+ ],
+ "qualifiedName": "Map",
+ "package": "typescript",
+ "name": "Map"
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 454,
+ "name": "_callRefreshToken",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 695,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 455,
+ "name": "_callRefreshToken",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 456,
+ "name": "refresh_token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 457,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 458,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ },
+ {
+ "id": 459,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [458, 459]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 460,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 461,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 462,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [461, 462]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 383,
+ "name": "_handleEmailSignIn",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 520,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 384,
+ "name": "_handleEmailSignIn",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 385,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 386,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 387,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 388,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 390,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 525,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 389,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 524,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [390, 389]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 391,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 392,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 395,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 394,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 393,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [392, 395, 394, 393]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 396,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 397,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ },
+ {
+ "id": 400,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 399,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ },
+ "defaultValue": "data"
+ },
+ {
+ "id": 398,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ },
+ "defaultValue": "data.user"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [397, 400, 399, 398]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 443,
+ "name": "_handleOpenIDConnectSignIn",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 595,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 444,
+ "name": "_handleOpenIDConnectSignIn",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 445,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 583,
+ "name": "OpenIDConnectCredentials"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 446,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 449,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 604,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 447,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 602,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 448,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 603,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [449, 447, 448]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 401,
+ "name": "_handlePhoneSignIn",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 546,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 402,
+ "name": "_handlePhoneSignIn",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 403,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 404,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 405,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 406,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 407,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 550,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [407]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 408,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 409,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 412,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 411,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 410,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [409, 412, 411, 410]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 413,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 414,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ },
+ {
+ "id": 417,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 416,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ },
+ "defaultValue": "data"
+ },
+ {
+ "id": 415,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ },
+ "defaultValue": "data.user"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [414, 417, 416, 415]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 418,
+ "name": "_handleProviderSignIn",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 568,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 419,
+ "name": "_handleProviderSignIn",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 420,
+ "name": "provider",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 481,
+ "name": "Provider"
+ }
+ },
+ {
+ "id": 421,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 422,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 425,
+ "name": "queryParams",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 573,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 426,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 427,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 428,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 423,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 571,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 424,
+ "name": "scopes",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 572,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [425, 423, 424]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 429,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 432,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 435,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 430,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 481,
+ "name": "Provider"
+ }
+ },
+ {
+ "id": 433,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 431,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 434,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [432, 435, 430, 433, 431, 434]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 436,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 437,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 440,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 441,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ },
+ {
+ "id": 439,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 442,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ },
+ {
+ "id": 438,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "literal",
+ "value": null
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [437, 440, 441, 439, 442, 438]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 479,
+ "name": "_handleVisibilityChange",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 800,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 480,
+ "name": "_handleVisibilityChange",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "literal",
+ "value": false
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 477,
+ "name": "_listenForMultiTabEvents",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 777,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 478,
+ "name": "_listenForMultiTabEvents",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Listens for changes to LocalStorage and updates the current session."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "literal",
+ "value": false
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 463,
+ "name": "_notifyAllSubscribers",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 714,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 464,
+ "name": "_notifyAllSubscribers",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 465,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 482,
+ "name": "AuthChangeEvent"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 469,
+ "name": "_persistSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 741,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 470,
+ "name": "_persistSession",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 471,
+ "name": "currentSession",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 452,
+ "name": "_recoverAndRefresh",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 650,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 453,
+ "name": "_recoverAndRefresh",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 450,
+ "name": "_recoverSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 630,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 451,
+ "name": "_recoverSession",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 472,
+ "name": "_removeSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 746,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 473,
+ "name": "_removeSession",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 466,
+ "name": "_saveSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 722,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 467,
+ "name": "_saveSession",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible"
+ },
+ "parameters": [
+ {
+ "id": 468,
+ "name": "session",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 474,
+ "name": "_startAutoRefreshToken",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 757,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 475,
+ "name": "_startAutoRefreshToken",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Clear and re-create refresh token timer"
+ },
+ "parameters": [
+ {
+ "id": 476,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "time intervals in milliseconds\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 361,
+ "name": "getSessionFromUrl",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 428,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 362,
+ "name": "getSessionFromUrl",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Gets the session data from a URL string"
+ },
+ "parameters": [
+ {
+ "id": 363,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 364,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 365,
+ "name": "storeSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Optionally store the session in the browser\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 429,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [365]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 366,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 367,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 430,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 368,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 430,
+ "character": 38
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [367, 368]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 373,
+ "name": "onAuthStateChange",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 500,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 374,
+ "name": "onAuthStateChange",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Receive a notification every time an auth event happens.",
+ "returns": "A subscription object which can be used to unsubscribe itself.\n"
+ },
+ "parameters": [
+ {
+ "id": 375,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 376,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 377,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 378,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 482,
+ "name": "AuthChangeEvent"
+ }
+ },
+ {
+ "id": 379,
+ "name": "session",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 380,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 381,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 501,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 549,
+ "name": "Subscription"
+ }
+ ]
+ }
+ },
+ {
+ "id": 382,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 502,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [381, 382]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 339,
+ "name": "refreshSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 339,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 340,
+ "name": "refreshSession",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Force refreshes the session including the user data in case it was updated in a different session."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 341,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 342,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 340,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 344,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 342,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 343,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 341,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [342, 344, 343]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 337,
+ "name": "session",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 332,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 338,
+ "name": "session",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns the session data, if there is an active session."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 358,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 411,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 359,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests."
+ },
+ "parameters": [
+ {
+ "id": 360,
+ "name": "access_token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "a jwt access token\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ }
+ ]
+ },
+ {
+ "id": 352,
+ "name": "setSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 387,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 353,
+ "name": "setSession",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Sets the session data from refresh_token and returns current Session and Error"
+ },
+ "parameters": [
+ {
+ "id": 354,
+ "name": "refresh_token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "a JWT token\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 355,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 357,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 389,
+ "character": 40
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 356,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 389,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [357, 356]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 306,
+ "name": "signIn",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 197,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 307,
+ "name": "signIn",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Log in an existing user, or login via a third-party provider."
+ },
+ "parameters": [
+ {
+ "id": 308,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 563,
+ "name": "UserCredentials"
+ }
+ },
+ {
+ "id": 309,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 310,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 314,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 203,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 315,
+ "name": "queryParams",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 204,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 316,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 317,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 318,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 311,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 200,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 313,
+ "name": "scopes",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 202,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 312,
+ "name": "shouldCreateUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 201,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [314, 315, 311, 313, 312]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 319,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 324,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 211,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 322,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 209,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 481,
+ "name": "Provider"
+ }
+ },
+ {
+ "id": 320,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 207,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 323,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 210,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 321,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 208,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [324, 322, 320, 323, 321]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 369,
+ "name": "signOut",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 485,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 370,
+ "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)`. There is no way to revoke a user's session JWT before it automatically expires\n"
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 371,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 372,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 485,
+ "character": 29
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [372]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 294,
+ "name": "signUp",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 130,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 295,
+ "name": "signUp",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Creates a new user."
+ },
+ "parameters": [
+ {
+ "id": 296,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 563,
+ "name": "UserCredentials"
+ }
+ },
+ {
+ "id": 297,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 298,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 301,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 135,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 300,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 134,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 299,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 133,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [301, 300, 299]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 302,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 305,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 140,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 304,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 139,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 303,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 138,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [305, 304, 303]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 345,
+ "name": "update",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 360,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 346,
+ "name": "update",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Updates user data, if there is a logged in user."
+ },
+ "parameters": [
+ {
+ "id": 347,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 533,
+ "name": "UserAttributes"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 348,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 349,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 362,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 351,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 362,
+ "character": 53
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 350,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 362,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [349, 351, 350]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 335,
+ "name": "user",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 325,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 336,
+ "name": "user",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.",
+ "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 325,
+ "name": "verifyOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 277,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 326,
+ "name": "verifyOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Log in a user given a User supplied OTP received via mobile."
+ },
+ "parameters": [
+ {
+ "id": 327,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 570,
+ "name": "VerifyOTPParams"
+ }
+ },
+ {
+ "id": 328,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 329,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 330,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 280,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [330]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 331,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 334,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 285,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 483,
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 333,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 284,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 332,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 283,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [334, 333, 332]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [264]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [284, 287, 286, 285, 289, 290, 293, 288, 292, 291]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 454, 383, 443, 401, 418, 479, 477, 463, 469, 452, 450, 472, 466, 474, 361, 373, 339,
+ 337, 358, 352, 306, 369, 294, 345, 335, 325
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/GoTrueClient.ts",
+ "line": 47,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 539,
+ "name": "AdminUserAttributes",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 541,
+ "name": "app_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object for app_metadata that.",
+ "text": "Only a service role can modify.\n\nCan be any JSON that includes app-specific info, such as identity providers, roles, and other\naccess control information.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 137,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 548,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 112,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 538,
+ "name": "UserAttributes.data"
+ }
+ },
+ {
+ "id": 544,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 92,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 534,
+ "name": "UserAttributes.email"
+ }
+ },
+ {
+ "id": 547,
+ "name": "email_change_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "An email change token."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 107,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 537,
+ "name": "UserAttributes.email_change_token"
+ }
+ },
+ {
+ "id": 542,
+ "name": "email_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Sets if a user has confirmed their email address.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 144,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 546,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 102,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 536,
+ "name": "UserAttributes.password"
+ }
+ },
+ {
+ "id": 545,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's phone."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 97,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 535,
+ "name": "UserAttributes.phone"
+ }
+ },
+ {
+ "id": 543,
+ "name": "phone_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Sets if a user has confirmed their phone number.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 151,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 540,
+ "name": "user_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object for user_metadata.",
+ "text": "Can be any JSON.\n\nOnly a service role can modify.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's user_metadata,\nthis attribute is used instead of UserAttributes data.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 127,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [541, 548, 544, 547, 542, 546, 545, 543, 540]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 115,
+ "character": 17
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 533,
+ "name": "UserAttributes"
+ }
+ ]
+ },
+ {
+ "id": 483,
+ "name": "ApiError",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 484,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 28,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 485,
+ "name": "status",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 29,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [484, 485]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 27,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 557,
+ "name": "CookieOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 560,
+ "name": "domain",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 175,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 559,
+ "name": "lifetime",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 173,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 558,
+ "name": "name",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 171,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 561,
+ "name": "path",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 176,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 562,
+ "name": "sameSite",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 178,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [560, 559, 558, 561, 562]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 169,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 583,
+ "name": "OpenIDConnectCredentials",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 587,
+ "name": "client_id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 211,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 584,
+ "name": "id_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 208,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 588,
+ "name": "issuer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 212,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 585,
+ "name": "nonce",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 209,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 586,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 210,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 481,
+ "name": "Provider"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [587, 584, 588, 585, 586]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 207,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 486,
+ "name": "Session",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 488,
+ "name": "access_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 34,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 490,
+ "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": 42,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 489,
+ "name": "expires_in",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "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": 38,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 487,
+ "name": "provider_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 33,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 491,
+ "name": "refresh_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 43,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 492,
+ "name": "token_type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 44,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 493,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 45,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 505,
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [488, 490, 489, 487, 491, 492, 493]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 32,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 549,
+ "name": "Subscription",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 550,
+ "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": 158,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 551,
+ "name": "callback",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 162,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 552,
+ "name": "callback",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "The function to call every time there is an event. eg: (eventName) => {}"
+ },
+ "parameters": [
+ {
+ "id": 553,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 482,
+ "name": "AuthChangeEvent"
+ }
+ },
+ {
+ "id": 554,
+ "name": "session",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 486,
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 555,
+ "name": "unsubscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 166,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 556,
+ "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": [550]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [551, 555]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 154,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 505,
+ "name": "User",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 522,
+ "name": "action_link",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 75,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 507,
+ "name": "app_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 62,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 508,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 509,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 63,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [509]
+ }
+ ],
+ "indexSignature": {
+ "id": 510,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 511,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 516,
+ "name": "aud",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 69,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 517,
+ "name": "confirmation_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 70,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 526,
+ "name": "confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 79,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 525,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 78,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 523,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 76,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 519,
+ "name": "email_change_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 72,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 527,
+ "name": "email_confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 80,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 506,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 532,
+ "name": "identities",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 85,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 494,
+ "name": "UserIdentity"
+ }
+ }
+ },
+ {
+ "id": 521,
+ "name": "invited_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 74,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 529,
+ "name": "last_sign_in_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 82,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 520,
+ "name": "new_email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 73,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 524,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 77,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 528,
+ "name": "phone_confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 81,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 518,
+ "name": "recovery_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 71,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 530,
+ "name": "role",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 83,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 531,
+ "name": "updated_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 84,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 512,
+ "name": "user_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 66,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 513,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 514,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 515,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 522, 507, 516, 517, 526, 525, 523, 519, 527, 506, 532, 521, 529, 520, 524, 528, 518,
+ 530, 531, 512
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 60,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 533,
+ "name": "UserAttributes",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 538,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 112,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 534,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 92,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 537,
+ "name": "email_change_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "An email change token."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 107,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 536,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 102,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 535,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's phone."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 97,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [538, 534, 537, 536, 535]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 88,
+ "character": 17
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 539,
+ "name": "AdminUserAttributes"
+ }
+ ]
+ },
+ {
+ "id": 563,
+ "name": "UserCredentials",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 564,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 182,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 569,
+ "name": "oidc",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 188,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 583,
+ "name": "OpenIDConnectCredentials"
+ }
+ },
+ {
+ "id": 566,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 184,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 565,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 183,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 568,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 187,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 481,
+ "name": "Provider"
+ }
+ },
+ {
+ "id": 567,
+ "name": "refreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 185,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [564, 569, 566, 565, 568, 567]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 181,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 494,
+ "name": "UserIdentity",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 502,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 55,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 495,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 49,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 497,
+ "name": "identity_data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 51,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 498,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 499,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 500,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 503,
+ "name": "last_sign_in_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 56,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 501,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 54,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 504,
+ "name": "updated_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 57,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 496,
+ "name": "user_id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 50,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [502, 495, 497, 503, 501, 504, 496]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 48,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 576,
+ "name": "VerifyEmailOTPParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 577,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 199,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 578,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 200,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ },
+ {
+ "id": 579,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 201,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 580,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 202,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 582,
+ "name": "EmailOTPType"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [577, 578, 579, 580]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 198,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 571,
+ "name": "VerifyMobileOTPParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 572,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 193,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ },
+ {
+ "id": 573,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 194,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 574,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 195,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 575,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 196,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 581,
+ "name": "MobileOTPType"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [572, 573, 574, 575]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 192,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 482,
+ "name": "AuthChangeEvent",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 19,
+ "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": 582,
+ "name": "EmailOTPType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 205,
+ "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"
+ }
+ ]
+ }
+ },
+ {
+ "id": 581,
+ "name": "MobileOTPType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 204,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "phone_change"
+ }
+ ]
+ }
+ },
+ {
+ "id": 481,
+ "name": "Provider",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 1,
+ "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": 589,
+ "name": "SupportedStorage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 224,
+ "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"
+ }
+ },
+ {
+ "id": 570,
+ "name": "VerifyOTPParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 191,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 571,
+ "name": "VerifyMobileOTPParams"
+ },
+ {
+ "type": "reference",
+ "id": 576,
+ "name": "VerifyEmailOTPParams"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [1, 263]
+ },
+ {
+ "title": "Interfaces",
+ "kind": 256,
+ "children": [539, 483, 557, 583, 486, 549, 505, 533, 563, 494, 576, 571]
+ },
+ {
+ "title": "Type aliases",
+ "kind": 4194304,
+ "children": [482, 582, 581, 481, 589, 570]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+}
diff --git a/spec/enrichments/tsdoc_v1/postgrest.json b/spec/enrichments/tsdoc_v1/postgrest.json
new file mode 100644
index 00000000000..bf1dae1b947
--- /dev/null
+++ b/spec/enrichments/tsdoc_v1/postgrest.json
@@ -0,0 +1,12243 @@
+{
+ "id": 0,
+ "name": "@supabase/postgrest-js",
+ "kind": 0,
+ "flags": {},
+ "originalName": "",
+ "children": [
+ {
+ "id": 475,
+ "name": "\"PostgrestClient\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/PostgrestClient.ts",
+ "children": [
+ {
+ "id": 476,
+ "name": "PostgrestClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 485,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Creates a PostgREST client."
+ },
+ "signatures": [
+ {
+ "id": 486,
+ "name": "new PostgrestClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Creates a PostgREST client."
+ },
+ "parameters": [
+ {
+ "id": 487,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "URL of the PostgREST endpoint."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 488,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 489,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 495,
+ "name": "fetch",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 26,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "id": 350,
+ "name": "fetch"
+ }
+ ]
+ }
+ },
+ {
+ "id": 490,
+ "name": "headers",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Custom headers."
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 24,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 491,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 492,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 493,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 494,
+ "name": "schema",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Postgres schema to switch to.\n"
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 25,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 496,
+ "name": "throwOnError",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 27,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [495, 490, 494, 496]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 22,
+ "character": 16
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 476,
+ "name": "PostgrestClient"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 12,
+ "character": 30
+ }
+ ]
+ },
+ {
+ "id": 483,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 11,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 58,
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 478,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 9,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 479,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 480,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 481,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 9,
+ "character": 10
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 482,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 10,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 484,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 12,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ },
+ {
+ "id": 477,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 8,
+ "character": 5
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 497,
+ "name": "auth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 498,
+ "name": "auth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Authenticates the request with JWT."
+ },
+ "parameters": [
+ {
+ "id": 499,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The JWT token to use.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 47,
+ "character": 6
+ }
+ ]
+ },
+ {
+ "id": 500,
+ "name": "from",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 501,
+ "name": "from",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Perform a table operation."
+ },
+ "typeParameter": [
+ {
+ "id": 502,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 503,
+ "name": "table",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The table name to operate on.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 338,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T",
+ "default": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "name": "PostgrestQueryBuilder"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 57,
+ "character": 6
+ }
+ ]
+ },
+ {
+ "id": 504,
+ "name": "rpc",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 505,
+ "name": "rpc",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Perform a function call."
+ },
+ "typeParameter": [
+ {
+ "id": 506,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 507,
+ "name": "fn",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The function name to call."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 508,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "The parameters to pass to the function call."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ ]
+ }
+ },
+ {
+ "id": 509,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__2",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 510,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 512,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Count algorithm to use to count rows in a table.\n"
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 80,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 511,
+ "name": "head",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "When set to true, no data will be returned."
+ },
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 79,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [512, 511]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 77,
+ "character": 20
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 137,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T",
+ "default": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "name": "PostgrestFilterBuilder"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 75,
+ "character": 5
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [485]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [483, 478, 482, 484, 477]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [497, 500, 504]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 7,
+ "character": 36
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [476]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "PostgrestClient.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 513,
+ "name": "\"index\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/index.ts",
+ "sources": [
+ {
+ "fileName": "index.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 136,
+ "name": "\"lib/PostgrestFilterBuilder\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestFilterBuilder.ts",
+ "children": [
+ {
+ "id": 137,
+ "name": "PostgrestFilterBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 138,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "children": [
+ {
+ "id": 318,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 319,
+ "name": "new PostgrestFilterBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 320,
+ "name": "builder",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 27,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestBuilder"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 137,
+ "name": "PostgrestFilterBuilder"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 40,
+ "name": "PostgrestBuilder.__constructor"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 61,
+ "character": 24
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 40,
+ "name": "PostgrestBuilder.__constructor"
+ }
+ },
+ {
+ "id": 224,
+ "name": "adj",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `rangeAdjacent()` instead."
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 328,
+ "character": 5
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 220,
+ "name": "rangeAdjacent"
+ },
+ "defaultValue": "this.rangeAdjacent"
+ },
+ {
+ "id": 314,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 58,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ }
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 36,
+ "name": "PostgrestBuilder.body"
+ }
+ },
+ {
+ "id": 199,
+ "name": "cd",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `containedBy()` instead."
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 253,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 195,
+ "name": "containedBy"
+ },
+ "defaultValue": "this.containedBy"
+ },
+ {
+ "id": 194,
+ "name": "cs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `contains()` instead."
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 229,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 190,
+ "name": "contains"
+ },
+ "defaultValue": "this.contains"
+ },
+ {
+ "id": 317,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 61,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 58,
+ "name": "Fetch"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 39,
+ "name": "PostgrestBuilder.fetch"
+ }
+ },
+ {
+ "id": 309,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 56,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 310,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 311,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 312,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 56,
+ "character": 21
+ }
+ ]
+ }
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 31,
+ "name": "PostgrestBuilder.headers"
+ }
+ },
+ {
+ "id": 307,
+ "name": "method",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 54,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "GET"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "HEAD"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "POST"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PATCH"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "DELETE"
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 29,
+ "name": "PostgrestBuilder.method"
+ }
+ },
+ {
+ "id": 214,
+ "name": "nxl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `rangeGte()` instead."
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 298,
+ "character": 5
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 210,
+ "name": "rangeGte"
+ },
+ "defaultValue": "this.rangeGte"
+ },
+ {
+ "id": 219,
+ "name": "nxr",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `rangeLte()` instead."
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 313,
+ "character": 5
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 215,
+ "name": "rangeLte"
+ },
+ "defaultValue": "this.rangeLte"
+ },
+ {
+ "id": 229,
+ "name": "ov",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `overlaps()` instead."
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 349,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 225,
+ "name": "overlaps"
+ },
+ "defaultValue": "this.overlaps"
+ },
+ {
+ "id": 313,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 57,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 35,
+ "name": "PostgrestBuilder.schema"
+ }
+ },
+ {
+ "id": 315,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 59,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 37,
+ "name": "PostgrestBuilder.shouldThrowOnError"
+ }
+ },
+ {
+ "id": 316,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 60,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "AbortSignal"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 38,
+ "name": "PostgrestBuilder.signal"
+ }
+ },
+ {
+ "id": 204,
+ "name": "sl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `rangeLt()` instead."
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 268,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 200,
+ "name": "rangeLt"
+ },
+ "defaultValue": "this.rangeLt"
+ },
+ {
+ "id": 209,
+ "name": "sr",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `rangeGt()` instead."
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 283,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 205,
+ "name": "rangeGt"
+ },
+ "defaultValue": "this.rangeGt"
+ },
+ {
+ "id": 308,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 55,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "URL"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 30,
+ "name": "PostgrestBuilder.url"
+ }
+ },
+ {
+ "id": 298,
+ "name": "abortSignal",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 299,
+ "name": "abortSignal",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Sets the AbortSignal for the fetch request."
+ },
+ "parameters": [
+ {
+ "id": 300,
+ "name": "signal",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "AbortSignal"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 98,
+ "name": "PostgrestTransformBuilder.abortSignal"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 91,
+ "character": 13
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 98,
+ "name": "PostgrestTransformBuilder.abortSignal"
+ }
+ },
+ {
+ "id": 195,
+ "name": "containedBy",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 196,
+ "name": "containedBy",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose json, array, or range value on the stated `column` is\ncontained by the specified `value`."
+ },
+ "parameters": [
+ {
+ "id": 197,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 198,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ "objectType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 238,
+ "character": 13
+ }
+ ]
+ },
+ {
+ "id": 190,
+ "name": "contains",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 191,
+ "name": "contains",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose json, array, or range value on the stated `column`\ncontains the values specified in `value`."
+ },
+ "parameters": [
+ {
+ "id": 192,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 193,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ "objectType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 213,
+ "character": 10
+ }
+ ]
+ },
+ {
+ "id": 305,
+ "name": "csv",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 306,
+ "name": "csv",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Set the response type to CSV."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 67,
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 105,
+ "name": "PostgrestTransformBuilder.csv"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 134,
+ "character": 5
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 105,
+ "name": "PostgrestTransformBuilder.csv"
+ }
+ },
+ {
+ "id": 150,
+ "name": "eq",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 151,
+ "name": "eq",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose value on the stated `column` exactly matches the\nspecified `value`."
+ },
+ "parameters": [
+ {
+ "id": 152,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 153,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ "objectType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 85,
+ "character": 4
+ }
+ ]
+ },
+ {
+ "id": 266,
+ "name": "filter",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 267,
+ "name": "filter",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose `column` satisfies the filter."
+ },
+ "parameters": [
+ {
+ "id": 268,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 269,
+ "name": "operator",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The operator to filter with."
+ },
+ "type": {
+ "type": "reference",
+ "id": 336,
+ "name": "FilterOperator"
+ }
+ },
+ {
+ "id": 270,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 452,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 238,
+ "name": "fts",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 239,
+ "name": "fts",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nto_tsquery(`query`).",
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `textSearch()` instead.\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 240,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 241,
+ "name": "query",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The Postgres tsquery string to filter with."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 242,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__2",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 243,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 244,
+ "name": "config",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The text search configuration to use.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 391,
+ "character": 46
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [244]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 391,
+ "character": 37
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 391,
+ "character": 5
+ }
+ ]
+ },
+ {
+ "id": 158,
+ "name": "gt",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 159,
+ "name": "gt",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose value on the stated `column` is greater than the\nspecified `value`."
+ },
+ "parameters": [
+ {
+ "id": 160,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 161,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ "objectType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 109,
+ "character": 4
+ }
+ ]
+ },
+ {
+ "id": 162,
+ "name": "gte",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 163,
+ "name": "gte",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose value on the stated `column` is greater than or\nequal to the specified `value`."
+ },
+ "parameters": [
+ {
+ "id": 164,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 165,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ "objectType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 121,
+ "character": 5
+ }
+ ]
+ },
+ {
+ "id": 178,
+ "name": "ilike",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 179,
+ "name": "ilike",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose value in the stated `column` matches the supplied\n`pattern` (case insensitive)."
+ },
+ "parameters": [
+ {
+ "id": 180,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 181,
+ "name": "pattern",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The pattern to filter with.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 169,
+ "character": 7
+ }
+ ]
+ },
+ {
+ "id": 186,
+ "name": "in",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 187,
+ "name": "in",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose value on the stated `column` is found on the\nspecified `values`."
+ },
+ "parameters": [
+ {
+ "id": 188,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 189,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The values to filter with.\n"
+ },
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ "objectType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 193,
+ "character": 4
+ }
+ ]
+ },
+ {
+ "id": 182,
+ "name": "is",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 183,
+ "name": "is",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "A check for exact equality (null, true, false), finds all rows whose\nvalue on the stated `column` exactly match the specified `value`."
+ },
+ "parameters": [
+ {
+ "id": 184,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 185,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 181,
+ "character": 4
+ }
+ ]
+ },
+ {
+ "id": 174,
+ "name": "like",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 175,
+ "name": "like",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose value in the stated `column` matches the supplied\n`pattern` (case sensitive)."
+ },
+ "parameters": [
+ {
+ "id": 176,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 177,
+ "name": "pattern",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The pattern to filter with.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 157,
+ "character": 6
+ }
+ ]
+ },
+ {
+ "id": 285,
+ "name": "limit",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 286,
+ "name": "limit",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Limits the result with the specified `count`."
+ },
+ "parameters": [
+ {
+ "id": 287,
+ "name": "count",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The maximum no. of rows to limit to."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 288,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 289,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 290,
+ "name": "foreignTable",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The foreign table to use (for foreign columns).\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 66,
+ "character": 37
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [290]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 66,
+ "character": 22
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 85,
+ "name": "PostgrestTransformBuilder.limit"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 66,
+ "character": 7
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 85,
+ "name": "PostgrestTransformBuilder.limit"
+ }
+ },
+ {
+ "id": 166,
+ "name": "lt",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 167,
+ "name": "lt",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose value on the stated `column` is less than the\nspecified `value`."
+ },
+ "parameters": [
+ {
+ "id": 168,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 169,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ "objectType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 133,
+ "character": 4
+ }
+ ]
+ },
+ {
+ "id": 170,
+ "name": "lte",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 171,
+ "name": "lte",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose value on the stated `column` is less than or equal\nto the specified `value`."
+ },
+ "parameters": [
+ {
+ "id": 172,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 173,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ "objectType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 145,
+ "character": 5
+ }
+ ]
+ },
+ {
+ "id": 271,
+ "name": "match",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 272,
+ "name": "match",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose columns match the specified `query` object."
+ },
+ "parameters": [
+ {
+ "id": 273,
+ "name": "query",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The object to filter with, with column names as keys mapped\n to their filter values.\n"
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ ],
+ "name": "Record"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 463,
+ "character": 7
+ }
+ ]
+ },
+ {
+ "id": 303,
+ "name": "maybeSingle",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 304,
+ "name": "maybeSingle",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Retrieves at most one row from the result. Result must be at most one row\n(e.g. using `eq` on a UNIQUE column), otherwise this will result in an\nerror."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 69,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestMaybeSingleResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 103,
+ "name": "PostgrestTransformBuilder.maybeSingle"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 110,
+ "character": 13
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 103,
+ "name": "PostgrestTransformBuilder.maybeSingle"
+ }
+ },
+ {
+ "id": 154,
+ "name": "neq",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 155,
+ "name": "neq",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose value on the stated `column` doesn't match the\nspecified `value`."
+ },
+ "parameters": [
+ {
+ "id": 156,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 157,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ "objectType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 97,
+ "character": 5
+ }
+ ]
+ },
+ {
+ "id": 139,
+ "name": "not",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 140,
+ "name": "not",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows which doesn't satisfy the filter."
+ },
+ "parameters": [
+ {
+ "id": 141,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 142,
+ "name": "operator",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The operator to filter with."
+ },
+ "type": {
+ "type": "reference",
+ "id": 336,
+ "name": "FilterOperator"
+ }
+ },
+ {
+ "id": 143,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 61,
+ "character": 5
+ }
+ ]
+ },
+ {
+ "id": 144,
+ "name": "or",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 145,
+ "name": "or",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows satisfying at least one of the filters."
+ },
+ "parameters": [
+ {
+ "id": 146,
+ "name": "filters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The filters to use, separated by commas."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 147,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 148,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 149,
+ "name": "foreignTable",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The foreign table to use (if `column` is a foreign column).\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 72,
+ "character": 36
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [149]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 72,
+ "character": 21
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 72,
+ "character": 4
+ }
+ ]
+ },
+ {
+ "id": 277,
+ "name": "order",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 278,
+ "name": "order",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Orders the result with the specified `column`."
+ },
+ "parameters": [
+ {
+ "id": 279,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to order on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 280,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 281,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 282,
+ "name": "ascending",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "If `true`, the result will be in ascending order."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 43,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "true"
+ },
+ {
+ "id": 284,
+ "name": "foreignTable",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The foreign table to use (if `column` is a foreign column).\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 45,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 283,
+ "name": "nullsFirst",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "If `true`, `null`s appear first."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 44,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [282, 284, 283]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 41,
+ "character": 20
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 77,
+ "name": "PostgrestTransformBuilder.order"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 40,
+ "character": 7
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 77,
+ "name": "PostgrestTransformBuilder.order"
+ }
+ },
+ {
+ "id": 225,
+ "name": "overlaps",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 226,
+ "name": "overlaps",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose array or range value on the stated `column` overlaps\n(has a value in common) with the specified `value`."
+ },
+ "parameters": [
+ {
+ "id": 227,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 228,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The value to filter with.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ "objectType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 337,
+ "character": 10
+ }
+ ]
+ },
+ {
+ "id": 252,
+ "name": "phfts",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 253,
+ "name": "phfts",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nphraseto_tsquery(`query`).",
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `textSearch()` with `type: 'phrase'` instead.\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 254,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 255,
+ "name": "query",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The Postgres tsquery string to filter with."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 256,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__2",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 257,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 258,
+ "name": "config",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The text search configuration to use.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 423,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [258]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 423,
+ "character": 39
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 423,
+ "character": 7
+ }
+ ]
+ },
+ {
+ "id": 245,
+ "name": "plfts",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 246,
+ "name": "plfts",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nplainto_tsquery(`query`).",
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `textSearch()` with `type: 'plain'` instead.\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 247,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 248,
+ "name": "query",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The Postgres tsquery string to filter with."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 249,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__2",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 250,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 251,
+ "name": "config",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The text search configuration to use.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 407,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [251]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 407,
+ "character": 39
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 407,
+ "character": 7
+ }
+ ]
+ },
+ {
+ "id": 291,
+ "name": "range",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 292,
+ "name": "range",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Limits the result to rows within the specified range, inclusive."
+ },
+ "parameters": [
+ {
+ "id": 293,
+ "name": "from",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The starting index from which to limit the result, inclusive."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 294,
+ "name": "to",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The last index to which to limit the result, inclusive."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 295,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__2",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 296,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 297,
+ "name": "foreignTable",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The foreign table to use (for foreign columns).\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 79,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [297]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 79,
+ "character": 33
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 91,
+ "name": "PostgrestTransformBuilder.range"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 79,
+ "character": 7
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 91,
+ "name": "PostgrestTransformBuilder.range"
+ }
+ },
+ {
+ "id": 220,
+ "name": "rangeAdjacent",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 221,
+ "name": "rangeAdjacent",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose range value on the stated `column` is adjacent to\nthe specified `range`."
+ },
+ "parameters": [
+ {
+ "id": 222,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 223,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The range to filter with.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 322,
+ "character": 15
+ }
+ ]
+ },
+ {
+ "id": 205,
+ "name": "rangeGt",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 206,
+ "name": "rangeGt",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose range value on the stated `column` is strictly to\nthe right of the specified `range`."
+ },
+ "parameters": [
+ {
+ "id": 207,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 208,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The range to filter with.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 277,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 210,
+ "name": "rangeGte",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 211,
+ "name": "rangeGte",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose range value on the stated `column` does not extend\nto the left of the specified `range`."
+ },
+ "parameters": [
+ {
+ "id": 212,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 213,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The range to filter with.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 292,
+ "character": 10
+ }
+ ]
+ },
+ {
+ "id": 200,
+ "name": "rangeLt",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 201,
+ "name": "rangeLt",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose range value on the stated `column` is strictly to the\nleft of the specified `range`."
+ },
+ "parameters": [
+ {
+ "id": 202,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 203,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The range to filter with.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 262,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 215,
+ "name": "rangeLte",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 216,
+ "name": "rangeLte",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose range value on the stated `column` does not extend\nto the right of the specified `range`."
+ },
+ "parameters": [
+ {
+ "id": 217,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 218,
+ "name": "range",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The range to filter with.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 307,
+ "character": 10
+ }
+ ]
+ },
+ {
+ "id": 274,
+ "name": "select",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 275,
+ "name": "select",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Performs vertical filtering with SELECT."
+ },
+ "parameters": [
+ {
+ "id": 276,
+ "name": "columns",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The columns to retrieve, separated by commas.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"*\""
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 74,
+ "name": "PostgrestTransformBuilder.select"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 13,
+ "character": 8
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 74,
+ "name": "PostgrestTransformBuilder.select"
+ }
+ },
+ {
+ "id": 301,
+ "name": "single",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 302,
+ "name": "single",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Retrieves only one row from the result. Result must be one row (e.g. using\n`limit`), otherwise this will result in an error."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 67,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 101,
+ "name": "PostgrestTransformBuilder.single"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 100,
+ "character": 8
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 101,
+ "name": "PostgrestTransformBuilder.single"
+ }
+ },
+ {
+ "id": 230,
+ "name": "textSearch",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 231,
+ "name": "textSearch",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose text or tsvector value on the stated `column` matches\nthe tsquery in `query`."
+ },
+ "parameters": [
+ {
+ "id": 232,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 233,
+ "name": "query",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The Postgres tsquery string to filter with."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 234,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__2",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 235,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 236,
+ "name": "config",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The text search configuration to use."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 364,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 237,
+ "name": "type",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The type of tsquery conversion to use on `query`.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 365,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "plain"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "phrase"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "websearch"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [236, 237]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 362,
+ "character": 18
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 360,
+ "character": 12
+ }
+ ]
+ },
+ {
+ "id": 324,
+ "name": "then",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 325,
+ "name": "then",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 326,
+ "name": "TResult1",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ },
+ {
+ "id": 327,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 328,
+ "name": "onfulfilled",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 329,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 330,
+ "name": "__call",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 331,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 65,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 93,
+ "character": 9
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 332,
+ "name": "onrejected",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 333,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 334,
+ "name": "__call",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 335,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 96,
+ "character": 18
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ]
+ }
+ ],
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 46,
+ "name": "PostgrestBuilder.then"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 91,
+ "character": 6
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 46,
+ "name": "PostgrestBuilder.then"
+ }
+ },
+ {
+ "id": 321,
+ "name": "throwOnError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 322,
+ "name": "throwOnError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 323,
+ "name": "throwOnError",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 43,
+ "name": "PostgrestBuilder.throwOnError"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 83,
+ "character": 14
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 43,
+ "name": "PostgrestBuilder.throwOnError"
+ }
+ },
+ {
+ "id": 259,
+ "name": "wfts",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 260,
+ "name": "wfts",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nwebsearch_to_tsquery(`query`).",
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `textSearch()` with `type: 'websearch'` instead.\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 261,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to filter on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 262,
+ "name": "query",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The Postgres tsquery string to filter with."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 263,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__2",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 264,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 265,
+ "name": "config",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The text search configuration to use.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 439,
+ "character": 47
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [265]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 439,
+ "character": 38
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 439,
+ "character": 6
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [318]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 224, 314, 199, 194, 317, 309, 307, 214, 219, 229, 313, 315, 316, 204, 209, 308
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 298, 195, 190, 305, 150, 266, 238, 158, 162, 178, 186, 182, 174, 285, 166, 170, 271,
+ 303, 154, 139, 144, 277, 225, 252, 245, 291, 220, 205, 210, 200, 215, 274, 301, 230,
+ 324, 321, 259
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 53,
+ "character": 43
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 72,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestTransformBuilder"
+ }
+ ],
+ "implementedTypes": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 65,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ },
+ {
+ "id": 336,
+ "name": "FilterOperator",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "comment": {
+ "shortText": "Filters"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 7,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "eq"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "neq"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "gt"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "gte"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "lt"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "lte"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "like"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "ilike"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "is"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "in"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "cs"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "cd"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "sl"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "sr"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "nxl"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "nxr"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "adj"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "ov"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "fts"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "plfts"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "phfts"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "wfts"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.eq"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.neq"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.gt"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.gte"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.lt"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.lte"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.like"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.ilike"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.is"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.in"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.cs"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.cd"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.sl"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.sr"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.nxl"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.nxr"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.adj"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.ov"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.fts"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.plfts"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.phfts"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "not.wfts"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [137]
+ },
+ {
+ "title": "Type aliases",
+ "kind": 4194304,
+ "children": [336]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestFilterBuilder.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 337,
+ "name": "\"lib/PostgrestQueryBuilder\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestQueryBuilder.ts",
+ "children": [
+ {
+ "id": 338,
+ "name": "PostgrestQueryBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 339,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "children": [
+ {
+ "id": 340,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 341,
+ "name": "new PostgrestQueryBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 342,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 343,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 344,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 350,
+ "name": "fetch",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 10,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "id": 350,
+ "name": "fetch"
+ }
+ ]
+ }
+ },
+ {
+ "id": 345,
+ "name": "headers",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 8,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 346,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 347,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 348,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 349,
+ "name": "schema",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 9,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 351,
+ "name": "shouldThrowOnError",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 11,
+ "character": 24
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [350, 345, 349, 351]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 6,
+ "character": 16
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 338,
+ "name": "PostgrestQueryBuilder"
+ },
+ "overwrites": {
+ "type": "reference",
+ "id": 40,
+ "name": "PostgrestBuilder.__constructor"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 4,
+ "character": 75
+ }
+ ],
+ "overwrites": {
+ "type": "reference",
+ "id": 40,
+ "name": "PostgrestBuilder.__constructor"
+ }
+ },
+ {
+ "id": 403,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 58,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ }
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 36,
+ "name": "PostgrestBuilder.body"
+ }
+ },
+ {
+ "id": 406,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 61,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 58,
+ "name": "Fetch"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 39,
+ "name": "PostgrestBuilder.fetch"
+ }
+ },
+ {
+ "id": 398,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 56,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 399,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 400,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 401,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 56,
+ "character": 21
+ }
+ ]
+ }
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 31,
+ "name": "PostgrestBuilder.headers"
+ }
+ },
+ {
+ "id": 396,
+ "name": "method",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 54,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "GET"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "HEAD"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "POST"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PATCH"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "DELETE"
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 29,
+ "name": "PostgrestBuilder.method"
+ }
+ },
+ {
+ "id": 402,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 57,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 35,
+ "name": "PostgrestBuilder.schema"
+ }
+ },
+ {
+ "id": 404,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 59,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 37,
+ "name": "PostgrestBuilder.shouldThrowOnError"
+ }
+ },
+ {
+ "id": 405,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 60,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "AbortSignal"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 38,
+ "name": "PostgrestBuilder.signal"
+ }
+ },
+ {
+ "id": 397,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 55,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "URL"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 30,
+ "name": "PostgrestBuilder.url"
+ }
+ },
+ {
+ "id": 390,
+ "name": "delete",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 391,
+ "name": "delete",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Performs a DELETE on the table."
+ },
+ "parameters": [
+ {
+ "id": 392,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__0",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 393,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 395,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Count algorithm to use to count rows in a table.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 214,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 394,
+ "name": "returning",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "If `true`, return the deleted row(s) in the response."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 213,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "minimal"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "representation"
+ }
+ ]
+ },
+ "defaultValue": "\"representation\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [395, 394]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 212,
+ "character": 9
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 137,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestFilterBuilder"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 212,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 359,
+ "name": "insert",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 360,
+ "name": "insert",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Performs an INSERT into the table."
+ },
+ "parameters": [
+ {
+ "id": 361,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The values to insert."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 362,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 363,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 365,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 78,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ }
+ },
+ {
+ "id": 364,
+ "name": "returning",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 77,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "minimal"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "representation"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [365, 364]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 137,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestFilterBuilder"
+ }
+ },
+ {
+ "id": 366,
+ "name": "insert",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `upsert()` instead.\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 367,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 368,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 369,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 373,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 90,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ }
+ },
+ {
+ "id": 371,
+ "name": "onConflict",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 88,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 372,
+ "name": "returning",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 89,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "minimal"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "representation"
+ }
+ ]
+ }
+ },
+ {
+ "id": 370,
+ "name": "upsert",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 87,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [373, 371, 372, 370]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 137,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestFilterBuilder"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 74,
+ "character": 8
+ },
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 84,
+ "character": 8
+ },
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 93,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 352,
+ "name": "select",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 353,
+ "name": "select",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Performs vertical filtering with SELECT."
+ },
+ "parameters": [
+ {
+ "id": 354,
+ "name": "columns",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The columns to retrieve, separated by commas."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"*\""
+ },
+ {
+ "id": 355,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 356,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 358,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Count algorithm to use to count rows in a table.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 36,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 357,
+ "name": "head",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "When set to true, select will void data."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 35,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [358, 357]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 33,
+ "character": 18
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 137,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestFilterBuilder"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 32,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 410,
+ "name": "then",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 411,
+ "name": "then",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 412,
+ "name": "TResult1",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ },
+ {
+ "id": 413,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 414,
+ "name": "onfulfilled",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 415,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 416,
+ "name": "__call",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 417,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 65,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 93,
+ "character": 9
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 418,
+ "name": "onrejected",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 419,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 420,
+ "name": "__call",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 421,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 96,
+ "character": 18
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ]
+ }
+ ],
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 46,
+ "name": "PostgrestBuilder.then"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 91,
+ "character": 6
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 46,
+ "name": "PostgrestBuilder.then"
+ }
+ },
+ {
+ "id": 407,
+ "name": "throwOnError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 408,
+ "name": "throwOnError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 409,
+ "name": "throwOnError",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 43,
+ "name": "PostgrestBuilder.throwOnError"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 83,
+ "character": 14
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 43,
+ "name": "PostgrestBuilder.throwOnError"
+ }
+ },
+ {
+ "id": 383,
+ "name": "update",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 384,
+ "name": "update",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Performs an UPDATE on the table."
+ },
+ "parameters": [
+ {
+ "id": 385,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The values to update."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ }
+ },
+ {
+ "id": 386,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 387,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 389,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Count algorithm to use to count rows in a table.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 187,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 388,
+ "name": "returning",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "By default the updated record is returned. Set this to 'minimal' if you don't need this value."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 186,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "minimal"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "representation"
+ }
+ ]
+ },
+ "defaultValue": "\"representation\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [389, 388]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 184,
+ "character": 23
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 137,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestFilterBuilder"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 183,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 374,
+ "name": "upsert",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 375,
+ "name": "upsert",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Performs an UPSERT into the table."
+ },
+ "parameters": [
+ {
+ "id": 376,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The values to insert."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 377,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 378,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 381,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Count algorithm to use to count rows in a table."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 147,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 382,
+ "name": "ignoreDuplicates",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Specifies if duplicate rows should be ignored and not inserted.\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 148,
+ "character": 22
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 379,
+ "name": "onConflict",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 145,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 380,
+ "name": "returning",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "By default the new record is returned. Set this to 'minimal' if you don't need this value."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 146,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "minimal"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "representation"
+ }
+ ]
+ },
+ "defaultValue": "\"representation\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [381, 382, 379, 380]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 143,
+ "character": 38
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 137,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestFilterBuilder"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 142,
+ "character": 8
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [340]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [403, 406, 398, 396, 402, 404, 405, 397]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [390, 359, 352, 410, 407, 383, 374]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 4,
+ "character": 42
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 27,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestBuilder"
+ }
+ ],
+ "implementedTypes": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 65,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [338]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestQueryBuilder.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 422,
+ "name": "\"lib/PostgrestRpcBuilder\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestRpcBuilder.ts",
+ "children": [
+ {
+ "id": 423,
+ "name": "PostgrestRpcBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 424,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "children": [
+ {
+ "id": 425,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 426,
+ "name": "new PostgrestRpcBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 427,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 428,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 429,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 435,
+ "name": "fetch",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 10,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "id": 350,
+ "name": "fetch"
+ }
+ ]
+ }
+ },
+ {
+ "id": 430,
+ "name": "headers",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 8,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 431,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 432,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 433,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 434,
+ "name": "schema",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 9,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 436,
+ "name": "shouldThrowOnError",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 11,
+ "character": 24
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [435, 430, 434, 436]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 6,
+ "character": 16
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 423,
+ "name": "PostgrestRpcBuilder"
+ },
+ "overwrites": {
+ "type": "reference",
+ "id": 40,
+ "name": "PostgrestBuilder.__constructor"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 4,
+ "character": 73
+ }
+ ],
+ "overwrites": {
+ "type": "reference",
+ "id": 40,
+ "name": "PostgrestBuilder.__constructor"
+ }
+ },
+ {
+ "id": 451,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 58,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ }
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 36,
+ "name": "PostgrestBuilder.body"
+ }
+ },
+ {
+ "id": 454,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 61,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 58,
+ "name": "Fetch"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 39,
+ "name": "PostgrestBuilder.fetch"
+ }
+ },
+ {
+ "id": 446,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 56,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 447,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 448,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 449,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 56,
+ "character": 21
+ }
+ ]
+ }
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 31,
+ "name": "PostgrestBuilder.headers"
+ }
+ },
+ {
+ "id": 444,
+ "name": "method",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 54,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "GET"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "HEAD"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "POST"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PATCH"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "DELETE"
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 29,
+ "name": "PostgrestBuilder.method"
+ }
+ },
+ {
+ "id": 450,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 57,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 35,
+ "name": "PostgrestBuilder.schema"
+ }
+ },
+ {
+ "id": 452,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 59,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 37,
+ "name": "PostgrestBuilder.shouldThrowOnError"
+ }
+ },
+ {
+ "id": 453,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 60,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "AbortSignal"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 38,
+ "name": "PostgrestBuilder.signal"
+ }
+ },
+ {
+ "id": 445,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 55,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "URL"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 30,
+ "name": "PostgrestBuilder.url"
+ }
+ },
+ {
+ "id": 437,
+ "name": "rpc",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 438,
+ "name": "rpc",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Perform a function call."
+ },
+ "parameters": [
+ {
+ "id": 439,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ ]
+ }
+ },
+ {
+ "id": 440,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 441,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 443,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 32,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 442,
+ "name": "head",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 31,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [443, 442]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 29,
+ "character": 20
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 137,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestFilterBuilder"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 28,
+ "character": 5
+ }
+ ]
+ },
+ {
+ "id": 458,
+ "name": "then",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 459,
+ "name": "then",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 460,
+ "name": "TResult1",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ },
+ {
+ "id": 461,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 462,
+ "name": "onfulfilled",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 463,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 464,
+ "name": "__call",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 465,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 65,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 93,
+ "character": 9
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 466,
+ "name": "onrejected",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 467,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 468,
+ "name": "__call",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 469,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 96,
+ "character": 18
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ]
+ }
+ ],
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 46,
+ "name": "PostgrestBuilder.then"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 91,
+ "character": 6
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 46,
+ "name": "PostgrestBuilder.then"
+ }
+ },
+ {
+ "id": 455,
+ "name": "throwOnError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 456,
+ "name": "throwOnError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 457,
+ "name": "throwOnError",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 43,
+ "name": "PostgrestBuilder.throwOnError"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 83,
+ "character": 14
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 43,
+ "name": "PostgrestBuilder.throwOnError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [425]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [451, 454, 446, 444, 450, 452, 453, 445]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [437, 458, 455]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 4,
+ "character": 40
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 27,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestBuilder"
+ }
+ ],
+ "implementedTypes": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 65,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [423]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestRpcBuilder.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 71,
+ "name": "\"lib/PostgrestTransformBuilder\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestTransformBuilder.ts",
+ "children": [
+ {
+ "id": 72,
+ "name": "PostgrestTransformBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Post-filters (transforms)"
+ },
+ "typeParameter": [
+ {
+ "id": 73,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "children": [
+ {
+ "id": 118,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 119,
+ "name": "new PostgrestTransformBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 120,
+ "name": "builder",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 27,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestBuilder"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 72,
+ "name": "PostgrestTransformBuilder"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 40,
+ "name": "PostgrestBuilder.__constructor"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 61,
+ "character": 24
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 40,
+ "name": "PostgrestBuilder.__constructor"
+ }
+ },
+ {
+ "id": 114,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 58,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ }
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 36,
+ "name": "PostgrestBuilder.body"
+ }
+ },
+ {
+ "id": 117,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 61,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 58,
+ "name": "Fetch"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 39,
+ "name": "PostgrestBuilder.fetch"
+ }
+ },
+ {
+ "id": 109,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 56,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 110,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 111,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 112,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 56,
+ "character": 21
+ }
+ ]
+ }
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 31,
+ "name": "PostgrestBuilder.headers"
+ }
+ },
+ {
+ "id": 107,
+ "name": "method",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 54,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "GET"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "HEAD"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "POST"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PATCH"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "DELETE"
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 29,
+ "name": "PostgrestBuilder.method"
+ }
+ },
+ {
+ "id": 113,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 57,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 35,
+ "name": "PostgrestBuilder.schema"
+ }
+ },
+ {
+ "id": 115,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 59,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 37,
+ "name": "PostgrestBuilder.shouldThrowOnError"
+ }
+ },
+ {
+ "id": 116,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 60,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "AbortSignal"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 38,
+ "name": "PostgrestBuilder.signal"
+ }
+ },
+ {
+ "id": 108,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 55,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "URL"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 30,
+ "name": "PostgrestBuilder.url"
+ }
+ },
+ {
+ "id": 98,
+ "name": "abortSignal",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 99,
+ "name": "abortSignal",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Sets the AbortSignal for the fetch request."
+ },
+ "parameters": [
+ {
+ "id": 100,
+ "name": "signal",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "AbortSignal"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 91,
+ "character": 13
+ }
+ ]
+ },
+ {
+ "id": 105,
+ "name": "csv",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 106,
+ "name": "csv",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Set the response type to CSV."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 67,
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 134,
+ "character": 5
+ }
+ ]
+ },
+ {
+ "id": 85,
+ "name": "limit",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 86,
+ "name": "limit",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Limits the result with the specified `count`."
+ },
+ "parameters": [
+ {
+ "id": 87,
+ "name": "count",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The maximum no. of rows to limit to."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 88,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 89,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 90,
+ "name": "foreignTable",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The foreign table to use (for foreign columns).\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 66,
+ "character": 37
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [90]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 66,
+ "character": 22
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 66,
+ "character": 7
+ }
+ ]
+ },
+ {
+ "id": 103,
+ "name": "maybeSingle",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 104,
+ "name": "maybeSingle",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Retrieves at most one row from the result. Result must be at most one row\n(e.g. using `eq` on a UNIQUE column), otherwise this will result in an\nerror."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 69,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestMaybeSingleResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 110,
+ "character": 13
+ }
+ ]
+ },
+ {
+ "id": 77,
+ "name": "order",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 78,
+ "name": "order",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Orders the result with the specified `column`."
+ },
+ "parameters": [
+ {
+ "id": 79,
+ "name": "column",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The column to order on."
+ },
+ "type": {
+ "type": "typeOperator",
+ "operator": "keyof",
+ "target": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 80,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 81,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 82,
+ "name": "ascending",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "If `true`, the result will be in ascending order."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 43,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "true"
+ },
+ {
+ "id": 84,
+ "name": "foreignTable",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The foreign table to use (if `column` is a foreign column).\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 45,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 83,
+ "name": "nullsFirst",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "If `true`, `null`s appear first."
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 44,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [82, 84, 83]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 41,
+ "character": 20
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 40,
+ "character": 7
+ }
+ ]
+ },
+ {
+ "id": 91,
+ "name": "range",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 92,
+ "name": "range",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Limits the result to rows within the specified range, inclusive."
+ },
+ "parameters": [
+ {
+ "id": 93,
+ "name": "from",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The starting index from which to limit the result, inclusive."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 94,
+ "name": "to",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The last index to which to limit the result, inclusive."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 95,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__2",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 96,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 97,
+ "name": "foreignTable",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The foreign table to use (for foreign columns).\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 79,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [97]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 79,
+ "character": 33
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 79,
+ "character": 7
+ }
+ ]
+ },
+ {
+ "id": 74,
+ "name": "select",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 75,
+ "name": "select",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Performs vertical filtering with SELECT."
+ },
+ "parameters": [
+ {
+ "id": 76,
+ "name": "columns",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The columns to retrieve, separated by commas.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"*\""
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 13,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 101,
+ "name": "single",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 102,
+ "name": "single",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Retrieves only one row from the result. Result must be one row (e.g. using\n`limit`), otherwise this will result in an error."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 67,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 100,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 124,
+ "name": "then",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 125,
+ "name": "then",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 126,
+ "name": "TResult1",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ },
+ {
+ "id": 127,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 128,
+ "name": "onfulfilled",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 129,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 130,
+ "name": "__call",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 131,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 65,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 93,
+ "character": 9
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 132,
+ "name": "onrejected",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 133,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 134,
+ "name": "__call",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 135,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 96,
+ "character": 18
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ]
+ }
+ ],
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 46,
+ "name": "PostgrestBuilder.then"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 91,
+ "character": 6
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 46,
+ "name": "PostgrestBuilder.then"
+ }
+ },
+ {
+ "id": 121,
+ "name": "throwOnError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 122,
+ "name": "throwOnError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 123,
+ "name": "throwOnError",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 43,
+ "name": "PostgrestBuilder.throwOnError"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 83,
+ "character": 14
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 43,
+ "name": "PostgrestBuilder.throwOnError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [118]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [114, 117, 109, 107, 113, 115, 116, 108]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [98, 105, 85, 103, 77, 91, 74, 101, 124, 121]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 7,
+ "character": 46
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 27,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestBuilder"
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 137,
+ "name": "PostgrestFilterBuilder"
+ }
+ ],
+ "implementedTypes": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 65,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [72]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/PostgrestTransformBuilder.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 472,
+ "name": "\"lib/constants\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/constants.ts",
+ "children": [
+ {
+ "id": 473,
+ "name": "DEFAULT_HEADERS",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "children": [
+ {
+ "id": 474,
+ "name": "X-Client-Info",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 2,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "`postgrest-js/${version}`"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [474]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 2,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Object literals",
+ "kind": 2097152,
+ "children": [473]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 1,
+ "name": "\"lib/types\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/types.ts",
+ "children": [
+ {
+ "id": 27,
+ "name": "PostgrestBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true,
+ "isAbstract": true
+ },
+ "typeParameter": [
+ {
+ "id": 28,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "children": [
+ {
+ "id": 40,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 41,
+ "name": "new PostgrestBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 42,
+ "name": "builder",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 27,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestBuilder"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 27,
+ "name": "PostgrestBuilder"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 61,
+ "character": 24
+ }
+ ]
+ },
+ {
+ "id": 36,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 58,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "Partial"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 39,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 61,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 58,
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 31,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 56,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 32,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 33,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 34,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 56,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 29,
+ "name": "method",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 54,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "GET"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "HEAD"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "POST"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PATCH"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "DELETE"
+ }
+ ]
+ }
+ },
+ {
+ "id": 35,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 57,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 37,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 59,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 38,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 60,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "AbortSignal"
+ }
+ },
+ {
+ "id": 30,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 55,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "URL"
+ }
+ },
+ {
+ "id": 46,
+ "name": "then",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 47,
+ "name": "then",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 48,
+ "name": "TResult1",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ },
+ {
+ "id": 49,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 50,
+ "name": "onfulfilled",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 51,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 52,
+ "name": "__call",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 53,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 65,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 93,
+ "character": 9
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 54,
+ "name": "onrejected",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 55,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 56,
+ "name": "__call",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 57,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 96,
+ "character": 18
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "TResult1",
+ "default": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "type": "typeParameter",
+ "name": "TResult2",
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ]
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 91,
+ "character": 6
+ }
+ ]
+ },
+ {
+ "id": 43,
+ "name": "throwOnError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 44,
+ "name": "throwOnError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 45,
+ "name": "throwOnError",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 83,
+ "character": 14
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [40]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [36, 39, 31, 29, 35, 37, 38, 30]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [46, 43]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 53,
+ "character": 38
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 72,
+ "name": "PostgrestTransformBuilder"
+ },
+ {
+ "type": "reference",
+ "id": 338,
+ "name": "PostgrestQueryBuilder"
+ },
+ {
+ "type": "reference",
+ "id": 423,
+ "name": "PostgrestRpcBuilder"
+ }
+ ],
+ "implementedTypes": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 65,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponse"
+ }
+ ],
+ "name": "PromiseLike"
+ }
+ ]
+ },
+ {
+ "id": 2,
+ "name": "PostgrestResponseBase",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "comment": {
+ "shortText": "Response format",
+ "text": "{@link https://github.com/supabase/supabase-js/issues/32}\n"
+ },
+ "children": [
+ {
+ "id": 3,
+ "name": "status",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 23,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 4,
+ "name": "statusText",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [3, 4]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 22,
+ "character": 31
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 5,
+ "name": "PostgrestResponseSuccess"
+ },
+ {
+ "type": "reference",
+ "id": 13,
+ "name": "PostgrestResponseFailure"
+ },
+ {
+ "type": "reference",
+ "id": 20,
+ "name": "PostgrestSingleResponseSuccess"
+ }
+ ]
+ },
+ {
+ "id": 13,
+ "name": "PostgrestResponseFailure",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 16,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 37,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 17,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 38,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 15,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 35,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 14,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 34,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 59,
+ "name": "PostgrestError"
+ }
+ },
+ {
+ "id": 18,
+ "name": "status",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 23,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 3,
+ "name": "PostgrestResponseBase.status"
+ }
+ },
+ {
+ "id": 19,
+ "name": "statusText",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 4,
+ "name": "PostgrestResponseBase.statusText"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [16, 17, 15, 14, 18, 19]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 33,
+ "character": 34
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 2,
+ "name": "PostgrestResponseBase"
+ }
+ ]
+ },
+ {
+ "id": 5,
+ "name": "PostgrestResponseSuccess",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 6,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "children": [
+ {
+ "id": 9,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 30,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 10,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 31,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 8,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 29,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ }
+ },
+ {
+ "id": 7,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 28,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 11,
+ "name": "status",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 23,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 3,
+ "name": "PostgrestResponseBase.status"
+ }
+ },
+ {
+ "id": 12,
+ "name": "statusText",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 4,
+ "name": "PostgrestResponseBase.statusText"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [9, 10, 8, 7, 11, 12]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 27,
+ "character": 34
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 2,
+ "name": "PostgrestResponseBase"
+ }
+ ]
+ },
+ {
+ "id": 20,
+ "name": "PostgrestSingleResponseSuccess",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 21,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "children": [
+ {
+ "id": 24,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 46,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ {
+ "id": 23,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 44,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ },
+ {
+ "id": 22,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 43,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 25,
+ "name": "status",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 23,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 3,
+ "name": "PostgrestResponseBase.status"
+ }
+ },
+ {
+ "id": 26,
+ "name": "statusText",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 4,
+ "name": "PostgrestResponseBase.statusText"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [24, 23, 22, 25, 26]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 42,
+ "character": 40
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 2,
+ "name": "PostgrestResponseBase"
+ }
+ ]
+ },
+ {
+ "id": 58,
+ "name": "Fetch",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 3,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "id": 350,
+ "name": "fetch"
+ }
+ }
+ },
+ {
+ "id": 59,
+ "name": "PostgrestError",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Error format",
+ "text": "{@link https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes}\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 10,
+ "character": 26
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 60,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 64,
+ "name": "code",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 14,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 62,
+ "name": "details",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 12,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 63,
+ "name": "hint",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 13,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 61,
+ "name": "message",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 11,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [64, 62, 63, 61]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 10,
+ "character": 28
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 69,
+ "name": "PostgrestMaybeSingleResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 70,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 51,
+ "character": 40
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 67,
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ ],
+ "name": "PostgrestSingleResponse"
+ }
+ },
+ {
+ "id": 65,
+ "name": "PostgrestResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 66,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 40,
+ "character": 29
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 5,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestResponseSuccess"
+ },
+ {
+ "type": "reference",
+ "id": 13,
+ "name": "PostgrestResponseFailure"
+ }
+ ]
+ }
+ },
+ {
+ "id": 67,
+ "name": "PostgrestSingleResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 68,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 48,
+ "character": 35
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 20,
+ "typeArguments": [
+ {
+ "type": "typeParameter",
+ "name": "T"
+ }
+ ],
+ "name": "PostgrestSingleResponseSuccess"
+ },
+ {
+ "type": "reference",
+ "id": 13,
+ "name": "PostgrestResponseFailure"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [27]
+ },
+ {
+ "title": "Interfaces",
+ "kind": 256,
+ "children": [2, 13, 5, 20]
+ },
+ {
+ "title": "Type aliases",
+ "kind": 4194304,
+ "children": [58, 59, 69, 65, 67]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 470,
+ "name": "\"lib/version\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/version.ts",
+ "children": [
+ {
+ "id": 471,
+ "name": "version",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/version.ts",
+ "line": 2,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "stringLiteral",
+ "value": "0.0.0-automated"
+ },
+ "defaultValue": "\"0.0.0-automated\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [471]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/version.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Modules",
+ "kind": 1,
+ "children": [475, 513, 136, 337, 422, 71, 472, 1, 470]
+ }
+ ]
+}
diff --git a/spec/enrichments/tsdoc_v1/realtime.json b/spec/enrichments/tsdoc_v1/realtime.json
new file mode 100644
index 00000000000..ea2b032fe0d
--- /dev/null
+++ b/spec/enrichments/tsdoc_v1/realtime.json
@@ -0,0 +1,8406 @@
+{
+ "id": 0,
+ "name": "@supabase/realtime-js",
+ "kind": 0,
+ "flags": {},
+ "originalName": "",
+ "children": [
+ {
+ "id": 227,
+ "name": "\"RealtimeClient\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts",
+ "children": [
+ {
+ "id": 228,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 260,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Initializes the Socket."
+ },
+ "signatures": [
+ {
+ "id": 261,
+ "name": "new RealtimeClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Initializes the Socket."
+ },
+ "parameters": [
+ {
+ "id": 262,
+ "name": "endPoint",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": 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": 263,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 340,
+ "name": "Options"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 228,
+ "name": "RealtimeClient"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 73,
+ "character": 3
+ }
+ ]
+ },
+ {
+ "id": 229,
+ "name": "accessToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 43,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 230,
+ "name": "channels",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 44,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 140,
+ "name": "RealtimeSubscription"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 252,
+ "name": "conn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 60,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "WebSocket"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 250,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 58,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 249,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 57,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 231,
+ "name": "endPoint",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 45,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"\""
+ },
+ {
+ "id": 232,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 46,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 233,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 234,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 235,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ },
+ "defaultValue": "DEFAULT_HEADERS"
+ },
+ {
+ "id": 242,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 50,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "30000"
+ },
+ {
+ "id": 244,
+ "name": "heartbeatTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 52,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "name": "setInterval"
+ }
+ }
+ ],
+ "name": "ReturnType"
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ ]
+ },
+ "defaultValue": "undefined"
+ },
+ {
+ "id": 248,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 56,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ },
+ "defaultValue": "noop"
+ },
+ {
+ "id": 243,
+ "name": "longpollerTimeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 51,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "20000"
+ },
+ {
+ "id": 236,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 47,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 237,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 238,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 239,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 245,
+ "name": "pendingHeartbeatRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 53,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 251,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 59,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 247,
+ "name": "reconnectTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 55,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 35,
+ "name": "Timer"
+ }
+ },
+ {
+ "id": 246,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 54,
+ "character": 5
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
+ },
+ {
+ "id": 253,
+ "name": "sendBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 61,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 254,
+ "name": "serializer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 62,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 49,
+ "name": "Serializer"
+ },
+ "defaultValue": "new Serializer()"
+ },
+ {
+ "id": 240,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 48,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "DEFAULT_TIMEOUT"
+ },
+ {
+ "id": 241,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 49,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ },
+ "defaultValue": "w3cwebsocket"
+ },
+ {
+ "id": 329,
+ "name": "_appendParams",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 330,
+ "name": "_appendParams",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 331,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 332,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 333,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 334,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 335,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 405,
+ "character": 11
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 403,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 336,
+ "name": "_flushSendBuffer",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 337,
+ "name": "_flushSendBuffer",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 416,
+ "character": 26
+ }
+ ]
+ },
+ {
+ "id": 321,
+ "name": "_onConnClose",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 322,
+ "name": "_onConnClose",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 323,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 383,
+ "character": 22
+ }
+ ]
+ },
+ {
+ "id": 324,
+ "name": "_onConnError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 325,
+ "name": "_onConnError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 326,
+ "name": "error",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "ErrorEvent"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 391,
+ "character": 22
+ }
+ ]
+ },
+ {
+ "id": 319,
+ "name": "_onConnOpen",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 320,
+ "name": "_onConnOpen",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 371,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 338,
+ "name": "_sendHeartbeat",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 339,
+ "name": "_sendHeartbeat",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 423,
+ "character": 24
+ }
+ ]
+ },
+ {
+ "id": 327,
+ "name": "_triggerChanError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 328,
+ "name": "_triggerChanError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 397,
+ "character": 27
+ }
+ ]
+ },
+ {
+ "id": 297,
+ "name": "channel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 298,
+ "name": "channel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 299,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 300,
+ "name": "chanParams",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 364,
+ "name": "ChannelParams"
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 140,
+ "name": "RealtimeSubscription"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 264,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 264,
+ "name": "connect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 265,
+ "name": "connect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Connects the socket, unless already connected."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 125,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 290,
+ "name": "connectionState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 291,
+ "name": "connectionState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Returns the current state of the socket."
+ },
+ "type": {
+ "type": "reference",
+ "id": 24,
+ "name": "CONNECTION_STATE"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 233,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 266,
+ "name": "disconnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 267,
+ "name": "disconnect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Disconnects the socket."
+ },
+ "parameters": [
+ {
+ "id": 268,
+ "name": "code",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "A numeric status code to send on disconnect."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "id": 269,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "A custom reason for the disconnect.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 270,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 272,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 151,
+ "character": 40
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 271,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 151,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [272, 271]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 151,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 148,
+ "character": 12
+ }
+ ]
+ },
+ {
+ "id": 309,
+ "name": "endPointURL",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 310,
+ "name": "endPointURL",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Returns the URL of the websocket."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 320,
+ "character": 13
+ }
+ ]
+ },
+ {
+ "id": 292,
+ "name": "isConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 293,
+ "name": "isConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Retuns `true` is the connection is open."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 249,
+ "character": 13
+ }
+ ]
+ },
+ {
+ "id": 316,
+ "name": "leaveOpenTopic",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 317,
+ "name": "leaveOpenTopic",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Unsubscribe from channels with the specified topic."
+ },
+ "parameters": [
+ {
+ "id": 318,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 361,
+ "character": 16
+ }
+ ]
+ },
+ {
+ "id": 273,
+ "name": "log",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 274,
+ "name": "log",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Logs the message.",
+ "text": "For customized logging, `this.logger` can be overriden.\n"
+ },
+ "parameters": [
+ {
+ "id": 275,
+ "name": "kind",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 276,
+ "name": "msg",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 277,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 178,
+ "character": 5
+ }
+ ]
+ },
+ {
+ "id": 311,
+ "name": "makeRef",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 312,
+ "name": "makeRef",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Return the next message ref, accounting for overflows"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 330,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 281,
+ "name": "onClose",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 282,
+ "name": "onClose",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Registers a callback for connection state change events.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "\n socket.onOpen(() => console.log(\"Socket closed.\"))\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 283,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A function to be called when the event occurs.\n"
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 202,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 304,
+ "name": "onConnMessage",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 305,
+ "name": "onConnMessage",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 306,
+ "name": "rawMessage",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 307,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 308,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 290,
+ "character": 34
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [308]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 290,
+ "character": 27
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 290,
+ "character": 15
+ }
+ ]
+ },
+ {
+ "id": 284,
+ "name": "onError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 285,
+ "name": "onError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Registers a callback for connection state change events.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 286,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A function to be called when the event occurs.\n"
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 214,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 287,
+ "name": "onMessage",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 288,
+ "name": "onMessage",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Calls a function any time a message is received.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "\n socket.onMessage((message) => console.log(message))\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 289,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A function to be called when the event occurs.\n"
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 226,
+ "character": 11
+ }
+ ]
+ },
+ {
+ "id": 278,
+ "name": "onOpen",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 279,
+ "name": "onOpen",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Registers a callback for connection state change event.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "\n socket.onOpen(() => console.log(\"Socket opened.\"))\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 280,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A function to be called when the event occurs.\n"
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 190,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 301,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 302,
+ "name": "push",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "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": 303,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 358,
+ "name": "Message"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 275,
+ "character": 6
+ }
+ ]
+ },
+ {
+ "id": 294,
+ "name": "remove",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 295,
+ "name": "remove",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Removes a subscription from the socket."
+ },
+ "parameters": [
+ {
+ "id": 296,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "An open subscription.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 140,
+ "name": "RealtimeSubscription"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 258,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 313,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 314,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ },
+ "parameters": [
+ {
+ "id": 315,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A JWT string.\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 346,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 255,
+ "name": "stateChangeCallbacks",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 257,
+ "name": "close",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 70,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 258,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 71,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 259,
+ "name": "message",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 72,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 256,
+ "name": "open",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 69,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ },
+ "defaultValue": "[]"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [257, 258, 259, 256]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 63,
+ "character": 22
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [260]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 229, 230, 252, 250, 249, 231, 232, 242, 244, 248, 243, 236, 245, 251, 247, 246, 253,
+ 254, 240, 241
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 329, 336, 321, 324, 319, 338, 327, 297, 264, 290, 266, 309, 292, 316, 273, 311, 281,
+ 304, 284, 287, 278, 301, 294, 313
+ ]
+ },
+ {
+ "title": "Object literals",
+ "kind": 2097152,
+ "children": [255]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 42,
+ "character": 35
+ }
+ ]
+ },
+ {
+ "id": 364,
+ "name": "ChannelParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 35,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 365,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": [
+ {
+ "id": 367,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 368,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "children": [
+ {
+ "id": 366,
+ "name": "selfBroadcast",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 36,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [366]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 35,
+ "character": 20
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 358,
+ "name": "Message",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 359,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 361,
+ "name": "event",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 30,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 362,
+ "name": "payload",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 31,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 363,
+ "name": "ref",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 32,
+ "character": 5
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 360,
+ "name": "topic",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 29,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [361, 362, 363, 360]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 28,
+ "character": 14
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 340,
+ "name": "Options",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 341,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 348,
+ "name": "decode",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 23,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 347,
+ "name": "encode",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 22,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 350,
+ "name": "headers",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 25,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 351,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 352,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 353,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 344,
+ "name": "heartbeatIntervalMs",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 19,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "id": 346,
+ "name": "logger",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 21,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 345,
+ "name": "longpollerTimeout",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 20,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "id": 354,
+ "name": "params",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 26,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 355,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 356,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 357,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 349,
+ "name": "reconnectAfterMs",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 24,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 343,
+ "name": "timeout",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 18,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "id": 342,
+ "name": "transport",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 17,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "WebSocket"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [348, 347, 350, 344, 346, 345, 354, 349, 343, 342]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 16,
+ "character": 21
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 369,
+ "name": "noop",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isConst": true
+ },
+ "signatures": [
+ {
+ "id": 370,
+ "name": "noop",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 40,
+ "character": 10
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [228]
+ },
+ {
+ "title": "Type aliases",
+ "kind": 4194304,
+ "children": [364, 358, 340]
+ },
+ {
+ "title": "Functions",
+ "kind": 64,
+ "children": [369]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeClient.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 139,
+ "name": "\"RealtimeSubscription\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts",
+ "children": [
+ {
+ "id": 140,
+ "name": "RealtimeSubscription",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 148,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 155,
+ "name": "new RealtimeSubscription",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 156,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 157,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 158,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 159,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 160,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 17,
+ "character": 18
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 161,
+ "name": "socket",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 228,
+ "name": "RealtimeClient"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 140,
+ "name": "RealtimeSubscription"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 13,
+ "character": 25
+ }
+ ]
+ },
+ {
+ "id": 141,
+ "name": "bindings",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 7,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 145,
+ "name": "joinPush",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 11,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 74,
+ "name": "Push"
+ }
+ },
+ {
+ "id": 144,
+ "name": "joinedOnce",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 10,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 150,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true,
+ "isExported": true,
+ "isConstructorProperty": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 17,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 151,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 152,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 153,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 17,
+ "character": 18
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 147,
+ "name": "pushBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 13,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 74,
+ "name": "Push"
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 146,
+ "name": "rejoinTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 12,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 35,
+ "name": "Timer"
+ }
+ },
+ {
+ "id": 154,
+ "name": "socket",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true,
+ "isExported": true,
+ "isConstructorProperty": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 18,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 228,
+ "name": "RealtimeClient"
+ }
+ },
+ {
+ "id": 143,
+ "name": "state",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 9,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 9,
+ "name": "CHANNEL_STATES"
+ },
+ "defaultValue": "CHANNEL_STATES.closed"
+ },
+ {
+ "id": 142,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 8,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 149,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true,
+ "isExported": true,
+ "isConstructorProperty": true
+ },
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 16,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 180,
+ "name": "canPush",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 181,
+ "name": "canPush",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 97,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 217,
+ "name": "isClosed",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 218,
+ "name": "isClosed",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 202,
+ "character": 10
+ }
+ ]
+ },
+ {
+ "id": 219,
+ "name": "isErrored",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 220,
+ "name": "isErrored",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 205,
+ "character": 11
+ }
+ ]
+ },
+ {
+ "id": 221,
+ "name": "isJoined",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 222,
+ "name": "isJoined",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 208,
+ "character": 10
+ }
+ ]
+ },
+ {
+ "id": 223,
+ "name": "isJoining",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 224,
+ "name": "isJoining",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 211,
+ "character": 11
+ }
+ ]
+ },
+ {
+ "id": 225,
+ "name": "isLeaving",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 226,
+ "name": "isLeaving",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 214,
+ "character": 11
+ }
+ ]
+ },
+ {
+ "id": 201,
+ "name": "isMember",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 202,
+ "name": "isMember",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 203,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 158,
+ "character": 10
+ }
+ ]
+ },
+ {
+ "id": 204,
+ "name": "joinRef",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 205,
+ "name": "joinRef",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 162,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 177,
+ "name": "off",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 178,
+ "name": "off",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 179,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 93,
+ "character": 5
+ }
+ ]
+ },
+ {
+ "id": 173,
+ "name": "on",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 174,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 175,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 176,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 89,
+ "character": 4
+ }
+ ]
+ },
+ {
+ "id": 167,
+ "name": "onClose",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 168,
+ "name": "onClose",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 169,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 81,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 170,
+ "name": "onError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 171,
+ "name": "onError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 172,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 85,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 196,
+ "name": "onMessage",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 197,
+ "name": "onMessage",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Overridable message hook",
+ "text": "Receives all events for specialized message handling before dispatching to the channel callbacks.\nMust return the payload, modified or unmodified.\n"
+ },
+ "parameters": [
+ {
+ "id": 198,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 199,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 200,
+ "name": "ref",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 154,
+ "character": 11
+ }
+ ]
+ },
+ {
+ "id": 182,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 183,
+ "name": "push",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 184,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "CHANNEL_EVENTS"
+ }
+ },
+ {
+ "id": 185,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 186,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "this.timeout"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 74,
+ "name": "Push"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 101,
+ "character": 6
+ }
+ ]
+ },
+ {
+ "id": 206,
+ "name": "rejoin",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 207,
+ "name": "rejoin",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 208,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "this.timeout"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 166,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 162,
+ "name": "rejoinUntilConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 163,
+ "name": "rejoinUntilConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 64,
+ "character": 22
+ }
+ ]
+ },
+ {
+ "id": 214,
+ "name": "replyEventName",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 215,
+ "name": "replyEventName",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 216,
+ "name": "ref",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 198,
+ "character": 16
+ }
+ ]
+ },
+ {
+ "id": 164,
+ "name": "subscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 165,
+ "name": "subscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 166,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "this.timeout"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 74,
+ "name": "Push"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 71,
+ "character": 11
+ }
+ ]
+ },
+ {
+ "id": 209,
+ "name": "trigger",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 210,
+ "name": "trigger",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 211,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 212,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 213,
+ "name": "ref",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 175,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 193,
+ "name": "unsubscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 194,
+ "name": "unsubscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "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": 195,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "this.timeout"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 74,
+ "name": "Push"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 129,
+ "character": 13
+ }
+ ]
+ },
+ {
+ "id": 187,
+ "name": "updateJoinPayload",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 188,
+ "name": "updateJoinPayload",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 189,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 190,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 191,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 192,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 116,
+ "character": 28
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 116,
+ "character": 19
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [148]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [141, 145, 144, 150, 147, 146, 154, 143, 142, 149]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 180, 217, 219, 221, 223, 225, 201, 204, 177, 173, 167, 170, 196, 182, 206, 162, 214,
+ 164, 209, 193, 187
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 6,
+ "character": 41
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [140]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "RealtimeSubscription.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 445,
+ "name": "\"index\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/realtime-js/realtime-js/src/index.ts",
+ "sources": [
+ {
+ "fileName": "index.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 3,
+ "name": "\"lib/constants\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/constants.ts",
+ "children": [
+ {
+ "id": 15,
+ "name": "CHANNEL_EVENTS",
+ "kind": 4,
+ "kindString": "Enumeration",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 21,
+ "name": "access_token",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 32,
+ "character": 14
+ }
+ ],
+ "defaultValue": "\"access_token\""
+ },
+ {
+ "id": 16,
+ "name": "close",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 27,
+ "character": 7
+ }
+ ],
+ "defaultValue": "\"phx_close\""
+ },
+ {
+ "id": 17,
+ "name": "error",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 28,
+ "character": 7
+ }
+ ],
+ "defaultValue": "\"phx_error\""
+ },
+ {
+ "id": 18,
+ "name": "join",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 29,
+ "character": 6
+ }
+ ],
+ "defaultValue": "\"phx_join\""
+ },
+ {
+ "id": 20,
+ "name": "leave",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 31,
+ "character": 7
+ }
+ ],
+ "defaultValue": "\"phx_leave\""
+ },
+ {
+ "id": 19,
+ "name": "reply",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 30,
+ "character": 7
+ }
+ ],
+ "defaultValue": "\"phx_reply\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumeration members",
+ "kind": 16,
+ "children": [21, 16, 17, 18, 20, 19]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 26,
+ "character": 26
+ }
+ ]
+ },
+ {
+ "id": 9,
+ "name": "CHANNEL_STATES",
+ "kind": 4,
+ "kindString": "Enumeration",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 10,
+ "name": "closed",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 19,
+ "character": 8
+ }
+ ],
+ "defaultValue": "\"closed\""
+ },
+ {
+ "id": 11,
+ "name": "errored",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 20,
+ "character": 9
+ }
+ ],
+ "defaultValue": "\"errored\""
+ },
+ {
+ "id": 12,
+ "name": "joined",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 21,
+ "character": 8
+ }
+ ],
+ "defaultValue": "\"joined\""
+ },
+ {
+ "id": 13,
+ "name": "joining",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 22,
+ "character": 9
+ }
+ ],
+ "defaultValue": "\"joining\""
+ },
+ {
+ "id": 14,
+ "name": "leaving",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 23,
+ "character": 9
+ }
+ ],
+ "defaultValue": "\"leaving\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumeration members",
+ "kind": 16,
+ "children": [10, 11, 12, 13, 14]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 18,
+ "character": 26
+ }
+ ]
+ },
+ {
+ "id": 24,
+ "name": "CONNECTION_STATE",
+ "kind": 4,
+ "kindString": "Enumeration",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 28,
+ "name": "Closed",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 43,
+ "character": 8
+ }
+ ],
+ "defaultValue": "\"closed\""
+ },
+ {
+ "id": 27,
+ "name": "Closing",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 42,
+ "character": 9
+ }
+ ],
+ "defaultValue": "\"closing\""
+ },
+ {
+ "id": 25,
+ "name": "Connecting",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 40,
+ "character": 12
+ }
+ ],
+ "defaultValue": "\"connecting\""
+ },
+ {
+ "id": 26,
+ "name": "Open",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 41,
+ "character": 6
+ }
+ ],
+ "defaultValue": "\"open\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumeration members",
+ "kind": 16,
+ "children": [28, 27, 25, 26]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 39,
+ "character": 28
+ }
+ ]
+ },
+ {
+ "id": 4,
+ "name": "SOCKET_STATES",
+ "kind": 4,
+ "kindString": "Enumeration",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 8,
+ "name": "closed",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 15,
+ "character": 8
+ }
+ ],
+ "defaultValue": "3"
+ },
+ {
+ "id": 7,
+ "name": "closing",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 14,
+ "character": 9
+ }
+ ],
+ "defaultValue": "2"
+ },
+ {
+ "id": 5,
+ "name": "connecting",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 12,
+ "character": 12
+ }
+ ],
+ "defaultValue": "0"
+ },
+ {
+ "id": 6,
+ "name": "open",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 13,
+ "character": 6
+ }
+ ],
+ "defaultValue": "1"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumeration members",
+ "kind": 16,
+ "children": [8, 7, 5, 6]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 11,
+ "character": 25
+ }
+ ]
+ },
+ {
+ "id": 22,
+ "name": "TRANSPORTS",
+ "kind": 4,
+ "kindString": "Enumeration",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 23,
+ "name": "websocket",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 36,
+ "character": 11
+ }
+ ],
+ "defaultValue": "\"websocket\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumeration members",
+ "kind": 16,
+ "children": [23]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 35,
+ "character": 22
+ }
+ ]
+ },
+ {
+ "id": 32,
+ "name": "DEFAULT_TIMEOUT",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 7,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "unknown",
+ "name": "10000"
+ },
+ "defaultValue": "10000"
+ },
+ {
+ "id": 31,
+ "name": "VSN",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 5,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"1.0.0\""
+ },
+ {
+ "id": 33,
+ "name": "WS_CLOSE_NORMAL",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 9,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "unknown",
+ "name": "1000"
+ },
+ "defaultValue": "1000"
+ },
+ {
+ "id": 29,
+ "name": "DEFAULT_HEADERS",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "children": [
+ {
+ "id": 30,
+ "name": "X-Client-Info",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 3,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "`realtime-js/${version}`"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [30]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 3,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumerations",
+ "kind": 4,
+ "children": [15, 9, 24, 4, 22]
+ },
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [32, 31, 33]
+ },
+ {
+ "title": "Object literals",
+ "kind": 2097152,
+ "children": [29]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 73,
+ "name": "\"lib/push\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/push.ts",
+ "children": [
+ {
+ "id": 74,
+ "name": "Push",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 87,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Initializes the Push"
+ },
+ "signatures": [
+ {
+ "id": 95,
+ "name": "new Push",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Initializes the Push"
+ },
+ "parameters": [
+ {
+ "id": 96,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "The Channel"
+ },
+ "type": {
+ "type": "reference",
+ "id": 140,
+ "name": "RealtimeSubscription"
+ }
+ },
+ {
+ "id": 97,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "The event, for example `\"phx_join\"`"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 98,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "The payload, for example `{user_id: 123}`"
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 99,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 100,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 101,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 29,
+ "character": 19
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 102,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "The push timeout in milliseconds\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "DEFAULT_TIMEOUT"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 74,
+ "name": "Push"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 16,
+ "character": 32
+ }
+ ]
+ },
+ {
+ "id": 88,
+ "name": "channel",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true,
+ "isExported": true,
+ "isConstructorProperty": true
+ },
+ "comment": {
+ "shortText": "The Channel"
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 27,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 140,
+ "name": "RealtimeSubscription"
+ }
+ },
+ {
+ "id": 89,
+ "name": "event",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true,
+ "isExported": true,
+ "isConstructorProperty": true
+ },
+ "comment": {
+ "shortText": "The event, for example `\"phx_join\"`"
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 28,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 90,
+ "name": "payload",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true,
+ "isExported": true,
+ "isConstructorProperty": true
+ },
+ "comment": {
+ "shortText": "The payload, for example `{user_id: 123}`"
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 29,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 91,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 92,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 93,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 29,
+ "character": 19
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 82,
+ "name": "recHooks",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 12,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reflection",
+ "declaration": {
+ "id": 83,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 85,
+ "name": "callback",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 14,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 84,
+ "name": "status",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 13,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [85, 84]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 12,
+ "character": 11
+ }
+ ]
+ }
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "id": 78,
+ "name": "receivedResp",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 8,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 79,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 81,
+ "name": "response",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 10,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 80,
+ "name": "status",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 9,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [81, 80]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 8,
+ "character": 15
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 77,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 7,
+ "character": 5
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"\""
+ },
+ {
+ "id": 86,
+ "name": "refEvent",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 16,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 75,
+ "name": "sent",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 5,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "defaultValue": "false"
+ },
+ {
+ "id": 94,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true,
+ "isExported": true,
+ "isConstructorProperty": true
+ },
+ "comment": {
+ "shortText": "The push timeout in milliseconds\n"
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 30,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 76,
+ "name": "timeoutTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 6,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ ]
+ },
+ "defaultValue": "undefined"
+ },
+ {
+ "id": 126,
+ "name": "_cancelRefEvent",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 127,
+ "name": "_cancelRefEvent",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 100,
+ "character": 25
+ }
+ ]
+ },
+ {
+ "id": 128,
+ "name": "_cancelTimeout",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 129,
+ "name": "_cancelTimeout",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 108,
+ "character": 24
+ }
+ ]
+ },
+ {
+ "id": 136,
+ "name": "_hasReceived",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 137,
+ "name": "_hasReceived",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 138,
+ "name": "status",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 125,
+ "character": 22
+ }
+ ]
+ },
+ {
+ "id": 130,
+ "name": "_matchReceive",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 131,
+ "name": "_matchReceive",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 132,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__0",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 133,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 135,
+ "name": "response",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 115,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 134,
+ "name": "status",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 114,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [135, 134]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 113,
+ "character": 24
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 113,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 124,
+ "name": "destroy",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 125,
+ "name": "destroy",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 95,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 114,
+ "name": "receive",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 115,
+ "name": "receive",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 116,
+ "name": "status",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 117,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "unknown",
+ "name": "this"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 61,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 103,
+ "name": "resend",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 104,
+ "name": "resend",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 105,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 33,
+ "character": 8
+ }
+ ]
+ },
+ {
+ "id": 106,
+ "name": "send",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 107,
+ "name": "send",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 43,
+ "character": 6
+ }
+ ]
+ },
+ {
+ "id": 118,
+ "name": "startTimeout",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 119,
+ "name": "startTimeout",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 70,
+ "character": 14
+ }
+ ]
+ },
+ {
+ "id": 120,
+ "name": "trigger",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 121,
+ "name": "trigger",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 122,
+ "name": "status",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 123,
+ "name": "response",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 91,
+ "character": 9
+ }
+ ]
+ },
+ {
+ "id": 108,
+ "name": "updatePayload",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 109,
+ "name": "updatePayload",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 110,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 111,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 112,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 113,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 57,
+ "character": 24
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 57,
+ "character": 15
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [87]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [88, 89, 90, 82, 78, 77, 86, 75, 94, 76]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [126, 128, 136, 130, 124, 114, 103, 106, 118, 120, 108]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 4,
+ "character": 25
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [74]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 48,
+ "name": "\"lib/serializer\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts",
+ "children": [
+ {
+ "id": 49,
+ "name": "Serializer",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 50,
+ "name": "HEADER_LENGTH",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 5,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "1"
+ },
+ {
+ "id": 55,
+ "name": "_binaryDecode",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 56,
+ "name": "_binaryDecode",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 57,
+ "name": "buffer",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "ArrayBuffer"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 58,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 61,
+ "name": "event",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 33,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 62,
+ "name": "payload",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 34,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 59,
+ "name": "ref",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 31,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 60,
+ "name": "topic",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 32,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [61, 62, 59, 60]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 19,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 63,
+ "name": "_decodeBroadcast",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 64,
+ "name": "_decodeBroadcast",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 65,
+ "name": "buffer",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "ArrayBuffer"
+ }
+ },
+ {
+ "id": 66,
+ "name": "view",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "DataView"
+ }
+ },
+ {
+ "id": 67,
+ "name": "decoder",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "TextDecoder"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 68,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 71,
+ "name": "event",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 33,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 72,
+ "name": "payload",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 34,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 69,
+ "name": "ref",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 31,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ },
+ {
+ "id": 70,
+ "name": "topic",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 32,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [71, 72, 69, 70]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 30,
+ "character": 4
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 26,
+ "character": 26
+ }
+ ]
+ },
+ {
+ "id": 51,
+ "name": "decode",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 52,
+ "name": "decode",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 53,
+ "name": "rawPayload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "ArrayBuffer"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 54,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 7,
+ "character": 8
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [50]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [55, 63, 51]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 4,
+ "character": 31
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [49]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/serializer.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 34,
+ "name": "\"lib/timer\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/timer.ts",
+ "children": [
+ {
+ "id": 35,
+ "name": "Timer",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Creates a timer that accepts a `timerCalc` function to perform calculated timeout retries, such as exponential backoff.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "\n let reconnectTimer = new Timer(() => this.connect(), function(tries){\n return [1000, 5000, 10000][tries - 1] || 10000\n })\n reconnectTimer.scheduleTimeout() // fires after 1000\n reconnectTimer.scheduleTimeout() // fires after 5000\n reconnectTimer.reset()\n reconnectTimer.scheduleTimeout() // fires after 1000\n"
+ }
+ ]
+ },
+ "children": [
+ {
+ "id": 38,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 41,
+ "name": "new Timer",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 42,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 43,
+ "name": "timerCalc",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 35,
+ "name": "Timer"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/timer.ts",
+ "line": 15,
+ "character": 19
+ }
+ ]
+ },
+ {
+ "id": 39,
+ "name": "callback",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true,
+ "isExported": true,
+ "isConstructorProperty": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/timer.ts",
+ "line": 17,
+ "character": 29
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 36,
+ "name": "timer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/timer.ts",
+ "line": 14,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ ]
+ },
+ "defaultValue": "undefined"
+ },
+ {
+ "id": 40,
+ "name": "timerCalc",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPublic": true,
+ "isExported": true,
+ "isConstructorProperty": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/timer.ts",
+ "line": 17,
+ "character": 57
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 37,
+ "name": "tries",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/timer.ts",
+ "line": 15,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
+ },
+ {
+ "id": 44,
+ "name": "reset",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 45,
+ "name": "reset",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/timer.ts",
+ "line": 22,
+ "character": 7
+ }
+ ]
+ },
+ {
+ "id": 46,
+ "name": "scheduleTimeout",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 47,
+ "name": "scheduleTimeout",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/timer.ts",
+ "line": 28,
+ "character": 17
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [38]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [39, 36, 40, 37]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [44, 46]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/timer.ts",
+ "line": 13,
+ "character": 26
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [35]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/timer.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 371,
+ "name": "\"lib/transformers\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts",
+ "children": [
+ {
+ "id": 372,
+ "name": "PostgresTypes",
+ "kind": 4,
+ "kindString": "Enumeration",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Helpers to convert the change Payload into native JS types."
+ },
+ "children": [
+ {
+ "id": 373,
+ "name": "abstime",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 9,
+ "character": 9
+ }
+ ],
+ "defaultValue": "\"abstime\""
+ },
+ {
+ "id": 374,
+ "name": "bool",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 10,
+ "character": 6
+ }
+ ],
+ "defaultValue": "\"bool\""
+ },
+ {
+ "id": 375,
+ "name": "date",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 11,
+ "character": 6
+ }
+ ],
+ "defaultValue": "\"date\""
+ },
+ {
+ "id": 376,
+ "name": "daterange",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 12,
+ "character": 11
+ }
+ ],
+ "defaultValue": "\"daterange\""
+ },
+ {
+ "id": 377,
+ "name": "float4",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 13,
+ "character": 8
+ }
+ ],
+ "defaultValue": "\"float4\""
+ },
+ {
+ "id": 378,
+ "name": "float8",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 14,
+ "character": 8
+ }
+ ],
+ "defaultValue": "\"float8\""
+ },
+ {
+ "id": 379,
+ "name": "int2",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 15,
+ "character": 6
+ }
+ ],
+ "defaultValue": "\"int2\""
+ },
+ {
+ "id": 380,
+ "name": "int4",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 16,
+ "character": 6
+ }
+ ],
+ "defaultValue": "\"int4\""
+ },
+ {
+ "id": 381,
+ "name": "int4range",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 17,
+ "character": 11
+ }
+ ],
+ "defaultValue": "\"int4range\""
+ },
+ {
+ "id": 382,
+ "name": "int8",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 18,
+ "character": 6
+ }
+ ],
+ "defaultValue": "\"int8\""
+ },
+ {
+ "id": 383,
+ "name": "int8range",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 19,
+ "character": 11
+ }
+ ],
+ "defaultValue": "\"int8range\""
+ },
+ {
+ "id": 384,
+ "name": "json",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 20,
+ "character": 6
+ }
+ ],
+ "defaultValue": "\"json\""
+ },
+ {
+ "id": 385,
+ "name": "jsonb",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 21,
+ "character": 7
+ }
+ ],
+ "defaultValue": "\"jsonb\""
+ },
+ {
+ "id": 386,
+ "name": "money",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 22,
+ "character": 7
+ }
+ ],
+ "defaultValue": "\"money\""
+ },
+ {
+ "id": 387,
+ "name": "numeric",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 23,
+ "character": 9
+ }
+ ],
+ "defaultValue": "\"numeric\""
+ },
+ {
+ "id": 388,
+ "name": "oid",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 24,
+ "character": 5
+ }
+ ],
+ "defaultValue": "\"oid\""
+ },
+ {
+ "id": 389,
+ "name": "reltime",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 25,
+ "character": 9
+ }
+ ],
+ "defaultValue": "\"reltime\""
+ },
+ {
+ "id": 390,
+ "name": "text",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 26,
+ "character": 6
+ }
+ ],
+ "defaultValue": "\"text\""
+ },
+ {
+ "id": 391,
+ "name": "time",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 27,
+ "character": 6
+ }
+ ],
+ "defaultValue": "\"time\""
+ },
+ {
+ "id": 392,
+ "name": "timestamp",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 28,
+ "character": 11
+ }
+ ],
+ "defaultValue": "\"timestamp\""
+ },
+ {
+ "id": 393,
+ "name": "timestamptz",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 29,
+ "character": 13
+ }
+ ],
+ "defaultValue": "\"timestamptz\""
+ },
+ {
+ "id": 394,
+ "name": "timetz",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 30,
+ "character": 8
+ }
+ ],
+ "defaultValue": "\"timetz\""
+ },
+ {
+ "id": 395,
+ "name": "tsrange",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 31,
+ "character": 9
+ }
+ ],
+ "defaultValue": "\"tsrange\""
+ },
+ {
+ "id": 396,
+ "name": "tstzrange",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 32,
+ "character": 11
+ }
+ ],
+ "defaultValue": "\"tstzrange\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumeration members",
+ "kind": 16,
+ "children": [
+ 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389,
+ 390, 391, 392, 393, 394, 395, 396
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 8,
+ "character": 25
+ }
+ ]
+ },
+ {
+ "id": 403,
+ "name": "BaseValue",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 42,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ ]
+ }
+ },
+ {
+ "id": 397,
+ "name": "Columns",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 35,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reflection",
+ "declaration": {
+ "id": 398,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 401,
+ "name": "flags",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 38,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ },
+ {
+ "id": 399,
+ "name": "name",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 36,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 400,
+ "name": "type",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 37,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 402,
+ "name": "type_modifier",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 39,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [401, 399, 400, 402]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 35,
+ "character": 14
+ }
+ ]
+ }
+ }
+ }
+ },
+ {
+ "id": 405,
+ "name": "Record",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 45,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 406,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": [
+ {
+ "id": 407,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 408,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 45,
+ "character": 13
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 404,
+ "name": "RecordValue",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 43,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 403,
+ "name": "BaseValue"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 403,
+ "name": "BaseValue"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 422,
+ "name": "convertCell",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "comment": {
+ "shortText": "If the value of the cell is `null`, returns null.\nOtherwise converts the string value to the correct type.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "convertCell('bool', 't')\n//=> true"
+ },
+ {
+ "tag": "example",
+ "text": "convertCell('int8', '10')\n//=> 10"
+ },
+ {
+ "tag": "example",
+ "text": "convertCell('_int4', '{1,2,3,4}')\n//=> [1,2,3,4]\n"
+ }
+ ]
+ },
+ "signatures": [
+ {
+ "id": 423,
+ "name": "convertCell",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "If the value of the cell is `null`, returns null.\nOtherwise converts the string value to the correct type.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "convertCell('bool', 't')\n//=> true"
+ },
+ {
+ "tag": "example",
+ "text": "convertCell('int8', '10')\n//=> 10"
+ },
+ {
+ "tag": "example",
+ "text": "convertCell('_int4', '{1,2,3,4}')\n//=> [1,2,3,4]\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 424,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "A postgres column type"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 425,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 118,
+ "character": 24
+ }
+ ]
+ },
+ {
+ "id": 409,
+ "name": "convertChangeData",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "comment": {
+ "shortText": "Takes an array of columns and an object of string values then converts each string value\nto its mapped type.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "convertChangeData([{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age:'33'}, {})\n//=>{ first_name: 'Paul', age: 33 }\n"
+ }
+ ]
+ },
+ "signatures": [
+ {
+ "id": 410,
+ "name": "convertChangeData",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Takes an array of columns and an object of string values then converts each string value\nto its mapped type.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "convertChangeData([{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age:'33'}, {})\n//=>{ first_name: 'Paul', age: 33 }\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 411,
+ "name": "columns",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 397,
+ "name": "Columns"
+ }
+ },
+ {
+ "id": 412,
+ "name": "record",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {},
+ "type": {
+ "type": "reference",
+ "id": 405,
+ "name": "Record"
+ }
+ },
+ {
+ "id": 413,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "The map of various options that can be applied to the mapper"
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 414,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 415,
+ "name": "skipTypes",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 64,
+ "character": 22
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [415]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 64,
+ "character": 10
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 405,
+ "name": "Record"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 61,
+ "character": 30
+ }
+ ]
+ },
+ {
+ "id": 416,
+ "name": "convertColumn",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "comment": {
+ "shortText": "Converts the value of an individual column.",
+ "returns": "Useless information\n",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, [])\n//=> 33"
+ },
+ {
+ "tag": "example",
+ "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n"
+ }
+ ]
+ },
+ "signatures": [
+ {
+ "id": 417,
+ "name": "convertColumn",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Converts the value of an individual column.",
+ "returns": "Useless information\n",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, [])\n//=> 33"
+ },
+ {
+ "tag": "example",
+ "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 418,
+ "name": "columnName",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "The column that you want to convert"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 419,
+ "name": "columns",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 397,
+ "name": "Columns"
+ }
+ },
+ {
+ "id": 420,
+ "name": "record",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "The map of string values"
+ },
+ "type": {
+ "type": "reference",
+ "id": 405,
+ "name": "Record"
+ }
+ },
+ {
+ "id": 421,
+ "name": "skipTypes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "An array of types that should not be converted"
+ },
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 88,
+ "character": 26
+ }
+ ]
+ },
+ {
+ "id": 426,
+ "name": "noop",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isConst": true
+ },
+ "signatures": [
+ {
+ "id": 427,
+ "name": "noop",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 428,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 162,
+ "character": 10
+ }
+ ]
+ },
+ {
+ "id": 438,
+ "name": "toArray",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "comment": {
+ "shortText": "Converts a Postgres Array into a native JS array",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "toArray('{}', 'int4')\n//=> []"
+ },
+ {
+ "tag": "example",
+ "text": "toArray('{\"[2021-01-01,2021-12-31)\",\"(2021-01-01,2021-12-32]\"}', 'daterange')\n//=> ['[2021-01-01,2021-12-31)', '(2021-01-01,2021-12-32]']"
+ },
+ {
+ "tag": "example",
+ "text": "toArray([1,2,3,4], 'int4')\n//=> [1,2,3,4]\n"
+ }
+ ]
+ },
+ "signatures": [
+ {
+ "id": 439,
+ "name": "toArray",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Converts a Postgres Array into a native JS array",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "toArray('{}', 'int4')\n//=> []"
+ },
+ {
+ "tag": "example",
+ "text": "toArray('{\"[2021-01-01,2021-12-31)\",\"(2021-01-01,2021-12-32]\"}', 'daterange')\n//=> ['[2021-01-01,2021-12-31)', '(2021-01-01,2021-12-32]']"
+ },
+ {
+ "tag": "example",
+ "text": "toArray([1,2,3,4], 'int4')\n//=> [1,2,3,4]\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 440,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ },
+ {
+ "id": 441,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 206,
+ "character": 20
+ }
+ ]
+ },
+ {
+ "id": 429,
+ "name": "toBoolean",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "signatures": [
+ {
+ "id": 430,
+ "name": "toBoolean",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 431,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 165,
+ "character": 22
+ }
+ ]
+ },
+ {
+ "id": 435,
+ "name": "toJson",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "signatures": [
+ {
+ "id": 436,
+ "name": "toJson",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 437,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 184,
+ "character": 19
+ }
+ ]
+ },
+ {
+ "id": 432,
+ "name": "toNumber",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "signatures": [
+ {
+ "id": 433,
+ "name": "toNumber",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 434,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 175,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 442,
+ "name": "toTimestampString",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "comment": {
+ "shortText": "Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\nSee https://github.com/supabase/supabase/issues/18",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "toTimestampString('2019-09-10 00:00:00')\n//=> '2019-09-10T00:00:00'\n"
+ }
+ ]
+ },
+ "signatures": [
+ {
+ "id": 443,
+ "name": "toTimestampString",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\nSee https://github.com/supabase/supabase/issues/18",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "toTimestampString('2019-09-10 00:00:00')\n//=> '2019-09-10T00:00:00'\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 444,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 404,
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 241,
+ "character": 30
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumerations",
+ "kind": 4,
+ "children": [372]
+ },
+ {
+ "title": "Type aliases",
+ "kind": 4194304,
+ "children": [403, 397, 405, 404]
+ },
+ {
+ "title": "Functions",
+ "kind": 64,
+ "children": [422, 409, 416, 426, 438, 429, 435, 432, 442]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/transformers.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 1,
+ "name": "\"lib/version\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/version.ts",
+ "children": [
+ {
+ "id": 2,
+ "name": "version",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/version.ts",
+ "line": 1,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "stringLiteral",
+ "value": "0.0.0-automated"
+ },
+ "defaultValue": "\"0.0.0-automated\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [2]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/version.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Modules",
+ "kind": 1,
+ "children": [227, 139, 445, 3, 73, 48, 34, 371, 1]
+ }
+ ]
+}
diff --git a/spec/enrichments/tsdoc_v1/storage.json b/spec/enrichments/tsdoc_v1/storage.json
new file mode 100644
index 00000000000..e2730f306ec
--- /dev/null
+++ b/spec/enrichments/tsdoc_v1/storage.json
@@ -0,0 +1,8234 @@
+{
+ "id": 0,
+ "name": "@supabase/storage-js",
+ "kind": 0,
+ "flags": {},
+ "originalName": "",
+ "children": [
+ {
+ "id": 312,
+ "name": "\"StorageClient\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/storage-js/storage-js/src/StorageClient.ts",
+ "children": [
+ {
+ "id": 313,
+ "name": "StorageClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 314,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 315,
+ "name": "new StorageClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 316,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 317,
+ "name": "headers",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 318,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 319,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 320,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "StorageClient.ts",
+ "line": 5,
+ "character": 35
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 321,
+ "name": "fetch",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 313,
+ "name": "StorageClient"
+ },
+ "overwrites": {
+ "type": "reference",
+ "id": 114,
+ "name": "StorageBucketApi.__constructor"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "StorageClient.ts",
+ "line": 4,
+ "character": 53
+ }
+ ],
+ "overwrites": {
+ "type": "reference",
+ "id": 114,
+ "name": "StorageBucketApi.__constructor"
+ }
+ },
+ {
+ "id": 330,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 9,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 113,
+ "name": "StorageBucketApi.fetch"
+ }
+ },
+ {
+ "id": 326,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 8,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 327,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 328,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 329,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 8,
+ "character": 20
+ }
+ ]
+ }
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 109,
+ "name": "StorageBucketApi.headers"
+ }
+ },
+ {
+ "id": 325,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 7,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 108,
+ "name": "StorageBucketApi.url"
+ }
+ },
+ {
+ "id": 342,
+ "name": "createBucket",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 343,
+ "name": "createBucket",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Creates a new Storage bucket",
+ "returns": "newly created bucket id\n"
+ },
+ "parameters": [
+ {
+ "id": 344,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A unique identifier for the bucket you are creating."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 345,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 346,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 347,
+ "name": "public",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 51,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [347]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 51,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{ public: false }"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 348,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 349,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 52,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 350,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 52,
+ "character": 41
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [349, 350]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 52,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 133,
+ "name": "StorageBucketApi.createBucket"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 49,
+ "character": 20
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 133,
+ "name": "StorageBucketApi.createBucket"
+ }
+ },
+ {
+ "id": 370,
+ "name": "deleteBucket",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 371,
+ "name": "deleteBucket",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket."
+ },
+ "parameters": [
+ {
+ "id": 372,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The unique identifier of the bucket you would like to delete.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 373,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 374,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 117,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 375,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 376,
+ "name": "message",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 117,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [376]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 117,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 377,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 117,
+ "character": 54
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [374, 377]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 117,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 161,
+ "name": "StorageBucketApi.deleteBucket"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 115,
+ "character": 20
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 161,
+ "name": "StorageBucketApi.deleteBucket"
+ }
+ },
+ {
+ "id": 362,
+ "name": "emptyBucket",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 363,
+ "name": "emptyBucket",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Removes all objects inside a single bucket."
+ },
+ "parameters": [
+ {
+ "id": 364,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The unique identifier of the bucket you would like to empty.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 365,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 366,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 95,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 367,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 368,
+ "name": "message",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 95,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [368]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 95,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 369,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 95,
+ "character": 54
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [366, 369]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 95,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 153,
+ "name": "StorageBucketApi.emptyBucket"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 93,
+ "character": 19
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 153,
+ "name": "StorageBucketApi.emptyBucket"
+ }
+ },
+ {
+ "id": 322,
+ "name": "from",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 323,
+ "name": "from",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Perform file operation in a bucket."
+ },
+ "parameters": [
+ {
+ "id": 324,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The bucket id to operate on.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 170,
+ "name": "StorageFileApi"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "StorageClient.ts",
+ "line": 14,
+ "character": 6
+ }
+ ]
+ },
+ {
+ "id": 336,
+ "name": "getBucket",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 337,
+ "name": "getBucket",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Retrieves the details of an existing Storage bucket."
+ },
+ "parameters": [
+ {
+ "id": 338,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The unique identifier of the bucket you would like to retrieve.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 339,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 340,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 34,
+ "character": 45
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 74,
+ "name": "Bucket"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 341,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 34,
+ "character": 67
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [340, 341]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 34,
+ "character": 39
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 127,
+ "name": "StorageBucketApi.getBucket"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 34,
+ "character": 17
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 127,
+ "name": "StorageBucketApi.getBucket"
+ }
+ },
+ {
+ "id": 331,
+ "name": "listBuckets",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 332,
+ "name": "listBuckets",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Retrieves the details of all Storage buckets within an existing project."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 333,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 334,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 20,
+ "character": 37
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 74,
+ "name": "Bucket"
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 335,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 20,
+ "character": 61
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [334, 335]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 20,
+ "character": 31
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 122,
+ "name": "StorageBucketApi.listBuckets"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 20,
+ "character": 19
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 122,
+ "name": "StorageBucketApi.listBuckets"
+ }
+ },
+ {
+ "id": 351,
+ "name": "updateBucket",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 352,
+ "name": "updateBucket",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Updates a new Storage bucket"
+ },
+ "parameters": [
+ {
+ "id": 353,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A unique identifier for the bucket you are updating.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 354,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 355,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 356,
+ "name": "public",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 73,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [356]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 73,
+ "character": 12
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 357,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 358,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 74,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 359,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 360,
+ "name": "message",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 74,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [360]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 74,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 361,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 74,
+ "character": 54
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [358, 361]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 74,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 142,
+ "name": "StorageBucketApi.updateBucket"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 71,
+ "character": 20
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 142,
+ "name": "StorageBucketApi.updateBucket"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [314]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [330, 326, 325]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [342, 370, 362, 322, 336, 331, 351]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "StorageClient.ts",
+ "line": 4,
+ "character": 26
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 107,
+ "name": "StorageBucketApi"
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [313]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "StorageClient.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 378,
+ "name": "\"index\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/storage-js/storage-js/src/index.ts",
+ "children": [
+ {
+ "id": 381,
+ "name": "Bucket",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 74
+ },
+ {
+ "id": 382,
+ "name": "FileObject",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 81
+ },
+ {
+ "id": 384,
+ "name": "FileOptions",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 95
+ },
+ {
+ "id": 386,
+ "name": "Metadata",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 104
+ },
+ {
+ "id": 385,
+ "name": "SearchOptions",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 99
+ },
+ {
+ "id": 383,
+ "name": "SortBy",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 92
+ },
+ {
+ "id": 379,
+ "name": "StorageClient",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 313
+ },
+ {
+ "id": 380,
+ "name": "SupabaseStorageClient",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 313
+ }
+ ],
+ "groups": [
+ {
+ "title": "References",
+ "kind": 16777216,
+ "children": [381, 382, 384, 386, 385, 383, 379, 380]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "index.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 106,
+ "name": "\"lib/StorageBucketApi\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageBucketApi.ts",
+ "children": [
+ {
+ "id": 107,
+ "name": "StorageBucketApi",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 114,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 115,
+ "name": "new StorageBucketApi",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 116,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 117,
+ "name": "headers",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 118,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 119,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 120,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 11,
+ "character": 35
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 121,
+ "name": "fetch",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 107,
+ "name": "StorageBucketApi"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 9,
+ "character": 24
+ }
+ ]
+ },
+ {
+ "id": 113,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 9,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 109,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 8,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 110,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 111,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 112,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 8,
+ "character": 20
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 108,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 7,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 133,
+ "name": "createBucket",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 134,
+ "name": "createBucket",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Creates a new Storage bucket",
+ "returns": "newly created bucket id\n"
+ },
+ "parameters": [
+ {
+ "id": 135,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A unique identifier for the bucket you are creating."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 136,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 137,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 138,
+ "name": "public",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 51,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [138]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 51,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{ public: false }"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 139,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 140,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 52,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 141,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 52,
+ "character": 41
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [140, 141]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 52,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 49,
+ "character": 20
+ }
+ ]
+ },
+ {
+ "id": 161,
+ "name": "deleteBucket",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 162,
+ "name": "deleteBucket",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket."
+ },
+ "parameters": [
+ {
+ "id": 163,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The unique identifier of the bucket you would like to delete.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 164,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 165,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 117,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 166,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 167,
+ "name": "message",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 117,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [167]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 117,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 168,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 117,
+ "character": 54
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [165, 168]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 117,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 115,
+ "character": 20
+ }
+ ]
+ },
+ {
+ "id": 153,
+ "name": "emptyBucket",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 154,
+ "name": "emptyBucket",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Removes all objects inside a single bucket."
+ },
+ "parameters": [
+ {
+ "id": 155,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The unique identifier of the bucket you would like to empty.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 156,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 157,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 95,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 158,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 159,
+ "name": "message",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 95,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [159]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 95,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 160,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 95,
+ "character": 54
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [157, 160]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 95,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 93,
+ "character": 19
+ }
+ ]
+ },
+ {
+ "id": 127,
+ "name": "getBucket",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 128,
+ "name": "getBucket",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Retrieves the details of an existing Storage bucket."
+ },
+ "parameters": [
+ {
+ "id": 129,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The unique identifier of the bucket you would like to retrieve.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 130,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 131,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 34,
+ "character": 45
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 74,
+ "name": "Bucket"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 132,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 34,
+ "character": 67
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [131, 132]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 34,
+ "character": 39
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 34,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 122,
+ "name": "listBuckets",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 123,
+ "name": "listBuckets",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Retrieves the details of all Storage buckets within an existing project."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 124,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 125,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 20,
+ "character": 37
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 74,
+ "name": "Bucket"
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 126,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 20,
+ "character": 61
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [125, 126]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 20,
+ "character": 31
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 20,
+ "character": 19
+ }
+ ]
+ },
+ {
+ "id": 142,
+ "name": "updateBucket",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 143,
+ "name": "updateBucket",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Updates a new Storage bucket"
+ },
+ "parameters": [
+ {
+ "id": 144,
+ "name": "id",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A unique identifier for the bucket you are updating.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 145,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 146,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 147,
+ "name": "public",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 73,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [147]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 73,
+ "character": 12
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 148,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 149,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 74,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 150,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 151,
+ "name": "message",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 74,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [151]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 74,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 152,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 74,
+ "character": 54
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [149, 152]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 74,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 71,
+ "character": 20
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [114]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [113, 109, 108]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [133, 161, 153, 127, 122, 142]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 6,
+ "character": 29
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 313,
+ "name": "StorageClient"
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [107]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageBucketApi.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 169,
+ "name": "\"lib/StorageFileApi\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageFileApi.ts",
+ "children": [
+ {
+ "id": 170,
+ "name": "StorageFileApi",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 178,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 179,
+ "name": "new StorageFileApi",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 180,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 181,
+ "name": "headers",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 182,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 183,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 184,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 28,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 185,
+ "name": "bucketId",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 186,
+ "name": "fetch",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 170,
+ "name": "StorageFileApi"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 24,
+ "character": 24
+ }
+ ]
+ },
+ {
+ "id": 176,
+ "name": "bucketId",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 23,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 177,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 24,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 172,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 22,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 173,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 174,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 175,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 22,
+ "character": 20
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 171,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 21,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 286,
+ "name": "_getFinalPath",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 287,
+ "name": "_getFinalPath",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 288,
+ "name": "path",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 387,
+ "character": 15
+ }
+ ]
+ },
+ {
+ "id": 289,
+ "name": "_removeEmptyFolders",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 290,
+ "name": "_removeEmptyFolders",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 291,
+ "name": "path",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 391,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 227,
+ "name": "copy",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 228,
+ "name": "copy",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Copies an existing file."
+ },
+ "parameters": [
+ {
+ "id": 229,
+ "name": "fromPath",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The original file path, including the current file name. For example `folder/image.png`."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 230,
+ "name": "toPath",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The new file path, including the new file name. For example `folder/image-copy.png`.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 231,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 232,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 195,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 233,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 234,
+ "name": "message",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 195,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [234]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 195,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 235,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 195,
+ "character": 54
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [232, 235]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 195,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 192,
+ "character": 12
+ }
+ ]
+ },
+ {
+ "id": 236,
+ "name": "createSignedUrl",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 237,
+ "name": "createSignedUrl",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Create signed URL to download file without requiring permissions. This URL can be valid for a set number of seconds."
+ },
+ "parameters": [
+ {
+ "id": 238,
+ "name": "path",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The file path to be downloaded, including the current file name. For example `folder/image.png`."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 239,
+ "name": "expiresIn",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The number of seconds until the signed URL expires. For example, `60` for a URL which is valid for one minute.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 240,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 241,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 219,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 242,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 243,
+ "name": "signedURL",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 219,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [243]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 219,
+ "character": 9
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 244,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 220,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 245,
+ "name": "signedURL",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 221,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [241, 244, 245]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 218,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 215,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 246,
+ "name": "createSignedUrls",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 247,
+ "name": "createSignedUrls",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Create signed URLs to download files without requiring permissions. These URLs can be valid for a set number of seconds."
+ },
+ "parameters": [
+ {
+ "id": 248,
+ "name": "paths",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The file paths to be downloaded, including the current file names. For example `['folder/image.png', 'folder2/image2.png']`."
+ },
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ },
+ {
+ "id": 249,
+ "name": "expiresIn",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The number of seconds until the signed URLs expire. For example, `60` for URLs which are valid for one minute.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 250,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 251,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 249,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reflection",
+ "declaration": {
+ "id": 252,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 253,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 249,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 254,
+ "name": "path",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 249,
+ "character": 38
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 255,
+ "name": "signedURL",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 249,
+ "character": 64
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [253, 254, 255]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 249,
+ "character": 9
+ }
+ ]
+ }
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 256,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 250,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [251, 256]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 248,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 245,
+ "character": 24
+ }
+ ]
+ },
+ {
+ "id": 257,
+ "name": "download",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 258,
+ "name": "download",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Downloads a file."
+ },
+ "parameters": [
+ {
+ "id": 259,
+ "name": "path",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 260,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 261,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 276,
+ "character": 46
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Blob"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 262,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 276,
+ "character": 66
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [261, 262]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 276,
+ "character": 40
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 276,
+ "character": 16
+ }
+ ]
+ },
+ {
+ "id": 263,
+ "name": "getPublicUrl",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 264,
+ "name": "getPublicUrl",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Retrieve URLs for assets in public buckets"
+ },
+ "parameters": [
+ {
+ "id": 265,
+ "name": "path",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 266,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 267,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 298,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 268,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 269,
+ "name": "publicURL",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 298,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [269]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 298,
+ "character": 9
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 270,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 299,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 271,
+ "name": "publicURL",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 300,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [267, 270, 271]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 297,
+ "character": 4
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 295,
+ "character": 14
+ }
+ ]
+ },
+ {
+ "id": 278,
+ "name": "list",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 279,
+ "name": "list",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Lists all the files within a bucket."
+ },
+ "parameters": [
+ {
+ "id": 280,
+ "name": "path",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "The folder path."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 281,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "Search options, including `limit`, `offset`, `sortBy`, and `search`."
+ },
+ "type": {
+ "type": "reference",
+ "id": 99,
+ "name": "SearchOptions"
+ }
+ },
+ {
+ "id": 282,
+ "name": "parameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "Fetch parameters, currently only supports `signal`, which is an AbortController's signal\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 13,
+ "name": "FetchParameters"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 283,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 284,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 371,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 81,
+ "name": "FileObject"
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 285,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 371,
+ "character": 47
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [284, 285]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 371,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 367,
+ "character": 12
+ }
+ ]
+ },
+ {
+ "id": 218,
+ "name": "move",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 219,
+ "name": "move",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Moves an existing file."
+ },
+ "parameters": [
+ {
+ "id": 220,
+ "name": "fromPath",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The original file path, including the current file name. For example `folder/image.png`."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 221,
+ "name": "toPath",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The new file path, including the new file name. For example `folder/image-new.png`.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 222,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 223,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 172,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 224,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 225,
+ "name": "message",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 172,
+ "character": 30
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [225]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 172,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 226,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 172,
+ "character": 54
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [223, 226]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 172,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 169,
+ "character": 12
+ }
+ ]
+ },
+ {
+ "id": 272,
+ "name": "remove",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 273,
+ "name": "remove",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Deletes files within the same bucket"
+ },
+ "parameters": [
+ {
+ "id": 274,
+ "name": "paths",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "An array of files to be deleted, including the path and file name. For example [`folder/image.png`].\n"
+ },
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 275,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 276,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 317,
+ "character": 47
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 81,
+ "name": "FileObject"
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 277,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 317,
+ "character": 75
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [276, 277]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 317,
+ "character": 41
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 317,
+ "character": 14
+ }
+ ]
+ },
+ {
+ "id": 208,
+ "name": "update",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 209,
+ "name": "update",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Replaces an existing file at the specified path with a new one."
+ },
+ "parameters": [
+ {
+ "id": 210,
+ "name": "path",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 211,
+ "name": "fileBody",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The body of the file to be stored in the bucket."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "ArrayBuffer"
+ },
+ {
+ "type": "reference",
+ "name": "ArrayBufferView"
+ },
+ {
+ "type": "reference",
+ "name": "Blob"
+ },
+ {
+ "type": "reference",
+ "name": "Buffer"
+ },
+ {
+ "type": "reference",
+ "name": "File"
+ },
+ {
+ "type": "reference",
+ "name": "FormData"
+ },
+ {
+ "type": "reference",
+ "name": "ReadableStream"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "name": "Uint8Array"
+ }
+ ],
+ "name": "ReadableStream"
+ },
+ {
+ "type": "reference",
+ "name": "URLSearchParams"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 212,
+ "name": "fileOptions",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "HTTP headers.\n`cacheControl`: string, the `Cache-Control: max-age=<seconds>` seconds value.\n`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.\n`upsert`: boolean, whether to perform an upsert.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 95,
+ "name": "FileOptions"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 213,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 214,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 159,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 215,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 216,
+ "name": "Key",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 159,
+ "character": 26
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [216]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 159,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 217,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 159,
+ "character": 50
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [214, 217]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 159,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 145,
+ "character": 14
+ }
+ ]
+ },
+ {
+ "id": 198,
+ "name": "upload",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 199,
+ "name": "upload",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Uploads a file to an existing bucket."
+ },
+ "parameters": [
+ {
+ "id": 200,
+ "name": "path",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 201,
+ "name": "fileBody",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The body of the file to be stored in the bucket."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "ArrayBuffer"
+ },
+ {
+ "type": "reference",
+ "name": "ArrayBufferView"
+ },
+ {
+ "type": "reference",
+ "name": "Blob"
+ },
+ {
+ "type": "reference",
+ "name": "Buffer"
+ },
+ {
+ "type": "reference",
+ "name": "File"
+ },
+ {
+ "type": "reference",
+ "name": "FormData"
+ },
+ {
+ "type": "reference",
+ "name": "ReadableStream"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "name": "Uint8Array"
+ }
+ ],
+ "name": "ReadableStream"
+ },
+ {
+ "type": "reference",
+ "name": "URLSearchParams"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 202,
+ "name": "fileOptions",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "HTTP headers.\n`cacheControl`: string, the `Cache-Control: max-age=<seconds>` seconds value.\n`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.\n`upsert`: boolean, whether to perform an upsert.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 95,
+ "name": "FileOptions"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 203,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 204,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 131,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 205,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 206,
+ "name": "Key",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 131,
+ "character": 26
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [206]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 131,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 207,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 131,
+ "character": 50
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [204, 207]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 131,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 117,
+ "character": 14
+ }
+ ]
+ },
+ {
+ "id": 187,
+ "name": "uploadOrUpdate",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 188,
+ "name": "uploadOrUpdate",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Uploads a file to an existing bucket or replaces an existing file at the specified path with a new one."
+ },
+ "parameters": [
+ {
+ "id": 189,
+ "name": "method",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "HTTP method."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "POST"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PUT"
+ }
+ ]
+ }
+ },
+ {
+ "id": 190,
+ "name": "path",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 191,
+ "name": "fileBody",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The body of the file to be stored in the bucket."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "ArrayBuffer"
+ },
+ {
+ "type": "reference",
+ "name": "ArrayBufferView"
+ },
+ {
+ "type": "reference",
+ "name": "Blob"
+ },
+ {
+ "type": "reference",
+ "name": "Buffer"
+ },
+ {
+ "type": "reference",
+ "name": "File"
+ },
+ {
+ "type": "reference",
+ "name": "FormData"
+ },
+ {
+ "type": "reference",
+ "name": "ReadableStream"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "name": "Uint8Array"
+ }
+ ],
+ "name": "ReadableStream"
+ },
+ {
+ "type": "reference",
+ "name": "URLSearchParams"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 192,
+ "name": "fileOptions",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "text": "HTTP headers.\n`cacheControl`: string, the `Cache-Control: max-age=<seconds>` seconds value.\n`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`.\n`upsert`: boolean, whether to perform an upsert.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 95,
+ "name": "FileOptions"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 193,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 194,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 64,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 195,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 196,
+ "name": "Key",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 64,
+ "character": 26
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [196]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 64,
+ "character": 20
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 197,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 64,
+ "character": 50
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [194, 197]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 64,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 49,
+ "character": 30
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [178]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [176, 177, 172, 171]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [286, 289, 227, 236, 246, 257, 263, 278, 218, 272, 208, 198, 187]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 20,
+ "character": 27
+ }
+ ]
+ },
+ {
+ "id": 298,
+ "name": "DEFAULT_FILE_OPTIONS",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {
+ "isConst": true
+ },
+ "children": [
+ {
+ "id": 299,
+ "name": "cacheControl",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 15,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"3600\""
+ },
+ {
+ "id": 300,
+ "name": "contentType",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 16,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"text/plain;charset=UTF-8\""
+ },
+ {
+ "id": 301,
+ "name": "upsert",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 17,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ "defaultValue": "false"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [299, 300, 301]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 14,
+ "character": 26
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 292,
+ "name": "DEFAULT_SEARCH_OPTIONS",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {
+ "isConst": true
+ },
+ "children": [
+ {
+ "id": 293,
+ "name": "limit",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 6,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "100"
+ },
+ {
+ "id": 294,
+ "name": "offset",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 7,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ },
+ "defaultValue": "0"
+ },
+ {
+ "id": 295,
+ "name": "sortBy",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 296,
+ "name": "column",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 9,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"name\""
+ },
+ {
+ "id": 297,
+ "name": "order",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 10,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "\"asc\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [296, 297]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 8,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [293, 294]
+ },
+ {
+ "title": "Object literals",
+ "kind": 2097152,
+ "children": [295]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 5,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [170]
+ },
+ {
+ "title": "Object literals",
+ "kind": 2097152,
+ "children": [298, 292]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/StorageFileApi.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 3,
+ "name": "\"lib/constants\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/constants.ts",
+ "children": [
+ {
+ "id": 4,
+ "name": "DEFAULT_HEADERS",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "children": [
+ {
+ "id": 5,
+ "name": "X-Client-Info",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 2,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "`storage-js/${version}`"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [5]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 2,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Object literals",
+ "kind": 2097152,
+ "children": [4]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 6,
+ "name": "\"lib/fetch\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/fetch.ts",
+ "children": [
+ {
+ "id": 7,
+ "name": "FetchOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 8,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 4,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 9,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 10,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 11,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 12,
+ "name": "noResolveJson",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 7,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [8, 12]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 3,
+ "character": 29
+ }
+ ]
+ },
+ {
+ "id": 13,
+ "name": "FetchParameters",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 14,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 11,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "AbortSignal"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [14]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 10,
+ "character": 32
+ }
+ ]
+ },
+ {
+ "id": 15,
+ "name": "Fetch",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 1,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "name": "fetch"
+ }
+ }
+ },
+ {
+ "id": 16,
+ "name": "RequestMethodType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 14,
+ "character": 29
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "GET"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "POST"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PUT"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "DELETE"
+ }
+ ]
+ }
+ },
+ {
+ "id": 17,
+ "name": "_getErrorMessage",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isConst": true
+ },
+ "signatures": [
+ {
+ "id": 18,
+ "name": "_getErrorMessage",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 19,
+ "name": "err",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 16,
+ "character": 22
+ }
+ ]
+ },
+ {
+ "id": 24,
+ "name": "_getRequestParams",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isConst": true
+ },
+ "signatures": [
+ {
+ "id": 25,
+ "name": "_getRequestParams",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 26,
+ "name": "method",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 16,
+ "name": "RequestMethodType"
+ }
+ },
+ {
+ "id": 27,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 7,
+ "name": "FetchOptions"
+ }
+ },
+ {
+ "id": 28,
+ "name": "parameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 13,
+ "name": "FetchParameters"
+ }
+ },
+ {
+ "id": 29,
+ "name": "body",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 30,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": [
+ {
+ "id": 31,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 32,
+ "name": "k",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 31,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 33,
+ "name": "_handleRequest",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 34,
+ "name": "_handleRequest",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 35,
+ "name": "fetcher",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 36,
+ "name": "method",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 16,
+ "name": "RequestMethodType"
+ }
+ },
+ {
+ "id": 37,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 38,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 7,
+ "name": "FetchOptions"
+ }
+ },
+ {
+ "id": 39,
+ "name": "parameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 13,
+ "name": "FetchParameters"
+ }
+ },
+ {
+ "id": 40,
+ "name": "body",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 48,
+ "character": 29
+ }
+ ]
+ },
+ {
+ "id": 41,
+ "name": "get",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 42,
+ "name": "get",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 43,
+ "name": "fetcher",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 44,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 45,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 7,
+ "name": "FetchOptions"
+ }
+ },
+ {
+ "id": 46,
+ "name": "parameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 13,
+ "name": "FetchParameters"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 68,
+ "character": 25
+ }
+ ]
+ },
+ {
+ "id": 20,
+ "name": "handleError",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isConst": true
+ },
+ "signatures": [
+ {
+ "id": 21,
+ "name": "handleError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 22,
+ "name": "error",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 23,
+ "name": "reject",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 19,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 47,
+ "name": "post",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 48,
+ "name": "post",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 49,
+ "name": "fetcher",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 50,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 51,
+ "name": "body",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 52,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 7,
+ "name": "FetchOptions"
+ }
+ },
+ {
+ "id": 53,
+ "name": "parameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 13,
+ "name": "FetchParameters"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 77,
+ "character": 26
+ }
+ ]
+ },
+ {
+ "id": 54,
+ "name": "put",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 55,
+ "name": "put",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 56,
+ "name": "fetcher",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 57,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 58,
+ "name": "body",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 59,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 7,
+ "name": "FetchOptions"
+ }
+ },
+ {
+ "id": 60,
+ "name": "parameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 13,
+ "name": "FetchParameters"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 87,
+ "character": 25
+ }
+ ]
+ },
+ {
+ "id": 61,
+ "name": "remove",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 62,
+ "name": "remove",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 63,
+ "name": "fetcher",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 15,
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 64,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 65,
+ "name": "body",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 66,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 7,
+ "name": "FetchOptions"
+ }
+ },
+ {
+ "id": 67,
+ "name": "parameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 13,
+ "name": "FetchParameters"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 97,
+ "character": 28
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Interfaces",
+ "kind": 256,
+ "children": [7, 13]
+ },
+ {
+ "title": "Type aliases",
+ "kind": 4194304,
+ "children": [15, 16]
+ },
+ {
+ "title": "Functions",
+ "kind": 64,
+ "children": [17, 24, 33, 41, 20, 47, 54, 61]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/fetch.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 68,
+ "name": "\"lib/helpers\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/helpers.ts",
+ "children": [
+ {
+ "id": 69,
+ "name": "Fetch",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/helpers.ts",
+ "line": 1,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "name": "fetch"
+ }
+ }
+ },
+ {
+ "id": 70,
+ "name": "resolveFetch",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "signatures": [
+ {
+ "id": 71,
+ "name": "resolveFetch",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 72,
+ "name": "customFetch",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 69,
+ "name": "Fetch"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 69,
+ "name": "Fetch"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/helpers.ts",
+ "line": 3,
+ "character": 25
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Type aliases",
+ "kind": 4194304,
+ "children": [69]
+ },
+ {
+ "title": "Functions",
+ "kind": 64,
+ "children": [70]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/helpers.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 302,
+ "name": "\"lib/index\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/index.ts",
+ "children": [
+ {
+ "id": 305,
+ "name": "Bucket",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 74
+ },
+ {
+ "id": 311,
+ "name": "DEFAULT_HEADERS",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 4
+ },
+ {
+ "id": 306,
+ "name": "FileObject",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 81
+ },
+ {
+ "id": 308,
+ "name": "FileOptions",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 95
+ },
+ {
+ "id": 310,
+ "name": "Metadata",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 104
+ },
+ {
+ "id": 309,
+ "name": "SearchOptions",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 99
+ },
+ {
+ "id": 307,
+ "name": "SortBy",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 92
+ },
+ {
+ "id": 303,
+ "name": "StorageBucketApi",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 107
+ },
+ {
+ "id": 304,
+ "name": "StorageFileApi",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 170
+ }
+ ],
+ "groups": [
+ {
+ "title": "References",
+ "kind": 16777216,
+ "children": [305, 311, 306, 308, 310, 309, 307, 303, 304]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/index.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 73,
+ "name": "\"lib/types\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/types.ts",
+ "children": [
+ {
+ "id": 74,
+ "name": "Bucket",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 78,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 5,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 75,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 2,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 76,
+ "name": "name",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 3,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 77,
+ "name": "owner",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 4,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 80,
+ "name": "public",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 7,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 79,
+ "name": "updated_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 6,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [78, 75, 76, 77, 80, 79]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 1,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 81,
+ "name": "FileObject",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 83,
+ "name": "bucket_id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 12,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 91,
+ "name": "buckets",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 19,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 74,
+ "name": "Bucket"
+ }
+ },
+ {
+ "id": 87,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 16,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 85,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 14,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 88,
+ "name": "last_accessed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 17,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 89,
+ "name": "metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 18,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 90,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 18,
+ "character": 11
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 82,
+ "name": "name",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 11,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 84,
+ "name": "owner",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 13,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 86,
+ "name": "updated_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 15,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [83, 91, 87, 85, 88, 89, 82, 84, 86]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 10,
+ "character": 27
+ }
+ ]
+ },
+ {
+ "id": 95,
+ "name": "FileOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 96,
+ "name": "cacheControl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 28,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 97,
+ "name": "contentType",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 29,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 98,
+ "name": "upsert",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 30,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "false"
+ },
+ {
+ "type": "intrinsic",
+ "name": "true"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [96, 97, 98]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 27,
+ "character": 28
+ }
+ ]
+ },
+ {
+ "id": 104,
+ "name": "Metadata",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 105,
+ "name": "name",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 49,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [105]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 48,
+ "character": 25
+ }
+ ]
+ },
+ {
+ "id": 99,
+ "name": "SearchOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 100,
+ "name": "limit",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The number of files you want to be returned."
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 35,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "id": 101,
+ "name": "offset",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The starting position."
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 38,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ ]
+ }
+ },
+ {
+ "id": 103,
+ "name": "search",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The search string to filter files by."
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 44,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 102,
+ "name": "sortBy",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The column to sort by. Can be any column inside a FileObject."
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 41,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 92,
+ "name": "SortBy"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [100, 101, 103, 102]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 33,
+ "character": 30
+ }
+ ]
+ },
+ {
+ "id": 92,
+ "name": "SortBy",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 93,
+ "name": "column",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 23,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 94,
+ "name": "order",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 24,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [93, 94]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 22,
+ "character": 23
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Interfaces",
+ "kind": 256,
+ "children": [74, 81, 95, 104, 99, 92]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 1,
+ "name": "\"lib/version\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/version.ts",
+ "children": [
+ {
+ "id": 2,
+ "name": "version",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/version.ts",
+ "line": 2,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "stringLiteral",
+ "value": "0.0.0"
+ },
+ "defaultValue": "\"0.0.0\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [2]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/version.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Modules",
+ "kind": 1,
+ "children": [312, 378, 106, 169, 3, 6, 68, 302, 73, 1]
+ }
+ ]
+}
diff --git a/spec/enrichments/tsdoc_v1/supabase.json b/spec/enrichments/tsdoc_v1/supabase.json
new file mode 100644
index 00000000000..633a04f624f
--- /dev/null
+++ b/spec/enrichments/tsdoc_v1/supabase.json
@@ -0,0 +1,22027 @@
+{
+ "id": 0,
+ "name": "@supabase/supabase-js",
+ "kind": 1,
+ "flags": {},
+ "originalName": "",
+ "children": [
+ {
+ "id": 1,
+ "name": "index",
+ "kind": 2,
+ "kindString": "Module",
+ "flags": {},
+ "children": [
+ {
+ "id": 740,
+ "name": "Session",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {},
+ "target": 335
+ },
+ {
+ "id": 305,
+ "name": "SupabaseClientOptions",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 27,
+ "character": 2
+ }
+ ],
+ "target": 176
+ },
+ {
+ "id": 306,
+ "name": "SupabaseRealtimePayload",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 28,
+ "character": 2
+ }
+ ],
+ "target": 189
+ },
+ {
+ "id": 752,
+ "name": "User",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {},
+ "target": 307
+ },
+ {
+ "id": 1014,
+ "name": "Transformers",
+ "kind": 4,
+ "kindString": "Namespace",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 1015,
+ "name": "PostgresTypes",
+ "kind": 8,
+ "kindString": "Enumeration",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Helpers to convert the change Payload into native JS types."
+ },
+ "children": [
+ {
+ "id": 1016,
+ "name": "abstime",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 5,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"abstime\""
+ },
+ {
+ "id": 1017,
+ "name": "bool",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 6,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"bool\""
+ },
+ {
+ "id": 1018,
+ "name": "date",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 7,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"date\""
+ },
+ {
+ "id": 1019,
+ "name": "daterange",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 8,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"daterange\""
+ },
+ {
+ "id": 1020,
+ "name": "float4",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 9,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"float4\""
+ },
+ {
+ "id": 1021,
+ "name": "float8",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 10,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"float8\""
+ },
+ {
+ "id": 1022,
+ "name": "int2",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 11,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"int2\""
+ },
+ {
+ "id": 1023,
+ "name": "int4",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 12,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"int4\""
+ },
+ {
+ "id": 1024,
+ "name": "int4range",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 13,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"int4range\""
+ },
+ {
+ "id": 1025,
+ "name": "int8",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 14,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"int8\""
+ },
+ {
+ "id": 1026,
+ "name": "int8range",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 15,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"int8range\""
+ },
+ {
+ "id": 1027,
+ "name": "json",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 16,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"json\""
+ },
+ {
+ "id": 1028,
+ "name": "jsonb",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 17,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"jsonb\""
+ },
+ {
+ "id": 1029,
+ "name": "money",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 18,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"money\""
+ },
+ {
+ "id": 1030,
+ "name": "numeric",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"numeric\""
+ },
+ {
+ "id": 1031,
+ "name": "oid",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 20,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"oid\""
+ },
+ {
+ "id": 1032,
+ "name": "reltime",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 21,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"reltime\""
+ },
+ {
+ "id": 1033,
+ "name": "text",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 22,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"text\""
+ },
+ {
+ "id": 1034,
+ "name": "time",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"time\""
+ },
+ {
+ "id": 1035,
+ "name": "timestamp",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 24,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"timestamp\""
+ },
+ {
+ "id": 1036,
+ "name": "timestamptz",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 25,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"timestamptz\""
+ },
+ {
+ "id": 1037,
+ "name": "timetz",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 26,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"timetz\""
+ },
+ {
+ "id": 1038,
+ "name": "tsrange",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 27,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"tsrange\""
+ },
+ {
+ "id": 1039,
+ "name": "tstzrange",
+ "kind": 16,
+ "kindString": "Enumeration member",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 28,
+ "character": 4
+ }
+ ],
+ "defaultValue": "\"tstzrange\""
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumeration members",
+ "kind": 16,
+ "children": [
+ 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028,
+ 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 4,
+ "character": 20
+ }
+ ]
+ },
+ {
+ "id": 1053,
+ "name": "convertCell",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 84,
+ "character": 21
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1054,
+ "name": "convertCell",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "If the value of the cell is `null`, returns null.\nOtherwise converts the string value to the correct type.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "convertCell('bool', 't')\n//=> true"
+ },
+ {
+ "tag": "example",
+ "text": "convertCell('int8', '10')\n//=> 10"
+ },
+ {
+ "tag": "example",
+ "text": "convertCell('_int4', '{1,2,3,4}')\n//=> [1,2,3,4]\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 1055,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "A postgres column type"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 1056,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1040,
+ "name": "convertChangeData",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 53,
+ "character": 21
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1041,
+ "name": "convertChangeData",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Takes an array of columns and an object of string values then converts each string value\nto its mapped type.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "convertChangeData([{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age:'33'}, {})\n//=>{ first_name: 'Paul', age: 33 }\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 1042,
+ "name": "columns",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Columns",
+ "package": "@supabase/realtime-js",
+ "name": "Columns"
+ }
+ },
+ {
+ "id": 1043,
+ "name": "record",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Record",
+ "package": "@supabase/realtime-js",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 1044,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The map of various options that can be applied to the mapper"
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 1045,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 1046,
+ "name": "skipTypes",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The array of types that should not be converted\n"
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 54,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [1046]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Record",
+ "package": "@supabase/realtime-js",
+ "name": "Record"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1047,
+ "name": "convertColumn",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 70,
+ "character": 21
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1048,
+ "name": "convertColumn",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Converts the value of an individual column.",
+ "returns": "Useless information\n",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, [])\n//=> 33"
+ },
+ {
+ "tag": "example",
+ "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 1049,
+ "name": "columnName",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The column that you want to convert"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 1050,
+ "name": "columns",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Columns",
+ "package": "@supabase/realtime-js",
+ "name": "Columns"
+ }
+ },
+ {
+ "id": 1051,
+ "name": "record",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The map of string values"
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Record",
+ "package": "@supabase/realtime-js",
+ "name": "Record"
+ }
+ },
+ {
+ "id": 1052,
+ "name": "skipTypes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "An array of types that should not be converted"
+ },
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1066,
+ "name": "toArray",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 98,
+ "character": 21
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1067,
+ "name": "toArray",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Converts a Postgres Array into a native JS array",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "toArray('{}', 'int4')\n//=> []"
+ },
+ {
+ "tag": "example",
+ "text": "toArray('{\"[2021-01-01,2021-12-31)\",\"(2021-01-01,2021-12-32]\"}', 'daterange')\n//=> ['[2021-01-01,2021-12-31)', '(2021-01-01,2021-12-32]']"
+ },
+ {
+ "tag": "example",
+ "text": "toArray([1,2,3,4], 'int4')\n//=> [1,2,3,4]\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 1068,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ },
+ {
+ "id": 1069,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1057,
+ "name": "toBoolean",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 85,
+ "character": 21
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1058,
+ "name": "toBoolean",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 1059,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1063,
+ "name": "toJson",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 87,
+ "character": 21
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1064,
+ "name": "toJson",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 1065,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1060,
+ "name": "toNumber",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 86,
+ "character": 21
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1061,
+ "name": "toNumber",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 1062,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1070,
+ "name": "toTimestampString",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 106,
+ "character": 21
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1071,
+ "name": "toTimestampString",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\nSee https://github.com/supabase/supabase/issues/18",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "toTimestampString('2019-09-10 00:00:00')\n//=> '2019-09-10T00:00:00'\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 1072,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RecordValue",
+ "package": "@supabase/realtime-js",
+ "name": "RecordValue"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Enumerations",
+ "kind": 8,
+ "children": [1015]
+ },
+ {
+ "title": "Functions",
+ "kind": 64,
+ "children": [1053, 1040, 1047, 1066, 1057, 1063, 1060, 1070]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts",
+ "line": 4,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 343,
+ "name": "GoTrueApi",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 344,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 11,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 345,
+ "name": "new GoTrueApi",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 346,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 347,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 353,
+ "name": "cookieOptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 16,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 777,
+ "qualifiedName": "CookieOptions",
+ "package": "@supabase/gotrue-js",
+ "name": "CookieOptions"
+ }
+ },
+ {
+ "id": 354,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 17,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 355,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "signatures": [
+ {
+ "id": 356,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 357,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 358,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "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": 349,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 13,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 350,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 351,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 352,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 348,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 12,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [353, 354, 349, 348]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 343,
+ "qualifiedName": "GoTrueApi",
+ "package": "@supabase/gotrue-js",
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 370,
+ "name": "_createRequestHeaders",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods",
+ "tags": [
+ {
+ "tag": "param",
+ "text": "A valid, logged-in JWT.\n",
+ "param": "jwt"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 24,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 371,
+ "name": "cookieName",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 25,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 364,
+ "name": "cookieOptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 9,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 777,
+ "qualifiedName": "CookieOptions",
+ "package": "@supabase/gotrue-js",
+ "name": "CookieOptions"
+ }
+ },
+ {
+ "id": 365,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 10,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 366,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "signatures": [
+ {
+ "id": 367,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 368,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 369,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "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": 360,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 6,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 361,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 362,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 363,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 359,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 5,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 534,
+ "name": "createUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 251,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 535,
+ "name": "createUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Creates a new user.",
+ "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"
+ },
+ "parameters": [
+ {
+ "id": 536,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The data you want to create the user with.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 759,
+ "qualifiedName": "AdminUserAttributes",
+ "package": "@supabase/gotrue-js",
+ "name": "AdminUserAttributes"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 537,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 539,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 253,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 540,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 254,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ },
+ {
+ "id": 538,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 252,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [539, 540, 538]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 541,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 543,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 257,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ },
+ {
+ "id": 544,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 258,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 542,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 256,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [543, 544, 542]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 511,
+ "name": "deleteAuthCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 218,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 512,
+ "name": "deleteAuthCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Deletes the Auth Cookies and redirects to the"
+ },
+ "parameters": [
+ {
+ "id": 513,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The request object."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 514,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The response object."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 515,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Optionally specify a `redirectTo` URL in the options.\n"
+ },
+ "originalName": "__namedParameters",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 516,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 517,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 219,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [517]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ]
+ },
+ {
+ "id": 579,
+ "name": "deleteUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 315,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 580,
+ "name": "deleteUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Delete a user. Requires a `service_role` key.",
+ "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n"
+ },
+ "parameters": [
+ {
+ "id": 581,
+ "name": "uid",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The user uid you want to remove.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 582,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 584,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 317,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 585,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 318,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 583,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 316,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [584, 585, 583]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 522,
+ "name": "generateLink",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 236,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 523,
+ "name": "generateLink",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Generates links to be sent via email or other."
+ },
+ "parameters": [
+ {
+ "id": 524,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "signup"
+ },
+ {
+ "type": "literal",
+ "value": "magiclink"
+ },
+ {
+ "type": "literal",
+ "value": "recovery"
+ },
+ {
+ "type": "literal",
+ "value": "invite"
+ }
+ ]
+ }
+ },
+ {
+ "id": 525,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 526,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 527,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 529,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 238,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 528,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 237,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 530,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 239,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [529, 528, 530]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 531,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 532,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 241,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 533,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 242,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [532, 533]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 518,
+ "name": "getAuthCookieString",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 227,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 519,
+ "name": "getAuthCookieString",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Helper method to generate the Auth Cookie string for you in case you can't use `setAuthCookie`.",
+ "returns": "The Cookie string that needs to be set as the value for the `Set-Cookie` header.\n"
+ },
+ "parameters": [
+ {
+ "id": 520,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The request object."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 521,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The response object."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 372,
+ "name": "getUrlForProvider",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 32,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 373,
+ "name": "getUrlForProvider",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Generates the relevant login URL for a third-party provider."
+ },
+ "parameters": [
+ {
+ "id": 374,
+ "name": "provider",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "One of the providers supported by GoTrue."
+ },
+ "type": {
+ "type": "reference",
+ "id": 735,
+ "qualifiedName": "Provider",
+ "package": "@supabase/gotrue-js",
+ "name": "Provider"
+ }
+ },
+ {
+ "id": 375,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 376,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 379,
+ "name": "queryParams",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 35,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 380,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 381,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 382,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 377,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 33,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 378,
+ "name": "scopes",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 34,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [379, 377, 378]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "id": 586,
+ "name": "getUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 329,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 587,
+ "name": "getUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Gets the current user details.",
+ "text": "This method is called by the GoTrueClient `update` where\nthe jwt is set to this.currentSession.access_token\nand therefore, acts like getting the currently authenticated user\n"
+ },
+ "parameters": [
+ {
+ "id": 588,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "A valid, logged-in JWT. Typically, the access_token for the currentSession\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 589,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 591,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 331,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 592,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 332,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 590,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 330,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [591, 592, 590]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 562,
+ "name": "getUserByCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 290,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 563,
+ "name": "getUserByCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ },
+ "parameters": [
+ {
+ "id": 564,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 565,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 566,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 569,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 293,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 570,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 294,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 567,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 291,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 568,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 292,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [569, 570, 567, 568]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 553,
+ "name": "getUserById",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 279,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 554,
+ "name": "getUserById",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Get user by id."
+ },
+ "parameters": [
+ {
+ "id": 555,
+ "name": "uid",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "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": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 556,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 557,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 280,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 558,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 281,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [557, 558]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 559,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 560,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 283,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ },
+ {
+ "id": 561,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 284,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [560, 561]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 480,
+ "name": "inviteUserByEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 177,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 481,
+ "name": "inviteUserByEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Sends an invite link to an email address."
+ },
+ "parameters": [
+ {
+ "id": 482,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 483,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 484,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 486,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 179,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 485,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 178,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [486, 485]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 487,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 488,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 181,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 489,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 182,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [488, 489]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 545,
+ "name": "listUsers",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 265,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 546,
+ "name": "listUsers",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "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.\n"
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 547,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 548,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 266,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ },
+ {
+ "id": 549,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 267,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [548, 549]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 550,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 551,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 269,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ }
+ },
+ {
+ "id": 552,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 270,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": null
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [551, 552]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 501,
+ "name": "refreshAccessToken",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 201,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 502,
+ "name": "refreshAccessToken",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Generates a new JWT."
+ },
+ "parameters": [
+ {
+ "id": 503,
+ "name": "refreshToken",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "A valid refresh token that was returned on login.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 504,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 505,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 202,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 506,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 203,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [505, 506]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 490,
+ "name": "resetPasswordForEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 190,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 491,
+ "name": "resetPasswordForEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Sends a reset request to an email address."
+ },
+ "parameters": [
+ {
+ "id": 492,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 493,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 494,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 496,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 192,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 495,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 191,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [496, 495]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 497,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 498,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 194,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 499,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ }
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 500,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 195,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [498, 500]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 433,
+ "name": "sendMagicLinkEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 117,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 434,
+ "name": "sendMagicLinkEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Sends a magic login link to an email address."
+ },
+ "parameters": [
+ {
+ "id": 435,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 436,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 437,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 440,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 120,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 439,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 119,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 438,
+ "name": "shouldCreateUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 118,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [440, 439, 438]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 441,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 442,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 122,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 443,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ }
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 444,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 123,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [442, 444]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 445,
+ "name": "sendMobileOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 131,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 446,
+ "name": "sendMobileOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist"
+ },
+ "parameters": [
+ {
+ "id": 447,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The user's phone number WITH international prefix"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 448,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 449,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 451,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 133,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 450,
+ "name": "shouldCreateUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 132,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [451, 450]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 452,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 453,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 135,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 454,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ }
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 455,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 136,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [453, 455]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 507,
+ "name": "setAuthCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 211,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 508,
+ "name": "setAuthCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ },
+ "parameters": [
+ {
+ "id": 509,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The request object."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 510,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The response object.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 395,
+ "name": "signInWithEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 65,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 396,
+ "name": "signInWithEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Logs in an existing user using their email address."
+ },
+ "parameters": [
+ {
+ "id": 397,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 398,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 399,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 400,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 402,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 67,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 401,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 66,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [402, 401]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 403,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 404,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 69,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 405,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 70,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [404, 405]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 427,
+ "name": "signInWithOpenIDConnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 106,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 428,
+ "name": "signInWithOpenIDConnect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Logs in an OpenID Connect user using their id_token."
+ },
+ "parameters": [
+ {
+ "id": 429,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 803,
+ "qualifiedName": "OpenIDConnectCredentials",
+ "package": "@supabase/gotrue-js",
+ "name": "OpenIDConnectCredentials"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 430,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 431,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 107,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 432,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 108,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [431, 432]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 417,
+ "name": "signInWithPhone",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 92,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 418,
+ "name": "signInWithPhone",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Logs in an existing user using their phone number and password."
+ },
+ "parameters": [
+ {
+ "id": 419,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The phone number of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 420,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 421,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 422,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 423,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 93,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [423]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 424,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 425,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 95,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 426,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 96,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [425, 426]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 456,
+ "name": "signOut",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 142,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 457,
+ "name": "signOut",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Removes a logged-in session."
+ },
+ "parameters": [
+ {
+ "id": 458,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "A valid, logged-in JWT.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 459,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 460,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 143,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [460]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 383,
+ "name": "signUpWithEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 50,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 384,
+ "name": "signUpWithEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Creates a new user using their email address.",
+ "returns": "A logged-in session if the server has \"autoconfirm\" ON"
+ },
+ "parameters": [
+ {
+ "id": 385,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 386,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 387,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 388,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 391,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 53,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 390,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 52,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 389,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 51,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [391, 390, 389]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 392,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 393,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 55,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 394,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 56,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [393, 394]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 406,
+ "name": "signUpWithPhone",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 79,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 407,
+ "name": "signUpWithPhone",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Signs up a new user using their phone number and a password."
+ },
+ "parameters": [
+ {
+ "id": 408,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The phone number of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 409,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 410,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 411,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 413,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 81,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 412,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 80,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [413, 412]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 414,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 415,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 83,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 416,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 84,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [415, 416]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 593,
+ "name": "updateUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 339,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 594,
+ "name": "updateUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Updates the user data."
+ },
+ "parameters": [
+ {
+ "id": 595,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "A valid, logged-in JWT."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 596,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The data you want to update.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 753,
+ "qualifiedName": "UserAttributes",
+ "package": "@supabase/gotrue-js",
+ "name": "UserAttributes"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 597,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 599,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 341,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 600,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 342,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 598,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 340,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [599, 600, 598]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 571,
+ "name": "updateUserById",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 303,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 572,
+ "name": "updateUserById",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Updates the user data."
+ },
+ "parameters": [
+ {
+ "id": 573,
+ "name": "uid",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 574,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "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": 759,
+ "qualifiedName": "AdminUserAttributes",
+ "package": "@supabase/gotrue-js",
+ "name": "AdminUserAttributes"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 575,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 577,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 305,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 578,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 306,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 576,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 304,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [577, 578, 576]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 461,
+ "name": "verifyMobileOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 151,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 462,
+ "name": "verifyMobileOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `verifyOTP` instead!"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 463,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The user's phone number WITH international prefix"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 464,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "token that user was sent to their mobile phone"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 465,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 466,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 467,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 152,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [467]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 468,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 469,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 154,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 470,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 155,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [469, 470]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 471,
+ "name": "verifyOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 165,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 472,
+ "name": "verifyOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Send User supplied Email / Mobile OTP to be verified"
+ },
+ "parameters": [
+ {
+ "id": 473,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 790,
+ "qualifiedName": "VerifyOTPParams",
+ "package": "@supabase/gotrue-js",
+ "name": "VerifyOTPParams"
+ }
+ },
+ {
+ "id": 474,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 475,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 476,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 166,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [476]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 477,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 478,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 168,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 479,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 169,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [478, 479]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [344]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [370, 371, 364, 365, 360, 359]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 534, 511, 579, 522, 518, 372, 586, 562, 553, 480, 545, 501, 490, 433, 445, 507, 395,
+ 427, 417, 456, 383, 406, 593, 571, 461, 471
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts",
+ "line": 4,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 601,
+ "name": "GoTrueClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 602,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 37,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 603,
+ "name": "new GoTrueClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Create a new client for use in the browser."
+ },
+ "parameters": [
+ {
+ "id": 604,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 605,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 612,
+ "name": "autoRefreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set to \"true\" if you want to automatically refresh the token before expiring."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 43,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 616,
+ "name": "cookieOptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {},
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 47,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 777,
+ "qualifiedName": "CookieOptions",
+ "package": "@supabase/gotrue-js",
+ "name": "CookieOptions"
+ }
+ },
+ {
+ "id": 611,
+ "name": "detectSessionInUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 42,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 617,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 48,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 618,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "signatures": [
+ {
+ "id": 619,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "A custom fetch implementation.\n"
+ },
+ "parameters": [
+ {
+ "id": 620,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 621,
+ "name": "init",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "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": 607,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Any additional headers to send to the GoTrue server."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 39,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 608,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 609,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 610,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 614,
+ "name": "localStorage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Provide your own local storage implementation to use instead of the browser's local storage."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 45,
+ "character": 8
+ }
+ ],
+ "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"
+ }
+ ],
+ "qualifiedName": "PromisifyMethods",
+ "package": "@supabase/gotrue-js",
+ "name": "PromisifyMethods"
+ }
+ },
+ {
+ "id": 615,
+ "name": "multiTab",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set to \"false\" if you want to disable multi-tab/window events."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 46,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 613,
+ "name": "persistSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Set to \"true\" if you want to automatically save the user session into local storage."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 44,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 606,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The URL of the GoTrue server."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 38,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [612, 616, 611, 617, 607, 614, 615, 613, 606]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 601,
+ "qualifiedName": "GoTrueClient",
+ "package": "@supabase/gotrue-js",
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 727,
+ "name": "_callRefreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 190,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 721,
+ "name": "_handleEmailSignIn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 176,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 724,
+ "name": "_handleOpenIDConnectSignIn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 179,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 722,
+ "name": "_handlePhoneSignIn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 177,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 723,
+ "name": "_handleProviderSignIn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 178,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 734,
+ "name": "_handleVisibilityChange",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 208,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 733,
+ "name": "_listenForMultiTabEvents",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Listens for changes to LocalStorage and updates the current session."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 207,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 728,
+ "name": "_notifyAllSubscribers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 191,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 730,
+ "name": "_persistSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 197,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 726,
+ "name": "_recoverAndRefresh",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 189,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 725,
+ "name": "_recoverSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 184,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 731,
+ "name": "_removeSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 198,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 729,
+ "name": "_saveSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible"
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 196,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 732,
+ "name": "_startAutoRefreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Clear and re-create refresh token timer",
+ "tags": [
+ {
+ "tag": "param",
+ "text": "time intervals in milliseconds\n",
+ "param": "value"
+ }
+ ]
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 203,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 622,
+ "name": "api",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 9,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 343,
+ "qualifiedName": "GoTrueApi",
+ "package": "@supabase/gotrue-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 625,
+ "name": "autoRefreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 18,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 624,
+ "name": "currentSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The session object for the currently logged in user or null."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 17,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 623,
+ "name": "currentUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The currently logged in user or null."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 13,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 627,
+ "name": "localStorage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 20,
+ "character": 14
+ }
+ ],
+ "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"
+ }
+ ],
+ "qualifiedName": "PromisifyMethods",
+ "package": "@supabase/gotrue-js",
+ "name": "PromisifyMethods"
+ }
+ },
+ {
+ "id": 628,
+ "name": "multiTab",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 21,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 631,
+ "name": "networkRetries",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 24,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 626,
+ "name": "persistSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 19,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 630,
+ "name": "refreshTokenTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 23,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "global.NodeJS.Timeout",
+ "package": "@types/node",
+ "name": "Timeout"
+ }
+ },
+ {
+ "id": 629,
+ "name": "stateChangeEmitters",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 22,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ {
+ "type": "reference",
+ "id": 769,
+ "qualifiedName": "Subscription",
+ "package": "@supabase/gotrue-js",
+ "name": "Subscription"
+ }
+ ],
+ "qualifiedName": "Map",
+ "package": "typescript",
+ "name": "Map"
+ }
+ },
+ {
+ "id": 699,
+ "name": "getSessionFromUrl",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 153,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 700,
+ "name": "getSessionFromUrl",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Gets the session data from a URL string"
+ },
+ "parameters": [
+ {
+ "id": 701,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 702,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 703,
+ "name": "storeSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Optionally store the session in the browser\n"
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 154,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [703]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 704,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 705,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 156,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 706,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 157,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [705, 706]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 711,
+ "name": "onAuthStateChange",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 172,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 712,
+ "name": "onAuthStateChange",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Receive a notification every time an auth event happens.",
+ "returns": "A subscription object which can be used to unsubscribe itself.\n"
+ },
+ "parameters": [
+ {
+ "id": 713,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 714,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "signatures": [
+ {
+ "id": 715,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 716,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 736,
+ "qualifiedName": "AuthChangeEvent",
+ "package": "@supabase/gotrue-js",
+ "name": "AuthChangeEvent"
+ }
+ },
+ {
+ "id": 717,
+ "name": "session",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 718,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 719,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 173,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 769,
+ "qualifiedName": "Subscription",
+ "package": "@supabase/gotrue-js",
+ "name": "Subscription"
+ }
+ ]
+ }
+ },
+ {
+ "id": 720,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 174,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [719, 720]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 677,
+ "name": "refreshSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 123,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 678,
+ "name": "refreshSession",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Force refreshes the session including the user data in case it was updated in a different session."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 679,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 680,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 124,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 682,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 126,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 681,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 125,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [680, 682, 681]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 675,
+ "name": "session",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 119,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 676,
+ "name": "session",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Returns the session data, if there is an active session."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 696,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 148,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 697,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests."
+ },
+ "parameters": [
+ {
+ "id": 698,
+ "name": "access_token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "a jwt access token\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ }
+ ]
+ },
+ {
+ "id": 690,
+ "name": "setSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 140,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 691,
+ "name": "setSession",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Sets the session data from refresh_token and returns current Session and Error"
+ },
+ "parameters": [
+ {
+ "id": 692,
+ "name": "refresh_token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "a JWT token\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 693,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 695,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 142,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 694,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 141,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [695, 694]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 644,
+ "name": "signIn",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 80,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 645,
+ "name": "signIn",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Log in an existing user, or login via a third-party provider."
+ },
+ "parameters": [
+ {
+ "id": 646,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 783,
+ "qualifiedName": "UserCredentials",
+ "package": "@supabase/gotrue-js",
+ "name": "UserCredentials"
+ }
+ },
+ {
+ "id": 647,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 648,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 652,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 84,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 653,
+ "name": "queryParams",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 85,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 654,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 655,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 656,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 649,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 81,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 651,
+ "name": "scopes",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 83,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 650,
+ "name": "shouldCreateUser",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 82,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [652, 653, 649, 651, 650]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 657,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 662,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 93,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 660,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 91,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 735,
+ "qualifiedName": "Provider",
+ "package": "@supabase/gotrue-js",
+ "name": "Provider"
+ }
+ },
+ {
+ "id": 658,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 89,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 661,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 92,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 659,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 90,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [662, 660, 658, 661, 659]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 707,
+ "name": "signOut",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 165,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 708,
+ "name": "signOut",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "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)`. There is no way to revoke a user's session JWT before it automatically expires\n"
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 709,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 710,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 166,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [710]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 632,
+ "name": "signUp",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 59,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 633,
+ "name": "signUp",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Creates a new user."
+ },
+ "parameters": [
+ {
+ "id": 634,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 783,
+ "qualifiedName": "UserCredentials",
+ "package": "@supabase/gotrue-js",
+ "name": "UserCredentials"
+ }
+ },
+ {
+ "id": 635,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 636,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 639,
+ "name": "captchaToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 62,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 638,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 61,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 637,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 60,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [639, 638, 637]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 640,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 643,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 66,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 642,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 65,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 641,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 64,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [643, 642, 641]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 683,
+ "name": "update",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 131,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 684,
+ "name": "update",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Updates user data, if there is a logged in user."
+ },
+ "parameters": [
+ {
+ "id": 685,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 753,
+ "qualifiedName": "UserAttributes",
+ "package": "@supabase/gotrue-js",
+ "name": "UserAttributes"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 686,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 687,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 132,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ },
+ {
+ "id": 689,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 134,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 688,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 133,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [687, 689, 688]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 673,
+ "name": "user",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 115,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 674,
+ "name": "user",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.",
+ "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n"
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 663,
+ "name": "verifyOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 103,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 664,
+ "name": "verifyOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Log in a user given a User supplied OTP received via mobile."
+ },
+ "parameters": [
+ {
+ "id": 665,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 790,
+ "qualifiedName": "VerifyOTPParams",
+ "package": "@supabase/gotrue-js",
+ "name": "VerifyOTPParams"
+ }
+ },
+ {
+ "id": 666,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 667,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 668,
+ "name": "redirectTo",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 104,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [668]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 669,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 672,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 108,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 737,
+ "qualifiedName": "ApiError",
+ "package": "@supabase/gotrue-js",
+ "name": "ApiError"
+ }
+ ]
+ }
+ },
+ {
+ "id": 671,
+ "name": "session",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 107,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ },
+ {
+ "id": 670,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 106,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [672, 671, 670]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [602]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 727, 721, 724, 722, 723, 734, 733, 728, 730, 726, 725, 731, 729, 732, 622, 625, 624,
+ 623, 627, 628, 631, 626, 630, 629
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [699, 711, 677, 675, 696, 690, 644, 707, 632, 683, 673, 663]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 4,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 810,
+ "name": "RealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 811,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 77,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 812,
+ "name": "new RealtimeClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Initializes the Socket."
+ },
+ "parameters": [
+ {
+ "id": 813,
+ "name": "endPoint",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": 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": 814,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 909,
+ "qualifiedName": "Options",
+ "package": "@supabase/realtime-js",
+ "name": "Options"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 810,
+ "qualifiedName": "RealtimeClient",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 906,
+ "name": "_appendParams",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 180,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 907,
+ "name": "_flushSendBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 181,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 903,
+ "name": "_onConnClose",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 177,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 904,
+ "name": "_onConnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 178,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 902,
+ "name": "_onConnOpen",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 176,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 908,
+ "name": "_sendHeartbeat",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 182,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 905,
+ "name": "_triggerChanError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 179,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 815,
+ "name": "accessToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 32,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 816,
+ "name": "channels",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 33,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ },
+ {
+ "id": 838,
+ "name": "conn",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 53,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ ]
+ }
+ },
+ {
+ "id": 836,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 51,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 835,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 50,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 817,
+ "name": "endPoint",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 34,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 818,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 35,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 819,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 820,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 821,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 828,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 43,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 830,
+ "name": "heartbeatTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 45,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "global.NodeJS.Timer",
+ "package": "@types/node",
+ "name": "Timer"
+ }
+ ]
+ }
+ },
+ {
+ "id": 834,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 49,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 829,
+ "name": "longpollerTimeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 44,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 822,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 38,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 823,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 824,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 825,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 831,
+ "name": "pendingHeartbeatRef",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 46,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 837,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 52,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 833,
+ "name": "reconnectTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 48,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Timer",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 832,
+ "name": "ref",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 47,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 839,
+ "name": "sendBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 54,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 840,
+ "name": "serializer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 55,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Serializer",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 841,
+ "name": "stateChangeCallbacks",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 56,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 842,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 844,
+ "name": "close",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 58,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 845,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 59,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 846,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 60,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ },
+ {
+ "id": 843,
+ "name": "open",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 57,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [844, 845, 846, 843]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 826,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 41,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 827,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 42,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 880,
+ "name": "channel",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 148,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 881,
+ "name": "channel",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 882,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 883,
+ "name": "chanParams",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "ChannelParams",
+ "package": "@supabase/realtime-js",
+ "name": "ChannelParams"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 847,
+ "name": "connect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 81,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 848,
+ "name": "connect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Connects the socket, unless already connected."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 873,
+ "name": "connectionState",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 137,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 874,
+ "name": "connectionState",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Returns the current state of the socket."
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "CONNECTION_STATE",
+ "package": "@supabase/realtime-js",
+ "name": "CONNECTION_STATE"
+ }
+ }
+ ]
+ },
+ {
+ "id": 849,
+ "name": "disconnect",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 88,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 850,
+ "name": "disconnect",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Disconnects the socket."
+ },
+ "parameters": [
+ {
+ "id": 851,
+ "name": "code",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A numeric status code to send on disconnect."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 852,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom reason for the disconnect.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 853,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 855,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 90,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 854,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 89,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "Error",
+ "package": "typescript",
+ "name": "Error"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [855, 854]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 892,
+ "name": "endPointURL",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 161,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 893,
+ "name": "endPointURL",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Returns the URL of the websocket."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "id": 875,
+ "name": "isConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 141,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 876,
+ "name": "isConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Retuns `true` is the connection is open."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 899,
+ "name": "leaveOpenTopic",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 175,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 900,
+ "name": "leaveOpenTopic",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Unsubscribe from channels with the specified topic."
+ },
+ "parameters": [
+ {
+ "id": 901,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 856,
+ "name": "log",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 97,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 857,
+ "name": "log",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Logs the message.",
+ "text": "For customized logging, `this.logger` can be overriden.\n"
+ },
+ "parameters": [
+ {
+ "id": 858,
+ "name": "kind",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 859,
+ "name": "msg",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 860,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 894,
+ "name": "makeRef",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 165,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 895,
+ "name": "makeRef",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Return the next message ref, accounting for overflows"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "id": 864,
+ "name": "onClose",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 115,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 865,
+ "name": "onClose",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Registers a callback for connection state change events.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "\n socket.onOpen(() => console.log(\"Socket closed.\"))\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 866,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "A function to be called when the event occurs.\n"
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 887,
+ "name": "onConnMessage",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 155,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 888,
+ "name": "onConnMessage",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 889,
+ "name": "rawMessage",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 890,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 891,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 156,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [891]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 867,
+ "name": "onError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 124,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 868,
+ "name": "onError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Registers a callback for connection state change events.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 869,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "A function to be called when the event occurs.\n"
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 870,
+ "name": "onMessage",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 133,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 871,
+ "name": "onMessage",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Calls a function any time a message is received.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "\n socket.onMessage((message) => console.log(message))\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 872,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "A function to be called when the event occurs.\n"
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 861,
+ "name": "onOpen",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 106,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 862,
+ "name": "onOpen",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Registers a callback for connection state change event.",
+ "tags": [
+ {
+ "tag": "example",
+ "text": "\n socket.onOpen(() => console.log(\"Socket opened.\"))\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 863,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "A function to be called when the event occurs.\n"
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 884,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 154,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 885,
+ "name": "push",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "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": 886,
+ "name": "data",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Message",
+ "package": "@supabase/realtime-js",
+ "name": "Message"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 877,
+ "name": "remove",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 147,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 878,
+ "name": "remove",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Removes a subscription from the socket."
+ },
+ "parameters": [
+ {
+ "id": 879,
+ "name": "channel",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "An open subscription.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 896,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 171,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 897,
+ "name": "setAuth",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS."
+ },
+ "parameters": [
+ {
+ "id": 898,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "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": [811]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 906, 907, 903, 904, 902, 908, 905, 815, 816, 838, 836, 835, 817, 818, 828, 830, 834,
+ 829, 822, 831, 837, 833, 832, 839, 840, 841, 826, 827
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 880, 847, 873, 849, 892, 875, 899, 856, 894, 864, 887, 867, 870, 861, 884, 877, 896
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 31,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 927,
+ "name": "RealtimeSubscription",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 928,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 18,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 929,
+ "name": "new RealtimeSubscription",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 930,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 931,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 932,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 933,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 934,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 935,
+ "name": "socket",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 810,
+ "qualifiedName": "RealtimeClient",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 942,
+ "name": "bindings",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 11,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ },
+ {
+ "id": 946,
+ "name": "joinPush",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 15,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Push",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 945,
+ "name": "joinedOnce",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 14,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 937,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 7,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 938,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 939,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 940,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 948,
+ "name": "pushBuffer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 17,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "qualifiedName": "Push",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ },
+ {
+ "id": 947,
+ "name": "rejoinTimer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 16,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Timer",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 941,
+ "name": "socket",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 10,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 810,
+ "qualifiedName": "RealtimeClient",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 944,
+ "name": "state",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 13,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "CHANNEL_STATES",
+ "package": "@supabase/realtime-js",
+ "name": "CHANNEL_STATES"
+ }
+ },
+ {
+ "id": 943,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 12,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 936,
+ "name": "topic",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 6,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 967,
+ "name": "canPush",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 27,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 968,
+ "name": "canPush",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1004,
+ "name": "isClosed",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 54,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1005,
+ "name": "isClosed",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1006,
+ "name": "isErrored",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 55,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1007,
+ "name": "isErrored",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1008,
+ "name": "isJoined",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 56,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1009,
+ "name": "isJoined",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1010,
+ "name": "isJoining",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 57,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1011,
+ "name": "isJoining",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1012,
+ "name": "isLeaving",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 58,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1013,
+ "name": "isLeaving",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 988,
+ "name": "isMember",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 49,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 989,
+ "name": "isMember",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 990,
+ "name": "topic",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 991,
+ "name": "joinRef",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 50,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 992,
+ "name": "joinRef",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "id": 964,
+ "name": "off",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 26,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 965,
+ "name": "off",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 966,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 960,
+ "name": "on",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 25,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 961,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 962,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 963,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 954,
+ "name": "onClose",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 955,
+ "name": "onClose",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 956,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 957,
+ "name": "onError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 24,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 958,
+ "name": "onError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 959,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 983,
+ "name": "onMessage",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 48,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 984,
+ "name": "onMessage",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Overridable message hook",
+ "text": "Receives all events for specialized message handling before dispatching to the channel callbacks.\nMust return the payload, modified or unmodified.\n"
+ },
+ "parameters": [
+ {
+ "id": 985,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 986,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 987,
+ "name": "ref",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ]
+ },
+ {
+ "id": 969,
+ "name": "push",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 28,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 970,
+ "name": "push",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 971,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "CHANNEL_EVENTS",
+ "package": "@supabase/realtime-js",
+ "name": "CHANNEL_EVENTS"
+ }
+ },
+ {
+ "id": 972,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 973,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Push",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 993,
+ "name": "rejoin",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 51,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 994,
+ "name": "rejoin",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 995,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 949,
+ "name": "rejoinUntilConnected",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 21,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 950,
+ "name": "rejoinUntilConnected",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 1001,
+ "name": "replyEventName",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 53,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 1002,
+ "name": "replyEventName",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 1003,
+ "name": "ref",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "id": 951,
+ "name": "subscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 22,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 952,
+ "name": "subscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 953,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Push",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 996,
+ "name": "trigger",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 52,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 997,
+ "name": "trigger",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 998,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 999,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 1000,
+ "name": "ref",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 980,
+ "name": "unsubscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 41,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 981,
+ "name": "unsubscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "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": 982,
+ "name": "timeout",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Push",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 974,
+ "name": "updateJoinPayload",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 29,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 975,
+ "name": "updateJoinPayload",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 976,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 977,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 978,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 979,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "unknown"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [928]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [942, 946, 945, 937, 948, 947, 941, 944, 943, 936]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 967, 1004, 1006, 1008, 1010, 1012, 988, 991, 964, 960, 954, 957, 983, 969, 993, 949,
+ 1001, 951, 996, 980, 974
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts",
+ "line": 5,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 214,
+ "name": "SupabaseClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "comment": {
+ "shortText": "Supabase Client.",
+ "text": "An isomorphic Javascript client for interacting with Postgres.\n"
+ },
+ "children": [
+ {
+ "id": 215,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 61,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 216,
+ "name": "new SupabaseClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Create a new client for use in the browser."
+ },
+ "parameters": [
+ {
+ "id": 217,
+ "name": "supabaseUrl",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The unique Supabase URL which is supplied when you create a new project in your project dashboard."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 218,
+ "name": "supabaseKey",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The unique Supabase Key which is supplied when you create a new project in your project dashboard."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 219,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 176,
+ "name": "SupabaseClientOptions"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 214,
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 220,
+ "name": "auth",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "Supabase Auth allows you to create and manage user sessions for access to data that is secured by access policies."
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 30,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "SupabaseAuthClient"
+ }
+ },
+ {
+ "id": 224,
+ "name": "authUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 35,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 234,
+ "name": "changedAccessToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 41,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 229,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 40,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 230,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 231,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 232,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 233,
+ "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": 226,
+ "name": "functionsUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 37,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 236,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 44,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 237,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 238,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 239,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 228,
+ "name": "multiTab",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 39,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 227,
+ "name": "realtime",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 38,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 810,
+ "qualifiedName": "RealtimeClient",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 223,
+ "name": "realtimeUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 34,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 222,
+ "name": "restUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 33,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 221,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 32,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 235,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 42,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 225,
+ "name": "storageUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 36,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 241,
+ "name": "supabaseKey",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 240,
+ "name": "supabaseUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 242,
+ "name": "functions",
+ "kind": 262144,
+ "kindString": "Accessor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 106,
+ "character": 6
+ }
+ ],
+ "getSignature": [
+ {
+ "id": 243,
+ "name": "functions",
+ "kind": 524288,
+ "kindString": "Get signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Supabase Functions allows you to deploy and invoke edge functions."
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "FunctionsClient",
+ "package": "@supabase/functions-js",
+ "name": "FunctionsClient"
+ }
+ }
+ ]
+ },
+ {
+ "id": 244,
+ "name": "storage",
+ "kind": 262144,
+ "kindString": "Accessor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 116,
+ "character": 6
+ }
+ ],
+ "getSignature": [
+ {
+ "id": 245,
+ "name": "storage",
+ "kind": 524288,
+ "kindString": "Get signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Supabase Storage allows you to manage user-generated content, such as photos or videos."
+ },
+ "type": {
+ "type": "reference",
+ "qualifiedName": "StorageClient",
+ "package": "@supabase/storage-js",
+ "name": "StorageClient"
+ }
+ }
+ ]
+ },
+ {
+ "id": 274,
+ "name": "_closeSubscription",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 194,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 275,
+ "name": "_closeSubscription",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 276,
+ "name": "subscription",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 277,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 278,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 196,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "Error",
+ "package": "typescript",
+ "name": "Error"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [278]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 294,
+ "name": "_getAuthHeaders",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 271,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 295,
+ "name": "_getAuthHeaders",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 171,
+ "name": "GenericObject"
+ }
+ }
+ ]
+ },
+ {
+ "id": 300,
+ "name": "_handleTokenChanged",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 313,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 301,
+ "name": "_handleTokenChanged",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 302,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 736,
+ "qualifiedName": "AuthChangeEvent",
+ "package": "@supabase/gotrue-js",
+ "name": "AuthChangeEvent"
+ }
+ },
+ {
+ "id": 303,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 304,
+ "name": "source",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "CLIENT"
+ },
+ {
+ "type": "literal",
+ "value": "STORAGE"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 292,
+ "name": "_initPostgRESTClient",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 262,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 293,
+ "name": "_initPostgRESTClient",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "PostgrestClient",
+ "package": "@supabase/postgrest-js",
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 289,
+ "name": "_initRealtimeClient",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 255,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 290,
+ "name": "_initRealtimeClient",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 291,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 909,
+ "qualifiedName": "Options",
+ "package": "@supabase/realtime-js",
+ "name": "Options"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 810,
+ "qualifiedName": "RealtimeClient",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ]
+ },
+ {
+ "id": 286,
+ "name": "_initSupabaseAuthClient",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 228,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 287,
+ "name": "_initSupabaseAuthClient",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 288,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 176,
+ "name": "SupabaseClientOptions"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "SupabaseAuthClient"
+ }
+ }
+ ]
+ },
+ {
+ "id": 298,
+ "name": "_listenForAuthEvents",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 306,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 299,
+ "name": "_listenForAuthEvents",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 769,
+ "qualifiedName": "Subscription",
+ "package": "@supabase/gotrue-js",
+ "name": "Subscription"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 296,
+ "name": "_listenForMultiTabEvents",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 279,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 297,
+ "name": "_listenForMultiTabEvents",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ ]
+ }
+ }
+ ]
+ },
+ {
+ "id": 279,
+ "name": "_unsubscribeSubscription",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 209,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 280,
+ "name": "_unsubscribeSubscription",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 281,
+ "name": "subscription",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 282,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 283,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 211,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "Error",
+ "package": "typescript",
+ "name": "Error"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [283]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 246,
+ "name": "from",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 125,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 247,
+ "name": "from",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Perform a table operation."
+ },
+ "typeParameter": [
+ {
+ "id": 248,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 249,
+ "name": "table",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The table name to operate on.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 8,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 248,
+ "name": "T"
+ }
+ ],
+ "name": "SupabaseQueryBuilder"
+ }
+ }
+ ]
+ },
+ {
+ "id": 284,
+ "name": "getSubscriptions",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 224,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 285,
+ "name": "getSubscriptions",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Returns an array of all your subscriptions."
+ },
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 259,
+ "name": "removeAllSubscriptions",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 162,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 260,
+ "name": "removeAllSubscriptions",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Closes and removes all subscriptions and returns a list of removed\nsubscriptions and their errors."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reflection",
+ "declaration": {
+ "id": 261,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 262,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 163,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 263,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 264,
+ "name": "subscription",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 163,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [264]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 265,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 163,
+ "character": 52
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "Error",
+ "package": "typescript",
+ "name": "Error"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [262, 265]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 266,
+ "name": "removeSubscription",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 182,
+ "character": 8
+ }
+ ],
+ "signatures": [
+ {
+ "id": 267,
+ "name": "removeSubscription",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Closes and removes a subscription and returns the number of open subscriptions."
+ },
+ "parameters": [
+ {
+ "id": 268,
+ "name": "subscription",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The subscription you want to close and remove.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 269,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 270,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 184,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 271,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 272,
+ "name": "openSubscriptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 184,
+ "character": 23
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [272]
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 273,
+ "name": "error",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 184,
+ "character": 52
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "Error",
+ "package": "typescript",
+ "name": "Error"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [270, 273]
+ }
+ ]
+ }
+ }
+ ],
+ "qualifiedName": "Promise",
+ "package": "typescript",
+ "name": "Promise"
+ }
+ }
+ ]
+ },
+ {
+ "id": 250,
+ "name": "rpc",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 146,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 251,
+ "name": "rpc",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Perform a function call."
+ },
+ "typeParameter": [
+ {
+ "id": 252,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {},
+ "default": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 253,
+ "name": "fn",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The function name to call."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 254,
+ "name": "params",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The parameters to pass to the function call."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 255,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 256,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 258,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 152,
+ "character": 25
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ }
+ },
+ {
+ "id": 257,
+ "name": "head",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 152,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [258, 257]
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 252,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestFilterBuilder",
+ "package": "@supabase/postgrest-js",
+ "name": "default"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [215]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 220, 224, 234, 229, 226, 236, 228, 227, 223, 222, 221, 235, 225, 241, 240
+ ]
+ },
+ {
+ "title": "Accessors",
+ "kind": 262144,
+ "children": [242, 244]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [274, 294, 300, 292, 289, 286, 298, 296, 279, 246, 284, 259, 266, 250]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 26,
+ "character": 21
+ }
+ ]
+ },
+ {
+ "id": 759,
+ "name": "AdminUserAttributes",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 761,
+ "name": "app_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object for app_metadata that.",
+ "text": "Only a service role can modify.\n\nCan be any JSON that includes app-specific info, such as identity providers, roles, and other\naccess control information.\n"
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 103,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 768,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 80,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 758,
+ "name": "UserAttributes.data"
+ }
+ },
+ {
+ "id": 764,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 64,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 754,
+ "name": "UserAttributes.email"
+ }
+ },
+ {
+ "id": 767,
+ "name": "email_change_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "An email change token."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 76,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 757,
+ "name": "UserAttributes.email_change_token"
+ }
+ },
+ {
+ "id": 762,
+ "name": "email_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Sets if a user has confirmed their email address.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 109,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 766,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 72,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 756,
+ "name": "UserAttributes.password"
+ }
+ },
+ {
+ "id": 765,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's phone."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 68,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 755,
+ "name": "UserAttributes.phone"
+ }
+ },
+ {
+ "id": 763,
+ "name": "phone_confirm",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Sets if a user has confirmed their phone number.",
+ "text": "Only a service role can modify.\n"
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 115,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 760,
+ "name": "user_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object for user_metadata.",
+ "text": "Can be any JSON.\n\nOnly a service role can modify.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's user_metadata,\nthis attribute is used instead of UserAttributes data.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 94,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [761, 768, 764, 767, 762, 766, 765, 763, 760]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 82,
+ "character": 17
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "id": 753,
+ "qualifiedName": "UserAttributes",
+ "package": "@supabase/gotrue-js",
+ "name": "UserAttributes"
+ }
+ ]
+ },
+ {
+ "id": 737,
+ "name": "ApiError",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 738,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 4,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 739,
+ "name": "status",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 5,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [738, 739]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 3,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 335,
+ "name": "AuthSession",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 337,
+ "name": "access_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 9,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 339,
+ "name": "expires_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 17,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 338,
+ "name": "expires_in",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 13,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 336,
+ "name": "provider_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 8,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 340,
+ "name": "refresh_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 18,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 341,
+ "name": "token_type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 342,
+ "name": "user",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 20,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 307,
+ "qualifiedName": "User",
+ "package": "@supabase/gotrue-js",
+ "name": "User"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [337, 339, 338, 336, 340, 341, 342]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 7,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 307,
+ "name": "AuthUser",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 324,
+ "name": "action_link",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 48,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 309,
+ "name": "app_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 35,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 310,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 311,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 36,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [311]
+ }
+ ],
+ "indexSignature": {
+ "id": 312,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 313,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 318,
+ "name": "aud",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 42,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 319,
+ "name": "confirmation_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 43,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 328,
+ "name": "confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 52,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 327,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 51,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 325,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 49,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 321,
+ "name": "email_change_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 45,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 329,
+ "name": "email_confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 53,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 308,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 34,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 334,
+ "name": "identities",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 58,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 741,
+ "qualifiedName": "UserIdentity",
+ "package": "@supabase/gotrue-js",
+ "name": "UserIdentity"
+ }
+ }
+ },
+ {
+ "id": 323,
+ "name": "invited_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 47,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 331,
+ "name": "last_sign_in_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 55,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 322,
+ "name": "new_email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 46,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 326,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 50,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 330,
+ "name": "phone_confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 54,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 320,
+ "name": "recovery_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 44,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 332,
+ "name": "role",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 56,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 333,
+ "name": "updated_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 57,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 314,
+ "name": "user_metadata",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 39,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 315,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 316,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 317,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 324, 309, 318, 319, 328, 327, 325, 321, 329, 308, 334, 323, 331, 322, 326, 330, 320,
+ 332, 333, 314
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 33,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 777,
+ "name": "CookieOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 780,
+ "name": "domain",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 134,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 779,
+ "name": "lifetime",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 133,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 778,
+ "name": "name",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 132,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 781,
+ "name": "path",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 135,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 782,
+ "name": "sameSite",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 136,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [780, 779, 778, 781, 782]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 131,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 803,
+ "name": "OpenIDConnectCredentials",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 807,
+ "name": "client_id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 165,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 804,
+ "name": "id_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 162,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 808,
+ "name": "issuer",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 166,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 805,
+ "name": "nonce",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 163,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 806,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 164,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 735,
+ "qualifiedName": "Provider",
+ "package": "@supabase/gotrue-js",
+ "name": "Provider"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [807, 804, 808, 805, 806]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 161,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 769,
+ "name": "Subscription",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 770,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The subscriber UUID. This will be set by the client."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 121,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 771,
+ "name": "callback",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 125,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 772,
+ "name": "callback",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The function to call every time there is an event. eg: (eventName) => {}"
+ },
+ "parameters": [
+ {
+ "id": 773,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 736,
+ "qualifiedName": "AuthChangeEvent",
+ "package": "@supabase/gotrue-js",
+ "name": "AuthChangeEvent"
+ }
+ },
+ {
+ "id": 774,
+ "name": "session",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 335,
+ "qualifiedName": "Session",
+ "package": "@supabase/gotrue-js",
+ "name": "Session"
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ },
+ {
+ "id": 775,
+ "name": "unsubscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 129,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 776,
+ "name": "unsubscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Call this to remove the listener."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [770]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [771, 775]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 117,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 753,
+ "name": "UserAttributes",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 758,
+ "name": "data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 80,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
+ },
+ {
+ "id": 754,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's email."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 64,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 757,
+ "name": "email_change_token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "An email change token."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 76,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 756,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 72,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 755,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The user's phone."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 68,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [758, 754, 757, 756, 755]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 60,
+ "character": 17
+ }
+ ],
+ "extendedBy": [
+ {
+ "type": "reference",
+ "id": 759,
+ "name": "AdminUserAttributes"
+ }
+ ]
+ },
+ {
+ "id": 783,
+ "name": "UserCredentials",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 784,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 139,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 789,
+ "name": "oidc",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 144,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 803,
+ "qualifiedName": "OpenIDConnectCredentials",
+ "package": "@supabase/gotrue-js",
+ "name": "OpenIDConnectCredentials"
+ }
+ },
+ {
+ "id": 786,
+ "name": "password",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 141,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 785,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 140,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 788,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 143,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 735,
+ "qualifiedName": "Provider",
+ "package": "@supabase/gotrue-js",
+ "name": "Provider"
+ }
+ },
+ {
+ "id": 787,
+ "name": "refreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 142,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [784, 789, 786, 785, 788, 787]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 138,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 741,
+ "name": "UserIdentity",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 749,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 29,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 742,
+ "name": "id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 23,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 744,
+ "name": "identity_data",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 25,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 745,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "indexSignature": {
+ "id": 746,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 747,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 750,
+ "name": "last_sign_in_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 30,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 748,
+ "name": "provider",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 28,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 751,
+ "name": "updated_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 31,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 743,
+ "name": "user_id",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 24,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [749, 742, 744, 750, 748, 751, 743]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 22,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 796,
+ "name": "VerifyEmailOTPParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 797,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 154,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 798,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 155,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ },
+ {
+ "id": 799,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 156,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 800,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 157,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 802,
+ "qualifiedName": "EmailOTPType",
+ "package": "@supabase/gotrue-js",
+ "name": "EmailOTPType"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [797, 798, 799, 800]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 153,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 791,
+ "name": "VerifyMobileOTPParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 792,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 148,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "undefined"
+ }
+ },
+ {
+ "id": 793,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 149,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 794,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 150,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 795,
+ "name": "type",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 151,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 801,
+ "qualifiedName": "MobileOTPType",
+ "package": "@supabase/gotrue-js",
+ "name": "MobileOTPType"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [792, 793, 794, 795]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 147,
+ "character": 17
+ }
+ ]
+ },
+ {
+ "id": 736,
+ "name": "AuthChangeEvent",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 2,
+ "character": 20
+ }
+ ],
+ "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": 802,
+ "name": "EmailOTPType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 160,
+ "character": 20
+ }
+ ],
+ "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"
+ }
+ ]
+ }
+ },
+ {
+ "id": 801,
+ "name": "MobileOTPType",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 159,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "sms"
+ },
+ {
+ "type": "literal",
+ "value": "phone_change"
+ }
+ ]
+ }
+ },
+ {
+ "id": 208,
+ "name": "PostgrestError",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Error format",
+ "text": "{@link https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes}\n"
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 7,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 209,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 213,
+ "name": "code",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 11,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 211,
+ "name": "details",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 9,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 212,
+ "name": "hint",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 10,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 210,
+ "name": "message",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 8,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [213, 211, 212, 210]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 7,
+ "character": 37
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 206,
+ "name": "PostgrestMaybeSingleResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 41,
+ "character": 20
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 207,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExternal": true
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 204,
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 207,
+ "qualifiedName": "T",
+ "package": "@supabase/postgrest-js",
+ "name": "T"
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "PostgrestSingleResponse",
+ "package": "@supabase/postgrest-js",
+ "name": "PostgrestSingleResponse"
+ }
+ },
+ {
+ "id": 202,
+ "name": "PostgrestResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 34,
+ "character": 20
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 203,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExternal": true
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 203,
+ "qualifiedName": "T",
+ "package": "@supabase/postgrest-js",
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestResponseSuccess",
+ "package": "@supabase/postgrest-js",
+ "name": "PostgrestResponseSuccess"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "PostgrestResponseFailure",
+ "package": "@supabase/postgrest-js",
+ "name": "PostgrestResponseFailure"
+ }
+ ]
+ }
+ },
+ {
+ "id": 204,
+ "name": "PostgrestSingleResponse",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 40,
+ "character": 20
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 205,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExternal": true
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 205,
+ "qualifiedName": "T",
+ "package": "@supabase/postgrest-js",
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestSingleResponseSuccess",
+ "package": "@supabase/postgrest-js",
+ "name": "PostgrestSingleResponseSuccess"
+ },
+ {
+ "type": "reference",
+ "qualifiedName": "PostgrestResponseFailure",
+ "package": "@supabase/postgrest-js",
+ "name": "PostgrestResponseFailure"
+ }
+ ]
+ }
+ },
+ {
+ "id": 735,
+ "name": "Provider",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 1,
+ "character": 20
+ }
+ ],
+ "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": 909,
+ "name": "RealtimeClientOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 5,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 910,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 917,
+ "name": "decode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 12,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 916,
+ "name": "encode",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 11,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 919,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 14,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 920,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 14,
+ "character": 14
+ }
+ ],
+ "indexSignature": {
+ "id": 921,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 922,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 913,
+ "name": "heartbeatIntervalMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 8,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 915,
+ "name": "logger",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 10,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 914,
+ "name": "longpollerTimeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 9,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 923,
+ "name": "params",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 17,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 924,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 17,
+ "character": 13
+ }
+ ],
+ "indexSignature": {
+ "id": 925,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 926,
+ "name": "key",
+ "kind": 32768,
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 918,
+ "name": "reconnectAfterMs",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 13,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ }
+ },
+ {
+ "id": 912,
+ "name": "timeout",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 7,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "number"
+ }
+ },
+ {
+ "id": 911,
+ "name": "transport",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 6,
+ "character": 4
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "WebSocket",
+ "package": "typescript",
+ "name": "WebSocket"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [917, 916, 919, 913, 915, 914, 923, 918, 912, 911]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts",
+ "line": 5,
+ "character": 30
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 809,
+ "name": "SupportedStorage",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 173,
+ "character": 20
+ }
+ ],
+ "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"
+ }
+ ],
+ "qualifiedName": "PromisifyMethods",
+ "package": "@supabase/gotrue-js",
+ "name": "PromisifyMethods"
+ }
+ },
+ {
+ "id": 790,
+ "name": "VerifyOTPParams",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts",
+ "line": 146,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 791,
+ "qualifiedName": "VerifyMobileOTPParams",
+ "package": "@supabase/gotrue-js",
+ "name": "VerifyMobileOTPParams"
+ },
+ {
+ "type": "reference",
+ "id": 796,
+ "qualifiedName": "VerifyEmailOTPParams",
+ "package": "@supabase/gotrue-js",
+ "name": "VerifyEmailOTPParams"
+ }
+ ]
+ }
+ },
+ {
+ "id": 2,
+ "name": "createClient",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 16,
+ "character": 6
+ }
+ ],
+ "signatures": [
+ {
+ "id": 3,
+ "name": "createClient",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Creates a new Supabase Client."
+ },
+ "parameters": [
+ {
+ "id": 4,
+ "name": "supabaseUrl",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 5,
+ "name": "supabaseKey",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 6,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isOptional": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 176,
+ "name": "SupabaseClientOptions"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 214,
+ "name": "default"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "References",
+ "kind": 16777216,
+ "children": [740, 305, 306, 752]
+ },
+ {
+ "title": "Namespaces",
+ "kind": 4,
+ "children": [1014]
+ },
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [343, 601, 810, 927, 214]
+ },
+ {
+ "title": "Interfaces",
+ "kind": 256,
+ "children": [759, 737, 335, 307, 777, 803, 769, 753, 783, 741, 796, 791]
+ },
+ {
+ "title": "Type aliases",
+ "kind": 4194304,
+ "children": [736, 802, 801, 208, 206, 202, 204, 735, 909, 809, 790]
+ },
+ {
+ "title": "Functions",
+ "kind": 64,
+ "children": [2]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/index.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 7,
+ "name": "lib/SupabaseQueryBuilder",
+ "kind": 2,
+ "kindString": "Module",
+ "flags": {},
+ "children": [
+ {
+ "id": 8,
+ "name": "SupabaseQueryBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 9,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 13,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 10,
+ "name": "new SupabaseQueryBuilder",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "typeParameter": [
+ {
+ "id": 11,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "parameters": [
+ {
+ "id": 12,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 13,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 14,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 19,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 27,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 20,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 21,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 22,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 23,
+ "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": 15,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 23,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 171,
+ "name": "GenericObject"
+ }
+ },
+ {
+ "id": 17,
+ "name": "realtime",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 25,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 810,
+ "qualifiedName": "RealtimeClient",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 16,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 24,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 24,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 28,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 18,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 26,
+ "character": 6
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [19, 15, 17, 16, 24, 18]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 8,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "name": "SupabaseQueryBuilder"
+ },
+ "overwrites": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder<T>.constructor"
+ }
+ }
+ ],
+ "overwrites": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder<T>.constructor"
+ }
+ },
+ {
+ "id": 27,
+ "name": "_headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 9,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 171,
+ "name": "GenericObject"
+ }
+ },
+ {
+ "id": 26,
+ "name": "_realtime",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 8,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 810,
+ "qualifiedName": "RealtimeClient",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 28,
+ "name": "_schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 10,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 25,
+ "name": "_subscription",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 7,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reference",
+ "id": 114,
+ "name": "SupabaseRealtimeClient"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 29,
+ "name": "_table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 11,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 96,
+ "name": "allowEmpty",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 53,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.allowEmpty"
+ }
+ },
+ {
+ "id": 88,
+ "name": "body",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 49,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "Partial",
+ "package": "typescript",
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "Partial",
+ "package": "typescript",
+ "name": "Partial"
+ }
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.body"
+ }
+ },
+ {
+ "id": 91,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 52,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 92,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 93,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 94,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 95,
+ "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",
+ "name": "PostgrestQueryBuilder.fetch"
+ }
+ },
+ {
+ "id": 83,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 45,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 84,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 85,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 86,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.headers"
+ }
+ },
+ {
+ "id": 81,
+ "name": "method",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 43,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "DELETE"
+ },
+ {
+ "type": "literal",
+ "value": "GET"
+ },
+ {
+ "type": "literal",
+ "value": "HEAD"
+ },
+ {
+ "type": "literal",
+ "value": "POST"
+ },
+ {
+ "type": "literal",
+ "value": "PATCH"
+ }
+ ]
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.method"
+ }
+ },
+ {
+ "id": 87,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 48,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.schema"
+ }
+ },
+ {
+ "id": 89,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 50,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.shouldThrowOnError"
+ }
+ },
+ {
+ "id": 90,
+ "name": "signal",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 51,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "AbortSignal",
+ "package": "typescript",
+ "name": "AbortSignal"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.signal"
+ }
+ },
+ {
+ "id": 82,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isProtected": true,
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 44,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "qualifiedName": "URL",
+ "package": "typescript",
+ "name": "URL"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.url"
+ }
+ },
+ {
+ "id": 75,
+ "name": "delete",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 75,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 76,
+ "name": "delete",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Performs a DELETE on the table."
+ },
+ "parameters": [
+ {
+ "id": 77,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 78,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 80,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 77,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ }
+ },
+ {
+ "id": 79,
+ "name": "returning",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 76,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "minimal"
+ },
+ {
+ "type": "literal",
+ "value": "representation"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [80, 79]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestFilterBuilder",
+ "package": "@supabase/postgrest-js",
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.delete"
+ }
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.delete"
+ }
+ },
+ {
+ "id": 44,
+ "name": "insert",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 30,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 45,
+ "name": "insert",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Performs an INSERT into the table."
+ },
+ "parameters": [
+ {
+ "id": 46,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The values to insert."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "Partial",
+ "package": "typescript",
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "Partial",
+ "package": "typescript",
+ "name": "Partial"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 47,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 48,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 50,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 32,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ }
+ },
+ {
+ "id": 49,
+ "name": "returning",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 31,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "minimal"
+ },
+ {
+ "type": "literal",
+ "value": "representation"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [50, 49]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestFilterBuilder",
+ "package": "@supabase/postgrest-js",
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.insert"
+ }
+ },
+ {
+ "id": 51,
+ "name": "insert",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "tags": [
+ {
+ "tag": "deprecated",
+ "text": "Use `upsert()` instead.\n"
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "id": 52,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "Partial",
+ "package": "typescript",
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "Partial",
+ "package": "typescript",
+ "name": "Partial"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 53,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 54,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 58,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 41,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ }
+ },
+ {
+ "id": 56,
+ "name": "onConflict",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 39,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 57,
+ "name": "returning",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 40,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "minimal"
+ },
+ {
+ "type": "literal",
+ "value": "representation"
+ }
+ ]
+ }
+ },
+ {
+ "id": 55,
+ "name": "upsert",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 38,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [58, 56, 57, 55]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestFilterBuilder",
+ "package": "@supabase/postgrest-js",
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.insert"
+ }
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.insert"
+ }
+ },
+ {
+ "id": 30,
+ "name": "on",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 44,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 31,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Subscribe to realtime changes in your database."
+ },
+ "parameters": [
+ {
+ "id": 32,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The database event which you would like to receive updates for, or you can use the special wildcard `*` to listen to all changes."
+ },
+ "type": {
+ "type": "reference",
+ "id": 199,
+ "name": "SupabaseEventTypes"
+ }
+ },
+ {
+ "id": 33,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A callback that will handle the payload that is sent whenever your database changes.\n"
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 34,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 35,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 36,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 189,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "name": "SupabaseRealtimePayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 114,
+ "name": "SupabaseRealtimeClient"
+ }
+ }
+ ]
+ },
+ {
+ "id": 37,
+ "name": "select",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 19,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 38,
+ "name": "select",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Performs vertical filtering with SELECT."
+ },
+ "parameters": [
+ {
+ "id": 39,
+ "name": "columns",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The columns to retrieve, separated by commas."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 40,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 41,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 43,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 21,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ }
+ },
+ {
+ "id": 42,
+ "name": "head",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 20,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [43, 42]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestFilterBuilder",
+ "package": "@supabase/postgrest-js",
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.select"
+ }
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.select"
+ }
+ },
+ {
+ "id": 100,
+ "name": "then",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 62,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 101,
+ "name": "then",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "typeParameter": [
+ {
+ "id": 102,
+ "name": "TResult1",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "default": {
+ "type": "reference",
+ "id": 202,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestResponse",
+ "package": "@supabase/postgrest-js",
+ "name": "PostgrestResponse"
+ }
+ },
+ {
+ "id": 103,
+ "name": "TResult2",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "default": {
+ "type": "intrinsic",
+ "name": "never"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "id": 104,
+ "name": "onfulfilled",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 105,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "signatures": [
+ {
+ "id": 106,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 107,
+ "name": "value",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "reference",
+ "id": 202,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestResponse",
+ "package": "@supabase/postgrest-js",
+ "name": "PostgrestResponse"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 102,
+ "qualifiedName": "TResult1",
+ "package": "@supabase/postgrest-js",
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 102,
+ "qualifiedName": "TResult1",
+ "package": "@supabase/postgrest-js",
+ "name": "TResult1"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 108,
+ "name": "onrejected",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 109,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "signatures": [
+ {
+ "id": 110,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "parameters": [
+ {
+ "id": 111,
+ "name": "reason",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 103,
+ "qualifiedName": "TResult2",
+ "package": "@supabase/postgrest-js",
+ "name": "TResult2"
+ },
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 103,
+ "qualifiedName": "TResult2",
+ "package": "@supabase/postgrest-js",
+ "name": "TResult2"
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 102,
+ "qualifiedName": "TResult1",
+ "package": "@supabase/postgrest-js",
+ "name": "TResult1"
+ },
+ {
+ "type": "reference",
+ "id": 103,
+ "qualifiedName": "TResult2",
+ "package": "@supabase/postgrest-js",
+ "name": "TResult2"
+ }
+ ]
+ }
+ ],
+ "qualifiedName": "PromiseLike",
+ "package": "typescript",
+ "name": "PromiseLike"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.then"
+ }
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.then"
+ }
+ },
+ {
+ "id": 97,
+ "name": "throwOnError",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts",
+ "line": 61,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 98,
+ "name": "throwOnError",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "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"
+ },
+ "parameters": [
+ {
+ "id": 99,
+ "name": "throwOnError",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 8,
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "name": "SupabaseQueryBuilder"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.throwOnError"
+ }
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.throwOnError"
+ }
+ },
+ {
+ "id": 68,
+ "name": "update",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 65,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 69,
+ "name": "update",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Performs an UPDATE on the table."
+ },
+ "parameters": [
+ {
+ "id": 70,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The values to update."
+ },
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "Partial",
+ "package": "typescript",
+ "name": "Partial"
+ }
+ },
+ {
+ "id": 71,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 72,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 74,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 67,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ }
+ },
+ {
+ "id": 73,
+ "name": "returning",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 66,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "minimal"
+ },
+ {
+ "type": "literal",
+ "value": "representation"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [74, 73]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestFilterBuilder",
+ "package": "@supabase/postgrest-js",
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.update"
+ }
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.update"
+ }
+ },
+ {
+ "id": 59,
+ "name": "upsert",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExternal": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 52,
+ "character": 4
+ }
+ ],
+ "signatures": [
+ {
+ "id": 60,
+ "name": "upsert",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "Performs an UPSERT into the table."
+ },
+ "parameters": [
+ {
+ "id": 61,
+ "name": "values",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true
+ },
+ "comment": {
+ "shortText": "The values to insert."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "Partial",
+ "package": "typescript",
+ "name": "Partial"
+ },
+ {
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "Partial",
+ "package": "typescript",
+ "name": "Partial"
+ }
+ }
+ ]
+ }
+ },
+ {
+ "id": 62,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 63,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExternal": true
+ },
+ "children": [
+ {
+ "id": 66,
+ "name": "count",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 55,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": null
+ },
+ {
+ "type": "literal",
+ "value": "exact"
+ },
+ {
+ "type": "literal",
+ "value": "planned"
+ },
+ {
+ "type": "literal",
+ "value": "estimated"
+ }
+ ]
+ }
+ },
+ {
+ "id": 67,
+ "name": "ignoreDuplicates",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 56,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 64,
+ "name": "onConflict",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 53,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 65,
+ "name": "returning",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts",
+ "line": 54,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "minimal"
+ },
+ {
+ "type": "literal",
+ "value": "representation"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [66, 67, 64, 65]
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestFilterBuilder",
+ "package": "@supabase/postgrest-js",
+ "name": "default"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.upsert"
+ }
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.upsert"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [9]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [27, 26, 28, 25, 29, 96, 88, 91, 83, 81, 87, 89, 90, 82]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [75, 44, 30, 37, 100, 97, 68, 59]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 6,
+ "character": 13
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 112,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reference",
+ "id": 11,
+ "name": "T"
+ }
+ ],
+ "qualifiedName": "PostgrestQueryBuilder",
+ "package": "@supabase/postgrest-js",
+ "name": "default"
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [8]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 113,
+ "name": "lib/SupabaseRealtimeClient",
+ "kind": 2,
+ "kindString": "Module",
+ "flags": {},
+ "children": [
+ {
+ "id": 114,
+ "name": "SupabaseRealtimeClient",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {},
+ "children": [
+ {
+ "id": 115,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseRealtimeClient.ts",
+ "line": 7,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 116,
+ "name": "new SupabaseRealtimeClient",
+ "kind": 16384,
+ "kindString": "Constructor signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 117,
+ "name": "socket",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 810,
+ "qualifiedName": "RealtimeClient",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 118,
+ "name": "headers",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 171,
+ "name": "GenericObject"
+ }
+ },
+ {
+ "id": 119,
+ "name": "schema",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 120,
+ "name": "tableName",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 114,
+ "name": "SupabaseRealtimeClient"
+ }
+ }
+ ]
+ },
+ {
+ "id": 121,
+ "name": "subscription",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseRealtimeClient.ts",
+ "line": 5,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ },
+ {
+ "id": 122,
+ "name": "getPayloadRecords",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseRealtimeClient.ts",
+ "line": 19,
+ "character": 10
+ }
+ ],
+ "signatures": [
+ {
+ "id": 123,
+ "name": "getPayloadRecords",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 124,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 125,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 126,
+ "name": "new",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 127,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {}
+ }
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "id": 128,
+ "name": "old",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 129,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {}
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [126, 128]
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 130,
+ "name": "on",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseRealtimeClient.ts",
+ "line": 42,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 131,
+ "name": "on",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "The event you want to listen to."
+ },
+ "parameters": [
+ {
+ "id": 132,
+ "name": "event",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "The event"
+ },
+ "type": {
+ "type": "reference",
+ "id": 199,
+ "name": "SupabaseEventTypes"
+ }
+ },
+ {
+ "id": 133,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "comment": {
+ "shortText": "A callback function that is called whenever the event occurs.\n"
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 134,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 135,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 136,
+ "name": "payload",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "id": 189,
+ "typeArguments": [
+ {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ ],
+ "name": "SupabaseRealtimePayload"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 114,
+ "name": "SupabaseRealtimeClient"
+ }
+ }
+ ]
+ },
+ {
+ "id": 137,
+ "name": "subscribe",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseRealtimeClient.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "signatures": [
+ {
+ "id": 138,
+ "name": "subscribe",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "comment": {
+ "shortText": "Enables the subscription."
+ },
+ "parameters": [
+ {
+ "id": 139,
+ "name": "callback",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "Function",
+ "package": "typescript",
+ "name": "Function"
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 927,
+ "qualifiedName": "RealtimeSubscription",
+ "package": "@supabase/realtime-js",
+ "name": "default"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [115]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [121]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [122, 130, 137]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseRealtimeClient.ts",
+ "line": 4,
+ "character": 13
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [114]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseRealtimeClient.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 140,
+ "name": "lib/constants",
+ "kind": 2,
+ "kindString": "Module",
+ "flags": {},
+ "children": [
+ {
+ "id": 141,
+ "name": "DEFAULT_HEADERS",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/constants.ts",
+ "line": 3,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 142,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 143,
+ "name": "X-Client-Info",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "..."
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [143]
+ }
+ ]
+ }
+ },
+ "defaultValue": "..."
+ },
+ {
+ "id": 144,
+ "name": "STORAGE_KEY",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/constants.ts",
+ "line": 4,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "supabase.auth.token"
+ },
+ "defaultValue": "'supabase.auth.token'"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [141, 144]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/constants.ts",
+ "line": 2,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 145,
+ "name": "lib/helpers",
+ "kind": 2,
+ "kindString": "Module",
+ "flags": {},
+ "children": [
+ {
+ "id": 151,
+ "name": "isBrowser",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/helpers.ts",
+ "line": 15,
+ "character": 13
+ }
+ ],
+ "signatures": [
+ {
+ "id": 152,
+ "name": "isBrowser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ]
+ },
+ {
+ "id": 148,
+ "name": "stripTrailingSlash",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/helpers.ts",
+ "line": 11,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 149,
+ "name": "stripTrailingSlash",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 150,
+ "name": "url",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ },
+ {
+ "id": 146,
+ "name": "uuid",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/helpers.ts",
+ "line": 3,
+ "character": 16
+ }
+ ],
+ "signatures": [
+ {
+ "id": 147,
+ "name": "uuid",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Functions",
+ "kind": 64,
+ "children": [151, 148, 146]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/helpers.ts",
+ "line": 3,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 153,
+ "name": "lib/types",
+ "kind": 2,
+ "kindString": "Module",
+ "flags": {},
+ "children": [
+ {
+ "id": 154,
+ "name": "SupabaseAuthClientOptions",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {},
+ "children": [
+ {
+ "id": 161,
+ "name": "autoRefreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 43,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "GoTrueClientOptions.autoRefreshToken"
+ }
+ },
+ {
+ "id": 165,
+ "name": "cookieOptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 47,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 777,
+ "qualifiedName": "CookieOptions",
+ "package": "@supabase/gotrue-js",
+ "name": "CookieOptions"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "GoTrueClientOptions.cookieOptions"
+ }
+ },
+ {
+ "id": 160,
+ "name": "detectSessionInUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 42,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "GoTrueClientOptions.detectSessionInUrl"
+ }
+ },
+ {
+ "id": 166,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 48,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 167,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "signatures": [
+ {
+ "id": 168,
+ "name": "__type",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 169,
+ "name": "input",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {},
+ "type": {
+ "type": "reference",
+ "qualifiedName": "RequestInfo",
+ "package": "typescript",
+ "name": "RequestInfo"
+ }
+ },
+ {
+ "id": 170,
+ "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",
+ "name": "GoTrueClientOptions.fetch"
+ }
+ },
+ {
+ "id": 156,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 39,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 157,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "indexSignature": {
+ "id": 158,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {},
+ "parameters": [
+ {
+ "id": 159,
+ "name": "key",
+ "kind": 32768,
+ "flags": {},
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ }
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "GoTrueClientOptions.headers"
+ }
+ },
+ {
+ "id": 163,
+ "name": "localStorage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 45,
+ "character": 8
+ }
+ ],
+ "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"
+ }
+ ],
+ "qualifiedName": "PromisifyMethods",
+ "package": "@supabase/gotrue-js",
+ "name": "PromisifyMethods"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "GoTrueClientOptions.localStorage"
+ }
+ },
+ {
+ "id": 164,
+ "name": "multiTab",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 46,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "GoTrueClientOptions.multiTab"
+ }
+ },
+ {
+ "id": 162,
+ "name": "persistSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 44,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "GoTrueClientOptions.persistSession"
+ }
+ },
+ {
+ "id": 155,
+ "name": "url",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExternal": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts",
+ "line": 38,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "name": "GoTrueClientOptions.url"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [161, 165, 160, 166, 156, 163, 164, 162, 155]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 6,
+ "character": 17
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "name": "GoTrueClientOptions"
+ }
+ ]
+ },
+ {
+ "id": 175,
+ "name": "Fetch",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 10,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "id": 20,
+ "qualifiedName": "fetch",
+ "package": "typescript",
+ "name": "fetch"
+ }
+ }
+ },
+ {
+ "id": 171,
+ "name": "GenericObject",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 8,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 172,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 8,
+ "character": 28
+ }
+ ],
+ "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": "string"
+ }
+ }
+ }
+ }
+ },
+ {
+ "id": 176,
+ "name": "SupabaseClientOptions",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 12,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 177,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 180,
+ "name": "autoRefreshToken",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Automatically refreshes the token for logged in users."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 24,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 188,
+ "name": "cookieOptions",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Options passed to the gotrue-js instance"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 60,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "cookieOptions"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 154,
+ "name": "SupabaseAuthClientOptions"
+ }
+ }
+ },
+ {
+ "id": 183,
+ "name": "detectSessionInUrl",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Detect a session from the URL. Used for OAuth login callbacks."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 36,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 186,
+ "name": "fetch",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A custom `fetch` implementation."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 50,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 175,
+ "name": "Fetch"
+ }
+ },
+ {
+ "id": 179,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Optional headers for initializing the client."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 20,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 171,
+ "name": "GenericObject"
+ }
+ },
+ {
+ "id": 184,
+ "name": "localStorage",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "A storage provider. Used to store the logged in session."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 40,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "indexedAccess",
+ "indexType": {
+ "type": "literal",
+ "value": "localStorage"
+ },
+ "objectType": {
+ "type": "reference",
+ "id": 154,
+ "name": "SupabaseAuthClientOptions"
+ }
+ }
+ },
+ {
+ "id": 181,
+ "name": "multiTab",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Allows to enable/disable multi-tab/window events"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 28,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 182,
+ "name": "persistSession",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Whether to persist a logged in session to storage."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 32,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ },
+ {
+ "id": 185,
+ "name": "realtime",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Options passed to the realtime-js instance"
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 45,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 909,
+ "qualifiedName": "Options",
+ "package": "@supabase/realtime-js",
+ "name": "RealtimeClientOptions"
+ }
+ },
+ {
+ "id": 178,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 16,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 187,
+ "name": "shouldThrowOnError",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isOptional": true
+ },
+ "comment": {
+ "shortText": "Throw errors, instead of returning them."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 55,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "boolean"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [180, 188, 183, 186, 179, 184, 181, 182, 185, 178, 187]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 12,
+ "character": 36
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 199,
+ "name": "SupabaseEventTypes",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 75,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "INSERT"
+ },
+ {
+ "type": "literal",
+ "value": "UPDATE"
+ },
+ {
+ "type": "literal",
+ "value": "DELETE"
+ },
+ {
+ "type": "literal",
+ "value": "*"
+ }
+ ]
+ }
+ },
+ {
+ "id": 189,
+ "name": "SupabaseRealtimePayload",
+ "kind": 4194304,
+ "kindString": "Type alias",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 63,
+ "character": 12
+ }
+ ],
+ "typeParameter": [
+ {
+ "id": 198,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {}
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 190,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {},
+ "children": [
+ {
+ "id": 191,
+ "name": "commit_timestamp",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 64,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 197,
+ "name": "errors",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 72,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "type": "literal",
+ "value": null
+ }
+ ]
+ }
+ },
+ {
+ "id": 192,
+ "name": "eventType",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 65,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "literal",
+ "value": "INSERT"
+ },
+ {
+ "type": "literal",
+ "value": "UPDATE"
+ },
+ {
+ "type": "literal",
+ "value": "DELETE"
+ }
+ ]
+ }
+ },
+ {
+ "id": 195,
+ "name": "new",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The new record. Present for 'INSERT' and 'UPDATE' events."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 69,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 198,
+ "name": "T"
+ }
+ },
+ {
+ "id": 196,
+ "name": "old",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "comment": {
+ "shortText": "The previous record. Present for 'UPDATE' and 'DELETE' events."
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 71,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 198,
+ "name": "T"
+ }
+ },
+ {
+ "id": 193,
+ "name": "schema",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 66,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 194,
+ "name": "table",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 67,
+ "character": 2
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [191, 197, 192, 195, 196, 193, 194]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 63,
+ "character": 41
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Interfaces",
+ "kind": 256,
+ "children": [154]
+ },
+ {
+ "title": "Type aliases",
+ "kind": 4194304,
+ "children": [175, 171, 176, 199, 189]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/types.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 200,
+ "name": "lib/version",
+ "kind": 2,
+ "kindString": "Module",
+ "flags": {},
+ "children": [
+ {
+ "id": 201,
+ "name": "version",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isConst": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/version.ts",
+ "line": 1,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "literal",
+ "value": "0.0.0-automated"
+ },
+ "defaultValue": "'0.0.0-automated'"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [201]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/version.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Modules",
+ "kind": 2,
+ "children": [1, 7, 113, 140, 145, 153, 200]
+ }
+ ]
+}
diff --git a/spec/transforms/api_v0_openapi_deparsed.json b/spec/transforms/api_v0_openapi_deparsed.json
index 0f50500c5c6..6c8d70f9d32 100644
--- a/spec/transforms/api_v0_openapi_deparsed.json
+++ b/spec/transforms/api_v0_openapi_deparsed.json
@@ -33,22 +33,14 @@
"type": "string"
}
},
- "required": [
- "id",
- "organization_id",
- "name",
- "region",
- "created_at"
- ]
+ "required": ["id", "organization_id", "name", "region", "created_at"]
}
}
}
}
}
},
- "tags": [
- "projects"
- ],
+ "tags": ["projects"],
"security": [
{
"bearer": []
@@ -77,10 +69,7 @@
},
"plan": {
"type": "string",
- "enum": [
- "free",
- "pro"
- ]
+ "enum": ["free", "pro"]
},
"region": {
"type": "string",
@@ -100,13 +89,7 @@
]
}
},
- "required": [
- "db_pass",
- "name",
- "organization_id",
- "plan",
- "region"
- ]
+ "required": ["db_pass", "name", "organization_id", "plan", "region"]
}
}
}
@@ -135,21 +118,13 @@
"type": "string"
}
},
- "required": [
- "id",
- "organization_id",
- "name",
- "region",
- "created_at"
- ]
+ "required": ["id", "organization_id", "name", "region", "created_at"]
}
}
}
}
},
- "tags": [
- "projects"
- ],
+ "tags": ["projects"],
"security": [
{
"bearer": []
@@ -180,10 +155,7 @@
"type": "string"
}
},
- "required": [
- "id",
- "name"
- ]
+ "required": ["id", "name"]
}
}
}
@@ -193,9 +165,7 @@
"description": "Unexpected error listing organizations"
}
},
- "tags": [
- "organizations"
- ],
+ "tags": ["organizations"],
"security": [
{
"bearer": []
@@ -217,9 +187,7 @@
"type": "string"
}
},
- "required": [
- "name"
- ]
+ "required": ["name"]
}
}
}
@@ -239,10 +207,7 @@
"type": "string"
}
},
- "required": [
- "id",
- "name"
- ]
+ "required": ["id", "name"]
}
}
}
@@ -251,9 +216,7 @@
"description": "Unexpected error creating an organization"
}
},
- "tags": [
- "organizations"
- ],
+ "tags": ["organizations"],
"security": [
{
"bearer": []
@@ -299,11 +262,7 @@
"type": "string"
},
"status": {
- "enum": [
- "ACTIVE",
- "REMOVED",
- "THROTTLED"
- ],
+ "enum": ["ACTIVE", "REMOVED", "THROTTLED"],
"type": "string"
},
"version": {
@@ -337,9 +296,7 @@
"description": "Failed to retrieve project's functions"
}
},
- "tags": [
- "projects"
- ],
+ "tags": ["projects"],
"security": [
{
"bearer": []
@@ -384,11 +341,7 @@
"type": "boolean"
}
},
- "required": [
- "slug",
- "name",
- "body"
- ]
+ "required": ["slug", "name", "body"]
}
}
}
@@ -411,11 +364,7 @@
"type": "string"
},
"status": {
- "enum": [
- "ACTIVE",
- "REMOVED",
- "THROTTLED"
- ],
+ "enum": ["ACTIVE", "REMOVED", "THROTTLED"],
"type": "string"
},
"version": {
@@ -448,9 +397,7 @@
"description": "Failed to create project's function"
}
},
- "tags": [
- "projects"
- ],
+ "tags": ["projects"],
"security": [
{
"bearer": []
@@ -512,11 +459,7 @@
"type": "string"
},
"status": {
- "enum": [
- "ACTIVE",
- "REMOVED",
- "THROTTLED"
- ],
+ "enum": ["ACTIVE", "REMOVED", "THROTTLED"],
"type": "string"
},
"version": {
@@ -552,9 +495,7 @@
"description": "Failed to retrieve function with given slug"
}
},
- "tags": [
- "projects"
- ],
+ "tags": ["projects"],
"security": [
{
"bearer": []
@@ -627,11 +568,7 @@
"type": "string"
},
"status": {
- "enum": [
- "ACTIVE",
- "REMOVED",
- "THROTTLED"
- ],
+ "enum": ["ACTIVE", "REMOVED", "THROTTLED"],
"type": "string"
},
"version": {
@@ -664,9 +601,7 @@
"description": "Failed to update function with given slug"
}
},
- "tags": [
- "projects"
- ],
+ "tags": ["projects"],
"security": [
{
"bearer": []
@@ -708,9 +643,7 @@
"description": "Failed to delete function with given slug"
}
},
- "tags": [
- "projects"
- ],
+ "tags": ["projects"],
"security": [
{
"bearer": []
@@ -753,10 +686,7 @@
"type": "string"
}
},
- "required": [
- "name",
- "value"
- ]
+ "required": ["name", "value"]
}
}
}
@@ -766,9 +696,7 @@
"description": "Failed to retrieve project's secrets"
}
},
- "tags": [
- "projects"
- ],
+ "tags": ["projects"],
"security": [
{
"bearer": []
@@ -809,10 +737,7 @@
"pattern": {}
}
},
- "required": [
- "name",
- "value"
- ]
+ "required": ["name", "value"]
}
}
}
@@ -826,9 +751,7 @@
"description": "Failed to create project's secrets"
}
},
- "tags": [
- "projects"
- ],
+ "tags": ["projects"],
"security": [
{
"bearer": []
@@ -880,9 +803,7 @@
"description": "Failed to delete secrets with given names"
}
},
- "tags": [
- "projects"
- ],
+ "tags": ["projects"],
"security": [
{
"bearer": []
@@ -936,13 +857,7 @@
"type": "string"
}
},
- "required": [
- "id",
- "organization_id",
- "name",
- "region",
- "created_at"
- ]
+ "required": ["id", "organization_id", "name", "region", "created_at"]
},
"CreateProjectBody": {
"type": "object",
@@ -958,10 +873,7 @@
},
"plan": {
"type": "string",
- "enum": [
- "free",
- "pro"
- ]
+ "enum": ["free", "pro"]
},
"region": {
"type": "string",
@@ -981,13 +893,7 @@
]
}
},
- "required": [
- "db_pass",
- "name",
- "organization_id",
- "plan",
- "region"
- ]
+ "required": ["db_pass", "name", "organization_id", "plan", "region"]
},
"OrganizationResponse": {
"type": "object",
@@ -999,10 +905,7 @@
"type": "string"
}
},
- "required": [
- "id",
- "name"
- ]
+ "required": ["id", "name"]
},
"CreateOrganizationBody": {
"type": "object",
@@ -1011,9 +914,7 @@
"type": "string"
}
},
- "required": [
- "name"
- ]
+ "required": ["name"]
},
"FunctionResponse": {
"type": "object",
@@ -1028,11 +929,7 @@
"type": "string"
},
"status": {
- "enum": [
- "ACTIVE",
- "REMOVED",
- "THROTTLED"
- ],
+ "enum": ["ACTIVE", "REMOVED", "THROTTLED"],
"type": "string"
},
"version": {
@@ -1048,15 +945,7 @@
"type": "boolean"
}
},
- "required": [
- "id",
- "slug",
- "name",
- "status",
- "version",
- "created_at",
- "updated_at"
- ]
+ "required": ["id", "slug", "name", "status", "version", "created_at", "updated_at"]
},
"CreateFunctionBody": {
"type": "object",
@@ -1075,11 +964,7 @@
"type": "boolean"
}
},
- "required": [
- "slug",
- "name",
- "body"
- ]
+ "required": ["slug", "name", "body"]
},
"FunctionSlugResponse": {
"type": "object",
@@ -1094,11 +979,7 @@
"type": "string"
},
"status": {
- "enum": [
- "ACTIVE",
- "REMOVED",
- "THROTTLED"
- ],
+ "enum": ["ACTIVE", "REMOVED", "THROTTLED"],
"type": "string"
},
"version": {
@@ -1117,15 +998,7 @@
"type": "string"
}
},
- "required": [
- "id",
- "slug",
- "name",
- "status",
- "version",
- "created_at",
- "updated_at"
- ]
+ "required": ["id", "slug", "name", "status", "version", "created_at", "updated_at"]
},
"UpdateFunctionBody": {
"type": "object",
@@ -1151,10 +1024,7 @@
"type": "string"
}
},
- "required": [
- "name",
- "value"
- ]
+ "required": ["name", "value"]
},
"CreateSecretBody": {
"type": "object",
@@ -1167,10 +1037,7 @@
"pattern": {}
}
},
- "required": [
- "name",
- "value"
- ]
+ "required": ["name", "value"]
}
}
}
diff --git a/spec/transforms/storage_v0_openapi_deparsed.json b/spec/transforms/storage_v0_openapi_deparsed.json
index 7e9dacbdabe..9673aa47a9f 100644
--- a/spec/transforms/storage_v0_openapi_deparsed.json
+++ b/spec/transforms/storage_v0_openapi_deparsed.json
@@ -13,9 +13,7 @@
"type": "string"
}
},
- "required": [
- "authorization"
- ],
+ "required": ["authorization"],
"title": "authSchema"
},
"def-1": {
@@ -31,11 +29,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
},
@@ -43,9 +37,7 @@
"/bucket/": {
"post": {
"summary": "Create a bucket",
- "tags": [
- "bucket"
- ],
+ "tags": ["bucket"],
"parameters": [
{
"name": "body",
@@ -55,26 +47,18 @@
"properties": {
"name": {
"type": "string",
- "examples": [
- "avatars"
- ]
+ "examples": ["avatars"]
},
"id": {
"type": "string",
- "examples": [
- "avatars"
- ]
+ "examples": ["avatars"]
},
"public": {
"type": "boolean",
- "examples": [
- false
- ]
+ "examples": [false]
}
},
- "required": [
- "name"
- ]
+ "required": ["name"]
}
},
{
@@ -92,14 +76,10 @@
"properties": {
"name": {
"type": "string",
- "examples": [
- "avatars"
- ]
+ "examples": ["avatars"]
}
},
- "required": [
- "name"
- ]
+ "required": ["name"]
}
},
"400": {
@@ -117,11 +97,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -129,9 +105,7 @@
},
"get": {
"summary": "Gets all buckets",
- "tags": [
- "bucket"
- ],
+ "tags": ["bucket"],
"parameters": [
{
"in": "header",
@@ -168,10 +142,7 @@
"type": "string"
}
},
- "required": [
- "id",
- "name"
- ],
+ "required": ["id", "name"],
"additionalProperties": false,
"examples": [
{
@@ -212,11 +183,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -226,15 +193,11 @@
"/bucket/{bucketId}/empty": {
"post": {
"summary": "Empty a bucket",
- "tags": [
- "bucket"
- ],
+ "tags": ["bucket"],
"parameters": [
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketId"
@@ -254,9 +217,7 @@
"properties": {
"message": {
"type": "string",
- "examples": [
- "Successfully emptied"
- ]
+ "examples": ["Successfully emptied"]
}
}
}
@@ -276,11 +237,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -290,15 +247,11 @@
"/bucket/{bucketId}": {
"get": {
"summary": "Get details of a bucket",
- "tags": [
- "bucket"
- ],
+ "tags": ["bucket"],
"parameters": [
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketId"
@@ -336,10 +289,7 @@
"type": "string"
}
},
- "required": [
- "id",
- "name"
- ],
+ "required": ["id", "name"],
"additionalProperties": false,
"examples": [
{
@@ -367,11 +317,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -379,9 +325,7 @@
},
"put": {
"summary": "Update properties of a bucket",
- "tags": [
- "bucket"
- ],
+ "tags": ["bucket"],
"parameters": [
{
"name": "body",
@@ -391,9 +335,7 @@
"properties": {
"public": {
"type": "boolean",
- "examples": [
- false
- ]
+ "examples": [false]
}
}
}
@@ -413,14 +355,10 @@
"properties": {
"message": {
"type": "string",
- "examples": [
- "Successfully updated"
- ]
+ "examples": ["Successfully updated"]
}
},
- "required": [
- "message"
- ]
+ "required": ["message"]
}
},
"400": {
@@ -438,11 +376,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -450,15 +384,11 @@
},
"delete": {
"summary": "Delete a bucket",
- "tags": [
- "bucket"
- ],
+ "tags": ["bucket"],
"parameters": [
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketId"
@@ -478,9 +408,7 @@
"properties": {
"message": {
"type": "string",
- "examples": [
- "Successfully deleted"
- ]
+ "examples": ["Successfully deleted"]
}
}
}
@@ -500,11 +428,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -514,24 +438,18 @@
"/object/{bucketName}/{wildcard}": {
"delete": {
"summary": "Delete an object",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketName"
},
{
"type": "string",
- "examples": [
- "folder/cat.png"
- ],
+ "examples": ["folder/cat.png"],
"required": true,
"in": "path",
"name": "*"
@@ -551,9 +469,7 @@
"properties": {
"message": {
"type": "string",
- "examples": [
- "Successfully deleted"
- ]
+ "examples": ["Successfully deleted"]
}
}
}
@@ -573,11 +489,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -585,24 +497,18 @@
},
"get": {
"summary": "Deprecated (use GET /object/authenticated/{bucketName} instead): Retrieve an object",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketName"
},
{
"type": "string",
- "examples": [
- "folder/cat.png"
- ],
+ "examples": ["folder/cat.png"],
"required": true,
"in": "path",
"name": "*"
@@ -630,11 +536,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -642,24 +544,18 @@
},
"put": {
"summary": "Update the object at an existing key",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketName"
},
{
"type": "string",
- "examples": [
- "folder/cat.png"
- ],
+ "examples": ["folder/cat.png"],
"required": true,
"in": "path",
"name": "*"
@@ -679,14 +575,10 @@
"properties": {
"Key": {
"type": "string",
- "examples": [
- "projectref/avatars/folder/cat.png"
- ]
+ "examples": ["projectref/avatars/folder/cat.png"]
}
},
- "required": [
- "Key"
- ]
+ "required": ["Key"]
}
},
"400": {
@@ -704,11 +596,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -716,24 +604,18 @@
},
"post": {
"summary": "Upload a new object",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketName"
},
{
"type": "string",
- "examples": [
- "folder/cat.png"
- ],
+ "examples": ["folder/cat.png"],
"required": true,
"in": "path",
"name": "*"
@@ -753,14 +635,10 @@
"properties": {
"Key": {
"type": "string",
- "examples": [
- "avatars/folder/cat.png"
- ]
+ "examples": ["avatars/folder/cat.png"]
}
},
- "required": [
- "Key"
- ]
+ "required": ["Key"]
}
},
"400": {
@@ -778,11 +656,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -792,9 +666,7 @@
"/object/{bucketName}": {
"delete": {
"summary": "Delete multiple objects",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"name": "body",
@@ -808,24 +680,15 @@
"type": "string"
},
"minItems": 1,
- "examples": [
- [
- "folder/cat.png",
- "folder/morecats.png"
- ]
- ]
+ "examples": [["folder/cat.png", "folder/morecats.png"]]
}
},
- "required": [
- "prefixes"
- ]
+ "required": ["prefixes"]
}
},
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketName"
@@ -929,10 +792,7 @@
"type": "string"
}
},
- "required": [
- "id",
- "name"
- ],
+ "required": ["id", "name"],
"additionalProperties": false,
"examples": [
{
@@ -945,9 +805,7 @@
]
}
},
- "required": [
- "name"
- ],
+ "required": ["name"],
"additionalProperties": false,
"examples": [
{
@@ -982,11 +840,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -996,24 +850,18 @@
"/object/authenticated/{bucketName}/{wildcard}": {
"get": {
"summary": "Retrieve an object",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketName"
},
{
"type": "string",
- "examples": [
- "folder/cat.png"
- ],
+ "examples": ["folder/cat.png"],
"required": true,
"in": "path",
"name": "*"
@@ -1041,11 +889,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -1055,9 +899,7 @@
"/object/sign/{bucketName}/{wildcard}": {
"post": {
"summary": "Generate a presigned url to retrieve an object",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"name": "body",
@@ -1068,30 +910,22 @@
"expiresIn": {
"type": "integer",
"minimum": 1,
- "examples": [
- 60000
- ]
+ "examples": [60000]
}
},
- "required": [
- "expiresIn"
- ]
+ "required": ["expiresIn"]
}
},
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketName"
},
{
"type": "string",
- "examples": [
- "folder/cat.png"
- ],
+ "examples": ["folder/cat.png"],
"required": true,
"in": "path",
"name": "*"
@@ -1116,9 +950,7 @@
]
}
},
- "required": [
- "signedURL"
- ]
+ "required": ["signedURL"]
}
},
"400": {
@@ -1136,11 +968,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -1148,9 +976,7 @@
},
"get": {
"summary": "Retrieve an object via a presigned URL",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"type": "string",
@@ -1163,18 +989,14 @@
},
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketName"
},
{
"type": "string",
- "examples": [
- "folder/cat.png"
- ],
+ "examples": ["folder/cat.png"],
"required": true,
"in": "path",
"name": "*"
@@ -1196,11 +1018,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -1210,9 +1028,7 @@
"/object/sign/{bucketName}": {
"post": {
"summary": "Generate presigned urls to retrieve objects",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"name": "body",
@@ -1223,9 +1039,7 @@
"expiresIn": {
"type": "integer",
"minimum": 1,
- "examples": [
- 60000
- ]
+ "examples": [60000]
},
"paths": {
"type": "array",
@@ -1233,25 +1047,15 @@
"type": "string"
},
"minItems": 1,
- "examples": [
- [
- "folder/cat.png",
- "folder/morecats.png"
- ]
- ]
+ "examples": [["folder/cat.png", "folder/morecats.png"]]
}
},
- "required": [
- "expiresIn",
- "paths"
- ]
+ "required": ["expiresIn", "paths"]
}
},
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketName"
@@ -1272,35 +1076,21 @@
"type": "object",
"properties": {
"error": {
- "error": [
- "string",
- "null"
- ],
- "examples": [
- "Either the object does not exist or you do not have access to it"
- ]
+ "error": ["string", "null"],
+ "examples": ["Either the object does not exist or you do not have access to it"]
},
"path": {
"type": "string",
- "examples": [
- "folder/cat.png"
- ]
+ "examples": ["folder/cat.png"]
},
"signedURL": {
- "type": [
- "string",
- "null"
- ],
+ "type": ["string", "null"],
"examples": [
"/object/sign/avatars/folder/cat.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJhdmF0YXJzL2ZvbGRlci9jYXQucG5nIiwiaWF0IjoxNjE3NzI2MjczLCJleHAiOjE2MTc3MjcyNzN9.s7Gt8ME80iREVxPhH01ZNv8oUn4XtaWsmiQ5csiUHn4"
]
}
},
- "required": [
- "error",
- "path",
- "signedURL"
- ]
+ "required": ["error", "path", "signedURL"]
}
}
},
@@ -1319,11 +1109,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -1333,9 +1119,7 @@
"/object/move": {
"post": {
"summary": "Moves an object",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"name": "body",
@@ -1345,28 +1129,18 @@
"properties": {
"bucketId": {
"type": "string",
- "examples": [
- "avatars"
- ]
+ "examples": ["avatars"]
},
"sourceKey": {
"type": "string",
- "examples": [
- "folder/cat.png"
- ]
+ "examples": ["folder/cat.png"]
},
"destinationKey": {
"type": "string",
- "examples": [
- "folder/newcat.png"
- ]
+ "examples": ["folder/newcat.png"]
}
},
- "required": [
- "bucketId",
- "sourceKey",
- "destinationKey"
- ]
+ "required": ["bucketId", "sourceKey", "destinationKey"]
}
},
{
@@ -1384,14 +1158,10 @@
"properties": {
"message": {
"type": "string",
- "examples": [
- "Successfully moved"
- ]
+ "examples": ["Successfully moved"]
}
},
- "required": [
- "message"
- ]
+ "required": ["message"]
}
},
"400": {
@@ -1409,11 +1179,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -1423,9 +1189,7 @@
"/object/list/{bucketName}": {
"post": {
"summary": "Search for objects under a prefix",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"name": "body",
@@ -1435,55 +1199,37 @@
"properties": {
"prefix": {
"type": "string",
- "examples": [
- "folder/subfolder"
- ]
+ "examples": ["folder/subfolder"]
},
"limit": {
"type": "integer",
"minimum": 1,
- "examples": [
- 10
- ]
+ "examples": [10]
},
"offset": {
"type": "integer",
"minimum": 0,
- "examples": [
- 0
- ]
+ "examples": [0]
},
"sortBy": {
"type": "object",
"properties": {
"column": {
"type": "string",
- "enum": [
- "name",
- "updated_at",
- "created_at",
- "last_accessed_at"
- ]
+ "enum": ["name", "updated_at", "created_at", "last_accessed_at"]
},
"order": {
"type": "string",
- "enum": [
- "asc",
- "desc"
- ]
+ "enum": ["asc", "desc"]
}
},
- "required": [
- "column"
- ]
+ "required": ["column"]
},
"search": {
"type": "string"
}
},
- "required": [
- "prefix"
- ]
+ "required": ["prefix"]
}
},
{
@@ -1591,10 +1337,7 @@
"type": "string"
}
},
- "required": [
- "id",
- "name"
- ],
+ "required": ["id", "name"],
"additionalProperties": false,
"examples": [
{
@@ -1607,9 +1350,7 @@
]
}
},
- "required": [
- "name"
- ],
+ "required": ["name"],
"additionalProperties": false,
"examples": [
{
@@ -1643,11 +1384,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -1657,9 +1394,7 @@
"/object/copy": {
"post": {
"summary": "Copies an object",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"name": "body",
@@ -1669,28 +1404,18 @@
"properties": {
"sourceKey": {
"type": "string",
- "examples": [
- "folder/source.png"
- ]
+ "examples": ["folder/source.png"]
},
"bucketId": {
"type": "string",
- "examples": [
- "avatars"
- ]
+ "examples": ["avatars"]
},
"destinationKey": {
"type": "string",
- "examples": [
- "folder/destination.png"
- ]
+ "examples": ["folder/destination.png"]
}
},
- "required": [
- "sourceKey",
- "bucketId",
- "destinationKey"
- ]
+ "required": ["sourceKey", "bucketId", "destinationKey"]
}
},
{
@@ -1708,14 +1433,10 @@
"properties": {
"Key": {
"type": "string",
- "examples": [
- "folder/destination.png"
- ]
+ "examples": ["folder/destination.png"]
}
},
- "required": [
- "Key"
- ]
+ "required": ["Key"]
}
},
"400": {
@@ -1733,11 +1454,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
@@ -1747,24 +1464,18 @@
"/object/public/{bucketName}/{wildcard}": {
"get": {
"summary": "Retrieve an object from a public bucket",
- "tags": [
- "object"
- ],
+ "tags": ["object"],
"parameters": [
{
"type": "string",
- "examples": [
- "avatars"
- ],
+ "examples": ["avatars"],
"required": true,
"in": "path",
"name": "bucketName"
},
{
"type": "string",
- "examples": [
- "folder/cat.png"
- ],
+ "examples": ["folder/cat.png"],
"required": true,
"in": "path",
"name": "*"
@@ -1786,11 +1497,7 @@
"type": "string"
}
},
- "required": [
- "statusCode",
- "error",
- "message"
- ],
+ "required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}