Skip to content

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

docs: stored procedure -> function

Bobbie Soedirgo9c84f8068105
diff --git a/web/docs/guides/api.mdx b/web/docs/guides/api.mdx
index 2601ab30ccc..b612fcf0112 100644
--- a/web/docs/guides/api.mdx
+++ b/web/docs/guides/api.mdx
@@ -195,7 +195,7 @@ curl '[SUPABASE_URL]/rest/v1/todos' \
[update()](/docs/reference/javascript/update),
[upsert()](/docs/reference/javascript/upsert),
[delete()](/docs/reference/javascript/delete),
-[rpc()](/docs/reference/javascript/rpc) (call Postgres functions / stored procedures).
+[rpc()](/docs/reference/javascript/rpc) (call Postgres functions).
### Managing Realtime
diff --git a/web/spec/combined.json b/web/spec/combined.json
index ec9182c2533..bc90015fad6 100644
--- a/web/spec/combined.json
+++ b/web/spec/combined.json
@@ -9,7 +9,7 @@
"originalName": "",
"children": [
{
- "id": 248,
+ "id": 264,
"name": "\"SupabaseClient\"",
"kind": 1,
"kindString": "Module",
@@ -19,7 +19,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts",
"children": [
{
- "id": 249,
+ "id": 265,
"name": "SupabaseClient",
"kind": 128,
"kindString": "Class",
@@ -32,7 +32,7 @@
},
"children": [
{
- "id": 257,
+ "id": 273,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -44,7 +44,7 @@
},
"signatures": [
{
- "id": 260,
+ "id": 276,
"name": "new SupabaseClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -56,7 +56,7 @@
},
"parameters": [
{
- "id": 261,
+ "id": 277,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -72,7 +72,7 @@
}
},
{
- "id": 262,
+ "id": 278,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -88,7 +88,7 @@
}
},
{
- "id": 263,
+ "id": 279,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -105,7 +105,7 @@
],
"type": {
"type": "reference",
- "id": 249,
+ "id": 265,
"name": "SupabaseClient"
}
}
@@ -119,7 +119,7 @@
]
},
{
- "id": 250,
+ "id": 266,
"name": "auth",
"kind": 1024,
"kindString": "Property",
@@ -143,7 +143,7 @@
}
},
{
- "id": 254,
+ "id": 270,
"name": "authUrl",
"kind": 1024,
"kindString": "Property",
@@ -164,7 +164,7 @@
}
},
{
- "id": 256,
+ "id": 272,
"name": "realtime",
"kind": 1024,
"kindString": "Property",
@@ -185,7 +185,7 @@
}
},
{
- "id": 253,
+ "id": 269,
"name": "realtimeUrl",
"kind": 1024,
"kindString": "Property",
@@ -206,7 +206,7 @@
}
},
{
- "id": 252,
+ "id": 268,
"name": "restUrl",
"kind": 1024,
"kindString": "Property",
@@ -227,7 +227,7 @@
}
},
{
- "id": 251,
+ "id": 267,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -248,7 +248,7 @@
}
},
{
- "id": 255,
+ "id": 271,
"name": "storageUrl",
"kind": 1024,
"kindString": "Property",
@@ -269,7 +269,7 @@
}
},
{
- "id": 259,
+ "id": 275,
"name": "supabaseKey",
"kind": 1024,
"kindString": "Property",
@@ -294,7 +294,7 @@
}
},
{
- "id": 258,
+ "id": 274,
"name": "supabaseUrl",
"kind": 1024,
"kindString": "Property",
@@ -319,7 +319,7 @@
}
},
{
- "id": 264,
+ "id": 280,
"name": "storage",
"kind": 262144,
"kindString": "Accessor",
@@ -331,7 +331,7 @@
},
"getSignature": [
{
- "id": 265,
+ "id": 281,
"name": "__get",
"kind": 524288,
"kindString": "Get signature",
@@ -356,7 +356,7 @@
]
},
{
- "id": 301,
+ "id": 320,
"name": "_closeChannel",
"kind": 2048,
"kindString": "Method",
@@ -366,7 +366,7 @@
},
"signatures": [
{
- "id": 302,
+ "id": 321,
"name": "_closeChannel",
"kind": 4096,
"kindString": "Call signature",
@@ -375,7 +375,7 @@
},
"parameters": [
{
- "id": 303,
+ "id": 322,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -403,13 +403,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 180,
+ "line": 186,
"character": 23
}
]
},
{
- "id": 278,
+ "id": 297,
"name": "_closeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -419,7 +419,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 298,
"name": "_closeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -428,7 +428,7 @@
},
"parameters": [
{
- "id": 280,
+ "id": 299,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -456,13 +456,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 126,
+ "line": 132,
"character": 34
}
]
},
{
- "id": 296,
+ "id": 315,
"name": "_getAuthHeaders",
"kind": 2048,
"kindString": "Method",
@@ -472,7 +472,7 @@
},
"signatures": [
{
- "id": 297,
+ "id": 316,
"name": "_getAuthHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -482,7 +482,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 298,
+ "id": 317,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -491,7 +491,7 @@
},
"indexSignature": [
{
- "id": 299,
+ "id": 318,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -500,7 +500,7 @@
},
"parameters": [
{
- "id": 300,
+ "id": 319,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -522,7 +522,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 172,
+ "line": 178,
"character": 28
}
]
@@ -533,13 +533,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 172,
+ "line": 178,
"character": 25
}
]
},
{
- "id": 294,
+ "id": 313,
"name": "_initPostgRESTClient",
"kind": 2048,
"kindString": "Method",
@@ -549,7 +549,7 @@
},
"signatures": [
{
- "id": 295,
+ "id": 314,
"name": "_initPostgRESTClient",
"kind": 4096,
"kindString": "Call signature",
@@ -565,13 +565,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 165,
+ "line": 171,
"character": 30
}
]
},
{
- "id": 291,
+ "id": 310,
"name": "_initRealtimeClient",
"kind": 2048,
"kindString": "Method",
@@ -581,7 +581,7 @@
},
"signatures": [
{
- "id": 292,
+ "id": 311,
"name": "_initRealtimeClient",
"kind": 4096,
"kindString": "Call signature",
@@ -590,7 +590,7 @@
},
"parameters": [
{
- "id": 293,
+ "id": 312,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -613,13 +613,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 158,
+ "line": 164,
"character": 29
}
]
},
{
- "id": 283,
+ "id": 302,
"name": "_initSupabaseAuthClient",
"kind": 2048,
"kindString": "Method",
@@ -629,7 +629,7 @@
},
"signatures": [
{
- "id": 284,
+ "id": 303,
"name": "_initSupabaseAuthClient",
"kind": 4096,
"kindString": "Call signature",
@@ -638,7 +638,7 @@
},
"parameters": [
{
- "id": 285,
+ "id": 304,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -649,7 +649,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 286,
+ "id": 305,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -658,7 +658,7 @@
},
"children": [
{
- "id": 287,
+ "id": 306,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -668,7 +668,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 140,
+ "line": 146,
"character": 20
}
],
@@ -691,7 +691,7 @@
}
},
{
- "id": 289,
+ "id": 308,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -701,7 +701,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 142,
+ "line": 148,
"character": 22
}
],
@@ -724,7 +724,7 @@
}
},
{
- "id": 290,
+ "id": 309,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -734,7 +734,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 143,
+ "line": 149,
"character": 16
}
],
@@ -753,7 +753,7 @@
}
},
{
- "id": 288,
+ "id": 307,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -763,7 +763,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 141,
+ "line": 147,
"character": 18
}
],
@@ -791,17 +791,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 287,
- 289,
- 290,
- 288
+ 306,
+ 308,
+ 309,
+ 307
]
}
],
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 139,
+ "line": 145,
"character": 34
}
]
@@ -819,13 +819,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 139,
+ "line": 145,
"character": 33
}
]
},
{
- "id": 266,
+ "id": 282,
"name": "from",
"kind": 2048,
"kindString": "Method",
@@ -834,7 +834,7 @@
},
"signatures": [
{
- "id": 267,
+ "id": 283,
"name": "from",
"kind": 4096,
"kindString": "Call signature",
@@ -846,7 +846,7 @@
},
"typeParameter": [
{
- "id": 268,
+ "id": 284,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -857,7 +857,7 @@
],
"parameters": [
{
- "id": 269,
+ "id": 285,
"name": "table",
"kind": 32768,
"kindString": "Parameter",
@@ -875,7 +875,7 @@
],
"type": {
"type": "reference",
- "id": 158,
+ "id": 174,
"typeArguments": [
{
"type": "typeParameter",
@@ -899,7 +899,7 @@
]
},
{
- "id": 281,
+ "id": 300,
"name": "getSubscriptions",
"kind": 2048,
"kindString": "Method",
@@ -908,7 +908,7 @@
},
"signatures": [
{
- "id": 282,
+ "id": 301,
"name": "getSubscriptions",
"kind": 4096,
"kindString": "Call signature",
@@ -930,13 +930,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 135,
+ "line": 141,
"character": 18
}
]
},
{
- "id": 275,
+ "id": 294,
"name": "removeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -945,7 +945,7 @@
},
"signatures": [
{
- "id": 276,
+ "id": 295,
"name": "removeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -957,7 +957,7 @@
},
"parameters": [
{
- "id": 277,
+ "id": 296,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -988,13 +988,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 109,
+ "line": 115,
"character": 20
}
]
},
{
- "id": 270,
+ "id": 286,
"name": "rpc",
"kind": 2048,
"kindString": "Method",
@@ -1003,7 +1003,7 @@
},
"signatures": [
{
- "id": 271,
+ "id": 287,
"name": "rpc",
"kind": 4096,
"kindString": "Call signature",
@@ -1011,11 +1011,11 @@
"isExported": true
},
"comment": {
- "shortText": "Perform a stored procedure call."
+ "shortText": "Perform a function call."
},
"typeParameter": [
{
- "id": 272,
+ "id": 288,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -1026,7 +1026,7 @@
],
"parameters": [
{
- "id": 273,
+ "id": 289,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
@@ -1042,7 +1042,7 @@
}
},
{
- "id": 274,
+ "id": 290,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -1051,7 +1051,7 @@
"isOptional": true
},
"comment": {
- "text": "The parameters to pass to the function call.\n"
+ "text": "The parameters to pass to the function call."
},
"type": {
"type": "union",
@@ -1066,6 +1066,88 @@
}
]
}
+ },
+ {
+ "id": 291,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__2",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 292,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 293,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Count algorithm to use to count rows in a table.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 104,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 293
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 103,
+ "character": 20
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
}
],
"type": {
@@ -1083,7 +1165,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 99,
+ "line": 101,
"character": 5
}
]
@@ -1094,45 +1176,45 @@
"title": "Constructors",
"kind": 512,
"children": [
- 257
+ 273
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 250,
- 254,
- 256,
- 253,
- 252,
- 251,
- 255,
- 259,
- 258
+ 266,
+ 270,
+ 272,
+ 269,
+ 268,
+ 267,
+ 271,
+ 275,
+ 274
]
},
{
"title": "Accessors",
"kind": 262144,
"children": [
- 264
+ 280
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 301,
- 278,
- 296,
+ 320,
+ 297,
+ 315,
+ 313,
+ 310,
+ 302,
+ 282,
+ 300,
294,
- 291,
- 283,
- 266,
- 281,
- 275,
- 270
+ 286
]
}
],
@@ -1145,7 +1227,7 @@
]
},
{
- "id": 304,
+ "id": 323,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -1154,7 +1236,7 @@
},
"children": [
{
- "id": 306,
+ "id": 325,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -1173,7 +1255,7 @@
"defaultValue": "true"
},
{
- "id": 308,
+ "id": 327,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -1192,7 +1274,7 @@
"defaultValue": "true"
},
{
- "id": 310,
+ "id": 329,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -1207,7 +1289,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 311,
+ "id": 330,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1217,7 +1299,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 309,
+ "id": 328,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -1236,7 +1318,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 307,
+ "id": 326,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -1255,7 +1337,7 @@
"defaultValue": "true"
},
{
- "id": 305,
+ "id": 324,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -1279,12 +1361,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 306,
- 308,
- 310,
- 309,
- 307,
- 305
+ 325,
+ 327,
+ 329,
+ 328,
+ 326,
+ 324
]
}
],
@@ -1306,14 +1388,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 249
+ 265
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 304
+ 323
]
}
],
@@ -1326,7 +1408,7 @@
]
},
{
- "id": 312,
+ "id": 331,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -1336,7 +1418,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts",
"children": [
{
- "id": 313,
+ "id": 332,
"name": "createClient",
"kind": 64,
"kindString": "Function",
@@ -1349,7 +1431,7 @@
},
"signatures": [
{
- "id": 314,
+ "id": 333,
"name": "createClient",
"kind": 4096,
"kindString": "Call signature",
@@ -1361,7 +1443,7 @@
},
"parameters": [
{
- "id": 315,
+ "id": 334,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -1374,7 +1456,7 @@
}
},
{
- "id": 316,
+ "id": 335,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -1387,7 +1469,7 @@
}
},
{
- "id": 317,
+ "id": 336,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1404,7 +1486,7 @@
],
"type": {
"type": "reference",
- "id": 249,
+ "id": 265,
"name": "SupabaseClient"
}
}
@@ -1423,7 +1505,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 313
+ 332
]
}
],
@@ -2016,7 +2098,7 @@
}
},
{
- "id": 109,
+ "id": 125,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -2025,7 +2107,7 @@
},
"signatures": [
{
- "id": 110,
+ "id": 126,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -2037,7 +2119,7 @@
},
"parameters": [
{
- "id": 111,
+ "id": 127,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2055,7 +2137,7 @@
{
"type": "reflection",
"declaration": {
- "id": 112,
+ "id": 128,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2064,7 +2146,7 @@
},
"children": [
{
- "id": 113,
+ "id": 129,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -2078,7 +2160,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 122,
+ "line": 137,
"character": 20
}
],
@@ -2106,7 +2188,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 113
+ 129
]
}
]
@@ -2122,7 +2204,7 @@
{
"type": "reflection",
"declaration": {
- "id": 114,
+ "id": 130,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2131,7 +2213,7 @@
},
"children": [
{
- "id": 115,
+ "id": 131,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2141,7 +2223,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 124,
+ "line": 139,
"character": 12
}
],
@@ -2160,7 +2242,7 @@
}
},
{
- "id": 116,
+ "id": 132,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2170,7 +2252,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 125,
+ "line": 140,
"character": 13
}
],
@@ -2194,15 +2276,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 115,
- 116
+ 131,
+ 132
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 123,
+ "line": 138,
"character": 16
}
]
@@ -2213,7 +2295,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 109,
+ "id": 125,
"name": "GoTrueClient.getSessionFromUrl"
}
}
@@ -2221,18 +2303,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 121,
+ "line": 136,
"character": 21
}
],
"inheritedFrom": {
"type": "reference",
- "id": 109,
+ "id": 125,
"name": "GoTrueClient.getSessionFromUrl"
}
},
{
- "id": 121,
+ "id": 137,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -2241,7 +2323,7 @@
},
"signatures": [
{
- "id": 122,
+ "id": 138,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -2254,7 +2336,7 @@
},
"parameters": [
{
- "id": 123,
+ "id": 139,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -2264,7 +2346,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 124,
+ "id": 140,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2273,7 +2355,7 @@
},
"signatures": [
{
- "id": 125,
+ "id": 141,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -2282,7 +2364,7 @@
},
"parameters": [
{
- "id": 126,
+ "id": 142,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -2295,7 +2377,7 @@
}
},
{
- "id": 127,
+ "id": 143,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -2326,7 +2408,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 140,
+ "line": 155,
"character": 31
}
]
@@ -2337,7 +2419,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 128,
+ "id": 144,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2346,7 +2428,7 @@
},
"children": [
{
- "id": 129,
+ "id": 145,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2356,7 +2438,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 141,
+ "line": 156,
"character": 12
}
],
@@ -2375,7 +2457,7 @@
}
},
{
- "id": 130,
+ "id": 146,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2385,7 +2467,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 142,
+ "line": 157,
"character": 13
}
],
@@ -2409,15 +2491,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 129,
- 130
+ 145,
+ 146
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 140,
+ "line": 155,
"character": 91
}
]
@@ -2425,7 +2507,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 121,
+ "id": 137,
"name": "GoTrueClient.onAuthStateChange"
}
}
@@ -2433,18 +2515,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 140,
+ "line": 155,
"character": 21
}
],
"inheritedFrom": {
"type": "reference",
- "id": 121,
+ "id": 137,
"name": "GoTrueClient.onAuthStateChange"
}
},
{
- "id": 87,
+ "id": 103,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -2453,7 +2535,7 @@
},
"signatures": [
{
- "id": 88,
+ "id": 104,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -2469,7 +2551,7 @@
{
"type": "reflection",
"declaration": {
- "id": 89,
+ "id": 105,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2478,7 +2560,7 @@
},
"children": [
{
- "id": 90,
+ "id": 106,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2488,7 +2570,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 92,
+ "line": 107,
"character": 12
}
],
@@ -2507,7 +2589,7 @@
}
},
{
- "id": 92,
+ "id": 108,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2517,7 +2599,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 94,
+ "line": 109,
"character": 13
}
],
@@ -2536,7 +2618,7 @@
}
},
{
- "id": 91,
+ "id": 107,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2546,7 +2628,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 93,
+ "line": 108,
"character": 12
}
],
@@ -2570,16 +2652,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 90,
- 92,
- 91
+ 106,
+ 108,
+ 107
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 91,
+ "line": 106,
"character": 30
}
]
@@ -2590,7 +2672,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 87,
+ "id": 103,
"name": "GoTrueClient.refreshSession"
}
}
@@ -2598,18 +2680,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 91,
+ "line": 106,
"character": 18
}
],
"inheritedFrom": {
"type": "reference",
- "id": 87,
+ "id": 103,
"name": "GoTrueClient.refreshSession"
}
},
{
- "id": 85,
+ "id": 101,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -2618,7 +2700,7 @@
},
"signatures": [
{
- "id": 86,
+ "id": 102,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -2643,7 +2725,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 85,
+ "id": 101,
"name": "GoTrueClient.session"
}
}
@@ -2651,18 +2733,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 87,
+ "line": 102,
"character": 11
}
],
"inheritedFrom": {
"type": "reference",
- "id": 85,
+ "id": 101,
"name": "GoTrueClient.session"
}
},
{
- "id": 106,
+ "id": 122,
"name": "setAuth",
"kind": 2048,
"kindString": "Method",
@@ -2671,7 +2753,7 @@
},
"signatures": [
{
- "id": 107,
+ "id": 123,
"name": "setAuth",
"kind": 4096,
"kindString": "Call signature",
@@ -2683,7 +2765,7 @@
},
"parameters": [
{
- "id": 108,
+ "id": 124,
"name": "access_token",
"kind": 32768,
"kindString": "Parameter",
@@ -2705,7 +2787,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 106,
+ "id": 122,
"name": "GoTrueClient.setAuth"
}
}
@@ -2713,18 +2795,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 116,
+ "line": 131,
"character": 11
}
],
"inheritedFrom": {
"type": "reference",
- "id": 106,
+ "id": 122,
"name": "GoTrueClient.setAuth"
}
},
{
- "id": 100,
+ "id": 116,
"name": "setSession",
"kind": 2048,
"kindString": "Method",
@@ -2733,7 +2815,7 @@
},
"signatures": [
{
- "id": 101,
+ "id": 117,
"name": "setSession",
"kind": 4096,
"kindString": "Call signature",
@@ -2745,7 +2827,7 @@
},
"parameters": [
{
- "id": 102,
+ "id": 118,
"name": "refresh_token",
"kind": 32768,
"kindString": "Parameter",
@@ -2767,7 +2849,7 @@
{
"type": "reflection",
"declaration": {
- "id": 103,
+ "id": 119,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2776,7 +2858,7 @@
},
"children": [
{
- "id": 105,
+ "id": 121,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2786,7 +2868,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 110,
+ "line": 125,
"character": 13
}
],
@@ -2805,7 +2887,7 @@
}
},
{
- "id": 104,
+ "id": 120,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -2815,7 +2897,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 109,
+ "line": 124,
"character": 15
}
],
@@ -2839,15 +2921,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 105,
- 104
+ 121,
+ 120
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 108,
+ "line": 123,
"character": 47
}
]
@@ -2858,7 +2940,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 100,
+ "id": 116,
"name": "GoTrueClient.setSession"
}
}
@@ -2866,18 +2948,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 108,
+ "line": 123,
"character": 14
}
],
"inheritedFrom": {
"type": "reference",
- "id": 100,
+ "id": 116,
"name": "GoTrueClient.setSession"
}
},
{
- "id": 64,
+ "id": 65,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -2886,7 +2968,7 @@
},
"signatures": [
{
- "id": 65,
+ "id": 66,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -2898,7 +2980,7 @@
},
"parameters": [
{
- "id": 66,
+ "id": 67,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -2909,7 +2991,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 67,
+ "id": 68,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2918,7 +3000,7 @@
},
"children": [
{
- "id": 68,
+ "id": 69,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -2931,7 +3013,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
+ "line": 68,
"character": 18
}
],
@@ -2950,7 +3032,7 @@
}
},
{
- "id": 69,
+ "id": 71,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -2963,8 +3045,8 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
- "character": 28
+ "line": 68,
+ "character": 35
}
],
"type": {
@@ -2982,7 +3064,36 @@
}
},
{
- "id": 71,
+ "id": 70,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 68,
+ "character": 25
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 73,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -2995,8 +3106,8 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
- "character": 52
+ "line": 68,
+ "character": 59
}
],
"type": {
@@ -3041,12 +3152,16 @@
{
"type": "stringLiteral",
"value": "discord"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "twitch"
}
]
}
},
{
- "id": 70,
+ "id": 72,
"name": "refreshToken",
"kind": 32,
"kindString": "Variable",
@@ -3059,8 +3174,8 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
- "character": 42
+ "line": 68,
+ "character": 49
}
],
"type": {
@@ -3083,17 +3198,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 68,
69,
71,
- 70
+ 70,
+ 73,
+ 72
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
+ "line": 68,
"character": 11
}
]
@@ -3101,7 +3217,7 @@
}
},
{
- "id": 72,
+ "id": 74,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3119,7 +3235,7 @@
{
"type": "reflection",
"declaration": {
- "id": 73,
+ "id": 75,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3128,7 +3244,7 @@
},
"children": [
{
- "id": 74,
+ "id": 76,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -3139,7 +3255,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 68,
+ "line": 69,
"character": 18
}
],
@@ -3158,7 +3274,7 @@
}
},
{
- "id": 75,
+ "id": 77,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -3169,7 +3285,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 69,
+ "line": 70,
"character": 14
}
],
@@ -3193,8 +3309,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 74,
- 75
+ 76,
+ 77
]
}
]
@@ -3210,7 +3326,7 @@
{
"type": "reflection",
"declaration": {
- "id": 76,
+ "id": 78,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3219,7 +3335,7 @@
},
"children": [
{
- "id": 82,
+ "id": 84,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3229,7 +3345,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 76,
+ "line": 77,
"character": 12
}
],
@@ -3248,7 +3364,7 @@
}
},
{
- "id": 81,
+ "id": 83,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3258,7 +3374,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 75,
+ "line": 76,
"character": 13
}
],
@@ -3277,7 +3393,7 @@
}
},
{
- "id": 79,
+ "id": 81,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -3288,7 +3404,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 73,
+ "line": 74,
"character": 16
}
],
@@ -3298,7 +3414,7 @@
}
},
{
- "id": 77,
+ "id": 79,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3308,7 +3424,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 71,
+ "line": 72,
"character": 15
}
],
@@ -3327,7 +3443,7 @@
}
},
{
- "id": 80,
+ "id": 82,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -3338,7 +3454,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 74,
+ "line": 75,
"character": 11
}
],
@@ -3357,7 +3473,7 @@
}
},
{
- "id": 78,
+ "id": 80,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3367,7 +3483,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 72,
+ "line": 73,
"character": 12
}
],
@@ -3391,19 +3507,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 82,
+ 84,
+ 83,
81,
79,
- 77,
- 80,
- 78
+ 82,
+ 80
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 70,
+ "line": 71,
"character": 16
}
]
@@ -3414,7 +3530,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 64,
+ "id": 65,
"name": "GoTrueClient.signIn"
}
}
@@ -3422,18 +3538,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
+ "line": 68,
"character": 10
}
],
"inheritedFrom": {
"type": "reference",
- "id": 64,
+ "id": 65,
"name": "GoTrueClient.signIn"
}
},
{
- "id": 117,
+ "id": 133,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -3442,7 +3558,7 @@
},
"signatures": [
{
- "id": 118,
+ "id": 134,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -3459,7 +3575,7 @@
{
"type": "reflection",
"declaration": {
- "id": 119,
+ "id": 135,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3468,7 +3584,7 @@
},
"children": [
{
- "id": 120,
+ "id": 136,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3478,7 +3594,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 134,
+ "line": 149,
"character": 13
}
],
@@ -3502,14 +3618,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 120
+ 136
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 133,
+ "line": 148,
"character": 23
}
]
@@ -3520,7 +3636,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 117,
+ "id": 133,
"name": "GoTrueClient.signOut"
}
}
@@ -3528,13 +3644,13 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 133,
+ "line": 148,
"character": 11
}
],
"inheritedFrom": {
"type": "reference",
- "id": 117,
+ "id": 133,
"name": "GoTrueClient.signOut"
}
},
@@ -3593,7 +3709,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 49,
+ "line": 50,
"character": 18
}
],
@@ -3625,7 +3741,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 49,
+ "line": 50,
"character": 28
}
],
@@ -3642,6 +3758,38 @@
}
]
}
+ },
+ {
+ "id": 56,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 50,
+ "character": 35
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
}
],
"groups": [
@@ -3650,14 +3798,15 @@
"kind": 32,
"children": [
54,
- 55
+ 55,
+ 56
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 49,
+ "line": 50,
"character": 11
}
]
@@ -3665,7 +3814,7 @@
}
},
{
- "id": 56,
+ "id": 57,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3683,7 +3832,7 @@
{
"type": "reflection",
"declaration": {
- "id": 57,
+ "id": 58,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3692,7 +3841,7 @@
},
"children": [
{
- "id": 58,
+ "id": 59,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -3703,7 +3852,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 50,
+ "line": 51,
"character": 18
}
],
@@ -3727,7 +3876,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 58
+ 59
]
}
]
@@ -3743,7 +3892,7 @@
{
"type": "reflection",
"declaration": {
- "id": 59,
+ "id": 60,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3752,7 +3901,7 @@
},
"children": [
{
- "id": 63,
+ "id": 64,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3762,7 +3911,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 55,
+ "line": 56,
"character": 12
}
],
@@ -3785,7 +3934,7 @@
}
},
{
- "id": 62,
+ "id": 63,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3795,7 +3944,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 54,
+ "line": 55,
"character": 13
}
],
@@ -3814,7 +3963,7 @@
}
},
{
- "id": 61,
+ "id": 62,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3824,7 +3973,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 53,
+ "line": 54,
"character": 15
}
],
@@ -3843,7 +3992,7 @@
}
},
{
- "id": 60,
+ "id": 61,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3853,7 +4002,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 52,
+ "line": 53,
"character": 12
}
],
@@ -3877,17 +4026,17 @@
"title": "Variables",
"kind": 32,
"children": [
+ 64,
63,
62,
- 61,
- 60
+ 61
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 51,
+ "line": 52,
"character": 16
}
]
@@ -3906,7 +4055,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 49,
+ "line": 50,
"character": 10
}
],
@@ -3917,7 +4066,7 @@
}
},
{
- "id": 93,
+ "id": 109,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -3926,7 +4075,7 @@
},
"signatures": [
{
- "id": 94,
+ "id": 110,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -3938,7 +4087,7 @@
},
"parameters": [
{
- "id": 95,
+ "id": 111,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -3957,7 +4106,7 @@
{
"type": "reflection",
"declaration": {
- "id": 96,
+ "id": 112,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3966,7 +4115,7 @@
},
"children": [
{
- "id": 97,
+ "id": 113,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3976,7 +4125,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 100,
+ "line": 115,
"character": 12
}
],
@@ -3995,7 +4144,7 @@
}
},
{
- "id": 99,
+ "id": 115,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4005,7 +4154,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 102,
+ "line": 117,
"character": 13
}
],
@@ -4024,7 +4173,7 @@
}
},
{
- "id": 98,
+ "id": 114,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4034,7 +4183,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 101,
+ "line": 116,
"character": 12
}
],
@@ -4058,16 +4207,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 97,
- 99,
- 98
+ 113,
+ 115,
+ 114
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 99,
+ "line": 114,
"character": 48
}
]
@@ -4078,7 +4227,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 93,
+ "id": 109,
"name": "GoTrueClient.update"
}
}
@@ -4086,18 +4235,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 99,
+ "line": 114,
"character": 10
}
],
"inheritedFrom": {
"type": "reference",
- "id": 93,
+ "id": 109,
"name": "GoTrueClient.update"
}
},
{
- "id": 83,
+ "id": 99,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -4106,7 +4255,7 @@
},
"signatures": [
{
- "id": 84,
+ "id": 100,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -4132,7 +4281,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 83,
+ "id": 99,
"name": "GoTrueClient.user"
}
}
@@ -4140,163 +4289,50 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 83,
+ "line": 98,
"character": 8
}
],
"inheritedFrom": {
"type": "reference",
- "id": 83,
+ "id": 99,
"name": "GoTrueClient.user"
}
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 29
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 42,
- 45,
- 44,
- 43,
- 47,
- 46,
- 49,
- 48
- ]
},
{
- "title": "Methods",
+ "id": 85,
+ "name": "verifyOTP",
"kind": 2048,
- "children": [
- 109,
- 121,
- 87,
- 85,
- 106,
- 100,
- 64,
- 117,
- 50,
- 93,
- 83
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseAuthClient.ts",
- "line": 3,
- "character": 31
- }
- ],
- "extendedTypes": [
- {
- "type": "reference",
- "name": "GoTrueClient"
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 28
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseAuthClient.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 157,
- "name": "\"lib/SupabaseQueryBuilder\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts",
- "children": [
- {
- "id": 158,
- "name": "SupabaseQueryBuilder",
- "kind": 128,
- "kindString": "Class",
- "flags": {
- "isExported": true
- },
- "typeParameter": [
- {
- "id": 159,
- "name": "T",
- "kind": 131072,
- "kindString": "Type parameter",
- "flags": {
- "isExported": true
- }
- }
- ],
- "children": [
- {
- "id": 162,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
+ "kindString": "Method",
"flags": {
"isExported": true
},
"signatures": [
{
- "id": 163,
- "name": "new SupabaseQueryBuilder",
- "kind": 16384,
- "kindString": "Constructor signature",
+ "id": 86,
+ "name": "verifyOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {
"isExported": true
},
+ "comment": {
+ "shortText": "Log in a user given a User supplied OTP received via mobile."
+ },
"parameters": [
{
- "id": 164,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 165,
+ "id": 87,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
- "originalName": "__1",
+ "originalName": "__0",
"type": {
"type": "reflection",
"declaration": {
- "id": 166,
+ "id": 88,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4305,96 +4341,21 @@
},
"children": [
{
- "id": 167,
- "name": "headers",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/SupabaseQueryBuilder.ts",
- "line": 13,
- "character": 13
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 168,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 169,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 170,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ]
- }
- }
- },
- {
- "id": 172,
- "name": "realtime",
+ "id": 89,
+ "name": "phone",
"kind": 32,
"kindString": "Variable",
"flags": {
"isExported": true
},
- "sources": [
- {
- "fileName": "src/lib/SupabaseQueryBuilder.ts",
- "line": 15,
- "character": 14
- }
- ],
- "type": {
- "type": "reference",
- "name": "RealtimeClient"
- }
- },
- {
- "id": 171,
- "name": "schema",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "comment": {
+ "text": "The user's phone number."
},
"sources": [
{
- "fileName": "src/lib/SupabaseQueryBuilder.ts",
- "line": 14,
- "character": 12
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 85,
+ "character": 21
}
],
"type": {
@@ -4403,18 +4364,21 @@
}
},
{
- "id": 173,
- "name": "table",
+ "id": 90,
+ "name": "token",
"kind": 32,
"kindString": "Variable",
"flags": {
"isExported": true
},
+ "comment": {
+ "text": "The user's password."
+ },
"sources": [
{
- "fileName": "src/lib/SupabaseQueryBuilder.ts",
- "line": 16,
- "character": 11
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 85,
+ "character": 28
}
],
"type": {
@@ -4428,49 +4392,595 @@
"title": "Variables",
"kind": 32,
"children": [
- 167,
- 172,
- 171,
- 173
+ 89,
+ 90
]
}
],
"sources": [
{
- "fileName": "src/lib/SupabaseQueryBuilder.ts",
- "line": 11,
- "character": 16
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 85,
+ "character": 14
}
]
}
}
+ },
+ {
+ "id": 91,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 92,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 93,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 86,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 93
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
}
],
"type": {
"type": "reference",
- "id": 158,
- "name": "SupabaseQueryBuilder"
- },
- "overwrites": {
- "type": "reference",
- "name": "PostgrestQueryBuilder.__constructor"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseQueryBuilder.ts",
- "line": 8,
- "character": 35
- }
- ],
- "overwrites": {
- "type": "reference",
- "name": "PostgrestQueryBuilder.__constructor"
- }
- },
- {
- "id": 161,
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 94,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 98,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 91,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 97,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 90,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 96,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 89,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 95,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 88,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 98,
+ 97,
+ 96,
+ 95
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 87,
+ "character": 16
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 85,
+ "name": "GoTrueClient.verifyOTP"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 85,
+ "character": 13
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 85,
+ "name": "GoTrueClient.verifyOTP"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [
+ 29
+ ]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 42,
+ 45,
+ 44,
+ 43,
+ 47,
+ 46,
+ 49,
+ 48
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 125,
+ 137,
+ 103,
+ 101,
+ 122,
+ 116,
+ 65,
+ 133,
+ 50,
+ 109,
+ 99,
+ 85
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseAuthClient.ts",
+ "line": 3,
+ "character": 31
+ }
+ ],
+ "extendedTypes": [
+ {
+ "type": "reference",
+ "name": "GoTrueClient"
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Classes",
+ "kind": 128,
+ "children": [
+ 28
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseAuthClient.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 173,
+ "name": "\"lib/SupabaseQueryBuilder\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts",
+ "children": [
+ {
+ "id": 174,
+ "name": "SupabaseQueryBuilder",
+ "kind": 128,
+ "kindString": "Class",
+ "flags": {
+ "isExported": true
+ },
+ "typeParameter": [
+ {
+ "id": 175,
+ "name": "T",
+ "kind": 131072,
+ "kindString": "Type parameter",
+ "flags": {
+ "isExported": true
+ }
+ }
+ ],
+ "children": [
+ {
+ "id": 178,
+ "name": "constructor",
+ "kind": 512,
+ "kindString": "Constructor",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 179,
+ "name": "new SupabaseQueryBuilder",
+ "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": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__1",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 182,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 183,
+ "name": "headers",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 13,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 184,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "indexSignature": [
+ {
+ "id": 185,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 186,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 188,
+ "name": "realtime",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 15,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "name": "RealtimeClient"
+ }
+ },
+ {
+ "id": 187,
+ "name": "schema",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 14,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 189,
+ "name": "table",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 16,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 183,
+ 188,
+ 187,
+ 189
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 11,
+ "character": 16
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 174,
+ "name": "SupabaseQueryBuilder"
+ },
+ "overwrites": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.__constructor"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/SupabaseQueryBuilder.ts",
+ "line": 8,
+ "character": 35
+ }
+ ],
+ "overwrites": {
+ "type": "reference",
+ "name": "PostgrestQueryBuilder.__constructor"
+ }
+ },
+ {
+ "id": 177,
"name": "_realtime",
"kind": 1024,
"kindString": "Property",
@@ -4491,7 +5001,7 @@
}
},
{
- "id": 160,
+ "id": 176,
"name": "_subscription",
"kind": 1024,
"kindString": "Property",
@@ -4508,12 +5018,12 @@
],
"type": {
"type": "reference",
- "id": 132,
+ "id": 148,
"name": "SupabaseRealtimeClient"
}
},
{
- "id": 232,
+ "id": 248,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -4559,12 +5069,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 232,
+ "id": 248,
"name": "PostgrestBuilder.body"
}
},
{
- "id": 227,
+ "id": 243,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -4582,7 +5092,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 228,
+ "id": 244,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4591,7 +5101,7 @@
},
"indexSignature": [
{
- "id": 229,
+ "id": 245,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -4600,7 +5110,7 @@
},
"parameters": [
{
- "id": 230,
+ "id": 246,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -4630,12 +5140,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 227,
+ "id": 243,
"name": "PostgrestBuilder.headers"
}
},
{
- "id": 225,
+ "id": 241,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -4677,12 +5187,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 225,
+ "id": 241,
"name": "PostgrestBuilder.method"
}
},
{
- "id": 231,
+ "id": 247,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -4713,12 +5223,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 231,
+ "id": 247,
"name": "PostgrestBuilder.schema"
}
},
{
- "id": 233,
+ "id": 249,
"name": "shouldThrowOnError",
"kind": 1024,
"kindString": "Property",
@@ -4753,12 +5263,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 233,
+ "id": 249,
"name": "PostgrestBuilder.shouldThrowOnError"
}
},
{
- "id": 226,
+ "id": 242,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -4779,12 +5289,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 226,
+ "id": 242,
"name": "PostgrestBuilder.url"
}
},
{
- "id": 219,
+ "id": 235,
"name": "delete",
"kind": 2048,
"kindString": "Method",
@@ -4793,7 +5303,7 @@
},
"signatures": [
{
- "id": 220,
+ "id": 236,
"name": "delete",
"kind": 4096,
"kindString": "Call signature",
@@ -4805,7 +5315,7 @@
},
"parameters": [
{
- "id": 221,
+ "id": 237,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -4817,7 +5327,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 222,
+ "id": 238,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4826,7 +5336,7 @@
},
"children": [
{
- "id": 224,
+ "id": 240,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -4870,7 +5380,7 @@
}
},
{
- "id": 223,
+ "id": 239,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -4911,8 +5421,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 224,
- 223
+ 240,
+ 239
]
}
],
@@ -4939,7 +5449,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 219,
+ "id": 235,
"name": "PostgrestQueryBuilder.delete"
}
}
@@ -4953,12 +5463,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 219,
+ "id": 235,
"name": "PostgrestQueryBuilder.delete"
}
},
{
- "id": 188,
+ "id": 204,
"name": "insert",
"kind": 2048,
"kindString": "Method",
@@ -4967,7 +5477,7 @@
},
"signatures": [
{
- "id": 189,
+ "id": 205,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
@@ -4979,7 +5489,7 @@
},
"parameters": [
{
- "id": 190,
+ "id": 206,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -5019,7 +5529,7 @@
}
},
{
- "id": 191,
+ "id": 207,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -5037,7 +5547,7 @@
{
"type": "reflection",
"declaration": {
- "id": 192,
+ "id": 208,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5046,7 +5556,7 @@
},
"children": [
{
- "id": 194,
+ "id": 210,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -5084,7 +5594,7 @@
}
},
{
- "id": 193,
+ "id": 209,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -5119,8 +5629,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 194,
- 193
+ 210,
+ 209
]
}
]
@@ -5142,12 +5652,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 188,
+ "id": 204,
"name": "PostgrestQueryBuilder.insert"
}
},
{
- "id": 195,
+ "id": 211,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
@@ -5164,7 +5674,7 @@
},
"parameters": [
{
- "id": 196,
+ "id": 212,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -5201,7 +5711,7 @@
}
},
{
- "id": 197,
+ "id": 213,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -5219,7 +5729,7 @@
{
"type": "reflection",
"declaration": {
- "id": 198,
+ "id": 214,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5228,7 +5738,7 @@
},
"children": [
{
- "id": 202,
+ "id": 218,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -5266,7 +5776,7 @@
}
},
{
- "id": 200,
+ "id": 216,
"name": "onConflict",
"kind": 32,
"kindString": "Variable",
@@ -5296,7 +5806,7 @@
}
},
{
- "id": 201,
+ "id": 217,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -5326,7 +5836,7 @@
}
},
{
- "id": 199,
+ "id": 215,
"name": "upsert",
"kind": 32,
"kindString": "Variable",
@@ -5365,10 +5875,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 202,
- 200,
- 201,
- 199
+ 218,
+ 216,
+ 217,
+ 215
]
}
]
@@ -5390,7 +5900,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 188,
+ "id": 204,
"name": "PostgrestQueryBuilder.insert"
}
}
@@ -5409,12 +5919,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 188,
+ "id": 204,
"name": "PostgrestQueryBuilder.insert"
}
},
{
- "id": 174,
+ "id": 190,
"name": "on",
"kind": 2048,
"kindString": "Method",
@@ -5423,7 +5933,7 @@
},
"signatures": [
{
- "id": 175,
+ "id": 191,
"name": "on",
"kind": 4096,
"kindString": "Call signature",
@@ -5435,7 +5945,7 @@
},
"parameters": [
{
- "id": 176,
+ "id": 192,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -5452,7 +5962,7 @@
}
},
{
- "id": 177,
+ "id": 193,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -5465,7 +5975,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 178,
+ "id": 194,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5474,7 +5984,7 @@
},
"signatures": [
{
- "id": 179,
+ "id": 195,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5483,7 +5993,7 @@
},
"parameters": [
{
- "id": 180,
+ "id": 196,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -5522,7 +6032,7 @@
],
"type": {
"type": "reference",
- "id": 132,
+ "id": 148,
"name": "SupabaseRealtimeClient"
}
}
@@ -5536,7 +6046,7 @@
]
},
{
- "id": 181,
+ "id": 197,
"name": "select",
"kind": 2048,
"kindString": "Method",
@@ -5545,7 +6055,7 @@
},
"signatures": [
{
- "id": 182,
+ "id": 198,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
@@ -5557,7 +6067,7 @@
},
"parameters": [
{
- "id": 183,
+ "id": 199,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -5583,7 +6093,7 @@
}
},
{
- "id": 184,
+ "id": 200,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5595,7 +6105,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 185,
+ "id": 201,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5604,7 +6114,7 @@
},
"children": [
{
- "id": 187,
+ "id": 203,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -5648,7 +6158,7 @@
}
},
{
- "id": 186,
+ "id": 202,
"name": "head",
"kind": 32,
"kindString": "Variable",
@@ -5689,8 +6199,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 187,
- 186
+ 203,
+ 202
]
}
],
@@ -5717,7 +6227,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 181,
+ "id": 197,
"name": "PostgrestQueryBuilder.select"
}
}
@@ -5731,12 +6241,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 181,
+ "id": 197,
"name": "PostgrestQueryBuilder.select"
}
},
{
- "id": 236,
+ "id": 252,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -5745,7 +6255,7 @@
},
"signatures": [
{
- "id": 237,
+ "id": 253,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -5754,7 +6264,7 @@
},
"typeParameter": [
{
- "id": 238,
+ "id": 254,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -5763,7 +6273,7 @@
}
},
{
- "id": 239,
+ "id": 255,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -5774,7 +6284,7 @@
],
"parameters": [
{
- "id": 240,
+ "id": 256,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -5788,7 +6298,7 @@
{
"type": "reflection",
"declaration": {
- "id": 241,
+ "id": 257,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5797,7 +6307,7 @@
},
"signatures": [
{
- "id": 242,
+ "id": 258,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5806,7 +6316,7 @@
},
"parameters": [
{
- "id": 243,
+ "id": 259,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -5887,7 +6397,7 @@
}
},
{
- "id": 244,
+ "id": 260,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -5901,7 +6411,7 @@
{
"type": "reflection",
"declaration": {
- "id": 245,
+ "id": 261,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5910,7 +6420,7 @@
},
"signatures": [
{
- "id": 246,
+ "id": 262,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5919,7 +6429,7 @@
},
"parameters": [
{
- "id": 247,
+ "id": 263,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -6017,7 +6527,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 236,
+ "id": 252,
"name": "PostgrestBuilder.then"
}
}
@@ -6031,12 +6541,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 236,
+ "id": 252,
"name": "PostgrestBuilder.then"
}
},
{
- "id": 234,
+ "id": 250,
"name": "throwOnError",
"kind": 2048,
"kindString": "Method",
@@ -6045,7 +6555,7 @@
},
"signatures": [
{
- "id": 235,
+ "id": 251,
"name": "throwOnError",
"kind": 4096,
"kindString": "Call signature",
@@ -6068,7 +6578,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 234,
+ "id": 250,
"name": "PostgrestBuilder.throwOnError"
}
}
@@ -6082,12 +6592,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 234,
+ "id": 250,
"name": "PostgrestBuilder.throwOnError"
}
},
{
- "id": 212,
+ "id": 228,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -6096,7 +6606,7 @@
},
"signatures": [
{
- "id": 213,
+ "id": 229,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -6108,7 +6618,7 @@
},
"parameters": [
{
- "id": 214,
+ "id": 230,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -6130,7 +6640,7 @@
}
},
{
- "id": 215,
+ "id": 231,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -6142,7 +6652,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 216,
+ "id": 232,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6151,7 +6661,7 @@
},
"children": [
{
- "id": 218,
+ "id": 234,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -6195,7 +6705,7 @@
}
},
{
- "id": 217,
+ "id": 233,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -6236,8 +6746,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 218,
- 217
+ 234,
+ 233
]
}
],
@@ -6264,7 +6774,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 212,
+ "id": 228,
"name": "PostgrestQueryBuilder.update"
}
}
@@ -6278,12 +6788,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 212,
+ "id": 228,
"name": "PostgrestQueryBuilder.update"
}
},
{
- "id": 203,
+ "id": 219,
"name": "upsert",
"kind": 2048,
"kindString": "Method",
@@ -6292,7 +6802,7 @@
},
"signatures": [
{
- "id": 204,
+ "id": 220,
"name": "upsert",
"kind": 4096,
"kindString": "Call signature",
@@ -6304,7 +6814,7 @@
},
"parameters": [
{
- "id": 205,
+ "id": 221,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -6344,7 +6854,7 @@
}
},
{
- "id": 206,
+ "id": 222,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -6356,7 +6866,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 207,
+ "id": 223,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6365,7 +6875,7 @@
},
"children": [
{
- "id": 210,
+ "id": 226,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -6409,7 +6919,7 @@
}
},
{
- "id": 211,
+ "id": 227,
"name": "ignoreDuplicates",
"kind": 32,
"kindString": "Variable",
@@ -6445,7 +6955,7 @@
}
},
{
- "id": 208,
+ "id": 224,
"name": "onConflict",
"kind": 32,
"kindString": "Variable",
@@ -6477,7 +6987,7 @@
}
},
{
- "id": 209,
+ "id": 225,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -6518,10 +7028,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 210,
- 211,
- 208,
- 209
+ 226,
+ 227,
+ 224,
+ 225
]
}
],
@@ -6548,7 +7058,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 203,
+ "id": 219,
"name": "PostgrestQueryBuilder.upsert"
}
}
@@ -6562,7 +7072,7 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 203,
+ "id": 219,
"name": "PostgrestQueryBuilder.upsert"
}
}
@@ -6572,35 +7082,35 @@
"title": "Constructors",
"kind": 512,
"children": [
- 162
+ 178
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 161,
- 160,
- 232,
- 227,
- 225,
- 231,
- 233,
- 226
+ 177,
+ 176,
+ 248,
+ 243,
+ 241,
+ 247,
+ 249,
+ 242
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 219,
- 188,
- 174,
- 181,
- 236,
- 234,
- 212,
- 203
+ 235,
+ 204,
+ 190,
+ 197,
+ 252,
+ 250,
+ 228,
+ 219
]
}
],
@@ -6648,7 +7158,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 158
+ 174
]
}
],
@@ -6661,7 +7171,7 @@
]
},
{
- "id": 131,
+ "id": 147,
"name": "\"lib/SupabaseRealtimeClient\"",
"kind": 1,
"kindString": "Module",
@@ -6671,7 +7181,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts",
"children": [
{
- "id": 132,
+ "id": 148,
"name": "SupabaseRealtimeClient",
"kind": 128,
"kindString": "Class",
@@ -6680,7 +7190,7 @@
},
"children": [
{
- "id": 134,
+ "id": 150,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -6689,7 +7199,7 @@
},
"signatures": [
{
- "id": 135,
+ "id": 151,
"name": "new SupabaseRealtimeClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -6698,7 +7208,7 @@
},
"parameters": [
{
- "id": 136,
+ "id": 152,
"name": "socket",
"kind": 32768,
"kindString": "Parameter",
@@ -6711,7 +7221,7 @@
}
},
{
- "id": 137,
+ "id": 153,
"name": "schema",
"kind": 32768,
"kindString": "Parameter",
@@ -6724,7 +7234,7 @@
}
},
{
- "id": 138,
+ "id": 154,
"name": "tableName",
"kind": 32768,
"kindString": "Parameter",
@@ -6739,7 +7249,7 @@
],
"type": {
"type": "reference",
- "id": 132,
+ "id": 148,
"name": "SupabaseRealtimeClient"
}
}
@@ -6753,7 +7263,7 @@
]
},
{
- "id": 133,
+ "id": 149,
"name": "subscription",
"kind": 1024,
"kindString": "Property",
@@ -6773,7 +7283,7 @@
}
},
{
- "id": 139,
+ "id": 155,
"name": "getPayloadRecords",
"kind": 2048,
"kindString": "Method",
@@ -6783,7 +7293,7 @@
},
"signatures": [
{
- "id": 140,
+ "id": 156,
"name": "getPayloadRecords",
"kind": 4096,
"kindString": "Call signature",
@@ -6792,7 +7302,7 @@
},
"parameters": [
{
- "id": 141,
+ "id": 157,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -6808,7 +7318,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 142,
+ "id": 158,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6817,7 +7327,7 @@
},
"children": [
{
- "id": 143,
+ "id": 159,
"name": "new",
"kind": 32,
"kindString": "Variable",
@@ -6834,7 +7344,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 144,
+ "id": 160,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6845,7 +7355,7 @@
}
},
{
- "id": 145,
+ "id": 161,
"name": "old",
"kind": 32,
"kindString": "Variable",
@@ -6862,7 +7372,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 146,
+ "id": 162,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6878,8 +7388,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 143,
- 145
+ 159,
+ 161
]
}
]
@@ -6896,7 +7406,7 @@
]
},
{
- "id": 147,
+ "id": 163,
"name": "on",
"kind": 2048,
"kindString": "Method",
@@ -6905,7 +7415,7 @@
},
"signatures": [
{
- "id": 148,
+ "id": 164,
"name": "on",
"kind": 4096,
"kindString": "Call signature",
@@ -6917,7 +7427,7 @@
},
"parameters": [
{
- "id": 149,
+ "id": 165,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -6934,7 +7444,7 @@
}
},
{
- "id": 150,
+ "id": 166,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -6947,7 +7457,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 151,
+ "id": 167,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6956,7 +7466,7 @@
},
"signatures": [
{
- "id": 152,
+ "id": 168,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -6965,7 +7475,7 @@
},
"parameters": [
{
- "id": 153,
+ "id": 169,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -7017,7 +7527,7 @@
]
},
{
- "id": 154,
+ "id": 170,
"name": "subscribe",
"kind": 2048,
"kindString": "Method",
@@ -7026,7 +7536,7 @@
},
"signatures": [
{
- "id": 155,
+ "id": 171,
"name": "subscribe",
"kind": 4096,
"kindString": "Call signature",
@@ -7038,7 +7548,7 @@
},
"parameters": [
{
- "id": 156,
+ "id": 172,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -7072,23 +7582,23 @@
"title": "Constructors",
"kind": 512,
"children": [
- 134
+ 150
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 133
+ 149
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 139,
- 147,
- 154
+ 155,
+ 163,
+ 170
]
}
],
@@ -7106,7 +7616,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 132
+ 148
]
}
],
@@ -7176,7 +7686,7 @@
]
},
{
- "id": 318,
+ "id": 337,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -7186,7 +7696,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts",
"children": [
{
- "id": 319,
+ "id": 338,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -7195,7 +7705,7 @@
},
"signatures": [
{
- "id": 320,
+ "id": 339,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -7222,7 +7732,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 319
+ 338
]
}
],
@@ -7823,13 +8333,13 @@
"title": "Modules",
"kind": 1,
"children": [
- 248,
- 312,
+ 264,
+ 331,
27,
- 157,
- 131,
+ 173,
+ 147,
1,
- 318,
+ 337,
4
]
}
@@ -7843,7 +8353,7 @@
"originalName": "",
"children": [
{
- "id": 197,
+ "id": 207,
"name": "\"GoTrueApi\"",
"kind": 1,
"kindString": "Module",
@@ -7853,7 +8363,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",
"children": [
{
- "id": 198,
+ "id": 208,
"name": "GoTrueApi",
"kind": 128,
"kindString": "Class",
@@ -7862,7 +8372,7 @@
},
"children": [
{
- "id": 205,
+ "id": 215,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -7871,7 +8381,7 @@
},
"signatures": [
{
- "id": 206,
+ "id": 216,
"name": "new GoTrueApi",
"kind": 16384,
"kindString": "Constructor signature",
@@ -7880,7 +8390,7 @@
},
"parameters": [
{
- "id": 207,
+ "id": 217,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -7891,7 +8401,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 208,
+ "id": 218,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7900,7 +8410,7 @@
},
"children": [
{
- "id": 214,
+ "id": 224,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -7923,14 +8433,14 @@
},
{
"type": "reference",
- "id": 92,
+ "id": 97,
"name": "CookieOptions"
}
]
}
},
{
- "id": 210,
+ "id": 220,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -7947,7 +8457,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 211,
+ "id": 221,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7956,7 +8466,7 @@
},
"indexSignature": [
{
- "id": 212,
+ "id": 222,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -7965,7 +8475,7 @@
},
"parameters": [
{
- "id": 213,
+ "id": 223,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -7988,7 +8498,7 @@
}
},
{
- "id": 209,
+ "id": 219,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -8014,9 +8524,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 214,
- 210,
- 209
+ 224,
+ 220,
+ 219
]
}
],
@@ -8033,7 +8543,7 @@
],
"type": {
"type": "reference",
- "id": 198,
+ "id": 208,
"name": "GoTrueApi"
}
}
@@ -8047,7 +8557,7 @@
]
},
{
- "id": 204,
+ "id": 214,
"name": "cookieOptions",
"kind": 1024,
"kindString": "Property",
@@ -8064,12 +8574,12 @@
],
"type": {
"type": "reference",
- "id": 92,
+ "id": 97,
"name": "CookieOptions"
}
},
{
- "id": 200,
+ "id": 210,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -8087,7 +8597,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 201,
+ "id": 211,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8096,7 +8606,7 @@
},
"indexSignature": [
{
- "id": 202,
+ "id": 212,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -8105,7 +8615,7 @@
},
"parameters": [
{
- "id": 203,
+ "id": 213,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -8135,7 +8645,7 @@
}
},
{
- "id": 199,
+ "id": 209,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -8156,7 +8666,7 @@
}
},
{
- "id": 264,
+ "id": 305,
"name": "_createRequestHeaders",
"kind": 2048,
"kindString": "Method",
@@ -8166,7 +8676,7 @@
},
"signatures": [
{
- "id": 265,
+ "id": 306,
"name": "_createRequestHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -8178,7 +8688,7 @@
},
"parameters": [
{
- "id": 266,
+ "id": 307,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -8197,7 +8707,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 267,
+ "id": 308,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8211,13 +8721,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 166,
+ "line": 247,
"character": 31
}
]
},
{
- "id": 295,
+ "id": 336,
"name": "deleteUser",
"kind": 2048,
"kindString": "Method",
@@ -8226,7 +8736,7 @@
},
"signatures": [
{
- "id": 296,
+ "id": 337,
"name": "deleteUser",
"kind": 4096,
"kindString": "Call signature",
@@ -8238,7 +8748,7 @@
},
"parameters": [
{
- "id": 297,
+ "id": 338,
"name": "uid",
"kind": 32768,
"kindString": "Parameter",
@@ -8254,7 +8764,7 @@
}
},
{
- "id": 298,
+ "id": 339,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -8276,7 +8786,7 @@
{
"type": "reflection",
"declaration": {
- "id": 299,
+ "id": 340,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8285,7 +8795,7 @@
},
"children": [
{
- "id": 301,
+ "id": 342,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8295,7 +8805,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 254,
+ "line": 335,
"character": 38
}
],
@@ -8315,7 +8825,7 @@
}
},
{
- "id": 302,
+ "id": 343,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8325,7 +8835,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 254,
+ "line": 335,
"character": 58
}
],
@@ -8344,7 +8854,815 @@
}
},
{
- "id": 300,
+ "id": 341,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 335,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 342,
+ 343,
+ 341
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 335,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 332,
+ "character": 18
+ }
+ ]
+ },
+ {
+ "id": 361,
+ "name": "generateLink",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 362,
+ "name": "generateLink",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Generates links to be sent via email or other."
+ },
+ "parameters": [
+ {
+ "id": 363,
+ "name": "type",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")."
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "signup"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "magiclink"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "recovery"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "invite"
+ }
+ ]
+ }
+ },
+ {
+ "id": 364,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's email."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 365,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 366,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 368,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 432,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 367,
+ "name": "password",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 431,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 369,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 433,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 368,
+ 367,
+ 369
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 430,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 370,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 371,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Optional user metadata. For signup only."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 435,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 372,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 435,
+ "character": 49
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 371,
+ 372
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 435,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 427,
+ "character": 20
+ }
+ ]
+ },
+ {
+ "id": 314,
+ "name": "getUrlForProvider",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 315,
+ "name": "getUrlForProvider",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Generates the relevant login URL for a third-party provider."
+ },
+ "parameters": [
+ {
+ "id": 316,
+ "name": "provider",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "One of the providers supported by GoTrue."
+ },
+ "type": {
+ "type": "reference",
+ "id": 112,
+ "name": "Provider"
+ }
+ },
+ {
+ "id": 317,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 318,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 319,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 279,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 320,
+ "name": "scopes",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 280,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 319,
+ 320
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 278,
+ "character": 12
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 276,
+ "character": 19
+ }
+ ]
+ },
+ {
+ "id": 321,
+ "name": "getUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 322,
+ "name": "getUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Gets the user details."
+ },
+ "parameters": [
+ {
+ "id": 323,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A valid, logged-in JWT.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 324,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 326,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 299,
+ "character": 38
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 327,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 299,
+ "character": 58
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 325,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 299,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 326,
+ 327,
+ 325
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 299,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 297,
+ "character": 15
+ }
+ ]
+ },
+ {
+ "id": 354,
+ "name": "getUserByCookie",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 355,
+ "name": "getUserByCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ },
+ "parameters": [
+ {
+ "id": 356,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 357,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 359,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 403,
+ "character": 38
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 360,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 403,
+ "character": 58
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 358,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8354,7 +9672,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 254,
+ "line": 403,
"character": 19
}
],
@@ -8379,16 +9697,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 301,
- 302,
- 300
+ 359,
+ 360,
+ 358
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 254,
+ "line": 403,
"character": 13
}
]
@@ -8402,14 +9720,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 251,
- "character": 18
+ "line": 401,
+ "character": 23
}
]
},
{
- "id": 273,
- "name": "getUrlForProvider",
+ "id": 286,
+ "name": "inviteUserByEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -8417,36 +9735,35 @@
},
"signatures": [
{
- "id": 274,
- "name": "getUrlForProvider",
+ "id": 287,
+ "name": "inviteUserByEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Generates the relevant login URL for a third-party provider."
+ "shortText": "Sends an invite link to an email address."
},
"parameters": [
{
- "id": 275,
- "name": "provider",
+ "id": 288,
+ "name": "email",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "One of the providers supported by GoTrue."
+ "text": "The email address of the user."
},
"type": {
- "type": "reference",
- "id": 103,
- "name": "Provider"
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 276,
+ "id": 289,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -8456,7 +9773,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 277,
+ "id": 290,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8465,7 +9782,7 @@
},
"children": [
{
- "id": 278,
+ "id": 291,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -8476,7 +9793,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 198,
+ "line": 202,
"character": 16
}
],
@@ -8493,33 +9810,98 @@
}
]
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 279,
- "name": "scopes",
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 291
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 201,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 292,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 293,
+ "name": "data",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true,
- "isOptional": true
+ "isExported": true
},
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 199,
- "character": 12
+ "line": 204,
+ "character": 19
}
],
"type": {
"type": "union",
"types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
{
"type": "intrinsic",
- "name": "undefined"
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 294,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 204,
+ "character": 39
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
},
{
"type": "intrinsic",
- "name": "string"
+ "name": "null"
}
]
}
@@ -8530,39 +9912,36 @@
"title": "Variables",
"kind": 32,
"children": [
- 278,
- 279
+ 293,
+ 294
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 197,
- "character": 12
+ "line": 204,
+ "character": 13
}
]
}
}
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
+ ],
+ "name": "Promise"
}
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 195,
- "character": 19
+ "line": 199,
+ "character": 25
}
]
},
{
- "id": 280,
- "name": "getUser",
+ "id": 344,
+ "name": "refreshAccessToken",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -8570,27 +9949,27 @@
},
"signatures": [
{
- "id": 281,
- "name": "getUser",
+ "id": 345,
+ "name": "refreshAccessToken",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Gets the user details."
+ "shortText": "Generates a new JWT."
},
"parameters": [
{
- "id": 282,
- "name": "jwt",
+ "id": 346,
+ "name": "refreshToken",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "A valid, logged-in JWT.\n"
+ "text": "A valid refresh token that was returned on login.\n"
},
"type": {
"type": "intrinsic",
@@ -8604,7 +9983,7 @@
{
"type": "reflection",
"declaration": {
- "id": 283,
+ "id": 347,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8613,7 +9992,7 @@
},
"children": [
{
- "id": 285,
+ "id": 348,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8623,8 +10002,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 218,
- "character": 38
+ "line": 356,
+ "character": 19
}
],
"type": {
@@ -8632,8 +10011,8 @@
"types": [
{
"type": "reference",
- "id": 58,
- "name": "User"
+ "id": 50,
+ "name": "Session"
},
{
"type": "intrinsic",
@@ -8643,7 +10022,7 @@
}
},
{
- "id": 286,
+ "id": 349,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8653,8 +10032,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 218,
- "character": 58
+ "line": 356,
+ "character": 42
}
],
"type": {
@@ -8670,36 +10049,6 @@
}
]
}
- },
- {
- "id": 284,
- "name": "user",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 218,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 58,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
}
],
"groups": [
@@ -8707,16 +10056,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 285,
- 286,
- 284
+ 348,
+ 349
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 218,
+ "line": 356,
"character": 13
}
]
@@ -8730,14 +10078,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 216,
- "character": 15
+ "line": 354,
+ "character": 26
}
]
},
{
- "id": 313,
- "name": "getUserByCookie",
+ "id": 295,
+ "name": "resetPasswordForEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -8745,38 +10093,45 @@
},
"signatures": [
{
- "id": 314,
- "name": "getUserByCookie",
+ "id": 296,
+ "name": "resetPasswordForEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ "shortText": "Sends a reset request to an email address."
},
"parameters": [
{
- "id": 315,
- "name": "req",
+ "id": 297,
+ "name": "email",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
+ "comment": {
+ "text": "The email address of the user."
+ },
"type": {
"type": "intrinsic",
- "name": "any"
+ "name": "string"
}
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
+ },
+ {
+ "id": 298,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
"type": "reflection",
"declaration": {
- "id": 316,
+ "id": 299,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8785,38 +10140,74 @@
},
"children": [
{
- "id": 318,
- "name": "data",
+ "id": 300,
+ "name": "redirectTo",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 322,
- "character": 38
+ "line": 226,
+ "character": 16
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "id": 58,
- "name": "User"
+ "type": "intrinsic",
+ "name": "undefined"
},
{
"type": "intrinsic",
- "name": "null"
+ "name": "string"
}
]
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 319,
- "name": "error",
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 300
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 225,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 301,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 302,
+ "name": "data",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -8825,16 +10216,31 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 322,
- "character": 58
+ "line": 228,
+ "character": 19
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "name": "Error"
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 228,
+ "character": 20
+ }
+ ]
+ }
},
{
"type": "intrinsic",
@@ -8844,8 +10250,8 @@
}
},
{
- "id": 317,
- "name": "user",
+ "id": 304,
+ "name": "error",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -8854,8 +10260,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 322,
- "character": 19
+ "line": 228,
+ "character": 37
}
],
"type": {
@@ -8863,8 +10269,7 @@
"types": [
{
"type": "reference",
- "id": 58,
- "name": "User"
+ "name": "Error"
},
{
"type": "intrinsic",
@@ -8879,16 +10284,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 318,
- 319,
- 317
+ 302,
+ 304
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 322,
+ "line": 228,
"character": 13
}
]
@@ -8902,14 +10306,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 320,
- "character": 23
+ "line": 223,
+ "character": 29
}
]
},
{
- "id": 245,
- "name": "inviteUserByEmail",
+ "id": 259,
+ "name": "sendMagicLinkEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -8917,19 +10321,19 @@
},
"signatures": [
{
- "id": 246,
- "name": "inviteUserByEmail",
+ "id": 260,
+ "name": "sendMagicLinkEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Sends an invite link to an email address."
+ "shortText": "Sends a magic login link to an email address."
},
"parameters": [
{
- "id": 247,
+ "id": 261,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -8945,7 +10349,7 @@
}
},
{
- "id": 248,
+ "id": 262,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -8955,7 +10359,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 249,
+ "id": 263,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8964,7 +10368,7 @@
},
"children": [
{
- "id": 250,
+ "id": 264,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -8975,7 +10379,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 121,
+ "line": 138,
"character": 16
}
],
@@ -8999,14 +10403,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 250
+ 264
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 120,
+ "line": 137,
"character": 12
}
]
@@ -9021,7 +10425,7 @@
{
"type": "reflection",
"declaration": {
- "id": 251,
+ "id": 265,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9030,7 +10434,7 @@
},
"children": [
{
- "id": 252,
+ "id": 266,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9040,7 +10444,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 123,
+ "line": 140,
"character": 19
}
],
@@ -9048,9 +10452,23 @@
"type": "union",
"types": [
{
- "type": "reference",
- "id": 58,
- "name": "User"
+ "type": "reflection",
+ "declaration": {
+ "id": 267,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 140,
+ "character": 20
+ }
+ ]
+ }
},
{
"type": "intrinsic",
@@ -9060,7 +10478,7 @@
}
},
{
- "id": 253,
+ "id": 268,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9070,8 +10488,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 123,
- "character": 39
+ "line": 140,
+ "character": 37
}
],
"type": {
@@ -9094,15 +10512,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 252,
- 253
+ 266,
+ 268
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 123,
+ "line": 140,
"character": 13
}
]
@@ -9116,14 +10534,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 118,
- "character": 25
+ "line": 135,
+ "character": 26
}
]
},
{
- "id": 303,
- "name": "refreshAccessToken",
+ "id": 269,
+ "name": "sendMobileOTP",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -9131,27 +10549,27 @@
},
"signatures": [
{
- "id": 304,
- "name": "refreshAccessToken",
+ "id": 270,
+ "name": "sendMobileOTP",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Generates a new JWT."
+ "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist"
},
"parameters": [
{
- "id": 305,
- "name": "refreshToken",
+ "id": 271,
+ "name": "phone",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "A valid refresh token that was returned on login.\n"
+ "text": "The user's phone number WITH international prefix\n"
},
"type": {
"type": "intrinsic",
@@ -9165,7 +10583,7 @@
{
"type": "reflection",
"declaration": {
- "id": 306,
+ "id": 272,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9174,7 +10592,7 @@
},
"children": [
{
- "id": 307,
+ "id": 273,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9184,17 +10602,31 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 275,
- "character": 19
+ "line": 158,
+ "character": 52
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "id": 50,
- "name": "Session"
+ "type": "reflection",
+ "declaration": {
+ "id": 274,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 158,
+ "character": 53
+ }
+ ]
+ }
},
{
"type": "intrinsic",
@@ -9204,7 +10636,7 @@
}
},
{
- "id": 308,
+ "id": 275,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9214,8 +10646,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 275,
- "character": 42
+ "line": 158,
+ "character": 70
}
],
"type": {
@@ -9238,16 +10670,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 307,
- 308
+ 273,
+ 275
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 275,
- "character": 13
+ "line": 158,
+ "character": 46
}
]
}
@@ -9260,14 +10692,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 273,
- "character": 26
+ "line": 158,
+ "character": 21
}
]
},
{
- "id": 254,
- "name": "resetPasswordForEmail",
+ "id": 350,
+ "name": "setAuthCookie",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -9275,19 +10707,81 @@
},
"signatures": [
{
- "id": 255,
- "name": "resetPasswordForEmail",
+ "id": 351,
+ "name": "setAuthCookie",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Sends a reset request to an email address."
+ "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."
},
"parameters": [
{
- "id": 256,
+ "id": 352,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 353,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 375,
+ "character": 15
+ }
+ ]
+ },
+ {
+ "id": 235,
+ "name": "signInWithEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 236,
+ "name": "signInWithEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Logs in an existing user using their email address."
+ },
+ "parameters": [
+ {
+ "id": 237,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -9303,7 +10797,23 @@
}
},
{
- "id": 257,
+ "id": 238,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 239,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -9313,7 +10823,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 258,
+ "id": 240,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9322,7 +10832,7 @@
},
"children": [
{
- "id": 259,
+ "id": 241,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -9333,7 +10843,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 145,
+ "line": 71,
"character": 16
}
],
@@ -9357,14 +10867,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 259
+ 241
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 144,
+ "line": 70,
"character": 12
}
]
@@ -9379,7 +10889,7 @@
{
"type": "reflection",
"declaration": {
- "id": 260,
+ "id": 242,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9388,7 +10898,7 @@
},
"children": [
{
- "id": 261,
+ "id": 243,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9398,7 +10908,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 147,
+ "line": 73,
"character": 19
}
],
@@ -9406,23 +10916,9 @@
"type": "union",
"types": [
{
- "type": "reflection",
- "declaration": {
- "id": 262,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 147,
- "character": 20
- }
- ]
- }
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
},
{
"type": "intrinsic",
@@ -9432,7 +10928,7 @@
}
},
{
- "id": 263,
+ "id": 244,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9442,8 +10938,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 147,
- "character": 37
+ "line": 73,
+ "character": 42
}
],
"type": {
@@ -9466,15 +10962,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 261,
- 263
+ 243,
+ 244
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 147,
+ "line": 73,
"character": 13
}
]
@@ -9488,14 +10984,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 142,
- "character": 29
+ "line": 67,
+ "character": 23
}
]
},
{
- "id": 235,
- "name": "sendMagicLinkEmail",
+ "id": 252,
+ "name": "signInWithPhone",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -9503,27 +10999,27 @@
},
"signatures": [
{
- "id": 236,
- "name": "sendMagicLinkEmail",
+ "id": 253,
+ "name": "signInWithPhone",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Sends a magic login link to an email address."
+ "shortText": "Logs in an existing user using their phone number and password."
},
"parameters": [
{
- "id": 237,
- "name": "email",
+ "id": 254,
+ "name": "phone",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The email address of the user."
+ "text": "The phone number of the user."
},
"type": {
"type": "intrinsic",
@@ -9531,74 +11027,20 @@
}
},
{
- "id": 238,
- "name": "options",
+ "id": 255,
+ "name": "password",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 239,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 240,
- "name": "redirectTo",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 97,
- "character": 16
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 240
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 96,
- "character": 12
- }
- ]
- }
+ "comment": {
+ "text": "The password of the user.\n"
},
- "defaultValue": "{}"
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
],
"type": {
@@ -9607,7 +11049,7 @@
{
"type": "reflection",
"declaration": {
- "id": 241,
+ "id": 256,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9616,7 +11058,7 @@
},
"children": [
{
- "id": 242,
+ "id": 257,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9626,7 +11068,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 99,
+ "line": 117,
"character": 19
}
],
@@ -9634,23 +11076,9 @@
"type": "union",
"types": [
{
- "type": "reflection",
- "declaration": {
- "id": 243,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 99,
- "character": 20
- }
- ]
- }
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
},
{
"type": "intrinsic",
@@ -9660,7 +11088,7 @@
}
},
{
- "id": 244,
+ "id": 258,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9670,8 +11098,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 99,
- "character": 37
+ "line": 117,
+ "character": 42
}
],
"type": {
@@ -9694,15 +11122,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 242,
- 244
+ 257,
+ 258
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 99,
+ "line": 117,
"character": 13
}
]
@@ -9716,14 +11144,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 94,
- "character": 26
+ "line": 114,
+ "character": 23
}
]
},
{
"id": 309,
- "name": "setAuthCookie",
+ "name": "signOut",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -9732,60 +11160,111 @@
"signatures": [
{
"id": 310,
- "name": "setAuthCookie",
+ "name": "signOut",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ "shortText": "Removes a logged-in session."
},
"parameters": [
{
"id": 311,
- "name": "req",
+ "name": "jwt",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- },
- {
- "id": 312,
- "name": "res",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
+ "comment": {
+ "text": "A valid, logged-in JWT.\n"
},
"type": {
"type": "intrinsic",
- "name": "any"
+ "name": "string"
}
}
],
"type": {
- "type": "intrinsic",
- "name": "void"
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 312,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 313,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 257,
+ "character": 45
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 313
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 257,
+ "character": 38
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
}
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 294,
+ "line": 257,
"character": 15
}
]
},
{
"id": 225,
- "name": "signInWithEmail",
+ "name": "signUpWithEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -9794,14 +11273,15 @@
"signatures": [
{
"id": 226,
- "name": "signInWithEmail",
+ "name": "signUpWithEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Logs in an existing user using their email address."
+ "shortText": "Creates a new user using their email address.",
+ "returns": "A logged-in session if the server has \"autoconfirm\" ON"
},
"parameters": [
{
@@ -9867,7 +11347,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 43,
"character": 16
}
],
@@ -9898,7 +11378,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 70,
+ "line": 42,
"character": 12
}
]
@@ -9932,7 +11412,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 73,
+ "line": 45,
"character": 19
}
],
@@ -9944,6 +11424,11 @@
"id": 50,
"name": "Session"
},
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
{
"type": "intrinsic",
"name": "null"
@@ -9962,8 +11447,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 73,
- "character": 42
+ "line": 45,
+ "character": 49
}
],
"type": {
@@ -9994,7 +11479,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 73,
+ "line": 45,
"character": 13
}
]
@@ -10008,14 +11493,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 67,
+ "line": 39,
"character": 23
}
]
},
{
- "id": 268,
- "name": "signOut",
+ "id": 245,
+ "name": "signUpWithPhone",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -10023,27 +11508,43 @@
},
"signatures": [
{
- "id": 269,
- "name": "signOut",
+ "id": 246,
+ "name": "signUpWithPhone",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Removes a logged-in session."
+ "shortText": "Signs up a new user using their phone number and a password."
},
"parameters": [
{
- "id": 270,
- "name": "jwt",
+ "id": 247,
+ "name": "phone",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "A valid, logged-in JWT.\n"
+ "text": "The phone number of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 248,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The password of the user.\n"
},
"type": {
"type": "intrinsic",
@@ -10057,7 +11558,7 @@
{
"type": "reflection",
"declaration": {
- "id": 271,
+ "id": 249,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10066,7 +11567,42 @@
},
"children": [
{
- "id": 272,
+ "id": 250,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 97,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 251,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10076,8 +11612,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 176,
- "character": 45
+ "line": 97,
+ "character": 49
}
],
"type": {
@@ -10100,15 +11636,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 272
+ 250,
+ 251
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 176,
- "character": 38
+ "line": 97,
+ "character": 13
}
]
}
@@ -10121,14 +11658,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 176,
- "character": 15
+ "line": 94,
+ "character": 23
}
]
},
{
- "id": 215,
- "name": "signUpWithEmail",
+ "id": 328,
+ "name": "updateUser",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -10136,28 +11673,27 @@
},
"signatures": [
{
- "id": 216,
- "name": "signUpWithEmail",
+ "id": 329,
+ "name": "updateUser",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Creates a new user using their email address.",
- "returns": "A logged-in session if the server has \"autoconfirm\" ON"
+ "shortText": "Updates the user data."
},
"parameters": [
{
- "id": 217,
- "name": "email",
+ "id": 330,
+ "name": "jwt",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The email address of the user."
+ "text": "A valid, logged-in JWT."
},
"type": {
"type": "intrinsic",
@@ -10165,33 +11701,30 @@
}
},
{
- "id": 218,
- "name": "password",
+ "id": 331,
+ "name": "attributes",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The password of the user."
+ "text": "The data you want to update.\n"
},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "reference",
+ "id": 82,
+ "name": "UserAttributes"
}
- },
- {
- "id": 219,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
"type": "reflection",
"declaration": {
- "id": 220,
+ "id": 332,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10200,74 +11733,38 @@
},
"children": [
{
- "id": 221,
- "name": "redirectTo",
+ "id": 334,
+ "name": "data",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true,
- "isOptional": true
+ "isExported": true
},
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 43,
- "character": 16
+ "line": 316,
+ "character": 38
}
],
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reference",
+ "id": 58,
+ "name": "User"
},
{
"type": "intrinsic",
- "name": "string"
+ "name": "null"
}
]
}
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 221
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 42,
- "character": 12
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 222,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
+ },
{
- "id": 223,
- "name": "data",
+ "id": 335,
+ "name": "error",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -10276,8 +11773,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 45,
- "character": 19
+ "line": 316,
+ "character": 58
}
],
"type": {
@@ -10285,13 +11782,7 @@
"types": [
{
"type": "reference",
- "id": 50,
- "name": "Session"
- },
- {
- "type": "reference",
- "id": 58,
- "name": "User"
+ "name": "Error"
},
{
"type": "intrinsic",
@@ -10301,8 +11792,8 @@
}
},
{
- "id": 224,
- "name": "error",
+ "id": 333,
+ "name": "user",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -10311,8 +11802,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 45,
- "character": 49
+ "line": 316,
+ "character": 19
}
],
"type": {
@@ -10320,7 +11811,8 @@
"types": [
{
"type": "reference",
- "name": "Error"
+ "id": 58,
+ "name": "User"
},
{
"type": "intrinsic",
@@ -10335,15 +11827,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 223,
- 224
+ 334,
+ 335,
+ 333
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 45,
+ "line": 316,
"character": 13
}
]
@@ -10357,14 +11850,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 39,
- "character": 23
+ "line": 313,
+ "character": 18
}
]
},
{
- "id": 287,
- "name": "updateUser",
+ "id": 276,
+ "name": "verifyMobileOTP",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -10372,27 +11865,27 @@
},
"signatures": [
{
- "id": 288,
- "name": "updateUser",
+ "id": 277,
+ "name": "verifyMobileOTP",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Updates the user data."
+ "shortText": "Send User supplied Mobile OTP to be verified"
},
"parameters": [
{
- "id": 289,
- "name": "jwt",
+ "id": 278,
+ "name": "phone",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "A valid, logged-in JWT."
+ "text": "The user's phone number WITH international prefix"
},
"type": {
"type": "intrinsic",
@@ -10400,30 +11893,33 @@
}
},
{
- "id": 290,
- "name": "attributes",
+ "id": 279,
+ "name": "token",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The data you want to update.\n"
+ "text": "token that user was sent to their mobile phone"
},
"type": {
- "type": "reference",
- "id": 77,
- "name": "UserAttributes"
+ "type": "intrinsic",
+ "name": "string"
}
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
+ },
+ {
+ "id": 280,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
"type": "reflection",
"declaration": {
- "id": 291,
+ "id": 281,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10432,38 +11928,74 @@
},
"children": [
{
- "id": 293,
- "name": "data",
+ "id": 282,
+ "name": "redirectTo",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 235,
- "character": 38
+ "line": 178,
+ "character": 16
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "id": 58,
- "name": "User"
+ "type": "intrinsic",
+ "name": "undefined"
},
{
"type": "intrinsic",
- "name": "null"
+ "name": "string"
}
]
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 294,
- "name": "error",
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 282
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 177,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "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": {
@@ -10472,8 +12004,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 235,
- "character": 58
+ "line": 180,
+ "character": 19
}
],
"type": {
@@ -10481,7 +12013,13 @@
"types": [
{
"type": "reference",
- "name": "Error"
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
},
{
"type": "intrinsic",
@@ -10491,8 +12029,8 @@
}
},
{
- "id": 292,
- "name": "user",
+ "id": 285,
+ "name": "error",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -10501,8 +12039,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 235,
- "character": 19
+ "line": 180,
+ "character": 49
}
],
"type": {
@@ -10510,8 +12048,7 @@
"types": [
{
"type": "reference",
- "id": 58,
- "name": "User"
+ "name": "Error"
},
{
"type": "intrinsic",
@@ -10526,16 +12063,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 293,
- 294,
- 292
+ 284,
+ 285
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 235,
+ "line": 180,
"character": 13
}
]
@@ -10549,8 +12085,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 232,
- "character": 18
+ "line": 174,
+ "character": 23
}
]
}
@@ -10560,36 +12096,41 @@
"title": "Constructors",
"kind": 512,
"children": [
- 205
+ 215
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 204,
- 200,
- 199
+ 214,
+ 210,
+ 209
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 264,
+ 305,
+ 336,
+ 361,
+ 314,
+ 321,
+ 354,
+ 286,
+ 344,
295,
- 273,
- 280,
- 313,
- 245,
- 303,
- 254,
+ 259,
+ 269,
+ 350,
235,
+ 252,
309,
225,
- 268,
- 215,
- 287
+ 245,
+ 328,
+ 276
]
}
],
@@ -10607,7 +12148,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 198
+ 208
]
}
],
@@ -10620,7 +12161,7 @@
]
},
{
- "id": 323,
+ "id": 376,
"name": "\"GoTrueClient\"",
"kind": 1,
"kindString": "Module",
@@ -10630,7 +12171,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
"children": [
{
- "id": 324,
+ "id": 377,
"name": "GoTrueClient",
"kind": 128,
"kindString": "Class",
@@ -10639,7 +12180,7 @@
},
"children": [
{
- "id": 333,
+ "id": 386,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -10651,7 +12192,7 @@
},
"signatures": [
{
- "id": 334,
+ "id": 387,
"name": "new GoTrueClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -10663,7 +12204,7 @@
},
"parameters": [
{
- "id": 335,
+ "id": 388,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -10673,7 +12214,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 336,
+ "id": 389,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10682,7 +12223,7 @@
},
"children": [
{
- "id": 343,
+ "id": 396,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -10696,7 +12237,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 60,
+ "line": 61,
"character": 20
}
],
@@ -10719,7 +12260,7 @@
}
},
{
- "id": 346,
+ "id": 399,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -10730,18 +12271,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 63,
+ "line": 64,
"character": 17
}
],
"type": {
"type": "reference",
- "id": 92,
+ "id": 97,
"name": "CookieOptions"
}
},
{
- "id": 342,
+ "id": 395,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -10755,7 +12296,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 59,
+ "line": 60,
"character": 22
}
],
@@ -10778,7 +12319,7 @@
}
},
{
- "id": 338,
+ "id": 391,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -10792,7 +12333,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 58,
+ "line": 59,
"character": 11
}
],
@@ -10806,7 +12347,7 @@
{
"type": "reflection",
"declaration": {
- "id": 339,
+ "id": 392,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10815,7 +12356,7 @@
},
"indexSignature": [
{
- "id": 340,
+ "id": 393,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -10824,7 +12365,7 @@
},
"parameters": [
{
- "id": 341,
+ "id": 394,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -10849,7 +12390,7 @@
}
},
{
- "id": 345,
+ "id": 398,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -10863,7 +12404,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 62,
+ "line": 63,
"character": 16
}
],
@@ -10873,7 +12414,7 @@
}
},
{
- "id": 344,
+ "id": 397,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -10887,7 +12428,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 61,
+ "line": 62,
"character": 18
}
],
@@ -10910,7 +12451,7 @@
}
},
{
- "id": 337,
+ "id": 390,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -10924,7 +12465,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 57,
+ "line": 58,
"character": 7
}
],
@@ -10948,20 +12489,20 @@
"title": "Variables",
"kind": 32,
"children": [
- 343,
- 346,
- 342,
- 338,
- 345,
- 344,
- 337
+ 396,
+ 399,
+ 395,
+ 391,
+ 398,
+ 397,
+ 390
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 56,
+ "line": 57,
"character": 22
}
]
@@ -10971,7 +12512,7 @@
],
"type": {
"type": "reference",
- "id": 324,
+ "id": 377,
"name": "GoTrueClient"
}
}
@@ -10979,13 +12520,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 45,
+ "line": 46,
"character": 61
}
]
},
{
- "id": 325,
+ "id": 378,
"name": "api",
"kind": 1024,
"kindString": "Property",
@@ -10998,18 +12539,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 31,
+ "line": 32,
"character": 5
}
],
"type": {
"type": "reference",
- "id": 198,
+ "id": 208,
"name": "GoTrueApi"
}
},
{
- "id": 328,
+ "id": 381,
"name": "autoRefreshToken",
"kind": 1024,
"kindString": "Property",
@@ -11020,7 +12561,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 41,
+ "line": 42,
"character": 28
}
],
@@ -11030,7 +12571,7 @@
}
},
{
- "id": 327,
+ "id": 380,
"name": "currentSession",
"kind": 1024,
"kindString": "Property",
@@ -11044,7 +12585,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 39,
+ "line": 40,
"character": 26
}
],
@@ -11064,7 +12605,7 @@
}
},
{
- "id": 326,
+ "id": 379,
"name": "currentUser",
"kind": 1024,
"kindString": "Property",
@@ -11078,7 +12619,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 35,
+ "line": 36,
"character": 23
}
],
@@ -11098,7 +12639,7 @@
}
},
{
- "id": 330,
+ "id": 383,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -11109,7 +12650,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 43,
+ "line": 44,
"character": 24
}
],
@@ -11119,7 +12660,7 @@
}
},
{
- "id": 329,
+ "id": 382,
"name": "persistSession",
"kind": 1024,
"kindString": "Property",
@@ -11130,7 +12671,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 42,
+ "line": 43,
"character": 26
}
],
@@ -11140,7 +12681,7 @@
}
},
{
- "id": 332,
+ "id": 385,
"name": "refreshTokenTimer",
"kind": 1024,
"kindString": "Property",
@@ -11152,7 +12693,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 45,
+ "line": 46,
"character": 29
}
],
@@ -11171,7 +12712,7 @@
}
},
{
- "id": 331,
+ "id": 384,
"name": "stateChangeEmitters",
"kind": 1024,
"kindString": "Property",
@@ -11182,7 +12723,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 44,
+ "line": 45,
"character": 31
}
],
@@ -11195,7 +12736,7 @@
},
{
"type": "reference",
- "id": 82,
+ "id": 87,
"name": "Subscription"
}
],
@@ -11204,7 +12745,7 @@
"defaultValue": "new Map()"
},
{
- "id": 468,
+ "id": 551,
"name": "_callRefreshToken",
"kind": 2048,
"kindString": "Method",
@@ -11214,7 +12755,7 @@
},
"signatures": [
{
- "id": 469,
+ "id": 552,
"name": "_callRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -11223,7 +12764,7 @@
},
"parameters": [
{
- "id": 470,
+ "id": 553,
"name": "refresh_token",
"kind": 32768,
"kindString": "Parameter",
@@ -11255,7 +12796,275 @@
{
"type": "reflection",
"declaration": {
- "id": 471,
+ "id": 554,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 555,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 610,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ }
+ },
+ {
+ "id": 556,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 610,
+ "character": 26
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 555,
+ 556
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 557,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 558,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 612,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 559,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 612,
+ "character": 32
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 558,
+ 559
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 598,
+ "character": 33
+ }
+ ]
+ },
+ {
+ "id": 497,
+ "name": "_handleEmailSignIn",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 498,
+ "name": "_handleEmailSignIn",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 499,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 500,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 501,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 502,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 503,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 473,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 503
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 472,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 504,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11264,7 +13073,7 @@
},
"children": [
{
- "id": 472,
+ "id": 505,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11274,7 +13083,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 532,
+ "line": 487,
"character": 19
}
],
@@ -11285,7 +13094,7 @@
}
},
{
- "id": 473,
+ "id": 508,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11295,8 +13104,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 532,
- "character": 26
+ "line": 487,
+ "character": 58
}
],
"type": {
@@ -11304,6 +13113,59 @@
"name": "null"
},
"defaultValue": "null"
+ },
+ {
+ "id": 507,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 487,
+ "character": 45
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ "defaultValue": "data"
+ },
+ {
+ "id": 506,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 487,
+ "character": 25
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ }
+ ]
+ },
+ "defaultValue": "data.user"
}
],
"groups": [
@@ -11311,8 +13173,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 472,
- 473
+ 505,
+ 508,
+ 507,
+ 506
]
}
]
@@ -11321,7 +13185,7 @@
{
"type": "reflection",
"declaration": {
- "id": 474,
+ "id": 509,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11330,7 +13194,7 @@
},
"children": [
{
- "id": 475,
+ "id": 510,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11340,7 +13204,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 534,
+ "line": 489,
"character": 19
}
],
@@ -11351,7 +13215,7 @@
"defaultValue": "null"
},
{
- "id": 476,
+ "id": 513,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11361,14 +13225,56 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 534,
- "character": 32
+ "line": 489,
+ "character": 59
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
+ },
+ {
+ "id": 512,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 489,
+ "character": 46
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 511,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 489,
+ "character": 31
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
}
],
"groups": [
@@ -11376,8 +13282,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 475,
- 476
+ 510,
+ 513,
+ 512,
+ 511
]
}
]
@@ -11393,14 +13301,14 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 520,
- "character": 33
+ "line": 469,
+ "character": 34
}
]
},
{
- "id": 428,
- "name": "_handleEmailSignIn",
+ "id": 514,
+ "name": "_handlePhoneSignIn",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11409,8 +13317,8 @@
},
"signatures": [
{
- "id": 429,
- "name": "_handleEmailSignIn",
+ "id": 515,
+ "name": "_handlePhoneSignIn",
"kind": 4096,
"kindString": "Call signature",
"flags": {
@@ -11418,8 +13326,8 @@
},
"parameters": [
{
- "id": 430,
- "name": "email",
+ "id": 516,
+ "name": "phone",
"kind": 32768,
"kindString": "Parameter",
"flags": {
@@ -11431,7 +13339,7 @@
}
},
{
- "id": 431,
+ "id": 517,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -11442,76 +13350,6 @@
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 432,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 433,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 434,
- "name": "redirectTo",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 411,
- "character": 16
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 434
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 410,
- "character": 12
- }
- ]
- }
- },
- "defaultValue": "{}"
}
],
"type": {
@@ -11523,7 +13361,7 @@
{
"type": "reflection",
"declaration": {
- "id": 435,
+ "id": 518,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11532,7 +13370,7 @@
},
"children": [
{
- "id": 436,
+ "id": 519,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11542,7 +13380,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 425,
+ "line": 503,
"character": 19
}
],
@@ -11553,7 +13391,7 @@
}
},
{
- "id": 439,
+ "id": 522,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11563,7 +13401,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 425,
+ "line": 503,
"character": 58
}
],
@@ -11574,7 +13412,7 @@
"defaultValue": "null"
},
{
- "id": 438,
+ "id": 521,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -11584,7 +13422,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 425,
+ "line": 503,
"character": 45
}
],
@@ -11596,7 +13434,7 @@
"defaultValue": "data"
},
{
- "id": 437,
+ "id": 520,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -11606,7 +13444,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 425,
+ "line": 503,
"character": 25
}
],
@@ -11632,10 +13470,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 436,
- 439,
- 438,
- 437
+ 519,
+ 522,
+ 521,
+ 520
]
}
]
@@ -11644,7 +13482,7 @@
{
"type": "reflection",
"declaration": {
- "id": 440,
+ "id": 523,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11653,7 +13491,7 @@
},
"children": [
{
- "id": 441,
+ "id": 524,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11663,7 +13501,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 427,
+ "line": 505,
"character": 19
}
],
@@ -11674,7 +13512,7 @@
"defaultValue": "null"
},
{
- "id": 444,
+ "id": 527,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11684,7 +13522,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 427,
+ "line": 505,
"character": 59
}
],
@@ -11694,7 +13532,7 @@
}
},
{
- "id": 443,
+ "id": 526,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -11704,7 +13542,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 427,
+ "line": 505,
"character": 46
}
],
@@ -11715,7 +13553,7 @@
"defaultValue": "null"
},
{
- "id": 442,
+ "id": 525,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -11725,7 +13563,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 427,
+ "line": 505,
"character": 31
}
],
@@ -11741,10 +13579,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 441,
- 444,
- 443,
- 442
+ 524,
+ 527,
+ 526,
+ 525
]
}
]
@@ -11760,13 +13598,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 407,
+ "line": 493,
"character": 34
}
]
},
{
- "id": 445,
+ "id": 528,
"name": "_handleProviderSignIn",
"kind": 2048,
"kindString": "Method",
@@ -11776,7 +13614,7 @@
},
"signatures": [
{
- "id": 446,
+ "id": 529,
"name": "_handleProviderSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -11785,7 +13623,7 @@
},
"parameters": [
{
- "id": 447,
+ "id": 530,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -11794,12 +13632,12 @@
},
"type": {
"type": "reference",
- "id": 103,
+ "id": 112,
"name": "Provider"
}
},
{
- "id": 448,
+ "id": 531,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -11809,7 +13647,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 449,
+ "id": 532,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11818,7 +13656,7 @@
},
"children": [
{
- "id": 450,
+ "id": 533,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -11829,7 +13667,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 434,
+ "line": 512,
"character": 16
}
],
@@ -11848,7 +13686,7 @@
}
},
{
- "id": 451,
+ "id": 534,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -11859,7 +13697,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 435,
+ "line": 513,
"character": 12
}
],
@@ -11883,15 +13721,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 450,
- 451
+ 533,
+ 534
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 433,
+ "line": 511,
"character": 12
}
]
@@ -11906,7 +13744,7 @@
{
"type": "reflection",
"declaration": {
- "id": 452,
+ "id": 535,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11915,7 +13753,7 @@
},
"children": [
{
- "id": 455,
+ "id": 538,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11925,7 +13763,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 34
}
],
@@ -11936,7 +13774,7 @@
"defaultValue": "null"
},
{
- "id": 458,
+ "id": 541,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11946,7 +13784,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 74
}
],
@@ -11957,7 +13795,7 @@
"defaultValue": "null"
},
{
- "id": 453,
+ "id": 536,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -11967,18 +13805,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 23
}
],
"type": {
"type": "reference",
- "id": 103,
+ "id": 112,
"name": "Provider"
}
},
{
- "id": 456,
+ "id": 539,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -11988,7 +13826,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 49
}
],
@@ -11999,7 +13837,7 @@
"defaultValue": "null"
},
{
- "id": 454,
+ "id": 537,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -12009,7 +13847,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 28
}
],
@@ -12019,7 +13857,7 @@
}
},
{
- "id": 457,
+ "id": 540,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -12029,7 +13867,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 61
}
],
@@ -12045,12 +13883,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 455,
- 458,
- 453,
- 456,
- 454,
- 457
+ 538,
+ 541,
+ 536,
+ 539,
+ 537,
+ 540
]
}
]
@@ -12059,7 +13897,7 @@
{
"type": "reflection",
"declaration": {
- "id": 459,
+ "id": 542,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -12068,7 +13906,7 @@
},
"children": [
{
- "id": 460,
+ "id": 543,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -12078,7 +13916,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 452,
+ "line": 530,
"character": 19
}
],
@@ -12089,7 +13927,7 @@
"defaultValue": "null"
},
{
- "id": 463,
+ "id": 546,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -12099,7 +13937,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 452,
+ "line": 530,
"character": 59
}
],
@@ -12109,7 +13947,7 @@
}
},
{
- "id": 462,
+ "id": 545,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -12119,7 +13957,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 452,
+ "line": 530,
"character": 46
}
],
@@ -12130,7 +13968,7 @@
"defaultValue": "null"
},
{
- "id": 461,
+ "id": 544,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -12140,7 +13978,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 452,
+ "line": 530,
"character": 31
}
],
@@ -12156,10 +13994,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 460,
- 463,
- 462,
- 461
+ 543,
+ 546,
+ 545,
+ 544
]
}
]
@@ -12172,13 +14010,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 431,
+ "line": 509,
"character": 31
}
]
},
{
- "id": 477,
+ "id": 560,
"name": "_notifyAllSubscribers",
"kind": 2048,
"kindString": "Method",
@@ -12188,7 +14026,7 @@
},
"signatures": [
{
- "id": 478,
+ "id": 561,
"name": "_notifyAllSubscribers",
"kind": 4096,
"kindString": "Call signature",
@@ -12197,7 +14035,7 @@
},
"parameters": [
{
- "id": 479,
+ "id": 562,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -12206,7 +14044,7 @@
},
"type": {
"type": "reference",
- "id": 104,
+ "id": 113,
"name": "AuthChangeEvent"
}
}
@@ -12220,13 +14058,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 538,
+ "line": 616,
"character": 31
}
]
},
{
- "id": 483,
+ "id": 566,
"name": "_persistSession",
"kind": 2048,
"kindString": "Method",
@@ -12236,7 +14074,7 @@
},
"signatures": [
{
- "id": 484,
+ "id": 567,
"name": "_persistSession",
"kind": 4096,
"kindString": "Call signature",
@@ -12245,7 +14083,7 @@
},
"parameters": [
{
- "id": 485,
+ "id": 568,
"name": "currentSession",
"kind": 32768,
"kindString": "Parameter",
@@ -12268,13 +14106,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 565,
+ "line": 643,
"character": 25
}
]
},
{
- "id": 466,
+ "id": 549,
"name": "_recoverAndRefresh",
"kind": 2048,
"kindString": "Method",
@@ -12284,7 +14122,7 @@
},
"signatures": [
{
- "id": 467,
+ "id": 550,
"name": "_recoverAndRefresh",
"kind": 4096,
"kindString": "Call signature",
@@ -12318,13 +14156,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 484,
+ "line": 562,
"character": 34
}
]
},
{
- "id": 464,
+ "id": 547,
"name": "_recoverSession",
"kind": 2048,
"kindString": "Method",
@@ -12334,7 +14172,7 @@
},
"signatures": [
{
- "id": 465,
+ "id": 548,
"name": "_recoverSession",
"kind": 4096,
"kindString": "Call signature",
@@ -12362,13 +14200,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 460,
+ "line": 538,
"character": 25
}
]
},
{
- "id": 486,
+ "id": 569,
"name": "_removeSession",
"kind": 2048,
"kindString": "Method",
@@ -12378,7 +14216,7 @@
},
"signatures": [
{
- "id": 487,
+ "id": 570,
"name": "_removeSession",
"kind": 4096,
"kindString": "Call signature",
@@ -12400,13 +14238,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 570,
+ "line": 648,
"character": 30
}
]
},
{
- "id": 480,
+ "id": 563,
"name": "_saveSession",
"kind": 2048,
"kindString": "Method",
@@ -12416,7 +14254,7 @@
},
"signatures": [
{
- "id": 481,
+ "id": 564,
"name": "_saveSession",
"kind": 4096,
"kindString": "Call signature",
@@ -12428,7 +14266,7 @@
},
"parameters": [
{
- "id": 482,
+ "id": 565,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -12451,13 +14289,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 546,
+ "line": 624,
"character": 22
}
]
},
{
- "id": 488,
+ "id": 571,
"name": "_startAutoRefreshToken",
"kind": 2048,
"kindString": "Method",
@@ -12467,7 +14305,7 @@
},
"signatures": [
{
- "id": 489,
+ "id": 572,
"name": "_startAutoRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -12479,7 +14317,7 @@
},
"parameters": [
{
- "id": 490,
+ "id": 573,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -12504,13 +14342,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 581,
+ "line": 659,
"character": 32
}
]
},
{
- "id": 406,
+ "id": 475,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -12519,7 +14357,7 @@
},
"signatures": [
{
- "id": 407,
+ "id": 476,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -12531,7 +14369,7 @@
},
"parameters": [
{
- "id": 408,
+ "id": 477,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -12549,7 +14387,7 @@
{
"type": "reflection",
"declaration": {
- "id": 409,
+ "id": 478,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -12558,7 +14396,7 @@
},
"children": [
{
- "id": 410,
+ "id": 479,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -12572,7 +14410,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 317,
+ "line": 379,
"character": 16
}
],
@@ -12600,7 +14438,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 410
+ 479
]
}
]
@@ -12616,7 +14454,7 @@
{
"type": "reflection",
"declaration": {
- "id": 411,
+ "id": 480,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -12625,7 +14463,7 @@
},
"children": [
{
- "id": 412,
+ "id": 481,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -12635,7 +14473,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 318,
+ "line": 380,
"character": 20
}
],
@@ -12655,7 +14493,7 @@
}
},
{
- "id": 413,
+ "id": 482,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -12665,7 +14503,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 318,
+ "line": 380,
"character": 43
}
],
@@ -12689,15 +14527,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 412,
- 413
+ 481,
+ 482
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 318,
+ "line": 380,
"character": 14
}
]
@@ -12711,13 +14549,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
+ "line": 378,
"character": 25
}
]
},
{
- "id": 418,
+ "id": 487,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -12726,7 +14564,7 @@
},
"signatures": [
{
- "id": 419,
+ "id": 488,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -12739,7 +14577,7 @@
},
"parameters": [
{
- "id": 420,
+ "id": 489,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -12749,7 +14587,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 421,
+ "id": 490,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -12758,7 +14596,7 @@
},
"signatures": [
{
- "id": 422,
+ "id": 491,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -12767,7 +14605,7 @@
},
"parameters": [
{
- "id": 423,
+ "id": 492,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -12776,12 +14614,12 @@
},
"type": {
"type": "reference",
- "id": 104,
+ "id": 113,
"name": "AuthChangeEvent"
}
},
{
- "id": 424,
+ "id": 493,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -12813,7 +14651,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 388,
+ "line": 450,
"character": 13
}
]
@@ -12824,7 +14662,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 425,
+ "id": 494,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -12833,7 +14671,7 @@
},
"children": [
{
- "id": 426,
+ "id": 495,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -12843,7 +14681,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 389,
+ "line": 451,
"character": 11
}
],
@@ -12852,7 +14690,7 @@
"types": [
{
"type": "reference",
- "id": 82,
+ "id": 87,
"name": "Subscription"
},
{
@@ -12863,7 +14701,7 @@
}
},
{
- "id": 427,
+ "id": 496,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -12873,7 +14711,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 389,
+ "line": 451,
"character": 39
}
],
@@ -12897,15 +14735,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 426,
- 427
+ 495,
+ 496
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 389,
+ "line": 451,
"character": 4
}
]
@@ -12916,13 +14754,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 387,
+ "line": 449,
"character": 19
}
]
},
{
- "id": 384,
+ "id": 453,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -12931,7 +14769,7 @@
},
"signatures": [
{
- "id": 385,
+ "id": 454,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -12947,7 +14785,7 @@
{
"type": "reflection",
"declaration": {
- "id": 386,
+ "id": 455,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -12956,7 +14794,7 @@
},
"children": [
{
- "id": 387,
+ "id": 456,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -12966,7 +14804,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 224,
+ "line": 286,
"character": 8
}
],
@@ -12986,7 +14824,7 @@
}
},
{
- "id": 389,
+ "id": 458,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -12996,7 +14834,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 226,
+ "line": 288,
"character": 9
}
],
@@ -13015,7 +14853,7 @@
}
},
{
- "id": 388,
+ "id": 457,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -13025,7 +14863,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 225,
+ "line": 287,
"character": 8
}
],
@@ -13050,16 +14888,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 387,
- 389,
- 388
+ 456,
+ 458,
+ 457
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 223,
+ "line": 285,
"character": 34
}
]
@@ -13073,13 +14911,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 223,
+ "line": 285,
"character": 22
}
]
},
{
- "id": 382,
+ "id": 451,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -13088,7 +14926,7 @@
},
"signatures": [
{
- "id": 383,
+ "id": 452,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -13117,13 +14955,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 216,
+ "line": 278,
"character": 9
}
]
},
{
- "id": 403,
+ "id": 472,
"name": "setAuth",
"kind": 2048,
"kindString": "Method",
@@ -13132,7 +14970,7 @@
},
"signatures": [
{
- "id": 404,
+ "id": 473,
"name": "setAuth",
"kind": 4096,
"kindString": "Call signature",
@@ -13144,7 +14982,7 @@
},
"parameters": [
{
- "id": 405,
+ "id": 474,
"name": "access_token",
"kind": 32768,
"kindString": "Parameter",
@@ -13170,13 +15008,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 363,
"character": 9
}
]
},
{
- "id": 397,
+ "id": 466,
"name": "setSession",
"kind": 2048,
"kindString": "Method",
@@ -13185,7 +15023,7 @@
},
"signatures": [
{
- "id": 398,
+ "id": 467,
"name": "setSession",
"kind": 4096,
"kindString": "Call signature",
@@ -13197,7 +15035,7 @@
},
"parameters": [
{
- "id": 399,
+ "id": 468,
"name": "refresh_token",
"kind": 32768,
"kindString": "Parameter",
@@ -13219,7 +15057,7 @@
{
"type": "reflection",
"declaration": {
- "id": 400,
+ "id": 469,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13228,7 +15066,7 @@
},
"children": [
{
- "id": 402,
+ "id": 471,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -13238,7 +15076,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 273,
+ "line": 335,
"character": 45
}
],
@@ -13257,7 +15095,7 @@
}
},
{
- "id": 401,
+ "id": 470,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -13267,7 +15105,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 273,
+ "line": 335,
"character": 22
}
],
@@ -13292,15 +15130,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 402,
- 401
+ 471,
+ 470
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 273,
+ "line": 335,
"character": 13
}
]
@@ -13314,13 +15152,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 271,
+ "line": 333,
"character": 18
}
]
},
{
- "id": 361,
+ "id": 415,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -13329,7 +15167,7 @@
},
"signatures": [
{
- "id": 362,
+ "id": 416,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -13341,7 +15179,7 @@
},
"parameters": [
{
- "id": 363,
+ "id": 417,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -13352,7 +15190,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 364,
+ "id": 418,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13361,7 +15199,7 @@
},
"children": [
{
- "id": 365,
+ "id": 419,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -13374,7 +15212,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 153,
+ "line": 158,
"character": 11
}
],
@@ -13393,7 +15231,7 @@
}
},
{
- "id": 366,
+ "id": 421,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -13406,8 +15244,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 153,
- "character": 21
+ "line": 158,
+ "character": 28
}
],
"type": {
@@ -13425,7 +15263,36 @@
}
},
{
- "id": 368,
+ "id": 420,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 158,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 423,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -13438,8 +15305,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 153,
- "character": 45
+ "line": 158,
+ "character": 52
}
],
"type": {
@@ -13484,12 +15351,16 @@
{
"type": "stringLiteral",
"value": "discord"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "twitch"
}
]
}
},
{
- "id": 367,
+ "id": 422,
"name": "refreshToken",
"kind": 32,
"kindString": "Variable",
@@ -13502,8 +15373,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 153,
- "character": 35
+ "line": 158,
+ "character": 42
}
],
"type": {
@@ -13526,17 +15397,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 365,
- 366,
- 368,
- 367
+ 419,
+ 421,
+ 420,
+ 423,
+ 422
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 152,
+ "line": 157,
"character": 15
}
]
@@ -13544,7 +15416,7 @@
}
},
{
- "id": 369,
+ "id": 424,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -13554,7 +15426,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 370,
+ "id": 425,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13563,7 +15435,7 @@
},
"children": [
{
- "id": 371,
+ "id": 426,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -13574,7 +15446,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 155,
+ "line": 160,
"character": 16
}
],
@@ -13593,7 +15465,7 @@
}
},
{
- "id": 372,
+ "id": 427,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -13604,7 +15476,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 156,
+ "line": 161,
"character": 12
}
],
@@ -13628,15 +15500,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 371,
- 372
+ 426,
+ 427
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 154,
+ "line": 159,
"character": 12
}
]
@@ -13651,7 +15523,7 @@
{
"type": "reflection",
"declaration": {
- "id": 373,
+ "id": 428,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13660,7 +15532,7 @@
},
"children": [
{
- "id": 379,
+ "id": 434,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -13670,7 +15542,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 164,
+ "line": 169,
"character": 8
}
],
@@ -13690,7 +15562,7 @@
}
},
{
- "id": 378,
+ "id": 433,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -13700,7 +15572,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 163,
+ "line": 168,
"character": 9
}
],
@@ -13719,7 +15591,7 @@
}
},
{
- "id": 376,
+ "id": 431,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -13730,18 +15602,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 161,
+ "line": 166,
"character": 12
}
],
"type": {
"type": "reference",
- "id": 103,
+ "id": 112,
"name": "Provider"
}
},
{
- "id": 374,
+ "id": 429,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -13751,7 +15623,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 159,
+ "line": 164,
"character": 11
}
],
@@ -13771,7 +15643,7 @@
}
},
{
- "id": 377,
+ "id": 432,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -13782,7 +15654,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 162,
+ "line": 167,
"character": 7
}
],
@@ -13801,7 +15673,7 @@
}
},
{
- "id": 375,
+ "id": 430,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -13811,7 +15683,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 160,
+ "line": 165,
"character": 8
}
],
@@ -13836,19 +15708,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 379,
- 378,
- 376,
- 374,
- 377,
- 375
+ 434,
+ 433,
+ 431,
+ 429,
+ 432,
+ 430
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 158,
+ "line": 163,
"character": 13
}
]
@@ -13862,13 +15734,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 152,
+ "line": 157,
"character": 14
}
]
},
{
- "id": 414,
+ "id": 483,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -13877,7 +15749,7 @@
},
"signatures": [
{
- "id": 415,
+ "id": 484,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -13885,7 +15757,7 @@
"isExported": true
},
"comment": {
- "shortText": "Inside a browser context, `signOut()` will remove extract the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.",
+ "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 disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n"
},
"type": {
@@ -13894,7 +15766,7 @@
{
"type": "reflection",
"declaration": {
- "id": 416,
+ "id": 485,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13903,7 +15775,7 @@
},
"children": [
{
- "id": 417,
+ "id": 486,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -13913,7 +15785,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 372,
+ "line": 434,
"character": 34
}
],
@@ -13937,14 +15809,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 417
+ 486
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 372,
+ "line": 434,
"character": 27
}
]
@@ -13958,13 +15830,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 372,
+ "line": 434,
"character": 15
}
]
},
{
- "id": 347,
+ "id": 400,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -13973,7 +15845,7 @@
},
"signatures": [
{
- "id": 348,
+ "id": 401,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -13985,7 +15857,7 @@
},
"parameters": [
{
- "id": 349,
+ "id": 402,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -13996,7 +15868,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 350,
+ "id": 403,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14005,7 +15877,7 @@
},
"children": [
{
- "id": 351,
+ "id": 404,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -14018,7 +15890,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 97,
+ "line": 99,
"character": 11
}
],
@@ -14037,7 +15909,7 @@
}
},
{
- "id": 352,
+ "id": 405,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -14050,7 +15922,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 97,
+ "line": 99,
"character": 21
}
],
@@ -14067,6 +15939,38 @@
}
]
}
+ },
+ {
+ "id": 406,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 99,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
}
],
"groups": [
@@ -14074,15 +15978,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 351,
- 352
+ 404,
+ 405,
+ 406
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 96,
+ "line": 98,
"character": 15
}
]
@@ -14090,7 +15995,7 @@
}
},
{
- "id": 353,
+ "id": 407,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -14100,7 +16005,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 354,
+ "id": 408,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14109,7 +16014,7 @@
},
"children": [
{
- "id": 355,
+ "id": 409,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -14120,7 +16025,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 99,
+ "line": 101,
"character": 16
}
],
@@ -14144,14 +16049,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 355
+ 409
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 98,
+ "line": 100,
"character": 12
}
]
@@ -14166,7 +16071,7 @@
{
"type": "reflection",
"declaration": {
- "id": 356,
+ "id": 410,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14175,7 +16080,7 @@
},
"children": [
{
- "id": 360,
+ "id": 414,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -14185,7 +16090,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 105,
+ "line": 107,
"character": 8
}
],
@@ -14210,7 +16115,7 @@
}
},
{
- "id": 359,
+ "id": 413,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -14220,7 +16125,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 104,
+ "line": 106,
"character": 9
}
],
@@ -14239,7 +16144,7 @@
}
},
{
- "id": 358,
+ "id": 412,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -14249,7 +16154,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 103,
+ "line": 105,
"character": 11
}
],
@@ -14269,7 +16174,7 @@
}
},
{
- "id": 357,
+ "id": 411,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -14279,7 +16184,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 102,
+ "line": 104,
"character": 8
}
],
@@ -14304,17 +16209,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 360,
- 359,
- 358,
- 357
+ 414,
+ 413,
+ 412,
+ 411
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 101,
+ "line": 103,
"character": 13
}
]
@@ -14328,13 +16233,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 96,
+ "line": 98,
"character": 14
}
]
},
{
- "id": 390,
+ "id": 459,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -14343,7 +16248,7 @@
},
"signatures": [
{
- "id": 391,
+ "id": 460,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -14355,7 +16260,7 @@
},
"parameters": [
{
- "id": 392,
+ "id": 461,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -14364,7 +16269,7 @@
},
"type": {
"type": "reference",
- "id": 77,
+ "id": 82,
"name": "UserAttributes"
}
}
@@ -14375,7 +16280,7 @@
{
"type": "reflection",
"declaration": {
- "id": 393,
+ "id": 462,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14384,7 +16289,7 @@
},
"children": [
{
- "id": 394,
+ "id": 463,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -14394,7 +16299,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 246,
+ "line": 308,
"character": 19
}
],
@@ -14414,7 +16319,7 @@
}
},
{
- "id": 396,
+ "id": 465,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -14424,7 +16329,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 246,
+ "line": 308,
"character": 58
}
],
@@ -14443,7 +16348,7 @@
}
},
{
- "id": 395,
+ "id": 464,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -14453,7 +16358,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 246,
+ "line": 308,
"character": 38
}
],
@@ -14478,16 +16383,413 @@
"title": "Variables",
"kind": 32,
"children": [
- 394,
- 396,
- 395
+ 463,
+ 465,
+ 464
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 308,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 306,
+ "character": 14
+ }
+ ]
+ },
+ {
+ "id": 449,
+ "name": "user",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 450,
+ "name": "user",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": 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": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 271,
+ "character": 6
+ }
+ ]
+ },
+ {
+ "id": 435,
+ "name": "verifyOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 436,
+ "name": "verifyOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Log in a user given a User supplied OTP received via mobile."
+ },
+ "parameters": [
+ {
+ "id": 437,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__0",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 438,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 439,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 223,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 440,
+ "name": "token",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 223,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 439,
+ 440
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 222,
+ "character": 18
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 441,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 442,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 443,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 225,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 443
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 224,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 444,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 448,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 231,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 447,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 230,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 446,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 229,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 445,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 228,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 448,
+ 447,
+ 446,
+ 445
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 246,
+ "line": 227,
"character": 13
}
]
@@ -14501,53 +16803,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 244,
- "character": 14
- }
- ]
- },
- {
- "id": 380,
- "name": "user",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 381,
- "name": "user",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": 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": "reference",
- "id": 58,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 209,
- "character": 6
+ "line": 222,
+ "character": 17
}
]
}
@@ -14557,61 +16814,63 @@
"title": "Constructors",
"kind": 512,
"children": [
- 333
+ 386
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 325,
- 328,
- 327,
- 326,
- 330,
- 329,
- 332,
- 331
+ 378,
+ 381,
+ 380,
+ 379,
+ 383,
+ 382,
+ 385,
+ 384
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 468,
- 428,
- 445,
- 477,
- 483,
+ 551,
+ 497,
+ 514,
+ 528,
+ 560,
+ 566,
+ 549,
+ 547,
+ 569,
+ 563,
+ 571,
+ 475,
+ 487,
+ 453,
+ 451,
+ 472,
466,
- 464,
- 486,
- 480,
- 488,
- 406,
- 418,
- 384,
- 382,
- 403,
- 397,
- 361,
- 414,
- 347,
- 390,
- 380
+ 415,
+ 483,
+ 400,
+ 459,
+ 449,
+ 435
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 26,
+ "line": 27,
"character": 33
}
]
},
{
- "id": 491,
+ "id": 574,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -14620,7 +16879,7 @@
},
"children": [
{
- "id": 493,
+ "id": 576,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -14628,7 +16887,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 20,
+ "line": 21,
"character": 18
}
],
@@ -14639,7 +16898,7 @@
"defaultValue": "true"
},
{
- "id": 496,
+ "id": 579,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -14647,7 +16906,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 23,
+ "line": 24,
"character": 20
}
],
@@ -14658,7 +16917,7 @@
"defaultValue": "true"
},
{
- "id": 497,
+ "id": 580,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -14666,24 +16925,54 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 24,
+ "line": 25,
"character": 9
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 498,
+ "id": 581,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
- "flags": {}
+ "flags": {},
+ "children": [
+ {
+ "id": 582,
+ "name": "X-Client-Info",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 4,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "`gotrue-js/${version}`"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 582
+ ]
+ }
+ ]
}
},
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 495,
+ "id": 578,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -14691,7 +16980,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 22,
+ "line": 23,
"character": 14
}
],
@@ -14702,7 +16991,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 494,
+ "id": 577,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -14710,7 +16999,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 21,
+ "line": 22,
"character": 16
}
],
@@ -14721,7 +17010,7 @@
"defaultValue": "true"
},
{
- "id": 492,
+ "id": 575,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -14729,7 +17018,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 19,
+ "line": 20,
"character": 5
}
],
@@ -14745,19 +17034,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 493,
- 496,
- 497,
- 495,
- 494,
- 492
+ 576,
+ 579,
+ 580,
+ 578,
+ 577,
+ 575
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 18,
+ "line": 19,
"character": 21
}
],
@@ -14772,14 +17061,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 324
+ 377
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 491
+ 574
]
}
],
@@ -14792,7 +17081,7 @@
]
},
{
- "id": 499,
+ "id": 583,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -14802,37 +17091,37 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",
"children": [
{
- "id": 501,
+ "id": 585,
"name": "AuthChangeEvent",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 104
+ "target": 113
},
{
- "id": 506,
+ "id": 590,
"name": "CookieOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 92
+ "target": 97
},
{
- "id": 500,
+ "id": 584,
"name": "Provider",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 103
+ "target": 112
},
{
- "id": 502,
+ "id": 586,
"name": "Session",
"kind": 16777216,
"kindString": "Reference",
@@ -14842,17 +17131,17 @@
"target": 50
},
{
- "id": 505,
+ "id": 589,
"name": "Subscription",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 82
+ "target": 87
},
{
- "id": 503,
+ "id": 587,
"name": "User",
"kind": 16777216,
"kindString": "Reference",
@@ -14862,24 +17151,34 @@
"target": 58
},
{
- "id": 504,
+ "id": 588,
"name": "UserAttributes",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 77
+ "target": 82
},
{
- "id": 507,
+ "id": 591,
"name": "UserCredentials",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 98
+ "target": 103
+ },
+ {
+ "id": 592,
+ "name": "VerifyOTPParams",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 109
}
],
"groups": [
@@ -14887,14 +17186,15 @@
"title": "References",
"kind": 16777216,
"children": [
- 501,
- 506,
- 500,
- 502,
- 505,
- 503,
- 504,
- 507
+ 585,
+ 590,
+ 584,
+ 586,
+ 589,
+ 587,
+ 588,
+ 591,
+ 592
]
}
],
@@ -14907,7 +17207,7 @@
]
},
{
- "id": 105,
+ "id": 114,
"name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
@@ -14917,7 +17217,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",
"children": [
{
- "id": 107,
+ "id": 117,
"name": "AUDIENCE",
"kind": 32,
"kindString": "Variable",
@@ -14928,7 +17228,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 2,
+ "line": 3,
"character": 21
}
],
@@ -14939,36 +17239,7 @@
"defaultValue": "\"\""
},
{
- "id": 108,
- "name": "DEFAULT_HEADERS",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true,
- "isConst": true
- },
- "sources": [
- {
- "fileName": "lib/constants.ts",
- "line": 3,
- "character": 28
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 109,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- }
- }
- }
- },
- {
- "id": 110,
+ "id": 120,
"name": "EXPIRY_MARGIN",
"kind": 32,
"kindString": "Variable",
@@ -14979,7 +17250,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 4,
+ "line": 5,
"character": 26
}
],
@@ -14990,7 +17261,7 @@
"defaultValue": "60 * 1000"
},
{
- "id": 106,
+ "id": 116,
"name": "GOTRUE_URL",
"kind": 32,
"kindString": "Variable",
@@ -15001,7 +17272,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 1,
+ "line": 2,
"character": 23
}
],
@@ -15012,7 +17283,7 @@
"defaultValue": "\"http://localhost:9999\""
},
{
- "id": 111,
+ "id": 121,
"name": "STORAGE_KEY",
"kind": 32,
"kindString": "Variable",
@@ -15023,7 +17294,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 5,
+ "line": 6,
"character": 24
}
],
@@ -15034,7 +17305,25 @@
"defaultValue": "\"supabase.auth.token\""
},
{
- "id": 112,
+ "id": 115,
+ "name": "version",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 1,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 122,
"name": "COOKIE_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -15044,7 +17333,7 @@
},
"children": [
{
- "id": 115,
+ "id": 125,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -15054,7 +17343,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 9,
+ "line": 10,
"character": 8
}
],
@@ -15065,7 +17354,7 @@
"defaultValue": "\"\""
},
{
- "id": 114,
+ "id": 124,
"name": "lifetime",
"kind": 32,
"kindString": "Variable",
@@ -15075,7 +17364,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 8,
+ "line": 9,
"character": 10
}
],
@@ -15086,7 +17375,7 @@
"defaultValue": "60 * 60 * 8"
},
{
- "id": 113,
+ "id": 123,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -15096,7 +17385,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 7,
+ "line": 8,
"character": 6
}
],
@@ -15107,7 +17396,7 @@
"defaultValue": "\"sb:token\""
},
{
- "id": 116,
+ "id": 126,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -15117,7 +17406,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 10,
+ "line": 11,
"character": 6
}
],
@@ -15128,7 +17417,7 @@
"defaultValue": "\"/\""
},
{
- "id": 117,
+ "id": 127,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -15138,7 +17427,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 11,
+ "line": 12,
"character": 10
}
],
@@ -15154,18 +17443,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 115,
- 114,
- 113,
- 116,
- 117
+ 125,
+ 124,
+ 123,
+ 126,
+ 127
]
}
],
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 6,
+ "line": 7,
"character": 27
}
],
@@ -15173,6 +17462,59 @@
"type": "intrinsic",
"name": "object"
}
+ },
+ {
+ "id": 118,
+ "name": "DEFAULT_HEADERS",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "children": [
+ {
+ "id": 119,
+ "name": "X-Client-Info",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 4,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "`gotrue-js/${version}`"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 119
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 4,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
}
],
"groups": [
@@ -15180,18 +17522,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 107,
- 108,
- 110,
- 106,
- 111
+ 117,
+ 120,
+ 116,
+ 121,
+ 115
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 112
+ 122,
+ 118
]
}
],
@@ -15204,7 +17547,7 @@
]
},
{
- "id": 118,
+ "id": 128,
"name": "\"lib/cookies\"",
"kind": 1,
"kindString": "Module",
@@ -15214,7 +17557,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts",
"children": [
{
- "id": 119,
+ "id": 129,
"name": "Cookie",
"kind": 4194304,
"kindString": "Type alias",
@@ -15229,14 +17572,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 120,
+ "id": 130,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 124,
+ "id": 134,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -15265,7 +17608,7 @@
}
},
{
- "id": 123,
+ "id": 133,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -15283,7 +17626,7 @@
}
},
{
- "id": 121,
+ "id": 131,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -15301,7 +17644,7 @@
}
},
{
- "id": 125,
+ "id": 135,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -15330,7 +17673,7 @@
}
},
{
- "id": 126,
+ "id": 136,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -15359,7 +17702,7 @@
}
},
{
- "id": 122,
+ "id": 132,
"name": "value",
"kind": 32,
"kindString": "Variable",
@@ -15382,12 +17725,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 124,
- 123,
- 121,
- 125,
- 126,
- 122
+ 134,
+ 133,
+ 131,
+ 135,
+ 136,
+ 132
]
}
],
@@ -15402,7 +17745,7 @@
}
},
{
- "id": 157,
+ "id": 167,
"name": "deleteCookie",
"kind": 64,
"kindString": "Function",
@@ -15411,7 +17754,7 @@
},
"signatures": [
{
- "id": 158,
+ "id": 168,
"name": "deleteCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -15420,7 +17763,7 @@
},
"parameters": [
{
- "id": 159,
+ "id": 169,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -15433,7 +17776,7 @@
}
},
{
- "id": 160,
+ "id": 170,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -15446,7 +17789,7 @@
}
},
{
- "id": 161,
+ "id": 171,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -15474,14 +17817,14 @@
]
},
{
- "id": 140,
+ "id": 150,
"name": "isSecureEnvironment",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 141,
+ "id": 151,
"name": "isSecureEnvironment",
"kind": 4096,
"kindString": "Call signature",
@@ -15491,7 +17834,7 @@
},
"parameters": [
{
- "id": 142,
+ "id": 152,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -15517,14 +17860,14 @@
]
},
{
- "id": 127,
+ "id": 137,
"name": "serialize",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 128,
+ "id": 138,
"name": "serialize",
"kind": 4096,
"kindString": "Call signature",
@@ -15534,7 +17877,7 @@
},
"parameters": [
{
- "id": 129,
+ "id": 139,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -15545,7 +17888,7 @@
}
},
{
- "id": 130,
+ "id": 140,
"name": "val",
"kind": 32768,
"kindString": "Parameter",
@@ -15556,7 +17899,7 @@
}
},
{
- "id": 131,
+ "id": 141,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -15564,14 +17907,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 132,
+ "id": 142,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 134,
+ "id": 144,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -15589,7 +17932,7 @@
}
},
{
- "id": 136,
+ "id": 146,
"name": "expires",
"kind": 32,
"kindString": "Variable",
@@ -15607,7 +17950,7 @@
}
},
{
- "id": 137,
+ "id": 147,
"name": "httpOnly",
"kind": 32,
"kindString": "Variable",
@@ -15625,7 +17968,7 @@
}
},
{
- "id": 133,
+ "id": 143,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -15643,7 +17986,7 @@
}
},
{
- "id": 135,
+ "id": 145,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -15661,7 +18004,7 @@
}
},
{
- "id": 139,
+ "id": 149,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -15679,7 +18022,7 @@
}
},
{
- "id": 138,
+ "id": 148,
"name": "secure",
"kind": 32,
"kindString": "Variable",
@@ -15702,13 +18045,13 @@
"title": "Variables",
"kind": 32,
"children": [
- 134,
- 136,
- 137,
- 133,
- 135,
- 139,
- 138
+ 144,
+ 146,
+ 147,
+ 143,
+ 145,
+ 149,
+ 148
]
}
],
@@ -15738,14 +18081,14 @@
]
},
{
- "id": 143,
+ "id": 153,
"name": "serializeCookie",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 144,
+ "id": 154,
"name": "serializeCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -15755,19 +18098,19 @@
},
"parameters": [
{
- "id": 145,
+ "id": 155,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 119,
+ "id": 129,
"name": "Cookie"
}
},
{
- "id": 146,
+ "id": 156,
"name": "secure",
"kind": 32768,
"kindString": "Parameter",
@@ -15793,7 +18136,7 @@
]
},
{
- "id": 152,
+ "id": 162,
"name": "setCookie",
"kind": 64,
"kindString": "Function",
@@ -15802,7 +18145,7 @@
},
"signatures": [
{
- "id": 153,
+ "id": 163,
"name": "setCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -15814,7 +18157,7 @@
},
"parameters": [
{
- "id": 154,
+ "id": 164,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -15827,7 +18170,7 @@
}
},
{
- "id": 155,
+ "id": 165,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -15840,7 +18183,7 @@
}
},
{
- "id": 156,
+ "id": 166,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
@@ -15849,7 +18192,7 @@
},
"type": {
"type": "reference",
- "id": 119,
+ "id": 129,
"name": "Cookie"
}
}
@@ -15869,7 +18212,7 @@
]
},
{
- "id": 147,
+ "id": 157,
"name": "setCookies",
"kind": 64,
"kindString": "Function",
@@ -15878,7 +18221,7 @@
},
"signatures": [
{
- "id": 148,
+ "id": 158,
"name": "setCookies",
"kind": 4096,
"kindString": "Call signature",
@@ -15890,7 +18233,7 @@
},
"parameters": [
{
- "id": 149,
+ "id": 159,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -15903,7 +18246,7 @@
}
},
{
- "id": 150,
+ "id": 160,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -15916,7 +18259,7 @@
}
},
{
- "id": 151,
+ "id": 161,
"name": "cookies",
"kind": 32768,
"kindString": "Parameter",
@@ -15928,7 +18271,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 119,
+ "id": 129,
"name": "Cookie"
}
],
@@ -15956,19 +18299,19 @@
"title": "Type aliases",
"kind": 4194304,
"children": [
- 119
+ 129
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 157,
- 140,
- 127,
- 143,
- 152,
- 147
+ 167,
+ 150,
+ 137,
+ 153,
+ 162,
+ 157
]
}
],
@@ -16808,7 +19151,7 @@
]
},
{
- "id": 162,
+ "id": 172,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -16818,7 +19161,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",
"children": [
{
- "id": 163,
+ "id": 173,
"name": "LocalStorage",
"kind": 128,
"kindString": "Class",
@@ -16827,7 +19170,7 @@
},
"indexSignature": [
{
- "id": 165,
+ "id": 175,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -16836,7 +19179,7 @@
},
"parameters": [
{
- "id": 166,
+ "id": 176,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -16857,7 +19200,7 @@
],
"children": [
{
- "id": 168,
+ "id": 178,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -16866,7 +19209,7 @@
},
"signatures": [
{
- "id": 169,
+ "id": 179,
"name": "new LocalStorage",
"kind": 16384,
"kindString": "Constructor signature",
@@ -16875,7 +19218,7 @@
},
"parameters": [
{
- "id": 170,
+ "id": 180,
"name": "localStorage",
"kind": 32768,
"kindString": "Parameter",
@@ -16890,7 +19233,7 @@
],
"type": {
"type": "reference",
- "id": 163,
+ "id": 173,
"name": "LocalStorage"
}
}
@@ -16904,7 +19247,7 @@
]
},
{
- "id": 167,
+ "id": 177,
"name": "length",
"kind": 1024,
"kindString": "Property",
@@ -16924,7 +19267,7 @@
}
},
{
- "id": 164,
+ "id": 174,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -16944,7 +19287,7 @@
}
},
{
- "id": 171,
+ "id": 181,
"name": "clear",
"kind": 2048,
"kindString": "Method",
@@ -16953,7 +19296,7 @@
},
"signatures": [
{
- "id": 172,
+ "id": 182,
"name": "clear",
"kind": 4096,
"kindString": "Call signature",
@@ -16975,7 +19318,7 @@
]
},
{
- "id": 180,
+ "id": 190,
"name": "getItem",
"kind": 2048,
"kindString": "Method",
@@ -16984,7 +19327,7 @@
},
"signatures": [
{
- "id": 181,
+ "id": 191,
"name": "getItem",
"kind": 4096,
"kindString": "Call signature",
@@ -16993,7 +19336,7 @@
},
"parameters": [
{
- "id": 182,
+ "id": 192,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -17030,7 +19373,7 @@
]
},
{
- "id": 173,
+ "id": 183,
"name": "key",
"kind": 2048,
"kindString": "Method",
@@ -17039,7 +19382,7 @@
},
"signatures": [
{
- "id": 174,
+ "id": 184,
"name": "key",
"kind": 4096,
"kindString": "Call signature",
@@ -17048,7 +19391,7 @@
},
"parameters": [
{
- "id": 175,
+ "id": 185,
"name": "index",
"kind": 32768,
"kindString": "Parameter",
@@ -17085,7 +19428,7 @@
]
},
{
- "id": 183,
+ "id": 193,
"name": "removeItem",
"kind": 2048,
"kindString": "Method",
@@ -17094,7 +19437,7 @@
},
"signatures": [
{
- "id": 184,
+ "id": 194,
"name": "removeItem",
"kind": 4096,
"kindString": "Call signature",
@@ -17103,7 +19446,7 @@
},
"parameters": [
{
- "id": 185,
+ "id": 195,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -17131,7 +19474,7 @@
]
},
{
- "id": 176,
+ "id": 186,
"name": "setItem",
"kind": 2048,
"kindString": "Method",
@@ -17140,7 +19483,7 @@
},
"signatures": [
{
- "id": 177,
+ "id": 187,
"name": "setItem",
"kind": 4096,
"kindString": "Call signature",
@@ -17149,7 +19492,7 @@
},
"parameters": [
{
- "id": 178,
+ "id": 188,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -17162,7 +19505,7 @@
}
},
{
- "id": 179,
+ "id": 189,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -17195,26 +19538,26 @@
"title": "Constructors",
"kind": 512,
"children": [
- 168
+ 178
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 167,
- 164
+ 177,
+ 174
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 171,
- 180,
- 173,
+ 181,
+ 190,
183,
- 176
+ 193,
+ 186
]
}
],
@@ -17233,7 +19576,7 @@
]
},
{
- "id": 186,
+ "id": 196,
"name": "expiresAt",
"kind": 64,
"kindString": "Function",
@@ -17242,7 +19585,7 @@
},
"signatures": [
{
- "id": 187,
+ "id": 197,
"name": "expiresAt",
"kind": 4096,
"kindString": "Call signature",
@@ -17251,7 +19594,7 @@
},
"parameters": [
{
- "id": 188,
+ "id": 198,
"name": "expiresIn",
"kind": 32768,
"kindString": "Parameter",
@@ -17279,7 +19622,7 @@
]
},
{
- "id": 193,
+ "id": 203,
"name": "getParameterByName",
"kind": 64,
"kindString": "Function",
@@ -17288,7 +19631,7 @@
},
"signatures": [
{
- "id": 194,
+ "id": 204,
"name": "getParameterByName",
"kind": 4096,
"kindString": "Call signature",
@@ -17297,7 +19640,7 @@
},
"parameters": [
{
- "id": 195,
+ "id": 205,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -17310,7 +19653,7 @@
}
},
{
- "id": 196,
+ "id": 206,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -17357,7 +19700,7 @@
]
},
{
- "id": 191,
+ "id": 201,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -17367,7 +19710,7 @@
},
"signatures": [
{
- "id": 192,
+ "id": 202,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -17389,7 +19732,7 @@
]
},
{
- "id": 189,
+ "id": 199,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -17398,7 +19741,7 @@
},
"signatures": [
{
- "id": 190,
+ "id": 200,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -17425,17 +19768,17 @@
"title": "Classes",
"kind": 128,
"children": [
- 163
+ 173
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 186,
- 193,
- 191,
- 189
+ 196,
+ 203,
+ 201,
+ 199
]
}
],
@@ -17448,7 +19791,7 @@
]
},
{
- "id": 320,
+ "id": 373,
"name": "\"lib/polyfills\"",
"kind": 1,
"kindString": "Module",
@@ -17458,7 +19801,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts",
"children": [
{
- "id": 321,
+ "id": 374,
"name": "polyfillGlobalThis",
"kind": 64,
"kindString": "Function",
@@ -17467,7 +19810,7 @@
},
"signatures": [
{
- "id": 322,
+ "id": 375,
"name": "polyfillGlobalThis",
"kind": 4096,
"kindString": "Call signature",
@@ -17497,7 +19840,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 321
+ 374
]
}
],
@@ -17520,7 +19863,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
"children": [
{
- "id": 92,
+ "id": 97,
"name": "CookieOptions",
"kind": 256,
"kindString": "Interface",
@@ -17529,7 +19872,7 @@
},
"children": [
{
- "id": 95,
+ "id": 100,
"name": "domain",
"kind": 1024,
"kindString": "Property",
@@ -17540,7 +19883,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 85,
+ "line": 100,
"character": 8
}
],
@@ -17559,7 +19902,7 @@
}
},
{
- "id": 94,
+ "id": 99,
"name": "lifetime",
"kind": 1024,
"kindString": "Property",
@@ -17570,7 +19913,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 83,
+ "line": 98,
"character": 10
}
],
@@ -17589,7 +19932,7 @@
}
},
{
- "id": 93,
+ "id": 98,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -17600,7 +19943,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 81,
+ "line": 96,
"character": 6
}
],
@@ -17619,7 +19962,7 @@
}
},
{
- "id": 96,
+ "id": 101,
"name": "path",
"kind": 1024,
"kindString": "Property",
@@ -17630,7 +19973,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 86,
+ "line": 101,
"character": 6
}
],
@@ -17649,7 +19992,7 @@
}
},
{
- "id": 97,
+ "id": 102,
"name": "sameSite",
"kind": 1024,
"kindString": "Property",
@@ -17660,7 +20003,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 88,
+ "line": 103,
"character": 10
}
],
@@ -17684,18 +20027,18 @@
"title": "Properties",
"kind": 1024,
"children": [
- 95,
- 94,
- 93,
- 96,
- 97
+ 100,
+ 99,
+ 98,
+ 101,
+ 102
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 79,
+ "line": 94,
"character": 30
}
]
@@ -17720,7 +20063,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 12,
+ "line": 22,
"character": 14
}
],
@@ -17744,7 +20087,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 20,
+ "line": 30,
"character": 12
}
],
@@ -17777,7 +20120,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 16,
+ "line": 26,
"character": 12
}
],
@@ -17807,7 +20150,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 11,
+ "line": 21,
"character": 16
}
],
@@ -17837,7 +20180,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 21,
+ "line": 31,
"character": 15
}
],
@@ -17866,7 +20209,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 22,
+ "line": 32,
"character": 12
}
],
@@ -17886,7 +20229,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 23,
+ "line": 33,
"character": 6
}
],
@@ -17924,13 +20267,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 10,
+ "line": 20,
"character": 24
}
]
},
{
- "id": 82,
+ "id": 87,
"name": "Subscription",
"kind": 256,
"kindString": "Interface",
@@ -17939,7 +20282,7 @@
},
"children": [
{
- "id": 84,
+ "id": 89,
"name": "callback",
"kind": 1024,
"kindString": "Property",
@@ -17952,14 +20295,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 72,
+ "line": 87,
"character": 10
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 85,
+ "id": 90,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17968,7 +20311,7 @@
},
"signatures": [
{
- "id": 86,
+ "id": 91,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -17977,7 +20320,7 @@
},
"parameters": [
{
- "id": 87,
+ "id": 92,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -17986,12 +20329,12 @@
},
"type": {
"type": "reference",
- "id": 104,
+ "id": 113,
"name": "AuthChangeEvent"
}
},
{
- "id": 88,
+ "id": 93,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -18023,7 +20366,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 72,
+ "line": 87,
"character": 11
}
]
@@ -18031,7 +20374,7 @@
}
},
{
- "id": 83,
+ "id": 88,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -18044,7 +20387,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 68,
+ "line": 83,
"character": 4
}
],
@@ -18054,7 +20397,7 @@
}
},
{
- "id": 89,
+ "id": 94,
"name": "unsubscribe",
"kind": 1024,
"kindString": "Property",
@@ -18067,14 +20410,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 76,
+ "line": 91,
"character": 13
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 90,
+ "id": 95,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18083,7 +20426,7 @@
},
"signatures": [
{
- "id": 91,
+ "id": 96,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -18099,7 +20442,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 76,
+ "line": 91,
"character": 14
}
]
@@ -18112,16 +20455,16 @@
"title": "Properties",
"kind": 1024,
"children": [
- 84,
- 83,
- 89
+ 89,
+ 88,
+ 94
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 64,
+ "line": 79,
"character": 29
}
]
@@ -18135,6 +20478,36 @@
"isExported": true
},
"children": [
+ {
+ "id": 72,
+ "name": "action_link",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 47,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
{
"id": 60,
"name": "app_metadata",
@@ -18146,7 +20519,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 27,
+ "line": 37,
"character": 14
}
],
@@ -18203,7 +20576,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 28,
+ "line": 38,
"character": 12
}
],
@@ -18234,7 +20607,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 27,
+ "line": 37,
"character": 15
}
]
@@ -18252,7 +20625,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 34,
+ "line": 44,
"character": 5
}
],
@@ -18273,7 +20646,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 35,
+ "line": 45,
"character": 22
}
],
@@ -18292,7 +20665,7 @@
}
},
{
- "id": 73,
+ "id": 76,
"name": "confirmed_at",
"kind": 1024,
"kindString": "Property",
@@ -18303,7 +20676,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 38,
+ "line": 51,
"character": 14
}
],
@@ -18322,7 +20695,7 @@
}
},
{
- "id": 72,
+ "id": 75,
"name": "created_at",
"kind": 1024,
"kindString": "Property",
@@ -18332,7 +20705,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 37,
+ "line": 50,
"character": 12
}
],
@@ -18342,7 +20715,7 @@
}
},
{
- "id": 71,
+ "id": 73,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -18353,7 +20726,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 36,
+ "line": 48,
"character": 7
}
],
@@ -18371,6 +20744,36 @@
]
}
},
+ {
+ "id": 77,
+ "name": "email_confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 52,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
{
"id": 59,
"name": "id",
@@ -18382,7 +20785,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 26,
+ "line": 36,
"character": 4
}
],
@@ -18392,7 +20795,7 @@
}
},
{
- "id": 74,
+ "id": 79,
"name": "last_sign_in_at",
"kind": 1024,
"kindString": "Property",
@@ -18403,7 +20806,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 39,
+ "line": 54,
"character": 17
}
],
@@ -18422,7 +20825,97 @@
}
},
{
- "id": 75,
+ "id": 74,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 49,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 78,
+ "name": "phone_confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 53,
+ "character": 20
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 71,
+ "name": "recovery_sent_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 46,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 80,
"name": "role",
"kind": 1024,
"kindString": "Property",
@@ -18433,7 +20926,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 40,
+ "line": 55,
"character": 6
}
],
@@ -18452,7 +20945,7 @@
}
},
{
- "id": 76,
+ "id": 81,
"name": "updated_at",
"kind": 1024,
"kindString": "Property",
@@ -18463,7 +20956,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 41,
+ "line": 56,
"character": 12
}
],
@@ -18492,7 +20985,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 31,
+ "line": 41,
"character": 15
}
],
@@ -18539,7 +21032,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 31,
+ "line": 41,
"character": 16
}
]
@@ -18552,16 +21045,21 @@
"title": "Properties",
"kind": 1024,
"children": [
+ 72,
60,
69,
70,
+ 76,
+ 75,
73,
- 72,
- 71,
+ 77,
59,
+ 79,
74,
- 75,
- 76,
+ 78,
+ 71,
+ 80,
+ 81,
65
]
}
@@ -18569,13 +21067,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 25,
+ "line": 35,
"character": 21
}
]
},
{
- "id": 77,
+ "id": 82,
"name": "UserAttributes",
"kind": 256,
"kindString": "Interface",
@@ -18584,7 +21082,7 @@
},
"children": [
{
- "id": 81,
+ "id": 86,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -18598,7 +21096,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 61,
+ "line": 76,
"character": 6
}
],
@@ -18617,7 +21115,7 @@
}
},
{
- "id": 78,
+ "id": 83,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -18631,7 +21129,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 48,
+ "line": 63,
"character": 7
}
],
@@ -18650,7 +21148,7 @@
}
},
{
- "id": 80,
+ "id": 85,
"name": "email_change_token",
"kind": 1024,
"kindString": "Property",
@@ -18664,7 +21162,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 56,
+ "line": 71,
"character": 20
}
],
@@ -18683,7 +21181,7 @@
}
},
{
- "id": 79,
+ "id": 84,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -18697,7 +21195,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 67,
"character": 10
}
],
@@ -18721,23 +21219,23 @@
"title": "Properties",
"kind": 1024,
"children": [
- 81,
- 78,
- 80,
- 79
+ 86,
+ 83,
+ 85,
+ 84
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 44,
+ "line": 59,
"character": 31
}
]
},
{
- "id": 98,
+ "id": 103,
"name": "UserCredentials",
"kind": 256,
"kindString": "Interface",
@@ -18746,7 +21244,7 @@
},
"children": [
{
- "id": 99,
+ "id": 104,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -18757,7 +21255,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 92,
+ "line": 107,
"character": 7
}
],
@@ -18776,7 +21274,7 @@
}
},
{
- "id": 100,
+ "id": 106,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -18787,7 +21285,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 93,
+ "line": 109,
"character": 10
}
],
@@ -18806,7 +21304,37 @@
}
},
{
- "id": 102,
+ "id": 105,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 108,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 108,
"name": "provider",
"kind": 1024,
"kindString": "Property",
@@ -18817,18 +21345,18 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 96,
+ "line": 112,
"character": 10
}
],
"type": {
"type": "reference",
- "id": 103,
+ "id": 112,
"name": "Provider"
}
},
{
- "id": 101,
+ "id": 107,
"name": "refreshToken",
"kind": 1024,
"kindString": "Property",
@@ -18839,7 +21367,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 94,
+ "line": 110,
"character": 14
}
],
@@ -18863,23 +21391,92 @@
"title": "Properties",
"kind": 1024,
"children": [
- 99,
- 100,
- 102,
- 101
+ 104,
+ 106,
+ 105,
+ 108,
+ 107
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 91,
+ "line": 106,
"character": 32
}
]
},
{
- "id": 104,
+ "id": 109,
+ "name": "VerifyOTPParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 110,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 116,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 111,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 117,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 110,
+ 111
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 115,
+ "character": 32
+ }
+ ]
+ },
+ {
+ "id": 113,
"name": "AuthChangeEvent",
"kind": 4194304,
"kindString": "Type alias",
@@ -18889,7 +21486,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 3,
+ "line": 13,
"character": 27
}
],
@@ -18920,7 +21517,7 @@
}
},
{
- "id": 103,
+ "id": 112,
"name": "Provider",
"kind": 4194304,
"kindString": "Type alias",
@@ -18972,6 +21569,10 @@
{
"type": "stringLiteral",
"value": "discord"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "twitch"
}
]
}
@@ -18982,20 +21583,21 @@
"title": "Interfaces",
"kind": 256,
"children": [
- 92,
+ 97,
50,
- 82,
+ 87,
58,
- 77,
- 98
+ 82,
+ 103,
+ 109
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 104,
- 103
+ 113,
+ 112
]
}
],
@@ -19006,6 +21608,56 @@
"character": 0
}
]
+ },
+ {
+ "id": 593,
+ "name": "\"lib/version\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/version.ts",
+ "children": [
+ {
+ "id": 594,
+ "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": [
+ 594
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/version.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
}
],
"groups": [
@@ -19013,15 +21665,16 @@
"title": "Modules",
"kind": 1,
"children": [
- 197,
- 323,
- 499,
- 105,
- 118,
+ 207,
+ 376,
+ 583,
+ 114,
+ 128,
1,
- 162,
- 320,
- 49
+ 172,
+ 373,
+ 49,
+ 593
]
}
]
@@ -19502,7 +22155,7 @@
"isExported": true
},
"comment": {
- "shortText": "Perform a stored procedure call."
+ "shortText": "Perform a function call."
},
"typeParameter": [
{
@@ -26919,7 +29572,7 @@
"isExported": true
},
"comment": {
- "shortText": "Perform a stored procedure call."
+ "shortText": "Perform a function call."
},
"parameters": [
{
@@ -30585,7 +33238,7 @@
"originalName": "",
"children": [
{
- "id": 194,
+ "id": 196,
"name": "\"RealtimeClient\"",
"kind": 1,
"kindString": "Module",
@@ -30595,7 +33248,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts",
"children": [
{
- "id": 195,
+ "id": 197,
"name": "RealtimeClient",
"kind": 128,
"kindString": "Class",
@@ -30604,7 +33257,7 @@
},
"children": [
{
- "id": 226,
+ "id": 228,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -30616,7 +33269,7 @@
},
"signatures": [
{
- "id": 227,
+ "id": 229,
"name": "new RealtimeClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -30628,7 +33281,7 @@
},
"parameters": [
{
- "id": 228,
+ "id": 230,
"name": "endPoint",
"kind": 32768,
"kindString": "Parameter",
@@ -30644,7 +33297,7 @@
}
},
{
- "id": 229,
+ "id": 231,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -30654,14 +33307,14 @@
},
"type": {
"type": "reference",
- "id": 301,
+ "id": 303,
"name": "Options"
}
}
],
"type": {
"type": "reference",
- "id": 195,
+ "id": 197,
"name": "RealtimeClient"
}
}
@@ -30675,7 +33328,7 @@
]
},
{
- "id": 196,
+ "id": 198,
"name": "channels",
"kind": 1024,
"kindString": "Property",
@@ -30693,14 +33346,14 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
},
"defaultValue": "[]"
},
{
- "id": 218,
+ "id": 220,
"name": "conn",
"kind": 1024,
"kindString": "Property",
@@ -30730,7 +33383,7 @@
"defaultValue": "null"
},
{
- "id": 216,
+ "id": 218,
"name": "decode",
"kind": 1024,
"kindString": "Property",
@@ -30750,7 +33403,7 @@
}
},
{
- "id": 215,
+ "id": 217,
"name": "encode",
"kind": 1024,
"kindString": "Property",
@@ -30770,7 +33423,7 @@
}
},
{
- "id": 197,
+ "id": 199,
"name": "endPoint",
"kind": 1024,
"kindString": "Property",
@@ -30791,7 +33444,7 @@
"defaultValue": "\"\""
},
{
- "id": 198,
+ "id": 200,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -30816,7 +33469,7 @@
{
"type": "reflection",
"declaration": {
- "id": 199,
+ "id": 201,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -30825,7 +33478,7 @@
},
"indexSignature": [
{
- "id": 200,
+ "id": 202,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -30834,7 +33487,7 @@
},
"parameters": [
{
- "id": 201,
+ "id": 203,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -30859,7 +33512,7 @@
}
},
{
- "id": 208,
+ "id": 210,
"name": "heartbeatIntervalMs",
"kind": 1024,
"kindString": "Property",
@@ -30880,7 +33533,7 @@
"defaultValue": "30000"
},
{
- "id": 210,
+ "id": 212,
"name": "heartbeatTimer",
"kind": 1024,
"kindString": "Property",
@@ -30919,7 +33572,7 @@
"defaultValue": "undefined"
},
{
- "id": 214,
+ "id": 216,
"name": "logger",
"kind": 1024,
"kindString": "Property",
@@ -30940,7 +33593,7 @@
"defaultValue": "noop"
},
{
- "id": 209,
+ "id": 211,
"name": "longpollerTimeout",
"kind": 1024,
"kindString": "Property",
@@ -30961,7 +33614,7 @@
"defaultValue": "20000"
},
{
- "id": 202,
+ "id": 204,
"name": "params",
"kind": 1024,
"kindString": "Property",
@@ -30986,7 +33639,7 @@
{
"type": "reflection",
"declaration": {
- "id": 203,
+ "id": 205,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -30995,7 +33648,7 @@
},
"indexSignature": [
{
- "id": 204,
+ "id": 206,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -31004,7 +33657,7 @@
},
"parameters": [
{
- "id": 205,
+ "id": 207,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -31029,7 +33682,7 @@
}
},
{
- "id": 211,
+ "id": 213,
"name": "pendingHeartbeatRef",
"kind": 1024,
"kindString": "Property",
@@ -31059,7 +33712,7 @@
"defaultValue": "null"
},
{
- "id": 217,
+ "id": 219,
"name": "reconnectAfterMs",
"kind": 1024,
"kindString": "Property",
@@ -31079,7 +33732,7 @@
}
},
{
- "id": 213,
+ "id": 215,
"name": "reconnectTimer",
"kind": 1024,
"kindString": "Property",
@@ -31100,7 +33753,7 @@
}
},
{
- "id": 212,
+ "id": 214,
"name": "ref",
"kind": 1024,
"kindString": "Property",
@@ -31121,7 +33774,7 @@
"defaultValue": "0"
},
{
- "id": 219,
+ "id": 221,
"name": "sendBuffer",
"kind": 1024,
"kindString": "Property",
@@ -31145,7 +33798,7 @@
"defaultValue": "[]"
},
{
- "id": 220,
+ "id": 222,
"name": "serializer",
"kind": 1024,
"kindString": "Property",
@@ -31161,13 +33814,13 @@
],
"type": {
"type": "reference",
- "id": 170,
+ "id": 172,
"name": "Serializer"
},
"defaultValue": "new Serializer()"
},
{
- "id": 206,
+ "id": 208,
"name": "timeout",
"kind": 1024,
"kindString": "Property",
@@ -31188,7 +33841,7 @@
"defaultValue": "DEFAULT_TIMEOUT"
},
{
- "id": 207,
+ "id": 209,
"name": "transport",
"kind": 1024,
"kindString": "Property",
@@ -31209,7 +33862,7 @@
"defaultValue": "WebSocket"
},
{
- "id": 288,
+ "id": 290,
"name": "_appendParams",
"kind": 2048,
"kindString": "Method",
@@ -31219,7 +33872,7 @@
},
"signatures": [
{
- "id": 289,
+ "id": 291,
"name": "_appendParams",
"kind": 4096,
"kindString": "Call signature",
@@ -31228,7 +33881,7 @@
},
"parameters": [
{
- "id": 290,
+ "id": 292,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -31241,7 +33894,7 @@
}
},
{
- "id": 291,
+ "id": 293,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -31251,7 +33904,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 292,
+ "id": 294,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -31260,7 +33913,7 @@
},
"indexSignature": [
{
- "id": 293,
+ "id": 295,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -31269,7 +33922,7 @@
},
"parameters": [
{
- "id": 294,
+ "id": 296,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -31291,7 +33944,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 344,
+ "line": 347,
"character": 44
}
]
@@ -31308,13 +33961,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 344,
+ "line": 347,
"character": 23
}
]
},
{
- "id": 295,
+ "id": 297,
"name": "_flushSendBuffer",
"kind": 2048,
"kindString": "Method",
@@ -31324,7 +33977,7 @@
},
"signatures": [
{
- "id": 296,
+ "id": 298,
"name": "_flushSendBuffer",
"kind": 4096,
"kindString": "Call signature",
@@ -31340,13 +33993,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 354,
+ "line": 357,
"character": 26
}
]
},
{
- "id": 280,
+ "id": 282,
"name": "_onConnClose",
"kind": 2048,
"kindString": "Method",
@@ -31356,7 +34009,7 @@
},
"signatures": [
{
- "id": 281,
+ "id": 283,
"name": "_onConnClose",
"kind": 4096,
"kindString": "Call signature",
@@ -31365,7 +34018,7 @@
},
"parameters": [
{
- "id": 282,
+ "id": 284,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -31387,13 +34040,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 324,
+ "line": 327,
"character": 22
}
]
},
{
- "id": 283,
+ "id": 285,
"name": "_onConnError",
"kind": 2048,
"kindString": "Method",
@@ -31403,7 +34056,7 @@
},
"signatures": [
{
- "id": 284,
+ "id": 286,
"name": "_onConnError",
"kind": 4096,
"kindString": "Call signature",
@@ -31412,7 +34065,7 @@
},
"parameters": [
{
- "id": 285,
+ "id": 287,
"name": "error",
"kind": 32768,
"kindString": "Parameter",
@@ -31434,13 +34087,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 332,
+ "line": 335,
"character": 22
}
]
},
{
- "id": 278,
+ "id": 280,
"name": "_onConnOpen",
"kind": 2048,
"kindString": "Method",
@@ -31450,7 +34103,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 281,
"name": "_onConnOpen",
"kind": 4096,
"kindString": "Call signature",
@@ -31466,13 +34119,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 316,
+ "line": 319,
"character": 21
}
]
},
{
- "id": 297,
+ "id": 299,
"name": "_resetHeartbeat",
"kind": 2048,
"kindString": "Method",
@@ -31482,7 +34135,7 @@
},
"signatures": [
{
- "id": 298,
+ "id": 300,
"name": "_resetHeartbeat",
"kind": 4096,
"kindString": "Call signature",
@@ -31498,13 +34151,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 361,
+ "line": 364,
"character": 25
}
]
},
{
- "id": 299,
+ "id": 301,
"name": "_sendHeartbeat",
"kind": 2048,
"kindString": "Method",
@@ -31514,7 +34167,7 @@
},
"signatures": [
{
- "id": 300,
+ "id": 302,
"name": "_sendHeartbeat",
"kind": 4096,
"kindString": "Call signature",
@@ -31530,13 +34183,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 370,
+ "line": 373,
"character": 24
}
]
},
{
- "id": 286,
+ "id": 288,
"name": "_triggerChanError",
"kind": 2048,
"kindString": "Method",
@@ -31546,7 +34199,7 @@
},
"signatures": [
{
- "id": 287,
+ "id": 289,
"name": "_triggerChanError",
"kind": 4096,
"kindString": "Call signature",
@@ -31562,13 +34215,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 338,
+ "line": 341,
"character": 27
}
]
},
{
- "id": 263,
+ "id": 265,
"name": "channel",
"kind": 2048,
"kindString": "Method",
@@ -31577,7 +34230,7 @@
},
"signatures": [
{
- "id": 264,
+ "id": 266,
"name": "channel",
"kind": 4096,
"kindString": "Call signature",
@@ -31586,7 +34239,7 @@
},
"parameters": [
{
- "id": 265,
+ "id": 267,
"name": "topic",
"kind": 32768,
"kindString": "Parameter",
@@ -31599,7 +34252,7 @@
}
},
{
- "id": 266,
+ "id": 268,
"name": "chanParams",
"kind": 32768,
"kindString": "Parameter",
@@ -31609,7 +34262,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 267,
+ "id": 269,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -31623,7 +34276,7 @@
],
"type": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
}
@@ -31631,13 +34284,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 246,
+ "line": 249,
"character": 9
}
]
},
{
- "id": 230,
+ "id": 232,
"name": "connect",
"kind": 2048,
"kindString": "Method",
@@ -31646,7 +34299,7 @@
},
"signatures": [
{
- "id": 231,
+ "id": 233,
"name": "connect",
"kind": 4096,
"kindString": "Call signature",
@@ -31671,7 +34324,7 @@
]
},
{
- "id": 256,
+ "id": 258,
"name": "connectionState",
"kind": 2048,
"kindString": "Method",
@@ -31680,7 +34333,7 @@
},
"signatures": [
{
- "id": 257,
+ "id": 259,
"name": "connectionState",
"kind": 4096,
"kindString": "Call signature",
@@ -31716,13 +34369,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 215,
+ "line": 218,
"character": 17
}
]
},
{
- "id": 232,
+ "id": 234,
"name": "disconnect",
"kind": 2048,
"kindString": "Method",
@@ -31731,7 +34384,7 @@
},
"signatures": [
{
- "id": 233,
+ "id": 235,
"name": "disconnect",
"kind": 4096,
"kindString": "Call signature",
@@ -31743,7 +34396,7 @@
},
"parameters": [
{
- "id": 234,
+ "id": 236,
"name": "code",
"kind": 32768,
"kindString": "Parameter",
@@ -31769,7 +34422,7 @@
}
},
{
- "id": 235,
+ "id": 237,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -31801,7 +34454,7 @@
{
"type": "reflection",
"declaration": {
- "id": 236,
+ "id": 238,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -31810,7 +34463,7 @@
},
"children": [
{
- "id": 238,
+ "id": 240,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -31830,7 +34483,7 @@
}
},
{
- "id": 237,
+ "id": 239,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -31864,8 +34517,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 238,
- 237
+ 240,
+ 239
]
}
],
@@ -31892,7 +34545,7 @@
]
},
{
- "id": 274,
+ "id": 276,
"name": "endPointURL",
"kind": 2048,
"kindString": "Method",
@@ -31901,7 +34554,7 @@
},
"signatures": [
{
- "id": 275,
+ "id": 277,
"name": "endPointURL",
"kind": 4096,
"kindString": "Call signature",
@@ -31920,13 +34573,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 295,
+ "line": 298,
"character": 13
}
]
},
{
- "id": 258,
+ "id": 260,
"name": "isConnected",
"kind": 2048,
"kindString": "Method",
@@ -31935,7 +34588,7 @@
},
"signatures": [
{
- "id": 259,
+ "id": 261,
"name": "isConnected",
"kind": 4096,
"kindString": "Call signature",
@@ -31954,13 +34607,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 231,
+ "line": 234,
"character": 13
}
]
},
{
- "id": 239,
+ "id": 241,
"name": "log",
"kind": 2048,
"kindString": "Method",
@@ -31969,7 +34622,7 @@
},
"signatures": [
{
- "id": 240,
+ "id": 242,
"name": "log",
"kind": 4096,
"kindString": "Call signature",
@@ -31981,7 +34634,7 @@
},
"parameters": [
{
- "id": 241,
+ "id": 243,
"name": "kind",
"kind": 32768,
"kindString": "Parameter",
@@ -31994,7 +34647,7 @@
}
},
{
- "id": 242,
+ "id": 244,
"name": "msg",
"kind": 32768,
"kindString": "Parameter",
@@ -32007,7 +34660,7 @@
}
},
{
- "id": 243,
+ "id": 245,
"name": "data",
"kind": 32768,
"kindString": "Parameter",
@@ -32030,13 +34683,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 164,
+ "line": 167,
"character": 5
}
]
},
{
- "id": 276,
+ "id": 278,
"name": "makeRef",
"kind": 2048,
"kindString": "Method",
@@ -32045,7 +34698,7 @@
},
"signatures": [
{
- "id": 277,
+ "id": 279,
"name": "makeRef",
"kind": 4096,
"kindString": "Call signature",
@@ -32064,13 +34717,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 305,
+ "line": 308,
"character": 9
}
]
},
{
- "id": 247,
+ "id": 249,
"name": "onClose",
"kind": 2048,
"kindString": "Method",
@@ -32079,7 +34732,7 @@
},
"signatures": [
{
- "id": 248,
+ "id": 250,
"name": "onClose",
"kind": 4096,
"kindString": "Call signature",
@@ -32097,7 +34750,7 @@
},
"parameters": [
{
- "id": 249,
+ "id": 251,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -32122,13 +34775,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 186,
+ "line": 189,
"character": 9
}
]
},
{
- "id": 271,
+ "id": 273,
"name": "onConnMessage",
"kind": 2048,
"kindString": "Method",
@@ -32137,7 +34790,7 @@
},
"signatures": [
{
- "id": 272,
+ "id": 274,
"name": "onConnMessage",
"kind": 4096,
"kindString": "Call signature",
@@ -32146,7 +34799,7 @@
},
"parameters": [
{
- "id": 273,
+ "id": 275,
"name": "rawMessage",
"kind": 32768,
"kindString": "Parameter",
@@ -32168,13 +34821,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 267,
+ "line": 270,
"character": 15
}
]
},
{
- "id": 250,
+ "id": 252,
"name": "onError",
"kind": 2048,
"kindString": "Method",
@@ -32183,7 +34836,7 @@
},
"signatures": [
{
- "id": 251,
+ "id": 253,
"name": "onError",
"kind": 4096,
"kindString": "Call signature",
@@ -32201,7 +34854,7 @@
},
"parameters": [
{
- "id": 252,
+ "id": 254,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -32226,13 +34879,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 197,
+ "line": 200,
"character": 9
}
]
},
{
- "id": 253,
+ "id": 255,
"name": "onMessage",
"kind": 2048,
"kindString": "Method",
@@ -32241,7 +34894,7 @@
},
"signatures": [
{
- "id": 254,
+ "id": 256,
"name": "onMessage",
"kind": 4096,
"kindString": "Call signature",
@@ -32259,7 +34912,7 @@
},
"parameters": [
{
- "id": 255,
+ "id": 257,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -32284,13 +34937,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 208,
+ "line": 211,
"character": 11
}
]
},
{
- "id": 244,
+ "id": 246,
"name": "onOpen",
"kind": 2048,
"kindString": "Method",
@@ -32299,7 +34952,7 @@
},
"signatures": [
{
- "id": 245,
+ "id": 247,
"name": "onOpen",
"kind": 4096,
"kindString": "Call signature",
@@ -32317,7 +34970,7 @@
},
"parameters": [
{
- "id": 246,
+ "id": 248,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -32342,13 +34995,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 175,
+ "line": 178,
"character": 8
}
]
},
{
- "id": 268,
+ "id": 270,
"name": "push",
"kind": 2048,
"kindString": "Method",
@@ -32357,7 +35010,7 @@
},
"signatures": [
{
- "id": 269,
+ "id": 271,
"name": "push",
"kind": 4096,
"kindString": "Call signature",
@@ -32366,7 +35019,7 @@
},
"parameters": [
{
- "id": 270,
+ "id": 272,
"name": "data",
"kind": 32768,
"kindString": "Parameter",
@@ -32375,7 +35028,7 @@
},
"type": {
"type": "reference",
- "id": 319,
+ "id": 321,
"name": "Message"
}
}
@@ -32389,13 +35042,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 252,
+ "line": 255,
"character": 6
}
]
},
{
- "id": 260,
+ "id": 262,
"name": "remove",
"kind": 2048,
"kindString": "Method",
@@ -32404,7 +35057,7 @@
},
"signatures": [
{
- "id": 261,
+ "id": 263,
"name": "remove",
"kind": 4096,
"kindString": "Call signature",
@@ -32416,7 +35069,7 @@
},
"parameters": [
{
- "id": 262,
+ "id": 264,
"name": "channel",
"kind": 32768,
"kindString": "Parameter",
@@ -32428,7 +35081,7 @@
},
"type": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
}
@@ -32442,13 +35095,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 240,
+ "line": 243,
"character": 8
}
]
},
{
- "id": 221,
+ "id": 223,
"name": "stateChangeCallbacks",
"kind": 2097152,
"kindString": "Object literal",
@@ -32457,7 +35110,7 @@
},
"children": [
{
- "id": 223,
+ "id": 225,
"name": "close",
"kind": 32,
"kindString": "Variable",
@@ -32481,7 +35134,7 @@
"defaultValue": "[]"
},
{
- "id": 224,
+ "id": 226,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -32505,7 +35158,7 @@
"defaultValue": "[]"
},
{
- "id": 225,
+ "id": 227,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -32529,7 +35182,7 @@
"defaultValue": "[]"
},
{
- "id": 222,
+ "id": 224,
"name": "open",
"kind": 32,
"kindString": "Variable",
@@ -32558,10 +35211,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 223,
- 224,
225,
- 222
+ 226,
+ 227,
+ 224
]
}
],
@@ -32583,68 +35236,68 @@
"title": "Constructors",
"kind": 512,
"children": [
- 226
+ 228
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 196,
- 218,
- 216,
- 215,
- 197,
198,
- 208,
+ 220,
+ 218,
+ 217,
+ 199,
+ 200,
210,
- 214,
- 209,
- 202,
+ 212,
+ 216,
211,
- 217,
+ 204,
213,
- 212,
219,
- 220,
- 206,
- 207
+ 215,
+ 214,
+ 221,
+ 222,
+ 208,
+ 209
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 288,
- 295,
- 280,
- 283,
- 278,
+ 290,
297,
+ 282,
+ 285,
+ 280,
299,
- 286,
- 263,
- 230,
- 256,
+ 301,
+ 288,
+ 265,
232,
- 274,
258,
- 239,
+ 234,
276,
- 247,
- 271,
- 250,
- 253,
- 244,
- 268,
- 260
+ 260,
+ 241,
+ 278,
+ 249,
+ 273,
+ 252,
+ 255,
+ 246,
+ 270,
+ 262
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 221
+ 223
]
}
],
@@ -32657,7 +35310,7 @@
]
},
{
- "id": 319,
+ "id": 321,
"name": "Message",
"kind": 4194304,
"kindString": "Type alias",
@@ -32672,14 +35325,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 320,
+ "id": 322,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 322,
+ "id": 324,
"name": "event",
"kind": 32,
"kindString": "Variable",
@@ -32697,7 +35350,7 @@
}
},
{
- "id": 323,
+ "id": 325,
"name": "payload",
"kind": 32,
"kindString": "Variable",
@@ -32715,7 +35368,7 @@
}
},
{
- "id": 324,
+ "id": 326,
"name": "ref",
"kind": 32,
"kindString": "Variable",
@@ -32733,7 +35386,7 @@
}
},
{
- "id": 321,
+ "id": 323,
"name": "topic",
"kind": 32,
"kindString": "Variable",
@@ -32756,10 +35409,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 322,
- 323,
324,
- 321
+ 325,
+ 326,
+ 323
]
}
],
@@ -32774,7 +35427,7 @@
}
},
{
- "id": 301,
+ "id": 303,
"name": "Options",
"kind": 4194304,
"kindString": "Type alias",
@@ -32791,7 +35444,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 302,
+ "id": 304,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -32800,7 +35453,7 @@
},
"children": [
{
- "id": 309,
+ "id": 311,
"name": "decode",
"kind": 32,
"kindString": "Variable",
@@ -32821,7 +35474,7 @@
}
},
{
- "id": 308,
+ "id": 310,
"name": "encode",
"kind": 32,
"kindString": "Variable",
@@ -32842,7 +35495,7 @@
}
},
{
- "id": 311,
+ "id": 313,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -32867,7 +35520,7 @@
{
"type": "reflection",
"declaration": {
- "id": 312,
+ "id": 314,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -32876,7 +35529,7 @@
},
"indexSignature": [
{
- "id": 313,
+ "id": 315,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -32885,7 +35538,7 @@
},
"parameters": [
{
- "id": 314,
+ "id": 316,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -32910,7 +35563,7 @@
}
},
{
- "id": 305,
+ "id": 307,
"name": "heartbeatIntervalMs",
"kind": 32,
"kindString": "Variable",
@@ -32940,7 +35593,7 @@
}
},
{
- "id": 307,
+ "id": 309,
"name": "logger",
"kind": 32,
"kindString": "Variable",
@@ -32961,7 +35614,7 @@
}
},
{
- "id": 306,
+ "id": 308,
"name": "longpollerTimeout",
"kind": 32,
"kindString": "Variable",
@@ -32991,7 +35644,7 @@
}
},
{
- "id": 315,
+ "id": 317,
"name": "params",
"kind": 32,
"kindString": "Variable",
@@ -33016,7 +35669,7 @@
{
"type": "reflection",
"declaration": {
- "id": 316,
+ "id": 318,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -33025,7 +35678,7 @@
},
"indexSignature": [
{
- "id": 317,
+ "id": 319,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -33034,7 +35687,7 @@
},
"parameters": [
{
- "id": 318,
+ "id": 320,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -33059,7 +35712,7 @@
}
},
{
- "id": 310,
+ "id": 312,
"name": "reconnectAfterMs",
"kind": 32,
"kindString": "Variable",
@@ -33080,7 +35733,7 @@
}
},
{
- "id": 304,
+ "id": 306,
"name": "timeout",
"kind": 32,
"kindString": "Variable",
@@ -33110,7 +35763,7 @@
}
},
{
- "id": 303,
+ "id": 305,
"name": "transport",
"kind": 32,
"kindString": "Variable",
@@ -33136,16 +35789,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 309,
- 308,
311,
- 305,
+ 310,
+ 313,
307,
+ 309,
+ 308,
+ 317,
+ 312,
306,
- 315,
- 310,
- 304,
- 303
+ 305
]
}
],
@@ -33160,7 +35813,7 @@
}
},
{
- "id": 325,
+ "id": 327,
"name": "noop",
"kind": 64,
"kindString": "Function",
@@ -33169,7 +35822,7 @@
},
"signatures": [
{
- "id": 326,
+ "id": 328,
"name": "noop",
"kind": 4096,
"kindString": "Call signature",
@@ -33194,22 +35847,22 @@
"title": "Classes",
"kind": 128,
"children": [
- 195
+ 197
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 319,
- 301
+ 321,
+ 303
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 325
+ 327
]
}
],
@@ -33222,7 +35875,7 @@
]
},
{
- "id": 90,
+ "id": 92,
"name": "\"RealtimeSubscription\"",
"kind": 1,
"kindString": "Module",
@@ -33232,7 +35885,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts",
"children": [
{
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription",
"kind": 128,
"kindString": "Class",
@@ -33241,7 +35894,7 @@
},
"children": [
{
- "id": 99,
+ "id": 101,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -33250,7 +35903,7 @@
},
"signatures": [
{
- "id": 103,
+ "id": 105,
"name": "new RealtimeSubscription",
"kind": 16384,
"kindString": "Constructor signature",
@@ -33259,7 +35912,7 @@
},
"parameters": [
{
- "id": 104,
+ "id": 106,
"name": "topic",
"kind": 32768,
"kindString": "Parameter",
@@ -33272,7 +35925,7 @@
}
},
{
- "id": 105,
+ "id": 107,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -33286,7 +35939,7 @@
"defaultValue": "{}"
},
{
- "id": 106,
+ "id": 108,
"name": "socket",
"kind": 32768,
"kindString": "Parameter",
@@ -33295,14 +35948,14 @@
},
"type": {
"type": "reference",
- "id": 195,
+ "id": 197,
"name": "RealtimeClient"
}
}
],
"type": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
}
@@ -33316,7 +35969,7 @@
]
},
{
- "id": 92,
+ "id": 94,
"name": "bindings",
"kind": 1024,
"kindString": "Property",
@@ -33340,7 +35993,7 @@
"defaultValue": "[]"
},
{
- "id": 96,
+ "id": 98,
"name": "joinPush",
"kind": 1024,
"kindString": "Property",
@@ -33361,7 +36014,7 @@
}
},
{
- "id": 95,
+ "id": 97,
"name": "joinedOnce",
"kind": 1024,
"kindString": "Property",
@@ -33382,7 +36035,7 @@
"defaultValue": "false"
},
{
- "id": 101,
+ "id": 103,
"name": "params",
"kind": 1024,
"kindString": "Property",
@@ -33404,7 +36057,7 @@
}
},
{
- "id": 98,
+ "id": 100,
"name": "pushBuffer",
"kind": 1024,
"kindString": "Property",
@@ -33429,7 +36082,7 @@
"defaultValue": "[]"
},
{
- "id": 97,
+ "id": 99,
"name": "rejoinTimer",
"kind": 1024,
"kindString": "Property",
@@ -33450,7 +36103,7 @@
}
},
{
- "id": 102,
+ "id": 104,
"name": "socket",
"kind": 1024,
"kindString": "Property",
@@ -33468,12 +36121,12 @@
],
"type": {
"type": "reference",
- "id": 195,
+ "id": 197,
"name": "RealtimeClient"
}
},
{
- "id": 94,
+ "id": 96,
"name": "state",
"kind": 1024,
"kindString": "Property",
@@ -33495,7 +36148,7 @@
"defaultValue": "CHANNEL_STATES.closed"
},
{
- "id": 93,
+ "id": 95,
"name": "timeout",
"kind": 1024,
"kindString": "Property",
@@ -33515,7 +36168,7 @@
}
},
{
- "id": 100,
+ "id": 102,
"name": "topic",
"kind": 1024,
"kindString": "Property",
@@ -33537,7 +36190,7 @@
}
},
{
- "id": 125,
+ "id": 127,
"name": "canPush",
"kind": 2048,
"kindString": "Method",
@@ -33546,7 +36199,7 @@
},
"signatures": [
{
- "id": 126,
+ "id": 128,
"name": "canPush",
"kind": 4096,
"kindString": "Call signature",
@@ -33568,7 +36221,7 @@
]
},
{
- "id": 159,
+ "id": 161,
"name": "isClosed",
"kind": 2048,
"kindString": "Method",
@@ -33577,7 +36230,7 @@
},
"signatures": [
{
- "id": 160,
+ "id": 162,
"name": "isClosed",
"kind": 4096,
"kindString": "Call signature",
@@ -33593,13 +36246,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 198,
+ "line": 201,
"character": 10
}
]
},
{
- "id": 161,
+ "id": 163,
"name": "isErrored",
"kind": 2048,
"kindString": "Method",
@@ -33608,7 +36261,7 @@
},
"signatures": [
{
- "id": 162,
+ "id": 164,
"name": "isErrored",
"kind": 4096,
"kindString": "Call signature",
@@ -33624,13 +36277,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 201,
+ "line": 204,
"character": 11
}
]
},
{
- "id": 163,
+ "id": 165,
"name": "isJoined",
"kind": 2048,
"kindString": "Method",
@@ -33639,7 +36292,7 @@
},
"signatures": [
{
- "id": 164,
+ "id": 166,
"name": "isJoined",
"kind": 4096,
"kindString": "Call signature",
@@ -33655,13 +36308,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 204,
+ "line": 207,
"character": 10
}
]
},
{
- "id": 165,
+ "id": 167,
"name": "isJoining",
"kind": 2048,
"kindString": "Method",
@@ -33670,7 +36323,7 @@
},
"signatures": [
{
- "id": 166,
+ "id": 168,
"name": "isJoining",
"kind": 4096,
"kindString": "Call signature",
@@ -33686,13 +36339,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 207,
+ "line": 210,
"character": 11
}
]
},
{
- "id": 167,
+ "id": 169,
"name": "isLeaving",
"kind": 2048,
"kindString": "Method",
@@ -33701,7 +36354,7 @@
},
"signatures": [
{
- "id": 168,
+ "id": 170,
"name": "isLeaving",
"kind": 4096,
"kindString": "Call signature",
@@ -33717,13 +36370,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 210,
+ "line": 213,
"character": 11
}
]
},
{
- "id": 140,
+ "id": 142,
"name": "isMember",
"kind": 2048,
"kindString": "Method",
@@ -33732,7 +36385,7 @@
},
"signatures": [
{
- "id": 141,
+ "id": 143,
"name": "isMember",
"kind": 4096,
"kindString": "Call signature",
@@ -33741,7 +36394,7 @@
},
"parameters": [
{
- "id": 142,
+ "id": 144,
"name": "topic",
"kind": 32768,
"kindString": "Parameter",
@@ -33763,13 +36416,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 151,
+ "line": 154,
"character": 10
}
]
},
{
- "id": 143,
+ "id": 145,
"name": "joinRef",
"kind": 2048,
"kindString": "Method",
@@ -33778,7 +36431,7 @@
},
"signatures": [
{
- "id": 144,
+ "id": 146,
"name": "joinRef",
"kind": 4096,
"kindString": "Call signature",
@@ -33794,13 +36447,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 155,
+ "line": 158,
"character": 9
}
]
},
{
- "id": 122,
+ "id": 124,
"name": "off",
"kind": 2048,
"kindString": "Method",
@@ -33809,7 +36462,7 @@
},
"signatures": [
{
- "id": 123,
+ "id": 125,
"name": "off",
"kind": 4096,
"kindString": "Call signature",
@@ -33818,7 +36471,7 @@
},
"parameters": [
{
- "id": 124,
+ "id": 126,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -33846,7 +36499,7 @@
]
},
{
- "id": 118,
+ "id": 120,
"name": "on",
"kind": 2048,
"kindString": "Method",
@@ -33855,7 +36508,7 @@
},
"signatures": [
{
- "id": 119,
+ "id": 121,
"name": "on",
"kind": 4096,
"kindString": "Call signature",
@@ -33864,7 +36517,7 @@
},
"parameters": [
{
- "id": 120,
+ "id": 122,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -33877,7 +36530,7 @@
}
},
{
- "id": 121,
+ "id": 123,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -33905,7 +36558,7 @@
]
},
{
- "id": 112,
+ "id": 114,
"name": "onClose",
"kind": 2048,
"kindString": "Method",
@@ -33914,7 +36567,7 @@
},
"signatures": [
{
- "id": 113,
+ "id": 115,
"name": "onClose",
"kind": 4096,
"kindString": "Call signature",
@@ -33923,7 +36576,7 @@
},
"parameters": [
{
- "id": 114,
+ "id": 116,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -33951,7 +36604,7 @@
]
},
{
- "id": 115,
+ "id": 117,
"name": "onError",
"kind": 2048,
"kindString": "Method",
@@ -33960,7 +36613,7 @@
},
"signatures": [
{
- "id": 116,
+ "id": 118,
"name": "onError",
"kind": 4096,
"kindString": "Call signature",
@@ -33969,7 +36622,7 @@
},
"parameters": [
{
- "id": 117,
+ "id": 119,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -33997,7 +36650,7 @@
]
},
{
- "id": 135,
+ "id": 137,
"name": "onMessage",
"kind": 2048,
"kindString": "Method",
@@ -34006,7 +36659,7 @@
},
"signatures": [
{
- "id": 136,
+ "id": 138,
"name": "onMessage",
"kind": 4096,
"kindString": "Call signature",
@@ -34019,7 +36672,7 @@
},
"parameters": [
{
- "id": 137,
+ "id": 139,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -34032,7 +36685,7 @@
}
},
{
- "id": 138,
+ "id": 140,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -34045,7 +36698,7 @@
}
},
{
- "id": 139,
+ "id": 141,
"name": "ref",
"kind": 32768,
"kindString": "Parameter",
@@ -34077,13 +36730,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 147,
+ "line": 150,
"character": 11
}
]
},
{
- "id": 127,
+ "id": 129,
"name": "push",
"kind": 2048,
"kindString": "Method",
@@ -34092,7 +36745,7 @@
},
"signatures": [
{
- "id": 128,
+ "id": 130,
"name": "push",
"kind": 4096,
"kindString": "Call signature",
@@ -34101,7 +36754,7 @@
},
"parameters": [
{
- "id": 129,
+ "id": 131,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -34115,7 +36768,7 @@
}
},
{
- "id": 130,
+ "id": 132,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -34128,7 +36781,7 @@
}
},
{
- "id": 131,
+ "id": 133,
"name": "timeout",
"kind": 32768,
"kindString": "Parameter",
@@ -34158,7 +36811,7 @@
]
},
{
- "id": 148,
+ "id": 150,
"name": "rejoin",
"kind": 2048,
"kindString": "Method",
@@ -34167,7 +36820,7 @@
},
"signatures": [
{
- "id": 149,
+ "id": 151,
"name": "rejoin",
"kind": 4096,
"kindString": "Call signature",
@@ -34176,7 +36829,7 @@
},
"parameters": [
{
- "id": 150,
+ "id": 152,
"name": "timeout",
"kind": 32768,
"kindString": "Parameter",
@@ -34199,13 +36852,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 164,
+ "line": 167,
"character": 8
}
]
},
{
- "id": 107,
+ "id": 109,
"name": "rejoinUntilConnected",
"kind": 2048,
"kindString": "Method",
@@ -34214,7 +36867,7 @@
},
"signatures": [
{
- "id": 108,
+ "id": 110,
"name": "rejoinUntilConnected",
"kind": 4096,
"kindString": "Call signature",
@@ -34236,7 +36889,7 @@
]
},
{
- "id": 156,
+ "id": 158,
"name": "replyEventName",
"kind": 2048,
"kindString": "Method",
@@ -34245,7 +36898,7 @@
},
"signatures": [
{
- "id": 157,
+ "id": 159,
"name": "replyEventName",
"kind": 4096,
"kindString": "Call signature",
@@ -34254,7 +36907,7 @@
},
"parameters": [
{
- "id": 158,
+ "id": 160,
"name": "ref",
"kind": 32768,
"kindString": "Parameter",
@@ -34276,13 +36929,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 194,
+ "line": 197,
"character": 16
}
]
},
{
- "id": 145,
+ "id": 147,
"name": "sendJoin",
"kind": 2048,
"kindString": "Method",
@@ -34291,7 +36944,7 @@
},
"signatures": [
{
- "id": 146,
+ "id": 148,
"name": "sendJoin",
"kind": 4096,
"kindString": "Call signature",
@@ -34300,7 +36953,7 @@
},
"parameters": [
{
- "id": 147,
+ "id": 149,
"name": "timeout",
"kind": 32768,
"kindString": "Parameter",
@@ -34322,13 +36975,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 159,
+ "line": 162,
"character": 10
}
]
},
{
- "id": 109,
+ "id": 111,
"name": "subscribe",
"kind": 2048,
"kindString": "Method",
@@ -34337,7 +36990,7 @@
},
"signatures": [
{
- "id": 110,
+ "id": 112,
"name": "subscribe",
"kind": 4096,
"kindString": "Call signature",
@@ -34346,7 +36999,7 @@
},
"parameters": [
{
- "id": 111,
+ "id": 113,
"name": "timeout",
"kind": 32768,
"kindString": "Parameter",
@@ -34376,7 +37029,7 @@
]
},
{
- "id": 151,
+ "id": 153,
"name": "trigger",
"kind": 2048,
"kindString": "Method",
@@ -34385,7 +37038,7 @@
},
"signatures": [
{
- "id": 152,
+ "id": 154,
"name": "trigger",
"kind": 4096,
"kindString": "Call signature",
@@ -34394,7 +37047,7 @@
},
"parameters": [
{
- "id": 153,
+ "id": 155,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -34407,7 +37060,7 @@
}
},
{
- "id": 154,
+ "id": 156,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -34421,7 +37074,7 @@
}
},
{
- "id": 155,
+ "id": 157,
"name": "ref",
"kind": 32768,
"kindString": "Parameter",
@@ -34453,13 +37106,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 171,
+ "line": 174,
"character": 9
}
]
},
{
- "id": 132,
+ "id": 134,
"name": "unsubscribe",
"kind": 2048,
"kindString": "Method",
@@ -34468,7 +37121,7 @@
},
"signatures": [
{
- "id": 133,
+ "id": 135,
"name": "unsubscribe",
"kind": 4096,
"kindString": "Call signature",
@@ -34481,7 +37134,7 @@
},
"parameters": [
{
- "id": 134,
+ "id": 136,
"name": "timeout",
"kind": 32768,
"kindString": "Parameter",
@@ -34516,50 +37169,50 @@
"title": "Constructors",
"kind": 512,
"children": [
- 99
+ 101
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 92,
- 96,
- 95,
- 101,
+ 94,
98,
97,
- 102,
- 94,
- 93,
- 100
+ 103,
+ 100,
+ 99,
+ 104,
+ 96,
+ 95,
+ 102
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 125,
- 159,
+ 127,
161,
163,
165,
167,
- 140,
- 143,
- 122,
- 118,
- 112,
- 115,
- 135,
- 127,
- 148,
- 107,
- 156,
+ 169,
+ 142,
145,
+ 124,
+ 120,
+ 114,
+ 117,
+ 137,
+ 129,
+ 150,
109,
- 151,
- 132
+ 158,
+ 147,
+ 111,
+ 153,
+ 134
]
}
],
@@ -34577,7 +37230,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 91
+ 93
]
}
],
@@ -34590,7 +37243,7 @@
]
},
{
- "id": 413,
+ "id": 415,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -35142,7 +37795,7 @@
},
"type": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
},
@@ -35234,7 +37887,7 @@
],
"type": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
},
@@ -35604,7 +38257,7 @@
"defaultValue": "undefined"
},
{
- "id": 77,
+ "id": 79,
"name": "_cancelRefEvent",
"kind": 2048,
"kindString": "Method",
@@ -35614,7 +38267,7 @@
},
"signatures": [
{
- "id": 78,
+ "id": 80,
"name": "_cancelRefEvent",
"kind": 4096,
"kindString": "Call signature",
@@ -35630,13 +38283,13 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 89,
+ "line": 94,
"character": 25
}
]
},
{
- "id": 79,
+ "id": 81,
"name": "_cancelTimeout",
"kind": 2048,
"kindString": "Method",
@@ -35646,7 +38299,7 @@
},
"signatures": [
{
- "id": 80,
+ "id": 82,
"name": "_cancelTimeout",
"kind": 4096,
"kindString": "Call signature",
@@ -35662,13 +38315,13 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 96,
+ "line": 101,
"character": 24
}
]
},
{
- "id": 87,
+ "id": 89,
"name": "_hasReceived",
"kind": 2048,
"kindString": "Method",
@@ -35678,7 +38331,7 @@
},
"signatures": [
{
- "id": 88,
+ "id": 90,
"name": "_hasReceived",
"kind": 4096,
"kindString": "Call signature",
@@ -35687,7 +38340,7 @@
},
"parameters": [
{
- "id": 89,
+ "id": 91,
"name": "status",
"kind": 32768,
"kindString": "Parameter",
@@ -35722,13 +38375,13 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 113,
+ "line": 118,
"character": 22
}
]
},
{
- "id": 81,
+ "id": 83,
"name": "_matchReceive",
"kind": 2048,
"kindString": "Method",
@@ -35738,7 +38391,7 @@
},
"signatures": [
{
- "id": 82,
+ "id": 84,
"name": "_matchReceive",
"kind": 4096,
"kindString": "Call signature",
@@ -35747,7 +38400,7 @@
},
"parameters": [
{
- "id": 83,
+ "id": 85,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -35758,7 +38411,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 84,
+ "id": 86,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -35767,7 +38420,7 @@
},
"children": [
{
- "id": 86,
+ "id": 88,
"name": "response",
"kind": 32,
"kindString": "Variable",
@@ -35777,7 +38430,7 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 103,
+ "line": 108,
"character": 12
}
],
@@ -35787,7 +38440,7 @@
}
},
{
- "id": 85,
+ "id": 87,
"name": "status",
"kind": 32,
"kindString": "Variable",
@@ -35797,7 +38450,7 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 102,
+ "line": 107,
"character": 10
}
],
@@ -35812,15 +38465,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 86,
- 85
+ 88,
+ 87
]
}
],
"sources": [
{
"fileName": "lib/push.ts",
- "line": 101,
+ "line": 106,
"character": 24
}
]
@@ -35837,11 +38490,42 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 101,
+ "line": 106,
"character": 23
}
]
},
+ {
+ "id": 77,
+ "name": "destroy",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 78,
+ "name": "destroy",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 89,
+ "character": 9
+ }
+ ]
+ },
{
"id": 67,
"name": "receive",
@@ -36097,10 +38781,11 @@
"title": "Methods",
"kind": 2048,
"children": [
- 77,
79,
- 87,
81,
+ 89,
+ 83,
+ 77,
67,
62,
65,
@@ -36136,7 +38821,7 @@
]
},
{
- "id": 169,
+ "id": 171,
"name": "\"lib/serializer\"",
"kind": 1,
"kindString": "Module",
@@ -36146,7 +38831,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts",
"children": [
{
- "id": 170,
+ "id": 172,
"name": "Serializer",
"kind": 128,
"kindString": "Class",
@@ -36155,7 +38840,7 @@
},
"children": [
{
- "id": 171,
+ "id": 173,
"name": "HEADER_LENGTH",
"kind": 1024,
"kindString": "Property",
@@ -36176,7 +38861,7 @@
"defaultValue": "1"
},
{
- "id": 176,
+ "id": 178,
"name": "_binaryDecode",
"kind": 2048,
"kindString": "Method",
@@ -36186,7 +38871,7 @@
},
"signatures": [
{
- "id": 177,
+ "id": 179,
"name": "_binaryDecode",
"kind": 4096,
"kindString": "Call signature",
@@ -36195,7 +38880,7 @@
},
"parameters": [
{
- "id": 178,
+ "id": 180,
"name": "buffer",
"kind": 32768,
"kindString": "Parameter",
@@ -36211,7 +38896,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 179,
+ "id": 181,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -36220,7 +38905,7 @@
},
"children": [
{
- "id": 182,
+ "id": 184,
"name": "event",
"kind": 32,
"kindString": "Variable",
@@ -36240,7 +38925,7 @@
}
},
{
- "id": 183,
+ "id": 185,
"name": "payload",
"kind": 32,
"kindString": "Variable",
@@ -36260,7 +38945,7 @@
}
},
{
- "id": 180,
+ "id": 182,
"name": "ref",
"kind": 32,
"kindString": "Variable",
@@ -36280,7 +38965,7 @@
}
},
{
- "id": 181,
+ "id": 183,
"name": "topic",
"kind": 32,
"kindString": "Variable",
@@ -36305,10 +38990,10 @@
"title": "Variables",
"kind": 32,
"children": [
+ 184,
+ 185,
182,
- 183,
- 180,
- 181
+ 183
]
}
]
@@ -36325,7 +39010,7 @@
]
},
{
- "id": 184,
+ "id": 186,
"name": "_decodeBroadcast",
"kind": 2048,
"kindString": "Method",
@@ -36335,7 +39020,7 @@
},
"signatures": [
{
- "id": 185,
+ "id": 187,
"name": "_decodeBroadcast",
"kind": 4096,
"kindString": "Call signature",
@@ -36344,7 +39029,7 @@
},
"parameters": [
{
- "id": 186,
+ "id": 188,
"name": "buffer",
"kind": 32768,
"kindString": "Parameter",
@@ -36357,7 +39042,7 @@
}
},
{
- "id": 187,
+ "id": 189,
"name": "view",
"kind": 32768,
"kindString": "Parameter",
@@ -36370,7 +39055,7 @@
}
},
{
- "id": 188,
+ "id": 190,
"name": "decoder",
"kind": 32768,
"kindString": "Parameter",
@@ -36386,7 +39071,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 189,
+ "id": 191,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -36395,7 +39080,7 @@
},
"children": [
{
- "id": 192,
+ "id": 194,
"name": "event",
"kind": 32,
"kindString": "Variable",
@@ -36415,7 +39100,7 @@
}
},
{
- "id": 193,
+ "id": 195,
"name": "payload",
"kind": 32,
"kindString": "Variable",
@@ -36435,7 +39120,7 @@
}
},
{
- "id": 190,
+ "id": 192,
"name": "ref",
"kind": 32,
"kindString": "Variable",
@@ -36455,7 +39140,7 @@
}
},
{
- "id": 191,
+ "id": 193,
"name": "topic",
"kind": 32,
"kindString": "Variable",
@@ -36480,10 +39165,10 @@
"title": "Variables",
"kind": 32,
"children": [
+ 194,
+ 195,
192,
- 193,
- 190,
- 191
+ 193
]
}
],
@@ -36507,7 +39192,7 @@
]
},
{
- "id": 172,
+ "id": 174,
"name": "decode",
"kind": 2048,
"kindString": "Method",
@@ -36516,7 +39201,7 @@
},
"signatures": [
{
- "id": 173,
+ "id": 175,
"name": "decode",
"kind": 4096,
"kindString": "Call signature",
@@ -36525,7 +39210,7 @@
},
"parameters": [
{
- "id": 174,
+ "id": 176,
"name": "rawPayload",
"kind": 32768,
"kindString": "Parameter",
@@ -36547,7 +39232,7 @@
}
},
{
- "id": 175,
+ "id": 177,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -36580,16 +39265,16 @@
"title": "Properties",
"kind": 1024,
"children": [
- 171
+ 173
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 176,
- 184,
- 172
+ 178,
+ 186,
+ 174
]
}
],
@@ -36607,7 +39292,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 170
+ 172
]
}
],
@@ -36919,7 +39604,7 @@
]
},
{
- "id": 327,
+ "id": 329,
"name": "\"lib/transformers\"",
"kind": 1,
"kindString": "Module",
@@ -36929,7 +39614,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts",
"children": [
{
- "id": 328,
+ "id": 330,
"name": "PostgresTypes",
"kind": 4,
"kindString": "Enumeration",
@@ -36941,7 +39626,7 @@
},
"children": [
{
- "id": 329,
+ "id": 331,
"name": "abstime",
"kind": 16,
"kindString": "Enumeration member",
@@ -36958,7 +39643,7 @@
"defaultValue": "\"abstime\""
},
{
- "id": 330,
+ "id": 332,
"name": "bool",
"kind": 16,
"kindString": "Enumeration member",
@@ -36975,7 +39660,7 @@
"defaultValue": "\"bool\""
},
{
- "id": 331,
+ "id": 333,
"name": "date",
"kind": 16,
"kindString": "Enumeration member",
@@ -36992,7 +39677,7 @@
"defaultValue": "\"date\""
},
{
- "id": 332,
+ "id": 334,
"name": "daterange",
"kind": 16,
"kindString": "Enumeration member",
@@ -37009,7 +39694,7 @@
"defaultValue": "\"daterange\""
},
{
- "id": 333,
+ "id": 335,
"name": "float4",
"kind": 16,
"kindString": "Enumeration member",
@@ -37026,7 +39711,7 @@
"defaultValue": "\"float4\""
},
{
- "id": 334,
+ "id": 336,
"name": "float8",
"kind": 16,
"kindString": "Enumeration member",
@@ -37043,7 +39728,7 @@
"defaultValue": "\"float8\""
},
{
- "id": 335,
+ "id": 337,
"name": "int2",
"kind": 16,
"kindString": "Enumeration member",
@@ -37060,7 +39745,7 @@
"defaultValue": "\"int2\""
},
{
- "id": 336,
+ "id": 338,
"name": "int4",
"kind": 16,
"kindString": "Enumeration member",
@@ -37077,7 +39762,7 @@
"defaultValue": "\"int4\""
},
{
- "id": 337,
+ "id": 339,
"name": "int4range",
"kind": 16,
"kindString": "Enumeration member",
@@ -37094,7 +39779,7 @@
"defaultValue": "\"int4range\""
},
{
- "id": 338,
+ "id": 340,
"name": "int8",
"kind": 16,
"kindString": "Enumeration member",
@@ -37111,7 +39796,7 @@
"defaultValue": "\"int8\""
},
{
- "id": 339,
+ "id": 341,
"name": "int8range",
"kind": 16,
"kindString": "Enumeration member",
@@ -37128,7 +39813,7 @@
"defaultValue": "\"int8range\""
},
{
- "id": 340,
+ "id": 342,
"name": "json",
"kind": 16,
"kindString": "Enumeration member",
@@ -37145,7 +39830,7 @@
"defaultValue": "\"json\""
},
{
- "id": 341,
+ "id": 343,
"name": "jsonb",
"kind": 16,
"kindString": "Enumeration member",
@@ -37162,7 +39847,7 @@
"defaultValue": "\"jsonb\""
},
{
- "id": 342,
+ "id": 344,
"name": "money",
"kind": 16,
"kindString": "Enumeration member",
@@ -37179,7 +39864,7 @@
"defaultValue": "\"money\""
},
{
- "id": 343,
+ "id": 345,
"name": "numeric",
"kind": 16,
"kindString": "Enumeration member",
@@ -37196,7 +39881,7 @@
"defaultValue": "\"numeric\""
},
{
- "id": 344,
+ "id": 346,
"name": "oid",
"kind": 16,
"kindString": "Enumeration member",
@@ -37213,7 +39898,7 @@
"defaultValue": "\"oid\""
},
{
- "id": 345,
+ "id": 347,
"name": "reltime",
"kind": 16,
"kindString": "Enumeration member",
@@ -37230,7 +39915,7 @@
"defaultValue": "\"reltime\""
},
{
- "id": 346,
+ "id": 348,
"name": "time",
"kind": 16,
"kindString": "Enumeration member",
@@ -37247,7 +39932,7 @@
"defaultValue": "\"time\""
},
{
- "id": 347,
+ "id": 349,
"name": "timestamp",
"kind": 16,
"kindString": "Enumeration member",
@@ -37264,7 +39949,7 @@
"defaultValue": "\"timestamp\""
},
{
- "id": 348,
+ "id": 350,
"name": "timestamptz",
"kind": 16,
"kindString": "Enumeration member",
@@ -37281,7 +39966,7 @@
"defaultValue": "\"timestamptz\""
},
{
- "id": 349,
+ "id": 351,
"name": "timetz",
"kind": 16,
"kindString": "Enumeration member",
@@ -37298,7 +39983,7 @@
"defaultValue": "\"timetz\""
},
{
- "id": 350,
+ "id": 352,
"name": "tsrange",
"kind": 16,
"kindString": "Enumeration member",
@@ -37315,7 +40000,7 @@
"defaultValue": "\"tsrange\""
},
{
- "id": 351,
+ "id": 353,
"name": "tstzrange",
"kind": 16,
"kindString": "Enumeration member",
@@ -37337,8 +40022,6 @@
"title": "Enumeration members",
"kind": 16,
"children": [
- 329,
- 330,
331,
332,
333,
@@ -37359,7 +40042,9 @@
348,
349,
350,
- 351
+ 351,
+ 352,
+ 353
]
}
],
@@ -37372,7 +40057,7 @@
]
},
{
- "id": 352,
+ "id": 354,
"name": "Column",
"kind": 4194304,
"kindString": "Type alias",
@@ -37387,14 +40072,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 353,
+ "id": 355,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 354,
+ "id": 356,
"name": "flags",
"kind": 32,
"kindString": "Variable",
@@ -37415,7 +40100,7 @@
}
},
{
- "id": 355,
+ "id": 357,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -37433,7 +40118,7 @@
}
},
{
- "id": 356,
+ "id": 358,
"name": "type",
"kind": 32,
"kindString": "Variable",
@@ -37451,7 +40136,7 @@
}
},
{
- "id": 357,
+ "id": 359,
"name": "type_modifier",
"kind": 32,
"kindString": "Variable",
@@ -37474,10 +40159,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 354,
- 355,
356,
- 357
+ 357,
+ 358,
+ 359
]
}
],
@@ -37492,7 +40177,7 @@
}
},
{
- "id": 358,
+ "id": 360,
"name": "Records",
"kind": 4194304,
"kindString": "Type alias",
@@ -37507,21 +40192,21 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 359,
+ "id": 361,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"indexSignature": [
{
- "id": 360,
+ "id": 362,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
"flags": {},
"parameters": [
{
- "id": 361,
+ "id": 363,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -37549,7 +40234,7 @@
}
},
{
- "id": 378,
+ "id": 380,
"name": "convertCell",
"kind": 64,
"kindString": "Function",
@@ -37562,7 +40247,7 @@
"tags": [
{
"tag": "example",
- "text": "convertCell('bool', 'true')\n//=> true"
+ "text": "convertCell('bool', 't')\n//=> true"
},
{
"tag": "example",
@@ -37576,7 +40261,7 @@
},
"signatures": [
{
- "id": 379,
+ "id": 381,
"name": "convertCell",
"kind": 4096,
"kindString": "Call signature",
@@ -37588,7 +40273,7 @@
"tags": [
{
"tag": "example",
- "text": "convertCell('bool', 'true')\n//=> true"
+ "text": "convertCell('bool', 't')\n//=> true"
},
{
"tag": "example",
@@ -37602,7 +40287,7 @@
},
"parameters": [
{
- "id": 380,
+ "id": 382,
"name": "type",
"kind": 32768,
"kindString": "Parameter",
@@ -37618,7 +40303,7 @@
}
},
{
- "id": 381,
+ "id": 383,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -37649,7 +40334,7 @@
]
},
{
- "id": 362,
+ "id": 364,
"name": "convertChangeData",
"kind": 64,
"kindString": "Function",
@@ -37668,7 +40353,7 @@
},
"signatures": [
{
- "id": 363,
+ "id": 365,
"name": "convertChangeData",
"kind": 4096,
"kindString": "Call signature",
@@ -37686,7 +40371,7 @@
},
"parameters": [
{
- "id": 364,
+ "id": 366,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -37697,13 +40382,13 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 352,
+ "id": 354,
"name": "Column"
}
}
},
{
- "id": 365,
+ "id": 367,
"name": "records",
"kind": 32768,
"kindString": "Parameter",
@@ -37713,12 +40398,12 @@
"comment": {},
"type": {
"type": "reference",
- "id": 358,
+ "id": 360,
"name": "Records"
}
},
{
- "id": 366,
+ "id": 368,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -37731,7 +40416,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 367,
+ "id": 369,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -37740,7 +40425,7 @@
},
"children": [
{
- "id": 368,
+ "id": 370,
"name": "skipTypes",
"kind": 32,
"kindString": "Variable",
@@ -37769,7 +40454,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 368
+ 370
]
}
],
@@ -37788,7 +40473,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 369,
+ "id": 371,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -37797,7 +40482,7 @@
},
"indexSignature": [
{
- "id": 370,
+ "id": 372,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -37806,7 +40491,7 @@
},
"parameters": [
{
- "id": 371,
+ "id": 373,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -37838,7 +40523,7 @@
]
},
{
- "id": 372,
+ "id": 374,
"name": "convertColumn",
"kind": 64,
"kindString": "Function",
@@ -37852,17 +40537,17 @@
"tags": [
{
"tag": "example",
- "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33"
+ "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'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n"
+ "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n"
}
]
},
"signatures": [
{
- "id": 373,
+ "id": 375,
"name": "convertColumn",
"kind": 4096,
"kindString": "Call signature",
@@ -37875,17 +40560,17 @@
"tags": [
{
"tag": "example",
- "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33"
+ "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'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n"
+ "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n"
}
]
},
"parameters": [
{
- "id": 374,
+ "id": 376,
"name": "columnName",
"kind": 32768,
"kindString": "Parameter",
@@ -37901,7 +40586,7 @@
}
},
{
- "id": 375,
+ "id": 377,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -37912,13 +40597,13 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 352,
+ "id": 354,
"name": "Column"
}
}
},
{
- "id": 376,
+ "id": 378,
"name": "records",
"kind": 32768,
"kindString": "Parameter",
@@ -37930,12 +40615,12 @@
},
"type": {
"type": "reference",
- "id": 358,
+ "id": 360,
"name": "Records"
}
},
{
- "id": 377,
+ "id": 379,
"name": "skipTypes",
"kind": 32768,
"kindString": "Parameter",
@@ -37969,7 +40654,7 @@
]
},
{
- "id": 382,
+ "id": 384,
"name": "noop",
"kind": 64,
"kindString": "Function",
@@ -37978,14 +40663,14 @@
},
"signatures": [
{
- "id": 383,
+ "id": 385,
"name": "noop",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
- "id": 384,
+ "id": 386,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -38011,7 +40696,7 @@
]
},
{
- "id": 406,
+ "id": 408,
"name": "toArray",
"kind": 64,
"kindString": "Function",
@@ -38034,7 +40719,7 @@
},
"signatures": [
{
- "id": 407,
+ "id": 409,
"name": "toArray",
"kind": 4096,
"kindString": "Call signature",
@@ -38056,7 +40741,7 @@
},
"parameters": [
{
- "id": 408,
+ "id": 410,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -38069,7 +40754,7 @@
}
},
{
- "id": 409,
+ "id": 411,
"name": "type",
"kind": 32768,
"kindString": "Parameter",
@@ -38100,7 +40785,7 @@
]
},
{
- "id": 385,
+ "id": 387,
"name": "toBoolean",
"kind": 64,
"kindString": "Function",
@@ -38110,7 +40795,7 @@
},
"signatures": [
{
- "id": 386,
+ "id": 388,
"name": "toBoolean",
"kind": 4096,
"kindString": "Call signature",
@@ -38119,7 +40804,7 @@
},
"parameters": [
{
- "id": 387,
+ "id": 389,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -38160,7 +40845,7 @@
]
},
{
- "id": 388,
+ "id": 390,
"name": "toDate",
"kind": 64,
"kindString": "Function",
@@ -38170,7 +40855,7 @@
},
"signatures": [
{
- "id": 389,
+ "id": 391,
"name": "toDate",
"kind": 4096,
"kindString": "Call signature",
@@ -38179,7 +40864,7 @@
},
"parameters": [
{
- "id": 390,
+ "id": 392,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -38207,7 +40892,7 @@
]
},
{
- "id": 391,
+ "id": 393,
"name": "toDateRange",
"kind": 64,
"kindString": "Function",
@@ -38217,7 +40902,7 @@
},
"signatures": [
{
- "id": 392,
+ "id": 394,
"name": "toDateRange",
"kind": 4096,
"kindString": "Call signature",
@@ -38226,7 +40911,7 @@
},
"parameters": [
{
- "id": 393,
+ "id": 395,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -38257,7 +40942,7 @@
]
},
{
- "id": 394,
+ "id": 396,
"name": "toFloat",
"kind": 64,
"kindString": "Function",
@@ -38267,7 +40952,7 @@
},
"signatures": [
{
- "id": 395,
+ "id": 397,
"name": "toFloat",
"kind": 4096,
"kindString": "Call signature",
@@ -38276,7 +40961,7 @@
},
"parameters": [
{
- "id": 396,
+ "id": 398,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -38304,7 +40989,7 @@
]
},
{
- "id": 397,
+ "id": 399,
"name": "toInt",
"kind": 64,
"kindString": "Function",
@@ -38314,7 +40999,7 @@
},
"signatures": [
{
- "id": 398,
+ "id": 400,
"name": "toInt",
"kind": 4096,
"kindString": "Call signature",
@@ -38323,7 +41008,7 @@
},
"parameters": [
{
- "id": 399,
+ "id": 401,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -38351,7 +41036,7 @@
]
},
{
- "id": 400,
+ "id": 402,
"name": "toIntRange",
"kind": 64,
"kindString": "Function",
@@ -38361,7 +41046,7 @@
},
"signatures": [
{
- "id": 401,
+ "id": 403,
"name": "toIntRange",
"kind": 4096,
"kindString": "Call signature",
@@ -38370,7 +41055,7 @@
},
"parameters": [
{
- "id": 402,
+ "id": 404,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -38401,7 +41086,7 @@
]
},
{
- "id": 403,
+ "id": 405,
"name": "toJson",
"kind": 64,
"kindString": "Function",
@@ -38411,7 +41096,7 @@
},
"signatures": [
{
- "id": 404,
+ "id": 406,
"name": "toJson",
"kind": 4096,
"kindString": "Call signature",
@@ -38420,7 +41105,7 @@
},
"parameters": [
{
- "id": 405,
+ "id": 407,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -38448,7 +41133,7 @@
]
},
{
- "id": 410,
+ "id": 412,
"name": "toTimestampString",
"kind": 64,
"kindString": "Function",
@@ -38467,7 +41152,7 @@
},
"signatures": [
{
- "id": 411,
+ "id": 413,
"name": "toTimestampString",
"kind": 4096,
"kindString": "Call signature",
@@ -38485,7 +41170,7 @@
},
"parameters": [
{
- "id": 412,
+ "id": 414,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -38518,34 +41203,34 @@
"title": "Enumerations",
"kind": 4,
"children": [
- 328
+ 330
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 352,
- 358
+ 354,
+ 360
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 378,
- 362,
- 372,
- 382,
- 406,
- 385,
- 388,
- 391,
- 394,
- 397,
- 400,
- 403,
- 410
+ 380,
+ 364,
+ 374,
+ 384,
+ 408,
+ 387,
+ 390,
+ 393,
+ 396,
+ 399,
+ 402,
+ 405,
+ 412
]
}
],
@@ -38563,14 +41248,14 @@
"title": "Modules",
"kind": 1,
"children": [
- 194,
- 90,
- 413,
+ 196,
+ 92,
+ 415,
1,
38,
- 169,
+ 171,
24,
- 327
+ 329
]
}
]
diff --git a/web/spec/gotrue.json b/web/spec/gotrue.json
index 662e078287d..eff58464413 100644
--- a/web/spec/gotrue.json
+++ b/web/spec/gotrue.json
@@ -6,7 +6,7 @@
"originalName": "",
"children": [
{
- "id": 197,
+ "id": 207,
"name": "\"GoTrueApi\"",
"kind": 1,
"kindString": "Module",
@@ -16,7 +16,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",
"children": [
{
- "id": 198,
+ "id": 208,
"name": "GoTrueApi",
"kind": 128,
"kindString": "Class",
@@ -25,7 +25,7 @@
},
"children": [
{
- "id": 205,
+ "id": 215,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -34,7 +34,7 @@
},
"signatures": [
{
- "id": 206,
+ "id": 216,
"name": "new GoTrueApi",
"kind": 16384,
"kindString": "Constructor signature",
@@ -43,7 +43,7 @@
},
"parameters": [
{
- "id": 207,
+ "id": 217,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -54,7 +54,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 208,
+ "id": 218,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -63,7 +63,7 @@
},
"children": [
{
- "id": 214,
+ "id": 224,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -86,14 +86,14 @@
},
{
"type": "reference",
- "id": 92,
+ "id": 97,
"name": "CookieOptions"
}
]
}
},
{
- "id": 210,
+ "id": 220,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -110,7 +110,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 211,
+ "id": 221,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -119,7 +119,7 @@
},
"indexSignature": [
{
- "id": 212,
+ "id": 222,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -128,7 +128,7 @@
},
"parameters": [
{
- "id": 213,
+ "id": 223,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -151,7 +151,7 @@
}
},
{
- "id": 209,
+ "id": 219,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -177,9 +177,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 214,
- 210,
- 209
+ 224,
+ 220,
+ 219
]
}
],
@@ -196,7 +196,7 @@
],
"type": {
"type": "reference",
- "id": 198,
+ "id": 208,
"name": "GoTrueApi"
}
}
@@ -210,7 +210,7 @@
]
},
{
- "id": 204,
+ "id": 214,
"name": "cookieOptions",
"kind": 1024,
"kindString": "Property",
@@ -227,12 +227,12 @@
],
"type": {
"type": "reference",
- "id": 92,
+ "id": 97,
"name": "CookieOptions"
}
},
{
- "id": 200,
+ "id": 210,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -250,7 +250,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 201,
+ "id": 211,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -259,7 +259,7 @@
},
"indexSignature": [
{
- "id": 202,
+ "id": 212,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -268,7 +268,7 @@
},
"parameters": [
{
- "id": 203,
+ "id": 213,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -298,7 +298,7 @@
}
},
{
- "id": 199,
+ "id": 209,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -319,7 +319,7 @@
}
},
{
- "id": 264,
+ "id": 305,
"name": "_createRequestHeaders",
"kind": 2048,
"kindString": "Method",
@@ -329,7 +329,7 @@
},
"signatures": [
{
- "id": 265,
+ "id": 306,
"name": "_createRequestHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -341,7 +341,7 @@
},
"parameters": [
{
- "id": 266,
+ "id": 307,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -360,7 +360,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 267,
+ "id": 308,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -374,13 +374,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 166,
+ "line": 247,
"character": 31
}
]
},
{
- "id": 295,
+ "id": 336,
"name": "deleteUser",
"kind": 2048,
"kindString": "Method",
@@ -389,7 +389,7 @@
},
"signatures": [
{
- "id": 296,
+ "id": 337,
"name": "deleteUser",
"kind": 4096,
"kindString": "Call signature",
@@ -401,7 +401,7 @@
},
"parameters": [
{
- "id": 297,
+ "id": 338,
"name": "uid",
"kind": 32768,
"kindString": "Parameter",
@@ -417,7 +417,7 @@
}
},
{
- "id": 298,
+ "id": 339,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -439,7 +439,7 @@
{
"type": "reflection",
"declaration": {
- "id": 299,
+ "id": 340,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -448,7 +448,7 @@
},
"children": [
{
- "id": 301,
+ "id": 342,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -458,7 +458,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 254,
+ "line": 335,
"character": 38
}
],
@@ -478,7 +478,7 @@
}
},
{
- "id": 302,
+ "id": 343,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -488,7 +488,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 254,
+ "line": 335,
"character": 58
}
],
@@ -507,7 +507,7 @@
}
},
{
- "id": 300,
+ "id": 341,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -517,7 +517,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 254,
+ "line": 335,
"character": 19
}
],
@@ -542,16 +542,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 301,
- 302,
- 300
+ 342,
+ 343,
+ 341
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 254,
+ "line": 335,
"character": 13
}
]
@@ -565,14 +565,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 251,
+ "line": 332,
"character": 18
}
]
},
{
- "id": 273,
- "name": "getUrlForProvider",
+ "id": 361,
+ "name": "generateLink",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -580,36 +580,68 @@
},
"signatures": [
{
- "id": 274,
- "name": "getUrlForProvider",
+ "id": 362,
+ "name": "generateLink",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Generates the relevant login URL for a third-party provider."
+ "shortText": "Generates links to be sent via email or other."
},
"parameters": [
{
- "id": 275,
- "name": "provider",
+ "id": 363,
+ "name": "type",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "One of the providers supported by GoTrue."
+ "text": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")."
},
"type": {
- "type": "reference",
- "id": 103,
- "name": "Provider"
+ "type": "union",
+ "types": [
+ {
+ "type": "stringLiteral",
+ "value": "signup"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "magiclink"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "recovery"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "invite"
+ }
+ ]
+ }
+ },
+ {
+ "id": 364,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's email."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
},
{
- "id": 276,
+ "id": 365,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -619,7 +651,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 277,
+ "id": 366,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -628,8 +660,8 @@
},
"children": [
{
- "id": 278,
- "name": "redirectTo",
+ "id": 368,
+ "name": "data",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -639,8 +671,29 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 198,
- "character": 16
+ "line": 432,
+ "character": 10
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 367,
+ "name": "password",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 431,
+ "character": 14
}
],
"type": {
@@ -658,8 +711,8 @@
}
},
{
- "id": 279,
- "name": "scopes",
+ "id": 369,
+ "name": "redirectTo",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -669,8 +722,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 199,
- "character": 12
+ "line": 433,
+ "character": 16
}
],
"type": {
@@ -693,72 +746,22 @@
"title": "Variables",
"kind": 32,
"children": [
- 278,
- 279
+ 368,
+ 367,
+ 369
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 197,
+ "line": 430,
"character": 12
}
]
}
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 195,
- "character": 19
- }
- ]
- },
- {
- "id": 280,
- "name": "getUser",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 281,
- "name": "getUser",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Gets the user details."
- },
- "parameters": [
- {
- "id": 282,
- "name": "jwt",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
},
- "comment": {
- "text": "A valid, logged-in JWT.\n"
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
+ "defaultValue": "{}"
}
],
"type": {
@@ -767,7 +770,7 @@
{
"type": "reflection",
"declaration": {
- "id": 283,
+ "id": 370,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -776,23 +779,31 @@
},
"children": [
{
- "id": 285,
+ "id": 371,
"name": "data",
"kind": 32,
"kindString": "Variable",
"flags": {
"isExported": true
},
+ "comment": {
+ "text": "Optional user metadata. For signup only."
+ },
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 218,
- "character": 38
+ "line": 435,
+ "character": 19
}
],
"type": {
"type": "union",
"types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
{
"type": "reference",
"id": 58,
@@ -806,7 +817,7 @@
}
},
{
- "id": 286,
+ "id": 372,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -816,8 +827,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 218,
- "character": 58
+ "line": 435,
+ "character": 49
}
],
"type": {
@@ -833,36 +844,6 @@
}
]
}
- },
- {
- "id": 284,
- "name": "user",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 218,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 58,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
}
],
"groups": [
@@ -870,16 +851,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 285,
- 286,
- 284
+ 371,
+ 372
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 218,
+ "line": 435,
"character": 13
}
]
@@ -893,14 +873,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 216,
- "character": 15
+ "line": 427,
+ "character": 20
}
]
},
{
- "id": 313,
- "name": "getUserByCookie",
+ "id": 314,
+ "name": "getUrlForProvider",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -908,38 +888,46 @@
},
"signatures": [
{
- "id": 314,
- "name": "getUserByCookie",
+ "id": 315,
+ "name": "getUrlForProvider",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ "shortText": "Generates the relevant login URL for a third-party provider."
},
"parameters": [
{
- "id": 315,
- "name": "req",
+ "id": 316,
+ "name": "provider",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
+ "comment": {
+ "text": "One of the providers supported by GoTrue."
+ },
"type": {
- "type": "intrinsic",
- "name": "any"
+ "type": "reference",
+ "id": 112,
+ "name": "Provider"
}
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
+ },
+ {
+ "id": 317,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
"type": "reflection",
"declaration": {
- "id": 316,
+ "id": 318,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -948,131 +936,104 @@
},
"children": [
{
- "id": 318,
- "name": "data",
+ "id": 319,
+ "name": "redirectTo",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 322,
- "character": 38
+ "line": 279,
+ "character": 16
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "id": 58,
- "name": "User"
+ "type": "intrinsic",
+ "name": "undefined"
},
{
"type": "intrinsic",
- "name": "null"
+ "name": "string"
}
]
}
},
{
- "id": 319,
- "name": "error",
+ "id": 320,
+ "name": "scopes",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 322,
- "character": 58
+ "line": 280,
+ "character": 12
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "name": "Error"
+ "type": "intrinsic",
+ "name": "undefined"
},
{
"type": "intrinsic",
- "name": "null"
+ "name": "string"
}
]
}
- },
+ }
+ ],
+ "groups": [
{
- "id": 317,
- "name": "user",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 322,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 58,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
+ "title": "Variables",
"kind": 32,
"children": [
- 318,
319,
- 317
+ 320
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 322,
- "character": 13
+ "line": 278,
+ "character": 12
}
]
}
}
- ],
- "name": "Promise"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 320,
- "character": 23
+ "line": 276,
+ "character": 19
}
]
},
{
- "id": 245,
- "name": "inviteUserByEmail",
+ "id": 321,
+ "name": "getUser",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -1080,45 +1041,41 @@
},
"signatures": [
{
- "id": 246,
- "name": "inviteUserByEmail",
+ "id": 322,
+ "name": "getUser",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Sends an invite link to an email address."
+ "shortText": "Gets the user details."
},
"parameters": [
{
- "id": 247,
- "name": "email",
+ "id": 323,
+ "name": "jwt",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The email address of the user."
+ "text": "A valid, logged-in JWT.\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 248,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
"type": "reflection",
"declaration": {
- "id": 249,
+ "id": 324,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1127,74 +1084,38 @@
},
"children": [
{
- "id": 250,
- "name": "redirectTo",
+ "id": 326,
+ "name": "data",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true,
- "isOptional": true
+ "isExported": true
},
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 121,
- "character": 16
+ "line": 299,
+ "character": 38
}
],
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reference",
+ "id": 58,
+ "name": "User"
},
{
"type": "intrinsic",
- "name": "string"
+ "name": "null"
}
]
}
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 250
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 120,
- "character": 12
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 251,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
+ },
{
- "id": 252,
- "name": "data",
+ "id": 327,
+ "name": "error",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -1203,8 +1124,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 123,
- "character": 19
+ "line": 299,
+ "character": 58
}
],
"type": {
@@ -1212,8 +1133,7 @@
"types": [
{
"type": "reference",
- "id": 58,
- "name": "User"
+ "name": "Error"
},
{
"type": "intrinsic",
@@ -1223,8 +1143,8 @@
}
},
{
- "id": 253,
- "name": "error",
+ "id": 325,
+ "name": "user",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -1233,8 +1153,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 123,
- "character": 39
+ "line": 299,
+ "character": 19
}
],
"type": {
@@ -1242,7 +1162,8 @@
"types": [
{
"type": "reference",
- "name": "Error"
+ "id": 58,
+ "name": "User"
},
{
"type": "intrinsic",
@@ -1257,15 +1178,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 252,
- 253
+ 326,
+ 327,
+ 325
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 123,
+ "line": 299,
"character": 13
}
]
@@ -1279,14 +1201,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 118,
- "character": 25
+ "line": 297,
+ "character": 15
}
]
},
{
- "id": 303,
- "name": "refreshAccessToken",
+ "id": 354,
+ "name": "getUserByCookie",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -1294,31 +1216,28 @@
},
"signatures": [
{
- "id": 304,
- "name": "refreshAccessToken",
+ "id": 355,
+ "name": "getUserByCookie",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Generates a new JWT."
+ "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)."
},
"parameters": [
{
- "id": 305,
- "name": "refreshToken",
+ "id": 356,
+ "name": "req",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
- "comment": {
- "text": "A valid refresh token that was returned on login.\n"
- },
"type": {
"type": "intrinsic",
- "name": "string"
+ "name": "any"
}
}
],
@@ -1328,7 +1247,7 @@
{
"type": "reflection",
"declaration": {
- "id": 306,
+ "id": 357,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1337,7 +1256,7 @@
},
"children": [
{
- "id": 307,
+ "id": 359,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1347,8 +1266,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 275,
- "character": 19
+ "line": 403,
+ "character": 38
}
],
"type": {
@@ -1356,8 +1275,8 @@
"types": [
{
"type": "reference",
- "id": 50,
- "name": "Session"
+ "id": 58,
+ "name": "User"
},
{
"type": "intrinsic",
@@ -1367,7 +1286,7 @@
}
},
{
- "id": 308,
+ "id": 360,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1377,8 +1296,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 275,
- "character": 42
+ "line": 403,
+ "character": 58
}
],
"type": {
@@ -1394,6 +1313,36 @@
}
]
}
+ },
+ {
+ "id": 358,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 403,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
}
],
"groups": [
@@ -1401,15 +1350,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 307,
- 308
+ 359,
+ 360,
+ 358
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 275,
+ "line": 403,
"character": 13
}
]
@@ -1423,14 +1373,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 273,
- "character": 26
+ "line": 401,
+ "character": 23
}
]
},
{
- "id": 254,
- "name": "resetPasswordForEmail",
+ "id": 286,
+ "name": "inviteUserByEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -1438,19 +1388,19 @@
},
"signatures": [
{
- "id": 255,
- "name": "resetPasswordForEmail",
+ "id": 287,
+ "name": "inviteUserByEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Sends a reset request to an email address."
+ "shortText": "Sends an invite link to an email address."
},
"parameters": [
{
- "id": 256,
+ "id": 288,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1466,7 +1416,7 @@
}
},
{
- "id": 257,
+ "id": 289,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1476,7 +1426,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 258,
+ "id": 290,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1485,7 +1435,7 @@
},
"children": [
{
- "id": 259,
+ "id": 291,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -1496,7 +1446,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 145,
+ "line": 202,
"character": 16
}
],
@@ -1520,14 +1470,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 259
+ 291
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 144,
+ "line": 201,
"character": 12
}
]
@@ -1542,7 +1492,7 @@
{
"type": "reflection",
"declaration": {
- "id": 260,
+ "id": 292,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1551,7 +1501,7 @@
},
"children": [
{
- "id": 261,
+ "id": 293,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1561,7 +1511,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 147,
+ "line": 204,
"character": 19
}
],
@@ -1569,23 +1519,9 @@
"type": "union",
"types": [
{
- "type": "reflection",
- "declaration": {
- "id": 262,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 147,
- "character": 20
- }
- ]
- }
+ "type": "reference",
+ "id": 58,
+ "name": "User"
},
{
"type": "intrinsic",
@@ -1595,7 +1531,7 @@
}
},
{
- "id": 263,
+ "id": 294,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1605,8 +1541,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 147,
- "character": 37
+ "line": 204,
+ "character": 39
}
],
"type": {
@@ -1629,15 +1565,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 261,
- 263
+ 293,
+ 294
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 147,
+ "line": 204,
"character": 13
}
]
@@ -1651,14 +1587,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 142,
- "character": 29
+ "line": 199,
+ "character": 25
}
]
},
{
- "id": 235,
- "name": "sendMagicLinkEmail",
+ "id": 344,
+ "name": "refreshAccessToken",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -1666,45 +1602,41 @@
},
"signatures": [
{
- "id": 236,
- "name": "sendMagicLinkEmail",
+ "id": 345,
+ "name": "refreshAccessToken",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Sends a magic login link to an email address."
+ "shortText": "Generates a new JWT."
},
"parameters": [
{
- "id": 237,
- "name": "email",
+ "id": 346,
+ "name": "refreshToken",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The email address of the user."
+ "text": "A valid refresh token that was returned on login.\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 238,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
"type": "reflection",
"declaration": {
- "id": 239,
+ "id": 347,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1713,107 +1645,27 @@
},
"children": [
{
- "id": 240,
- "name": "redirectTo",
+ "id": 348,
+ "name": "data",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true,
- "isOptional": true
+ "isExported": true
},
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 97,
- "character": 16
+ "line": 356,
+ "character": 19
}
],
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 240
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 96,
- "character": 12
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 241,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 242,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 99,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 243,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 99,
- "character": 20
- }
- ]
- }
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
},
{
"type": "intrinsic",
@@ -1823,7 +1675,7 @@
}
},
{
- "id": 244,
+ "id": 349,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1833,8 +1685,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 99,
- "character": 37
+ "line": 356,
+ "character": 42
}
],
"type": {
@@ -1857,15 +1709,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 242,
- 244
+ 348,
+ 349
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 99,
+ "line": 356,
"character": 13
}
]
@@ -1879,76 +1731,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 94,
+ "line": 354,
"character": 26
}
]
},
{
- "id": 309,
- "name": "setAuthCookie",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 310,
- "name": "setAuthCookie",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."
- },
- "parameters": [
- {
- "id": 311,
- "name": "req",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- },
- {
- "id": 312,
- "name": "res",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "void"
- }
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 294,
- "character": 15
- }
- ]
- },
- {
- "id": 225,
- "name": "signInWithEmail",
+ "id": 295,
+ "name": "resetPasswordForEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -1956,19 +1746,19 @@
},
"signatures": [
{
- "id": 226,
- "name": "signInWithEmail",
+ "id": 296,
+ "name": "resetPasswordForEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Logs in an existing user using their email address."
+ "shortText": "Sends a reset request to an email address."
},
"parameters": [
{
- "id": 227,
+ "id": 297,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1984,23 +1774,7 @@
}
},
{
- "id": 228,
- "name": "password",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The password of the user."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 229,
+ "id": 298,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2010,7 +1784,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 230,
+ "id": 299,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2019,7 +1793,7 @@
},
"children": [
{
- "id": 231,
+ "id": 300,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -2030,7 +1804,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 71,
+ "line": 226,
"character": 16
}
],
@@ -2054,14 +1828,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 231
+ 300
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 70,
+ "line": 225,
"character": 12
}
]
@@ -2076,7 +1850,7 @@
{
"type": "reflection",
"declaration": {
- "id": 232,
+ "id": 301,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2085,7 +1859,7 @@
},
"children": [
{
- "id": 233,
+ "id": 302,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2095,7 +1869,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 73,
+ "line": 228,
"character": 19
}
],
@@ -2103,9 +1877,23 @@
"type": "union",
"types": [
{
- "type": "reference",
- "id": 50,
- "name": "Session"
+ "type": "reflection",
+ "declaration": {
+ "id": 303,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 228,
+ "character": 20
+ }
+ ]
+ }
},
{
"type": "intrinsic",
@@ -2115,7 +1903,7 @@
}
},
{
- "id": 234,
+ "id": 304,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2125,8 +1913,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 73,
- "character": 42
+ "line": 228,
+ "character": 37
}
],
"type": {
@@ -2149,15 +1937,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 233,
- 234
+ 302,
+ 304
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 73,
+ "line": 228,
"character": 13
}
]
@@ -2171,14 +1959,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 67,
- "character": 23
+ "line": 223,
+ "character": 29
}
]
},
{
- "id": 268,
- "name": "signOut",
+ "id": 259,
+ "name": "sendMagicLinkEmail",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -2186,41 +1974,45 @@
},
"signatures": [
{
- "id": 269,
- "name": "signOut",
+ "id": 260,
+ "name": "sendMagicLinkEmail",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Removes a logged-in session."
+ "shortText": "Sends a magic login link to an email address."
},
"parameters": [
{
- "id": 270,
- "name": "jwt",
+ "id": 261,
+ "name": "email",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "A valid, logged-in JWT.\n"
+ "text": "The email address of the user."
},
"type": {
"type": "intrinsic",
"name": "string"
}
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
+ },
+ {
+ "id": 262,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
"type": "reflection",
"declaration": {
- "id": 271,
+ "id": 263,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2229,30 +2021,31 @@
},
"children": [
{
- "id": 272,
- "name": "error",
+ "id": 264,
+ "name": "redirectTo",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 176,
- "character": 45
+ "line": 138,
+ "character": 16
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "name": "Error"
+ "type": "intrinsic",
+ "name": "undefined"
},
{
"type": "intrinsic",
- "name": "null"
+ "name": "string"
}
]
}
@@ -2263,150 +2056,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 272
+ 264
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 176,
- "character": 38
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 176,
- "character": 15
- }
- ]
- },
- {
- "id": 215,
- "name": "signUpWithEmail",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 216,
- "name": "signUpWithEmail",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Creates a new user using their email address.",
- "returns": "A logged-in session if the server has \"autoconfirm\" ON"
- },
- "parameters": [
- {
- "id": 217,
- "name": "email",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The email address of the user."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 218,
- "name": "password",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The password of the user."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 219,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 220,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 221,
- "name": "redirectTo",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 43,
- "character": 16
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 221
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 42,
- "character": 12
+ "line": 137,
+ "character": 12
}
]
}
@@ -2420,7 +2078,7 @@
{
"type": "reflection",
"declaration": {
- "id": 222,
+ "id": 265,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2429,7 +2087,7 @@
},
"children": [
{
- "id": 223,
+ "id": 266,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2439,7 +2097,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 45,
+ "line": 140,
"character": 19
}
],
@@ -2447,14 +2105,23 @@
"type": "union",
"types": [
{
- "type": "reference",
- "id": 50,
- "name": "Session"
- },
- {
- "type": "reference",
- "id": 58,
- "name": "User"
+ "type": "reflection",
+ "declaration": {
+ "id": 267,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 140,
+ "character": 20
+ }
+ ]
+ }
},
{
"type": "intrinsic",
@@ -2464,7 +2131,7 @@
}
},
{
- "id": 224,
+ "id": 268,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2474,8 +2141,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 45,
- "character": 49
+ "line": 140,
+ "character": 37
}
],
"type": {
@@ -2498,15 +2165,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 223,
- 224
+ 266,
+ 268
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 45,
+ "line": 140,
"character": 13
}
]
@@ -2520,14 +2187,14 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 39,
- "character": 23
+ "line": 135,
+ "character": 26
}
]
},
{
- "id": 287,
- "name": "updateUser",
+ "id": 269,
+ "name": "sendMobileOTP",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -2535,49 +2202,32 @@
},
"signatures": [
{
- "id": 288,
- "name": "updateUser",
+ "id": 270,
+ "name": "sendMobileOTP",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Updates the user data."
+ "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist"
},
"parameters": [
{
- "id": 289,
- "name": "jwt",
+ "id": 271,
+ "name": "phone",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "A valid, logged-in JWT."
+ "text": "The user's phone number WITH international prefix\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 290,
- "name": "attributes",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The data you want to update.\n"
- },
- "type": {
- "type": "reference",
- "id": 77,
- "name": "UserAttributes"
- }
}
],
"type": {
@@ -2586,7 +2236,7 @@
{
"type": "reflection",
"declaration": {
- "id": 291,
+ "id": 272,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2595,7 +2245,7 @@
},
"children": [
{
- "id": 293,
+ "id": 273,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2605,17 +2255,31 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 235,
- "character": 38
+ "line": 158,
+ "character": 52
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "id": 58,
- "name": "User"
+ "type": "reflection",
+ "declaration": {
+ "id": 274,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 158,
+ "character": 53
+ }
+ ]
+ }
},
{
"type": "intrinsic",
@@ -2625,7 +2289,7 @@
}
},
{
- "id": 294,
+ "id": 275,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2635,8 +2299,8 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 235,
- "character": 58
+ "line": 158,
+ "character": 70
}
],
"type": {
@@ -2652,36 +2316,6 @@
}
]
}
- },
- {
- "id": 292,
- "name": "user",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueApi.ts",
- "line": 235,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 58,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
}
],
"groups": [
@@ -2689,17 +2323,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 293,
- 294,
- 292
+ 273,
+ 275
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 235,
- "character": 13
+ "line": 158,
+ "character": 46
}
]
}
@@ -2712,47 +2345,1445 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 232,
- "character": 18
+ "line": 158,
+ "character": 21
}
]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 205
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 204,
- 200,
- 199
- ]
},
{
- "title": "Methods",
+ "id": 350,
+ "name": "setAuthCookie",
"kind": 2048,
- "children": [
- 264,
- 295,
- 273,
- 280,
- 313,
- 245,
- 303,
- 254,
- 235,
- 309,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 351,
+ "name": "setAuthCookie",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)."
+ },
+ "parameters": [
+ {
+ "id": 352,
+ "name": "req",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 353,
+ "name": "res",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 375,
+ "character": 15
+ }
+ ]
+ },
+ {
+ "id": 235,
+ "name": "signInWithEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 236,
+ "name": "signInWithEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Logs in an existing user using their email address."
+ },
+ "parameters": [
+ {
+ "id": 237,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 238,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 239,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 240,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 241,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 71,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 241
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 70,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 242,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 243,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 73,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 244,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 73,
+ "character": 42
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 243,
+ 244
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 73,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 67,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 252,
+ "name": "signInWithPhone",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 253,
+ "name": "signInWithPhone",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Logs in an existing user using their phone number and password."
+ },
+ "parameters": [
+ {
+ "id": 254,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The phone number of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 255,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The password of the user.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 256,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 257,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 117,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 258,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 117,
+ "character": 42
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 257,
+ 258
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 117,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 114,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 309,
+ "name": "signOut",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 310,
+ "name": "signOut",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Removes a logged-in session."
+ },
+ "parameters": [
+ {
+ "id": 311,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A valid, logged-in JWT.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 312,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 313,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 257,
+ "character": 45
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 313
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 257,
+ "character": 38
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 257,
+ "character": 15
+ }
+ ]
+ },
+ {
+ "id": 225,
+ "name": "signUpWithEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 226,
+ "name": "signUpWithEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Creates a new user using their email address.",
+ "returns": "A logged-in session if the server has \"autoconfirm\" ON"
+ },
+ "parameters": [
+ {
+ "id": 227,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The email address of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 228,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The password of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 229,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 230,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 231,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 43,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 231
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 42,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 232,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 233,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 45,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 234,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 45,
+ "character": 49
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 233,
+ 234
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 45,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 39,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 245,
+ "name": "signUpWithPhone",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 246,
+ "name": "signUpWithPhone",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Signs up a new user using their phone number and a password."
+ },
+ "parameters": [
+ {
+ "id": 247,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The phone number of the user."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 248,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The password of the user.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 249,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 250,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 97,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 251,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 97,
+ "character": 49
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 250,
+ 251
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 97,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 94,
+ "character": 23
+ }
+ ]
+ },
+ {
+ "id": 328,
+ "name": "updateUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 329,
+ "name": "updateUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Updates the user data."
+ },
+ "parameters": [
+ {
+ "id": 330,
+ "name": "jwt",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "A valid, logged-in JWT."
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 331,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The data you want to update.\n"
+ },
+ "type": {
+ "type": "reference",
+ "id": 82,
+ "name": "UserAttributes"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 332,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 334,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 316,
+ "character": 38
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 335,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 316,
+ "character": 58
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 333,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 316,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 334,
+ 335,
+ 333
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 316,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 313,
+ "character": 18
+ }
+ ]
+ },
+ {
+ "id": 276,
+ "name": "verifyMobileOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 277,
+ "name": "verifyMobileOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Send User supplied Mobile OTP to be verified"
+ },
+ "parameters": [
+ {
+ "id": 278,
+ "name": "phone",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number WITH international prefix"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 279,
+ "name": "token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "token that user was sent to their mobile phone"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 280,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 281,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 282,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 178,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 282
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 177,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "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": "GoTrueApi.ts",
+ "line": 180,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 285,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 180,
+ "character": 49
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 284,
+ 285
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 180,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 174,
+ "character": 23
+ }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [
+ 215
+ ]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 214,
+ 210,
+ 209
+ ]
+ },
+ {
+ "title": "Methods",
+ "kind": 2048,
+ "children": [
+ 305,
+ 336,
+ 361,
+ 314,
+ 321,
+ 354,
+ 286,
+ 344,
+ 295,
+ 259,
+ 269,
+ 350,
+ 235,
+ 252,
+ 309,
225,
- 268,
- 215,
- 287
+ 245,
+ 328,
+ 276
]
}
],
@@ -2770,7 +3801,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 198
+ 208
]
}
],
@@ -2783,7 +3814,7 @@
]
},
{
- "id": 323,
+ "id": 376,
"name": "\"GoTrueClient\"",
"kind": 1,
"kindString": "Module",
@@ -2793,7 +3824,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
"children": [
{
- "id": 324,
+ "id": 377,
"name": "GoTrueClient",
"kind": 128,
"kindString": "Class",
@@ -2802,7 +3833,7 @@
},
"children": [
{
- "id": 333,
+ "id": 386,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -2814,7 +3845,7 @@
},
"signatures": [
{
- "id": 334,
+ "id": 387,
"name": "new GoTrueClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -2826,7 +3857,7 @@
},
"parameters": [
{
- "id": 335,
+ "id": 388,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2836,7 +3867,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 336,
+ "id": 389,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2845,7 +3876,7 @@
},
"children": [
{
- "id": 343,
+ "id": 396,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -2859,7 +3890,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 60,
+ "line": 61,
"character": 20
}
],
@@ -2882,7 +3913,7 @@
}
},
{
- "id": 346,
+ "id": 399,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -2893,18 +3924,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 63,
+ "line": 64,
"character": 17
}
],
"type": {
"type": "reference",
- "id": 92,
+ "id": 97,
"name": "CookieOptions"
}
},
{
- "id": 342,
+ "id": 395,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -2918,7 +3949,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 59,
+ "line": 60,
"character": 22
}
],
@@ -2941,7 +3972,7 @@
}
},
{
- "id": 338,
+ "id": 391,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -2955,7 +3986,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 58,
+ "line": 59,
"character": 11
}
],
@@ -2969,7 +4000,7 @@
{
"type": "reflection",
"declaration": {
- "id": 339,
+ "id": 392,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2978,7 +4009,7 @@
},
"indexSignature": [
{
- "id": 340,
+ "id": 393,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -2987,7 +4018,7 @@
},
"parameters": [
{
- "id": 341,
+ "id": 394,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -3012,7 +4043,7 @@
}
},
{
- "id": 345,
+ "id": 398,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -3026,7 +4057,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 62,
+ "line": 63,
"character": 16
}
],
@@ -3036,7 +4067,7 @@
}
},
{
- "id": 344,
+ "id": 397,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -3050,7 +4081,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 61,
+ "line": 62,
"character": 18
}
],
@@ -3073,7 +4104,7 @@
}
},
{
- "id": 337,
+ "id": 390,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -3087,7 +4118,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 57,
+ "line": 58,
"character": 7
}
],
@@ -3111,20 +4142,20 @@
"title": "Variables",
"kind": 32,
"children": [
- 343,
- 346,
- 342,
- 338,
- 345,
- 344,
- 337
+ 396,
+ 399,
+ 395,
+ 391,
+ 398,
+ 397,
+ 390
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 56,
+ "line": 57,
"character": 22
}
]
@@ -3134,7 +4165,7 @@
],
"type": {
"type": "reference",
- "id": 324,
+ "id": 377,
"name": "GoTrueClient"
}
}
@@ -3142,13 +4173,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 45,
+ "line": 46,
"character": 61
}
]
},
{
- "id": 325,
+ "id": 378,
"name": "api",
"kind": 1024,
"kindString": "Property",
@@ -3161,18 +4192,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 31,
+ "line": 32,
"character": 5
}
],
"type": {
"type": "reference",
- "id": 198,
+ "id": 208,
"name": "GoTrueApi"
}
},
{
- "id": 328,
+ "id": 381,
"name": "autoRefreshToken",
"kind": 1024,
"kindString": "Property",
@@ -3183,7 +4214,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 41,
+ "line": 42,
"character": 28
}
],
@@ -3193,7 +4224,7 @@
}
},
{
- "id": 327,
+ "id": 380,
"name": "currentSession",
"kind": 1024,
"kindString": "Property",
@@ -3207,7 +4238,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 39,
+ "line": 40,
"character": 26
}
],
@@ -3227,7 +4258,7 @@
}
},
{
- "id": 326,
+ "id": 379,
"name": "currentUser",
"kind": 1024,
"kindString": "Property",
@@ -3241,7 +4272,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 35,
+ "line": 36,
"character": 23
}
],
@@ -3261,7 +4292,7 @@
}
},
{
- "id": 330,
+ "id": 383,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -3272,7 +4303,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 43,
+ "line": 44,
"character": 24
}
],
@@ -3282,7 +4313,7 @@
}
},
{
- "id": 329,
+ "id": 382,
"name": "persistSession",
"kind": 1024,
"kindString": "Property",
@@ -3293,7 +4324,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 42,
+ "line": 43,
"character": 26
}
],
@@ -3303,7 +4334,7 @@
}
},
{
- "id": 332,
+ "id": 385,
"name": "refreshTokenTimer",
"kind": 1024,
"kindString": "Property",
@@ -3315,7 +4346,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 45,
+ "line": 46,
"character": 29
}
],
@@ -3334,7 +4365,7 @@
}
},
{
- "id": 331,
+ "id": 384,
"name": "stateChangeEmitters",
"kind": 1024,
"kindString": "Property",
@@ -3345,7 +4376,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 44,
+ "line": 45,
"character": 31
}
],
@@ -3358,7 +4389,7 @@
},
{
"type": "reference",
- "id": 82,
+ "id": 87,
"name": "Subscription"
}
],
@@ -3367,7 +4398,7 @@
"defaultValue": "new Map()"
},
{
- "id": 468,
+ "id": 551,
"name": "_callRefreshToken",
"kind": 2048,
"kindString": "Method",
@@ -3377,7 +4408,7 @@
},
"signatures": [
{
- "id": 469,
+ "id": 552,
"name": "_callRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -3386,27 +4417,295 @@
},
"parameters": [
{
- "id": 470,
- "name": "refresh_token",
+ "id": 553,
+ "name": "refresh_token",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ },
+ "defaultValue": "this.currentSession?.refresh_token"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 554,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 555,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 610,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ }
+ },
+ {
+ "id": 556,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 610,
+ "character": 26
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 555,
+ 556
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 557,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 558,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 612,
+ "character": 19
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 559,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 612,
+ "character": 32
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 558,
+ 559
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 598,
+ "character": 33
+ }
+ ]
+ },
+ {
+ "id": 497,
+ "name": "_handleEmailSignIn",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isPrivate": true,
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 498,
+ "name": "_handleEmailSignIn",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "parameters": [
+ {
+ "id": 499,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 500,
+ "name": "password",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 501,
+ "name": "options",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reflection",
+ "declaration": {
+ "id": 502,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
},
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
+ "children": [
+ {
+ "id": 503,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 473,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 503
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 472,
+ "character": 12
+ }
+ ]
+ }
},
- "defaultValue": "this.currentSession?.refresh_token"
+ "defaultValue": "{}"
}
],
"type": {
@@ -3418,7 +4717,7 @@
{
"type": "reflection",
"declaration": {
- "id": 471,
+ "id": 504,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3427,7 +4726,7 @@
},
"children": [
{
- "id": 472,
+ "id": 505,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3437,7 +4736,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 532,
+ "line": 487,
"character": 19
}
],
@@ -3448,7 +4747,7 @@
}
},
{
- "id": 473,
+ "id": 508,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3458,8 +4757,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 532,
- "character": 26
+ "line": 487,
+ "character": 58
}
],
"type": {
@@ -3467,6 +4766,59 @@
"name": "null"
},
"defaultValue": "null"
+ },
+ {
+ "id": 507,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 487,
+ "character": 45
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ "defaultValue": "data"
+ },
+ {
+ "id": 506,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 487,
+ "character": 25
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ }
+ ]
+ },
+ "defaultValue": "data.user"
}
],
"groups": [
@@ -3474,8 +4826,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 472,
- 473
+ 505,
+ 508,
+ 507,
+ 506
]
}
]
@@ -3484,7 +4838,7 @@
{
"type": "reflection",
"declaration": {
- "id": 474,
+ "id": 509,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3493,7 +4847,7 @@
},
"children": [
{
- "id": 475,
+ "id": 510,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3503,7 +4857,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 534,
+ "line": 489,
"character": 19
}
],
@@ -3514,7 +4868,7 @@
"defaultValue": "null"
},
{
- "id": 476,
+ "id": 513,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3524,14 +4878,56 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 534,
- "character": 32
+ "line": 489,
+ "character": 59
}
],
"type": {
"type": "intrinsic",
"name": "any"
}
+ },
+ {
+ "id": 512,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 489,
+ "character": 46
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
+ },
+ {
+ "id": 511,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 489,
+ "character": 31
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ "defaultValue": "null"
}
],
"groups": [
@@ -3539,8 +4935,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 475,
- 476
+ 510,
+ 513,
+ 512,
+ 511
]
}
]
@@ -3556,14 +4954,14 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 520,
- "character": 33
+ "line": 469,
+ "character": 34
}
]
},
{
- "id": 428,
- "name": "_handleEmailSignIn",
+ "id": 514,
+ "name": "_handlePhoneSignIn",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -3572,8 +4970,8 @@
},
"signatures": [
{
- "id": 429,
- "name": "_handleEmailSignIn",
+ "id": 515,
+ "name": "_handlePhoneSignIn",
"kind": 4096,
"kindString": "Call signature",
"flags": {
@@ -3581,8 +4979,8 @@
},
"parameters": [
{
- "id": 430,
- "name": "email",
+ "id": 516,
+ "name": "phone",
"kind": 32768,
"kindString": "Parameter",
"flags": {
@@ -3594,7 +4992,7 @@
}
},
{
- "id": 431,
+ "id": 517,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -3605,76 +5003,6 @@
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 432,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 433,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 434,
- "name": "redirectTo",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 411,
- "character": 16
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 434
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 410,
- "character": 12
- }
- ]
- }
- },
- "defaultValue": "{}"
}
],
"type": {
@@ -3686,7 +5014,7 @@
{
"type": "reflection",
"declaration": {
- "id": 435,
+ "id": 518,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3695,7 +5023,7 @@
},
"children": [
{
- "id": 436,
+ "id": 519,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3705,7 +5033,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 425,
+ "line": 503,
"character": 19
}
],
@@ -3716,7 +5044,7 @@
}
},
{
- "id": 439,
+ "id": 522,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3726,7 +5054,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 425,
+ "line": 503,
"character": 58
}
],
@@ -3737,7 +5065,7 @@
"defaultValue": "null"
},
{
- "id": 438,
+ "id": 521,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3747,7 +5075,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 425,
+ "line": 503,
"character": 45
}
],
@@ -3759,7 +5087,7 @@
"defaultValue": "data"
},
{
- "id": 437,
+ "id": 520,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3769,7 +5097,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 425,
+ "line": 503,
"character": 25
}
],
@@ -3795,10 +5123,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 436,
- 439,
- 438,
- 437
+ 519,
+ 522,
+ 521,
+ 520
]
}
]
@@ -3807,7 +5135,7 @@
{
"type": "reflection",
"declaration": {
- "id": 440,
+ "id": 523,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3816,7 +5144,7 @@
},
"children": [
{
- "id": 441,
+ "id": 524,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3826,7 +5154,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 427,
+ "line": 505,
"character": 19
}
],
@@ -3837,7 +5165,7 @@
"defaultValue": "null"
},
{
- "id": 444,
+ "id": 527,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3847,7 +5175,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 427,
+ "line": 505,
"character": 59
}
],
@@ -3857,7 +5185,7 @@
}
},
{
- "id": 443,
+ "id": 526,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3867,7 +5195,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 427,
+ "line": 505,
"character": 46
}
],
@@ -3878,7 +5206,7 @@
"defaultValue": "null"
},
{
- "id": 442,
+ "id": 525,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3888,7 +5216,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 427,
+ "line": 505,
"character": 31
}
],
@@ -3904,10 +5232,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 441,
- 444,
- 443,
- 442
+ 524,
+ 527,
+ 526,
+ 525
]
}
]
@@ -3923,13 +5251,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 407,
+ "line": 493,
"character": 34
}
]
},
{
- "id": 445,
+ "id": 528,
"name": "_handleProviderSignIn",
"kind": 2048,
"kindString": "Method",
@@ -3939,7 +5267,7 @@
},
"signatures": [
{
- "id": 446,
+ "id": 529,
"name": "_handleProviderSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -3948,7 +5276,7 @@
},
"parameters": [
{
- "id": 447,
+ "id": 530,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -3957,12 +5285,12 @@
},
"type": {
"type": "reference",
- "id": 103,
+ "id": 112,
"name": "Provider"
}
},
{
- "id": 448,
+ "id": 531,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3972,7 +5300,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 449,
+ "id": 532,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3981,7 +5309,7 @@
},
"children": [
{
- "id": 450,
+ "id": 533,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -3992,7 +5320,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 434,
+ "line": 512,
"character": 16
}
],
@@ -4011,7 +5339,7 @@
}
},
{
- "id": 451,
+ "id": 534,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -4022,7 +5350,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 435,
+ "line": 513,
"character": 12
}
],
@@ -4046,15 +5374,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 450,
- 451
+ 533,
+ 534
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 433,
+ "line": 511,
"character": 12
}
]
@@ -4069,7 +5397,7 @@
{
"type": "reflection",
"declaration": {
- "id": 452,
+ "id": 535,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4078,7 +5406,7 @@
},
"children": [
{
- "id": 455,
+ "id": 538,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4088,7 +5416,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 34
}
],
@@ -4099,7 +5427,7 @@
"defaultValue": "null"
},
{
- "id": 458,
+ "id": 541,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4109,7 +5437,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 74
}
],
@@ -4120,7 +5448,7 @@
"defaultValue": "null"
},
{
- "id": 453,
+ "id": 536,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -4130,18 +5458,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 23
}
],
"type": {
"type": "reference",
- "id": 103,
+ "id": 112,
"name": "Provider"
}
},
{
- "id": 456,
+ "id": 539,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -4151,7 +5479,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 49
}
],
@@ -4162,7 +5490,7 @@
"defaultValue": "null"
},
{
- "id": 454,
+ "id": 537,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -4172,7 +5500,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 28
}
],
@@ -4182,7 +5510,7 @@
}
},
{
- "id": 457,
+ "id": 540,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4192,7 +5520,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 448,
+ "line": 526,
"character": 61
}
],
@@ -4208,12 +5536,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 455,
- 458,
- 453,
- 456,
- 454,
- 457
+ 538,
+ 541,
+ 536,
+ 539,
+ 537,
+ 540
]
}
]
@@ -4222,7 +5550,7 @@
{
"type": "reflection",
"declaration": {
- "id": 459,
+ "id": 542,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4231,7 +5559,7 @@
},
"children": [
{
- "id": 460,
+ "id": 543,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4241,7 +5569,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 452,
+ "line": 530,
"character": 19
}
],
@@ -4252,7 +5580,7 @@
"defaultValue": "null"
},
{
- "id": 463,
+ "id": 546,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4262,7 +5590,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 452,
+ "line": 530,
"character": 59
}
],
@@ -4272,7 +5600,7 @@
}
},
{
- "id": 462,
+ "id": 545,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -4282,7 +5610,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 452,
+ "line": 530,
"character": 46
}
],
@@ -4293,7 +5621,7 @@
"defaultValue": "null"
},
{
- "id": 461,
+ "id": 544,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4303,7 +5631,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 452,
+ "line": 530,
"character": 31
}
],
@@ -4319,10 +5647,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 460,
- 463,
- 462,
- 461
+ 543,
+ 546,
+ 545,
+ 544
]
}
]
@@ -4335,13 +5663,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 431,
+ "line": 509,
"character": 31
}
]
},
{
- "id": 477,
+ "id": 560,
"name": "_notifyAllSubscribers",
"kind": 2048,
"kindString": "Method",
@@ -4351,7 +5679,7 @@
},
"signatures": [
{
- "id": 478,
+ "id": 561,
"name": "_notifyAllSubscribers",
"kind": 4096,
"kindString": "Call signature",
@@ -4360,7 +5688,7 @@
},
"parameters": [
{
- "id": 479,
+ "id": 562,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -4369,7 +5697,7 @@
},
"type": {
"type": "reference",
- "id": 104,
+ "id": 113,
"name": "AuthChangeEvent"
}
}
@@ -4383,13 +5711,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 538,
+ "line": 616,
"character": 31
}
]
},
{
- "id": 483,
+ "id": 566,
"name": "_persistSession",
"kind": 2048,
"kindString": "Method",
@@ -4399,7 +5727,7 @@
},
"signatures": [
{
- "id": 484,
+ "id": 567,
"name": "_persistSession",
"kind": 4096,
"kindString": "Call signature",
@@ -4408,7 +5736,7 @@
},
"parameters": [
{
- "id": 485,
+ "id": 568,
"name": "currentSession",
"kind": 32768,
"kindString": "Parameter",
@@ -4431,13 +5759,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 565,
+ "line": 643,
"character": 25
}
]
},
{
- "id": 466,
+ "id": 549,
"name": "_recoverAndRefresh",
"kind": 2048,
"kindString": "Method",
@@ -4447,7 +5775,7 @@
},
"signatures": [
{
- "id": 467,
+ "id": 550,
"name": "_recoverAndRefresh",
"kind": 4096,
"kindString": "Call signature",
@@ -4481,13 +5809,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 484,
+ "line": 562,
"character": 34
}
]
},
{
- "id": 464,
+ "id": 547,
"name": "_recoverSession",
"kind": 2048,
"kindString": "Method",
@@ -4497,7 +5825,7 @@
},
"signatures": [
{
- "id": 465,
+ "id": 548,
"name": "_recoverSession",
"kind": 4096,
"kindString": "Call signature",
@@ -4525,13 +5853,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 460,
+ "line": 538,
"character": 25
}
]
},
{
- "id": 486,
+ "id": 569,
"name": "_removeSession",
"kind": 2048,
"kindString": "Method",
@@ -4541,7 +5869,7 @@
},
"signatures": [
{
- "id": 487,
+ "id": 570,
"name": "_removeSession",
"kind": 4096,
"kindString": "Call signature",
@@ -4563,13 +5891,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 570,
+ "line": 648,
"character": 30
}
]
},
{
- "id": 480,
+ "id": 563,
"name": "_saveSession",
"kind": 2048,
"kindString": "Method",
@@ -4579,7 +5907,7 @@
},
"signatures": [
{
- "id": 481,
+ "id": 564,
"name": "_saveSession",
"kind": 4096,
"kindString": "Call signature",
@@ -4591,7 +5919,7 @@
},
"parameters": [
{
- "id": 482,
+ "id": 565,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -4614,13 +5942,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 546,
+ "line": 624,
"character": 22
}
]
},
{
- "id": 488,
+ "id": 571,
"name": "_startAutoRefreshToken",
"kind": 2048,
"kindString": "Method",
@@ -4630,7 +5958,7 @@
},
"signatures": [
{
- "id": 489,
+ "id": 572,
"name": "_startAutoRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -4642,7 +5970,7 @@
},
"parameters": [
{
- "id": 490,
+ "id": 573,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -4667,13 +5995,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 581,
+ "line": 659,
"character": 32
}
]
},
{
- "id": 406,
+ "id": 475,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -4682,7 +6010,7 @@
},
"signatures": [
{
- "id": 407,
+ "id": 476,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -4694,7 +6022,7 @@
},
"parameters": [
{
- "id": 408,
+ "id": 477,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -4712,7 +6040,7 @@
{
"type": "reflection",
"declaration": {
- "id": 409,
+ "id": 478,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4721,7 +6049,7 @@
},
"children": [
{
- "id": 410,
+ "id": 479,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -4735,7 +6063,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 317,
+ "line": 379,
"character": 16
}
],
@@ -4763,7 +6091,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 410
+ 479
]
}
]
@@ -4779,7 +6107,7 @@
{
"type": "reflection",
"declaration": {
- "id": 411,
+ "id": 480,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4788,7 +6116,7 @@
},
"children": [
{
- "id": 412,
+ "id": 481,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4798,7 +6126,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 318,
+ "line": 380,
"character": 20
}
],
@@ -4818,7 +6146,7 @@
}
},
{
- "id": 413,
+ "id": 482,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4828,7 +6156,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 318,
+ "line": 380,
"character": 43
}
],
@@ -4852,15 +6180,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 412,
- 413
+ 481,
+ 482
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 318,
+ "line": 380,
"character": 14
}
]
@@ -4874,13 +6202,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 316,
+ "line": 378,
"character": 25
}
]
},
{
- "id": 418,
+ "id": 487,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -4889,7 +6217,7 @@
},
"signatures": [
{
- "id": 419,
+ "id": 488,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -4902,7 +6230,7 @@
},
"parameters": [
{
- "id": 420,
+ "id": 489,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -4912,7 +6240,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 421,
+ "id": 490,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4921,7 +6249,7 @@
},
"signatures": [
{
- "id": 422,
+ "id": 491,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -4930,7 +6258,7 @@
},
"parameters": [
{
- "id": 423,
+ "id": 492,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -4939,12 +6267,12 @@
},
"type": {
"type": "reference",
- "id": 104,
+ "id": 113,
"name": "AuthChangeEvent"
}
},
{
- "id": 424,
+ "id": 493,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -4976,7 +6304,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 388,
+ "line": 450,
"character": 13
}
]
@@ -4987,7 +6315,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 425,
+ "id": 494,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4996,7 +6324,7 @@
},
"children": [
{
- "id": 426,
+ "id": 495,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -5006,7 +6334,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 389,
+ "line": 451,
"character": 11
}
],
@@ -5015,7 +6343,7 @@
"types": [
{
"type": "reference",
- "id": 82,
+ "id": 87,
"name": "Subscription"
},
{
@@ -5026,7 +6354,7 @@
}
},
{
- "id": 427,
+ "id": 496,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -5036,7 +6364,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 389,
+ "line": 451,
"character": 39
}
],
@@ -5060,15 +6388,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 426,
- 427
+ 495,
+ 496
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 389,
+ "line": 451,
"character": 4
}
]
@@ -5079,13 +6407,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 387,
+ "line": 449,
"character": 19
}
]
},
{
- "id": 384,
+ "id": 453,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -5094,7 +6422,7 @@
},
"signatures": [
{
- "id": 385,
+ "id": 454,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -5110,7 +6438,7 @@
{
"type": "reflection",
"declaration": {
- "id": 386,
+ "id": 455,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5119,7 +6447,7 @@
},
"children": [
{
- "id": 387,
+ "id": 456,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -5129,7 +6457,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 224,
+ "line": 286,
"character": 8
}
],
@@ -5149,7 +6477,7 @@
}
},
{
- "id": 389,
+ "id": 458,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -5159,7 +6487,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 226,
+ "line": 288,
"character": 9
}
],
@@ -5178,7 +6506,7 @@
}
},
{
- "id": 388,
+ "id": 457,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -5188,7 +6516,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 225,
+ "line": 287,
"character": 8
}
],
@@ -5213,16 +6541,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 387,
- 389,
- 388
+ 456,
+ 458,
+ 457
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 223,
+ "line": 285,
"character": 34
}
]
@@ -5236,13 +6564,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 223,
+ "line": 285,
"character": 22
}
]
},
{
- "id": 382,
+ "id": 451,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -5251,7 +6579,7 @@
},
"signatures": [
{
- "id": 383,
+ "id": 452,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -5280,13 +6608,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 216,
+ "line": 278,
"character": 9
}
]
},
{
- "id": 403,
+ "id": 472,
"name": "setAuth",
"kind": 2048,
"kindString": "Method",
@@ -5295,7 +6623,7 @@
},
"signatures": [
{
- "id": 404,
+ "id": 473,
"name": "setAuth",
"kind": 4096,
"kindString": "Call signature",
@@ -5307,7 +6635,7 @@
},
"parameters": [
{
- "id": 405,
+ "id": 474,
"name": "access_token",
"kind": 32768,
"kindString": "Parameter",
@@ -5333,13 +6661,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 363,
"character": 9
}
]
},
{
- "id": 397,
+ "id": 466,
"name": "setSession",
"kind": 2048,
"kindString": "Method",
@@ -5348,7 +6676,7 @@
},
"signatures": [
{
- "id": 398,
+ "id": 467,
"name": "setSession",
"kind": 4096,
"kindString": "Call signature",
@@ -5360,7 +6688,7 @@
},
"parameters": [
{
- "id": 399,
+ "id": 468,
"name": "refresh_token",
"kind": 32768,
"kindString": "Parameter",
@@ -5382,7 +6710,7 @@
{
"type": "reflection",
"declaration": {
- "id": 400,
+ "id": 469,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5391,7 +6719,7 @@
},
"children": [
{
- "id": 402,
+ "id": 471,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -5401,7 +6729,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 273,
+ "line": 335,
"character": 45
}
],
@@ -5420,7 +6748,7 @@
}
},
{
- "id": 401,
+ "id": 470,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -5430,7 +6758,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 273,
+ "line": 335,
"character": 22
}
],
@@ -5455,15 +6783,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 402,
- 401
+ 471,
+ 470
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 273,
+ "line": 335,
"character": 13
}
]
@@ -5477,13 +6805,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 271,
+ "line": 333,
"character": 18
}
]
},
{
- "id": 361,
+ "id": 415,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -5492,7 +6820,7 @@
},
"signatures": [
{
- "id": 362,
+ "id": 416,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -5504,7 +6832,7 @@
},
"parameters": [
{
- "id": 363,
+ "id": 417,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5515,7 +6843,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 364,
+ "id": 418,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5524,7 +6852,7 @@
},
"children": [
{
- "id": 365,
+ "id": 419,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -5537,7 +6865,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 153,
+ "line": 158,
"character": 11
}
],
@@ -5556,7 +6884,7 @@
}
},
{
- "id": 366,
+ "id": 421,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -5569,8 +6897,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 153,
- "character": 21
+ "line": 158,
+ "character": 28
}
],
"type": {
@@ -5588,7 +6916,36 @@
}
},
{
- "id": 368,
+ "id": 420,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 158,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 423,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -5601,8 +6958,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 153,
- "character": 45
+ "line": 158,
+ "character": 52
}
],
"type": {
@@ -5647,12 +7004,16 @@
{
"type": "stringLiteral",
"value": "discord"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "twitch"
}
]
}
},
{
- "id": 367,
+ "id": 422,
"name": "refreshToken",
"kind": 32,
"kindString": "Variable",
@@ -5665,8 +7026,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 153,
- "character": 35
+ "line": 158,
+ "character": 42
}
],
"type": {
@@ -5689,17 +7050,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 365,
- 366,
- 368,
- 367
+ 419,
+ 421,
+ 420,
+ 423,
+ 422
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 152,
+ "line": 157,
"character": 15
}
]
@@ -5707,7 +7069,7 @@
}
},
{
- "id": 369,
+ "id": 424,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -5717,7 +7079,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 370,
+ "id": 425,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5726,7 +7088,7 @@
},
"children": [
{
- "id": 371,
+ "id": 426,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -5737,7 +7099,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 155,
+ "line": 160,
"character": 16
}
],
@@ -5756,7 +7118,7 @@
}
},
{
- "id": 372,
+ "id": 427,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -5767,7 +7129,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 156,
+ "line": 161,
"character": 12
}
],
@@ -5791,15 +7153,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 371,
- 372
+ 426,
+ 427
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 154,
+ "line": 159,
"character": 12
}
]
@@ -5814,7 +7176,7 @@
{
"type": "reflection",
"declaration": {
- "id": 373,
+ "id": 428,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5823,7 +7185,7 @@
},
"children": [
{
- "id": 379,
+ "id": 434,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -5833,7 +7195,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 164,
+ "line": 169,
"character": 8
}
],
@@ -5853,7 +7215,7 @@
}
},
{
- "id": 378,
+ "id": 433,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -5863,7 +7225,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 163,
+ "line": 168,
"character": 9
}
],
@@ -5882,7 +7244,7 @@
}
},
{
- "id": 376,
+ "id": 431,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -5893,18 +7255,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 161,
+ "line": 166,
"character": 12
}
],
"type": {
"type": "reference",
- "id": 103,
+ "id": 112,
"name": "Provider"
}
},
{
- "id": 374,
+ "id": 429,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -5914,7 +7276,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 159,
+ "line": 164,
"character": 11
}
],
@@ -5934,7 +7296,7 @@
}
},
{
- "id": 377,
+ "id": 432,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -5945,7 +7307,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 162,
+ "line": 167,
"character": 7
}
],
@@ -5964,7 +7326,7 @@
}
},
{
- "id": 375,
+ "id": 430,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -5974,7 +7336,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 160,
+ "line": 165,
"character": 8
}
],
@@ -5999,19 +7361,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 379,
- 378,
- 376,
- 374,
- 377,
- 375
+ 434,
+ 433,
+ 431,
+ 429,
+ 432,
+ 430
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 158,
+ "line": 163,
"character": 13
}
]
@@ -6025,13 +7387,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 152,
+ "line": 157,
"character": 14
}
]
},
{
- "id": 414,
+ "id": 483,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -6040,7 +7402,7 @@
},
"signatures": [
{
- "id": 415,
+ "id": 484,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -6048,7 +7410,7 @@
"isExported": true
},
"comment": {
- "shortText": "Inside a browser context, `signOut()` will remove extract the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.",
+ "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 disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n"
},
"type": {
@@ -6057,7 +7419,7 @@
{
"type": "reflection",
"declaration": {
- "id": 416,
+ "id": 485,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6066,7 +7428,7 @@
},
"children": [
{
- "id": 417,
+ "id": 486,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6076,7 +7438,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 372,
+ "line": 434,
"character": 34
}
],
@@ -6100,14 +7462,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 417
+ 486
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 372,
+ "line": 434,
"character": 27
}
]
@@ -6121,13 +7483,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 372,
+ "line": 434,
"character": 15
}
]
},
{
- "id": 347,
+ "id": 400,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -6136,7 +7498,7 @@
},
"signatures": [
{
- "id": 348,
+ "id": 401,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -6148,7 +7510,7 @@
},
"parameters": [
{
- "id": 349,
+ "id": 402,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -6159,7 +7521,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 350,
+ "id": 403,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6168,7 +7530,7 @@
},
"children": [
{
- "id": 351,
+ "id": 404,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -6181,7 +7543,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 97,
+ "line": 99,
"character": 11
}
],
@@ -6200,7 +7562,7 @@
}
},
{
- "id": 352,
+ "id": 405,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -6213,7 +7575,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 97,
+ "line": 99,
"character": 21
}
],
@@ -6230,6 +7592,38 @@
}
]
}
+ },
+ {
+ "id": 406,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 99,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
}
],
"groups": [
@@ -6237,15 +7631,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 351,
- 352
+ 404,
+ 405,
+ 406
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 96,
+ "line": 98,
"character": 15
}
]
@@ -6253,7 +7648,7 @@
}
},
{
- "id": 353,
+ "id": 407,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -6263,7 +7658,73 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 354,
+ "id": 408,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 409,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 101,
+ "character": 16
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 409
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 100,
+ "character": 12
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 410,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6272,31 +7733,125 @@
},
"children": [
{
- "id": 355,
- "name": "redirectTo",
+ "id": 414,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 107,
+ "character": 8
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 413,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 106,
+ "character": 9
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 412,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 105,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 411,
+ "name": "user",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true,
- "isOptional": true
+ "isExported": true
},
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 99,
- "character": 16
+ "line": 104,
+ "character": 8
}
],
"type": {
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "undefined"
+ "type": "reference",
+ "id": 58,
+ "name": "User"
},
{
"type": "intrinsic",
- "name": "string"
+ "name": "null"
}
]
}
@@ -6307,20 +7862,69 @@
"title": "Variables",
"kind": 32,
"children": [
- 355
+ 414,
+ 413,
+ 412,
+ 411
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 98,
- "character": 12
+ "line": 103,
+ "character": 13
}
]
}
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 98,
+ "character": 14
+ }
+ ]
+ },
+ {
+ "id": 459,
+ "name": "update",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 460,
+ "name": "update",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Updates user data, if there is a logged in user."
+ },
+ "parameters": [
+ {
+ "id": 461,
+ "name": "attributes",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
},
- "defaultValue": "{}"
+ "type": {
+ "type": "reference",
+ "id": 82,
+ "name": "UserAttributes"
+ }
}
],
"type": {
@@ -6329,7 +7933,7 @@
{
"type": "reflection",
"declaration": {
- "id": 356,
+ "id": 462,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6338,7 +7942,7 @@
},
"children": [
{
- "id": 360,
+ "id": 463,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6348,18 +7952,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 105,
- "character": 8
+ "line": 308,
+ "character": 19
}
],
"type": {
"type": "union",
"types": [
- {
- "type": "reference",
- "id": 50,
- "name": "Session"
- },
{
"type": "reference",
"id": 58,
@@ -6373,7 +7972,7 @@
}
},
{
- "id": 359,
+ "id": 465,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6383,8 +7982,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 104,
- "character": 9
+ "line": 308,
+ "character": 58
}
],
"type": {
@@ -6402,8 +8001,8 @@
}
},
{
- "id": 358,
- "name": "session",
+ "id": 464,
+ "name": "user",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -6412,8 +8011,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 103,
- "character": 11
+ "line": 308,
+ "character": 38
}
],
"type": {
@@ -6421,8 +8020,8 @@
"types": [
{
"type": "reference",
- "id": 50,
- "name": "Session"
+ "id": 58,
+ "name": "User"
},
{
"type": "intrinsic",
@@ -6430,33 +8029,239 @@
}
]
}
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 463,
+ 465,
+ 464
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 308,
+ "character": 13
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 306,
+ "character": 14
+ }
+ ]
+ },
+ {
+ "id": 449,
+ "name": "user",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 450,
+ "name": "user",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": 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": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 271,
+ "character": 6
+ }
+ ]
+ },
+ {
+ "id": 435,
+ "name": "verifyOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 436,
+ "name": "verifyOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Log in a user given a User supplied OTP received via mobile."
+ },
+ "parameters": [
+ {
+ "id": 437,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__0",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 438,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 439,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 223,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
},
{
- "id": 357,
- "name": "user",
+ "id": 440,
+ "name": "token",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 223,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 439,
+ 440
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 222,
+ "character": 18
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 441,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 442,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 443,
+ "name": "redirectTo",
"kind": 32,
"kindString": "Variable",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 102,
- "character": 8
+ "line": 225,
+ "character": 16
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "id": 58,
- "name": "User"
+ "type": "intrinsic",
+ "name": "undefined"
},
{
"type": "intrinsic",
- "name": "null"
+ "name": "string"
}
]
}
@@ -6467,69 +8272,20 @@
"title": "Variables",
"kind": 32,
"children": [
- 360,
- 359,
- 358,
- 357
+ 443
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 101,
- "character": 13
+ "line": 224,
+ "character": 12
}
]
}
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 96,
- "character": 14
- }
- ]
- },
- {
- "id": 390,
- "name": "update",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 391,
- "name": "update",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Updates user data, if there is a logged in user."
- },
- "parameters": [
- {
- "id": 392,
- "name": "attributes",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
},
- "type": {
- "type": "reference",
- "id": 77,
- "name": "UserAttributes"
- }
+ "defaultValue": "{}"
}
],
"type": {
@@ -6538,7 +8294,7 @@
{
"type": "reflection",
"declaration": {
- "id": 393,
+ "id": 444,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6547,7 +8303,7 @@
},
"children": [
{
- "id": 394,
+ "id": 448,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6557,13 +8313,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 246,
- "character": 19
+ "line": 231,
+ "character": 8
}
],
"type": {
"type": "union",
"types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
{
"type": "reference",
"id": 58,
@@ -6577,7 +8338,7 @@
}
},
{
- "id": 396,
+ "id": 447,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6587,8 +8348,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 246,
- "character": 58
+ "line": 230,
+ "character": 9
}
],
"type": {
@@ -6606,7 +8367,37 @@
}
},
{
- "id": 395,
+ "id": 446,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueClient.ts",
+ "line": 229,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 50,
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 445,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -6616,8 +8407,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 246,
- "character": 38
+ "line": 228,
+ "character": 8
}
],
"type": {
@@ -6641,16 +8432,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 394,
- 396,
- 395
+ 448,
+ 447,
+ 446,
+ 445
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 246,
+ "line": 227,
"character": 13
}
]
@@ -6664,53 +8456,8 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 244,
- "character": 14
- }
- ]
- },
- {
- "id": 380,
- "name": "user",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 381,
- "name": "user",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": 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": "reference",
- "id": 58,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 209,
- "character": 6
+ "line": 222,
+ "character": 17
}
]
}
@@ -6720,61 +8467,63 @@
"title": "Constructors",
"kind": 512,
"children": [
- 333
+ 386
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 325,
- 328,
- 327,
- 326,
- 330,
- 329,
- 332,
- 331
+ 378,
+ 381,
+ 380,
+ 379,
+ 383,
+ 382,
+ 385,
+ 384
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 468,
- 428,
- 445,
- 477,
- 483,
+ 551,
+ 497,
+ 514,
+ 528,
+ 560,
+ 566,
+ 549,
+ 547,
+ 569,
+ 563,
+ 571,
+ 475,
+ 487,
+ 453,
+ 451,
+ 472,
466,
- 464,
- 486,
- 480,
- 488,
- 406,
- 418,
- 384,
- 382,
- 403,
- 397,
- 361,
- 414,
- 347,
- 390,
- 380
+ 415,
+ 483,
+ 400,
+ 459,
+ 449,
+ 435
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 26,
+ "line": 27,
"character": 33
}
]
},
{
- "id": 491,
+ "id": 574,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -6783,7 +8532,7 @@
},
"children": [
{
- "id": 493,
+ "id": 576,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -6791,7 +8540,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 20,
+ "line": 21,
"character": 18
}
],
@@ -6802,7 +8551,7 @@
"defaultValue": "true"
},
{
- "id": 496,
+ "id": 579,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -6810,7 +8559,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 23,
+ "line": 24,
"character": 20
}
],
@@ -6821,7 +8570,7 @@
"defaultValue": "true"
},
{
- "id": 497,
+ "id": 580,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -6829,24 +8578,54 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 24,
+ "line": 25,
"character": 9
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 498,
+ "id": 581,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
- "flags": {}
+ "flags": {},
+ "children": [
+ {
+ "id": 582,
+ "name": "X-Client-Info",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 4,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "`gotrue-js/${version}`"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 582
+ ]
+ }
+ ]
}
},
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 495,
+ "id": 578,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -6854,7 +8633,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 22,
+ "line": 23,
"character": 14
}
],
@@ -6865,7 +8644,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 494,
+ "id": 577,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -6873,7 +8652,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 21,
+ "line": 22,
"character": 16
}
],
@@ -6884,7 +8663,7 @@
"defaultValue": "true"
},
{
- "id": 492,
+ "id": 575,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -6892,7 +8671,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 19,
+ "line": 20,
"character": 5
}
],
@@ -6908,19 +8687,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 493,
- 496,
- 497,
- 495,
- 494,
- 492
+ 576,
+ 579,
+ 580,
+ 578,
+ 577,
+ 575
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 18,
+ "line": 19,
"character": 21
}
],
@@ -6935,14 +8714,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 324
+ 377
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 491
+ 574
]
}
],
@@ -6955,7 +8734,7 @@
]
},
{
- "id": 499,
+ "id": 583,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -6965,37 +8744,37 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",
"children": [
{
- "id": 501,
+ "id": 585,
"name": "AuthChangeEvent",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 104
+ "target": 113
},
{
- "id": 506,
+ "id": 590,
"name": "CookieOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 92
+ "target": 97
},
{
- "id": 500,
+ "id": 584,
"name": "Provider",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 103
+ "target": 112
},
{
- "id": 502,
+ "id": 586,
"name": "Session",
"kind": 16777216,
"kindString": "Reference",
@@ -7005,17 +8784,17 @@
"target": 50
},
{
- "id": 505,
+ "id": 589,
"name": "Subscription",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 82
+ "target": 87
},
{
- "id": 503,
+ "id": 587,
"name": "User",
"kind": 16777216,
"kindString": "Reference",
@@ -7025,24 +8804,34 @@
"target": 58
},
{
- "id": 504,
+ "id": 588,
"name": "UserAttributes",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 77
+ "target": 82
},
{
- "id": 507,
+ "id": 591,
"name": "UserCredentials",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 98
+ "target": 103
+ },
+ {
+ "id": 592,
+ "name": "VerifyOTPParams",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 109
}
],
"groups": [
@@ -7050,14 +8839,15 @@
"title": "References",
"kind": 16777216,
"children": [
- 501,
- 506,
- 500,
- 502,
- 505,
- 503,
- 504,
- 507
+ 585,
+ 590,
+ 584,
+ 586,
+ 589,
+ 587,
+ 588,
+ 591,
+ 592
]
}
],
@@ -7070,7 +8860,7 @@
]
},
{
- "id": 105,
+ "id": 114,
"name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
@@ -7080,7 +8870,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",
"children": [
{
- "id": 107,
+ "id": 117,
"name": "AUDIENCE",
"kind": 32,
"kindString": "Variable",
@@ -7091,7 +8881,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 2,
+ "line": 3,
"character": 21
}
],
@@ -7102,36 +8892,7 @@
"defaultValue": "\"\""
},
{
- "id": 108,
- "name": "DEFAULT_HEADERS",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true,
- "isConst": true
- },
- "sources": [
- {
- "fileName": "lib/constants.ts",
- "line": 3,
- "character": 28
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 109,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- }
- }
- }
- },
- {
- "id": 110,
+ "id": 120,
"name": "EXPIRY_MARGIN",
"kind": 32,
"kindString": "Variable",
@@ -7142,7 +8903,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 4,
+ "line": 5,
"character": 26
}
],
@@ -7153,7 +8914,7 @@
"defaultValue": "60 * 1000"
},
{
- "id": 106,
+ "id": 116,
"name": "GOTRUE_URL",
"kind": 32,
"kindString": "Variable",
@@ -7164,7 +8925,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 1,
+ "line": 2,
"character": 23
}
],
@@ -7175,7 +8936,7 @@
"defaultValue": "\"http://localhost:9999\""
},
{
- "id": 111,
+ "id": 121,
"name": "STORAGE_KEY",
"kind": 32,
"kindString": "Variable",
@@ -7186,7 +8947,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 5,
+ "line": 6,
"character": 24
}
],
@@ -7197,7 +8958,25 @@
"defaultValue": "\"supabase.auth.token\""
},
{
- "id": 112,
+ "id": 115,
+ "name": "version",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {},
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 1,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "any"
+ }
+ },
+ {
+ "id": 122,
"name": "COOKIE_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -7207,7 +8986,7 @@
},
"children": [
{
- "id": 115,
+ "id": 125,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -7217,7 +8996,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 9,
+ "line": 10,
"character": 8
}
],
@@ -7228,7 +9007,7 @@
"defaultValue": "\"\""
},
{
- "id": 114,
+ "id": 124,
"name": "lifetime",
"kind": 32,
"kindString": "Variable",
@@ -7238,7 +9017,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 8,
+ "line": 9,
"character": 10
}
],
@@ -7249,7 +9028,7 @@
"defaultValue": "60 * 60 * 8"
},
{
- "id": 113,
+ "id": 123,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -7259,7 +9038,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 7,
+ "line": 8,
"character": 6
}
],
@@ -7270,7 +9049,7 @@
"defaultValue": "\"sb:token\""
},
{
- "id": 116,
+ "id": 126,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -7280,7 +9059,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 10,
+ "line": 11,
"character": 6
}
],
@@ -7291,7 +9070,7 @@
"defaultValue": "\"/\""
},
{
- "id": 117,
+ "id": 127,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -7301,7 +9080,7 @@
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 11,
+ "line": 12,
"character": 10
}
],
@@ -7317,18 +9096,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 115,
- 114,
- 113,
- 116,
- 117
+ 125,
+ 124,
+ 123,
+ 126,
+ 127
]
}
],
"sources": [
{
"fileName": "lib/constants.ts",
- "line": 6,
+ "line": 7,
"character": 27
}
],
@@ -7336,6 +9115,59 @@
"type": "intrinsic",
"name": "object"
}
+ },
+ {
+ "id": 118,
+ "name": "DEFAULT_HEADERS",
+ "kind": 2097152,
+ "kindString": "Object literal",
+ "flags": {
+ "isExported": true,
+ "isConst": true
+ },
+ "children": [
+ {
+ "id": 119,
+ "name": "X-Client-Info",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 4,
+ "character": 48
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ },
+ "defaultValue": "`gotrue-js/${version}`"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 119
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/constants.ts",
+ "line": 4,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "object"
+ }
}
],
"groups": [
@@ -7343,18 +9175,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 107,
- 108,
- 110,
- 106,
- 111
+ 117,
+ 120,
+ 116,
+ 121,
+ 115
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 112
+ 122,
+ 118
]
}
],
@@ -7367,7 +9200,7 @@
]
},
{
- "id": 118,
+ "id": 128,
"name": "\"lib/cookies\"",
"kind": 1,
"kindString": "Module",
@@ -7377,7 +9210,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts",
"children": [
{
- "id": 119,
+ "id": 129,
"name": "Cookie",
"kind": 4194304,
"kindString": "Type alias",
@@ -7392,14 +9225,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 120,
+ "id": 130,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 124,
+ "id": 134,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -7428,7 +9261,7 @@
}
},
{
- "id": 123,
+ "id": 133,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -7446,7 +9279,7 @@
}
},
{
- "id": 121,
+ "id": 131,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -7464,7 +9297,7 @@
}
},
{
- "id": 125,
+ "id": 135,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -7493,7 +9326,7 @@
}
},
{
- "id": 126,
+ "id": 136,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -7522,7 +9355,7 @@
}
},
{
- "id": 122,
+ "id": 132,
"name": "value",
"kind": 32,
"kindString": "Variable",
@@ -7545,12 +9378,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 124,
- 123,
- 121,
- 125,
- 126,
- 122
+ 134,
+ 133,
+ 131,
+ 135,
+ 136,
+ 132
]
}
],
@@ -7565,7 +9398,7 @@
}
},
{
- "id": 157,
+ "id": 167,
"name": "deleteCookie",
"kind": 64,
"kindString": "Function",
@@ -7574,7 +9407,7 @@
},
"signatures": [
{
- "id": 158,
+ "id": 168,
"name": "deleteCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -7583,7 +9416,7 @@
},
"parameters": [
{
- "id": 159,
+ "id": 169,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -7596,7 +9429,7 @@
}
},
{
- "id": 160,
+ "id": 170,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -7609,7 +9442,7 @@
}
},
{
- "id": 161,
+ "id": 171,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -7637,14 +9470,14 @@
]
},
{
- "id": 140,
+ "id": 150,
"name": "isSecureEnvironment",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 141,
+ "id": 151,
"name": "isSecureEnvironment",
"kind": 4096,
"kindString": "Call signature",
@@ -7654,7 +9487,7 @@
},
"parameters": [
{
- "id": 142,
+ "id": 152,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -7680,14 +9513,14 @@
]
},
{
- "id": 127,
+ "id": 137,
"name": "serialize",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 128,
+ "id": 138,
"name": "serialize",
"kind": 4096,
"kindString": "Call signature",
@@ -7697,7 +9530,7 @@
},
"parameters": [
{
- "id": 129,
+ "id": 139,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -7708,7 +9541,7 @@
}
},
{
- "id": 130,
+ "id": 140,
"name": "val",
"kind": 32768,
"kindString": "Parameter",
@@ -7719,7 +9552,7 @@
}
},
{
- "id": 131,
+ "id": 141,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -7727,14 +9560,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 132,
+ "id": 142,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 134,
+ "id": 144,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -7752,7 +9585,7 @@
}
},
{
- "id": 136,
+ "id": 146,
"name": "expires",
"kind": 32,
"kindString": "Variable",
@@ -7770,7 +9603,7 @@
}
},
{
- "id": 137,
+ "id": 147,
"name": "httpOnly",
"kind": 32,
"kindString": "Variable",
@@ -7788,7 +9621,7 @@
}
},
{
- "id": 133,
+ "id": 143,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -7806,7 +9639,7 @@
}
},
{
- "id": 135,
+ "id": 145,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -7824,7 +9657,7 @@
}
},
{
- "id": 139,
+ "id": 149,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -7842,7 +9675,7 @@
}
},
{
- "id": 138,
+ "id": 148,
"name": "secure",
"kind": 32,
"kindString": "Variable",
@@ -7865,13 +9698,13 @@
"title": "Variables",
"kind": 32,
"children": [
- 134,
- 136,
- 137,
- 133,
- 135,
- 139,
- 138
+ 144,
+ 146,
+ 147,
+ 143,
+ 145,
+ 149,
+ 148
]
}
],
@@ -7901,14 +9734,14 @@
]
},
{
- "id": 143,
+ "id": 153,
"name": "serializeCookie",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 144,
+ "id": 154,
"name": "serializeCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -7918,19 +9751,19 @@
},
"parameters": [
{
- "id": 145,
+ "id": 155,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 119,
+ "id": 129,
"name": "Cookie"
}
},
{
- "id": 146,
+ "id": 156,
"name": "secure",
"kind": 32768,
"kindString": "Parameter",
@@ -7956,7 +9789,7 @@
]
},
{
- "id": 152,
+ "id": 162,
"name": "setCookie",
"kind": 64,
"kindString": "Function",
@@ -7965,7 +9798,7 @@
},
"signatures": [
{
- "id": 153,
+ "id": 163,
"name": "setCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -7977,7 +9810,7 @@
},
"parameters": [
{
- "id": 154,
+ "id": 164,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -7990,7 +9823,7 @@
}
},
{
- "id": 155,
+ "id": 165,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -8003,7 +9836,7 @@
}
},
{
- "id": 156,
+ "id": 166,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
@@ -8012,7 +9845,7 @@
},
"type": {
"type": "reference",
- "id": 119,
+ "id": 129,
"name": "Cookie"
}
}
@@ -8032,7 +9865,7 @@
]
},
{
- "id": 147,
+ "id": 157,
"name": "setCookies",
"kind": 64,
"kindString": "Function",
@@ -8041,7 +9874,7 @@
},
"signatures": [
{
- "id": 148,
+ "id": 158,
"name": "setCookies",
"kind": 4096,
"kindString": "Call signature",
@@ -8053,7 +9886,7 @@
},
"parameters": [
{
- "id": 149,
+ "id": 159,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -8066,7 +9899,7 @@
}
},
{
- "id": 150,
+ "id": 160,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -8079,7 +9912,7 @@
}
},
{
- "id": 151,
+ "id": 161,
"name": "cookies",
"kind": 32768,
"kindString": "Parameter",
@@ -8091,7 +9924,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 119,
+ "id": 129,
"name": "Cookie"
}
],
@@ -8119,19 +9952,19 @@
"title": "Type aliases",
"kind": 4194304,
"children": [
- 119
+ 129
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 157,
- 140,
- 127,
- 143,
- 152,
- 147
+ 167,
+ 150,
+ 137,
+ 153,
+ 162,
+ 157
]
}
],
@@ -8971,7 +10804,7 @@
]
},
{
- "id": 162,
+ "id": 172,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -8981,7 +10814,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",
"children": [
{
- "id": 163,
+ "id": 173,
"name": "LocalStorage",
"kind": 128,
"kindString": "Class",
@@ -8990,7 +10823,7 @@
},
"indexSignature": [
{
- "id": 165,
+ "id": 175,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -8999,7 +10832,7 @@
},
"parameters": [
{
- "id": 166,
+ "id": 176,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -9020,7 +10853,7 @@
],
"children": [
{
- "id": 168,
+ "id": 178,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -9029,7 +10862,7 @@
},
"signatures": [
{
- "id": 169,
+ "id": 179,
"name": "new LocalStorage",
"kind": 16384,
"kindString": "Constructor signature",
@@ -9038,7 +10871,7 @@
},
"parameters": [
{
- "id": 170,
+ "id": 180,
"name": "localStorage",
"kind": 32768,
"kindString": "Parameter",
@@ -9053,7 +10886,7 @@
],
"type": {
"type": "reference",
- "id": 163,
+ "id": 173,
"name": "LocalStorage"
}
}
@@ -9067,7 +10900,7 @@
]
},
{
- "id": 167,
+ "id": 177,
"name": "length",
"kind": 1024,
"kindString": "Property",
@@ -9087,7 +10920,7 @@
}
},
{
- "id": 164,
+ "id": 174,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -9107,7 +10940,7 @@
}
},
{
- "id": 171,
+ "id": 181,
"name": "clear",
"kind": 2048,
"kindString": "Method",
@@ -9116,7 +10949,7 @@
},
"signatures": [
{
- "id": 172,
+ "id": 182,
"name": "clear",
"kind": 4096,
"kindString": "Call signature",
@@ -9138,7 +10971,7 @@
]
},
{
- "id": 180,
+ "id": 190,
"name": "getItem",
"kind": 2048,
"kindString": "Method",
@@ -9147,7 +10980,7 @@
},
"signatures": [
{
- "id": 181,
+ "id": 191,
"name": "getItem",
"kind": 4096,
"kindString": "Call signature",
@@ -9156,7 +10989,7 @@
},
"parameters": [
{
- "id": 182,
+ "id": 192,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -9193,7 +11026,7 @@
]
},
{
- "id": 173,
+ "id": 183,
"name": "key",
"kind": 2048,
"kindString": "Method",
@@ -9202,7 +11035,7 @@
},
"signatures": [
{
- "id": 174,
+ "id": 184,
"name": "key",
"kind": 4096,
"kindString": "Call signature",
@@ -9211,7 +11044,7 @@
},
"parameters": [
{
- "id": 175,
+ "id": 185,
"name": "index",
"kind": 32768,
"kindString": "Parameter",
@@ -9248,7 +11081,7 @@
]
},
{
- "id": 183,
+ "id": 193,
"name": "removeItem",
"kind": 2048,
"kindString": "Method",
@@ -9257,7 +11090,7 @@
},
"signatures": [
{
- "id": 184,
+ "id": 194,
"name": "removeItem",
"kind": 4096,
"kindString": "Call signature",
@@ -9266,7 +11099,7 @@
},
"parameters": [
{
- "id": 185,
+ "id": 195,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -9294,7 +11127,7 @@
]
},
{
- "id": 176,
+ "id": 186,
"name": "setItem",
"kind": 2048,
"kindString": "Method",
@@ -9303,7 +11136,7 @@
},
"signatures": [
{
- "id": 177,
+ "id": 187,
"name": "setItem",
"kind": 4096,
"kindString": "Call signature",
@@ -9312,7 +11145,7 @@
},
"parameters": [
{
- "id": 178,
+ "id": 188,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -9325,7 +11158,7 @@
}
},
{
- "id": 179,
+ "id": 189,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -9358,26 +11191,26 @@
"title": "Constructors",
"kind": 512,
"children": [
- 168
+ 178
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 167,
- 164
+ 177,
+ 174
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 171,
- 180,
- 173,
+ 181,
+ 190,
183,
- 176
+ 193,
+ 186
]
}
],
@@ -9396,7 +11229,7 @@
]
},
{
- "id": 186,
+ "id": 196,
"name": "expiresAt",
"kind": 64,
"kindString": "Function",
@@ -9405,7 +11238,7 @@
},
"signatures": [
{
- "id": 187,
+ "id": 197,
"name": "expiresAt",
"kind": 4096,
"kindString": "Call signature",
@@ -9414,7 +11247,7 @@
},
"parameters": [
{
- "id": 188,
+ "id": 198,
"name": "expiresIn",
"kind": 32768,
"kindString": "Parameter",
@@ -9442,7 +11275,7 @@
]
},
{
- "id": 193,
+ "id": 203,
"name": "getParameterByName",
"kind": 64,
"kindString": "Function",
@@ -9451,7 +11284,7 @@
},
"signatures": [
{
- "id": 194,
+ "id": 204,
"name": "getParameterByName",
"kind": 4096,
"kindString": "Call signature",
@@ -9460,7 +11293,7 @@
},
"parameters": [
{
- "id": 195,
+ "id": 205,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -9473,7 +11306,7 @@
}
},
{
- "id": 196,
+ "id": 206,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -9520,7 +11353,7 @@
]
},
{
- "id": 191,
+ "id": 201,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -9530,7 +11363,7 @@
},
"signatures": [
{
- "id": 192,
+ "id": 202,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -9552,7 +11385,7 @@
]
},
{
- "id": 189,
+ "id": 199,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -9561,7 +11394,7 @@
},
"signatures": [
{
- "id": 190,
+ "id": 200,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -9588,17 +11421,17 @@
"title": "Classes",
"kind": 128,
"children": [
- 163
+ 173
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 186,
- 193,
- 191,
- 189
+ 196,
+ 203,
+ 201,
+ 199
]
}
],
@@ -9611,7 +11444,7 @@
]
},
{
- "id": 320,
+ "id": 373,
"name": "\"lib/polyfills\"",
"kind": 1,
"kindString": "Module",
@@ -9621,7 +11454,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts",
"children": [
{
- "id": 321,
+ "id": 374,
"name": "polyfillGlobalThis",
"kind": 64,
"kindString": "Function",
@@ -9630,7 +11463,7 @@
},
"signatures": [
{
- "id": 322,
+ "id": 375,
"name": "polyfillGlobalThis",
"kind": 4096,
"kindString": "Call signature",
@@ -9660,7 +11493,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 321
+ 374
]
}
],
@@ -9683,7 +11516,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
"children": [
{
- "id": 92,
+ "id": 97,
"name": "CookieOptions",
"kind": 256,
"kindString": "Interface",
@@ -9692,7 +11525,7 @@
},
"children": [
{
- "id": 95,
+ "id": 100,
"name": "domain",
"kind": 1024,
"kindString": "Property",
@@ -9703,7 +11536,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 85,
+ "line": 100,
"character": 8
}
],
@@ -9722,7 +11555,7 @@
}
},
{
- "id": 94,
+ "id": 99,
"name": "lifetime",
"kind": 1024,
"kindString": "Property",
@@ -9733,7 +11566,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 83,
+ "line": 98,
"character": 10
}
],
@@ -9752,7 +11585,7 @@
}
},
{
- "id": 93,
+ "id": 98,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -9763,7 +11596,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 81,
+ "line": 96,
"character": 6
}
],
@@ -9782,7 +11615,7 @@
}
},
{
- "id": 96,
+ "id": 101,
"name": "path",
"kind": 1024,
"kindString": "Property",
@@ -9793,7 +11626,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 86,
+ "line": 101,
"character": 6
}
],
@@ -9812,7 +11645,7 @@
}
},
{
- "id": 97,
+ "id": 102,
"name": "sameSite",
"kind": 1024,
"kindString": "Property",
@@ -9823,7 +11656,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 88,
+ "line": 103,
"character": 10
}
],
@@ -9847,18 +11680,18 @@
"title": "Properties",
"kind": 1024,
"children": [
- 95,
- 94,
- 93,
- 96,
- 97
+ 100,
+ 99,
+ 98,
+ 101,
+ 102
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 79,
+ "line": 94,
"character": 30
}
]
@@ -9883,7 +11716,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 12,
+ "line": 22,
"character": 14
}
],
@@ -9907,7 +11740,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 20,
+ "line": 30,
"character": 12
}
],
@@ -9940,7 +11773,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 16,
+ "line": 26,
"character": 12
}
],
@@ -9970,7 +11803,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 11,
+ "line": 21,
"character": 16
}
],
@@ -10000,7 +11833,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 21,
+ "line": 31,
"character": 15
}
],
@@ -10029,7 +11862,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 22,
+ "line": 32,
"character": 12
}
],
@@ -10049,7 +11882,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 23,
+ "line": 33,
"character": 6
}
],
@@ -10087,13 +11920,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 10,
+ "line": 20,
"character": 24
}
]
},
{
- "id": 82,
+ "id": 87,
"name": "Subscription",
"kind": 256,
"kindString": "Interface",
@@ -10102,7 +11935,7 @@
},
"children": [
{
- "id": 84,
+ "id": 89,
"name": "callback",
"kind": 1024,
"kindString": "Property",
@@ -10115,14 +11948,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 72,
+ "line": 87,
"character": 10
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 85,
+ "id": 90,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10131,7 +11964,7 @@
},
"signatures": [
{
- "id": 86,
+ "id": 91,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -10140,7 +11973,7 @@
},
"parameters": [
{
- "id": 87,
+ "id": 92,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -10149,12 +11982,12 @@
},
"type": {
"type": "reference",
- "id": 104,
+ "id": 113,
"name": "AuthChangeEvent"
}
},
{
- "id": 88,
+ "id": 93,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -10186,7 +12019,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 72,
+ "line": 87,
"character": 11
}
]
@@ -10194,7 +12027,7 @@
}
},
{
- "id": 83,
+ "id": 88,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -10207,7 +12040,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 68,
+ "line": 83,
"character": 4
}
],
@@ -10217,7 +12050,7 @@
}
},
{
- "id": 89,
+ "id": 94,
"name": "unsubscribe",
"kind": 1024,
"kindString": "Property",
@@ -10230,14 +12063,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 76,
+ "line": 91,
"character": 13
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 90,
+ "id": 95,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10246,7 +12079,7 @@
},
"signatures": [
{
- "id": 91,
+ "id": 96,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -10262,7 +12095,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 76,
+ "line": 91,
"character": 14
}
]
@@ -10275,16 +12108,16 @@
"title": "Properties",
"kind": 1024,
"children": [
- 84,
- 83,
- 89
+ 89,
+ 88,
+ 94
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 64,
+ "line": 79,
"character": 29
}
]
@@ -10298,6 +12131,36 @@
"isExported": true
},
"children": [
+ {
+ "id": 72,
+ "name": "action_link",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 47,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
{
"id": 60,
"name": "app_metadata",
@@ -10309,7 +12172,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 27,
+ "line": 37,
"character": 14
}
],
@@ -10366,7 +12229,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 28,
+ "line": 38,
"character": 12
}
],
@@ -10397,7 +12260,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 27,
+ "line": 37,
"character": 15
}
]
@@ -10415,7 +12278,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 34,
+ "line": 44,
"character": 5
}
],
@@ -10436,8 +12299,88 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 35,
- "character": 22
+ "line": 45,
+ "character": 22
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 76,
+ "name": "confirmed_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 51,
+ "character": 14
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 75,
+ "name": "created_at",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 50,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 73,
+ "name": "email",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 48,
+ "character": 7
}
],
"type": {
@@ -10455,8 +12398,8 @@
}
},
{
- "id": 73,
- "name": "confirmed_at",
+ "id": 77,
+ "name": "email_confirmed_at",
"kind": 1024,
"kindString": "Property",
"flags": {
@@ -10466,8 +12409,8 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 38,
- "character": 14
+ "line": 52,
+ "character": 20
}
],
"type": {
@@ -10485,8 +12428,8 @@
}
},
{
- "id": 72,
- "name": "created_at",
+ "id": 59,
+ "name": "id",
"kind": 1024,
"kindString": "Property",
"flags": {
@@ -10495,8 +12438,8 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 37,
- "character": 12
+ "line": 36,
+ "character": 4
}
],
"type": {
@@ -10505,8 +12448,8 @@
}
},
{
- "id": 71,
- "name": "email",
+ "id": 79,
+ "name": "last_sign_in_at",
"kind": 1024,
"kindString": "Property",
"flags": {
@@ -10516,7 +12459,37 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 36,
+ "line": 54,
+ "character": 17
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 74,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 49,
"character": 7
}
],
@@ -10535,28 +12508,38 @@
}
},
{
- "id": 59,
- "name": "id",
+ "id": 78,
+ "name": "phone_confirmed_at",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
"sources": [
{
"fileName": "lib/types.ts",
- "line": 26,
- "character": 4
+ "line": 53,
+ "character": 20
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
}
},
{
- "id": 74,
- "name": "last_sign_in_at",
+ "id": 71,
+ "name": "recovery_sent_at",
"kind": 1024,
"kindString": "Property",
"flags": {
@@ -10566,8 +12549,8 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 39,
- "character": 17
+ "line": 46,
+ "character": 18
}
],
"type": {
@@ -10585,7 +12568,7 @@
}
},
{
- "id": 75,
+ "id": 80,
"name": "role",
"kind": 1024,
"kindString": "Property",
@@ -10596,7 +12579,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 40,
+ "line": 55,
"character": 6
}
],
@@ -10615,7 +12598,7 @@
}
},
{
- "id": 76,
+ "id": 81,
"name": "updated_at",
"kind": 1024,
"kindString": "Property",
@@ -10626,7 +12609,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 41,
+ "line": 56,
"character": 12
}
],
@@ -10655,7 +12638,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 31,
+ "line": 41,
"character": 15
}
],
@@ -10702,7 +12685,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 31,
+ "line": 41,
"character": 16
}
]
@@ -10715,16 +12698,21 @@
"title": "Properties",
"kind": 1024,
"children": [
+ 72,
60,
69,
70,
+ 76,
+ 75,
73,
- 72,
- 71,
+ 77,
59,
+ 79,
74,
- 75,
- 76,
+ 78,
+ 71,
+ 80,
+ 81,
65
]
}
@@ -10732,13 +12720,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 25,
+ "line": 35,
"character": 21
}
]
},
{
- "id": 77,
+ "id": 82,
"name": "UserAttributes",
"kind": 256,
"kindString": "Interface",
@@ -10747,7 +12735,7 @@
},
"children": [
{
- "id": 81,
+ "id": 86,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -10761,7 +12749,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 61,
+ "line": 76,
"character": 6
}
],
@@ -10780,7 +12768,7 @@
}
},
{
- "id": 78,
+ "id": 83,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -10794,7 +12782,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 48,
+ "line": 63,
"character": 7
}
],
@@ -10813,7 +12801,7 @@
}
},
{
- "id": 80,
+ "id": 85,
"name": "email_change_token",
"kind": 1024,
"kindString": "Property",
@@ -10827,7 +12815,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 56,
+ "line": 71,
"character": 20
}
],
@@ -10846,7 +12834,7 @@
}
},
{
- "id": 79,
+ "id": 84,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -10860,7 +12848,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 52,
+ "line": 67,
"character": 10
}
],
@@ -10884,23 +12872,23 @@
"title": "Properties",
"kind": 1024,
"children": [
- 81,
- 78,
- 80,
- 79
+ 86,
+ 83,
+ 85,
+ 84
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 44,
+ "line": 59,
"character": 31
}
]
},
{
- "id": 98,
+ "id": 103,
"name": "UserCredentials",
"kind": 256,
"kindString": "Interface",
@@ -10909,7 +12897,7 @@
},
"children": [
{
- "id": 99,
+ "id": 104,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -10920,7 +12908,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 92,
+ "line": 107,
"character": 7
}
],
@@ -10939,7 +12927,7 @@
}
},
{
- "id": 100,
+ "id": 106,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -10950,7 +12938,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 93,
+ "line": 109,
"character": 10
}
],
@@ -10969,7 +12957,37 @@
}
},
{
- "id": 102,
+ "id": 105,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 108,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 108,
"name": "provider",
"kind": 1024,
"kindString": "Property",
@@ -10980,18 +12998,18 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 96,
+ "line": 112,
"character": 10
}
],
"type": {
"type": "reference",
- "id": 103,
+ "id": 112,
"name": "Provider"
}
},
{
- "id": 101,
+ "id": 107,
"name": "refreshToken",
"kind": 1024,
"kindString": "Property",
@@ -11002,7 +13020,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 94,
+ "line": 110,
"character": 14
}
],
@@ -11026,23 +13044,92 @@
"title": "Properties",
"kind": 1024,
"children": [
- 99,
- 100,
- 102,
- 101
+ 104,
+ 106,
+ 105,
+ 108,
+ 107
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 106,
+ "character": 32
+ }
+ ]
+ },
+ {
+ "id": 109,
+ "name": "VerifyOTPParams",
+ "kind": 256,
+ "kindString": "Interface",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 110,
+ "name": "phone",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 116,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 111,
+ "name": "token",
+ "kind": 1024,
+ "kindString": "Property",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "lib/types.ts",
+ "line": 117,
+ "character": 7
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 110,
+ 111
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 91,
+ "line": 115,
"character": 32
}
]
},
{
- "id": 104,
+ "id": 113,
"name": "AuthChangeEvent",
"kind": 4194304,
"kindString": "Type alias",
@@ -11052,7 +13139,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 3,
+ "line": 13,
"character": 27
}
],
@@ -11083,7 +13170,7 @@
}
},
{
- "id": 103,
+ "id": 112,
"name": "Provider",
"kind": 4194304,
"kindString": "Type alias",
@@ -11135,6 +13222,10 @@
{
"type": "stringLiteral",
"value": "discord"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "twitch"
}
]
}
@@ -11145,20 +13236,21 @@
"title": "Interfaces",
"kind": 256,
"children": [
- 92,
+ 97,
50,
- 82,
+ 87,
58,
- 77,
- 98
+ 82,
+ 103,
+ 109
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 104,
- 103
+ 113,
+ 112
]
}
],
@@ -11169,6 +13261,56 @@
"character": 0
}
]
+ },
+ {
+ "id": 593,
+ "name": "\"lib/version\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/version.ts",
+ "children": [
+ {
+ "id": 594,
+ "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": [
+ 594
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/version.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
}
],
"groups": [
@@ -11176,15 +13318,16 @@
"title": "Modules",
"kind": 1,
"children": [
- 197,
- 323,
- 499,
- 105,
- 118,
+ 207,
+ 376,
+ 583,
+ 114,
+ 128,
1,
- 162,
- 320,
- 49
+ 172,
+ 373,
+ 49,
+ 593
]
}
]
diff --git a/web/spec/postgrest.json b/web/spec/postgrest.json
index dff3309826b..a69d688f966 100644
--- a/web/spec/postgrest.json
+++ b/web/spec/postgrest.json
@@ -474,7 +474,7 @@
"isExported": true
},
"comment": {
- "shortText": "Perform a stored procedure call."
+ "shortText": "Perform a function call."
},
"typeParameter": [
{
@@ -4264,7 +4264,7 @@
"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.\n\nWithout using `.single()`, results are returned as an array of rows, even if there is only one. When using `.single()` results are returned as an object without an enclosing array."
+ "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",
@@ -7891,7 +7891,7 @@
"isExported": true
},
"comment": {
- "shortText": "Perform a stored procedure call."
+ "shortText": "Perform a function call."
},
"parameters": [
{
diff --git a/web/spec/realtime.json b/web/spec/realtime.json
index 51a0bb36f6b..a204988b1d8 100644
--- a/web/spec/realtime.json
+++ b/web/spec/realtime.json
@@ -6,7 +6,7 @@
"originalName": "",
"children": [
{
- "id": 194,
+ "id": 196,
"name": "\"RealtimeClient\"",
"kind": 1,
"kindString": "Module",
@@ -16,7 +16,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts",
"children": [
{
- "id": 195,
+ "id": 197,
"name": "RealtimeClient",
"kind": 128,
"kindString": "Class",
@@ -25,7 +25,7 @@
},
"children": [
{
- "id": 226,
+ "id": 228,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -37,7 +37,7 @@
},
"signatures": [
{
- "id": 227,
+ "id": 229,
"name": "new RealtimeClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -49,7 +49,7 @@
},
"parameters": [
{
- "id": 228,
+ "id": 230,
"name": "endPoint",
"kind": 32768,
"kindString": "Parameter",
@@ -65,7 +65,7 @@
}
},
{
- "id": 229,
+ "id": 231,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -75,14 +75,14 @@
},
"type": {
"type": "reference",
- "id": 301,
+ "id": 303,
"name": "Options"
}
}
],
"type": {
"type": "reference",
- "id": 195,
+ "id": 197,
"name": "RealtimeClient"
}
}
@@ -96,7 +96,7 @@
]
},
{
- "id": 196,
+ "id": 198,
"name": "channels",
"kind": 1024,
"kindString": "Property",
@@ -114,14 +114,14 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
},
"defaultValue": "[]"
},
{
- "id": 218,
+ "id": 220,
"name": "conn",
"kind": 1024,
"kindString": "Property",
@@ -151,7 +151,7 @@
"defaultValue": "null"
},
{
- "id": 216,
+ "id": 218,
"name": "decode",
"kind": 1024,
"kindString": "Property",
@@ -171,7 +171,7 @@
}
},
{
- "id": 215,
+ "id": 217,
"name": "encode",
"kind": 1024,
"kindString": "Property",
@@ -191,7 +191,7 @@
}
},
{
- "id": 197,
+ "id": 199,
"name": "endPoint",
"kind": 1024,
"kindString": "Property",
@@ -212,7 +212,7 @@
"defaultValue": "\"\""
},
{
- "id": 198,
+ "id": 200,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -237,7 +237,7 @@
{
"type": "reflection",
"declaration": {
- "id": 199,
+ "id": 201,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -246,7 +246,7 @@
},
"indexSignature": [
{
- "id": 200,
+ "id": 202,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -255,7 +255,7 @@
},
"parameters": [
{
- "id": 201,
+ "id": 203,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -280,7 +280,7 @@
}
},
{
- "id": 208,
+ "id": 210,
"name": "heartbeatIntervalMs",
"kind": 1024,
"kindString": "Property",
@@ -301,7 +301,7 @@
"defaultValue": "30000"
},
{
- "id": 210,
+ "id": 212,
"name": "heartbeatTimer",
"kind": 1024,
"kindString": "Property",
@@ -340,7 +340,7 @@
"defaultValue": "undefined"
},
{
- "id": 214,
+ "id": 216,
"name": "logger",
"kind": 1024,
"kindString": "Property",
@@ -361,7 +361,7 @@
"defaultValue": "noop"
},
{
- "id": 209,
+ "id": 211,
"name": "longpollerTimeout",
"kind": 1024,
"kindString": "Property",
@@ -382,7 +382,7 @@
"defaultValue": "20000"
},
{
- "id": 202,
+ "id": 204,
"name": "params",
"kind": 1024,
"kindString": "Property",
@@ -407,7 +407,7 @@
{
"type": "reflection",
"declaration": {
- "id": 203,
+ "id": 205,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -416,7 +416,7 @@
},
"indexSignature": [
{
- "id": 204,
+ "id": 206,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -425,7 +425,7 @@
},
"parameters": [
{
- "id": 205,
+ "id": 207,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -450,7 +450,7 @@
}
},
{
- "id": 211,
+ "id": 213,
"name": "pendingHeartbeatRef",
"kind": 1024,
"kindString": "Property",
@@ -480,7 +480,7 @@
"defaultValue": "null"
},
{
- "id": 217,
+ "id": 219,
"name": "reconnectAfterMs",
"kind": 1024,
"kindString": "Property",
@@ -500,7 +500,7 @@
}
},
{
- "id": 213,
+ "id": 215,
"name": "reconnectTimer",
"kind": 1024,
"kindString": "Property",
@@ -521,7 +521,7 @@
}
},
{
- "id": 212,
+ "id": 214,
"name": "ref",
"kind": 1024,
"kindString": "Property",
@@ -542,7 +542,7 @@
"defaultValue": "0"
},
{
- "id": 219,
+ "id": 221,
"name": "sendBuffer",
"kind": 1024,
"kindString": "Property",
@@ -566,7 +566,7 @@
"defaultValue": "[]"
},
{
- "id": 220,
+ "id": 222,
"name": "serializer",
"kind": 1024,
"kindString": "Property",
@@ -582,13 +582,13 @@
],
"type": {
"type": "reference",
- "id": 170,
+ "id": 172,
"name": "Serializer"
},
"defaultValue": "new Serializer()"
},
{
- "id": 206,
+ "id": 208,
"name": "timeout",
"kind": 1024,
"kindString": "Property",
@@ -609,7 +609,7 @@
"defaultValue": "DEFAULT_TIMEOUT"
},
{
- "id": 207,
+ "id": 209,
"name": "transport",
"kind": 1024,
"kindString": "Property",
@@ -630,7 +630,7 @@
"defaultValue": "WebSocket"
},
{
- "id": 288,
+ "id": 290,
"name": "_appendParams",
"kind": 2048,
"kindString": "Method",
@@ -640,7 +640,7 @@
},
"signatures": [
{
- "id": 289,
+ "id": 291,
"name": "_appendParams",
"kind": 4096,
"kindString": "Call signature",
@@ -649,7 +649,7 @@
},
"parameters": [
{
- "id": 290,
+ "id": 292,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -662,7 +662,7 @@
}
},
{
- "id": 291,
+ "id": 293,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -672,7 +672,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 292,
+ "id": 294,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -681,7 +681,7 @@
},
"indexSignature": [
{
- "id": 293,
+ "id": 295,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -690,7 +690,7 @@
},
"parameters": [
{
- "id": 294,
+ "id": 296,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -712,7 +712,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 344,
+ "line": 347,
"character": 44
}
]
@@ -729,13 +729,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 344,
+ "line": 347,
"character": 23
}
]
},
{
- "id": 295,
+ "id": 297,
"name": "_flushSendBuffer",
"kind": 2048,
"kindString": "Method",
@@ -745,7 +745,7 @@
},
"signatures": [
{
- "id": 296,
+ "id": 298,
"name": "_flushSendBuffer",
"kind": 4096,
"kindString": "Call signature",
@@ -761,13 +761,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 354,
+ "line": 357,
"character": 26
}
]
},
{
- "id": 280,
+ "id": 282,
"name": "_onConnClose",
"kind": 2048,
"kindString": "Method",
@@ -777,7 +777,7 @@
},
"signatures": [
{
- "id": 281,
+ "id": 283,
"name": "_onConnClose",
"kind": 4096,
"kindString": "Call signature",
@@ -786,7 +786,7 @@
},
"parameters": [
{
- "id": 282,
+ "id": 284,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -808,13 +808,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 324,
+ "line": 327,
"character": 22
}
]
},
{
- "id": 283,
+ "id": 285,
"name": "_onConnError",
"kind": 2048,
"kindString": "Method",
@@ -824,7 +824,7 @@
},
"signatures": [
{
- "id": 284,
+ "id": 286,
"name": "_onConnError",
"kind": 4096,
"kindString": "Call signature",
@@ -833,7 +833,7 @@
},
"parameters": [
{
- "id": 285,
+ "id": 287,
"name": "error",
"kind": 32768,
"kindString": "Parameter",
@@ -855,13 +855,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 332,
+ "line": 335,
"character": 22
}
]
},
{
- "id": 278,
+ "id": 280,
"name": "_onConnOpen",
"kind": 2048,
"kindString": "Method",
@@ -871,7 +871,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 281,
"name": "_onConnOpen",
"kind": 4096,
"kindString": "Call signature",
@@ -887,13 +887,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 316,
+ "line": 319,
"character": 21
}
]
},
{
- "id": 297,
+ "id": 299,
"name": "_resetHeartbeat",
"kind": 2048,
"kindString": "Method",
@@ -903,7 +903,7 @@
},
"signatures": [
{
- "id": 298,
+ "id": 300,
"name": "_resetHeartbeat",
"kind": 4096,
"kindString": "Call signature",
@@ -919,13 +919,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 361,
+ "line": 364,
"character": 25
}
]
},
{
- "id": 299,
+ "id": 301,
"name": "_sendHeartbeat",
"kind": 2048,
"kindString": "Method",
@@ -935,7 +935,7 @@
},
"signatures": [
{
- "id": 300,
+ "id": 302,
"name": "_sendHeartbeat",
"kind": 4096,
"kindString": "Call signature",
@@ -951,13 +951,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 370,
+ "line": 373,
"character": 24
}
]
},
{
- "id": 286,
+ "id": 288,
"name": "_triggerChanError",
"kind": 2048,
"kindString": "Method",
@@ -967,7 +967,7 @@
},
"signatures": [
{
- "id": 287,
+ "id": 289,
"name": "_triggerChanError",
"kind": 4096,
"kindString": "Call signature",
@@ -983,13 +983,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 338,
+ "line": 341,
"character": 27
}
]
},
{
- "id": 263,
+ "id": 265,
"name": "channel",
"kind": 2048,
"kindString": "Method",
@@ -998,7 +998,7 @@
},
"signatures": [
{
- "id": 264,
+ "id": 266,
"name": "channel",
"kind": 4096,
"kindString": "Call signature",
@@ -1007,7 +1007,7 @@
},
"parameters": [
{
- "id": 265,
+ "id": 267,
"name": "topic",
"kind": 32768,
"kindString": "Parameter",
@@ -1020,7 +1020,7 @@
}
},
{
- "id": 266,
+ "id": 268,
"name": "chanParams",
"kind": 32768,
"kindString": "Parameter",
@@ -1030,7 +1030,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 267,
+ "id": 269,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1044,7 +1044,7 @@
],
"type": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
}
@@ -1052,13 +1052,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 246,
+ "line": 249,
"character": 9
}
]
},
{
- "id": 230,
+ "id": 232,
"name": "connect",
"kind": 2048,
"kindString": "Method",
@@ -1067,7 +1067,7 @@
},
"signatures": [
{
- "id": 231,
+ "id": 233,
"name": "connect",
"kind": 4096,
"kindString": "Call signature",
@@ -1092,7 +1092,7 @@
]
},
{
- "id": 256,
+ "id": 258,
"name": "connectionState",
"kind": 2048,
"kindString": "Method",
@@ -1101,7 +1101,7 @@
},
"signatures": [
{
- "id": 257,
+ "id": 259,
"name": "connectionState",
"kind": 4096,
"kindString": "Call signature",
@@ -1137,13 +1137,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 215,
+ "line": 218,
"character": 17
}
]
},
{
- "id": 232,
+ "id": 234,
"name": "disconnect",
"kind": 2048,
"kindString": "Method",
@@ -1152,7 +1152,7 @@
},
"signatures": [
{
- "id": 233,
+ "id": 235,
"name": "disconnect",
"kind": 4096,
"kindString": "Call signature",
@@ -1164,7 +1164,7 @@
},
"parameters": [
{
- "id": 234,
+ "id": 236,
"name": "code",
"kind": 32768,
"kindString": "Parameter",
@@ -1190,7 +1190,7 @@
}
},
{
- "id": 235,
+ "id": 237,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -1222,7 +1222,7 @@
{
"type": "reflection",
"declaration": {
- "id": 236,
+ "id": 238,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1231,7 +1231,7 @@
},
"children": [
{
- "id": 238,
+ "id": 240,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1251,7 +1251,7 @@
}
},
{
- "id": 237,
+ "id": 239,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1285,8 +1285,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 238,
- 237
+ 240,
+ 239
]
}
],
@@ -1313,7 +1313,7 @@
]
},
{
- "id": 274,
+ "id": 276,
"name": "endPointURL",
"kind": 2048,
"kindString": "Method",
@@ -1322,7 +1322,7 @@
},
"signatures": [
{
- "id": 275,
+ "id": 277,
"name": "endPointURL",
"kind": 4096,
"kindString": "Call signature",
@@ -1341,13 +1341,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 295,
+ "line": 298,
"character": 13
}
]
},
{
- "id": 258,
+ "id": 260,
"name": "isConnected",
"kind": 2048,
"kindString": "Method",
@@ -1356,7 +1356,7 @@
},
"signatures": [
{
- "id": 259,
+ "id": 261,
"name": "isConnected",
"kind": 4096,
"kindString": "Call signature",
@@ -1375,13 +1375,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 231,
+ "line": 234,
"character": 13
}
]
},
{
- "id": 239,
+ "id": 241,
"name": "log",
"kind": 2048,
"kindString": "Method",
@@ -1390,7 +1390,7 @@
},
"signatures": [
{
- "id": 240,
+ "id": 242,
"name": "log",
"kind": 4096,
"kindString": "Call signature",
@@ -1402,7 +1402,7 @@
},
"parameters": [
{
- "id": 241,
+ "id": 243,
"name": "kind",
"kind": 32768,
"kindString": "Parameter",
@@ -1415,7 +1415,7 @@
}
},
{
- "id": 242,
+ "id": 244,
"name": "msg",
"kind": 32768,
"kindString": "Parameter",
@@ -1428,7 +1428,7 @@
}
},
{
- "id": 243,
+ "id": 245,
"name": "data",
"kind": 32768,
"kindString": "Parameter",
@@ -1451,13 +1451,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 164,
+ "line": 167,
"character": 5
}
]
},
{
- "id": 276,
+ "id": 278,
"name": "makeRef",
"kind": 2048,
"kindString": "Method",
@@ -1466,7 +1466,7 @@
},
"signatures": [
{
- "id": 277,
+ "id": 279,
"name": "makeRef",
"kind": 4096,
"kindString": "Call signature",
@@ -1485,13 +1485,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 305,
+ "line": 308,
"character": 9
}
]
},
{
- "id": 247,
+ "id": 249,
"name": "onClose",
"kind": 2048,
"kindString": "Method",
@@ -1500,7 +1500,7 @@
},
"signatures": [
{
- "id": 248,
+ "id": 250,
"name": "onClose",
"kind": 4096,
"kindString": "Call signature",
@@ -1518,7 +1518,7 @@
},
"parameters": [
{
- "id": 249,
+ "id": 251,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -1543,13 +1543,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 186,
+ "line": 189,
"character": 9
}
]
},
{
- "id": 271,
+ "id": 273,
"name": "onConnMessage",
"kind": 2048,
"kindString": "Method",
@@ -1558,7 +1558,7 @@
},
"signatures": [
{
- "id": 272,
+ "id": 274,
"name": "onConnMessage",
"kind": 4096,
"kindString": "Call signature",
@@ -1567,7 +1567,7 @@
},
"parameters": [
{
- "id": 273,
+ "id": 275,
"name": "rawMessage",
"kind": 32768,
"kindString": "Parameter",
@@ -1589,13 +1589,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 267,
+ "line": 270,
"character": 15
}
]
},
{
- "id": 250,
+ "id": 252,
"name": "onError",
"kind": 2048,
"kindString": "Method",
@@ -1604,7 +1604,7 @@
},
"signatures": [
{
- "id": 251,
+ "id": 253,
"name": "onError",
"kind": 4096,
"kindString": "Call signature",
@@ -1622,7 +1622,7 @@
},
"parameters": [
{
- "id": 252,
+ "id": 254,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -1647,13 +1647,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 197,
+ "line": 200,
"character": 9
}
]
},
{
- "id": 253,
+ "id": 255,
"name": "onMessage",
"kind": 2048,
"kindString": "Method",
@@ -1662,7 +1662,7 @@
},
"signatures": [
{
- "id": 254,
+ "id": 256,
"name": "onMessage",
"kind": 4096,
"kindString": "Call signature",
@@ -1680,7 +1680,7 @@
},
"parameters": [
{
- "id": 255,
+ "id": 257,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -1705,13 +1705,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 208,
+ "line": 211,
"character": 11
}
]
},
{
- "id": 244,
+ "id": 246,
"name": "onOpen",
"kind": 2048,
"kindString": "Method",
@@ -1720,7 +1720,7 @@
},
"signatures": [
{
- "id": 245,
+ "id": 247,
"name": "onOpen",
"kind": 4096,
"kindString": "Call signature",
@@ -1738,7 +1738,7 @@
},
"parameters": [
{
- "id": 246,
+ "id": 248,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -1763,13 +1763,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 175,
+ "line": 178,
"character": 8
}
]
},
{
- "id": 268,
+ "id": 270,
"name": "push",
"kind": 2048,
"kindString": "Method",
@@ -1778,7 +1778,7 @@
},
"signatures": [
{
- "id": 269,
+ "id": 271,
"name": "push",
"kind": 4096,
"kindString": "Call signature",
@@ -1787,7 +1787,7 @@
},
"parameters": [
{
- "id": 270,
+ "id": 272,
"name": "data",
"kind": 32768,
"kindString": "Parameter",
@@ -1796,7 +1796,7 @@
},
"type": {
"type": "reference",
- "id": 319,
+ "id": 321,
"name": "Message"
}
}
@@ -1810,13 +1810,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 252,
+ "line": 255,
"character": 6
}
]
},
{
- "id": 260,
+ "id": 262,
"name": "remove",
"kind": 2048,
"kindString": "Method",
@@ -1825,7 +1825,7 @@
},
"signatures": [
{
- "id": 261,
+ "id": 263,
"name": "remove",
"kind": 4096,
"kindString": "Call signature",
@@ -1837,7 +1837,7 @@
},
"parameters": [
{
- "id": 262,
+ "id": 264,
"name": "channel",
"kind": 32768,
"kindString": "Parameter",
@@ -1849,7 +1849,7 @@
},
"type": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
}
@@ -1863,13 +1863,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 240,
+ "line": 243,
"character": 8
}
]
},
{
- "id": 221,
+ "id": 223,
"name": "stateChangeCallbacks",
"kind": 2097152,
"kindString": "Object literal",
@@ -1878,7 +1878,7 @@
},
"children": [
{
- "id": 223,
+ "id": 225,
"name": "close",
"kind": 32,
"kindString": "Variable",
@@ -1902,7 +1902,7 @@
"defaultValue": "[]"
},
{
- "id": 224,
+ "id": 226,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1926,7 +1926,7 @@
"defaultValue": "[]"
},
{
- "id": 225,
+ "id": 227,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -1950,7 +1950,7 @@
"defaultValue": "[]"
},
{
- "id": 222,
+ "id": 224,
"name": "open",
"kind": 32,
"kindString": "Variable",
@@ -1979,10 +1979,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 223,
- 224,
225,
- 222
+ 226,
+ 227,
+ 224
]
}
],
@@ -2004,68 +2004,68 @@
"title": "Constructors",
"kind": 512,
"children": [
- 226
+ 228
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 196,
- 218,
- 216,
- 215,
- 197,
198,
- 208,
+ 220,
+ 218,
+ 217,
+ 199,
+ 200,
210,
- 214,
- 209,
- 202,
+ 212,
+ 216,
211,
- 217,
+ 204,
213,
- 212,
219,
- 220,
- 206,
- 207
+ 215,
+ 214,
+ 221,
+ 222,
+ 208,
+ 209
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 288,
- 295,
- 280,
- 283,
- 278,
+ 290,
297,
+ 282,
+ 285,
+ 280,
299,
- 286,
- 263,
- 230,
- 256,
+ 301,
+ 288,
+ 265,
232,
- 274,
258,
- 239,
+ 234,
276,
- 247,
- 271,
- 250,
- 253,
- 244,
- 268,
- 260
+ 260,
+ 241,
+ 278,
+ 249,
+ 273,
+ 252,
+ 255,
+ 246,
+ 270,
+ 262
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 221
+ 223
]
}
],
@@ -2078,7 +2078,7 @@
]
},
{
- "id": 319,
+ "id": 321,
"name": "Message",
"kind": 4194304,
"kindString": "Type alias",
@@ -2093,14 +2093,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 320,
+ "id": 322,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 322,
+ "id": 324,
"name": "event",
"kind": 32,
"kindString": "Variable",
@@ -2118,7 +2118,7 @@
}
},
{
- "id": 323,
+ "id": 325,
"name": "payload",
"kind": 32,
"kindString": "Variable",
@@ -2136,7 +2136,7 @@
}
},
{
- "id": 324,
+ "id": 326,
"name": "ref",
"kind": 32,
"kindString": "Variable",
@@ -2154,7 +2154,7 @@
}
},
{
- "id": 321,
+ "id": 323,
"name": "topic",
"kind": 32,
"kindString": "Variable",
@@ -2177,10 +2177,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 322,
- 323,
324,
- 321
+ 325,
+ 326,
+ 323
]
}
],
@@ -2195,7 +2195,7 @@
}
},
{
- "id": 301,
+ "id": 303,
"name": "Options",
"kind": 4194304,
"kindString": "Type alias",
@@ -2212,7 +2212,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 302,
+ "id": 304,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2221,7 +2221,7 @@
},
"children": [
{
- "id": 309,
+ "id": 311,
"name": "decode",
"kind": 32,
"kindString": "Variable",
@@ -2242,7 +2242,7 @@
}
},
{
- "id": 308,
+ "id": 310,
"name": "encode",
"kind": 32,
"kindString": "Variable",
@@ -2263,7 +2263,7 @@
}
},
{
- "id": 311,
+ "id": 313,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -2288,7 +2288,7 @@
{
"type": "reflection",
"declaration": {
- "id": 312,
+ "id": 314,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2297,7 +2297,7 @@
},
"indexSignature": [
{
- "id": 313,
+ "id": 315,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -2306,7 +2306,7 @@
},
"parameters": [
{
- "id": 314,
+ "id": 316,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -2331,7 +2331,7 @@
}
},
{
- "id": 305,
+ "id": 307,
"name": "heartbeatIntervalMs",
"kind": 32,
"kindString": "Variable",
@@ -2361,7 +2361,7 @@
}
},
{
- "id": 307,
+ "id": 309,
"name": "logger",
"kind": 32,
"kindString": "Variable",
@@ -2382,7 +2382,7 @@
}
},
{
- "id": 306,
+ "id": 308,
"name": "longpollerTimeout",
"kind": 32,
"kindString": "Variable",
@@ -2412,7 +2412,7 @@
}
},
{
- "id": 315,
+ "id": 317,
"name": "params",
"kind": 32,
"kindString": "Variable",
@@ -2437,7 +2437,7 @@
{
"type": "reflection",
"declaration": {
- "id": 316,
+ "id": 318,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2446,7 +2446,7 @@
},
"indexSignature": [
{
- "id": 317,
+ "id": 319,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -2455,7 +2455,7 @@
},
"parameters": [
{
- "id": 318,
+ "id": 320,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -2480,7 +2480,7 @@
}
},
{
- "id": 310,
+ "id": 312,
"name": "reconnectAfterMs",
"kind": 32,
"kindString": "Variable",
@@ -2501,7 +2501,7 @@
}
},
{
- "id": 304,
+ "id": 306,
"name": "timeout",
"kind": 32,
"kindString": "Variable",
@@ -2531,7 +2531,7 @@
}
},
{
- "id": 303,
+ "id": 305,
"name": "transport",
"kind": 32,
"kindString": "Variable",
@@ -2557,16 +2557,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 309,
- 308,
311,
- 305,
+ 310,
+ 313,
307,
+ 309,
+ 308,
+ 317,
+ 312,
306,
- 315,
- 310,
- 304,
- 303
+ 305
]
}
],
@@ -2581,7 +2581,7 @@
}
},
{
- "id": 325,
+ "id": 327,
"name": "noop",
"kind": 64,
"kindString": "Function",
@@ -2590,7 +2590,7 @@
},
"signatures": [
{
- "id": 326,
+ "id": 328,
"name": "noop",
"kind": 4096,
"kindString": "Call signature",
@@ -2615,22 +2615,22 @@
"title": "Classes",
"kind": 128,
"children": [
- 195
+ 197
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 319,
- 301
+ 321,
+ 303
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 325
+ 327
]
}
],
@@ -2643,7 +2643,7 @@
]
},
{
- "id": 90,
+ "id": 92,
"name": "\"RealtimeSubscription\"",
"kind": 1,
"kindString": "Module",
@@ -2653,7 +2653,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts",
"children": [
{
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription",
"kind": 128,
"kindString": "Class",
@@ -2662,7 +2662,7 @@
},
"children": [
{
- "id": 99,
+ "id": 101,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -2671,7 +2671,7 @@
},
"signatures": [
{
- "id": 103,
+ "id": 105,
"name": "new RealtimeSubscription",
"kind": 16384,
"kindString": "Constructor signature",
@@ -2680,7 +2680,7 @@
},
"parameters": [
{
- "id": 104,
+ "id": 106,
"name": "topic",
"kind": 32768,
"kindString": "Parameter",
@@ -2693,7 +2693,7 @@
}
},
{
- "id": 105,
+ "id": 107,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -2707,7 +2707,7 @@
"defaultValue": "{}"
},
{
- "id": 106,
+ "id": 108,
"name": "socket",
"kind": 32768,
"kindString": "Parameter",
@@ -2716,14 +2716,14 @@
},
"type": {
"type": "reference",
- "id": 195,
+ "id": 197,
"name": "RealtimeClient"
}
}
],
"type": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
}
@@ -2737,7 +2737,7 @@
]
},
{
- "id": 92,
+ "id": 94,
"name": "bindings",
"kind": 1024,
"kindString": "Property",
@@ -2761,7 +2761,7 @@
"defaultValue": "[]"
},
{
- "id": 96,
+ "id": 98,
"name": "joinPush",
"kind": 1024,
"kindString": "Property",
@@ -2782,7 +2782,7 @@
}
},
{
- "id": 95,
+ "id": 97,
"name": "joinedOnce",
"kind": 1024,
"kindString": "Property",
@@ -2803,7 +2803,7 @@
"defaultValue": "false"
},
{
- "id": 101,
+ "id": 103,
"name": "params",
"kind": 1024,
"kindString": "Property",
@@ -2825,7 +2825,7 @@
}
},
{
- "id": 98,
+ "id": 100,
"name": "pushBuffer",
"kind": 1024,
"kindString": "Property",
@@ -2850,7 +2850,7 @@
"defaultValue": "[]"
},
{
- "id": 97,
+ "id": 99,
"name": "rejoinTimer",
"kind": 1024,
"kindString": "Property",
@@ -2871,7 +2871,7 @@
}
},
{
- "id": 102,
+ "id": 104,
"name": "socket",
"kind": 1024,
"kindString": "Property",
@@ -2889,12 +2889,12 @@
],
"type": {
"type": "reference",
- "id": 195,
+ "id": 197,
"name": "RealtimeClient"
}
},
{
- "id": 94,
+ "id": 96,
"name": "state",
"kind": 1024,
"kindString": "Property",
@@ -2916,7 +2916,7 @@
"defaultValue": "CHANNEL_STATES.closed"
},
{
- "id": 93,
+ "id": 95,
"name": "timeout",
"kind": 1024,
"kindString": "Property",
@@ -2936,7 +2936,7 @@
}
},
{
- "id": 100,
+ "id": 102,
"name": "topic",
"kind": 1024,
"kindString": "Property",
@@ -2958,7 +2958,7 @@
}
},
{
- "id": 125,
+ "id": 127,
"name": "canPush",
"kind": 2048,
"kindString": "Method",
@@ -2967,7 +2967,7 @@
},
"signatures": [
{
- "id": 126,
+ "id": 128,
"name": "canPush",
"kind": 4096,
"kindString": "Call signature",
@@ -2989,7 +2989,7 @@
]
},
{
- "id": 159,
+ "id": 161,
"name": "isClosed",
"kind": 2048,
"kindString": "Method",
@@ -2998,7 +2998,7 @@
},
"signatures": [
{
- "id": 160,
+ "id": 162,
"name": "isClosed",
"kind": 4096,
"kindString": "Call signature",
@@ -3014,13 +3014,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 198,
+ "line": 201,
"character": 10
}
]
},
{
- "id": 161,
+ "id": 163,
"name": "isErrored",
"kind": 2048,
"kindString": "Method",
@@ -3029,7 +3029,7 @@
},
"signatures": [
{
- "id": 162,
+ "id": 164,
"name": "isErrored",
"kind": 4096,
"kindString": "Call signature",
@@ -3045,13 +3045,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 201,
+ "line": 204,
"character": 11
}
]
},
{
- "id": 163,
+ "id": 165,
"name": "isJoined",
"kind": 2048,
"kindString": "Method",
@@ -3060,7 +3060,7 @@
},
"signatures": [
{
- "id": 164,
+ "id": 166,
"name": "isJoined",
"kind": 4096,
"kindString": "Call signature",
@@ -3076,13 +3076,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 204,
+ "line": 207,
"character": 10
}
]
},
{
- "id": 165,
+ "id": 167,
"name": "isJoining",
"kind": 2048,
"kindString": "Method",
@@ -3091,7 +3091,7 @@
},
"signatures": [
{
- "id": 166,
+ "id": 168,
"name": "isJoining",
"kind": 4096,
"kindString": "Call signature",
@@ -3107,13 +3107,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 207,
+ "line": 210,
"character": 11
}
]
},
{
- "id": 167,
+ "id": 169,
"name": "isLeaving",
"kind": 2048,
"kindString": "Method",
@@ -3122,7 +3122,7 @@
},
"signatures": [
{
- "id": 168,
+ "id": 170,
"name": "isLeaving",
"kind": 4096,
"kindString": "Call signature",
@@ -3138,13 +3138,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 210,
+ "line": 213,
"character": 11
}
]
},
{
- "id": 140,
+ "id": 142,
"name": "isMember",
"kind": 2048,
"kindString": "Method",
@@ -3153,7 +3153,7 @@
},
"signatures": [
{
- "id": 141,
+ "id": 143,
"name": "isMember",
"kind": 4096,
"kindString": "Call signature",
@@ -3162,7 +3162,7 @@
},
"parameters": [
{
- "id": 142,
+ "id": 144,
"name": "topic",
"kind": 32768,
"kindString": "Parameter",
@@ -3184,13 +3184,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 151,
+ "line": 154,
"character": 10
}
]
},
{
- "id": 143,
+ "id": 145,
"name": "joinRef",
"kind": 2048,
"kindString": "Method",
@@ -3199,7 +3199,7 @@
},
"signatures": [
{
- "id": 144,
+ "id": 146,
"name": "joinRef",
"kind": 4096,
"kindString": "Call signature",
@@ -3215,13 +3215,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 155,
+ "line": 158,
"character": 9
}
]
},
{
- "id": 122,
+ "id": 124,
"name": "off",
"kind": 2048,
"kindString": "Method",
@@ -3230,7 +3230,7 @@
},
"signatures": [
{
- "id": 123,
+ "id": 125,
"name": "off",
"kind": 4096,
"kindString": "Call signature",
@@ -3239,7 +3239,7 @@
},
"parameters": [
{
- "id": 124,
+ "id": 126,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -3267,7 +3267,7 @@
]
},
{
- "id": 118,
+ "id": 120,
"name": "on",
"kind": 2048,
"kindString": "Method",
@@ -3276,7 +3276,7 @@
},
"signatures": [
{
- "id": 119,
+ "id": 121,
"name": "on",
"kind": 4096,
"kindString": "Call signature",
@@ -3285,7 +3285,7 @@
},
"parameters": [
{
- "id": 120,
+ "id": 122,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -3298,7 +3298,7 @@
}
},
{
- "id": 121,
+ "id": 123,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -3326,7 +3326,7 @@
]
},
{
- "id": 112,
+ "id": 114,
"name": "onClose",
"kind": 2048,
"kindString": "Method",
@@ -3335,7 +3335,7 @@
},
"signatures": [
{
- "id": 113,
+ "id": 115,
"name": "onClose",
"kind": 4096,
"kindString": "Call signature",
@@ -3344,7 +3344,7 @@
},
"parameters": [
{
- "id": 114,
+ "id": 116,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -3372,7 +3372,7 @@
]
},
{
- "id": 115,
+ "id": 117,
"name": "onError",
"kind": 2048,
"kindString": "Method",
@@ -3381,7 +3381,7 @@
},
"signatures": [
{
- "id": 116,
+ "id": 118,
"name": "onError",
"kind": 4096,
"kindString": "Call signature",
@@ -3390,7 +3390,7 @@
},
"parameters": [
{
- "id": 117,
+ "id": 119,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -3418,7 +3418,7 @@
]
},
{
- "id": 135,
+ "id": 137,
"name": "onMessage",
"kind": 2048,
"kindString": "Method",
@@ -3427,7 +3427,7 @@
},
"signatures": [
{
- "id": 136,
+ "id": 138,
"name": "onMessage",
"kind": 4096,
"kindString": "Call signature",
@@ -3440,7 +3440,7 @@
},
"parameters": [
{
- "id": 137,
+ "id": 139,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -3453,7 +3453,7 @@
}
},
{
- "id": 138,
+ "id": 140,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -3466,7 +3466,7 @@
}
},
{
- "id": 139,
+ "id": 141,
"name": "ref",
"kind": 32768,
"kindString": "Parameter",
@@ -3498,13 +3498,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 147,
+ "line": 150,
"character": 11
}
]
},
{
- "id": 127,
+ "id": 129,
"name": "push",
"kind": 2048,
"kindString": "Method",
@@ -3513,7 +3513,7 @@
},
"signatures": [
{
- "id": 128,
+ "id": 130,
"name": "push",
"kind": 4096,
"kindString": "Call signature",
@@ -3522,7 +3522,7 @@
},
"parameters": [
{
- "id": 129,
+ "id": 131,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -3536,7 +3536,7 @@
}
},
{
- "id": 130,
+ "id": 132,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -3549,7 +3549,7 @@
}
},
{
- "id": 131,
+ "id": 133,
"name": "timeout",
"kind": 32768,
"kindString": "Parameter",
@@ -3579,7 +3579,7 @@
]
},
{
- "id": 148,
+ "id": 150,
"name": "rejoin",
"kind": 2048,
"kindString": "Method",
@@ -3588,7 +3588,7 @@
},
"signatures": [
{
- "id": 149,
+ "id": 151,
"name": "rejoin",
"kind": 4096,
"kindString": "Call signature",
@@ -3597,7 +3597,7 @@
},
"parameters": [
{
- "id": 150,
+ "id": 152,
"name": "timeout",
"kind": 32768,
"kindString": "Parameter",
@@ -3620,13 +3620,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 164,
+ "line": 167,
"character": 8
}
]
},
{
- "id": 107,
+ "id": 109,
"name": "rejoinUntilConnected",
"kind": 2048,
"kindString": "Method",
@@ -3635,7 +3635,7 @@
},
"signatures": [
{
- "id": 108,
+ "id": 110,
"name": "rejoinUntilConnected",
"kind": 4096,
"kindString": "Call signature",
@@ -3657,7 +3657,7 @@
]
},
{
- "id": 156,
+ "id": 158,
"name": "replyEventName",
"kind": 2048,
"kindString": "Method",
@@ -3666,7 +3666,7 @@
},
"signatures": [
{
- "id": 157,
+ "id": 159,
"name": "replyEventName",
"kind": 4096,
"kindString": "Call signature",
@@ -3675,7 +3675,7 @@
},
"parameters": [
{
- "id": 158,
+ "id": 160,
"name": "ref",
"kind": 32768,
"kindString": "Parameter",
@@ -3697,13 +3697,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 194,
+ "line": 197,
"character": 16
}
]
},
{
- "id": 145,
+ "id": 147,
"name": "sendJoin",
"kind": 2048,
"kindString": "Method",
@@ -3712,7 +3712,7 @@
},
"signatures": [
{
- "id": 146,
+ "id": 148,
"name": "sendJoin",
"kind": 4096,
"kindString": "Call signature",
@@ -3721,7 +3721,7 @@
},
"parameters": [
{
- "id": 147,
+ "id": 149,
"name": "timeout",
"kind": 32768,
"kindString": "Parameter",
@@ -3743,13 +3743,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 159,
+ "line": 162,
"character": 10
}
]
},
{
- "id": 109,
+ "id": 111,
"name": "subscribe",
"kind": 2048,
"kindString": "Method",
@@ -3758,7 +3758,7 @@
},
"signatures": [
{
- "id": 110,
+ "id": 112,
"name": "subscribe",
"kind": 4096,
"kindString": "Call signature",
@@ -3767,7 +3767,7 @@
},
"parameters": [
{
- "id": 111,
+ "id": 113,
"name": "timeout",
"kind": 32768,
"kindString": "Parameter",
@@ -3797,7 +3797,7 @@
]
},
{
- "id": 151,
+ "id": 153,
"name": "trigger",
"kind": 2048,
"kindString": "Method",
@@ -3806,7 +3806,7 @@
},
"signatures": [
{
- "id": 152,
+ "id": 154,
"name": "trigger",
"kind": 4096,
"kindString": "Call signature",
@@ -3815,7 +3815,7 @@
},
"parameters": [
{
- "id": 153,
+ "id": 155,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -3828,7 +3828,7 @@
}
},
{
- "id": 154,
+ "id": 156,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -3842,7 +3842,7 @@
}
},
{
- "id": 155,
+ "id": 157,
"name": "ref",
"kind": 32768,
"kindString": "Parameter",
@@ -3874,13 +3874,13 @@
"sources": [
{
"fileName": "RealtimeSubscription.ts",
- "line": 171,
+ "line": 174,
"character": 9
}
]
},
{
- "id": 132,
+ "id": 134,
"name": "unsubscribe",
"kind": 2048,
"kindString": "Method",
@@ -3889,7 +3889,7 @@
},
"signatures": [
{
- "id": 133,
+ "id": 135,
"name": "unsubscribe",
"kind": 4096,
"kindString": "Call signature",
@@ -3902,7 +3902,7 @@
},
"parameters": [
{
- "id": 134,
+ "id": 136,
"name": "timeout",
"kind": 32768,
"kindString": "Parameter",
@@ -3937,50 +3937,50 @@
"title": "Constructors",
"kind": 512,
"children": [
- 99
+ 101
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 92,
- 96,
- 95,
- 101,
+ 94,
98,
97,
- 102,
- 94,
- 93,
- 100
+ 103,
+ 100,
+ 99,
+ 104,
+ 96,
+ 95,
+ 102
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 125,
- 159,
+ 127,
161,
163,
165,
167,
- 140,
- 143,
- 122,
- 118,
- 112,
- 115,
- 135,
- 127,
- 148,
- 107,
- 156,
+ 169,
+ 142,
145,
+ 124,
+ 120,
+ 114,
+ 117,
+ 137,
+ 129,
+ 150,
109,
- 151,
- 132
+ 158,
+ 147,
+ 111,
+ 153,
+ 134
]
}
],
@@ -3998,7 +3998,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 91
+ 93
]
}
],
@@ -4011,7 +4011,7 @@
]
},
{
- "id": 413,
+ "id": 415,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -4563,7 +4563,7 @@
},
"type": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
},
@@ -4655,7 +4655,7 @@
],
"type": {
"type": "reference",
- "id": 91,
+ "id": 93,
"name": "RealtimeSubscription"
}
},
@@ -5025,7 +5025,7 @@
"defaultValue": "undefined"
},
{
- "id": 77,
+ "id": 79,
"name": "_cancelRefEvent",
"kind": 2048,
"kindString": "Method",
@@ -5035,7 +5035,7 @@
},
"signatures": [
{
- "id": 78,
+ "id": 80,
"name": "_cancelRefEvent",
"kind": 4096,
"kindString": "Call signature",
@@ -5051,13 +5051,13 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 89,
+ "line": 94,
"character": 25
}
]
},
{
- "id": 79,
+ "id": 81,
"name": "_cancelTimeout",
"kind": 2048,
"kindString": "Method",
@@ -5067,7 +5067,7 @@
},
"signatures": [
{
- "id": 80,
+ "id": 82,
"name": "_cancelTimeout",
"kind": 4096,
"kindString": "Call signature",
@@ -5083,13 +5083,13 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 96,
+ "line": 101,
"character": 24
}
]
},
{
- "id": 87,
+ "id": 89,
"name": "_hasReceived",
"kind": 2048,
"kindString": "Method",
@@ -5099,7 +5099,7 @@
},
"signatures": [
{
- "id": 88,
+ "id": 90,
"name": "_hasReceived",
"kind": 4096,
"kindString": "Call signature",
@@ -5108,7 +5108,7 @@
},
"parameters": [
{
- "id": 89,
+ "id": 91,
"name": "status",
"kind": 32768,
"kindString": "Parameter",
@@ -5143,13 +5143,13 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 113,
+ "line": 118,
"character": 22
}
]
},
{
- "id": 81,
+ "id": 83,
"name": "_matchReceive",
"kind": 2048,
"kindString": "Method",
@@ -5159,7 +5159,7 @@
},
"signatures": [
{
- "id": 82,
+ "id": 84,
"name": "_matchReceive",
"kind": 4096,
"kindString": "Call signature",
@@ -5168,7 +5168,7 @@
},
"parameters": [
{
- "id": 83,
+ "id": 85,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5179,7 +5179,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 84,
+ "id": 86,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5188,7 +5188,7 @@
},
"children": [
{
- "id": 86,
+ "id": 88,
"name": "response",
"kind": 32,
"kindString": "Variable",
@@ -5198,7 +5198,7 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 103,
+ "line": 108,
"character": 12
}
],
@@ -5208,7 +5208,7 @@
}
},
{
- "id": 85,
+ "id": 87,
"name": "status",
"kind": 32,
"kindString": "Variable",
@@ -5218,7 +5218,7 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 102,
+ "line": 107,
"character": 10
}
],
@@ -5233,15 +5233,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 86,
- 85
+ 88,
+ 87
]
}
],
"sources": [
{
"fileName": "lib/push.ts",
- "line": 101,
+ "line": 106,
"character": 24
}
]
@@ -5258,11 +5258,42 @@
"sources": [
{
"fileName": "lib/push.ts",
- "line": 101,
+ "line": 106,
"character": 23
}
]
},
+ {
+ "id": 77,
+ "name": "destroy",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 78,
+ "name": "destroy",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "void"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "lib/push.ts",
+ "line": 89,
+ "character": 9
+ }
+ ]
+ },
{
"id": 67,
"name": "receive",
@@ -5518,10 +5549,11 @@
"title": "Methods",
"kind": 2048,
"children": [
- 77,
79,
- 87,
81,
+ 89,
+ 83,
+ 77,
67,
62,
65,
@@ -5557,7 +5589,7 @@
]
},
{
- "id": 169,
+ "id": 171,
"name": "\"lib/serializer\"",
"kind": 1,
"kindString": "Module",
@@ -5567,7 +5599,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts",
"children": [
{
- "id": 170,
+ "id": 172,
"name": "Serializer",
"kind": 128,
"kindString": "Class",
@@ -5576,7 +5608,7 @@
},
"children": [
{
- "id": 171,
+ "id": 173,
"name": "HEADER_LENGTH",
"kind": 1024,
"kindString": "Property",
@@ -5597,7 +5629,7 @@
"defaultValue": "1"
},
{
- "id": 176,
+ "id": 178,
"name": "_binaryDecode",
"kind": 2048,
"kindString": "Method",
@@ -5607,7 +5639,7 @@
},
"signatures": [
{
- "id": 177,
+ "id": 179,
"name": "_binaryDecode",
"kind": 4096,
"kindString": "Call signature",
@@ -5616,7 +5648,7 @@
},
"parameters": [
{
- "id": 178,
+ "id": 180,
"name": "buffer",
"kind": 32768,
"kindString": "Parameter",
@@ -5632,7 +5664,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 179,
+ "id": 181,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5641,7 +5673,7 @@
},
"children": [
{
- "id": 182,
+ "id": 184,
"name": "event",
"kind": 32,
"kindString": "Variable",
@@ -5661,7 +5693,7 @@
}
},
{
- "id": 183,
+ "id": 185,
"name": "payload",
"kind": 32,
"kindString": "Variable",
@@ -5681,7 +5713,7 @@
}
},
{
- "id": 180,
+ "id": 182,
"name": "ref",
"kind": 32,
"kindString": "Variable",
@@ -5701,7 +5733,7 @@
}
},
{
- "id": 181,
+ "id": 183,
"name": "topic",
"kind": 32,
"kindString": "Variable",
@@ -5726,10 +5758,10 @@
"title": "Variables",
"kind": 32,
"children": [
+ 184,
+ 185,
182,
- 183,
- 180,
- 181
+ 183
]
}
]
@@ -5746,7 +5778,7 @@
]
},
{
- "id": 184,
+ "id": 186,
"name": "_decodeBroadcast",
"kind": 2048,
"kindString": "Method",
@@ -5756,7 +5788,7 @@
},
"signatures": [
{
- "id": 185,
+ "id": 187,
"name": "_decodeBroadcast",
"kind": 4096,
"kindString": "Call signature",
@@ -5765,7 +5797,7 @@
},
"parameters": [
{
- "id": 186,
+ "id": 188,
"name": "buffer",
"kind": 32768,
"kindString": "Parameter",
@@ -5778,7 +5810,7 @@
}
},
{
- "id": 187,
+ "id": 189,
"name": "view",
"kind": 32768,
"kindString": "Parameter",
@@ -5791,7 +5823,7 @@
}
},
{
- "id": 188,
+ "id": 190,
"name": "decoder",
"kind": 32768,
"kindString": "Parameter",
@@ -5807,7 +5839,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 189,
+ "id": 191,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5816,7 +5848,7 @@
},
"children": [
{
- "id": 192,
+ "id": 194,
"name": "event",
"kind": 32,
"kindString": "Variable",
@@ -5836,7 +5868,7 @@
}
},
{
- "id": 193,
+ "id": 195,
"name": "payload",
"kind": 32,
"kindString": "Variable",
@@ -5856,7 +5888,7 @@
}
},
{
- "id": 190,
+ "id": 192,
"name": "ref",
"kind": 32,
"kindString": "Variable",
@@ -5876,7 +5908,7 @@
}
},
{
- "id": 191,
+ "id": 193,
"name": "topic",
"kind": 32,
"kindString": "Variable",
@@ -5901,10 +5933,10 @@
"title": "Variables",
"kind": 32,
"children": [
+ 194,
+ 195,
192,
- 193,
- 190,
- 191
+ 193
]
}
],
@@ -5928,7 +5960,7 @@
]
},
{
- "id": 172,
+ "id": 174,
"name": "decode",
"kind": 2048,
"kindString": "Method",
@@ -5937,7 +5969,7 @@
},
"signatures": [
{
- "id": 173,
+ "id": 175,
"name": "decode",
"kind": 4096,
"kindString": "Call signature",
@@ -5946,7 +5978,7 @@
},
"parameters": [
{
- "id": 174,
+ "id": 176,
"name": "rawPayload",
"kind": 32768,
"kindString": "Parameter",
@@ -5968,7 +6000,7 @@
}
},
{
- "id": 175,
+ "id": 177,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -6001,16 +6033,16 @@
"title": "Properties",
"kind": 1024,
"children": [
- 171
+ 173
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 176,
- 184,
- 172
+ 178,
+ 186,
+ 174
]
}
],
@@ -6028,7 +6060,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 170
+ 172
]
}
],
@@ -6340,7 +6372,7 @@
]
},
{
- "id": 327,
+ "id": 329,
"name": "\"lib/transformers\"",
"kind": 1,
"kindString": "Module",
@@ -6350,7 +6382,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts",
"children": [
{
- "id": 328,
+ "id": 330,
"name": "PostgresTypes",
"kind": 4,
"kindString": "Enumeration",
@@ -6362,7 +6394,7 @@
},
"children": [
{
- "id": 329,
+ "id": 331,
"name": "abstime",
"kind": 16,
"kindString": "Enumeration member",
@@ -6379,7 +6411,7 @@
"defaultValue": "\"abstime\""
},
{
- "id": 330,
+ "id": 332,
"name": "bool",
"kind": 16,
"kindString": "Enumeration member",
@@ -6396,7 +6428,7 @@
"defaultValue": "\"bool\""
},
{
- "id": 331,
+ "id": 333,
"name": "date",
"kind": 16,
"kindString": "Enumeration member",
@@ -6413,7 +6445,7 @@
"defaultValue": "\"date\""
},
{
- "id": 332,
+ "id": 334,
"name": "daterange",
"kind": 16,
"kindString": "Enumeration member",
@@ -6430,7 +6462,7 @@
"defaultValue": "\"daterange\""
},
{
- "id": 333,
+ "id": 335,
"name": "float4",
"kind": 16,
"kindString": "Enumeration member",
@@ -6447,7 +6479,7 @@
"defaultValue": "\"float4\""
},
{
- "id": 334,
+ "id": 336,
"name": "float8",
"kind": 16,
"kindString": "Enumeration member",
@@ -6464,7 +6496,7 @@
"defaultValue": "\"float8\""
},
{
- "id": 335,
+ "id": 337,
"name": "int2",
"kind": 16,
"kindString": "Enumeration member",
@@ -6481,7 +6513,7 @@
"defaultValue": "\"int2\""
},
{
- "id": 336,
+ "id": 338,
"name": "int4",
"kind": 16,
"kindString": "Enumeration member",
@@ -6498,7 +6530,7 @@
"defaultValue": "\"int4\""
},
{
- "id": 337,
+ "id": 339,
"name": "int4range",
"kind": 16,
"kindString": "Enumeration member",
@@ -6515,7 +6547,7 @@
"defaultValue": "\"int4range\""
},
{
- "id": 338,
+ "id": 340,
"name": "int8",
"kind": 16,
"kindString": "Enumeration member",
@@ -6532,7 +6564,7 @@
"defaultValue": "\"int8\""
},
{
- "id": 339,
+ "id": 341,
"name": "int8range",
"kind": 16,
"kindString": "Enumeration member",
@@ -6549,7 +6581,7 @@
"defaultValue": "\"int8range\""
},
{
- "id": 340,
+ "id": 342,
"name": "json",
"kind": 16,
"kindString": "Enumeration member",
@@ -6566,7 +6598,7 @@
"defaultValue": "\"json\""
},
{
- "id": 341,
+ "id": 343,
"name": "jsonb",
"kind": 16,
"kindString": "Enumeration member",
@@ -6583,7 +6615,7 @@
"defaultValue": "\"jsonb\""
},
{
- "id": 342,
+ "id": 344,
"name": "money",
"kind": 16,
"kindString": "Enumeration member",
@@ -6600,7 +6632,7 @@
"defaultValue": "\"money\""
},
{
- "id": 343,
+ "id": 345,
"name": "numeric",
"kind": 16,
"kindString": "Enumeration member",
@@ -6617,7 +6649,7 @@
"defaultValue": "\"numeric\""
},
{
- "id": 344,
+ "id": 346,
"name": "oid",
"kind": 16,
"kindString": "Enumeration member",
@@ -6634,7 +6666,7 @@
"defaultValue": "\"oid\""
},
{
- "id": 345,
+ "id": 347,
"name": "reltime",
"kind": 16,
"kindString": "Enumeration member",
@@ -6651,7 +6683,7 @@
"defaultValue": "\"reltime\""
},
{
- "id": 346,
+ "id": 348,
"name": "time",
"kind": 16,
"kindString": "Enumeration member",
@@ -6668,7 +6700,7 @@
"defaultValue": "\"time\""
},
{
- "id": 347,
+ "id": 349,
"name": "timestamp",
"kind": 16,
"kindString": "Enumeration member",
@@ -6685,7 +6717,7 @@
"defaultValue": "\"timestamp\""
},
{
- "id": 348,
+ "id": 350,
"name": "timestamptz",
"kind": 16,
"kindString": "Enumeration member",
@@ -6702,7 +6734,7 @@
"defaultValue": "\"timestamptz\""
},
{
- "id": 349,
+ "id": 351,
"name": "timetz",
"kind": 16,
"kindString": "Enumeration member",
@@ -6719,7 +6751,7 @@
"defaultValue": "\"timetz\""
},
{
- "id": 350,
+ "id": 352,
"name": "tsrange",
"kind": 16,
"kindString": "Enumeration member",
@@ -6736,7 +6768,7 @@
"defaultValue": "\"tsrange\""
},
{
- "id": 351,
+ "id": 353,
"name": "tstzrange",
"kind": 16,
"kindString": "Enumeration member",
@@ -6758,8 +6790,6 @@
"title": "Enumeration members",
"kind": 16,
"children": [
- 329,
- 330,
331,
332,
333,
@@ -6780,7 +6810,9 @@
348,
349,
350,
- 351
+ 351,
+ 352,
+ 353
]
}
],
@@ -6793,7 +6825,7 @@
]
},
{
- "id": 352,
+ "id": 354,
"name": "Column",
"kind": 4194304,
"kindString": "Type alias",
@@ -6808,14 +6840,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 353,
+ "id": 355,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 354,
+ "id": 356,
"name": "flags",
"kind": 32,
"kindString": "Variable",
@@ -6836,7 +6868,7 @@
}
},
{
- "id": 355,
+ "id": 357,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -6854,7 +6886,7 @@
}
},
{
- "id": 356,
+ "id": 358,
"name": "type",
"kind": 32,
"kindString": "Variable",
@@ -6872,7 +6904,7 @@
}
},
{
- "id": 357,
+ "id": 359,
"name": "type_modifier",
"kind": 32,
"kindString": "Variable",
@@ -6895,10 +6927,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 354,
- 355,
356,
- 357
+ 357,
+ 358,
+ 359
]
}
],
@@ -6913,7 +6945,7 @@
}
},
{
- "id": 358,
+ "id": 360,
"name": "Records",
"kind": 4194304,
"kindString": "Type alias",
@@ -6928,21 +6960,21 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 359,
+ "id": 361,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"indexSignature": [
{
- "id": 360,
+ "id": 362,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
"flags": {},
"parameters": [
{
- "id": 361,
+ "id": 363,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6970,7 +7002,7 @@
}
},
{
- "id": 378,
+ "id": 380,
"name": "convertCell",
"kind": 64,
"kindString": "Function",
@@ -6983,7 +7015,7 @@
"tags": [
{
"tag": "example",
- "text": "convertCell('bool', 'true')\n//=> true"
+ "text": "convertCell('bool', 't')\n//=> true"
},
{
"tag": "example",
@@ -6997,7 +7029,7 @@
},
"signatures": [
{
- "id": 379,
+ "id": 381,
"name": "convertCell",
"kind": 4096,
"kindString": "Call signature",
@@ -7009,7 +7041,7 @@
"tags": [
{
"tag": "example",
- "text": "convertCell('bool', 'true')\n//=> true"
+ "text": "convertCell('bool', 't')\n//=> true"
},
{
"tag": "example",
@@ -7023,7 +7055,7 @@
},
"parameters": [
{
- "id": 380,
+ "id": 382,
"name": "type",
"kind": 32768,
"kindString": "Parameter",
@@ -7039,7 +7071,7 @@
}
},
{
- "id": 381,
+ "id": 383,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7070,7 +7102,7 @@
]
},
{
- "id": 362,
+ "id": 364,
"name": "convertChangeData",
"kind": 64,
"kindString": "Function",
@@ -7089,7 +7121,7 @@
},
"signatures": [
{
- "id": 363,
+ "id": 365,
"name": "convertChangeData",
"kind": 4096,
"kindString": "Call signature",
@@ -7107,7 +7139,7 @@
},
"parameters": [
{
- "id": 364,
+ "id": 366,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -7118,13 +7150,13 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 352,
+ "id": 354,
"name": "Column"
}
}
},
{
- "id": 365,
+ "id": 367,
"name": "records",
"kind": 32768,
"kindString": "Parameter",
@@ -7134,12 +7166,12 @@
"comment": {},
"type": {
"type": "reference",
- "id": 358,
+ "id": 360,
"name": "Records"
}
},
{
- "id": 366,
+ "id": 368,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -7152,7 +7184,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 367,
+ "id": 369,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7161,7 +7193,7 @@
},
"children": [
{
- "id": 368,
+ "id": 370,
"name": "skipTypes",
"kind": 32,
"kindString": "Variable",
@@ -7190,7 +7222,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 368
+ 370
]
}
],
@@ -7209,7 +7241,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 369,
+ "id": 371,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7218,7 +7250,7 @@
},
"indexSignature": [
{
- "id": 370,
+ "id": 372,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -7227,7 +7259,7 @@
},
"parameters": [
{
- "id": 371,
+ "id": 373,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -7259,7 +7291,7 @@
]
},
{
- "id": 372,
+ "id": 374,
"name": "convertColumn",
"kind": 64,
"kindString": "Function",
@@ -7273,17 +7305,17 @@
"tags": [
{
"tag": "example",
- "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33"
+ "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'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n"
+ "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n"
}
]
},
"signatures": [
{
- "id": 373,
+ "id": 375,
"name": "convertColumn",
"kind": 4096,
"kindString": "Call signature",
@@ -7296,17 +7328,17 @@
"tags": [
{
"tag": "example",
- "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33"
+ "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'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n"
+ "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n"
}
]
},
"parameters": [
{
- "id": 374,
+ "id": 376,
"name": "columnName",
"kind": 32768,
"kindString": "Parameter",
@@ -7322,7 +7354,7 @@
}
},
{
- "id": 375,
+ "id": 377,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -7333,13 +7365,13 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 352,
+ "id": 354,
"name": "Column"
}
}
},
{
- "id": 376,
+ "id": 378,
"name": "records",
"kind": 32768,
"kindString": "Parameter",
@@ -7351,12 +7383,12 @@
},
"type": {
"type": "reference",
- "id": 358,
+ "id": 360,
"name": "Records"
}
},
{
- "id": 377,
+ "id": 379,
"name": "skipTypes",
"kind": 32768,
"kindString": "Parameter",
@@ -7390,7 +7422,7 @@
]
},
{
- "id": 382,
+ "id": 384,
"name": "noop",
"kind": 64,
"kindString": "Function",
@@ -7399,14 +7431,14 @@
},
"signatures": [
{
- "id": 383,
+ "id": 385,
"name": "noop",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
- "id": 384,
+ "id": 386,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7432,7 +7464,7 @@
]
},
{
- "id": 406,
+ "id": 408,
"name": "toArray",
"kind": 64,
"kindString": "Function",
@@ -7455,7 +7487,7 @@
},
"signatures": [
{
- "id": 407,
+ "id": 409,
"name": "toArray",
"kind": 4096,
"kindString": "Call signature",
@@ -7477,7 +7509,7 @@
},
"parameters": [
{
- "id": 408,
+ "id": 410,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7490,7 +7522,7 @@
}
},
{
- "id": 409,
+ "id": 411,
"name": "type",
"kind": 32768,
"kindString": "Parameter",
@@ -7521,7 +7553,7 @@
]
},
{
- "id": 385,
+ "id": 387,
"name": "toBoolean",
"kind": 64,
"kindString": "Function",
@@ -7531,7 +7563,7 @@
},
"signatures": [
{
- "id": 386,
+ "id": 388,
"name": "toBoolean",
"kind": 4096,
"kindString": "Call signature",
@@ -7540,7 +7572,7 @@
},
"parameters": [
{
- "id": 387,
+ "id": 389,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7581,7 +7613,7 @@
]
},
{
- "id": 388,
+ "id": 390,
"name": "toDate",
"kind": 64,
"kindString": "Function",
@@ -7591,7 +7623,7 @@
},
"signatures": [
{
- "id": 389,
+ "id": 391,
"name": "toDate",
"kind": 4096,
"kindString": "Call signature",
@@ -7600,7 +7632,7 @@
},
"parameters": [
{
- "id": 390,
+ "id": 392,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7628,7 +7660,7 @@
]
},
{
- "id": 391,
+ "id": 393,
"name": "toDateRange",
"kind": 64,
"kindString": "Function",
@@ -7638,7 +7670,7 @@
},
"signatures": [
{
- "id": 392,
+ "id": 394,
"name": "toDateRange",
"kind": 4096,
"kindString": "Call signature",
@@ -7647,7 +7679,7 @@
},
"parameters": [
{
- "id": 393,
+ "id": 395,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7678,7 +7710,7 @@
]
},
{
- "id": 394,
+ "id": 396,
"name": "toFloat",
"kind": 64,
"kindString": "Function",
@@ -7688,7 +7720,7 @@
},
"signatures": [
{
- "id": 395,
+ "id": 397,
"name": "toFloat",
"kind": 4096,
"kindString": "Call signature",
@@ -7697,7 +7729,7 @@
},
"parameters": [
{
- "id": 396,
+ "id": 398,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7725,7 +7757,7 @@
]
},
{
- "id": 397,
+ "id": 399,
"name": "toInt",
"kind": 64,
"kindString": "Function",
@@ -7735,7 +7767,7 @@
},
"signatures": [
{
- "id": 398,
+ "id": 400,
"name": "toInt",
"kind": 4096,
"kindString": "Call signature",
@@ -7744,7 +7776,7 @@
},
"parameters": [
{
- "id": 399,
+ "id": 401,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7772,7 +7804,7 @@
]
},
{
- "id": 400,
+ "id": 402,
"name": "toIntRange",
"kind": 64,
"kindString": "Function",
@@ -7782,7 +7814,7 @@
},
"signatures": [
{
- "id": 401,
+ "id": 403,
"name": "toIntRange",
"kind": 4096,
"kindString": "Call signature",
@@ -7791,7 +7823,7 @@
},
"parameters": [
{
- "id": 402,
+ "id": 404,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7822,7 +7854,7 @@
]
},
{
- "id": 403,
+ "id": 405,
"name": "toJson",
"kind": 64,
"kindString": "Function",
@@ -7832,7 +7864,7 @@
},
"signatures": [
{
- "id": 404,
+ "id": 406,
"name": "toJson",
"kind": 4096,
"kindString": "Call signature",
@@ -7841,7 +7873,7 @@
},
"parameters": [
{
- "id": 405,
+ "id": 407,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7869,7 +7901,7 @@
]
},
{
- "id": 410,
+ "id": 412,
"name": "toTimestampString",
"kind": 64,
"kindString": "Function",
@@ -7888,7 +7920,7 @@
},
"signatures": [
{
- "id": 411,
+ "id": 413,
"name": "toTimestampString",
"kind": 4096,
"kindString": "Call signature",
@@ -7906,7 +7938,7 @@
},
"parameters": [
{
- "id": 412,
+ "id": 414,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7939,34 +7971,34 @@
"title": "Enumerations",
"kind": 4,
"children": [
- 328
+ 330
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 352,
- 358
+ 354,
+ 360
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 378,
- 362,
- 372,
- 382,
- 406,
- 385,
- 388,
- 391,
- 394,
- 397,
- 400,
- 403,
- 410
+ 380,
+ 364,
+ 374,
+ 384,
+ 408,
+ 387,
+ 390,
+ 393,
+ 396,
+ 399,
+ 402,
+ 405,
+ 412
]
}
],
@@ -7984,14 +8016,14 @@
"title": "Modules",
"kind": 1,
"children": [
- 194,
- 90,
- 413,
+ 196,
+ 92,
+ 415,
1,
38,
- 169,
+ 171,
24,
- 327
+ 329
]
}
]
diff --git a/web/spec/supabase.json b/web/spec/supabase.json
index 13acb57dfd6..b432d5c2790 100644
--- a/web/spec/supabase.json
+++ b/web/spec/supabase.json
@@ -6,7 +6,7 @@
"originalName": "",
"children": [
{
- "id": 248,
+ "id": 264,
"name": "\"SupabaseClient\"",
"kind": 1,
"kindString": "Module",
@@ -16,7 +16,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts",
"children": [
{
- "id": 249,
+ "id": 265,
"name": "SupabaseClient",
"kind": 128,
"kindString": "Class",
@@ -29,7 +29,7 @@
},
"children": [
{
- "id": 257,
+ "id": 273,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -41,7 +41,7 @@
},
"signatures": [
{
- "id": 260,
+ "id": 276,
"name": "new SupabaseClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -53,7 +53,7 @@
},
"parameters": [
{
- "id": 261,
+ "id": 277,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -69,7 +69,7 @@
}
},
{
- "id": 262,
+ "id": 278,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -85,7 +85,7 @@
}
},
{
- "id": 263,
+ "id": 279,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -102,7 +102,7 @@
],
"type": {
"type": "reference",
- "id": 249,
+ "id": 265,
"name": "SupabaseClient"
}
}
@@ -116,7 +116,7 @@
]
},
{
- "id": 250,
+ "id": 266,
"name": "auth",
"kind": 1024,
"kindString": "Property",
@@ -140,7 +140,7 @@
}
},
{
- "id": 254,
+ "id": 270,
"name": "authUrl",
"kind": 1024,
"kindString": "Property",
@@ -161,7 +161,7 @@
}
},
{
- "id": 256,
+ "id": 272,
"name": "realtime",
"kind": 1024,
"kindString": "Property",
@@ -182,7 +182,7 @@
}
},
{
- "id": 253,
+ "id": 269,
"name": "realtimeUrl",
"kind": 1024,
"kindString": "Property",
@@ -203,7 +203,7 @@
}
},
{
- "id": 252,
+ "id": 268,
"name": "restUrl",
"kind": 1024,
"kindString": "Property",
@@ -224,7 +224,7 @@
}
},
{
- "id": 251,
+ "id": 267,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -245,7 +245,7 @@
}
},
{
- "id": 255,
+ "id": 271,
"name": "storageUrl",
"kind": 1024,
"kindString": "Property",
@@ -266,7 +266,7 @@
}
},
{
- "id": 259,
+ "id": 275,
"name": "supabaseKey",
"kind": 1024,
"kindString": "Property",
@@ -291,7 +291,7 @@
}
},
{
- "id": 258,
+ "id": 274,
"name": "supabaseUrl",
"kind": 1024,
"kindString": "Property",
@@ -316,7 +316,7 @@
}
},
{
- "id": 264,
+ "id": 280,
"name": "storage",
"kind": 262144,
"kindString": "Accessor",
@@ -328,7 +328,7 @@
},
"getSignature": [
{
- "id": 265,
+ "id": 281,
"name": "__get",
"kind": 524288,
"kindString": "Get signature",
@@ -353,7 +353,7 @@
]
},
{
- "id": 301,
+ "id": 320,
"name": "_closeChannel",
"kind": 2048,
"kindString": "Method",
@@ -363,7 +363,7 @@
},
"signatures": [
{
- "id": 302,
+ "id": 321,
"name": "_closeChannel",
"kind": 4096,
"kindString": "Call signature",
@@ -372,7 +372,7 @@
},
"parameters": [
{
- "id": 303,
+ "id": 322,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -400,13 +400,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 180,
+ "line": 186,
"character": 23
}
]
},
{
- "id": 278,
+ "id": 297,
"name": "_closeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -416,7 +416,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 298,
"name": "_closeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -425,7 +425,7 @@
},
"parameters": [
{
- "id": 280,
+ "id": 299,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -453,13 +453,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 126,
+ "line": 132,
"character": 34
}
]
},
{
- "id": 296,
+ "id": 315,
"name": "_getAuthHeaders",
"kind": 2048,
"kindString": "Method",
@@ -469,7 +469,7 @@
},
"signatures": [
{
- "id": 297,
+ "id": 316,
"name": "_getAuthHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -479,7 +479,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 298,
+ "id": 317,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -488,7 +488,7 @@
},
"indexSignature": [
{
- "id": 299,
+ "id": 318,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -497,7 +497,7 @@
},
"parameters": [
{
- "id": 300,
+ "id": 319,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -519,7 +519,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 172,
+ "line": 178,
"character": 28
}
]
@@ -530,13 +530,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 172,
+ "line": 178,
"character": 25
}
]
},
{
- "id": 294,
+ "id": 313,
"name": "_initPostgRESTClient",
"kind": 2048,
"kindString": "Method",
@@ -546,7 +546,7 @@
},
"signatures": [
{
- "id": 295,
+ "id": 314,
"name": "_initPostgRESTClient",
"kind": 4096,
"kindString": "Call signature",
@@ -562,13 +562,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 165,
+ "line": 171,
"character": 30
}
]
},
{
- "id": 291,
+ "id": 310,
"name": "_initRealtimeClient",
"kind": 2048,
"kindString": "Method",
@@ -578,7 +578,7 @@
},
"signatures": [
{
- "id": 292,
+ "id": 311,
"name": "_initRealtimeClient",
"kind": 4096,
"kindString": "Call signature",
@@ -587,7 +587,7 @@
},
"parameters": [
{
- "id": 293,
+ "id": 312,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -610,13 +610,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 158,
+ "line": 164,
"character": 29
}
]
},
{
- "id": 283,
+ "id": 302,
"name": "_initSupabaseAuthClient",
"kind": 2048,
"kindString": "Method",
@@ -626,7 +626,7 @@
},
"signatures": [
{
- "id": 284,
+ "id": 303,
"name": "_initSupabaseAuthClient",
"kind": 4096,
"kindString": "Call signature",
@@ -635,7 +635,7 @@
},
"parameters": [
{
- "id": 285,
+ "id": 304,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -646,7 +646,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 286,
+ "id": 305,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -655,7 +655,7 @@
},
"children": [
{
- "id": 287,
+ "id": 306,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -665,7 +665,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 140,
+ "line": 146,
"character": 20
}
],
@@ -688,7 +688,7 @@
}
},
{
- "id": 289,
+ "id": 308,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -698,7 +698,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 142,
+ "line": 148,
"character": 22
}
],
@@ -721,7 +721,7 @@
}
},
{
- "id": 290,
+ "id": 309,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -731,7 +731,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 143,
+ "line": 149,
"character": 16
}
],
@@ -750,7 +750,7 @@
}
},
{
- "id": 288,
+ "id": 307,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -760,7 +760,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 141,
+ "line": 147,
"character": 18
}
],
@@ -788,17 +788,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 287,
- 289,
- 290,
- 288
+ 306,
+ 308,
+ 309,
+ 307
]
}
],
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 139,
+ "line": 145,
"character": 34
}
]
@@ -816,13 +816,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 139,
+ "line": 145,
"character": 33
}
]
},
{
- "id": 266,
+ "id": 282,
"name": "from",
"kind": 2048,
"kindString": "Method",
@@ -831,7 +831,7 @@
},
"signatures": [
{
- "id": 267,
+ "id": 283,
"name": "from",
"kind": 4096,
"kindString": "Call signature",
@@ -843,7 +843,7 @@
},
"typeParameter": [
{
- "id": 268,
+ "id": 284,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -854,7 +854,7 @@
],
"parameters": [
{
- "id": 269,
+ "id": 285,
"name": "table",
"kind": 32768,
"kindString": "Parameter",
@@ -872,7 +872,7 @@
],
"type": {
"type": "reference",
- "id": 158,
+ "id": 174,
"typeArguments": [
{
"type": "typeParameter",
@@ -896,7 +896,7 @@
]
},
{
- "id": 281,
+ "id": 300,
"name": "getSubscriptions",
"kind": 2048,
"kindString": "Method",
@@ -905,7 +905,7 @@
},
"signatures": [
{
- "id": 282,
+ "id": 301,
"name": "getSubscriptions",
"kind": 4096,
"kindString": "Call signature",
@@ -927,13 +927,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 135,
+ "line": 141,
"character": 18
}
]
},
{
- "id": 275,
+ "id": 294,
"name": "removeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -942,7 +942,7 @@
},
"signatures": [
{
- "id": 276,
+ "id": 295,
"name": "removeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -954,7 +954,7 @@
},
"parameters": [
{
- "id": 277,
+ "id": 296,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -985,13 +985,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 109,
+ "line": 115,
"character": 20
}
]
},
{
- "id": 270,
+ "id": 286,
"name": "rpc",
"kind": 2048,
"kindString": "Method",
@@ -1000,7 +1000,7 @@
},
"signatures": [
{
- "id": 271,
+ "id": 287,
"name": "rpc",
"kind": 4096,
"kindString": "Call signature",
@@ -1008,11 +1008,11 @@
"isExported": true
},
"comment": {
- "shortText": "Perform a stored procedure call."
+ "shortText": "Perform a function call."
},
"typeParameter": [
{
- "id": 272,
+ "id": 288,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -1023,7 +1023,7 @@
],
"parameters": [
{
- "id": 273,
+ "id": 289,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
@@ -1039,7 +1039,7 @@
}
},
{
- "id": 274,
+ "id": 290,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -1048,7 +1048,7 @@
"isOptional": true
},
"comment": {
- "text": "The parameters to pass to the function call.\n"
+ "text": "The parameters to pass to the function call."
},
"type": {
"type": "union",
@@ -1063,6 +1063,88 @@
}
]
}
+ },
+ {
+ "id": 291,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__2",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 292,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 293,
+ "name": "count",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "Count algorithm to use to count rows in a table.\n\n"
+ },
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 104,
+ "character": 11
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "exact"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "planned"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "estimated"
+ }
+ ]
+ },
+ "defaultValue": "null"
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 293
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/SupabaseClient.ts",
+ "line": 103,
+ "character": 20
+ }
+ ]
+ }
+ },
+ "defaultValue": "{}"
}
],
"type": {
@@ -1080,7 +1162,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 99,
+ "line": 101,
"character": 5
}
]
@@ -1091,45 +1173,45 @@
"title": "Constructors",
"kind": 512,
"children": [
- 257
+ 273
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 250,
- 254,
- 256,
- 253,
- 252,
- 251,
- 255,
- 259,
- 258
+ 266,
+ 270,
+ 272,
+ 269,
+ 268,
+ 267,
+ 271,
+ 275,
+ 274
]
},
{
"title": "Accessors",
"kind": 262144,
"children": [
- 264
+ 280
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 301,
- 278,
- 296,
+ 320,
+ 297,
+ 315,
+ 313,
+ 310,
+ 302,
+ 282,
+ 300,
294,
- 291,
- 283,
- 266,
- 281,
- 275,
- 270
+ 286
]
}
],
@@ -1142,7 +1224,7 @@
]
},
{
- "id": 304,
+ "id": 323,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -1151,7 +1233,7 @@
},
"children": [
{
- "id": 306,
+ "id": 325,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -1170,7 +1252,7 @@
"defaultValue": "true"
},
{
- "id": 308,
+ "id": 327,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -1189,7 +1271,7 @@
"defaultValue": "true"
},
{
- "id": 310,
+ "id": 329,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -1204,7 +1286,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 311,
+ "id": 330,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1214,7 +1296,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 309,
+ "id": 328,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -1233,7 +1315,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 307,
+ "id": 326,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -1252,7 +1334,7 @@
"defaultValue": "true"
},
{
- "id": 305,
+ "id": 324,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -1276,12 +1358,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 306,
- 308,
- 310,
- 309,
- 307,
- 305
+ 325,
+ 327,
+ 329,
+ 328,
+ 326,
+ 324
]
}
],
@@ -1303,14 +1385,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 249
+ 265
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 304
+ 323
]
}
],
@@ -1323,7 +1405,7 @@
]
},
{
- "id": 312,
+ "id": 331,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -1333,7 +1415,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts",
"children": [
{
- "id": 313,
+ "id": 332,
"name": "createClient",
"kind": 64,
"kindString": "Function",
@@ -1346,7 +1428,7 @@
},
"signatures": [
{
- "id": 314,
+ "id": 333,
"name": "createClient",
"kind": 4096,
"kindString": "Call signature",
@@ -1358,7 +1440,7 @@
},
"parameters": [
{
- "id": 315,
+ "id": 334,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -1371,7 +1453,7 @@
}
},
{
- "id": 316,
+ "id": 335,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -1384,7 +1466,7 @@
}
},
{
- "id": 317,
+ "id": 336,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1401,7 +1483,7 @@
],
"type": {
"type": "reference",
- "id": 249,
+ "id": 265,
"name": "SupabaseClient"
}
}
@@ -1420,7 +1502,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 313
+ 332
]
}
],
@@ -2013,7 +2095,7 @@
}
},
{
- "id": 109,
+ "id": 125,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -2022,7 +2104,7 @@
},
"signatures": [
{
- "id": 110,
+ "id": 126,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -2034,7 +2116,7 @@
},
"parameters": [
{
- "id": 111,
+ "id": 127,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2052,7 +2134,7 @@
{
"type": "reflection",
"declaration": {
- "id": 112,
+ "id": 128,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2061,7 +2143,7 @@
},
"children": [
{
- "id": 113,
+ "id": 129,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -2075,7 +2157,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 122,
+ "line": 137,
"character": 20
}
],
@@ -2103,7 +2185,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 113
+ 129
]
}
]
@@ -2119,7 +2201,7 @@
{
"type": "reflection",
"declaration": {
- "id": 114,
+ "id": 130,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2128,7 +2210,7 @@
},
"children": [
{
- "id": 115,
+ "id": 131,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2138,7 +2220,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 124,
+ "line": 139,
"character": 12
}
],
@@ -2157,7 +2239,7 @@
}
},
{
- "id": 116,
+ "id": 132,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2167,7 +2249,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 125,
+ "line": 140,
"character": 13
}
],
@@ -2191,15 +2273,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 115,
- 116
+ 131,
+ 132
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 123,
+ "line": 138,
"character": 16
}
]
@@ -2210,7 +2292,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 109,
+ "id": 125,
"name": "GoTrueClient.getSessionFromUrl"
}
}
@@ -2218,18 +2300,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 121,
+ "line": 136,
"character": 21
}
],
"inheritedFrom": {
"type": "reference",
- "id": 109,
+ "id": 125,
"name": "GoTrueClient.getSessionFromUrl"
}
},
{
- "id": 121,
+ "id": 137,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -2238,7 +2320,7 @@
},
"signatures": [
{
- "id": 122,
+ "id": 138,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -2251,7 +2333,7 @@
},
"parameters": [
{
- "id": 123,
+ "id": 139,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -2261,7 +2343,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 124,
+ "id": 140,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2270,7 +2352,7 @@
},
"signatures": [
{
- "id": 125,
+ "id": 141,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -2279,7 +2361,7 @@
},
"parameters": [
{
- "id": 126,
+ "id": 142,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -2292,7 +2374,7 @@
}
},
{
- "id": 127,
+ "id": 143,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -2323,7 +2405,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 140,
+ "line": 155,
"character": 31
}
]
@@ -2334,7 +2416,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 128,
+ "id": 144,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2343,7 +2425,7 @@
},
"children": [
{
- "id": 129,
+ "id": 145,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2353,7 +2435,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 141,
+ "line": 156,
"character": 12
}
],
@@ -2372,7 +2454,7 @@
}
},
{
- "id": 130,
+ "id": 146,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2382,7 +2464,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 142,
+ "line": 157,
"character": 13
}
],
@@ -2406,15 +2488,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 129,
- 130
+ 145,
+ 146
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 140,
+ "line": 155,
"character": 91
}
]
@@ -2422,7 +2504,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 121,
+ "id": 137,
"name": "GoTrueClient.onAuthStateChange"
}
}
@@ -2430,18 +2512,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 140,
+ "line": 155,
"character": 21
}
],
"inheritedFrom": {
"type": "reference",
- "id": 121,
+ "id": 137,
"name": "GoTrueClient.onAuthStateChange"
}
},
{
- "id": 87,
+ "id": 103,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -2450,7 +2532,7 @@
},
"signatures": [
{
- "id": 88,
+ "id": 104,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -2466,7 +2548,7 @@
{
"type": "reflection",
"declaration": {
- "id": 89,
+ "id": 105,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2475,7 +2557,7 @@
},
"children": [
{
- "id": 90,
+ "id": 106,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2485,7 +2567,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 92,
+ "line": 107,
"character": 12
}
],
@@ -2504,7 +2586,7 @@
}
},
{
- "id": 92,
+ "id": 108,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2514,7 +2596,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 94,
+ "line": 109,
"character": 13
}
],
@@ -2533,7 +2615,7 @@
}
},
{
- "id": 91,
+ "id": 107,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2543,7 +2625,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 93,
+ "line": 108,
"character": 12
}
],
@@ -2567,16 +2649,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 90,
- 92,
- 91
+ 106,
+ 108,
+ 107
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 91,
+ "line": 106,
"character": 30
}
]
@@ -2587,7 +2669,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 87,
+ "id": 103,
"name": "GoTrueClient.refreshSession"
}
}
@@ -2595,18 +2677,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 91,
+ "line": 106,
"character": 18
}
],
"inheritedFrom": {
"type": "reference",
- "id": 87,
+ "id": 103,
"name": "GoTrueClient.refreshSession"
}
},
{
- "id": 85,
+ "id": 101,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -2615,7 +2697,7 @@
},
"signatures": [
{
- "id": 86,
+ "id": 102,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -2640,7 +2722,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 85,
+ "id": 101,
"name": "GoTrueClient.session"
}
}
@@ -2648,18 +2730,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 87,
+ "line": 102,
"character": 11
}
],
"inheritedFrom": {
"type": "reference",
- "id": 85,
+ "id": 101,
"name": "GoTrueClient.session"
}
},
{
- "id": 106,
+ "id": 122,
"name": "setAuth",
"kind": 2048,
"kindString": "Method",
@@ -2668,7 +2750,7 @@
},
"signatures": [
{
- "id": 107,
+ "id": 123,
"name": "setAuth",
"kind": 4096,
"kindString": "Call signature",
@@ -2680,7 +2762,7 @@
},
"parameters": [
{
- "id": 108,
+ "id": 124,
"name": "access_token",
"kind": 32768,
"kindString": "Parameter",
@@ -2702,7 +2784,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 106,
+ "id": 122,
"name": "GoTrueClient.setAuth"
}
}
@@ -2710,18 +2792,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 116,
+ "line": 131,
"character": 11
}
],
"inheritedFrom": {
"type": "reference",
- "id": 106,
+ "id": 122,
"name": "GoTrueClient.setAuth"
}
},
{
- "id": 100,
+ "id": 116,
"name": "setSession",
"kind": 2048,
"kindString": "Method",
@@ -2730,7 +2812,7 @@
},
"signatures": [
{
- "id": 101,
+ "id": 117,
"name": "setSession",
"kind": 4096,
"kindString": "Call signature",
@@ -2742,7 +2824,7 @@
},
"parameters": [
{
- "id": 102,
+ "id": 118,
"name": "refresh_token",
"kind": 32768,
"kindString": "Parameter",
@@ -2764,7 +2846,7 @@
{
"type": "reflection",
"declaration": {
- "id": 103,
+ "id": 119,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2773,7 +2855,7 @@
},
"children": [
{
- "id": 105,
+ "id": 121,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2783,7 +2865,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 110,
+ "line": 125,
"character": 13
}
],
@@ -2802,7 +2884,7 @@
}
},
{
- "id": 104,
+ "id": 120,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -2812,7 +2894,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 109,
+ "line": 124,
"character": 15
}
],
@@ -2836,15 +2918,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 105,
- 104
+ 121,
+ 120
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 108,
+ "line": 123,
"character": 47
}
]
@@ -2855,7 +2937,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 100,
+ "id": 116,
"name": "GoTrueClient.setSession"
}
}
@@ -2863,18 +2945,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 108,
+ "line": 123,
"character": 14
}
],
"inheritedFrom": {
"type": "reference",
- "id": 100,
+ "id": 116,
"name": "GoTrueClient.setSession"
}
},
{
- "id": 64,
+ "id": 65,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -2883,7 +2965,7 @@
},
"signatures": [
{
- "id": 65,
+ "id": 66,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -2895,7 +2977,7 @@
},
"parameters": [
{
- "id": 66,
+ "id": 67,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -2906,7 +2988,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 67,
+ "id": 68,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2915,7 +2997,7 @@
},
"children": [
{
- "id": 68,
+ "id": 69,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -2928,7 +3010,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
+ "line": 68,
"character": 18
}
],
@@ -2947,7 +3029,7 @@
}
},
{
- "id": 69,
+ "id": 71,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -2960,8 +3042,8 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
- "character": 28
+ "line": 68,
+ "character": 35
}
],
"type": {
@@ -2979,7 +3061,36 @@
}
},
{
- "id": 71,
+ "id": 70,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 68,
+ "character": 25
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ },
+ {
+ "id": 73,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -2992,8 +3103,8 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
- "character": 52
+ "line": 68,
+ "character": 59
}
],
"type": {
@@ -3038,12 +3149,16 @@
{
"type": "stringLiteral",
"value": "discord"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "twitch"
}
]
}
},
{
- "id": 70,
+ "id": 72,
"name": "refreshToken",
"kind": 32,
"kindString": "Variable",
@@ -3056,8 +3171,8 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
- "character": 42
+ "line": 68,
+ "character": 49
}
],
"type": {
@@ -3080,17 +3195,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 68,
69,
71,
- 70
+ 70,
+ 73,
+ 72
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
+ "line": 68,
"character": 11
}
]
@@ -3098,7 +3214,7 @@
}
},
{
- "id": 72,
+ "id": 74,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3116,7 +3232,7 @@
{
"type": "reflection",
"declaration": {
- "id": 73,
+ "id": 75,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3125,7 +3241,7 @@
},
"children": [
{
- "id": 74,
+ "id": 76,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -3136,7 +3252,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 68,
+ "line": 69,
"character": 18
}
],
@@ -3155,7 +3271,7 @@
}
},
{
- "id": 75,
+ "id": 77,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -3166,7 +3282,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 69,
+ "line": 70,
"character": 14
}
],
@@ -3190,8 +3306,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 74,
- 75
+ 76,
+ 77
]
}
]
@@ -3207,7 +3323,7 @@
{
"type": "reflection",
"declaration": {
- "id": 76,
+ "id": 78,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3216,7 +3332,7 @@
},
"children": [
{
- "id": 82,
+ "id": 84,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3226,7 +3342,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 76,
+ "line": 77,
"character": 12
}
],
@@ -3245,7 +3361,7 @@
}
},
{
- "id": 81,
+ "id": 83,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3255,7 +3371,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 75,
+ "line": 76,
"character": 13
}
],
@@ -3274,7 +3390,7 @@
}
},
{
- "id": 79,
+ "id": 81,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -3285,7 +3401,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 73,
+ "line": 74,
"character": 16
}
],
@@ -3295,7 +3411,7 @@
}
},
{
- "id": 77,
+ "id": 79,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3305,7 +3421,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 71,
+ "line": 72,
"character": 15
}
],
@@ -3324,7 +3440,7 @@
}
},
{
- "id": 80,
+ "id": 82,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -3335,7 +3451,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 74,
+ "line": 75,
"character": 11
}
],
@@ -3354,7 +3470,7 @@
}
},
{
- "id": 78,
+ "id": 80,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3364,7 +3480,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 72,
+ "line": 73,
"character": 12
}
],
@@ -3388,19 +3504,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 82,
+ 84,
+ 83,
81,
79,
- 77,
- 80,
- 78
+ 82,
+ 80
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 70,
+ "line": 71,
"character": 16
}
]
@@ -3411,7 +3527,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 64,
+ "id": 65,
"name": "GoTrueClient.signIn"
}
}
@@ -3419,18 +3535,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
+ "line": 68,
"character": 10
}
],
"inheritedFrom": {
"type": "reference",
- "id": 64,
+ "id": 65,
"name": "GoTrueClient.signIn"
}
},
{
- "id": 117,
+ "id": 133,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -3439,7 +3555,7 @@
},
"signatures": [
{
- "id": 118,
+ "id": 134,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -3456,7 +3572,7 @@
{
"type": "reflection",
"declaration": {
- "id": 119,
+ "id": 135,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3465,7 +3581,7 @@
},
"children": [
{
- "id": 120,
+ "id": 136,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3475,7 +3591,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 134,
+ "line": 149,
"character": 13
}
],
@@ -3499,14 +3615,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 120
+ 136
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 133,
+ "line": 148,
"character": 23
}
]
@@ -3517,7 +3633,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 117,
+ "id": 133,
"name": "GoTrueClient.signOut"
}
}
@@ -3525,13 +3641,13 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 133,
+ "line": 148,
"character": 11
}
],
"inheritedFrom": {
"type": "reference",
- "id": 117,
+ "id": 133,
"name": "GoTrueClient.signOut"
}
},
@@ -3590,7 +3706,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 49,
+ "line": 50,
"character": 18
}
],
@@ -3622,7 +3738,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 49,
+ "line": 50,
"character": 28
}
],
@@ -3639,6 +3755,38 @@
}
]
}
+ },
+ {
+ "id": 56,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 50,
+ "character": 35
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
}
],
"groups": [
@@ -3647,14 +3795,15 @@
"kind": 32,
"children": [
54,
- 55
+ 55,
+ 56
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 49,
+ "line": 50,
"character": 11
}
]
@@ -3662,7 +3811,7 @@
}
},
{
- "id": 56,
+ "id": 57,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3680,7 +3829,7 @@
{
"type": "reflection",
"declaration": {
- "id": 57,
+ "id": 58,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3689,7 +3838,7 @@
},
"children": [
{
- "id": 58,
+ "id": 59,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -3700,7 +3849,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 50,
+ "line": 51,
"character": 18
}
],
@@ -3724,7 +3873,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 58
+ 59
]
}
]
@@ -3740,7 +3889,7 @@
{
"type": "reflection",
"declaration": {
- "id": 59,
+ "id": 60,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3749,7 +3898,7 @@
},
"children": [
{
- "id": 63,
+ "id": 64,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3759,7 +3908,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 55,
+ "line": 56,
"character": 12
}
],
@@ -3782,7 +3931,7 @@
}
},
{
- "id": 62,
+ "id": 63,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3792,7 +3941,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 54,
+ "line": 55,
"character": 13
}
],
@@ -3811,7 +3960,7 @@
}
},
{
- "id": 61,
+ "id": 62,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3821,7 +3970,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 53,
+ "line": 54,
"character": 15
}
],
@@ -3840,7 +3989,7 @@
}
},
{
- "id": 60,
+ "id": 61,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3850,7 +3999,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 52,
+ "line": 53,
"character": 12
}
],
@@ -3874,17 +4023,17 @@
"title": "Variables",
"kind": 32,
"children": [
+ 64,
63,
62,
- 61,
- 60
+ 61
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 51,
+ "line": 52,
"character": 16
}
]
@@ -3903,7 +4052,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 49,
+ "line": 50,
"character": 10
}
],
@@ -3914,7 +4063,7 @@
}
},
{
- "id": 93,
+ "id": 109,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -3923,7 +4072,7 @@
},
"signatures": [
{
- "id": 94,
+ "id": 110,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -3935,7 +4084,7 @@
},
"parameters": [
{
- "id": 95,
+ "id": 111,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -3954,7 +4103,7 @@
{
"type": "reflection",
"declaration": {
- "id": 96,
+ "id": 112,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3963,7 +4112,7 @@
},
"children": [
{
- "id": 97,
+ "id": 113,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3973,7 +4122,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 100,
+ "line": 115,
"character": 12
}
],
@@ -3992,7 +4141,7 @@
}
},
{
- "id": 99,
+ "id": 115,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4002,7 +4151,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 102,
+ "line": 117,
"character": 13
}
],
@@ -4021,7 +4170,7 @@
}
},
{
- "id": 98,
+ "id": 114,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4031,7 +4180,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 101,
+ "line": 116,
"character": 12
}
],
@@ -4055,16 +4204,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 97,
- 99,
- 98
+ 113,
+ 115,
+ 114
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 99,
+ "line": 114,
"character": 48
}
]
@@ -4075,7 +4224,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 93,
+ "id": 109,
"name": "GoTrueClient.update"
}
}
@@ -4083,18 +4232,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 99,
+ "line": 114,
"character": 10
}
],
"inheritedFrom": {
"type": "reference",
- "id": 93,
+ "id": 109,
"name": "GoTrueClient.update"
}
},
{
- "id": 83,
+ "id": 99,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -4103,7 +4252,7 @@
},
"signatures": [
{
- "id": 84,
+ "id": 100,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -4129,7 +4278,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 83,
+ "id": 99,
"name": "GoTrueClient.user"
}
}
@@ -4137,15 +4286,375 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 83,
+ "line": 98,
"character": 8
}
],
"inheritedFrom": {
"type": "reference",
- "id": 83,
+ "id": 99,
"name": "GoTrueClient.user"
}
+ },
+ {
+ "id": 85,
+ "name": "verifyOTP",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 86,
+ "name": "verifyOTP",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Log in a user given a User supplied OTP received via mobile."
+ },
+ "parameters": [
+ {
+ "id": 87,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__0",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 88,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 89,
+ "name": "phone",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's phone number."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 85,
+ "character": 21
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ },
+ {
+ "id": 90,
+ "name": "token",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The user's password."
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 85,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 89,
+ 90
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 85,
+ "character": 14
+ }
+ ]
+ }
+ }
+ },
+ {
+ "id": 91,
+ "name": "options",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 92,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 93,
+ "name": "redirectTo",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true,
+ "isOptional": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 86,
+ "character": 18
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 93
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 94,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 98,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 91,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Session"
+ },
+ {
+ "type": "reference",
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 97,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 90,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 96,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 89,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 95,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 88,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 98,
+ 97,
+ 96,
+ 95
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 87,
+ "character": 16
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 85,
+ "name": "GoTrueClient.verifyOTP"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 85,
+ "character": 13
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 85,
+ "name": "GoTrueClient.verifyOTP"
+ }
}
],
"groups": [
@@ -4174,17 +4683,18 @@
"title": "Methods",
"kind": 2048,
"children": [
- 109,
- 121,
- 87,
- 85,
- 106,
- 100,
- 64,
- 117,
+ 125,
+ 137,
+ 103,
+ 101,
+ 122,
+ 116,
+ 65,
+ 133,
50,
- 93,
- 83
+ 109,
+ 99,
+ 85
]
}
],
@@ -4221,7 +4731,7 @@
]
},
{
- "id": 157,
+ "id": 173,
"name": "\"lib/SupabaseQueryBuilder\"",
"kind": 1,
"kindString": "Module",
@@ -4231,7 +4741,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts",
"children": [
{
- "id": 158,
+ "id": 174,
"name": "SupabaseQueryBuilder",
"kind": 128,
"kindString": "Class",
@@ -4240,7 +4750,7 @@
},
"typeParameter": [
{
- "id": 159,
+ "id": 175,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -4251,7 +4761,7 @@
],
"children": [
{
- "id": 162,
+ "id": 178,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -4260,7 +4770,7 @@
},
"signatures": [
{
- "id": 163,
+ "id": 179,
"name": "new SupabaseQueryBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -4269,7 +4779,7 @@
},
"parameters": [
{
- "id": 164,
+ "id": 180,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -4282,7 +4792,7 @@
}
},
{
- "id": 165,
+ "id": 181,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -4293,7 +4803,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 166,
+ "id": 182,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4302,7 +4812,7 @@
},
"children": [
{
- "id": 167,
+ "id": 183,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -4319,7 +4829,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 168,
+ "id": 184,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4328,7 +4838,7 @@
},
"indexSignature": [
{
- "id": 169,
+ "id": 185,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -4337,7 +4847,7 @@
},
"parameters": [
{
- "id": 170,
+ "id": 186,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -4360,7 +4870,7 @@
}
},
{
- "id": 172,
+ "id": 188,
"name": "realtime",
"kind": 32,
"kindString": "Variable",
@@ -4380,7 +4890,7 @@
}
},
{
- "id": 171,
+ "id": 187,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -4400,7 +4910,7 @@
}
},
{
- "id": 173,
+ "id": 189,
"name": "table",
"kind": 32,
"kindString": "Variable",
@@ -4425,10 +4935,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 167,
- 172,
- 171,
- 173
+ 183,
+ 188,
+ 187,
+ 189
]
}
],
@@ -4445,7 +4955,7 @@
],
"type": {
"type": "reference",
- "id": 158,
+ "id": 174,
"name": "SupabaseQueryBuilder"
},
"overwrites": {
@@ -4467,7 +4977,7 @@
}
},
{
- "id": 161,
+ "id": 177,
"name": "_realtime",
"kind": 1024,
"kindString": "Property",
@@ -4488,7 +4998,7 @@
}
},
{
- "id": 160,
+ "id": 176,
"name": "_subscription",
"kind": 1024,
"kindString": "Property",
@@ -4505,12 +5015,12 @@
],
"type": {
"type": "reference",
- "id": 132,
+ "id": 148,
"name": "SupabaseRealtimeClient"
}
},
{
- "id": 232,
+ "id": 248,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -4556,12 +5066,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 232,
+ "id": 248,
"name": "PostgrestBuilder.body"
}
},
{
- "id": 227,
+ "id": 243,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -4579,7 +5089,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 228,
+ "id": 244,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4588,7 +5098,7 @@
},
"indexSignature": [
{
- "id": 229,
+ "id": 245,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -4597,7 +5107,7 @@
},
"parameters": [
{
- "id": 230,
+ "id": 246,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -4627,12 +5137,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 227,
+ "id": 243,
"name": "PostgrestBuilder.headers"
}
},
{
- "id": 225,
+ "id": 241,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -4674,12 +5184,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 225,
+ "id": 241,
"name": "PostgrestBuilder.method"
}
},
{
- "id": 231,
+ "id": 247,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -4710,12 +5220,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 231,
+ "id": 247,
"name": "PostgrestBuilder.schema"
}
},
{
- "id": 233,
+ "id": 249,
"name": "shouldThrowOnError",
"kind": 1024,
"kindString": "Property",
@@ -4750,12 +5260,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 233,
+ "id": 249,
"name": "PostgrestBuilder.shouldThrowOnError"
}
},
{
- "id": 226,
+ "id": 242,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -4776,12 +5286,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 226,
+ "id": 242,
"name": "PostgrestBuilder.url"
}
},
{
- "id": 219,
+ "id": 235,
"name": "delete",
"kind": 2048,
"kindString": "Method",
@@ -4790,7 +5300,7 @@
},
"signatures": [
{
- "id": 220,
+ "id": 236,
"name": "delete",
"kind": 4096,
"kindString": "Call signature",
@@ -4802,7 +5312,7 @@
},
"parameters": [
{
- "id": 221,
+ "id": 237,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -4814,7 +5324,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 222,
+ "id": 238,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4823,7 +5333,7 @@
},
"children": [
{
- "id": 224,
+ "id": 240,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -4867,7 +5377,7 @@
}
},
{
- "id": 223,
+ "id": 239,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -4908,8 +5418,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 224,
- 223
+ 240,
+ 239
]
}
],
@@ -4936,7 +5446,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 219,
+ "id": 235,
"name": "PostgrestQueryBuilder.delete"
}
}
@@ -4950,12 +5460,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 219,
+ "id": 235,
"name": "PostgrestQueryBuilder.delete"
}
},
{
- "id": 188,
+ "id": 204,
"name": "insert",
"kind": 2048,
"kindString": "Method",
@@ -4964,7 +5474,7 @@
},
"signatures": [
{
- "id": 189,
+ "id": 205,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
@@ -4976,7 +5486,7 @@
},
"parameters": [
{
- "id": 190,
+ "id": 206,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -5016,7 +5526,7 @@
}
},
{
- "id": 191,
+ "id": 207,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -5034,7 +5544,7 @@
{
"type": "reflection",
"declaration": {
- "id": 192,
+ "id": 208,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5043,7 +5553,7 @@
},
"children": [
{
- "id": 194,
+ "id": 210,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -5081,7 +5591,7 @@
}
},
{
- "id": 193,
+ "id": 209,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -5116,8 +5626,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 194,
- 193
+ 210,
+ 209
]
}
]
@@ -5139,12 +5649,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 188,
+ "id": 204,
"name": "PostgrestQueryBuilder.insert"
}
},
{
- "id": 195,
+ "id": 211,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
@@ -5161,7 +5671,7 @@
},
"parameters": [
{
- "id": 196,
+ "id": 212,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -5198,7 +5708,7 @@
}
},
{
- "id": 197,
+ "id": 213,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -5216,7 +5726,7 @@
{
"type": "reflection",
"declaration": {
- "id": 198,
+ "id": 214,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5225,7 +5735,7 @@
},
"children": [
{
- "id": 202,
+ "id": 218,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -5263,7 +5773,7 @@
}
},
{
- "id": 200,
+ "id": 216,
"name": "onConflict",
"kind": 32,
"kindString": "Variable",
@@ -5293,7 +5803,7 @@
}
},
{
- "id": 201,
+ "id": 217,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -5323,7 +5833,7 @@
}
},
{
- "id": 199,
+ "id": 215,
"name": "upsert",
"kind": 32,
"kindString": "Variable",
@@ -5362,10 +5872,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 202,
- 200,
- 201,
- 199
+ 218,
+ 216,
+ 217,
+ 215
]
}
]
@@ -5387,7 +5897,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 188,
+ "id": 204,
"name": "PostgrestQueryBuilder.insert"
}
}
@@ -5406,12 +5916,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 188,
+ "id": 204,
"name": "PostgrestQueryBuilder.insert"
}
},
{
- "id": 174,
+ "id": 190,
"name": "on",
"kind": 2048,
"kindString": "Method",
@@ -5420,7 +5930,7 @@
},
"signatures": [
{
- "id": 175,
+ "id": 191,
"name": "on",
"kind": 4096,
"kindString": "Call signature",
@@ -5432,7 +5942,7 @@
},
"parameters": [
{
- "id": 176,
+ "id": 192,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -5449,7 +5959,7 @@
}
},
{
- "id": 177,
+ "id": 193,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -5462,7 +5972,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 178,
+ "id": 194,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5471,7 +5981,7 @@
},
"signatures": [
{
- "id": 179,
+ "id": 195,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5480,7 +5990,7 @@
},
"parameters": [
{
- "id": 180,
+ "id": 196,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -5519,7 +6029,7 @@
],
"type": {
"type": "reference",
- "id": 132,
+ "id": 148,
"name": "SupabaseRealtimeClient"
}
}
@@ -5533,7 +6043,7 @@
]
},
{
- "id": 181,
+ "id": 197,
"name": "select",
"kind": 2048,
"kindString": "Method",
@@ -5542,7 +6052,7 @@
},
"signatures": [
{
- "id": 182,
+ "id": 198,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
@@ -5554,7 +6064,7 @@
},
"parameters": [
{
- "id": 183,
+ "id": 199,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -5580,7 +6090,7 @@
}
},
{
- "id": 184,
+ "id": 200,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5592,7 +6102,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 185,
+ "id": 201,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5601,7 +6111,7 @@
},
"children": [
{
- "id": 187,
+ "id": 203,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -5645,7 +6155,7 @@
}
},
{
- "id": 186,
+ "id": 202,
"name": "head",
"kind": 32,
"kindString": "Variable",
@@ -5686,8 +6196,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 187,
- 186
+ 203,
+ 202
]
}
],
@@ -5714,7 +6224,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 181,
+ "id": 197,
"name": "PostgrestQueryBuilder.select"
}
}
@@ -5728,12 +6238,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 181,
+ "id": 197,
"name": "PostgrestQueryBuilder.select"
}
},
{
- "id": 236,
+ "id": 252,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -5742,7 +6252,7 @@
},
"signatures": [
{
- "id": 237,
+ "id": 253,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -5751,7 +6261,7 @@
},
"typeParameter": [
{
- "id": 238,
+ "id": 254,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -5760,7 +6270,7 @@
}
},
{
- "id": 239,
+ "id": 255,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -5771,7 +6281,7 @@
],
"parameters": [
{
- "id": 240,
+ "id": 256,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -5785,7 +6295,7 @@
{
"type": "reflection",
"declaration": {
- "id": 241,
+ "id": 257,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5794,7 +6304,7 @@
},
"signatures": [
{
- "id": 242,
+ "id": 258,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5803,7 +6313,7 @@
},
"parameters": [
{
- "id": 243,
+ "id": 259,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -5884,7 +6394,7 @@
}
},
{
- "id": 244,
+ "id": 260,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -5898,7 +6408,7 @@
{
"type": "reflection",
"declaration": {
- "id": 245,
+ "id": 261,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5907,7 +6417,7 @@
},
"signatures": [
{
- "id": 246,
+ "id": 262,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5916,7 +6426,7 @@
},
"parameters": [
{
- "id": 247,
+ "id": 263,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -6014,7 +6524,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 236,
+ "id": 252,
"name": "PostgrestBuilder.then"
}
}
@@ -6028,12 +6538,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 236,
+ "id": 252,
"name": "PostgrestBuilder.then"
}
},
{
- "id": 234,
+ "id": 250,
"name": "throwOnError",
"kind": 2048,
"kindString": "Method",
@@ -6042,7 +6552,7 @@
},
"signatures": [
{
- "id": 235,
+ "id": 251,
"name": "throwOnError",
"kind": 4096,
"kindString": "Call signature",
@@ -6065,7 +6575,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 234,
+ "id": 250,
"name": "PostgrestBuilder.throwOnError"
}
}
@@ -6079,12 +6589,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 234,
+ "id": 250,
"name": "PostgrestBuilder.throwOnError"
}
},
{
- "id": 212,
+ "id": 228,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -6093,7 +6603,7 @@
},
"signatures": [
{
- "id": 213,
+ "id": 229,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -6105,7 +6615,7 @@
},
"parameters": [
{
- "id": 214,
+ "id": 230,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -6127,7 +6637,7 @@
}
},
{
- "id": 215,
+ "id": 231,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -6139,7 +6649,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 216,
+ "id": 232,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6148,7 +6658,7 @@
},
"children": [
{
- "id": 218,
+ "id": 234,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -6192,7 +6702,7 @@
}
},
{
- "id": 217,
+ "id": 233,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -6233,8 +6743,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 218,
- 217
+ 234,
+ 233
]
}
],
@@ -6261,7 +6771,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 212,
+ "id": 228,
"name": "PostgrestQueryBuilder.update"
}
}
@@ -6275,12 +6785,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 212,
+ "id": 228,
"name": "PostgrestQueryBuilder.update"
}
},
{
- "id": 203,
+ "id": 219,
"name": "upsert",
"kind": 2048,
"kindString": "Method",
@@ -6289,7 +6799,7 @@
},
"signatures": [
{
- "id": 204,
+ "id": 220,
"name": "upsert",
"kind": 4096,
"kindString": "Call signature",
@@ -6301,7 +6811,7 @@
},
"parameters": [
{
- "id": 205,
+ "id": 221,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -6341,7 +6851,7 @@
}
},
{
- "id": 206,
+ "id": 222,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -6353,7 +6863,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 207,
+ "id": 223,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6362,7 +6872,7 @@
},
"children": [
{
- "id": 210,
+ "id": 226,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -6406,7 +6916,7 @@
}
},
{
- "id": 211,
+ "id": 227,
"name": "ignoreDuplicates",
"kind": 32,
"kindString": "Variable",
@@ -6442,7 +6952,7 @@
}
},
{
- "id": 208,
+ "id": 224,
"name": "onConflict",
"kind": 32,
"kindString": "Variable",
@@ -6474,7 +6984,7 @@
}
},
{
- "id": 209,
+ "id": 225,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -6515,10 +7025,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 210,
- 211,
- 208,
- 209
+ 226,
+ 227,
+ 224,
+ 225
]
}
],
@@ -6545,7 +7055,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 203,
+ "id": 219,
"name": "PostgrestQueryBuilder.upsert"
}
}
@@ -6559,7 +7069,7 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 203,
+ "id": 219,
"name": "PostgrestQueryBuilder.upsert"
}
}
@@ -6569,35 +7079,35 @@
"title": "Constructors",
"kind": 512,
"children": [
- 162
+ 178
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 161,
- 160,
- 232,
- 227,
- 225,
- 231,
- 233,
- 226
+ 177,
+ 176,
+ 248,
+ 243,
+ 241,
+ 247,
+ 249,
+ 242
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 219,
- 188,
- 174,
- 181,
- 236,
- 234,
- 212,
- 203
+ 235,
+ 204,
+ 190,
+ 197,
+ 252,
+ 250,
+ 228,
+ 219
]
}
],
@@ -6645,7 +7155,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 158
+ 174
]
}
],
@@ -6658,7 +7168,7 @@
]
},
{
- "id": 131,
+ "id": 147,
"name": "\"lib/SupabaseRealtimeClient\"",
"kind": 1,
"kindString": "Module",
@@ -6668,7 +7178,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts",
"children": [
{
- "id": 132,
+ "id": 148,
"name": "SupabaseRealtimeClient",
"kind": 128,
"kindString": "Class",
@@ -6677,7 +7187,7 @@
},
"children": [
{
- "id": 134,
+ "id": 150,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -6686,7 +7196,7 @@
},
"signatures": [
{
- "id": 135,
+ "id": 151,
"name": "new SupabaseRealtimeClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -6695,7 +7205,7 @@
},
"parameters": [
{
- "id": 136,
+ "id": 152,
"name": "socket",
"kind": 32768,
"kindString": "Parameter",
@@ -6708,7 +7218,7 @@
}
},
{
- "id": 137,
+ "id": 153,
"name": "schema",
"kind": 32768,
"kindString": "Parameter",
@@ -6721,7 +7231,7 @@
}
},
{
- "id": 138,
+ "id": 154,
"name": "tableName",
"kind": 32768,
"kindString": "Parameter",
@@ -6736,7 +7246,7 @@
],
"type": {
"type": "reference",
- "id": 132,
+ "id": 148,
"name": "SupabaseRealtimeClient"
}
}
@@ -6750,7 +7260,7 @@
]
},
{
- "id": 133,
+ "id": 149,
"name": "subscription",
"kind": 1024,
"kindString": "Property",
@@ -6770,7 +7280,7 @@
}
},
{
- "id": 139,
+ "id": 155,
"name": "getPayloadRecords",
"kind": 2048,
"kindString": "Method",
@@ -6780,7 +7290,7 @@
},
"signatures": [
{
- "id": 140,
+ "id": 156,
"name": "getPayloadRecords",
"kind": 4096,
"kindString": "Call signature",
@@ -6789,7 +7299,7 @@
},
"parameters": [
{
- "id": 141,
+ "id": 157,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -6805,7 +7315,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 142,
+ "id": 158,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6814,7 +7324,7 @@
},
"children": [
{
- "id": 143,
+ "id": 159,
"name": "new",
"kind": 32,
"kindString": "Variable",
@@ -6831,7 +7341,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 144,
+ "id": 160,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6842,7 +7352,7 @@
}
},
{
- "id": 145,
+ "id": 161,
"name": "old",
"kind": 32,
"kindString": "Variable",
@@ -6859,7 +7369,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 146,
+ "id": 162,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6875,8 +7385,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 143,
- 145
+ 159,
+ 161
]
}
]
@@ -6893,7 +7403,7 @@
]
},
{
- "id": 147,
+ "id": 163,
"name": "on",
"kind": 2048,
"kindString": "Method",
@@ -6902,7 +7412,7 @@
},
"signatures": [
{
- "id": 148,
+ "id": 164,
"name": "on",
"kind": 4096,
"kindString": "Call signature",
@@ -6914,7 +7424,7 @@
},
"parameters": [
{
- "id": 149,
+ "id": 165,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -6931,7 +7441,7 @@
}
},
{
- "id": 150,
+ "id": 166,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -6944,7 +7454,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 151,
+ "id": 167,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6953,7 +7463,7 @@
},
"signatures": [
{
- "id": 152,
+ "id": 168,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -6962,7 +7472,7 @@
},
"parameters": [
{
- "id": 153,
+ "id": 169,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -7014,7 +7524,7 @@
]
},
{
- "id": 154,
+ "id": 170,
"name": "subscribe",
"kind": 2048,
"kindString": "Method",
@@ -7023,7 +7533,7 @@
},
"signatures": [
{
- "id": 155,
+ "id": 171,
"name": "subscribe",
"kind": 4096,
"kindString": "Call signature",
@@ -7035,7 +7545,7 @@
},
"parameters": [
{
- "id": 156,
+ "id": 172,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -7069,23 +7579,23 @@
"title": "Constructors",
"kind": 512,
"children": [
- 134
+ 150
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 133
+ 149
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 139,
- 147,
- 154
+ 155,
+ 163,
+ 170
]
}
],
@@ -7103,7 +7613,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 132
+ 148
]
}
],
@@ -7173,7 +7683,7 @@
]
},
{
- "id": 318,
+ "id": 337,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -7183,7 +7693,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts",
"children": [
{
- "id": 319,
+ "id": 338,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -7192,7 +7702,7 @@
},
"signatures": [
{
- "id": 320,
+ "id": 339,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -7219,7 +7729,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 319
+ 338
]
}
],
@@ -7820,13 +8330,13 @@
"title": "Modules",
"kind": 1,
"children": [
- 248,
- 312,
+ 264,
+ 331,
27,
- 157,
- 131,
+ 173,
+ 147,
1,
- 318,
+ 337,
4
]
}
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index 3c4d7d99598..7566a184662 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -718,17 +718,17 @@ pages:
```
rpc():
- title: 'Stored Procedures: rpc()'
+ title: 'Postgres functions: rpc()'
description: |
- You can call stored procedures as a "Remote Procedure Call".
+ You can call Postgres functions as a "Remote Procedure Call".
That's a fancy way of saying that you can put some logic into your database then call it from anywhere.
It's especially useful when the logic rarely changes - like password resets and updates.
$ref: '@supabase/postgrest-js."PostgrestClient".PostgrestClient.rpc'
examples:
- - name: Call a stored procedure
+ - name: Call a Postgres function
isSpotlight: true
- description: This is an example invoking a stored procedure.
+ description: This is an example invoking a Postgres function.
js: |
```js
const { data, error } = await supabase
@@ -749,7 +749,7 @@ pages:
```
- name: With filters
description: |
- Stored procedures that return tables can also be combined with
+ Postgres functions that return tables can also be combined with
[Modifiers](/docs/reference/javascript/using-modifiers) and
[Filters](/docs/reference/javascript/using-filters).
js: |
@@ -1171,7 +1171,7 @@ pages:
description: |
Modifiers can be used on `select()` queries.
- If a Stored Procedure returns a table response, you can also apply modifiers to the `rpc()` function.
+ If a Postgres function returns a table response, you can also apply modifiers to the `rpc()` function.
limit():
$ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.limit'
@@ -1247,7 +1247,7 @@ pages:
description: |
Filters can be used on `select()`, `update()`, and `delete()` queries.
- If a Stored Procedure returns a table response, you can also apply filters.
+ If a Postgres function returns a table response, you can also apply filters.
### Applying Filters
@@ -1308,7 +1308,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.filter('name', 'eq', 'Paris')
@@ -1384,7 +1384,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities)
.not('name', 'eq', 'Paris')
@@ -1421,7 +1421,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.match({name: 'Beijing', country_id: 156})
@@ -1458,7 +1458,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.eq('name', 'San Francisco')
@@ -1495,7 +1495,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.neq('name', 'Lagos')
@@ -1532,7 +1532,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.gt('country_id', 250)
@@ -1569,7 +1569,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.gte('country_id', 250)
@@ -1606,7 +1606,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.lt('country_id', 250)
@@ -1643,7 +1643,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.lte('country_id', 250)
@@ -1680,7 +1680,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.like('name', '%la%')
@@ -1717,7 +1717,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.ilike('name', '%la%')
@@ -1754,7 +1754,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.is('name', null)
@@ -1791,7 +1791,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.in('name', ['Rio de Janeiro', 'San Francisco'])
@@ -1828,7 +1828,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_countries')
.contains('main_exports', ['oil'])
@@ -1865,7 +1865,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_countries')
.containedBy('main_exports', ['cars', 'food', 'machine'])
@@ -1902,7 +1902,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_countries')
.rangeLt('population_range_millions', [150, 250])
@@ -1939,7 +1939,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_countries')
.rangeGt('population_range_millions', [150, 250])
@@ -1976,7 +1976,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_countries')
.rangeGte('population_range_millions', [150, 250])
@@ -2013,7 +2013,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_countries')
.rangeLte('population_range_millions', [150, 250])
@@ -2050,7 +2050,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_countries')
.rangeAdjacent('population_range_millions', [70, 185])
@@ -2087,7 +2087,7 @@ pages:
- name: With `rpc()`
js: |
```js
- // Only valid if the Stored Procedure returns a table type.
+ // Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_countries')
.overlaps('main_exports', ['computers', 'minerals'])