From e3079dcaeb231b965867fc06a64c30d813f09d66 Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Wed, 1 Dec 2021 19:42:14 +0800 Subject: [PATCH 1/6] docs: add maybeSingle to js modifiers --- web/spec/supabase.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index 6f2056cc3a7..6d6f723bab2 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -173,6 +173,7 @@ info: - order() - range() - single() + - maybeSingle() - name: 'Filters' items: - Using Filters @@ -1600,9 +1601,24 @@ pages: const { data, error } = await supabase .from('cities') .select('name, country_id') + .limit(1) .single() ``` + maybeSingle(): + $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.maybeSingle' + examples: + - name: With `select()` + isSpotlight: true + js: | + ```js + const { data, error } = await supabase + .from('cities') + .select('name, country_id') + .eq('name', 'Singapore') + .maybeSingle() + ``` + Using Filters: description: | Filters can be used on `select()`, `update()`, and `delete()` queries. From 82cdb82351b8fbe99bad686129c09c24c00ff1ed Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Wed, 1 Dec 2021 21:19:54 +0800 Subject: [PATCH 2/6] docs: update signUp & add getUser --- web/sidebar_spec_supabase.js | 2 +- web/spec/combined.json | 4427 +++++++++++++++++++--------------- web/spec/gotrue.json | 2546 ++++++++++--------- web/spec/realtime.json | 1541 ++++++------ web/spec/storage.json | 8 +- web/spec/supabase.json | 340 ++- web/spec/supabase.yml | 23 + 7 files changed, 4968 insertions(+), 3919 deletions(-) diff --git a/web/sidebar_spec_supabase.js b/web/sidebar_spec_supabase.js index 4637c61e7db..2ea0db35246 100644 --- a/web/sidebar_spec_supabase.js +++ b/web/sidebar_spec_supabase.js @@ -39,7 +39,7 @@ module.exports = { { type: 'category', label: 'Modifiers', - items: ['reference/javascript/using-modifiers', 'reference/javascript/limit', 'reference/javascript/order', 'reference/javascript/range', 'reference/javascript/single'], + items: ['reference/javascript/using-modifiers', 'reference/javascript/limit', 'reference/javascript/order', 'reference/javascript/range', 'reference/javascript/single', 'reference/javascript/maybesingle'], collapsed: true, }, { diff --git a/web/spec/combined.json b/web/spec/combined.json index fe7d28e3745..623bf28e29e 100644 --- a/web/spec/combined.json +++ b/web/spec/combined.json @@ -32,7 +32,7 @@ }, "children": [ { - "id": 307, + "id": 311, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -44,7 +44,7 @@ }, "signatures": [ { - "id": 310, + "id": 314, "name": "new SupabaseClient", "kind": 16384, "kindString": "Constructor signature", @@ -56,7 +56,7 @@ }, "parameters": [ { - "id": 311, + "id": 315, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -72,7 +72,7 @@ } }, { - "id": 312, + "id": 316, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -88,7 +88,7 @@ } }, { - "id": 313, + "id": 317, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -113,8 +113,8 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 35, - "character": 25 + "line": 38, + "character": 3 } ] }, @@ -186,6 +186,72 @@ "name": "Fetch" } }, + { + "id": 307, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 36, + "character": 19 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 308, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 309, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 310, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 36, + "character": 20 + } + ] + } + } + }, { "id": 305, "name": "realtime", @@ -292,7 +358,7 @@ } }, { - "id": 309, + "id": 313, "name": "supabaseKey", "kind": 1024, "kindString": "Property", @@ -307,7 +373,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 51, + "line": 54, "character": 25 } ], @@ -317,7 +383,7 @@ } }, { - "id": 308, + "id": 312, "name": "supabaseUrl", "kind": 1024, "kindString": "Property", @@ -332,7 +398,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 50, + "line": 53, "character": 25 } ], @@ -342,7 +408,7 @@ } }, { - "id": 314, + "id": 318, "name": "storage", "kind": 262144, "kindString": "Accessor", @@ -354,7 +420,7 @@ }, "getSignature": [ { - "id": 315, + "id": 319, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -373,13 +439,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 80, + "line": 83, "character": 13 } ] }, { - "id": 359, + "id": 364, "name": "_closeChannel", "kind": 2048, "kindString": "Method", @@ -389,7 +455,7 @@ }, "signatures": [ { - "id": 360, + "id": 365, "name": "_closeChannel", "kind": 4096, "kindString": "Call signature", @@ -398,7 +464,7 @@ }, "parameters": [ { - "id": 361, + "id": 366, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -426,13 +492,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 201, + "line": 205, "character": 23 } ] }, { - "id": 332, + "id": 336, "name": "_closeSubscription", "kind": 2048, "kindString": "Method", @@ -442,7 +508,7 @@ }, "signatures": [ { - "id": 333, + "id": 337, "name": "_closeSubscription", "kind": 4096, "kindString": "Call signature", @@ -451,7 +517,7 @@ }, "parameters": [ { - "id": 334, + "id": 338, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -479,13 +545,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 143, + "line": 146, "character": 34 } ] }, { - "id": 354, + "id": 359, "name": "_getAuthHeaders", "kind": 2048, "kindString": "Method", @@ -495,7 +561,7 @@ }, "signatures": [ { - "id": 355, + "id": 360, "name": "_getAuthHeaders", "kind": 4096, "kindString": "Call signature", @@ -505,7 +571,7 @@ "type": { "type": "reflection", "declaration": { - "id": 356, + "id": 361, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -514,7 +580,7 @@ }, "indexSignature": [ { - "id": 357, + "id": 362, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -523,7 +589,7 @@ }, "parameters": [ { - "id": 358, + "id": 363, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -545,7 +611,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 193, + "line": 197, "character": 28 } ] @@ -556,13 +622,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 193, + "line": 197, "character": 25 } ] }, { - "id": 352, + "id": 357, "name": "_initPostgRESTClient", "kind": 2048, "kindString": "Method", @@ -572,7 +638,7 @@ }, "signatures": [ { - "id": 353, + "id": 358, "name": "_initPostgRESTClient", "kind": 4096, "kindString": "Call signature", @@ -588,13 +654,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 185, + "line": 189, "character": 30 } ] }, { - "id": 349, + "id": 354, "name": "_initRealtimeClient", "kind": 2048, "kindString": "Method", @@ -604,7 +670,7 @@ }, "signatures": [ { - "id": 350, + "id": 355, "name": "_initRealtimeClient", "kind": 4096, "kindString": "Call signature", @@ -613,7 +679,7 @@ }, "parameters": [ { - "id": 351, + "id": 356, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -636,13 +702,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 178, + "line": 182, "character": 29 } ] }, { - "id": 337, + "id": 341, "name": "_initSupabaseAuthClient", "kind": 2048, "kindString": "Method", @@ -652,7 +718,7 @@ }, "signatures": [ { - "id": 338, + "id": 342, "name": "_initSupabaseAuthClient", "kind": 4096, "kindString": "Call signature", @@ -661,7 +727,7 @@ }, "parameters": [ { - "id": 339, + "id": 343, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -672,7 +738,7 @@ "type": { "type": "reflection", "declaration": { - "id": 340, + "id": 344, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -681,7 +747,7 @@ }, "children": [ { - "id": 341, + "id": 345, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -691,7 +757,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 157, + "line": 160, "character": 20 } ], @@ -714,7 +780,7 @@ } }, { - "id": 343, + "id": 347, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -724,7 +790,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 159, + "line": 162, "character": 22 } ], @@ -747,7 +813,37 @@ } }, { - "id": 345, + "id": 353, + "name": "fetch", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 165, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "id": 220, + "name": "fetch" + } + ] + } + }, + { + "id": 349, "name": "headers", "kind": 32, "kindString": "Variable", @@ -757,7 +853,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 161, + "line": 164, "character": 11 } ], @@ -771,7 +867,7 @@ { "type": "reflection", "declaration": { - "id": 346, + "id": 350, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -780,7 +876,7 @@ }, "indexSignature": [ { - "id": 347, + "id": 351, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -789,7 +885,7 @@ }, "parameters": [ { - "id": 348, + "id": 352, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -814,7 +910,7 @@ } }, { - "id": 344, + "id": 348, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -824,7 +920,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 160, + "line": 163, "character": 16 } ], @@ -872,7 +968,7 @@ } }, { - "id": 342, + "id": 346, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -882,7 +978,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 158, + "line": 161, "character": 18 } ], @@ -910,18 +1006,19 @@ "title": "Variables", "kind": 32, "children": [ - 341, - 343, 345, - 344, - 342 + 347, + 353, + 349, + 348, + 346 ] } ], "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 156, + "line": 159, "character": 34 } ] @@ -939,13 +1036,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 156, + "line": 159, "character": 33 } ] }, { - "id": 316, + "id": 320, "name": "from", "kind": 2048, "kindString": "Method", @@ -954,7 +1051,7 @@ }, "signatures": [ { - "id": 317, + "id": 321, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -966,7 +1063,7 @@ }, "typeParameter": [ { - "id": 318, + "id": 322, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -977,7 +1074,7 @@ ], "parameters": [ { - "id": 319, + "id": 323, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -1013,13 +1110,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 89, + "line": 92, "character": 6 } ] }, { - "id": 335, + "id": 339, "name": "getSubscriptions", "kind": 2048, "kindString": "Method", @@ -1028,7 +1125,7 @@ }, "signatures": [ { - "id": 336, + "id": 340, "name": "getSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -1050,13 +1147,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 152, + "line": 155, "character": 18 } ] }, { - "id": 329, + "id": 333, "name": "removeSubscription", "kind": 2048, "kindString": "Method", @@ -1065,7 +1162,7 @@ }, "signatures": [ { - "id": 330, + "id": 334, "name": "removeSubscription", "kind": 4096, "kindString": "Call signature", @@ -1077,7 +1174,7 @@ }, "parameters": [ { - "id": 331, + "id": 335, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -1108,13 +1205,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 126, + "line": 129, "character": 20 } ] }, { - "id": 320, + "id": 324, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -1123,7 +1220,7 @@ }, "signatures": [ { - "id": 321, + "id": 325, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -1135,7 +1232,7 @@ }, "typeParameter": [ { - "id": 322, + "id": 326, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -1146,7 +1243,7 @@ ], "parameters": [ { - "id": 323, + "id": 327, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -1162,7 +1259,7 @@ } }, { - "id": 324, + "id": 328, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -1188,7 +1285,7 @@ } }, { - "id": 325, + "id": 329, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -1199,7 +1296,7 @@ "type": { "type": "reflection", "declaration": { - "id": 326, + "id": 330, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1208,7 +1305,7 @@ }, "children": [ { - "id": 328, + "id": 332, "name": "count", "kind": 32, "kindString": "Variable", @@ -1221,7 +1318,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 114, + "line": 117, "character": 11 } ], @@ -1249,7 +1346,7 @@ "defaultValue": "null" }, { - "id": 327, + "id": 331, "name": "head", "kind": 32, "kindString": "Variable", @@ -1262,7 +1359,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 113, + "line": 116, "character": 10 } ], @@ -1278,15 +1375,15 @@ "title": "Variables", "kind": 32, "children": [ - 328, - 327 + 332, + 331 ] } ], "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 111, + "line": 114, "character": 20 } ] @@ -1310,7 +1407,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 109, + "line": 112, "character": 5 } ] @@ -1321,7 +1418,7 @@ "title": "Constructors", "kind": 512, "children": [ - 307 + 311 ] }, { @@ -1331,36 +1428,37 @@ 299, 303, 306, + 307, 305, 302, 301, 300, 304, - 309, - 308 + 313, + 312 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 314 + 318 ] }, { "title": "Methods", "kind": 2048, "children": [ + 364, + 336, 359, - 332, + 357, 354, - 352, - 349, - 337, - 316, - 335, - 329, - 320 + 341, + 320, + 339, + 333, + 324 ] } ], @@ -1373,7 +1471,7 @@ ] }, { - "id": 362, + "id": 367, "name": "DEFAULT_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -1382,7 +1480,7 @@ }, "children": [ { - "id": 364, + "id": 369, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -1401,7 +1499,7 @@ "defaultValue": "true" }, { - "id": 366, + "id": 371, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -1420,7 +1518,7 @@ "defaultValue": "true" }, { - "id": 367, + "id": 372, "name": "headers", "kind": 32, "kindString": "Variable", @@ -1435,14 +1533,14 @@ "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 369, + "id": 374, "name": "X-Client-Info", "kind": 32, "kindString": "Variable", @@ -1466,7 +1564,7 @@ "title": "Variables", "kind": 32, "children": [ - 369 + 374 ] } ] @@ -1475,7 +1573,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 365, + "id": 370, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -1494,7 +1592,7 @@ "defaultValue": "true" }, { - "id": 363, + "id": 368, "name": "schema", "kind": 32, "kindString": "Variable", @@ -1518,11 +1616,11 @@ "title": "Variables", "kind": 32, "children": [ - 364, - 366, - 367, - 365, - 363 + 369, + 371, + 372, + 370, + 368 ] } ], @@ -1551,7 +1649,7 @@ "title": "Object literals", "kind": 2097152, "children": [ - 362 + 367 ] } ], @@ -1564,7 +1662,7 @@ ] }, { - "id": 370, + "id": 375, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -1574,7 +1672,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts", "children": [ { - "id": 371, + "id": 376, "name": "createClient", "kind": 64, "kindString": "Function", @@ -1587,7 +1685,7 @@ }, "signatures": [ { - "id": 372, + "id": 377, "name": "createClient", "kind": 4096, "kindString": "Call signature", @@ -1599,7 +1697,7 @@ }, "parameters": [ { - "id": 373, + "id": 378, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -1612,7 +1710,7 @@ } }, { - "id": 374, + "id": 379, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -1625,7 +1723,7 @@ } }, { - "id": 375, + "id": 380, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1661,7 +1759,7 @@ "title": "Functions", "kind": 64, "children": [ - 371 + 376 ] } ], @@ -9274,7 +9372,7 @@ "kind": 1, "children": [ 297, - 370, + 375, 62, 203, 173, @@ -9310,7 +9408,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 20, + "line": 16, "character": 2 } ], @@ -9348,13 +9446,13 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 30, + "line": 26, "character": 4 } ], "type": { "type": "reference", - "id": 439, + "id": 455, "name": "CookieOptions" } }, @@ -9369,7 +9467,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 31, + "line": 27, "character": 4 } ], @@ -9440,7 +9538,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 27, + "line": 23, "character": 4 } ], @@ -9487,7 +9585,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 26, + "line": 22, "character": 4 } ], @@ -9532,13 +9630,13 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 17, + "line": 13, "character": 12 } ], "type": { "type": "reference", - "id": 439, + "id": 455, "name": "CookieOptions" } }, @@ -9554,7 +9652,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 18, + "line": 14, "character": 12 } ], @@ -9625,7 +9723,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 14, + "line": 10, "character": 12 } ], @@ -9674,7 +9772,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 13, + "line": 9, "character": 12 } ], @@ -9694,7 +9792,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 337, + "line": 333, "character": 10 } ], @@ -9746,7 +9844,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 47, + "line": 43, "character": 8 } ], @@ -9773,7 +9871,7 @@ }, "type": { "type": "reference", - "id": 426, + "id": 442, "name": "UserAttributes" } } @@ -9802,7 +9900,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 49, + "line": 45, "character": 15 } ], @@ -9820,12 +9918,13 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 49, + "line": 45, "character": 27 } ], "type": { "type": "reference", + "id": 394, "name": "ApiError" } } @@ -9860,13 +9959,13 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 49, + "line": 45, "character": 49 } ], "type": { "type": "reference", - "id": 401, + "id": 416, "name": "User" } }, @@ -9879,7 +9978,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 49, + "line": 45, "character": 61 } ], @@ -9918,7 +10017,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 428, + "line": 424, "character": 8 } ], @@ -9984,7 +10083,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 431, + "line": 427, "character": 34 } ], @@ -9997,7 +10096,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -10012,7 +10111,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 431, + "line": 427, "character": 53 } ], @@ -10025,6 +10124,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -10039,7 +10139,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 431, + "line": 427, "character": 15 } ], @@ -10052,7 +10152,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -10087,7 +10187,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 531, + "line": 527, "character": 8 } ], @@ -10173,7 +10273,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 536, + "line": 532, "character": 6 } ], @@ -10193,7 +10293,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 535, + "line": 531, "character": 6 } ], @@ -10213,7 +10313,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 537, + "line": 533, "character": 6 } ], @@ -10260,7 +10360,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 539, + "line": 535, "character": 15 } ], @@ -10273,12 +10373,12 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -10293,7 +10393,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 539, + "line": 535, "character": 44 } ], @@ -10306,6 +10406,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -10339,7 +10440,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 367, + "line": 363, "character": 2 } ], @@ -10365,7 +10466,7 @@ }, "type": { "type": "reference", - "id": 391, + "id": 392, "name": "Provider" } }, @@ -10395,7 +10496,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 370, + "line": 366, "character": 6 } ], @@ -10415,7 +10516,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 371, + "line": 367, "character": 6 } ], @@ -10455,7 +10556,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 388, + "line": 384, "character": 8 } ], @@ -10506,7 +10607,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 390, + "line": 386, "character": 34 } ], @@ -10519,7 +10620,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -10534,7 +10635,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 390, + "line": 386, "character": 53 } ], @@ -10547,6 +10648,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -10561,7 +10663,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 390, + "line": 386, "character": 15 } ], @@ -10574,7 +10676,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -10609,7 +10711,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 499, + "line": 495, "character": 8 } ], @@ -10657,7 +10759,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 502, + "line": 498, "character": 4 } ], @@ -10670,7 +10772,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -10685,7 +10787,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 503, + "line": 499, "character": 4 } ], @@ -10698,6 +10800,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -10712,7 +10815,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 500, + "line": 496, "character": 4 } ], @@ -10739,7 +10842,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 501, + "line": 497, "character": 4 } ], @@ -10752,7 +10855,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -10788,7 +10891,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 278, + "line": 274, "character": 8 } ], @@ -10843,7 +10946,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 282, + "line": 278, "character": 6 } ], @@ -10863,7 +10966,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 281, + "line": 277, "character": 6 } ], @@ -10909,7 +11012,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 284, + "line": 280, "character": 15 } ], @@ -10922,7 +11025,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -10937,7 +11040,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 284, + "line": 280, "character": 34 } ], @@ -10950,6 +11053,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -10983,7 +11087,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 65, + "line": 61, "character": 8 } ], @@ -11022,7 +11126,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 65, + "line": 61, "character": 31 } ], @@ -11040,12 +11144,13 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 65, + "line": 61, "character": 43 } ], "type": { "type": "reference", + "id": 394, "name": "ApiError" } } @@ -11080,7 +11185,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 65, + "line": 61, "character": 65 } ], @@ -11088,7 +11193,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 401, + "id": 416, "name": "User" } } @@ -11102,7 +11207,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 65, + "line": 61, "character": 79 } ], @@ -11141,7 +11246,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 451, + "line": 447, "character": 8 } ], @@ -11192,7 +11297,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 453, + "line": 449, "character": 15 } ], @@ -11205,7 +11310,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -11220,7 +11325,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 453, + "line": 449, "character": 37 } ], @@ -11233,6 +11338,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -11266,7 +11372,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 308, + "line": 304, "character": 8 } ], @@ -11321,7 +11427,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 311, + "line": 307, "character": 6 } ], @@ -11366,7 +11472,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 313, + "line": 309, "character": 15 } ], @@ -11399,7 +11505,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 313, + "line": 309, "character": 32 } ], @@ -11412,6 +11518,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -11445,7 +11552,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 207, + "line": 203, "character": 8 } ], @@ -11500,7 +11607,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 210, + "line": 206, "character": 6 } ], @@ -11545,7 +11652,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 212, + "line": 208, "character": 15 } ], @@ -11578,7 +11685,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 212, + "line": 208, "character": 32 } ], @@ -11591,6 +11698,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -11624,7 +11732,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 235, + "line": 231, "character": 8 } ], @@ -11675,7 +11783,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 235, + "line": 231, "character": 48 } ], @@ -11708,7 +11816,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 235, + "line": 231, "character": 65 } ], @@ -11721,6 +11829,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -11754,7 +11863,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 473, + "line": 469, "character": 2 } ], @@ -11808,7 +11917,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 120, + "line": 116, "character": 8 } ], @@ -11877,7 +11986,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 124, + "line": 120, "character": 6 } ], @@ -11922,7 +12031,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 126, + "line": 122, "character": 15 } ], @@ -11935,7 +12044,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -11950,7 +12059,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 126, + "line": 122, "character": 37 } ], @@ -11963,6 +12072,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -11996,7 +12106,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 181, + "line": 177, "character": 8 } ], @@ -12061,7 +12171,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 184, + "line": 180, "character": 15 } ], @@ -12074,7 +12184,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -12089,7 +12199,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 184, + "line": 180, "character": 37 } ], @@ -12102,6 +12212,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -12135,7 +12246,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 347, + "line": 343, "character": 8 } ], @@ -12186,7 +12297,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 347, + "line": 343, "character": 40 } ], @@ -12199,6 +12310,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -12231,7 +12343,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 86, + "line": 82, "character": 8 } ], @@ -12301,7 +12413,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 91, + "line": 87, "character": 6 } ], @@ -12321,7 +12433,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 90, + "line": 86, "character": 6 } ], @@ -12367,7 +12479,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 93, + "line": 89, "character": 15 } ], @@ -12380,12 +12492,12 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -12400,7 +12512,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 93, + "line": 89, "character": 44 } ], @@ -12413,6 +12525,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -12446,7 +12559,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 153, + "line": 149, "character": 8 } ], @@ -12515,7 +12628,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 157, + "line": 153, "character": 6 } ], @@ -12560,7 +12673,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 159, + "line": 155, "character": 15 } ], @@ -12573,12 +12686,12 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -12593,7 +12706,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 159, + "line": 155, "character": 44 } ], @@ -12606,6 +12719,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -12639,7 +12753,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 406, + "line": 402, "character": 8 } ], @@ -12679,7 +12793,7 @@ }, "type": { "type": "reference", - "id": 426, + "id": 442, "name": "UserAttributes" } } @@ -12705,7 +12819,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 409, + "line": 405, "character": 34 } ], @@ -12718,7 +12832,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -12733,7 +12847,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 409, + "line": 405, "character": 53 } ], @@ -12746,6 +12860,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -12760,7 +12875,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 409, + "line": 405, "character": 15 } ], @@ -12773,7 +12888,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -12808,7 +12923,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 251, + "line": 247, "character": 8 } ], @@ -12877,7 +12992,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 255, + "line": 251, "character": 6 } ], @@ -12922,7 +13037,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 257, + "line": 253, "character": 15 } ], @@ -12935,12 +13050,12 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -12955,7 +13070,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 257, + "line": 253, "character": 44 } ], @@ -12968,6 +13083,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -13042,7 +13158,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 12, + "line": 8, "character": 21 } ] @@ -13063,7 +13179,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 71, + "line": 76, "character": 2 } ], @@ -13107,7 +13223,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 75, + "line": 80, "character": 4 } ], @@ -13117,7 +13233,7 @@ } }, { - "id": 213, + "id": 214, "name": "cookieOptions", "kind": 1024, "kindString": "Property", @@ -13128,13 +13244,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 78, + "line": 84, "character": 4 } ], "type": { "type": "reference", - "id": 439, + "id": 455, "name": "CookieOptions" } }, @@ -13152,7 +13268,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 74, + "line": 79, "character": 4 } ], @@ -13162,7 +13278,7 @@ } }, { - "id": 214, + "id": 215, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -13172,21 +13288,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 79, + "line": 85, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 215, + "id": 216, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 216, + "id": 217, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -13196,7 +13312,7 @@ }, "parameters": [ { - "id": 217, + "id": 218, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -13207,7 +13323,7 @@ } }, { - "id": 218, + "id": 219, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -13249,7 +13365,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 73, + "line": 78, "character": 4 } ], @@ -13295,11 +13411,13 @@ "flags": { "isOptional": true }, - "comment": {}, + "comment": { + "shortText": "Provide your own local storage implementation to use instead of the browser's local storage." + }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 77, + "line": 82, "character": 4 } ], @@ -13337,6 +13455,29 @@ "name": "PromisifyMethods" } }, + { + "id": 213, + "name": "multiTab", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Set to \"false\" if you want to disable multi-tab/window events." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 83, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { "id": 211, "name": "persistSession", @@ -13351,7 +13492,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 76, + "line": 81, "character": 4 } ], @@ -13374,7 +13515,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 72, + "line": 77, "character": 4 } ], @@ -13390,11 +13531,12 @@ "kind": 1024, "children": [ 210, - 213, - 209, 214, + 209, + 215, 205, 212, + 213, 211, 204 ] @@ -13413,7 +13555,7 @@ ] }, { - "id": 219, + "id": 220, "name": "api", "kind": 1024, "kindString": "Property", @@ -13424,7 +13566,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 44, + "line": 47, "character": 2 } ], @@ -13435,7 +13577,7 @@ } }, { - "id": 222, + "id": 223, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -13445,7 +13587,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 54, + "line": 57, "character": 12 } ], @@ -13455,7 +13597,7 @@ } }, { - "id": 221, + "id": 222, "name": "currentSession", "kind": 1024, "kindString": "Property", @@ -13468,7 +13610,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 52, + "line": 55, "character": 12 } ], @@ -13481,14 +13623,14 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] } }, { - "id": 220, + "id": 221, "name": "currentUser", "kind": 1024, "kindString": "Property", @@ -13501,7 +13643,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 48, + "line": 51, "character": 12 } ], @@ -13514,14 +13656,14 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] } }, { - "id": 224, + "id": 225, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -13531,7 +13673,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 56, + "line": 59, "character": 12 } ], @@ -13570,8 +13712,8 @@ } }, { - "id": 223, - "name": "persistSession", + "id": 226, + "name": "multiTab", "kind": 1024, "kindString": "Property", "flags": { @@ -13580,7 +13722,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 55, + "line": 60, "character": 12 } ], @@ -13590,7 +13732,27 @@ } }, { - "id": 226, + "id": 224, + "name": "persistSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 58, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 228, "name": "refreshTokenTimer", "kind": 1024, "kindString": "Property", @@ -13601,7 +13763,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 58, + "line": 62, "character": 12 } ], @@ -13611,7 +13773,7 @@ } }, { - "id": 225, + "id": 227, "name": "stateChangeEmitters", "kind": 1024, "kindString": "Property", @@ -13621,7 +13783,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 57, + "line": 61, "character": 12 } ], @@ -13634,7 +13796,7 @@ }, { "type": "reference", - "id": 431, + "id": 447, "name": "Subscription" } ], @@ -13643,7 +13805,7 @@ "defaultValue": "..." }, { - "id": 368, + "id": 367, "name": "_callRefreshToken", "kind": 2048, "kindString": "Method", @@ -13653,20 +13815,20 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 613, + "line": 618, "character": 16 } ], "signatures": [ { - "id": 369, + "id": 368, "name": "_callRefreshToken", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 369, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -13696,26 +13858,26 @@ { "type": "reflection", "declaration": { - "id": 371, + "id": 370, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 372, + "id": 371, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } }, { - "id": 373, + "id": 372, "name": "error", "kind": 1024, "kindString": "Property", @@ -13732,8 +13894,8 @@ "title": "Properties", "kind": 1024, "children": [ - 372, - 373 + 371, + 372 ] } ] @@ -13742,14 +13904,14 @@ { "type": "reflection", "declaration": { - "id": 374, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 375, + "id": 374, "name": "data", "kind": 1024, "kindString": "Property", @@ -13761,13 +13923,14 @@ "defaultValue": "null" }, { - "id": 376, + "id": 375, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", + "id": 394, "name": "ApiError" }, "defaultValue": "..." @@ -13778,8 +13941,8 @@ "title": "Properties", "kind": 1024, "children": [ - 375, - 376 + 374, + 375 ] } ] @@ -13794,7 +13957,7 @@ ] }, { - "id": 312, + "id": 311, "name": "_handleEmailSignIn", "kind": 2048, "kindString": "Method", @@ -13804,20 +13967,20 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 484, + "line": 489, "character": 16 } ], "signatures": [ { - "id": 313, + "id": 312, "name": "_handleEmailSignIn", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 314, + "id": 313, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -13828,7 +13991,7 @@ } }, { - "id": 315, + "id": 314, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -13839,7 +14002,7 @@ } }, { - "id": 316, + "id": 315, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -13847,14 +14010,14 @@ "type": { "type": "reflection", "declaration": { - "id": 317, + "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 318, + "id": 317, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -13864,7 +14027,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 488, + "line": 493, "character": 6 } ], @@ -13879,7 +14042,7 @@ "title": "Properties", "kind": 1024, "children": [ - 318 + 317 ] } ] @@ -13897,14 +14060,14 @@ { "type": "reflection", "declaration": { - "id": 319, + "id": 318, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 320, + "id": 319, "name": "data", "kind": 1024, "kindString": "Property", @@ -13916,7 +14079,7 @@ "defaultValue": "null" }, { - "id": 323, + "id": 322, "name": "error", "kind": 1024, "kindString": "Property", @@ -13930,13 +14093,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 322, + "id": 321, "name": "session", "kind": 1024, "kindString": "Property", @@ -13948,7 +14112,7 @@ "defaultValue": "null" }, { - "id": 321, + "id": 320, "name": "user", "kind": 1024, "kindString": "Property", @@ -13965,10 +14129,10 @@ "title": "Properties", "kind": 1024, "children": [ - 320, - 323, + 319, 322, - 321 + 321, + 320 ] } ] @@ -13977,26 +14141,26 @@ { "type": "reflection", "declaration": { - "id": 324, + "id": 323, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 325, + "id": 324, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } }, { - "id": 328, + "id": 327, "name": "error", "kind": 1024, "kindString": "Property", @@ -14008,20 +14172,20 @@ "defaultValue": "null" }, { - "id": 327, + "id": 326, "name": "session", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" }, "defaultValue": "data" }, { - "id": 326, + "id": 325, "name": "user", "kind": 1024, "kindString": "Property", @@ -14035,7 +14199,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -14048,10 +14212,10 @@ "title": "Properties", "kind": 1024, "children": [ - 325, - 328, + 324, 327, - 326 + 326, + 325 ] } ] @@ -14066,7 +14230,7 @@ ] }, { - "id": 329, + "id": 328, "name": "_handlePhoneSignIn", "kind": 2048, "kindString": "Method", @@ -14076,20 +14240,20 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 508, + "line": 513, "character": 16 } ], "signatures": [ { - "id": 330, + "id": 329, "name": "_handlePhoneSignIn", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 331, + "id": 330, "name": "phone", "kind": 32768, "kindString": "Parameter", @@ -14100,7 +14264,7 @@ } }, { - "id": 332, + "id": 331, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -14120,14 +14284,14 @@ { "type": "reflection", "declaration": { - "id": 333, + "id": 332, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 334, + "id": 333, "name": "data", "kind": 1024, "kindString": "Property", @@ -14139,7 +14303,7 @@ "defaultValue": "null" }, { - "id": 337, + "id": 336, "name": "error", "kind": 1024, "kindString": "Property", @@ -14153,13 +14317,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 336, + "id": 335, "name": "session", "kind": 1024, "kindString": "Property", @@ -14171,7 +14336,7 @@ "defaultValue": "null" }, { - "id": 335, + "id": 334, "name": "user", "kind": 1024, "kindString": "Property", @@ -14188,10 +14353,10 @@ "title": "Properties", "kind": 1024, "children": [ - 334, - 337, + 333, 336, - 335 + 335, + 334 ] } ] @@ -14200,26 +14365,26 @@ { "type": "reflection", "declaration": { - "id": 338, + "id": 337, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 339, + "id": 338, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } }, { - "id": 342, + "id": 341, "name": "error", "kind": 1024, "kindString": "Property", @@ -14231,20 +14396,20 @@ "defaultValue": "null" }, { - "id": 341, + "id": 340, "name": "session", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" }, "defaultValue": "data" }, { - "id": 340, + "id": 339, "name": "user", "kind": 1024, "kindString": "Property", @@ -14258,7 +14423,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -14271,10 +14436,10 @@ "title": "Properties", "kind": 1024, "children": [ - 339, - 342, + 338, 341, - 340 + 340, + 339 ] } ] @@ -14289,7 +14454,7 @@ ] }, { - "id": 343, + "id": 342, "name": "_handleProviderSignIn", "kind": 2048, "kindString": "Method", @@ -14299,32 +14464,32 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 524, + "line": 529, "character": 10 } ], "signatures": [ { - "id": 344, + "id": 343, "name": "_handleProviderSignIn", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 345, + "id": 344, "name": "provider", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 391, + "id": 392, "name": "Provider" } }, { - "id": 346, + "id": 345, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -14332,14 +14497,14 @@ "type": { "type": "reflection", "declaration": { - "id": 347, + "id": 346, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 348, + "id": 347, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -14349,7 +14514,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 527, + "line": 532, "character": 6 } ], @@ -14359,7 +14524,7 @@ } }, { - "id": 349, + "id": 348, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -14369,7 +14534,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 528, + "line": 533, "character": 6 } ], @@ -14384,8 +14549,8 @@ "title": "Properties", "kind": 1024, "children": [ - 348, - 349 + 347, + 348 ] } ] @@ -14400,14 +14565,14 @@ { "type": "reflection", "declaration": { - "id": 350, + "id": 349, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 353, + "id": 352, "name": "data", "kind": 1024, "kindString": "Property", @@ -14419,7 +14584,7 @@ "defaultValue": "null" }, { - "id": 356, + "id": 355, "name": "error", "kind": 1024, "kindString": "Property", @@ -14430,32 +14595,32 @@ }, "defaultValue": "null" }, + { + "id": 350, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 392, + "name": "Provider" + } + }, + { + "id": 353, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, { "id": 351, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "type": { - "type": "reference", - "id": 391, - "name": "Provider" - } - }, - { - "id": 354, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "type": { - "type": "literal", - "value": null - }, - "defaultValue": "null" - }, - { - "id": 352, "name": "url", "kind": 1024, "kindString": "Property", @@ -14466,7 +14631,7 @@ } }, { - "id": 355, + "id": 354, "name": "user", "kind": 1024, "kindString": "Property", @@ -14483,12 +14648,12 @@ "title": "Properties", "kind": 1024, "children": [ - 353, - 356, - 351, - 354, 352, - 355 + 355, + 350, + 353, + 351, + 354 ] } ] @@ -14497,14 +14662,14 @@ { "type": "reflection", "declaration": { - "id": 357, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 358, + "id": 357, "name": "data", "kind": 1024, "kindString": "Property", @@ -14516,19 +14681,20 @@ "defaultValue": "null" }, { - "id": 361, + "id": 360, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", + "id": 394, "name": "ApiError" }, "defaultValue": "..." }, { - "id": 362, + "id": 361, "name": "provider", "kind": 1024, "kindString": "Property", @@ -14539,7 +14705,7 @@ } }, { - "id": 360, + "id": 359, "name": "session", "kind": 1024, "kindString": "Property", @@ -14551,7 +14717,7 @@ "defaultValue": "null" }, { - "id": 363, + "id": 362, "name": "url", "kind": 1024, "kindString": "Property", @@ -14562,7 +14728,7 @@ } }, { - "id": 359, + "id": 358, "name": "user", "kind": 1024, "kindString": "Property", @@ -14579,12 +14745,12 @@ "title": "Properties", "kind": 1024, "children": [ - 358, - 361, - 362, + 357, 360, - 363, - 359 + 361, + 359, + 362, + 358 ] } ] @@ -14596,7 +14762,48 @@ ] }, { - "id": 377, + "id": 390, + "name": "_listenForMultiTabEvents", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 691, + "character": 10 + } + ], + "signatures": [ + { + "id": 391, + "name": "_listenForMultiTabEvents", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Listens for changes to LocalStorage and updates the current session." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": false + } + ] + } + } + ] + }, + { + "id": 376, "name": "_notifyAllSubscribers", "kind": 2048, "kindString": "Method", @@ -14606,27 +14813,27 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 631, + "line": 637, "character": 10 } ], "signatures": [ { - "id": 378, + "id": 377, "name": "_notifyAllSubscribers", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 379, + "id": 378, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 392, + "id": 393, "name": "AuthChangeEvent" } } @@ -14639,7 +14846,7 @@ ] }, { - "id": 383, + "id": 382, "name": "_persistSession", "kind": 2048, "kindString": "Method", @@ -14649,27 +14856,27 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 658, + "line": 664, "character": 10 } ], "signatures": [ { - "id": 384, + "id": 383, "name": "_persistSession", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 385, + "id": 384, "name": "currentSession", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } } @@ -14682,7 +14889,7 @@ ] }, { - "id": 366, + "id": 365, "name": "_recoverAndRefresh", "kind": 2048, "kindString": "Method", @@ -14692,13 +14899,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 577, + "line": 582, "character": 16 } ], "signatures": [ { - "id": 367, + "id": 366, "name": "_recoverAndRefresh", "kind": 4096, "kindString": "Call signature", @@ -14729,7 +14936,7 @@ ] }, { - "id": 364, + "id": 363, "name": "_recoverSession", "kind": 2048, "kindString": "Method", @@ -14739,13 +14946,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 553, + "line": 558, "character": 10 } ], "signatures": [ { - "id": 365, + "id": 364, "name": "_recoverSession", "kind": 4096, "kindString": "Call signature", @@ -14770,7 +14977,7 @@ ] }, { - "id": 386, + "id": 385, "name": "_removeSession", "kind": 2048, "kindString": "Method", @@ -14780,13 +14987,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 663, + "line": 669, "character": 16 } ], "signatures": [ { - "id": 387, + "id": 386, "name": "_removeSession", "kind": 4096, "kindString": "Call signature", @@ -14805,7 +15012,7 @@ ] }, { - "id": 380, + "id": 379, "name": "_saveSession", "kind": 2048, "kindString": "Method", @@ -14815,13 +15022,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 639, + "line": 645, "character": 10 } ], "signatures": [ { - "id": 381, + "id": 380, "name": "_saveSession", "kind": 4096, "kindString": "Call signature", @@ -14831,14 +15038,14 @@ }, "parameters": [ { - "id": 382, + "id": 381, "name": "session", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } } @@ -14851,7 +15058,7 @@ ] }, { - "id": 388, + "id": 387, "name": "_startAutoRefreshToken", "kind": 2048, "kindString": "Method", @@ -14861,13 +15068,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 674, + "line": 680, "character": 10 } ], "signatures": [ { - "id": 389, + "id": 388, "name": "_startAutoRefreshToken", "kind": 4096, "kindString": "Call signature", @@ -14877,7 +15084,7 @@ }, "parameters": [ { - "id": 390, + "id": 389, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -14899,7 +15106,7 @@ ] }, { - "id": 290, + "id": 289, "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", @@ -14907,13 +15114,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 393, + "line": 397, "character": 8 } ], "signatures": [ { - "id": 291, + "id": 290, "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", @@ -14923,7 +15130,7 @@ }, "parameters": [ { - "id": 292, + "id": 291, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -14933,14 +15140,14 @@ "type": { "type": "reflection", "declaration": { - "id": 293, + "id": 292, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 294, + "id": 293, "name": "storeSession", "kind": 1024, "kindString": "Property", @@ -14953,7 +15160,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 394, + "line": 398, "character": 4 } ], @@ -14968,7 +15175,7 @@ "title": "Properties", "kind": 1024, "children": [ - 294 + 293 ] } ] @@ -14982,14 +15189,14 @@ { "type": "reflection", "declaration": { - "id": 295, + "id": 294, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 296, + "id": 295, "name": "data", "kind": 1024, "kindString": "Property", @@ -14997,7 +15204,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 395, + "line": 399, "character": 16 } ], @@ -15010,14 +15217,14 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] } }, { - "id": 297, + "id": 296, "name": "error", "kind": 1024, "kindString": "Property", @@ -15025,7 +15232,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 395, + "line": 399, "character": 38 } ], @@ -15038,6 +15245,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -15049,8 +15257,8 @@ "title": "Properties", "kind": 1024, "children": [ - 296, - 297 + 295, + 296 ] } ] @@ -15063,7 +15271,7 @@ ] }, { - "id": 302, + "id": 301, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -15071,13 +15279,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 464, + "line": 469, "character": 2 } ], "signatures": [ { - "id": 303, + "id": 302, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -15088,7 +15296,7 @@ }, "parameters": [ { - "id": 304, + "id": 303, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -15096,33 +15304,33 @@ "type": { "type": "reflection", "declaration": { - "id": 305, + "id": 304, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 306, + "id": 305, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 307, + "id": 306, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 392, + "id": 393, "name": "AuthChangeEvent" } }, { - "id": 308, + "id": 307, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -15136,7 +15344,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -15156,14 +15364,14 @@ "type": { "type": "reflection", "declaration": { - "id": 309, + "id": 308, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 310, + "id": 309, "name": "data", "kind": 1024, "kindString": "Property", @@ -15171,7 +15379,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 465, + "line": 470, "character": 4 } ], @@ -15184,14 +15392,14 @@ }, { "type": "reference", - "id": 431, + "id": 447, "name": "Subscription" } ] } }, { - "id": 311, + "id": 310, "name": "error", "kind": 1024, "kindString": "Property", @@ -15199,7 +15407,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 466, + "line": 471, "character": 4 } ], @@ -15212,6 +15420,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -15223,8 +15432,8 @@ "title": "Properties", "kind": 1024, "children": [ - 310, - 311 + 309, + 310 ] } ] @@ -15234,7 +15443,7 @@ ] }, { - "id": 268, + "id": 267, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -15242,13 +15451,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 306, + "line": 310, "character": 8 } ], "signatures": [ { - "id": 269, + "id": 268, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -15262,14 +15471,14 @@ { "type": "reflection", "declaration": { - "id": 270, + "id": 269, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 271, + "id": 270, "name": "data", "kind": 1024, "kindString": "Property", @@ -15277,7 +15486,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 307, + "line": 311, "character": 4 } ], @@ -15290,14 +15499,14 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] } }, { - "id": 273, + "id": 272, "name": "error", "kind": 1024, "kindString": "Property", @@ -15305,7 +15514,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 309, + "line": 313, "character": 4 } ], @@ -15318,13 +15527,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 272, + "id": 271, "name": "user", "kind": 1024, "kindString": "Property", @@ -15332,7 +15542,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 308, + "line": 312, "character": 4 } ], @@ -15345,7 +15555,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -15357,9 +15567,9 @@ "title": "Properties", "kind": 1024, "children": [ - 271, - 273, - 272 + 270, + 272, + 271 ] } ] @@ -15372,7 +15582,7 @@ ] }, { - "id": 266, + "id": 265, "name": "session", "kind": 2048, "kindString": "Method", @@ -15380,13 +15590,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 299, + "line": 303, "character": 2 } ], "signatures": [ { - "id": 267, + "id": 266, "name": "session", "kind": 4096, "kindString": "Call signature", @@ -15403,7 +15613,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -15412,7 +15622,7 @@ ] }, { - "id": 287, + "id": 286, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -15420,13 +15630,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 378, + "line": 382, "character": 2 } ], "signatures": [ { - "id": 288, + "id": 287, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -15436,7 +15646,7 @@ }, "parameters": [ { - "id": 289, + "id": 288, "name": "access_token", "kind": 32768, "kindString": "Parameter", @@ -15452,14 +15662,14 @@ ], "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } } ] }, { - "id": 281, + "id": 280, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -15467,13 +15677,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 354, + "line": 358, "character": 8 } ], "signatures": [ { - "id": 282, + "id": 281, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -15483,7 +15693,7 @@ }, "parameters": [ { - "id": 283, + "id": 282, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -15503,14 +15713,14 @@ { "type": "reflection", "declaration": { - "id": 284, + "id": 283, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 286, + "id": 285, "name": "error", "kind": 1024, "kindString": "Property", @@ -15518,7 +15728,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 356, + "line": 360, "character": 40 } ], @@ -15531,13 +15741,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 285, + "id": 284, "name": "session", "kind": 1024, "kindString": "Property", @@ -15545,7 +15756,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 356, + "line": 360, "character": 15 } ], @@ -15558,7 +15769,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -15570,8 +15781,8 @@ "title": "Properties", "kind": 1024, "children": [ - 286, - 285 + 285, + 284 ] } ] @@ -15584,7 +15795,7 @@ ] }, { - "id": 239, + "id": 240, "name": "signIn", "kind": 2048, "kindString": "Method", @@ -15592,13 +15803,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 178, + "line": 185, "character": 8 } ], "signatures": [ { - "id": 240, + "id": 241, "name": "signIn", "kind": 4096, "kindString": "Call signature", @@ -15608,19 +15819,19 @@ }, "parameters": [ { - "id": 241, + "id": 242, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 445, + "id": 461, "name": "UserCredentials" } }, { - "id": 242, + "id": 243, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -15628,14 +15839,14 @@ "type": { "type": "reflection", "declaration": { - "id": 243, + "id": 244, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 244, + "id": 245, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -15645,7 +15856,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 181, + "line": 188, "character": 6 } ], @@ -15655,7 +15866,7 @@ } }, { - "id": 245, + "id": 246, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -15665,7 +15876,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 182, + "line": 189, "character": 6 } ], @@ -15680,8 +15891,8 @@ "title": "Properties", "kind": 1024, "children": [ - 244, - 245 + 245, + 246 ] } ] @@ -15696,7 +15907,7 @@ { "type": "reflection", "declaration": { - "id": 246, + "id": 247, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -15704,34 +15915,6 @@ "children": [ { "id": 252, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 190, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 393, - "name": "Session" - } - ] - } - }, - { - "id": 251, "name": "error", "kind": 1024, "kindString": "Property", @@ -15739,7 +15922,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 189, + "line": 196, "character": 4 } ], @@ -15752,13 +15935,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 249, + "id": 250, "name": "provider", "kind": 1024, "kindString": "Property", @@ -15768,18 +15952,18 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 187, + "line": 194, "character": 4 } ], "type": { "type": "reference", - "id": 391, + "id": 392, "name": "Provider" } }, { - "id": 247, + "id": 248, "name": "session", "kind": 1024, "kindString": "Property", @@ -15787,7 +15971,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 185, + "line": 192, "character": 4 } ], @@ -15800,14 +15984,14 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] } }, { - "id": 250, + "id": 251, "name": "url", "kind": 1024, "kindString": "Property", @@ -15817,7 +16001,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 188, + "line": 195, "character": 4 } ], @@ -15836,7 +16020,7 @@ } }, { - "id": 248, + "id": 249, "name": "user", "kind": 1024, "kindString": "Property", @@ -15844,7 +16028,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 186, + "line": 193, "character": 4 } ], @@ -15857,7 +16041,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -15870,11 +16054,10 @@ "kind": 1024, "children": [ 252, - 251, - 249, - 247, 250, - 248 + 248, + 251, + 249 ] } ] @@ -15887,7 +16070,7 @@ ] }, { - "id": 298, + "id": 297, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -15895,13 +16078,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 449, + "line": 454, "character": 8 } ], "signatures": [ { - "id": 299, + "id": 298, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -15916,14 +16099,14 @@ { "type": "reflection", "declaration": { - "id": 300, + "id": 299, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 301, + "id": 300, "name": "error", "kind": 1024, "kindString": "Property", @@ -15931,7 +16114,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 449, + "line": 454, "character": 29 } ], @@ -15944,6 +16127,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -15955,7 +16139,7 @@ "title": "Properties", "kind": 1024, "children": [ - 301 + 300 ] } ] @@ -15968,7 +16152,7 @@ ] }, { - "id": 227, + "id": 229, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -15976,13 +16160,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 115, + "line": 123, "character": 8 } ], "signatures": [ { - "id": 228, + "id": 230, "name": "signUp", "kind": 4096, "kindString": "Call signature", @@ -15992,19 +16176,19 @@ }, "parameters": [ { - "id": 229, + "id": 231, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 445, + "id": 461, "name": "UserCredentials" } }, { - "id": 230, + "id": 232, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -16012,14 +16196,14 @@ "type": { "type": "reflection", "declaration": { - "id": 231, + "id": 233, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 233, + "id": 235, "name": "data", "kind": 1024, "kindString": "Property", @@ -16029,7 +16213,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 119, + "line": 127, "character": 6 } ], @@ -16039,7 +16223,7 @@ } }, { - "id": 232, + "id": 234, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -16049,7 +16233,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 118, + "line": 126, "character": 6 } ], @@ -16064,8 +16248,8 @@ "title": "Properties", "kind": 1024, "children": [ - 233, - 232 + 235, + 234 ] } ] @@ -16080,47 +16264,14 @@ { "type": "reflection", "declaration": { - "id": 234, + "id": 236, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 238, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 125, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 401, - "name": "User" - }, - { - "type": "reference", - "id": 393, - "name": "Session" - } - ] - } - }, - { - "id": 237, + "id": 239, "name": "error", "kind": 1024, "kindString": "Property", @@ -16128,7 +16279,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 124, + "line": 132, "character": 4 } ], @@ -16141,13 +16292,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 236, + "id": 238, "name": "session", "kind": 1024, "kindString": "Property", @@ -16155,7 +16307,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 123, + "line": 131, "character": 4 } ], @@ -16168,14 +16320,14 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] } }, { - "id": 235, + "id": 237, "name": "user", "kind": 1024, "kindString": "Property", @@ -16183,7 +16335,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 122, + "line": 130, "character": 4 } ], @@ -16196,7 +16348,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -16208,10 +16360,9 @@ "title": "Properties", "kind": 1024, "children": [ + 239, 238, - 237, - 236, - 235 + 237 ] } ] @@ -16224,7 +16375,7 @@ ] }, { - "id": 274, + "id": 273, "name": "update", "kind": 2048, "kindString": "Method", @@ -16232,13 +16383,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 327, + "line": 331, "character": 8 } ], "signatures": [ { - "id": 275, + "id": 274, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -16248,14 +16399,14 @@ }, "parameters": [ { - "id": 276, + "id": 275, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 426, + "id": 442, "name": "UserAttributes" } } @@ -16266,14 +16417,14 @@ { "type": "reflection", "declaration": { - "id": 277, + "id": 276, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 278, + "id": 277, "name": "data", "kind": 1024, "kindString": "Property", @@ -16281,7 +16432,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 329, + "line": 333, "character": 15 } ], @@ -16294,14 +16445,14 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] } }, { - "id": 280, + "id": 279, "name": "error", "kind": 1024, "kindString": "Property", @@ -16309,7 +16460,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 329, + "line": 333, "character": 53 } ], @@ -16322,13 +16473,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 279, + "id": 278, "name": "user", "kind": 1024, "kindString": "Property", @@ -16336,7 +16488,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 329, + "line": 333, "character": 34 } ], @@ -16349,7 +16501,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -16361,9 +16513,9 @@ "title": "Properties", "kind": 1024, "children": [ - 278, - 280, - 279 + 277, + 279, + 278 ] } ] @@ -16376,7 +16528,7 @@ ] }, { - "id": 264, + "id": 263, "name": "user", "kind": 2048, "kindString": "Method", @@ -16384,13 +16536,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 292, + "line": 296, "character": 2 } ], "signatures": [ { - "id": 265, + "id": 264, "name": "user", "kind": 4096, "kindString": "Call signature", @@ -16408,7 +16560,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -16425,7 +16577,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 243, + "line": 248, "character": 8 } ], @@ -16448,7 +16600,7 @@ "flags": {}, "type": { "type": "reference", - "id": 451, + "id": 467, "name": "VerifyOTPParams" } }, @@ -16478,7 +16630,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 246, + "line": 251, "character": 6 } ], @@ -16514,39 +16666,6 @@ "kindString": "Type literal", "flags": {}, "children": [ - { - "id": 263, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 252, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 401, - "name": "User" - }, - { - "type": "reference", - "id": 393, - "name": "Session" - } - ] - } - }, { "id": 262, "name": "error", @@ -16556,7 +16675,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 251, + "line": 256, "character": 4 } ], @@ -16569,6 +16688,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -16583,7 +16703,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 250, + "line": 255, "character": 4 } ], @@ -16596,7 +16716,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -16611,7 +16731,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 249, + "line": 254, "character": 4 } ], @@ -16624,7 +16744,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -16636,7 +16756,6 @@ "title": "Properties", "kind": 1024, "children": [ - 263, 262, 261, 260 @@ -16664,42 +16783,44 @@ "title": "Properties", "kind": 1024, "children": [ - 219, + 220, + 223, 222, 221, - 220, - 224, - 223, + 225, 226, - 225 + 224, + 228, + 227 ] }, { "title": "Methods", "kind": 2048, "children": [ - 368, - 312, - 329, - 343, - 377, - 383, - 366, - 364, - 386, - 380, - 388, - 290, - 302, - 268, - 266, - 287, - 281, - 239, - 298, - 227, - 274, - 264, + 367, + 311, + 328, + 342, + 390, + 376, + 382, + 365, + 363, + 385, + 379, + 387, + 289, + 301, + 267, + 265, + 286, + 280, + 240, + 297, + 229, + 273, + 263, 253 ] } @@ -16707,150 +16828,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 39, + "line": 42, "character": 21 } ] }, { - "id": 439, - "name": "CookieOptions", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "children": [ - { - "id": 442, - "name": "domain", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 103, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 441, - "name": "lifetime", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 101, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 440, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 99, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 443, - "name": "path", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 104, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 444, - "name": "sameSite", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 106, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 442, - 441, - 440, - 443, - 444 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 97, - "character": 17 - } - ] - }, - { - "id": 393, - "name": "Session", + "id": 394, + "name": "ApiError", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { "id": 395, - "name": "access_token", + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -16867,7 +16859,198 @@ } }, { - "id": 397, + "id": 396, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 25, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 395, + 396 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 23, + "character": 17 + } + ] + }, + { + "id": 455, + "name": "CookieOptions", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 458, + "name": "domain", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 123, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 457, + "name": "lifetime", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 121, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 456, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 119, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 459, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 124, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 460, + "name": "sameSite", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 126, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 458, + 457, + 456, + 459, + 460 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 117, + "character": 17 + } + ] + }, + { + "id": 397, + "name": "Session", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 399, + "name": "access_token", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 30, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 401, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -16880,7 +17063,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 32, + "line": 38, "character": 2 } ], @@ -16890,7 +17073,7 @@ } }, { - "id": 396, + "id": 400, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -16903,7 +17086,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 28, + "line": 34, "character": 2 } ], @@ -16913,7 +17096,7 @@ } }, { - "id": 394, + "id": 398, "name": "provider_token", "kind": 1024, "kindString": "Property", @@ -16923,7 +17106,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 23, + "line": 29, "character": 2 } ], @@ -16942,7 +17125,7 @@ } }, { - "id": 398, + "id": 402, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -16952,7 +17135,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 33, + "line": 39, "character": 2 } ], @@ -16962,7 +17145,7 @@ } }, { - "id": 399, + "id": 403, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -16970,7 +17153,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 34, + "line": 40, "character": 2 } ], @@ -16980,7 +17163,7 @@ } }, { - "id": 400, + "id": 404, "name": "user", "kind": 1024, "kindString": "Property", @@ -16988,7 +17171,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 35, + "line": 41, "character": 2 } ], @@ -17001,7 +17184,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -17013,33 +17196,33 @@ "title": "Properties", "kind": 1024, "children": [ - 395, - 397, - 396, - 394, - 398, 399, - 400 + 401, + 400, + 398, + 402, + 403, + 404 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 22, + "line": 28, "character": 17 } ] }, { - "id": 431, + "id": 447, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 432, + "id": 448, "name": "id", "kind": 1024, "kindString": "Property", @@ -17050,7 +17233,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 86, + "line": 106, "character": 2 } ], @@ -17060,7 +17243,7 @@ } }, { - "id": 433, + "id": 449, "name": "callback", "kind": 2048, "kindString": "Method", @@ -17068,13 +17251,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 90, + "line": 110, "character": 2 } ], "signatures": [ { - "id": 434, + "id": 450, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -17084,19 +17267,19 @@ }, "parameters": [ { - "id": 435, + "id": 451, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 392, + "id": 393, "name": "AuthChangeEvent" } }, { - "id": 436, + "id": 452, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -17110,7 +17293,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -17125,7 +17308,7 @@ ] }, { - "id": 437, + "id": 453, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -17133,13 +17316,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 114, "character": 2 } ], "signatures": [ { - "id": 438, + "id": 454, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -17160,35 +17343,35 @@ "title": "Properties", "kind": 1024, "children": [ - 432 + 448 ] }, { "title": "Methods", "kind": 2048, "children": [ - 433, - 437 + 449, + 453 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 82, + "line": 102, "character": 17 } ] }, { - "id": 401, + "id": 416, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 416, + "id": 431, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -17198,7 +17381,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 50, + "line": 69, "character": 2 } ], @@ -17208,7 +17391,7 @@ } }, { - "id": 403, + "id": 418, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -17216,21 +17399,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 39, + "line": 58, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 404, + "id": 419, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 405, + "id": 420, "name": "provider", "kind": 1024, "kindString": "Property", @@ -17240,7 +17423,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 40, + "line": 59, "character": 4 } ], @@ -17255,19 +17438,19 @@ "title": "Properties", "kind": 1024, "children": [ - 405 + 420 ] } ], "indexSignature": { - "id": 406, + "id": 421, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 407, + "id": 422, "name": "key", "kind": 32768, "flags": {}, @@ -17286,7 +17469,7 @@ } }, { - "id": 412, + "id": 427, "name": "aud", "kind": 1024, "kindString": "Property", @@ -17294,7 +17477,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 46, + "line": 65, "character": 2 } ], @@ -17304,7 +17487,7 @@ } }, { - "id": 413, + "id": 428, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -17314,7 +17497,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 47, + "line": 66, "character": 2 } ], @@ -17324,7 +17507,7 @@ } }, { - "id": 420, + "id": 435, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -17334,7 +17517,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 54, + "line": 73, "character": 2 } ], @@ -17344,7 +17527,7 @@ } }, { - "id": 419, + "id": 434, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -17352,7 +17535,47 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 53, + "line": 72, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 432, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 70, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 436, + "name": "email_confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 74, "character": 2 } ], @@ -17363,90 +17586,10 @@ }, { "id": 417, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 51, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 421, - "name": "email_confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 55, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 402, "name": "id", "kind": 1024, "kindString": "Property", "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 38, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 415, - "name": "invited_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 423, - "name": "last_sign_in_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, "sources": [ { "fileName": "src/lib/types.ts", @@ -17460,7 +17603,71 @@ } }, { - "id": 418, + "id": 441, + "name": "identities", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 79, + "character": 2 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 405, + "name": "UserIdentity" + } + } + }, + { + "id": 430, + "name": "invited_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 68, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 438, + "name": "last_sign_in_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 76, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 433, "name": "phone", "kind": 1024, "kindString": "Property", @@ -17470,7 +17677,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 52, + "line": 71, "character": 2 } ], @@ -17480,7 +17687,7 @@ } }, { - "id": 422, + "id": 437, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -17490,7 +17697,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 56, + "line": 75, "character": 2 } ], @@ -17500,7 +17707,7 @@ } }, { - "id": 414, + "id": 429, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -17510,7 +17717,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 48, + "line": 67, "character": 2 } ], @@ -17520,7 +17727,7 @@ } }, { - "id": 424, + "id": 439, "name": "role", "kind": 1024, "kindString": "Property", @@ -17530,7 +17737,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 58, + "line": 77, "character": 2 } ], @@ -17540,7 +17747,7 @@ } }, { - "id": 425, + "id": 440, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -17550,7 +17757,382 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 59, + "line": 78, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 423, + "name": "user_metadata", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 62, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 424, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 425, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 426, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 431, + 418, + 427, + 428, + 435, + 434, + 432, + 436, + 417, + 441, + 430, + 438, + 433, + 437, + 429, + 439, + 440, + 423 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 56, + "character": 17 + } + ] + }, + { + "id": 442, + "name": "UserAttributes", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 446, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "A custom data object. Can be any JSON." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 99, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 443, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The user's email." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 86, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 445, + "name": "email_change_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "An email change token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 94, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 444, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The user's password." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 90, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 446, + 443, + 445, + 444 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 82, + "character": 17 + } + ] + }, + { + "id": 461, + "name": "UserCredentials", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 462, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 130, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 464, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 132, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 463, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 131, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 466, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 135, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 392, + "name": "Provider" + } + }, + { + "id": 465, + "name": "refreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 133, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 462, + 464, + 463, + 466, + 465 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 129, + "character": 17 + } + ] + }, + { + "id": 405, + "name": "UserIdentity", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 413, + "name": "created_at", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 406, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 45, "character": 2 } ], @@ -17561,14 +18143,14 @@ }, { "id": 408, - "name": "user_metadata", + "name": "identity_data", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 43, + "line": 47, "character": 2 } ], @@ -17605,86 +18187,17 @@ } } } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 416, - 403, - 412, - 413, - 420, - 419, - 417, - 421, - 402, - 415, - 423, - 418, - 422, - 414, - 424, - 425, - 408 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 37, - "character": 17 - } - ] - }, - { - "id": 426, - "name": "UserAttributes", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "children": [ - { - "id": 430, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object. Can be any JSON." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 79, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } }, { - "id": 427, - "name": "email", + "id": 414, + "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The user's email." - }, + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 66, + "line": 52, "character": 2 } ], @@ -17694,163 +18207,26 @@ } }, { - "id": 429, - "name": "email_change_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "An email change token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 74, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 428, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 70, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 430, - 427, - 429, - 428 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 62, - "character": 17 - } - ] - }, - { - "id": 445, - "name": "UserCredentials", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "children": [ - { - "id": 446, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 110, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 448, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 112, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 447, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 111, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 450, + "id": 412, "name": "provider", "kind": 1024, "kindString": "Property", - "flags": { - "isOptional": true - }, + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 115, + "line": 50, "character": 2 } ], "type": { - "type": "reference", - "id": 391, - "name": "Provider" + "type": "intrinsic", + "name": "string" } }, { - "id": 449, - "name": "refreshToken", + "id": 415, + "name": "updated_at", "kind": 1024, "kindString": "Property", "flags": { @@ -17859,7 +18235,25 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 113, + "line": 53, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 407, + "name": "user_id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 46, "character": 2 } ], @@ -17874,31 +18268,33 @@ "title": "Properties", "kind": 1024, "children": [ - 446, - 448, - 447, - 450, - 449 + 413, + 406, + 408, + 414, + 412, + 415, + 407 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 109, + "line": 44, "character": 17 } ] }, { - "id": 451, + "id": 467, "name": "VerifyOTPParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 452, + "id": 468, "name": "phone", "kind": 1024, "kindString": "Property", @@ -17906,7 +18302,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 119, + "line": 139, "character": 2 } ], @@ -17916,7 +18312,7 @@ } }, { - "id": 453, + "id": 469, "name": "token", "kind": 1024, "kindString": "Property", @@ -17924,7 +18320,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 120, + "line": 140, "character": 2 } ], @@ -17939,21 +18335,21 @@ "title": "Properties", "kind": 1024, "children": [ - 452, - 453 + 468, + 469 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 118, + "line": 138, "character": 17 } ] }, { - "id": 392, + "id": 393, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -17962,12 +18358,16 @@ { "fileName": "src/lib/types.ts", "line": 15, - "character": 12 + "character": 14 } ], "type": { "type": "union", "types": [ + { + "type": "literal", + "value": "PASSWORD_RECOVERY" + }, { "type": "literal", "value": "SIGNED_IN" @@ -17976,6 +18376,10 @@ "type": "literal", "value": "SIGNED_OUT" }, + { + "type": "literal", + "value": "TOKEN_REFRESHED" + }, { "type": "literal", "value": "USER_UPDATED" @@ -17983,16 +18387,12 @@ { "type": "literal", "value": "USER_DELETED" - }, - { - "type": "literal", - "value": "PASSWORD_RECOVERY" } ] } }, { - "id": 391, + "id": 392, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -18072,21 +18472,23 @@ "title": "Interfaces", "kind": 256, "children": [ - 439, - 393, - 431, - 401, - 426, - 445, - 451 + 394, + 455, + 397, + 447, + 416, + 442, + 461, + 405, + 467 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 392, - 391 + 393, + 392 ] } ], @@ -30381,7 +30783,7 @@ "originalName": "", "children": [ { - "id": 200, + "id": 201, "name": "\"RealtimeClient\"", "kind": 1, "kindString": "Module", @@ -30391,7 +30793,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts", "children": [ { - "id": 201, + "id": 202, "name": "RealtimeClient", "kind": 128, "kindString": "Class", @@ -30400,7 +30802,7 @@ }, "children": [ { - "id": 232, + "id": 234, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -30412,7 +30814,7 @@ }, "signatures": [ { - "id": 233, + "id": 235, "name": "new RealtimeClient", "kind": 16384, "kindString": "Constructor signature", @@ -30424,7 +30826,7 @@ }, "parameters": [ { - "id": 234, + "id": 236, "name": "endPoint", "kind": 32768, "kindString": "Parameter", @@ -30440,7 +30842,7 @@ } }, { - "id": 235, + "id": 237, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -30450,14 +30852,14 @@ }, "type": { "type": "reference", - "id": 307, + "id": 312, "name": "Options" } } ], "type": { "type": "reference", - "id": 201, + "id": 202, "name": "RealtimeClient" } } @@ -30465,14 +30867,14 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 66, + "line": 67, "character": 3 } ] }, { - "id": 202, - "name": "channels", + "id": 203, + "name": "accessToken", "kind": 1024, "kindString": "Property", "flags": { @@ -30482,6 +30884,36 @@ { "fileName": "RealtimeClient.ts", "line": 37, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 204, + "name": "channels", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 38, "character": 10 } ], @@ -30489,14 +30921,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } }, "defaultValue": "[]" }, { - "id": 224, + "id": 226, "name": "conn", "kind": 1024, "kindString": "Property", @@ -30506,7 +30938,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 53, + "line": 54, "character": 6 } ], @@ -30526,13 +30958,33 @@ "defaultValue": "null" }, { - "id": 222, + "id": 224, "name": "decode", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 52, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 223, + "name": "encode", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -30546,27 +30998,7 @@ } }, { - "id": 221, - "name": "encode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 50, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 203, + "id": 205, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -30576,7 +31008,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 38, + "line": 39, "character": 10 } ], @@ -30587,7 +31019,7 @@ "defaultValue": "\"\"" }, { - "id": 204, + "id": 206, "name": "headers", "kind": 1024, "kindString": "Property", @@ -30598,7 +31030,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 39, + "line": 40, "character": 9 } ], @@ -30612,7 +31044,7 @@ { "type": "reflection", "declaration": { - "id": 205, + "id": 207, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -30621,7 +31053,7 @@ }, "indexSignature": [ { - "id": 206, + "id": 208, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -30630,7 +31062,7 @@ }, "parameters": [ { - "id": 207, + "id": 209, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -30656,7 +31088,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 214, + "id": 216, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -30666,7 +31098,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 43, + "line": 44, "character": 21 } ], @@ -30677,7 +31109,7 @@ "defaultValue": "30000" }, { - "id": 216, + "id": 218, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -30687,7 +31119,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 45, + "line": 46, "character": 16 } ], @@ -30716,7 +31148,7 @@ "defaultValue": "undefined" }, { - "id": 220, + "id": 222, "name": "logger", "kind": 1024, "kindString": "Property", @@ -30726,7 +31158,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 49, + "line": 50, "character": 8 } ], @@ -30737,7 +31169,7 @@ "defaultValue": "noop" }, { - "id": 215, + "id": 217, "name": "longpollerTimeout", "kind": 1024, "kindString": "Property", @@ -30747,7 +31179,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 44, + "line": 45, "character": 19 } ], @@ -30758,7 +31190,7 @@ "defaultValue": "20000" }, { - "id": 208, + "id": 210, "name": "params", "kind": 1024, "kindString": "Property", @@ -30769,7 +31201,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 40, + "line": 41, "character": 8 } ], @@ -30783,7 +31215,7 @@ { "type": "reflection", "declaration": { - "id": 209, + "id": 211, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -30792,7 +31224,7 @@ }, "indexSignature": [ { - "id": 210, + "id": 212, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -30801,7 +31233,7 @@ }, "parameters": [ { - "id": 211, + "id": 213, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -30826,7 +31258,7 @@ } }, { - "id": 217, + "id": 219, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -30836,7 +31268,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 46, + "line": 47, "character": 21 } ], @@ -30856,7 +31288,7 @@ "defaultValue": "null" }, { - "id": 223, + "id": 225, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -30866,7 +31298,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 52, + "line": 53, "character": 18 } ], @@ -30876,7 +31308,7 @@ } }, { - "id": 219, + "id": 221, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -30886,18 +31318,18 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 48, + "line": 49, "character": 16 } ], "type": { "type": "reference", - "id": 29, + "id": 30, "name": "Timer" } }, { - "id": 218, + "id": 220, "name": "ref", "kind": 1024, "kindString": "Property", @@ -30907,7 +31339,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 47, + "line": 48, "character": 5 } ], @@ -30918,37 +31350,13 @@ "defaultValue": "0" }, { - "id": 225, + "id": 227, "name": "sendBuffer", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 54, - "character": 12 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Function" - } - }, - "defaultValue": "[]" - }, - { - "id": 226, - "name": "serializer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -30956,15 +31364,39 @@ "character": 12 } ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Function" + } + }, + "defaultValue": "[]" + }, + { + "id": 228, + "name": "serializer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 56, + "character": 12 + } + ], "type": { "type": "reference", - "id": 176, + "id": 177, "name": "Serializer" }, "defaultValue": "new Serializer()" }, { - "id": 212, + "id": 214, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -30974,7 +31406,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 41, + "line": 42, "character": 9 } ], @@ -30985,7 +31417,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 213, + "id": 215, "name": "transport", "kind": 1024, "kindString": "Property", @@ -30995,7 +31427,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 42, + "line": 43, "character": 11 } ], @@ -31006,7 +31438,7 @@ "defaultValue": "WebSocket" }, { - "id": 294, + "id": 299, "name": "_appendParams", "kind": 2048, "kindString": "Method", @@ -31016,7 +31448,7 @@ }, "signatures": [ { - "id": 295, + "id": 300, "name": "_appendParams", "kind": 4096, "kindString": "Call signature", @@ -31025,7 +31457,7 @@ }, "parameters": [ { - "id": 296, + "id": 301, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -31038,7 +31470,7 @@ } }, { - "id": 297, + "id": 302, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -31048,7 +31480,7 @@ "type": { "type": "reflection", "declaration": { - "id": 298, + "id": 303, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -31057,7 +31489,7 @@ }, "indexSignature": [ { - "id": 299, + "id": 304, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -31066,7 +31498,7 @@ }, "parameters": [ { - "id": 300, + "id": 305, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -31088,7 +31520,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 348, + "line": 372, "character": 44 } ] @@ -31105,13 +31537,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 348, + "line": 372, "character": 23 } ] }, { - "id": 301, + "id": 306, "name": "_flushSendBuffer", "kind": 2048, "kindString": "Method", @@ -31121,7 +31553,7 @@ }, "signatures": [ { - "id": 302, + "id": 307, "name": "_flushSendBuffer", "kind": 4096, "kindString": "Call signature", @@ -31137,13 +31569,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 358, + "line": 382, "character": 26 } ] }, { - "id": 286, + "id": 291, "name": "_onConnClose", "kind": 2048, "kindString": "Method", @@ -31153,7 +31585,7 @@ }, "signatures": [ { - "id": 287, + "id": 292, "name": "_onConnClose", "kind": 4096, "kindString": "Call signature", @@ -31162,7 +31594,7 @@ }, "parameters": [ { - "id": 288, + "id": 293, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -31184,13 +31616,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 328, + "line": 352, "character": 22 } ] }, { - "id": 289, + "id": 294, "name": "_onConnError", "kind": 2048, "kindString": "Method", @@ -31200,7 +31632,7 @@ }, "signatures": [ { - "id": 290, + "id": 295, "name": "_onConnError", "kind": 4096, "kindString": "Call signature", @@ -31209,7 +31641,7 @@ }, "parameters": [ { - "id": 291, + "id": 296, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -31231,13 +31663,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 336, + "line": 360, "character": 22 } ] }, { - "id": 284, + "id": 289, "name": "_onConnOpen", "kind": 2048, "kindString": "Method", @@ -31247,7 +31679,7 @@ }, "signatures": [ { - "id": 285, + "id": 290, "name": "_onConnOpen", "kind": 4096, "kindString": "Call signature", @@ -31263,13 +31695,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 320, + "line": 344, "character": 21 } ] }, { - "id": 303, + "id": 308, "name": "_resetHeartbeat", "kind": 2048, "kindString": "Method", @@ -31279,7 +31711,7 @@ }, "signatures": [ { - "id": 304, + "id": 309, "name": "_resetHeartbeat", "kind": 4096, "kindString": "Call signature", @@ -31295,13 +31727,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 365, + "line": 389, "character": 25 } ] }, { - "id": 305, + "id": 310, "name": "_sendHeartbeat", "kind": 2048, "kindString": "Method", @@ -31311,7 +31743,7 @@ }, "signatures": [ { - "id": 306, + "id": 311, "name": "_sendHeartbeat", "kind": 4096, "kindString": "Call signature", @@ -31327,13 +31759,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 374, + "line": 398, "character": 24 } ] }, { - "id": 292, + "id": 297, "name": "_triggerChanError", "kind": 2048, "kindString": "Method", @@ -31343,7 +31775,7 @@ }, "signatures": [ { - "id": 293, + "id": 298, "name": "_triggerChanError", "kind": 4096, "kindString": "Call signature", @@ -31359,13 +31791,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 342, + "line": 366, "character": 27 } ] }, { - "id": 269, + "id": 271, "name": "channel", "kind": 2048, "kindString": "Method", @@ -31374,7 +31806,7 @@ }, "signatures": [ { - "id": 270, + "id": 272, "name": "channel", "kind": 4096, "kindString": "Call signature", @@ -31383,7 +31815,7 @@ }, "parameters": [ { - "id": 271, + "id": 273, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -31396,7 +31828,7 @@ } }, { - "id": 272, + "id": 274, "name": "chanParams", "kind": 32768, "kindString": "Parameter", @@ -31406,7 +31838,7 @@ "type": { "type": "reflection", "declaration": { - "id": 273, + "id": 275, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -31420,7 +31852,7 @@ ], "type": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } } @@ -31428,13 +31860,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 250, + "line": 251, "character": 9 } ] }, { - "id": 236, + "id": 238, "name": "connect", "kind": 2048, "kindString": "Method", @@ -31443,7 +31875,7 @@ }, "signatures": [ { - "id": 237, + "id": 239, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -31462,13 +31894,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 118, + "line": 119, "character": 9 } ] }, { - "id": 262, + "id": 264, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -31477,7 +31909,7 @@ }, "signatures": [ { - "id": 263, + "id": 265, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -31513,13 +31945,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 219, + "line": 220, "character": 17 } ] }, { - "id": 238, + "id": 240, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -31528,7 +31960,7 @@ }, "signatures": [ { - "id": 239, + "id": 241, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -31540,7 +31972,7 @@ }, "parameters": [ { - "id": 240, + "id": 242, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -31566,7 +31998,7 @@ } }, { - "id": 241, + "id": 243, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -31598,7 +32030,7 @@ { "type": "reflection", "declaration": { - "id": 242, + "id": 244, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -31607,7 +32039,7 @@ }, "children": [ { - "id": 244, + "id": 246, "name": "data", "kind": 32, "kindString": "Variable", @@ -31617,7 +32049,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 143, + "line": 144, "character": 40 } ], @@ -31627,7 +32059,7 @@ } }, { - "id": 243, + "id": 245, "name": "error", "kind": 32, "kindString": "Variable", @@ -31637,7 +32069,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 143, + "line": 144, "character": 20 } ], @@ -31661,15 +32093,15 @@ "title": "Variables", "kind": 32, "children": [ - 244, - 243 + 246, + 245 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 143, + "line": 144, "character": 13 } ] @@ -31683,13 +32115,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 140, + "line": 141, "character": 12 } ] }, { - "id": 280, + "id": 282, "name": "endPointURL", "kind": 2048, "kindString": "Method", @@ -31698,7 +32130,7 @@ }, "signatures": [ { - "id": 281, + "id": 283, "name": "endPointURL", "kind": 4096, "kindString": "Call signature", @@ -31717,13 +32149,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 299, + "line": 300, "character": 13 } ] }, { - "id": 264, + "id": 266, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -31732,7 +32164,7 @@ }, "signatures": [ { - "id": 265, + "id": 267, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -31751,13 +32183,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 235, + "line": 236, "character": 13 } ] }, { - "id": 245, + "id": 247, "name": "log", "kind": 2048, "kindString": "Method", @@ -31766,7 +32198,7 @@ }, "signatures": [ { - "id": 246, + "id": 248, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -31778,7 +32210,7 @@ }, "parameters": [ { - "id": 247, + "id": 249, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -31791,7 +32223,7 @@ } }, { - "id": 248, + "id": 250, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -31804,7 +32236,7 @@ } }, { - "id": 249, + "id": 251, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -31827,13 +32259,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 168, + "line": 169, "character": 5 } ] }, { - "id": 282, + "id": 284, "name": "makeRef", "kind": 2048, "kindString": "Method", @@ -31842,7 +32274,7 @@ }, "signatures": [ { - "id": 283, + "id": 285, "name": "makeRef", "kind": 4096, "kindString": "Call signature", @@ -31861,13 +32293,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 309, + "line": 310, "character": 9 } ] }, { - "id": 253, + "id": 255, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -31876,7 +32308,7 @@ }, "signatures": [ { - "id": 254, + "id": 256, "name": "onClose", "kind": 4096, "kindString": "Call signature", @@ -31894,7 +32326,7 @@ }, "parameters": [ { - "id": 255, + "id": 257, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -31919,13 +32351,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 190, + "line": 191, "character": 9 } ] }, { - "id": 277, + "id": 279, "name": "onConnMessage", "kind": 2048, "kindString": "Method", @@ -31934,7 +32366,7 @@ }, "signatures": [ { - "id": 278, + "id": 280, "name": "onConnMessage", "kind": 4096, "kindString": "Call signature", @@ -31943,7 +32375,7 @@ }, "parameters": [ { - "id": 279, + "id": 281, "name": "rawMessage", "kind": 32768, "kindString": "Parameter", @@ -31965,13 +32397,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 271, + "line": 272, "character": 15 } ] }, { - "id": 256, + "id": 258, "name": "onError", "kind": 2048, "kindString": "Method", @@ -31980,7 +32412,7 @@ }, "signatures": [ { - "id": 257, + "id": 259, "name": "onError", "kind": 4096, "kindString": "Call signature", @@ -31998,7 +32430,7 @@ }, "parameters": [ { - "id": 258, + "id": 260, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -32023,13 +32455,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 201, + "line": 202, "character": 9 } ] }, { - "id": 259, + "id": 261, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -32038,7 +32470,7 @@ }, "signatures": [ { - "id": 260, + "id": 262, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -32056,7 +32488,7 @@ }, "parameters": [ { - "id": 261, + "id": 263, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -32081,13 +32513,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 212, + "line": 213, "character": 11 } ] }, { - "id": 250, + "id": 252, "name": "onOpen", "kind": 2048, "kindString": "Method", @@ -32096,7 +32528,7 @@ }, "signatures": [ { - "id": 251, + "id": 253, "name": "onOpen", "kind": 4096, "kindString": "Call signature", @@ -32114,7 +32546,7 @@ }, "parameters": [ { - "id": 252, + "id": 254, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -32139,13 +32571,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 179, + "line": 180, "character": 8 } ] }, { - "id": 274, + "id": 276, "name": "push", "kind": 2048, "kindString": "Method", @@ -32154,7 +32586,7 @@ }, "signatures": [ { - "id": 275, + "id": 277, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -32163,7 +32595,7 @@ }, "parameters": [ { - "id": 276, + "id": 278, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -32172,7 +32604,7 @@ }, "type": { "type": "reference", - "id": 325, + "id": 330, "name": "Message" } } @@ -32186,13 +32618,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 256, + "line": 257, "character": 6 } ] }, { - "id": 266, + "id": 268, "name": "remove", "kind": 2048, "kindString": "Method", @@ -32201,7 +32633,7 @@ }, "signatures": [ { - "id": 267, + "id": 269, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -32213,7 +32645,7 @@ }, "parameters": [ { - "id": 268, + "id": 270, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -32225,7 +32657,7 @@ }, "type": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } } @@ -32239,13 +32671,74 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 244, + "line": 245, "character": 8 } ] }, { - "id": 227, + "id": 286, + "name": "setAuth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 287, + "name": "setAuth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS." + }, + "parameters": [ + { + "id": 288, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A JWT string.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 326, + "character": 9 + } + ] + }, + { + "id": 229, "name": "stateChangeCallbacks", "kind": 2097152, "kindString": "Object literal", @@ -32254,37 +32747,13 @@ }, "children": [ { - "id": 229, + "id": 231, "name": "close", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 63, - "character": 9 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "never" - } - }, - "defaultValue": "[]" - }, - { - "id": 230, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -32302,8 +32771,8 @@ "defaultValue": "[]" }, { - "id": 231, - "name": "message", + "id": 232, + "name": "error", "kind": 32, "kindString": "Variable", "flags": { @@ -32313,6 +32782,30 @@ { "fileName": "RealtimeClient.ts", "line": 65, + "character": 9 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + }, + "defaultValue": "[]" + }, + { + "id": 233, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 66, "character": 11 } ], @@ -32326,7 +32819,7 @@ "defaultValue": "[]" }, { - "id": 228, + "id": 230, "name": "open", "kind": 32, "kindString": "Variable", @@ -32336,7 +32829,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 62, + "line": 63, "character": 8 } ], @@ -32355,17 +32848,17 @@ "title": "Variables", "kind": 32, "children": [ - 229, - 230, 231, - 228 + 232, + 233, + 230 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 56, + "line": 57, "character": 22 } ], @@ -32380,68 +32873,70 @@ "title": "Constructors", "kind": 512, "children": [ - 232 + 234 ] }, { "title": "Properties", "kind": 1024, "children": [ - 202, - 224, - 222, - 221, 203, 204, - 214, - 216, - 220, - 215, - 208, - 217, - 223, - 219, - 218, - 225, 226, - 212, - 213 + 224, + 223, + 205, + 206, + 216, + 218, + 222, + 217, + 210, + 219, + 225, + 221, + 220, + 227, + 228, + 214, + 215 ] }, { "title": "Methods", "kind": 2048, "children": [ + 299, + 306, + 291, 294, - 301, - 286, 289, - 284, - 303, - 305, - 292, - 269, - 236, - 262, + 308, + 310, + 297, + 271, 238, - 280, 264, - 245, + 240, 282, - 253, - 277, - 256, - 259, - 250, - 274, - 266 + 266, + 247, + 284, + 255, + 279, + 258, + 261, + 252, + 276, + 268, + 286 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 227 + 229 ] } ], @@ -32454,7 +32949,7 @@ ] }, { - "id": 325, + "id": 330, "name": "Message", "kind": 4194304, "kindString": "Type alias", @@ -32469,14 +32964,14 @@ "type": { "type": "reflection", "declaration": { - "id": 326, + "id": 331, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 328, + "id": 333, "name": "event", "kind": 32, "kindString": "Variable", @@ -32494,7 +32989,7 @@ } }, { - "id": 329, + "id": 334, "name": "payload", "kind": 32, "kindString": "Variable", @@ -32512,7 +33007,7 @@ } }, { - "id": 330, + "id": 335, "name": "ref", "kind": 32, "kindString": "Variable", @@ -32530,7 +33025,7 @@ } }, { - "id": 327, + "id": 332, "name": "topic", "kind": 32, "kindString": "Variable", @@ -32553,10 +33048,10 @@ "title": "Variables", "kind": 32, "children": [ - 328, - 329, - 330, - 327 + 333, + 334, + 335, + 332 ] } ], @@ -32571,7 +33066,7 @@ } }, { - "id": 307, + "id": 312, "name": "Options", "kind": 4194304, "kindString": "Type alias", @@ -32588,7 +33083,7 @@ "type": { "type": "reflection", "declaration": { - "id": 308, + "id": 313, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32597,7 +33092,7 @@ }, "children": [ { - "id": 315, + "id": 320, "name": "decode", "kind": 32, "kindString": "Variable", @@ -32618,7 +33113,7 @@ } }, { - "id": 314, + "id": 319, "name": "encode", "kind": 32, "kindString": "Variable", @@ -32639,7 +33134,7 @@ } }, { - "id": 317, + "id": 322, "name": "headers", "kind": 32, "kindString": "Variable", @@ -32664,7 +33159,7 @@ { "type": "reflection", "declaration": { - "id": 318, + "id": 323, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32673,7 +33168,7 @@ }, "indexSignature": [ { - "id": 319, + "id": 324, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -32682,7 +33177,7 @@ }, "parameters": [ { - "id": 320, + "id": 325, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -32707,7 +33202,7 @@ } }, { - "id": 311, + "id": 316, "name": "heartbeatIntervalMs", "kind": 32, "kindString": "Variable", @@ -32737,7 +33232,7 @@ } }, { - "id": 313, + "id": 318, "name": "logger", "kind": 32, "kindString": "Variable", @@ -32758,7 +33253,7 @@ } }, { - "id": 312, + "id": 317, "name": "longpollerTimeout", "kind": 32, "kindString": "Variable", @@ -32788,7 +33283,7 @@ } }, { - "id": 321, + "id": 326, "name": "params", "kind": 32, "kindString": "Variable", @@ -32813,7 +33308,7 @@ { "type": "reflection", "declaration": { - "id": 322, + "id": 327, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32822,7 +33317,7 @@ }, "indexSignature": [ { - "id": 323, + "id": 328, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -32831,7 +33326,7 @@ }, "parameters": [ { - "id": 324, + "id": 329, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -32856,7 +33351,7 @@ } }, { - "id": 316, + "id": 321, "name": "reconnectAfterMs", "kind": 32, "kindString": "Variable", @@ -32877,7 +33372,7 @@ } }, { - "id": 310, + "id": 315, "name": "timeout", "kind": 32, "kindString": "Variable", @@ -32907,7 +33402,7 @@ } }, { - "id": 309, + "id": 314, "name": "transport", "kind": 32, "kindString": "Variable", @@ -32933,16 +33428,16 @@ "title": "Variables", "kind": 32, "children": [ - 315, - 314, - 317, - 311, - 313, - 312, - 321, + 320, + 319, + 322, 316, - 310, - 309 + 318, + 317, + 326, + 321, + 315, + 314 ] } ], @@ -32957,7 +33452,7 @@ } }, { - "id": 331, + "id": 336, "name": "noop", "kind": 64, "kindString": "Function", @@ -32966,7 +33461,7 @@ }, "signatures": [ { - "id": 332, + "id": 337, "name": "noop", "kind": 4096, "kindString": "Call signature", @@ -32991,22 +33486,22 @@ "title": "Classes", "kind": 128, "children": [ - 201 + 202 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 325, - 307 + 330, + 312 ] }, { "title": "Functions", "kind": 64, "children": [ - 331 + 336 ] } ], @@ -33019,7 +33514,7 @@ ] }, { - "id": 96, + "id": 97, "name": "\"RealtimeSubscription\"", "kind": 1, "kindString": "Module", @@ -33029,7 +33524,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts", "children": [ { - "id": 97, + "id": 98, "name": "RealtimeSubscription", "kind": 128, "kindString": "Class", @@ -33038,7 +33533,7 @@ }, "children": [ { - "id": 105, + "id": 106, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -33047,7 +33542,7 @@ }, "signatures": [ { - "id": 109, + "id": 110, "name": "new RealtimeSubscription", "kind": 16384, "kindString": "Constructor signature", @@ -33056,7 +33551,7 @@ }, "parameters": [ { - "id": 110, + "id": 111, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -33069,7 +33564,7 @@ } }, { - "id": 111, + "id": 112, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -33083,7 +33578,7 @@ "defaultValue": "{}" }, { - "id": 112, + "id": 113, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -33092,14 +33587,14 @@ }, "type": { "type": "reference", - "id": 201, + "id": 202, "name": "RealtimeClient" } } ], "type": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } } @@ -33113,7 +33608,7 @@ ] }, { - "id": 98, + "id": 99, "name": "bindings", "kind": 1024, "kindString": "Property", @@ -33137,7 +33632,7 @@ "defaultValue": "[]" }, { - "id": 102, + "id": 103, "name": "joinPush", "kind": 1024, "kindString": "Property", @@ -33153,12 +33648,12 @@ ], "type": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } }, { - "id": 101, + "id": 102, "name": "joinedOnce", "kind": 1024, "kindString": "Property", @@ -33179,7 +33674,7 @@ "defaultValue": "false" }, { - "id": 107, + "id": 108, "name": "params", "kind": 1024, "kindString": "Property", @@ -33201,7 +33696,7 @@ } }, { - "id": 104, + "id": 105, "name": "pushBuffer", "kind": 1024, "kindString": "Property", @@ -33219,14 +33714,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } }, "defaultValue": "[]" }, { - "id": 103, + "id": 104, "name": "rejoinTimer", "kind": 1024, "kindString": "Property", @@ -33242,12 +33737,12 @@ ], "type": { "type": "reference", - "id": 29, + "id": 30, "name": "Timer" } }, { - "id": 108, + "id": 109, "name": "socket", "kind": 1024, "kindString": "Property", @@ -33265,12 +33760,12 @@ ], "type": { "type": "reference", - "id": 201, + "id": 202, "name": "RealtimeClient" } }, { - "id": 100, + "id": 101, "name": "state", "kind": 1024, "kindString": "Property", @@ -33292,7 +33787,7 @@ "defaultValue": "CHANNEL_STATES.closed" }, { - "id": 99, + "id": 100, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -33312,7 +33807,7 @@ } }, { - "id": 106, + "id": 107, "name": "topic", "kind": 1024, "kindString": "Property", @@ -33334,7 +33829,7 @@ } }, { - "id": 131, + "id": 132, "name": "canPush", "kind": 2048, "kindString": "Method", @@ -33343,7 +33838,7 @@ }, "signatures": [ { - "id": 132, + "id": 133, "name": "canPush", "kind": 4096, "kindString": "Call signature", @@ -33365,7 +33860,7 @@ ] }, { - "id": 165, + "id": 166, "name": "isClosed", "kind": 2048, "kindString": "Method", @@ -33374,7 +33869,7 @@ }, "signatures": [ { - "id": 166, + "id": 167, "name": "isClosed", "kind": 4096, "kindString": "Call signature", @@ -33396,7 +33891,7 @@ ] }, { - "id": 167, + "id": 168, "name": "isErrored", "kind": 2048, "kindString": "Method", @@ -33405,7 +33900,7 @@ }, "signatures": [ { - "id": 168, + "id": 169, "name": "isErrored", "kind": 4096, "kindString": "Call signature", @@ -33427,7 +33922,7 @@ ] }, { - "id": 169, + "id": 170, "name": "isJoined", "kind": 2048, "kindString": "Method", @@ -33436,7 +33931,7 @@ }, "signatures": [ { - "id": 170, + "id": 171, "name": "isJoined", "kind": 4096, "kindString": "Call signature", @@ -33458,7 +33953,7 @@ ] }, { - "id": 171, + "id": 172, "name": "isJoining", "kind": 2048, "kindString": "Method", @@ -33467,7 +33962,7 @@ }, "signatures": [ { - "id": 172, + "id": 173, "name": "isJoining", "kind": 4096, "kindString": "Call signature", @@ -33489,7 +33984,7 @@ ] }, { - "id": 173, + "id": 174, "name": "isLeaving", "kind": 2048, "kindString": "Method", @@ -33498,7 +33993,7 @@ }, "signatures": [ { - "id": 174, + "id": 175, "name": "isLeaving", "kind": 4096, "kindString": "Call signature", @@ -33520,7 +34015,7 @@ ] }, { - "id": 146, + "id": 147, "name": "isMember", "kind": 2048, "kindString": "Method", @@ -33529,7 +34024,7 @@ }, "signatures": [ { - "id": 147, + "id": 148, "name": "isMember", "kind": 4096, "kindString": "Call signature", @@ -33538,7 +34033,7 @@ }, "parameters": [ { - "id": 148, + "id": 149, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -33566,7 +34061,7 @@ ] }, { - "id": 149, + "id": 150, "name": "joinRef", "kind": 2048, "kindString": "Method", @@ -33575,7 +34070,7 @@ }, "signatures": [ { - "id": 150, + "id": 151, "name": "joinRef", "kind": 4096, "kindString": "Call signature", @@ -33597,7 +34092,7 @@ ] }, { - "id": 128, + "id": 129, "name": "off", "kind": 2048, "kindString": "Method", @@ -33606,7 +34101,7 @@ }, "signatures": [ { - "id": 129, + "id": 130, "name": "off", "kind": 4096, "kindString": "Call signature", @@ -33615,7 +34110,7 @@ }, "parameters": [ { - "id": 130, + "id": 131, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -33643,7 +34138,7 @@ ] }, { - "id": 124, + "id": 125, "name": "on", "kind": 2048, "kindString": "Method", @@ -33652,7 +34147,7 @@ }, "signatures": [ { - "id": 125, + "id": 126, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -33661,7 +34156,7 @@ }, "parameters": [ { - "id": 126, + "id": 127, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -33674,7 +34169,7 @@ } }, { - "id": 127, + "id": 128, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -33702,7 +34197,7 @@ ] }, { - "id": 118, + "id": 119, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -33711,7 +34206,7 @@ }, "signatures": [ { - "id": 119, + "id": 120, "name": "onClose", "kind": 4096, "kindString": "Call signature", @@ -33720,7 +34215,7 @@ }, "parameters": [ { - "id": 120, + "id": 121, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -33748,7 +34243,7 @@ ] }, { - "id": 121, + "id": 122, "name": "onError", "kind": 2048, "kindString": "Method", @@ -33757,7 +34252,7 @@ }, "signatures": [ { - "id": 122, + "id": 123, "name": "onError", "kind": 4096, "kindString": "Call signature", @@ -33766,7 +34261,7 @@ }, "parameters": [ { - "id": 123, + "id": 124, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -33794,7 +34289,7 @@ ] }, { - "id": 141, + "id": 142, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -33803,7 +34298,7 @@ }, "signatures": [ { - "id": 142, + "id": 143, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -33816,7 +34311,7 @@ }, "parameters": [ { - "id": 143, + "id": 144, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -33829,7 +34324,7 @@ } }, { - "id": 144, + "id": 145, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -33842,7 +34337,7 @@ } }, { - "id": 145, + "id": 146, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -33880,7 +34375,7 @@ ] }, { - "id": 133, + "id": 134, "name": "push", "kind": 2048, "kindString": "Method", @@ -33889,7 +34384,7 @@ }, "signatures": [ { - "id": 134, + "id": 135, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -33898,7 +34393,7 @@ }, "parameters": [ { - "id": 135, + "id": 136, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -33912,7 +34407,7 @@ } }, { - "id": 136, + "id": 137, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -33925,7 +34420,7 @@ } }, { - "id": 137, + "id": 138, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -33941,7 +34436,7 @@ ], "type": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } } @@ -33955,7 +34450,7 @@ ] }, { - "id": 154, + "id": 155, "name": "rejoin", "kind": 2048, "kindString": "Method", @@ -33964,7 +34459,7 @@ }, "signatures": [ { - "id": 155, + "id": 156, "name": "rejoin", "kind": 4096, "kindString": "Call signature", @@ -33973,7 +34468,7 @@ }, "parameters": [ { - "id": 156, + "id": 157, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -34002,7 +34497,7 @@ ] }, { - "id": 113, + "id": 114, "name": "rejoinUntilConnected", "kind": 2048, "kindString": "Method", @@ -34011,7 +34506,7 @@ }, "signatures": [ { - "id": 114, + "id": 115, "name": "rejoinUntilConnected", "kind": 4096, "kindString": "Call signature", @@ -34033,7 +34528,7 @@ ] }, { - "id": 162, + "id": 163, "name": "replyEventName", "kind": 2048, "kindString": "Method", @@ -34042,7 +34537,7 @@ }, "signatures": [ { - "id": 163, + "id": 164, "name": "replyEventName", "kind": 4096, "kindString": "Call signature", @@ -34051,7 +34546,7 @@ }, "parameters": [ { - "id": 164, + "id": 165, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -34079,7 +34574,7 @@ ] }, { - "id": 151, + "id": 152, "name": "sendJoin", "kind": 2048, "kindString": "Method", @@ -34088,7 +34583,7 @@ }, "signatures": [ { - "id": 152, + "id": 153, "name": "sendJoin", "kind": 4096, "kindString": "Call signature", @@ -34097,7 +34592,7 @@ }, "parameters": [ { - "id": 153, + "id": 154, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -34125,7 +34620,7 @@ ] }, { - "id": 115, + "id": 116, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -34134,7 +34629,7 @@ }, "signatures": [ { - "id": 116, + "id": 117, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -34143,7 +34638,7 @@ }, "parameters": [ { - "id": 117, + "id": 118, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -34159,7 +34654,7 @@ ], "type": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } } @@ -34173,7 +34668,7 @@ ] }, { - "id": 157, + "id": 158, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -34182,7 +34677,7 @@ }, "signatures": [ { - "id": 158, + "id": 159, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -34191,7 +34686,7 @@ }, "parameters": [ { - "id": 159, + "id": 160, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -34204,7 +34699,7 @@ } }, { - "id": 160, + "id": 161, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -34218,7 +34713,7 @@ } }, { - "id": 161, + "id": 162, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -34256,7 +34751,7 @@ ] }, { - "id": 138, + "id": 139, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -34265,7 +34760,7 @@ }, "signatures": [ { - "id": 139, + "id": 140, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -34278,7 +34773,7 @@ }, "parameters": [ { - "id": 140, + "id": 141, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -34294,7 +34789,7 @@ ], "type": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } } @@ -34313,50 +34808,50 @@ "title": "Constructors", "kind": 512, "children": [ - 105 + 106 ] }, { "title": "Properties", "kind": 1024, "children": [ - 98, - 102, - 101, - 107, - 104, - 103, - 108, - 100, 99, - 106 + 103, + 102, + 108, + 105, + 104, + 109, + 101, + 100, + 107 ] }, { "title": "Methods", "kind": 2048, "children": [ - 131, - 165, - 167, - 169, - 171, - 173, - 146, - 149, - 128, - 124, - 118, - 121, - 141, - 133, - 154, - 113, - 162, - 151, - 115, - 157, - 138 + 132, + 166, + 168, + 170, + 172, + 174, + 147, + 150, + 129, + 125, + 119, + 122, + 142, + 134, + 155, + 114, + 163, + 152, + 116, + 158, + 139 ] } ], @@ -34374,7 +34869,7 @@ "title": "Classes", "kind": 128, "children": [ - 97 + 98 ] } ], @@ -34387,7 +34882,7 @@ ] }, { - "id": 407, + "id": 412, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -34422,6 +34917,23 @@ "isExported": true }, "children": [ + { + "id": 21, + "name": "access_token", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 32, + "character": 14 + } + ], + "defaultValue": "\"access_token\"" + }, { "id": 16, "name": "close", @@ -34513,6 +35025,7 @@ "title": "Enumeration members", "kind": 16, "children": [ + 21, 16, 17, 18, @@ -34744,7 +35257,7 @@ ] }, { - "id": 21, + "id": 22, "name": "TRANSPORTS", "kind": 4, "kindString": "Enumeration", @@ -34753,7 +35266,7 @@ }, "children": [ { - "id": 22, + "id": 23, "name": "websocket", "kind": 16, "kindString": "Enumeration member", @@ -34763,7 +35276,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 35, + "line": 36, "character": 11 } ], @@ -34775,20 +35288,20 @@ "title": "Enumeration members", "kind": 16, "children": [ - 22 + 23 ] } ], "sources": [ { "fileName": "lib/constants.ts", - "line": 34, + "line": 35, "character": 22 } ] }, { - "id": 26, + "id": 27, "name": "DEFAULT_TIMEOUT", "kind": 32, "kindString": "Variable", @@ -34810,7 +35323,7 @@ "defaultValue": "10000" }, { - "id": 25, + "id": 26, "name": "VSN", "kind": 32, "kindString": "Variable", @@ -34832,7 +35345,7 @@ "defaultValue": "\"1.0.0\"" }, { - "id": 27, + "id": 28, "name": "WS_CLOSE_NORMAL", "kind": 32, "kindString": "Variable", @@ -34854,7 +35367,7 @@ "defaultValue": "1000" }, { - "id": 23, + "id": 24, "name": "DEFAULT_HEADERS", "kind": 2097152, "kindString": "Object literal", @@ -34864,7 +35377,7 @@ }, "children": [ { - "id": 24, + "id": 25, "name": "X-Client-Info", "kind": 32, "kindString": "Variable", @@ -34890,7 +35403,7 @@ "title": "Variables", "kind": 32, "children": [ - 24 + 25 ] } ], @@ -34915,23 +35428,23 @@ 15, 9, 4, - 21 + 22 ] }, { "title": "Variables", "kind": 32, "children": [ + 27, 26, - 25, - 27 + 28 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 23 + 24 ] } ], @@ -34944,7 +35457,7 @@ ] }, { - "id": 42, + "id": 43, "name": "\"lib/push\"", "kind": 1, "kindString": "Module", @@ -34954,7 +35467,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/push.ts", "children": [ { - "id": 43, + "id": 44, "name": "Push", "kind": 128, "kindString": "Class", @@ -34963,7 +35476,7 @@ }, "children": [ { - "id": 56, + "id": 57, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -34975,7 +35488,7 @@ }, "signatures": [ { - "id": 61, + "id": 62, "name": "new Push", "kind": 16384, "kindString": "Constructor signature", @@ -34987,7 +35500,7 @@ }, "parameters": [ { - "id": 62, + "id": 63, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -34999,12 +35512,12 @@ }, "type": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } }, { - "id": 63, + "id": 64, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -35020,7 +35533,7 @@ } }, { - "id": 64, + "id": 65, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -35037,7 +35550,7 @@ "defaultValue": "{}" }, { - "id": 65, + "id": 66, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -35056,7 +35569,7 @@ ], "type": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } } @@ -35070,7 +35583,7 @@ ] }, { - "id": 57, + "id": 58, "name": "channel", "kind": 1024, "kindString": "Property", @@ -35091,12 +35604,12 @@ ], "type": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } }, { - "id": 58, + "id": 59, "name": "event", "kind": 1024, "kindString": "Property", @@ -35121,7 +35634,7 @@ } }, { - "id": 59, + "id": 60, "name": "payload", "kind": 1024, "kindString": "Property", @@ -35146,7 +35659,7 @@ } }, { - "id": 51, + "id": 52, "name": "recHooks", "kind": 1024, "kindString": "Property", @@ -35165,7 +35678,7 @@ "elementType": { "type": "reflection", "declaration": { - "id": 52, + "id": 53, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -35174,7 +35687,7 @@ }, "children": [ { - "id": 54, + "id": 55, "name": "callback", "kind": 32, "kindString": "Variable", @@ -35194,7 +35707,7 @@ } }, { - "id": 53, + "id": 54, "name": "status", "kind": 32, "kindString": "Variable", @@ -35219,8 +35732,8 @@ "title": "Variables", "kind": 32, "children": [ - 54, - 53 + 55, + 54 ] } ], @@ -35237,7 +35750,7 @@ "defaultValue": "[]" }, { - "id": 47, + "id": 48, "name": "receivedResp", "kind": 1024, "kindString": "Property", @@ -35257,7 +35770,7 @@ { "type": "reflection", "declaration": { - "id": 48, + "id": 49, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -35266,7 +35779,7 @@ }, "children": [ { - "id": 50, + "id": 51, "name": "response", "kind": 32, "kindString": "Variable", @@ -35286,7 +35799,7 @@ } }, { - "id": 49, + "id": 50, "name": "status", "kind": 32, "kindString": "Variable", @@ -35311,8 +35824,8 @@ "title": "Variables", "kind": 32, "children": [ - 50, - 49 + 51, + 50 ] } ], @@ -35334,7 +35847,7 @@ "defaultValue": "null" }, { - "id": 46, + "id": 47, "name": "ref", "kind": 1024, "kindString": "Property", @@ -35355,7 +35868,7 @@ "defaultValue": "\"\"" }, { - "id": 55, + "id": 56, "name": "refEvent", "kind": 1024, "kindString": "Property", @@ -35385,7 +35898,7 @@ "defaultValue": "null" }, { - "id": 44, + "id": 45, "name": "sent", "kind": 1024, "kindString": "Property", @@ -35406,7 +35919,7 @@ "defaultValue": "false" }, { - "id": 60, + "id": 61, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -35431,7 +35944,7 @@ } }, { - "id": 45, + "id": 46, "name": "timeoutTimer", "kind": 1024, "kindString": "Property", @@ -35461,7 +35974,7 @@ "defaultValue": "undefined" }, { - "id": 83, + "id": 84, "name": "_cancelRefEvent", "kind": 2048, "kindString": "Method", @@ -35471,7 +35984,7 @@ }, "signatures": [ { - "id": 84, + "id": 85, "name": "_cancelRefEvent", "kind": 4096, "kindString": "Call signature", @@ -35493,7 +36006,7 @@ ] }, { - "id": 85, + "id": 86, "name": "_cancelTimeout", "kind": 2048, "kindString": "Method", @@ -35503,7 +36016,7 @@ }, "signatures": [ { - "id": 86, + "id": 87, "name": "_cancelTimeout", "kind": 4096, "kindString": "Call signature", @@ -35525,7 +36038,7 @@ ] }, { - "id": 93, + "id": 94, "name": "_hasReceived", "kind": 2048, "kindString": "Method", @@ -35535,7 +36048,7 @@ }, "signatures": [ { - "id": 94, + "id": 95, "name": "_hasReceived", "kind": 4096, "kindString": "Call signature", @@ -35544,7 +36057,7 @@ }, "parameters": [ { - "id": 95, + "id": 96, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -35585,7 +36098,7 @@ ] }, { - "id": 87, + "id": 88, "name": "_matchReceive", "kind": 2048, "kindString": "Method", @@ -35595,7 +36108,7 @@ }, "signatures": [ { - "id": 88, + "id": 89, "name": "_matchReceive", "kind": 4096, "kindString": "Call signature", @@ -35604,7 +36117,7 @@ }, "parameters": [ { - "id": 89, + "id": 90, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -35615,7 +36128,7 @@ "type": { "type": "reflection", "declaration": { - "id": 90, + "id": 91, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -35624,7 +36137,7 @@ }, "children": [ { - "id": 92, + "id": 93, "name": "response", "kind": 32, "kindString": "Variable", @@ -35644,7 +36157,7 @@ } }, { - "id": 91, + "id": 92, "name": "status", "kind": 32, "kindString": "Variable", @@ -35669,8 +36182,8 @@ "title": "Variables", "kind": 32, "children": [ - 92, - 91 + 93, + 92 ] } ], @@ -35700,7 +36213,7 @@ ] }, { - "id": 81, + "id": 82, "name": "destroy", "kind": 2048, "kindString": "Method", @@ -35709,7 +36222,7 @@ }, "signatures": [ { - "id": 82, + "id": 83, "name": "destroy", "kind": 4096, "kindString": "Call signature", @@ -35731,7 +36244,7 @@ ] }, { - "id": 71, + "id": 72, "name": "receive", "kind": 2048, "kindString": "Method", @@ -35740,7 +36253,7 @@ }, "signatures": [ { - "id": 72, + "id": 73, "name": "receive", "kind": 4096, "kindString": "Call signature", @@ -35749,7 +36262,7 @@ }, "parameters": [ { - "id": 73, + "id": 74, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -35762,7 +36275,7 @@ } }, { - "id": 74, + "id": 75, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -35790,7 +36303,7 @@ ] }, { - "id": 66, + "id": 67, "name": "resend", "kind": 2048, "kindString": "Method", @@ -35799,7 +36312,7 @@ }, "signatures": [ { - "id": 67, + "id": 68, "name": "resend", "kind": 4096, "kindString": "Call signature", @@ -35808,7 +36321,7 @@ }, "parameters": [ { - "id": 68, + "id": 69, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -35836,7 +36349,7 @@ ] }, { - "id": 69, + "id": 70, "name": "send", "kind": 2048, "kindString": "Method", @@ -35845,7 +36358,7 @@ }, "signatures": [ { - "id": 70, + "id": 71, "name": "send", "kind": 4096, "kindString": "Call signature", @@ -35867,7 +36380,7 @@ ] }, { - "id": 75, + "id": 76, "name": "startTimeout", "kind": 2048, "kindString": "Method", @@ -35876,7 +36389,7 @@ }, "signatures": [ { - "id": 76, + "id": 77, "name": "startTimeout", "kind": 4096, "kindString": "Call signature", @@ -35898,7 +36411,7 @@ ] }, { - "id": 77, + "id": 78, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -35907,7 +36420,7 @@ }, "signatures": [ { - "id": 78, + "id": 79, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -35916,7 +36429,7 @@ }, "parameters": [ { - "id": 79, + "id": 80, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -35929,7 +36442,7 @@ } }, { - "id": 80, + "id": 81, "name": "response", "kind": 32768, "kindString": "Parameter", @@ -35962,39 +36475,39 @@ "title": "Constructors", "kind": 512, "children": [ - 56 + 57 ] }, { "title": "Properties", "kind": 1024, "children": [ - 57, 58, 59, - 51, - 47, - 46, - 55, - 44, 60, - 45 + 52, + 48, + 47, + 56, + 45, + 61, + 46 ] }, { "title": "Methods", "kind": 2048, "children": [ - 83, - 85, - 93, - 87, - 81, - 71, - 66, - 69, - 75, - 77 + 84, + 86, + 94, + 88, + 82, + 72, + 67, + 70, + 76, + 78 ] } ], @@ -36012,7 +36525,7 @@ "title": "Classes", "kind": 128, "children": [ - 43 + 44 ] } ], @@ -36025,7 +36538,7 @@ ] }, { - "id": 175, + "id": 176, "name": "\"lib/serializer\"", "kind": 1, "kindString": "Module", @@ -36035,7 +36548,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts", "children": [ { - "id": 176, + "id": 177, "name": "Serializer", "kind": 128, "kindString": "Class", @@ -36044,7 +36557,7 @@ }, "children": [ { - "id": 177, + "id": 178, "name": "HEADER_LENGTH", "kind": 1024, "kindString": "Property", @@ -36065,7 +36578,7 @@ "defaultValue": "1" }, { - "id": 182, + "id": 183, "name": "_binaryDecode", "kind": 2048, "kindString": "Method", @@ -36075,7 +36588,7 @@ }, "signatures": [ { - "id": 183, + "id": 184, "name": "_binaryDecode", "kind": 4096, "kindString": "Call signature", @@ -36084,7 +36597,7 @@ }, "parameters": [ { - "id": 184, + "id": 185, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -36100,7 +36613,7 @@ "type": { "type": "reflection", "declaration": { - "id": 185, + "id": 186, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -36109,7 +36622,7 @@ }, "children": [ { - "id": 188, + "id": 189, "name": "event", "kind": 32, "kindString": "Variable", @@ -36129,7 +36642,7 @@ } }, { - "id": 189, + "id": 190, "name": "payload", "kind": 32, "kindString": "Variable", @@ -36149,7 +36662,7 @@ } }, { - "id": 186, + "id": 187, "name": "ref", "kind": 32, "kindString": "Variable", @@ -36169,7 +36682,7 @@ } }, { - "id": 187, + "id": 188, "name": "topic", "kind": 32, "kindString": "Variable", @@ -36194,10 +36707,10 @@ "title": "Variables", "kind": 32, "children": [ - 188, 189, - 186, - 187 + 190, + 187, + 188 ] } ] @@ -36214,7 +36727,7 @@ ] }, { - "id": 190, + "id": 191, "name": "_decodeBroadcast", "kind": 2048, "kindString": "Method", @@ -36224,7 +36737,7 @@ }, "signatures": [ { - "id": 191, + "id": 192, "name": "_decodeBroadcast", "kind": 4096, "kindString": "Call signature", @@ -36233,7 +36746,7 @@ }, "parameters": [ { - "id": 192, + "id": 193, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -36246,7 +36759,7 @@ } }, { - "id": 193, + "id": 194, "name": "view", "kind": 32768, "kindString": "Parameter", @@ -36259,7 +36772,7 @@ } }, { - "id": 194, + "id": 195, "name": "decoder", "kind": 32768, "kindString": "Parameter", @@ -36275,7 +36788,7 @@ "type": { "type": "reflection", "declaration": { - "id": 195, + "id": 196, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -36284,7 +36797,7 @@ }, "children": [ { - "id": 198, + "id": 199, "name": "event", "kind": 32, "kindString": "Variable", @@ -36304,7 +36817,7 @@ } }, { - "id": 199, + "id": 200, "name": "payload", "kind": 32, "kindString": "Variable", @@ -36324,7 +36837,7 @@ } }, { - "id": 196, + "id": 197, "name": "ref", "kind": 32, "kindString": "Variable", @@ -36344,7 +36857,7 @@ } }, { - "id": 197, + "id": 198, "name": "topic", "kind": 32, "kindString": "Variable", @@ -36369,10 +36882,10 @@ "title": "Variables", "kind": 32, "children": [ - 198, 199, - 196, - 197 + 200, + 197, + 198 ] } ], @@ -36396,7 +36909,7 @@ ] }, { - "id": 178, + "id": 179, "name": "decode", "kind": 2048, "kindString": "Method", @@ -36405,7 +36918,7 @@ }, "signatures": [ { - "id": 179, + "id": 180, "name": "decode", "kind": 4096, "kindString": "Call signature", @@ -36414,7 +36927,7 @@ }, "parameters": [ { - "id": 180, + "id": 181, "name": "rawPayload", "kind": 32768, "kindString": "Parameter", @@ -36436,7 +36949,7 @@ } }, { - "id": 181, + "id": 182, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -36469,16 +36982,16 @@ "title": "Properties", "kind": 1024, "children": [ - 177 + 178 ] }, { "title": "Methods", "kind": 2048, "children": [ - 182, - 190, - 178 + 183, + 191, + 179 ] } ], @@ -36496,7 +37009,7 @@ "title": "Classes", "kind": 128, "children": [ - 176 + 177 ] } ], @@ -36509,7 +37022,7 @@ ] }, { - "id": 28, + "id": 29, "name": "\"lib/timer\"", "kind": 1, "kindString": "Module", @@ -36519,7 +37032,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/timer.ts", "children": [ { - "id": 29, + "id": 30, "name": "Timer", "kind": 128, "kindString": "Class", @@ -36537,7 +37050,7 @@ }, "children": [ { - "id": 32, + "id": 33, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -36546,7 +37059,7 @@ }, "signatures": [ { - "id": 35, + "id": 36, "name": "new Timer", "kind": 16384, "kindString": "Constructor signature", @@ -36555,7 +37068,7 @@ }, "parameters": [ { - "id": 36, + "id": 37, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -36568,7 +37081,7 @@ } }, { - "id": 37, + "id": 38, "name": "timerCalc", "kind": 32768, "kindString": "Parameter", @@ -36583,7 +37096,7 @@ ], "type": { "type": "reference", - "id": 29, + "id": 30, "name": "Timer" } } @@ -36597,7 +37110,7 @@ ] }, { - "id": 33, + "id": 34, "name": "callback", "kind": 1024, "kindString": "Property", @@ -36619,7 +37132,7 @@ } }, { - "id": 30, + "id": 31, "name": "timer", "kind": 1024, "kindString": "Property", @@ -36649,7 +37162,7 @@ "defaultValue": "undefined" }, { - "id": 34, + "id": 35, "name": "timerCalc", "kind": 1024, "kindString": "Property", @@ -36671,7 +37184,7 @@ } }, { - "id": 31, + "id": 32, "name": "tries", "kind": 1024, "kindString": "Property", @@ -36692,7 +37205,7 @@ "defaultValue": "0" }, { - "id": 38, + "id": 39, "name": "reset", "kind": 2048, "kindString": "Method", @@ -36701,7 +37214,7 @@ }, "signatures": [ { - "id": 39, + "id": 40, "name": "reset", "kind": 4096, "kindString": "Call signature", @@ -36723,7 +37236,7 @@ ] }, { - "id": 40, + "id": 41, "name": "scheduleTimeout", "kind": 2048, "kindString": "Method", @@ -36732,7 +37245,7 @@ }, "signatures": [ { - "id": 41, + "id": 42, "name": "scheduleTimeout", "kind": 4096, "kindString": "Call signature", @@ -36759,25 +37272,25 @@ "title": "Constructors", "kind": 512, "children": [ - 32 + 33 ] }, { "title": "Properties", "kind": 1024, "children": [ - 33, - 30, 34, - 31 + 31, + 35, + 32 ] }, { "title": "Methods", "kind": 2048, "children": [ - 38, - 40 + 39, + 41 ] } ], @@ -36795,7 +37308,7 @@ "title": "Classes", "kind": 128, "children": [ - 29 + 30 ] } ], @@ -36808,7 +37321,7 @@ ] }, { - "id": 333, + "id": 338, "name": "\"lib/transformers\"", "kind": 1, "kindString": "Module", @@ -36818,7 +37331,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts", "children": [ { - "id": 334, + "id": 339, "name": "PostgresTypes", "kind": 4, "kindString": "Enumeration", @@ -36830,7 +37343,7 @@ }, "children": [ { - "id": 335, + "id": 340, "name": "abstime", "kind": 16, "kindString": "Enumeration member", @@ -36847,7 +37360,7 @@ "defaultValue": "\"abstime\"" }, { - "id": 336, + "id": 341, "name": "bool", "kind": 16, "kindString": "Enumeration member", @@ -36864,7 +37377,7 @@ "defaultValue": "\"bool\"" }, { - "id": 337, + "id": 342, "name": "date", "kind": 16, "kindString": "Enumeration member", @@ -36881,7 +37394,7 @@ "defaultValue": "\"date\"" }, { - "id": 338, + "id": 343, "name": "daterange", "kind": 16, "kindString": "Enumeration member", @@ -36898,7 +37411,7 @@ "defaultValue": "\"daterange\"" }, { - "id": 339, + "id": 344, "name": "float4", "kind": 16, "kindString": "Enumeration member", @@ -36915,7 +37428,7 @@ "defaultValue": "\"float4\"" }, { - "id": 340, + "id": 345, "name": "float8", "kind": 16, "kindString": "Enumeration member", @@ -36932,7 +37445,7 @@ "defaultValue": "\"float8\"" }, { - "id": 341, + "id": 346, "name": "int2", "kind": 16, "kindString": "Enumeration member", @@ -36949,7 +37462,7 @@ "defaultValue": "\"int2\"" }, { - "id": 342, + "id": 347, "name": "int4", "kind": 16, "kindString": "Enumeration member", @@ -36966,7 +37479,7 @@ "defaultValue": "\"int4\"" }, { - "id": 343, + "id": 348, "name": "int4range", "kind": 16, "kindString": "Enumeration member", @@ -36983,7 +37496,7 @@ "defaultValue": "\"int4range\"" }, { - "id": 344, + "id": 349, "name": "int8", "kind": 16, "kindString": "Enumeration member", @@ -37000,7 +37513,7 @@ "defaultValue": "\"int8\"" }, { - "id": 345, + "id": 350, "name": "int8range", "kind": 16, "kindString": "Enumeration member", @@ -37017,7 +37530,7 @@ "defaultValue": "\"int8range\"" }, { - "id": 346, + "id": 351, "name": "json", "kind": 16, "kindString": "Enumeration member", @@ -37034,7 +37547,7 @@ "defaultValue": "\"json\"" }, { - "id": 347, + "id": 352, "name": "jsonb", "kind": 16, "kindString": "Enumeration member", @@ -37051,7 +37564,7 @@ "defaultValue": "\"jsonb\"" }, { - "id": 348, + "id": 353, "name": "money", "kind": 16, "kindString": "Enumeration member", @@ -37068,7 +37581,7 @@ "defaultValue": "\"money\"" }, { - "id": 349, + "id": 354, "name": "numeric", "kind": 16, "kindString": "Enumeration member", @@ -37085,7 +37598,7 @@ "defaultValue": "\"numeric\"" }, { - "id": 350, + "id": 355, "name": "oid", "kind": 16, "kindString": "Enumeration member", @@ -37102,7 +37615,7 @@ "defaultValue": "\"oid\"" }, { - "id": 351, + "id": 356, "name": "reltime", "kind": 16, "kindString": "Enumeration member", @@ -37119,7 +37632,7 @@ "defaultValue": "\"reltime\"" }, { - "id": 352, + "id": 357, "name": "text", "kind": 16, "kindString": "Enumeration member", @@ -37136,7 +37649,7 @@ "defaultValue": "\"text\"" }, { - "id": 353, + "id": 358, "name": "time", "kind": 16, "kindString": "Enumeration member", @@ -37153,7 +37666,7 @@ "defaultValue": "\"time\"" }, { - "id": 354, + "id": 359, "name": "timestamp", "kind": 16, "kindString": "Enumeration member", @@ -37170,7 +37683,7 @@ "defaultValue": "\"timestamp\"" }, { - "id": 355, + "id": 360, "name": "timestamptz", "kind": 16, "kindString": "Enumeration member", @@ -37187,7 +37700,7 @@ "defaultValue": "\"timestamptz\"" }, { - "id": 356, + "id": 361, "name": "timetz", "kind": 16, "kindString": "Enumeration member", @@ -37204,7 +37717,7 @@ "defaultValue": "\"timetz\"" }, { - "id": 357, + "id": 362, "name": "tsrange", "kind": 16, "kindString": "Enumeration member", @@ -37221,7 +37734,7 @@ "defaultValue": "\"tsrange\"" }, { - "id": 358, + "id": 363, "name": "tstzrange", "kind": 16, "kindString": "Enumeration member", @@ -37243,11 +37756,6 @@ "title": "Enumeration members", "kind": 16, "children": [ - 335, - 336, - 337, - 338, - 339, 340, 341, 342, @@ -37266,7 +37774,12 @@ 355, 356, 357, - 358 + 358, + 359, + 360, + 361, + 362, + 363 ] } ], @@ -37279,7 +37792,7 @@ ] }, { - "id": 365, + "id": 370, "name": "BaseValue", "kind": 4194304, "kindString": "Type alias", @@ -37314,7 +37827,7 @@ } }, { - "id": 359, + "id": 364, "name": "Columns", "kind": 4194304, "kindString": "Type alias", @@ -37331,14 +37844,14 @@ "elementType": { "type": "reflection", "declaration": { - "id": 360, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 363, + "id": 368, "name": "flags", "kind": 32, "kindString": "Variable", @@ -37361,7 +37874,7 @@ } }, { - "id": 361, + "id": 366, "name": "name", "kind": 32, "kindString": "Variable", @@ -37379,7 +37892,7 @@ } }, { - "id": 362, + "id": 367, "name": "type", "kind": 32, "kindString": "Variable", @@ -37397,7 +37910,7 @@ } }, { - "id": 364, + "id": 369, "name": "type_modifier", "kind": 32, "kindString": "Variable", @@ -37431,10 +37944,10 @@ "title": "Variables", "kind": 32, "children": [ - 363, - 361, - 362, - 364 + 368, + 366, + 367, + 369 ] } ], @@ -37450,7 +37963,7 @@ } }, { - "id": 367, + "id": 372, "name": "Record", "kind": 4194304, "kindString": "Type alias", @@ -37465,21 +37978,21 @@ "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 369, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 375, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -37492,7 +38005,7 @@ ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -37508,7 +38021,7 @@ } }, { - "id": 366, + "id": 371, "name": "RecordValue", "kind": 4194304, "kindString": "Type alias", @@ -37525,14 +38038,14 @@ "types": [ { "type": "reference", - "id": 365, + "id": 370, "name": "BaseValue" }, { "type": "array", "elementType": { "type": "reference", - "id": 365, + "id": 370, "name": "BaseValue" } } @@ -37540,7 +38053,7 @@ } }, { - "id": 384, + "id": 389, "name": "convertCell", "kind": 64, "kindString": "Function", @@ -37567,7 +38080,7 @@ }, "signatures": [ { - "id": 385, + "id": 390, "name": "convertCell", "kind": 4096, "kindString": "Call signature", @@ -37593,7 +38106,7 @@ }, "parameters": [ { - "id": 386, + "id": 391, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -37609,7 +38122,7 @@ } }, { - "id": 387, + "id": 392, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -37618,14 +38131,14 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -37639,7 +38152,7 @@ ] }, { - "id": 371, + "id": 376, "name": "convertChangeData", "kind": 64, "kindString": "Function", @@ -37658,7 +38171,7 @@ }, "signatures": [ { - "id": 372, + "id": 377, "name": "convertChangeData", "kind": 4096, "kindString": "Call signature", @@ -37676,7 +38189,7 @@ }, "parameters": [ { - "id": 373, + "id": 378, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -37685,12 +38198,12 @@ }, "type": { "type": "reference", - "id": 359, + "id": 364, "name": "Columns" } }, { - "id": 374, + "id": 379, "name": "record", "kind": 32768, "kindString": "Parameter", @@ -37700,12 +38213,12 @@ "comment": {}, "type": { "type": "reference", - "id": 367, + "id": 372, "name": "Record" } }, { - "id": 375, + "id": 380, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -37718,7 +38231,7 @@ "type": { "type": "reflection", "declaration": { - "id": 376, + "id": 381, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -37727,7 +38240,7 @@ }, "children": [ { - "id": 377, + "id": 382, "name": "skipTypes", "kind": 32, "kindString": "Variable", @@ -37756,7 +38269,7 @@ "title": "Variables", "kind": 32, "children": [ - 377 + 382 ] } ], @@ -37774,7 +38287,7 @@ ], "type": { "type": "reference", - "id": 367, + "id": 372, "name": "Record" } } @@ -37788,7 +38301,7 @@ ] }, { - "id": 378, + "id": 383, "name": "convertColumn", "kind": 64, "kindString": "Function", @@ -37812,7 +38325,7 @@ }, "signatures": [ { - "id": 379, + "id": 384, "name": "convertColumn", "kind": 4096, "kindString": "Call signature", @@ -37835,7 +38348,7 @@ }, "parameters": [ { - "id": 380, + "id": 385, "name": "columnName", "kind": 32768, "kindString": "Parameter", @@ -37851,7 +38364,7 @@ } }, { - "id": 381, + "id": 386, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -37860,12 +38373,12 @@ }, "type": { "type": "reference", - "id": 359, + "id": 364, "name": "Columns" } }, { - "id": 382, + "id": 387, "name": "record", "kind": 32768, "kindString": "Parameter", @@ -37877,12 +38390,12 @@ }, "type": { "type": "reference", - "id": 367, + "id": 372, "name": "Record" } }, { - "id": 383, + "id": 388, "name": "skipTypes", "kind": 32768, "kindString": "Parameter", @@ -37903,7 +38416,7 @@ ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -37917,7 +38430,7 @@ ] }, { - "id": 388, + "id": 393, "name": "noop", "kind": 64, "kindString": "Function", @@ -37926,28 +38439,28 @@ }, "signatures": [ { - "id": 389, + "id": 394, "name": "noop", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 390, + "id": 395, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -37961,7 +38474,7 @@ ] }, { - "id": 400, + "id": 405, "name": "toArray", "kind": 64, "kindString": "Function", @@ -37988,7 +38501,7 @@ }, "signatures": [ { - "id": 401, + "id": 406, "name": "toArray", "kind": 4096, "kindString": "Call signature", @@ -38014,7 +38527,7 @@ }, "parameters": [ { - "id": 402, + "id": 407, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -38023,12 +38536,12 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } }, { - "id": 403, + "id": 408, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -38043,7 +38556,7 @@ ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -38057,7 +38570,7 @@ ] }, { - "id": 391, + "id": 396, "name": "toBoolean", "kind": 64, "kindString": "Function", @@ -38067,7 +38580,7 @@ }, "signatures": [ { - "id": 392, + "id": 397, "name": "toBoolean", "kind": 4096, "kindString": "Call signature", @@ -38076,7 +38589,7 @@ }, "parameters": [ { - "id": 393, + "id": 398, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -38085,14 +38598,14 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -38106,7 +38619,7 @@ ] }, { - "id": 397, + "id": 402, "name": "toJson", "kind": 64, "kindString": "Function", @@ -38116,7 +38629,7 @@ }, "signatures": [ { - "id": 398, + "id": 403, "name": "toJson", "kind": 4096, "kindString": "Call signature", @@ -38125,7 +38638,7 @@ }, "parameters": [ { - "id": 399, + "id": 404, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -38134,14 +38647,14 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -38155,7 +38668,7 @@ ] }, { - "id": 394, + "id": 399, "name": "toNumber", "kind": 64, "kindString": "Function", @@ -38165,7 +38678,7 @@ }, "signatures": [ { - "id": 395, + "id": 400, "name": "toNumber", "kind": 4096, "kindString": "Call signature", @@ -38174,7 +38687,7 @@ }, "parameters": [ { - "id": 396, + "id": 401, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -38183,14 +38696,14 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -38204,7 +38717,7 @@ ] }, { - "id": 404, + "id": 409, "name": "toTimestampString", "kind": 64, "kindString": "Function", @@ -38223,7 +38736,7 @@ }, "signatures": [ { - "id": 405, + "id": 410, "name": "toTimestampString", "kind": 4096, "kindString": "Call signature", @@ -38241,7 +38754,7 @@ }, "parameters": [ { - "id": 406, + "id": 411, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -38250,14 +38763,14 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -38276,32 +38789,32 @@ "title": "Enumerations", "kind": 4, "children": [ - 334 + 339 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 365, - 359, - 367, - 366 + 370, + 364, + 372, + 371 ] }, { "title": "Functions", "kind": 64, "children": [ - 384, - 371, - 378, - 388, - 400, - 391, - 397, - 394, - 404 + 389, + 376, + 383, + 393, + 405, + 396, + 402, + 399, + 409 ] } ], @@ -38369,14 +38882,14 @@ "title": "Modules", "kind": 1, "children": [ - 200, - 96, - 407, + 201, + 97, + 412, 3, - 42, - 175, - 28, - 333, + 43, + 176, + 29, + 338, 1 ] } diff --git a/web/spec/gotrue.json b/web/spec/gotrue.json index 791d546d119..1914c928cac 100644 --- a/web/spec/gotrue.json +++ b/web/spec/gotrue.json @@ -22,7 +22,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 20, + "line": 16, "character": 2 } ], @@ -60,13 +60,13 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 30, + "line": 26, "character": 4 } ], "type": { "type": "reference", - "id": 439, + "id": 455, "name": "CookieOptions" } }, @@ -81,7 +81,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 31, + "line": 27, "character": 4 } ], @@ -152,7 +152,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 27, + "line": 23, "character": 4 } ], @@ -199,7 +199,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 26, + "line": 22, "character": 4 } ], @@ -244,13 +244,13 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 17, + "line": 13, "character": 12 } ], "type": { "type": "reference", - "id": 439, + "id": 455, "name": "CookieOptions" } }, @@ -266,7 +266,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 18, + "line": 14, "character": 12 } ], @@ -337,7 +337,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 14, + "line": 10, "character": 12 } ], @@ -386,7 +386,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 13, + "line": 9, "character": 12 } ], @@ -406,7 +406,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 337, + "line": 333, "character": 10 } ], @@ -458,7 +458,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 47, + "line": 43, "character": 8 } ], @@ -485,7 +485,7 @@ }, "type": { "type": "reference", - "id": 426, + "id": 442, "name": "UserAttributes" } } @@ -514,7 +514,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 49, + "line": 45, "character": 15 } ], @@ -532,12 +532,13 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 49, + "line": 45, "character": 27 } ], "type": { "type": "reference", + "id": 394, "name": "ApiError" } } @@ -572,13 +573,13 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 49, + "line": 45, "character": 49 } ], "type": { "type": "reference", - "id": 401, + "id": 416, "name": "User" } }, @@ -591,7 +592,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 49, + "line": 45, "character": 61 } ], @@ -630,7 +631,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 428, + "line": 424, "character": 8 } ], @@ -696,7 +697,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 431, + "line": 427, "character": 34 } ], @@ -709,7 +710,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -724,7 +725,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 431, + "line": 427, "character": 53 } ], @@ -737,6 +738,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -751,7 +753,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 431, + "line": 427, "character": 15 } ], @@ -764,7 +766,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -799,7 +801,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 531, + "line": 527, "character": 8 } ], @@ -885,7 +887,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 536, + "line": 532, "character": 6 } ], @@ -905,7 +907,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 535, + "line": 531, "character": 6 } ], @@ -925,7 +927,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 537, + "line": 533, "character": 6 } ], @@ -972,7 +974,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 539, + "line": 535, "character": 15 } ], @@ -985,12 +987,12 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -1005,7 +1007,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 539, + "line": 535, "character": 44 } ], @@ -1018,6 +1020,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -1051,7 +1054,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 367, + "line": 363, "character": 2 } ], @@ -1077,7 +1080,7 @@ }, "type": { "type": "reference", - "id": 391, + "id": 392, "name": "Provider" } }, @@ -1107,7 +1110,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 370, + "line": 366, "character": 6 } ], @@ -1127,7 +1130,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 371, + "line": 367, "character": 6 } ], @@ -1167,7 +1170,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 388, + "line": 384, "character": 8 } ], @@ -1218,7 +1221,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 390, + "line": 386, "character": 34 } ], @@ -1231,7 +1234,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -1246,7 +1249,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 390, + "line": 386, "character": 53 } ], @@ -1259,6 +1262,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -1273,7 +1277,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 390, + "line": 386, "character": 15 } ], @@ -1286,7 +1290,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -1321,7 +1325,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 499, + "line": 495, "character": 8 } ], @@ -1369,7 +1373,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 502, + "line": 498, "character": 4 } ], @@ -1382,7 +1386,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -1397,7 +1401,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 503, + "line": 499, "character": 4 } ], @@ -1410,6 +1414,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -1424,7 +1429,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 500, + "line": 496, "character": 4 } ], @@ -1451,7 +1456,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 501, + "line": 497, "character": 4 } ], @@ -1464,7 +1469,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -1500,7 +1505,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 278, + "line": 274, "character": 8 } ], @@ -1555,7 +1560,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 282, + "line": 278, "character": 6 } ], @@ -1575,7 +1580,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 281, + "line": 277, "character": 6 } ], @@ -1621,7 +1626,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 284, + "line": 280, "character": 15 } ], @@ -1634,7 +1639,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -1649,7 +1654,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 284, + "line": 280, "character": 34 } ], @@ -1662,6 +1667,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -1695,7 +1701,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 65, + "line": 61, "character": 8 } ], @@ -1734,7 +1740,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 65, + "line": 61, "character": 31 } ], @@ -1752,12 +1758,13 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 65, + "line": 61, "character": 43 } ], "type": { "type": "reference", + "id": 394, "name": "ApiError" } } @@ -1792,7 +1799,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 65, + "line": 61, "character": 65 } ], @@ -1800,7 +1807,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 401, + "id": 416, "name": "User" } } @@ -1814,7 +1821,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 65, + "line": 61, "character": 79 } ], @@ -1853,7 +1860,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 451, + "line": 447, "character": 8 } ], @@ -1904,7 +1911,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 453, + "line": 449, "character": 15 } ], @@ -1917,7 +1924,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -1932,7 +1939,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 453, + "line": 449, "character": 37 } ], @@ -1945,6 +1952,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -1978,7 +1986,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 308, + "line": 304, "character": 8 } ], @@ -2033,7 +2041,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 311, + "line": 307, "character": 6 } ], @@ -2078,7 +2086,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 313, + "line": 309, "character": 15 } ], @@ -2111,7 +2119,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 313, + "line": 309, "character": 32 } ], @@ -2124,6 +2132,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -2157,7 +2166,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 207, + "line": 203, "character": 8 } ], @@ -2212,7 +2221,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 210, + "line": 206, "character": 6 } ], @@ -2257,7 +2266,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 212, + "line": 208, "character": 15 } ], @@ -2290,7 +2299,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 212, + "line": 208, "character": 32 } ], @@ -2303,6 +2312,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -2336,7 +2346,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 235, + "line": 231, "character": 8 } ], @@ -2387,7 +2397,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 235, + "line": 231, "character": 48 } ], @@ -2420,7 +2430,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 235, + "line": 231, "character": 65 } ], @@ -2433,6 +2443,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -2466,7 +2477,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 473, + "line": 469, "character": 2 } ], @@ -2520,7 +2531,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 120, + "line": 116, "character": 8 } ], @@ -2589,7 +2600,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 124, + "line": 120, "character": 6 } ], @@ -2634,7 +2645,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 126, + "line": 122, "character": 15 } ], @@ -2647,7 +2658,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -2662,7 +2673,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 126, + "line": 122, "character": 37 } ], @@ -2675,6 +2686,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -2708,7 +2720,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 181, + "line": 177, "character": 8 } ], @@ -2773,7 +2785,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 184, + "line": 180, "character": 15 } ], @@ -2786,7 +2798,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -2801,7 +2813,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 184, + "line": 180, "character": 37 } ], @@ -2814,6 +2826,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -2847,7 +2860,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 347, + "line": 343, "character": 8 } ], @@ -2898,7 +2911,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 347, + "line": 343, "character": 40 } ], @@ -2911,6 +2924,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -2943,7 +2957,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 86, + "line": 82, "character": 8 } ], @@ -3013,7 +3027,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 91, + "line": 87, "character": 6 } ], @@ -3033,7 +3047,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 90, + "line": 86, "character": 6 } ], @@ -3079,7 +3093,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 93, + "line": 89, "character": 15 } ], @@ -3092,12 +3106,12 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -3112,7 +3126,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 93, + "line": 89, "character": 44 } ], @@ -3125,6 +3139,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -3158,7 +3173,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 153, + "line": 149, "character": 8 } ], @@ -3227,7 +3242,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 157, + "line": 153, "character": 6 } ], @@ -3272,7 +3287,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 159, + "line": 155, "character": 15 } ], @@ -3285,12 +3300,12 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -3305,7 +3320,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 159, + "line": 155, "character": 44 } ], @@ -3318,6 +3333,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -3351,7 +3367,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 406, + "line": 402, "character": 8 } ], @@ -3391,7 +3407,7 @@ }, "type": { "type": "reference", - "id": 426, + "id": 442, "name": "UserAttributes" } } @@ -3417,7 +3433,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 409, + "line": 405, "character": 34 } ], @@ -3430,7 +3446,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -3445,7 +3461,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 409, + "line": 405, "character": 53 } ], @@ -3458,6 +3474,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -3472,7 +3489,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 409, + "line": 405, "character": 15 } ], @@ -3485,7 +3502,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -3520,7 +3537,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 251, + "line": 247, "character": 8 } ], @@ -3589,7 +3606,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 255, + "line": 251, "character": 6 } ], @@ -3634,7 +3651,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 257, + "line": 253, "character": 15 } ], @@ -3647,12 +3664,12 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -3667,7 +3684,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 257, + "line": 253, "character": 44 } ], @@ -3680,6 +3697,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -3754,7 +3772,7 @@ "sources": [ { "fileName": "src/GoTrueApi.ts", - "line": 12, + "line": 8, "character": 21 } ] @@ -3775,7 +3793,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 71, + "line": 76, "character": 2 } ], @@ -3819,7 +3837,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 75, + "line": 80, "character": 4 } ], @@ -3829,7 +3847,7 @@ } }, { - "id": 213, + "id": 214, "name": "cookieOptions", "kind": 1024, "kindString": "Property", @@ -3840,13 +3858,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 78, + "line": 84, "character": 4 } ], "type": { "type": "reference", - "id": 439, + "id": 455, "name": "CookieOptions" } }, @@ -3864,7 +3882,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 74, + "line": 79, "character": 4 } ], @@ -3874,7 +3892,7 @@ } }, { - "id": 214, + "id": 215, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -3884,21 +3902,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 79, + "line": 85, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 215, + "id": 216, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 216, + "id": 217, "name": "__type", "kind": 4096, "kindString": "Call signature", @@ -3908,7 +3926,7 @@ }, "parameters": [ { - "id": 217, + "id": 218, "name": "input", "kind": 32768, "kindString": "Parameter", @@ -3919,7 +3937,7 @@ } }, { - "id": 218, + "id": 219, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -3961,7 +3979,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 73, + "line": 78, "character": 4 } ], @@ -4007,11 +4025,13 @@ "flags": { "isOptional": true }, - "comment": {}, + "comment": { + "shortText": "Provide your own local storage implementation to use instead of the browser's local storage." + }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 77, + "line": 82, "character": 4 } ], @@ -4049,6 +4069,29 @@ "name": "PromisifyMethods" } }, + { + "id": 213, + "name": "multiTab", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Set to \"false\" if you want to disable multi-tab/window events." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 83, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { "id": 211, "name": "persistSession", @@ -4063,7 +4106,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 76, + "line": 81, "character": 4 } ], @@ -4086,7 +4129,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 72, + "line": 77, "character": 4 } ], @@ -4102,11 +4145,12 @@ "kind": 1024, "children": [ 210, - 213, - 209, 214, + 209, + 215, 205, 212, + 213, 211, 204 ] @@ -4125,7 +4169,7 @@ ] }, { - "id": 219, + "id": 220, "name": "api", "kind": 1024, "kindString": "Property", @@ -4136,7 +4180,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 44, + "line": 47, "character": 2 } ], @@ -4147,7 +4191,7 @@ } }, { - "id": 222, + "id": 223, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -4157,7 +4201,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 54, + "line": 57, "character": 12 } ], @@ -4167,7 +4211,7 @@ } }, { - "id": 221, + "id": 222, "name": "currentSession", "kind": 1024, "kindString": "Property", @@ -4180,7 +4224,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 52, + "line": 55, "character": 12 } ], @@ -4193,14 +4237,14 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] } }, { - "id": 220, + "id": 221, "name": "currentUser", "kind": 1024, "kindString": "Property", @@ -4213,7 +4257,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 48, + "line": 51, "character": 12 } ], @@ -4226,14 +4270,14 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] } }, { - "id": 224, + "id": 225, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -4243,7 +4287,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 56, + "line": 59, "character": 12 } ], @@ -4282,8 +4326,8 @@ } }, { - "id": 223, - "name": "persistSession", + "id": 226, + "name": "multiTab", "kind": 1024, "kindString": "Property", "flags": { @@ -4292,7 +4336,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 55, + "line": 60, "character": 12 } ], @@ -4302,7 +4346,27 @@ } }, { - "id": 226, + "id": 224, + "name": "persistSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 58, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 228, "name": "refreshTokenTimer", "kind": 1024, "kindString": "Property", @@ -4313,7 +4377,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 58, + "line": 62, "character": 12 } ], @@ -4323,7 +4387,7 @@ } }, { - "id": 225, + "id": 227, "name": "stateChangeEmitters", "kind": 1024, "kindString": "Property", @@ -4333,7 +4397,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 57, + "line": 61, "character": 12 } ], @@ -4346,7 +4410,7 @@ }, { "type": "reference", - "id": 431, + "id": 447, "name": "Subscription" } ], @@ -4355,7 +4419,7 @@ "defaultValue": "..." }, { - "id": 368, + "id": 367, "name": "_callRefreshToken", "kind": 2048, "kindString": "Method", @@ -4365,20 +4429,20 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 613, + "line": 618, "character": 16 } ], "signatures": [ { - "id": 369, + "id": 368, "name": "_callRefreshToken", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 369, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -4408,26 +4472,26 @@ { "type": "reflection", "declaration": { - "id": 371, + "id": 370, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 372, + "id": 371, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } }, { - "id": 373, + "id": 372, "name": "error", "kind": 1024, "kindString": "Property", @@ -4444,8 +4508,8 @@ "title": "Properties", "kind": 1024, "children": [ - 372, - 373 + 371, + 372 ] } ] @@ -4454,14 +4518,14 @@ { "type": "reflection", "declaration": { - "id": 374, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 375, + "id": 374, "name": "data", "kind": 1024, "kindString": "Property", @@ -4473,13 +4537,14 @@ "defaultValue": "null" }, { - "id": 376, + "id": 375, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", + "id": 394, "name": "ApiError" }, "defaultValue": "..." @@ -4490,8 +4555,8 @@ "title": "Properties", "kind": 1024, "children": [ - 375, - 376 + 374, + 375 ] } ] @@ -4506,7 +4571,7 @@ ] }, { - "id": 312, + "id": 311, "name": "_handleEmailSignIn", "kind": 2048, "kindString": "Method", @@ -4516,20 +4581,20 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 484, + "line": 489, "character": 16 } ], "signatures": [ { - "id": 313, + "id": 312, "name": "_handleEmailSignIn", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 314, + "id": 313, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -4540,7 +4605,7 @@ } }, { - "id": 315, + "id": 314, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -4551,7 +4616,7 @@ } }, { - "id": 316, + "id": 315, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -4559,14 +4624,14 @@ "type": { "type": "reflection", "declaration": { - "id": 317, + "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 318, + "id": 317, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -4576,7 +4641,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 488, + "line": 493, "character": 6 } ], @@ -4591,7 +4656,7 @@ "title": "Properties", "kind": 1024, "children": [ - 318 + 317 ] } ] @@ -4609,14 +4674,14 @@ { "type": "reflection", "declaration": { - "id": 319, + "id": 318, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 320, + "id": 319, "name": "data", "kind": 1024, "kindString": "Property", @@ -4628,7 +4693,7 @@ "defaultValue": "null" }, { - "id": 323, + "id": 322, "name": "error", "kind": 1024, "kindString": "Property", @@ -4642,13 +4707,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 322, + "id": 321, "name": "session", "kind": 1024, "kindString": "Property", @@ -4660,7 +4726,7 @@ "defaultValue": "null" }, { - "id": 321, + "id": 320, "name": "user", "kind": 1024, "kindString": "Property", @@ -4677,10 +4743,10 @@ "title": "Properties", "kind": 1024, "children": [ - 320, - 323, + 319, 322, - 321 + 321, + 320 ] } ] @@ -4689,26 +4755,26 @@ { "type": "reflection", "declaration": { - "id": 324, + "id": 323, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 325, + "id": 324, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } }, { - "id": 328, + "id": 327, "name": "error", "kind": 1024, "kindString": "Property", @@ -4720,20 +4786,20 @@ "defaultValue": "null" }, { - "id": 327, + "id": 326, "name": "session", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" }, "defaultValue": "data" }, { - "id": 326, + "id": 325, "name": "user", "kind": 1024, "kindString": "Property", @@ -4747,7 +4813,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -4760,10 +4826,10 @@ "title": "Properties", "kind": 1024, "children": [ - 325, - 328, + 324, 327, - 326 + 326, + 325 ] } ] @@ -4778,7 +4844,7 @@ ] }, { - "id": 329, + "id": 328, "name": "_handlePhoneSignIn", "kind": 2048, "kindString": "Method", @@ -4788,20 +4854,20 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 508, + "line": 513, "character": 16 } ], "signatures": [ { - "id": 330, + "id": 329, "name": "_handlePhoneSignIn", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 331, + "id": 330, "name": "phone", "kind": 32768, "kindString": "Parameter", @@ -4812,7 +4878,7 @@ } }, { - "id": 332, + "id": 331, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -4832,14 +4898,14 @@ { "type": "reflection", "declaration": { - "id": 333, + "id": 332, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 334, + "id": 333, "name": "data", "kind": 1024, "kindString": "Property", @@ -4851,7 +4917,7 @@ "defaultValue": "null" }, { - "id": 337, + "id": 336, "name": "error", "kind": 1024, "kindString": "Property", @@ -4865,13 +4931,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 336, + "id": 335, "name": "session", "kind": 1024, "kindString": "Property", @@ -4883,7 +4950,7 @@ "defaultValue": "null" }, { - "id": 335, + "id": 334, "name": "user", "kind": 1024, "kindString": "Property", @@ -4900,10 +4967,10 @@ "title": "Properties", "kind": 1024, "children": [ - 334, - 337, + 333, 336, - 335 + 335, + 334 ] } ] @@ -4912,26 +4979,26 @@ { "type": "reflection", "declaration": { - "id": 338, + "id": 337, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 339, + "id": 338, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } }, { - "id": 342, + "id": 341, "name": "error", "kind": 1024, "kindString": "Property", @@ -4943,20 +5010,20 @@ "defaultValue": "null" }, { - "id": 341, + "id": 340, "name": "session", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" }, "defaultValue": "data" }, { - "id": 340, + "id": 339, "name": "user", "kind": 1024, "kindString": "Property", @@ -4970,7 +5037,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -4983,10 +5050,10 @@ "title": "Properties", "kind": 1024, "children": [ - 339, - 342, + 338, 341, - 340 + 340, + 339 ] } ] @@ -5001,7 +5068,7 @@ ] }, { - "id": 343, + "id": 342, "name": "_handleProviderSignIn", "kind": 2048, "kindString": "Method", @@ -5011,32 +5078,32 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 524, + "line": 529, "character": 10 } ], "signatures": [ { - "id": 344, + "id": 343, "name": "_handleProviderSignIn", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 345, + "id": 344, "name": "provider", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 391, + "id": 392, "name": "Provider" } }, { - "id": 346, + "id": 345, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5044,14 +5111,14 @@ "type": { "type": "reflection", "declaration": { - "id": 347, + "id": 346, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 348, + "id": 347, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -5061,7 +5128,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 527, + "line": 532, "character": 6 } ], @@ -5071,7 +5138,7 @@ } }, { - "id": 349, + "id": 348, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -5081,7 +5148,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 528, + "line": 533, "character": 6 } ], @@ -5096,8 +5163,8 @@ "title": "Properties", "kind": 1024, "children": [ - 348, - 349 + 347, + 348 ] } ] @@ -5112,14 +5179,14 @@ { "type": "reflection", "declaration": { - "id": 350, + "id": 349, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 353, + "id": 352, "name": "data", "kind": 1024, "kindString": "Property", @@ -5131,7 +5198,7 @@ "defaultValue": "null" }, { - "id": 356, + "id": 355, "name": "error", "kind": 1024, "kindString": "Property", @@ -5142,32 +5209,32 @@ }, "defaultValue": "null" }, + { + "id": 350, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 392, + "name": "Provider" + } + }, + { + "id": 353, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, { "id": 351, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "type": { - "type": "reference", - "id": 391, - "name": "Provider" - } - }, - { - "id": 354, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "type": { - "type": "literal", - "value": null - }, - "defaultValue": "null" - }, - { - "id": 352, "name": "url", "kind": 1024, "kindString": "Property", @@ -5178,7 +5245,7 @@ } }, { - "id": 355, + "id": 354, "name": "user", "kind": 1024, "kindString": "Property", @@ -5195,12 +5262,12 @@ "title": "Properties", "kind": 1024, "children": [ - 353, - 356, - 351, - 354, 352, - 355 + 355, + 350, + 353, + 351, + 354 ] } ] @@ -5209,14 +5276,14 @@ { "type": "reflection", "declaration": { - "id": 357, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 358, + "id": 357, "name": "data", "kind": 1024, "kindString": "Property", @@ -5228,19 +5295,20 @@ "defaultValue": "null" }, { - "id": 361, + "id": 360, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "type": { "type": "reference", + "id": 394, "name": "ApiError" }, "defaultValue": "..." }, { - "id": 362, + "id": 361, "name": "provider", "kind": 1024, "kindString": "Property", @@ -5251,7 +5319,7 @@ } }, { - "id": 360, + "id": 359, "name": "session", "kind": 1024, "kindString": "Property", @@ -5263,7 +5331,7 @@ "defaultValue": "null" }, { - "id": 363, + "id": 362, "name": "url", "kind": 1024, "kindString": "Property", @@ -5274,7 +5342,7 @@ } }, { - "id": 359, + "id": 358, "name": "user", "kind": 1024, "kindString": "Property", @@ -5291,12 +5359,12 @@ "title": "Properties", "kind": 1024, "children": [ - 358, - 361, - 362, + 357, 360, - 363, - 359 + 361, + 359, + 362, + 358 ] } ] @@ -5308,7 +5376,48 @@ ] }, { - "id": 377, + "id": 390, + "name": "_listenForMultiTabEvents", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 691, + "character": 10 + } + ], + "signatures": [ + { + "id": 391, + "name": "_listenForMultiTabEvents", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Listens for changes to LocalStorage and updates the current session." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": false + } + ] + } + } + ] + }, + { + "id": 376, "name": "_notifyAllSubscribers", "kind": 2048, "kindString": "Method", @@ -5318,27 +5427,27 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 631, + "line": 637, "character": 10 } ], "signatures": [ { - "id": 378, + "id": 377, "name": "_notifyAllSubscribers", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 379, + "id": 378, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 392, + "id": 393, "name": "AuthChangeEvent" } } @@ -5351,7 +5460,7 @@ ] }, { - "id": 383, + "id": 382, "name": "_persistSession", "kind": 2048, "kindString": "Method", @@ -5361,27 +5470,27 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 658, + "line": 664, "character": 10 } ], "signatures": [ { - "id": 384, + "id": 383, "name": "_persistSession", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 385, + "id": 384, "name": "currentSession", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } } @@ -5394,7 +5503,7 @@ ] }, { - "id": 366, + "id": 365, "name": "_recoverAndRefresh", "kind": 2048, "kindString": "Method", @@ -5404,13 +5513,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 577, + "line": 582, "character": 16 } ], "signatures": [ { - "id": 367, + "id": 366, "name": "_recoverAndRefresh", "kind": 4096, "kindString": "Call signature", @@ -5441,7 +5550,7 @@ ] }, { - "id": 364, + "id": 363, "name": "_recoverSession", "kind": 2048, "kindString": "Method", @@ -5451,13 +5560,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 553, + "line": 558, "character": 10 } ], "signatures": [ { - "id": 365, + "id": 364, "name": "_recoverSession", "kind": 4096, "kindString": "Call signature", @@ -5482,7 +5591,7 @@ ] }, { - "id": 386, + "id": 385, "name": "_removeSession", "kind": 2048, "kindString": "Method", @@ -5492,13 +5601,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 663, + "line": 669, "character": 16 } ], "signatures": [ { - "id": 387, + "id": 386, "name": "_removeSession", "kind": 4096, "kindString": "Call signature", @@ -5517,7 +5626,7 @@ ] }, { - "id": 380, + "id": 379, "name": "_saveSession", "kind": 2048, "kindString": "Method", @@ -5527,13 +5636,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 639, + "line": 645, "character": 10 } ], "signatures": [ { - "id": 381, + "id": 380, "name": "_saveSession", "kind": 4096, "kindString": "Call signature", @@ -5543,14 +5652,14 @@ }, "parameters": [ { - "id": 382, + "id": 381, "name": "session", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } } @@ -5563,7 +5672,7 @@ ] }, { - "id": 388, + "id": 387, "name": "_startAutoRefreshToken", "kind": 2048, "kindString": "Method", @@ -5573,13 +5682,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 674, + "line": 680, "character": 10 } ], "signatures": [ { - "id": 389, + "id": 388, "name": "_startAutoRefreshToken", "kind": 4096, "kindString": "Call signature", @@ -5589,7 +5698,7 @@ }, "parameters": [ { - "id": 390, + "id": 389, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -5611,7 +5720,7 @@ ] }, { - "id": 290, + "id": 289, "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", @@ -5619,13 +5728,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 393, + "line": 397, "character": 8 } ], "signatures": [ { - "id": 291, + "id": 290, "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", @@ -5635,7 +5744,7 @@ }, "parameters": [ { - "id": 292, + "id": 291, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5645,14 +5754,14 @@ "type": { "type": "reflection", "declaration": { - "id": 293, + "id": 292, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 294, + "id": 293, "name": "storeSession", "kind": 1024, "kindString": "Property", @@ -5665,7 +5774,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 394, + "line": 398, "character": 4 } ], @@ -5680,7 +5789,7 @@ "title": "Properties", "kind": 1024, "children": [ - 294 + 293 ] } ] @@ -5694,14 +5803,14 @@ { "type": "reflection", "declaration": { - "id": 295, + "id": 294, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 296, + "id": 295, "name": "data", "kind": 1024, "kindString": "Property", @@ -5709,7 +5818,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 395, + "line": 399, "character": 16 } ], @@ -5722,14 +5831,14 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] } }, { - "id": 297, + "id": 296, "name": "error", "kind": 1024, "kindString": "Property", @@ -5737,7 +5846,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 395, + "line": 399, "character": 38 } ], @@ -5750,6 +5859,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -5761,8 +5871,8 @@ "title": "Properties", "kind": 1024, "children": [ - 296, - 297 + 295, + 296 ] } ] @@ -5775,7 +5885,7 @@ ] }, { - "id": 302, + "id": 301, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -5783,13 +5893,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 464, + "line": 469, "character": 2 } ], "signatures": [ { - "id": 303, + "id": 302, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -5800,7 +5910,7 @@ }, "parameters": [ { - "id": 304, + "id": 303, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -5808,33 +5918,33 @@ "type": { "type": "reflection", "declaration": { - "id": 305, + "id": 304, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 306, + "id": 305, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 307, + "id": 306, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 392, + "id": 393, "name": "AuthChangeEvent" } }, { - "id": 308, + "id": 307, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -5848,7 +5958,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -5868,14 +5978,14 @@ "type": { "type": "reflection", "declaration": { - "id": 309, + "id": 308, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 310, + "id": 309, "name": "data", "kind": 1024, "kindString": "Property", @@ -5883,7 +5993,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 465, + "line": 470, "character": 4 } ], @@ -5896,14 +6006,14 @@ }, { "type": "reference", - "id": 431, + "id": 447, "name": "Subscription" } ] } }, { - "id": 311, + "id": 310, "name": "error", "kind": 1024, "kindString": "Property", @@ -5911,7 +6021,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 466, + "line": 471, "character": 4 } ], @@ -5924,6 +6034,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -5935,8 +6046,8 @@ "title": "Properties", "kind": 1024, "children": [ - 310, - 311 + 309, + 310 ] } ] @@ -5946,7 +6057,7 @@ ] }, { - "id": 268, + "id": 267, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -5954,13 +6065,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 306, + "line": 310, "character": 8 } ], "signatures": [ { - "id": 269, + "id": 268, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -5974,14 +6085,14 @@ { "type": "reflection", "declaration": { - "id": 270, + "id": 269, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 271, + "id": 270, "name": "data", "kind": 1024, "kindString": "Property", @@ -5989,7 +6100,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 307, + "line": 311, "character": 4 } ], @@ -6002,14 +6113,14 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] } }, { - "id": 273, + "id": 272, "name": "error", "kind": 1024, "kindString": "Property", @@ -6017,7 +6128,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 309, + "line": 313, "character": 4 } ], @@ -6030,13 +6141,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 272, + "id": 271, "name": "user", "kind": 1024, "kindString": "Property", @@ -6044,7 +6156,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 308, + "line": 312, "character": 4 } ], @@ -6057,7 +6169,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -6069,9 +6181,9 @@ "title": "Properties", "kind": 1024, "children": [ - 271, - 273, - 272 + 270, + 272, + 271 ] } ] @@ -6084,7 +6196,7 @@ ] }, { - "id": 266, + "id": 265, "name": "session", "kind": 2048, "kindString": "Method", @@ -6092,13 +6204,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 299, + "line": 303, "character": 2 } ], "signatures": [ { - "id": 267, + "id": 266, "name": "session", "kind": 4096, "kindString": "Call signature", @@ -6115,7 +6227,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -6124,7 +6236,7 @@ ] }, { - "id": 287, + "id": 286, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -6132,13 +6244,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 378, + "line": 382, "character": 2 } ], "signatures": [ { - "id": 288, + "id": 287, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -6148,7 +6260,7 @@ }, "parameters": [ { - "id": 289, + "id": 288, "name": "access_token", "kind": 32768, "kindString": "Parameter", @@ -6164,14 +6276,14 @@ ], "type": { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } } ] }, { - "id": 281, + "id": 280, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -6179,13 +6291,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 354, + "line": 358, "character": 8 } ], "signatures": [ { - "id": 282, + "id": 281, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -6195,7 +6307,7 @@ }, "parameters": [ { - "id": 283, + "id": 282, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -6215,14 +6327,14 @@ { "type": "reflection", "declaration": { - "id": 284, + "id": 283, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 286, + "id": 285, "name": "error", "kind": 1024, "kindString": "Property", @@ -6230,7 +6342,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 356, + "line": 360, "character": 40 } ], @@ -6243,13 +6355,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 285, + "id": 284, "name": "session", "kind": 1024, "kindString": "Property", @@ -6257,7 +6370,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 356, + "line": 360, "character": 15 } ], @@ -6270,7 +6383,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -6282,8 +6395,8 @@ "title": "Properties", "kind": 1024, "children": [ - 286, - 285 + 285, + 284 ] } ] @@ -6296,7 +6409,7 @@ ] }, { - "id": 239, + "id": 240, "name": "signIn", "kind": 2048, "kindString": "Method", @@ -6304,13 +6417,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 178, + "line": 185, "character": 8 } ], "signatures": [ { - "id": 240, + "id": 241, "name": "signIn", "kind": 4096, "kindString": "Call signature", @@ -6320,19 +6433,19 @@ }, "parameters": [ { - "id": 241, + "id": 242, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 445, + "id": 461, "name": "UserCredentials" } }, { - "id": 242, + "id": 243, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6340,14 +6453,14 @@ "type": { "type": "reflection", "declaration": { - "id": 243, + "id": 244, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 244, + "id": 245, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -6357,7 +6470,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 181, + "line": 188, "character": 6 } ], @@ -6367,7 +6480,7 @@ } }, { - "id": 245, + "id": 246, "name": "scopes", "kind": 1024, "kindString": "Property", @@ -6377,7 +6490,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 182, + "line": 189, "character": 6 } ], @@ -6392,8 +6505,8 @@ "title": "Properties", "kind": 1024, "children": [ - 244, - 245 + 245, + 246 ] } ] @@ -6408,7 +6521,7 @@ { "type": "reflection", "declaration": { - "id": 246, + "id": 247, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6416,34 +6529,6 @@ "children": [ { "id": 252, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 190, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 393, - "name": "Session" - } - ] - } - }, - { - "id": 251, "name": "error", "kind": 1024, "kindString": "Property", @@ -6451,7 +6536,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 189, + "line": 196, "character": 4 } ], @@ -6464,13 +6549,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 249, + "id": 250, "name": "provider", "kind": 1024, "kindString": "Property", @@ -6480,18 +6566,18 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 187, + "line": 194, "character": 4 } ], "type": { "type": "reference", - "id": 391, + "id": 392, "name": "Provider" } }, { - "id": 247, + "id": 248, "name": "session", "kind": 1024, "kindString": "Property", @@ -6499,7 +6585,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 185, + "line": 192, "character": 4 } ], @@ -6512,14 +6598,14 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] } }, { - "id": 250, + "id": 251, "name": "url", "kind": 1024, "kindString": "Property", @@ -6529,7 +6615,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 188, + "line": 195, "character": 4 } ], @@ -6548,7 +6634,7 @@ } }, { - "id": 248, + "id": 249, "name": "user", "kind": 1024, "kindString": "Property", @@ -6556,7 +6642,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 186, + "line": 193, "character": 4 } ], @@ -6569,7 +6655,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -6582,11 +6668,10 @@ "kind": 1024, "children": [ 252, - 251, - 249, - 247, 250, - 248 + 248, + 251, + 249 ] } ] @@ -6599,7 +6684,7 @@ ] }, { - "id": 298, + "id": 297, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -6607,13 +6692,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 449, + "line": 454, "character": 8 } ], "signatures": [ { - "id": 299, + "id": 298, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -6628,14 +6713,14 @@ { "type": "reflection", "declaration": { - "id": 300, + "id": 299, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 301, + "id": 300, "name": "error", "kind": 1024, "kindString": "Property", @@ -6643,7 +6728,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 449, + "line": 454, "character": 29 } ], @@ -6656,6 +6741,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -6667,7 +6753,7 @@ "title": "Properties", "kind": 1024, "children": [ - 301 + 300 ] } ] @@ -6680,7 +6766,7 @@ ] }, { - "id": 227, + "id": 229, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -6688,13 +6774,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 115, + "line": 123, "character": 8 } ], "signatures": [ { - "id": 228, + "id": 230, "name": "signUp", "kind": 4096, "kindString": "Call signature", @@ -6704,19 +6790,19 @@ }, "parameters": [ { - "id": 229, + "id": 231, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 445, + "id": 461, "name": "UserCredentials" } }, { - "id": 230, + "id": 232, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6724,14 +6810,14 @@ "type": { "type": "reflection", "declaration": { - "id": 231, + "id": 233, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 233, + "id": 235, "name": "data", "kind": 1024, "kindString": "Property", @@ -6741,7 +6827,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 119, + "line": 127, "character": 6 } ], @@ -6751,7 +6837,7 @@ } }, { - "id": 232, + "id": 234, "name": "redirectTo", "kind": 1024, "kindString": "Property", @@ -6761,7 +6847,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 118, + "line": 126, "character": 6 } ], @@ -6776,8 +6862,8 @@ "title": "Properties", "kind": 1024, "children": [ - 233, - 232 + 235, + 234 ] } ] @@ -6792,47 +6878,14 @@ { "type": "reflection", "declaration": { - "id": 234, + "id": 236, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 238, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 125, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 401, - "name": "User" - }, - { - "type": "reference", - "id": 393, - "name": "Session" - } - ] - } - }, - { - "id": 237, + "id": 239, "name": "error", "kind": 1024, "kindString": "Property", @@ -6840,7 +6893,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 124, + "line": 132, "character": 4 } ], @@ -6853,13 +6906,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 236, + "id": 238, "name": "session", "kind": 1024, "kindString": "Property", @@ -6867,7 +6921,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 123, + "line": 131, "character": 4 } ], @@ -6880,14 +6934,14 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] } }, { - "id": 235, + "id": 237, "name": "user", "kind": 1024, "kindString": "Property", @@ -6895,7 +6949,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 122, + "line": 130, "character": 4 } ], @@ -6908,7 +6962,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -6920,10 +6974,9 @@ "title": "Properties", "kind": 1024, "children": [ + 239, 238, - 237, - 236, - 235 + 237 ] } ] @@ -6936,7 +6989,7 @@ ] }, { - "id": 274, + "id": 273, "name": "update", "kind": 2048, "kindString": "Method", @@ -6944,13 +6997,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 327, + "line": 331, "character": 8 } ], "signatures": [ { - "id": 275, + "id": 274, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -6960,14 +7013,14 @@ }, "parameters": [ { - "id": 276, + "id": 275, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 426, + "id": 442, "name": "UserAttributes" } } @@ -6978,14 +7031,14 @@ { "type": "reflection", "declaration": { - "id": 277, + "id": 276, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 278, + "id": 277, "name": "data", "kind": 1024, "kindString": "Property", @@ -6993,7 +7046,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 329, + "line": 333, "character": 15 } ], @@ -7006,14 +7059,14 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] } }, { - "id": 280, + "id": 279, "name": "error", "kind": 1024, "kindString": "Property", @@ -7021,7 +7074,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 329, + "line": 333, "character": 53 } ], @@ -7034,13 +7087,14 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] } }, { - "id": 279, + "id": 278, "name": "user", "kind": 1024, "kindString": "Property", @@ -7048,7 +7102,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 329, + "line": 333, "character": 34 } ], @@ -7061,7 +7115,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -7073,9 +7127,9 @@ "title": "Properties", "kind": 1024, "children": [ - 278, - 280, - 279 + 277, + 279, + 278 ] } ] @@ -7088,7 +7142,7 @@ ] }, { - "id": 264, + "id": 263, "name": "user", "kind": 2048, "kindString": "Method", @@ -7096,13 +7150,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 292, + "line": 296, "character": 2 } ], "signatures": [ { - "id": 265, + "id": 264, "name": "user", "kind": 4096, "kindString": "Call signature", @@ -7120,7 +7174,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -7137,7 +7191,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 243, + "line": 248, "character": 8 } ], @@ -7160,7 +7214,7 @@ "flags": {}, "type": { "type": "reference", - "id": 451, + "id": 467, "name": "VerifyOTPParams" } }, @@ -7190,7 +7244,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 246, + "line": 251, "character": 6 } ], @@ -7226,39 +7280,6 @@ "kindString": "Type literal", "flags": {}, "children": [ - { - "id": 263, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 252, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 401, - "name": "User" - }, - { - "type": "reference", - "id": 393, - "name": "Session" - } - ] - } - }, { "id": 262, "name": "error", @@ -7268,7 +7289,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 251, + "line": 256, "character": 4 } ], @@ -7281,6 +7302,7 @@ }, { "type": "reference", + "id": 394, "name": "ApiError" } ] @@ -7295,7 +7317,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 250, + "line": 255, "character": 4 } ], @@ -7308,7 +7330,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -7323,7 +7345,7 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 249, + "line": 254, "character": 4 } ], @@ -7336,7 +7358,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -7348,7 +7370,6 @@ "title": "Properties", "kind": 1024, "children": [ - 263, 262, 261, 260 @@ -7376,42 +7397,44 @@ "title": "Properties", "kind": 1024, "children": [ - 219, + 220, + 223, 222, 221, - 220, - 224, - 223, + 225, 226, - 225 + 224, + 228, + 227 ] }, { "title": "Methods", "kind": 2048, "children": [ - 368, - 312, - 329, - 343, - 377, - 383, - 366, - 364, - 386, - 380, - 388, - 290, - 302, - 268, - 266, - 287, - 281, - 239, - 298, - 227, - 274, - 264, + 367, + 311, + 328, + 342, + 390, + 376, + 382, + 365, + 363, + 385, + 379, + 387, + 289, + 301, + 267, + 265, + 286, + 280, + 240, + 297, + 229, + 273, + 263, 253 ] } @@ -7419,150 +7442,21 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 39, + "line": 42, "character": 21 } ] }, { - "id": 439, - "name": "CookieOptions", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "children": [ - { - "id": 442, - "name": "domain", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 103, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 441, - "name": "lifetime", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 101, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 440, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 99, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 443, - "name": "path", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 104, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 444, - "name": "sameSite", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 106, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 442, - 441, - 440, - 443, - 444 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 97, - "character": 17 - } - ] - }, - { - "id": 393, - "name": "Session", + "id": 394, + "name": "ApiError", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { "id": 395, - "name": "access_token", + "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, @@ -7579,7 +7473,198 @@ } }, { - "id": 397, + "id": 396, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 25, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 395, + 396 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 23, + "character": 17 + } + ] + }, + { + "id": 455, + "name": "CookieOptions", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 458, + "name": "domain", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 123, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 457, + "name": "lifetime", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 121, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 456, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 119, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 459, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 124, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 460, + "name": "sameSite", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 126, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 458, + 457, + 456, + 459, + 460 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 117, + "character": 17 + } + ] + }, + { + "id": 397, + "name": "Session", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 399, + "name": "access_token", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 30, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 401, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -7592,7 +7677,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 32, + "line": 38, "character": 2 } ], @@ -7602,7 +7687,7 @@ } }, { - "id": 396, + "id": 400, "name": "expires_in", "kind": 1024, "kindString": "Property", @@ -7615,7 +7700,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 28, + "line": 34, "character": 2 } ], @@ -7625,7 +7710,7 @@ } }, { - "id": 394, + "id": 398, "name": "provider_token", "kind": 1024, "kindString": "Property", @@ -7635,7 +7720,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 23, + "line": 29, "character": 2 } ], @@ -7654,7 +7739,7 @@ } }, { - "id": 398, + "id": 402, "name": "refresh_token", "kind": 1024, "kindString": "Property", @@ -7664,7 +7749,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 33, + "line": 39, "character": 2 } ], @@ -7674,7 +7759,7 @@ } }, { - "id": 399, + "id": 403, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -7682,7 +7767,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 34, + "line": 40, "character": 2 } ], @@ -7692,7 +7777,7 @@ } }, { - "id": 400, + "id": 404, "name": "user", "kind": 1024, "kindString": "Property", @@ -7700,7 +7785,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 35, + "line": 41, "character": 2 } ], @@ -7713,7 +7798,7 @@ }, { "type": "reference", - "id": 401, + "id": 416, "name": "User" } ] @@ -7725,33 +7810,33 @@ "title": "Properties", "kind": 1024, "children": [ - 395, - 397, - 396, - 394, - 398, 399, - 400 + 401, + 400, + 398, + 402, + 403, + 404 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 22, + "line": 28, "character": 17 } ] }, { - "id": 431, + "id": 447, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 432, + "id": 448, "name": "id", "kind": 1024, "kindString": "Property", @@ -7762,7 +7847,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 86, + "line": 106, "character": 2 } ], @@ -7772,7 +7857,7 @@ } }, { - "id": 433, + "id": 449, "name": "callback", "kind": 2048, "kindString": "Method", @@ -7780,13 +7865,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 90, + "line": 110, "character": 2 } ], "signatures": [ { - "id": 434, + "id": 450, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -7796,19 +7881,19 @@ }, "parameters": [ { - "id": 435, + "id": 451, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 392, + "id": 393, "name": "AuthChangeEvent" } }, { - "id": 436, + "id": 452, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -7822,7 +7907,7 @@ }, { "type": "reference", - "id": 393, + "id": 397, "name": "Session" } ] @@ -7837,7 +7922,7 @@ ] }, { - "id": 437, + "id": 453, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -7845,13 +7930,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 94, + "line": 114, "character": 2 } ], "signatures": [ { - "id": 438, + "id": 454, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -7872,35 +7957,35 @@ "title": "Properties", "kind": 1024, "children": [ - 432 + 448 ] }, { "title": "Methods", "kind": 2048, "children": [ - 433, - 437 + 449, + 453 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 82, + "line": 102, "character": 17 } ] }, { - "id": 401, + "id": 416, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 416, + "id": 431, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -7910,7 +7995,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 50, + "line": 69, "character": 2 } ], @@ -7920,7 +8005,7 @@ } }, { - "id": 403, + "id": 418, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -7928,21 +8013,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 39, + "line": 58, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 404, + "id": 419, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 405, + "id": 420, "name": "provider", "kind": 1024, "kindString": "Property", @@ -7952,7 +8037,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 40, + "line": 59, "character": 4 } ], @@ -7967,19 +8052,19 @@ "title": "Properties", "kind": 1024, "children": [ - 405 + 420 ] } ], "indexSignature": { - "id": 406, + "id": 421, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 407, + "id": 422, "name": "key", "kind": 32768, "flags": {}, @@ -7998,7 +8083,7 @@ } }, { - "id": 412, + "id": 427, "name": "aud", "kind": 1024, "kindString": "Property", @@ -8006,7 +8091,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 46, + "line": 65, "character": 2 } ], @@ -8016,7 +8101,7 @@ } }, { - "id": 413, + "id": 428, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -8026,7 +8111,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 47, + "line": 66, "character": 2 } ], @@ -8036,7 +8121,7 @@ } }, { - "id": 420, + "id": 435, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -8046,7 +8131,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 54, + "line": 73, "character": 2 } ], @@ -8056,7 +8141,7 @@ } }, { - "id": 419, + "id": 434, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -8064,7 +8149,47 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 53, + "line": 72, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 432, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 70, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 436, + "name": "email_confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 74, "character": 2 } ], @@ -8075,90 +8200,10 @@ }, { "id": 417, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 51, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 421, - "name": "email_confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 55, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 402, "name": "id", "kind": 1024, "kindString": "Property", "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 38, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 415, - "name": "invited_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 49, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 423, - "name": "last_sign_in_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, "sources": [ { "fileName": "src/lib/types.ts", @@ -8172,7 +8217,71 @@ } }, { - "id": 418, + "id": 441, + "name": "identities", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 79, + "character": 2 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 405, + "name": "UserIdentity" + } + } + }, + { + "id": 430, + "name": "invited_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 68, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 438, + "name": "last_sign_in_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 76, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 433, "name": "phone", "kind": 1024, "kindString": "Property", @@ -8182,7 +8291,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 52, + "line": 71, "character": 2 } ], @@ -8192,7 +8301,7 @@ } }, { - "id": 422, + "id": 437, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -8202,7 +8311,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 56, + "line": 75, "character": 2 } ], @@ -8212,7 +8321,7 @@ } }, { - "id": 414, + "id": 429, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -8222,7 +8331,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 48, + "line": 67, "character": 2 } ], @@ -8232,7 +8341,7 @@ } }, { - "id": 424, + "id": 439, "name": "role", "kind": 1024, "kindString": "Property", @@ -8242,7 +8351,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 58, + "line": 77, "character": 2 } ], @@ -8252,7 +8361,7 @@ } }, { - "id": 425, + "id": 440, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -8262,7 +8371,382 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 59, + "line": 78, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 423, + "name": "user_metadata", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 62, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 424, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 425, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 426, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 431, + 418, + 427, + 428, + 435, + 434, + 432, + 436, + 417, + 441, + 430, + 438, + 433, + 437, + 429, + 439, + 440, + 423 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 56, + "character": 17 + } + ] + }, + { + "id": 442, + "name": "UserAttributes", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 446, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "A custom data object. Can be any JSON." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 99, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 443, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The user's email." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 86, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 445, + "name": "email_change_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "An email change token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 94, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 444, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The user's password." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 90, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 446, + 443, + 445, + 444 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 82, + "character": 17 + } + ] + }, + { + "id": 461, + "name": "UserCredentials", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 462, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 130, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 464, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 132, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 463, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 131, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 466, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 135, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 392, + "name": "Provider" + } + }, + { + "id": 465, + "name": "refreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 133, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 462, + 464, + 463, + 466, + 465 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 129, + "character": 17 + } + ] + }, + { + "id": 405, + "name": "UserIdentity", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 413, + "name": "created_at", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 51, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 406, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 45, "character": 2 } ], @@ -8273,14 +8757,14 @@ }, { "id": 408, - "name": "user_metadata", + "name": "identity_data", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 43, + "line": 47, "character": 2 } ], @@ -8317,86 +8801,17 @@ } } } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 416, - 403, - 412, - 413, - 420, - 419, - 417, - 421, - 402, - 415, - 423, - 418, - 422, - 414, - 424, - 425, - 408 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 37, - "character": 17 - } - ] - }, - { - "id": 426, - "name": "UserAttributes", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "children": [ - { - "id": 430, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object. Can be any JSON." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 79, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } }, { - "id": 427, - "name": "email", + "id": 414, + "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The user's email." - }, + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 66, + "line": 52, "character": 2 } ], @@ -8406,163 +8821,26 @@ } }, { - "id": 429, - "name": "email_change_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "An email change token." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 74, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 428, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 70, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 430, - 427, - 429, - 428 - ] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 62, - "character": 17 - } - ] - }, - { - "id": 445, - "name": "UserCredentials", - "kind": 256, - "kindString": "Interface", - "flags": {}, - "children": [ - { - "id": 446, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 110, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 448, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 112, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 447, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 111, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 450, + "id": 412, "name": "provider", "kind": 1024, "kindString": "Property", - "flags": { - "isOptional": true - }, + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 115, + "line": 50, "character": 2 } ], "type": { - "type": "reference", - "id": 391, - "name": "Provider" + "type": "intrinsic", + "name": "string" } }, { - "id": 449, - "name": "refreshToken", + "id": 415, + "name": "updated_at", "kind": 1024, "kindString": "Property", "flags": { @@ -8571,7 +8849,25 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 113, + "line": 53, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 407, + "name": "user_id", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 46, "character": 2 } ], @@ -8586,31 +8882,33 @@ "title": "Properties", "kind": 1024, "children": [ - 446, - 448, - 447, - 450, - 449 + 413, + 406, + 408, + 414, + 412, + 415, + 407 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 109, + "line": 44, "character": 17 } ] }, { - "id": 451, + "id": 467, "name": "VerifyOTPParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 452, + "id": 468, "name": "phone", "kind": 1024, "kindString": "Property", @@ -8618,7 +8916,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 119, + "line": 139, "character": 2 } ], @@ -8628,7 +8926,7 @@ } }, { - "id": 453, + "id": 469, "name": "token", "kind": 1024, "kindString": "Property", @@ -8636,7 +8934,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 120, + "line": 140, "character": 2 } ], @@ -8651,21 +8949,21 @@ "title": "Properties", "kind": 1024, "children": [ - 452, - 453 + 468, + 469 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 118, + "line": 138, "character": 17 } ] }, { - "id": 392, + "id": 393, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -8674,12 +8972,16 @@ { "fileName": "src/lib/types.ts", "line": 15, - "character": 12 + "character": 14 } ], "type": { "type": "union", "types": [ + { + "type": "literal", + "value": "PASSWORD_RECOVERY" + }, { "type": "literal", "value": "SIGNED_IN" @@ -8688,6 +8990,10 @@ "type": "literal", "value": "SIGNED_OUT" }, + { + "type": "literal", + "value": "TOKEN_REFRESHED" + }, { "type": "literal", "value": "USER_UPDATED" @@ -8695,16 +9001,12 @@ { "type": "literal", "value": "USER_DELETED" - }, - { - "type": "literal", - "value": "PASSWORD_RECOVERY" } ] } }, { - "id": 391, + "id": 392, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -8784,21 +9086,23 @@ "title": "Interfaces", "kind": 256, "children": [ - 439, - 393, - 431, - 401, - 426, - 445, - 451 + 394, + 455, + 397, + 447, + 416, + 442, + 461, + 405, + 467 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 392, - 391 + 393, + 392 ] } ], diff --git a/web/spec/realtime.json b/web/spec/realtime.json index 71555efa8a5..b55805fca56 100644 --- a/web/spec/realtime.json +++ b/web/spec/realtime.json @@ -6,7 +6,7 @@ "originalName": "", "children": [ { - "id": 200, + "id": 201, "name": "\"RealtimeClient\"", "kind": 1, "kindString": "Module", @@ -16,7 +16,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts", "children": [ { - "id": 201, + "id": 202, "name": "RealtimeClient", "kind": 128, "kindString": "Class", @@ -25,7 +25,7 @@ }, "children": [ { - "id": 232, + "id": 234, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -37,7 +37,7 @@ }, "signatures": [ { - "id": 233, + "id": 235, "name": "new RealtimeClient", "kind": 16384, "kindString": "Constructor signature", @@ -49,7 +49,7 @@ }, "parameters": [ { - "id": 234, + "id": 236, "name": "endPoint", "kind": 32768, "kindString": "Parameter", @@ -65,7 +65,7 @@ } }, { - "id": 235, + "id": 237, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -75,14 +75,14 @@ }, "type": { "type": "reference", - "id": 307, + "id": 312, "name": "Options" } } ], "type": { "type": "reference", - "id": 201, + "id": 202, "name": "RealtimeClient" } } @@ -90,14 +90,14 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 66, + "line": 67, "character": 3 } ] }, { - "id": 202, - "name": "channels", + "id": 203, + "name": "accessToken", "kind": 1024, "kindString": "Property", "flags": { @@ -107,6 +107,36 @@ { "fileName": "RealtimeClient.ts", "line": 37, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 204, + "name": "channels", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 38, "character": 10 } ], @@ -114,14 +144,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } }, "defaultValue": "[]" }, { - "id": 224, + "id": 226, "name": "conn", "kind": 1024, "kindString": "Property", @@ -131,7 +161,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 53, + "line": 54, "character": 6 } ], @@ -151,13 +181,33 @@ "defaultValue": "null" }, { - "id": 222, + "id": 224, "name": "decode", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 52, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 223, + "name": "encode", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -171,27 +221,7 @@ } }, { - "id": 221, - "name": "encode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 50, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 203, + "id": 205, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -201,7 +231,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 38, + "line": 39, "character": 10 } ], @@ -212,7 +242,7 @@ "defaultValue": "\"\"" }, { - "id": 204, + "id": 206, "name": "headers", "kind": 1024, "kindString": "Property", @@ -223,7 +253,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 39, + "line": 40, "character": 9 } ], @@ -237,7 +267,7 @@ { "type": "reflection", "declaration": { - "id": 205, + "id": 207, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -246,7 +276,7 @@ }, "indexSignature": [ { - "id": 206, + "id": 208, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -255,7 +285,7 @@ }, "parameters": [ { - "id": 207, + "id": 209, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -281,7 +311,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 214, + "id": 216, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -291,7 +321,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 43, + "line": 44, "character": 21 } ], @@ -302,7 +332,7 @@ "defaultValue": "30000" }, { - "id": 216, + "id": 218, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -312,7 +342,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 45, + "line": 46, "character": 16 } ], @@ -341,7 +371,7 @@ "defaultValue": "undefined" }, { - "id": 220, + "id": 222, "name": "logger", "kind": 1024, "kindString": "Property", @@ -351,7 +381,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 49, + "line": 50, "character": 8 } ], @@ -362,7 +392,7 @@ "defaultValue": "noop" }, { - "id": 215, + "id": 217, "name": "longpollerTimeout", "kind": 1024, "kindString": "Property", @@ -372,7 +402,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 44, + "line": 45, "character": 19 } ], @@ -383,7 +413,7 @@ "defaultValue": "20000" }, { - "id": 208, + "id": 210, "name": "params", "kind": 1024, "kindString": "Property", @@ -394,7 +424,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 40, + "line": 41, "character": 8 } ], @@ -408,7 +438,7 @@ { "type": "reflection", "declaration": { - "id": 209, + "id": 211, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -417,7 +447,7 @@ }, "indexSignature": [ { - "id": 210, + "id": 212, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -426,7 +456,7 @@ }, "parameters": [ { - "id": 211, + "id": 213, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -451,7 +481,7 @@ } }, { - "id": 217, + "id": 219, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -461,7 +491,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 46, + "line": 47, "character": 21 } ], @@ -481,7 +511,7 @@ "defaultValue": "null" }, { - "id": 223, + "id": 225, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -491,7 +521,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 52, + "line": 53, "character": 18 } ], @@ -501,7 +531,7 @@ } }, { - "id": 219, + "id": 221, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -511,18 +541,18 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 48, + "line": 49, "character": 16 } ], "type": { "type": "reference", - "id": 29, + "id": 30, "name": "Timer" } }, { - "id": 218, + "id": 220, "name": "ref", "kind": 1024, "kindString": "Property", @@ -532,7 +562,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 47, + "line": 48, "character": 5 } ], @@ -543,37 +573,13 @@ "defaultValue": "0" }, { - "id": 225, + "id": 227, "name": "sendBuffer", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 54, - "character": 12 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Function" - } - }, - "defaultValue": "[]" - }, - { - "id": 226, - "name": "serializer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -581,15 +587,39 @@ "character": 12 } ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Function" + } + }, + "defaultValue": "[]" + }, + { + "id": 228, + "name": "serializer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 56, + "character": 12 + } + ], "type": { "type": "reference", - "id": 176, + "id": 177, "name": "Serializer" }, "defaultValue": "new Serializer()" }, { - "id": 212, + "id": 214, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -599,7 +629,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 41, + "line": 42, "character": 9 } ], @@ -610,7 +640,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 213, + "id": 215, "name": "transport", "kind": 1024, "kindString": "Property", @@ -620,7 +650,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 42, + "line": 43, "character": 11 } ], @@ -631,7 +661,7 @@ "defaultValue": "WebSocket" }, { - "id": 294, + "id": 299, "name": "_appendParams", "kind": 2048, "kindString": "Method", @@ -641,7 +671,7 @@ }, "signatures": [ { - "id": 295, + "id": 300, "name": "_appendParams", "kind": 4096, "kindString": "Call signature", @@ -650,7 +680,7 @@ }, "parameters": [ { - "id": 296, + "id": 301, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -663,7 +693,7 @@ } }, { - "id": 297, + "id": 302, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -673,7 +703,7 @@ "type": { "type": "reflection", "declaration": { - "id": 298, + "id": 303, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -682,7 +712,7 @@ }, "indexSignature": [ { - "id": 299, + "id": 304, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -691,7 +721,7 @@ }, "parameters": [ { - "id": 300, + "id": 305, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -713,7 +743,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 348, + "line": 372, "character": 44 } ] @@ -730,13 +760,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 348, + "line": 372, "character": 23 } ] }, { - "id": 301, + "id": 306, "name": "_flushSendBuffer", "kind": 2048, "kindString": "Method", @@ -746,7 +776,7 @@ }, "signatures": [ { - "id": 302, + "id": 307, "name": "_flushSendBuffer", "kind": 4096, "kindString": "Call signature", @@ -762,13 +792,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 358, + "line": 382, "character": 26 } ] }, { - "id": 286, + "id": 291, "name": "_onConnClose", "kind": 2048, "kindString": "Method", @@ -778,7 +808,7 @@ }, "signatures": [ { - "id": 287, + "id": 292, "name": "_onConnClose", "kind": 4096, "kindString": "Call signature", @@ -787,7 +817,7 @@ }, "parameters": [ { - "id": 288, + "id": 293, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -809,13 +839,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 328, + "line": 352, "character": 22 } ] }, { - "id": 289, + "id": 294, "name": "_onConnError", "kind": 2048, "kindString": "Method", @@ -825,7 +855,7 @@ }, "signatures": [ { - "id": 290, + "id": 295, "name": "_onConnError", "kind": 4096, "kindString": "Call signature", @@ -834,7 +864,7 @@ }, "parameters": [ { - "id": 291, + "id": 296, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -856,13 +886,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 336, + "line": 360, "character": 22 } ] }, { - "id": 284, + "id": 289, "name": "_onConnOpen", "kind": 2048, "kindString": "Method", @@ -872,7 +902,7 @@ }, "signatures": [ { - "id": 285, + "id": 290, "name": "_onConnOpen", "kind": 4096, "kindString": "Call signature", @@ -888,13 +918,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 320, + "line": 344, "character": 21 } ] }, { - "id": 303, + "id": 308, "name": "_resetHeartbeat", "kind": 2048, "kindString": "Method", @@ -904,7 +934,7 @@ }, "signatures": [ { - "id": 304, + "id": 309, "name": "_resetHeartbeat", "kind": 4096, "kindString": "Call signature", @@ -920,13 +950,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 365, + "line": 389, "character": 25 } ] }, { - "id": 305, + "id": 310, "name": "_sendHeartbeat", "kind": 2048, "kindString": "Method", @@ -936,7 +966,7 @@ }, "signatures": [ { - "id": 306, + "id": 311, "name": "_sendHeartbeat", "kind": 4096, "kindString": "Call signature", @@ -952,13 +982,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 374, + "line": 398, "character": 24 } ] }, { - "id": 292, + "id": 297, "name": "_triggerChanError", "kind": 2048, "kindString": "Method", @@ -968,7 +998,7 @@ }, "signatures": [ { - "id": 293, + "id": 298, "name": "_triggerChanError", "kind": 4096, "kindString": "Call signature", @@ -984,13 +1014,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 342, + "line": 366, "character": 27 } ] }, { - "id": 269, + "id": 271, "name": "channel", "kind": 2048, "kindString": "Method", @@ -999,7 +1029,7 @@ }, "signatures": [ { - "id": 270, + "id": 272, "name": "channel", "kind": 4096, "kindString": "Call signature", @@ -1008,7 +1038,7 @@ }, "parameters": [ { - "id": 271, + "id": 273, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -1021,7 +1051,7 @@ } }, { - "id": 272, + "id": 274, "name": "chanParams", "kind": 32768, "kindString": "Parameter", @@ -1031,7 +1061,7 @@ "type": { "type": "reflection", "declaration": { - "id": 273, + "id": 275, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1045,7 +1075,7 @@ ], "type": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } } @@ -1053,13 +1083,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 250, + "line": 251, "character": 9 } ] }, { - "id": 236, + "id": 238, "name": "connect", "kind": 2048, "kindString": "Method", @@ -1068,7 +1098,7 @@ }, "signatures": [ { - "id": 237, + "id": 239, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -1087,13 +1117,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 118, + "line": 119, "character": 9 } ] }, { - "id": 262, + "id": 264, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -1102,7 +1132,7 @@ }, "signatures": [ { - "id": 263, + "id": 265, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -1138,13 +1168,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 219, + "line": 220, "character": 17 } ] }, { - "id": 238, + "id": 240, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -1153,7 +1183,7 @@ }, "signatures": [ { - "id": 239, + "id": 241, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -1165,7 +1195,7 @@ }, "parameters": [ { - "id": 240, + "id": 242, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -1191,7 +1221,7 @@ } }, { - "id": 241, + "id": 243, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -1223,7 +1253,7 @@ { "type": "reflection", "declaration": { - "id": 242, + "id": 244, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1232,7 +1262,7 @@ }, "children": [ { - "id": 244, + "id": 246, "name": "data", "kind": 32, "kindString": "Variable", @@ -1242,7 +1272,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 143, + "line": 144, "character": 40 } ], @@ -1252,7 +1282,7 @@ } }, { - "id": 243, + "id": 245, "name": "error", "kind": 32, "kindString": "Variable", @@ -1262,7 +1292,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 143, + "line": 144, "character": 20 } ], @@ -1286,15 +1316,15 @@ "title": "Variables", "kind": 32, "children": [ - 244, - 243 + 246, + 245 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 143, + "line": 144, "character": 13 } ] @@ -1308,13 +1338,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 140, + "line": 141, "character": 12 } ] }, { - "id": 280, + "id": 282, "name": "endPointURL", "kind": 2048, "kindString": "Method", @@ -1323,7 +1353,7 @@ }, "signatures": [ { - "id": 281, + "id": 283, "name": "endPointURL", "kind": 4096, "kindString": "Call signature", @@ -1342,13 +1372,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 299, + "line": 300, "character": 13 } ] }, { - "id": 264, + "id": 266, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -1357,7 +1387,7 @@ }, "signatures": [ { - "id": 265, + "id": 267, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -1376,13 +1406,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 235, + "line": 236, "character": 13 } ] }, { - "id": 245, + "id": 247, "name": "log", "kind": 2048, "kindString": "Method", @@ -1391,7 +1421,7 @@ }, "signatures": [ { - "id": 246, + "id": 248, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -1403,7 +1433,7 @@ }, "parameters": [ { - "id": 247, + "id": 249, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -1416,7 +1446,7 @@ } }, { - "id": 248, + "id": 250, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -1429,7 +1459,7 @@ } }, { - "id": 249, + "id": 251, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -1452,13 +1482,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 168, + "line": 169, "character": 5 } ] }, { - "id": 282, + "id": 284, "name": "makeRef", "kind": 2048, "kindString": "Method", @@ -1467,7 +1497,7 @@ }, "signatures": [ { - "id": 283, + "id": 285, "name": "makeRef", "kind": 4096, "kindString": "Call signature", @@ -1486,13 +1516,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 309, + "line": 310, "character": 9 } ] }, { - "id": 253, + "id": 255, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -1501,7 +1531,7 @@ }, "signatures": [ { - "id": 254, + "id": 256, "name": "onClose", "kind": 4096, "kindString": "Call signature", @@ -1519,7 +1549,7 @@ }, "parameters": [ { - "id": 255, + "id": 257, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -1544,13 +1574,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 190, + "line": 191, "character": 9 } ] }, { - "id": 277, + "id": 279, "name": "onConnMessage", "kind": 2048, "kindString": "Method", @@ -1559,7 +1589,7 @@ }, "signatures": [ { - "id": 278, + "id": 280, "name": "onConnMessage", "kind": 4096, "kindString": "Call signature", @@ -1568,7 +1598,7 @@ }, "parameters": [ { - "id": 279, + "id": 281, "name": "rawMessage", "kind": 32768, "kindString": "Parameter", @@ -1590,13 +1620,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 271, + "line": 272, "character": 15 } ] }, { - "id": 256, + "id": 258, "name": "onError", "kind": 2048, "kindString": "Method", @@ -1605,7 +1635,7 @@ }, "signatures": [ { - "id": 257, + "id": 259, "name": "onError", "kind": 4096, "kindString": "Call signature", @@ -1623,7 +1653,7 @@ }, "parameters": [ { - "id": 258, + "id": 260, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -1648,13 +1678,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 201, + "line": 202, "character": 9 } ] }, { - "id": 259, + "id": 261, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -1663,7 +1693,7 @@ }, "signatures": [ { - "id": 260, + "id": 262, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -1681,7 +1711,7 @@ }, "parameters": [ { - "id": 261, + "id": 263, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -1706,13 +1736,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 212, + "line": 213, "character": 11 } ] }, { - "id": 250, + "id": 252, "name": "onOpen", "kind": 2048, "kindString": "Method", @@ -1721,7 +1751,7 @@ }, "signatures": [ { - "id": 251, + "id": 253, "name": "onOpen", "kind": 4096, "kindString": "Call signature", @@ -1739,7 +1769,7 @@ }, "parameters": [ { - "id": 252, + "id": 254, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -1764,13 +1794,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 179, + "line": 180, "character": 8 } ] }, { - "id": 274, + "id": 276, "name": "push", "kind": 2048, "kindString": "Method", @@ -1779,7 +1809,7 @@ }, "signatures": [ { - "id": 275, + "id": 277, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -1788,7 +1818,7 @@ }, "parameters": [ { - "id": 276, + "id": 278, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -1797,7 +1827,7 @@ }, "type": { "type": "reference", - "id": 325, + "id": 330, "name": "Message" } } @@ -1811,13 +1841,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 256, + "line": 257, "character": 6 } ] }, { - "id": 266, + "id": 268, "name": "remove", "kind": 2048, "kindString": "Method", @@ -1826,7 +1856,7 @@ }, "signatures": [ { - "id": 267, + "id": 269, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -1838,7 +1868,7 @@ }, "parameters": [ { - "id": 268, + "id": 270, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -1850,7 +1880,7 @@ }, "type": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } } @@ -1864,13 +1894,74 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 244, + "line": 245, "character": 8 } ] }, { - "id": 227, + "id": 286, + "name": "setAuth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 287, + "name": "setAuth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS." + }, + "parameters": [ + { + "id": 288, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A JWT string.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 326, + "character": 9 + } + ] + }, + { + "id": 229, "name": "stateChangeCallbacks", "kind": 2097152, "kindString": "Object literal", @@ -1879,37 +1970,13 @@ }, "children": [ { - "id": 229, + "id": 231, "name": "close", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 63, - "character": 9 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "never" - } - }, - "defaultValue": "[]" - }, - { - "id": 230, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -1927,8 +1994,8 @@ "defaultValue": "[]" }, { - "id": 231, - "name": "message", + "id": 232, + "name": "error", "kind": 32, "kindString": "Variable", "flags": { @@ -1938,6 +2005,30 @@ { "fileName": "RealtimeClient.ts", "line": 65, + "character": 9 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + }, + "defaultValue": "[]" + }, + { + "id": 233, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 66, "character": 11 } ], @@ -1951,7 +2042,7 @@ "defaultValue": "[]" }, { - "id": 228, + "id": 230, "name": "open", "kind": 32, "kindString": "Variable", @@ -1961,7 +2052,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 62, + "line": 63, "character": 8 } ], @@ -1980,17 +2071,17 @@ "title": "Variables", "kind": 32, "children": [ - 229, - 230, 231, - 228 + 232, + 233, + 230 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 56, + "line": 57, "character": 22 } ], @@ -2005,68 +2096,70 @@ "title": "Constructors", "kind": 512, "children": [ - 232 + 234 ] }, { "title": "Properties", "kind": 1024, "children": [ - 202, - 224, - 222, - 221, 203, 204, - 214, - 216, - 220, - 215, - 208, - 217, - 223, - 219, - 218, - 225, 226, - 212, - 213 + 224, + 223, + 205, + 206, + 216, + 218, + 222, + 217, + 210, + 219, + 225, + 221, + 220, + 227, + 228, + 214, + 215 ] }, { "title": "Methods", "kind": 2048, "children": [ + 299, + 306, + 291, 294, - 301, - 286, 289, - 284, - 303, - 305, - 292, - 269, - 236, - 262, + 308, + 310, + 297, + 271, 238, - 280, 264, - 245, + 240, 282, - 253, - 277, - 256, - 259, - 250, - 274, - 266 + 266, + 247, + 284, + 255, + 279, + 258, + 261, + 252, + 276, + 268, + 286 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 227 + 229 ] } ], @@ -2079,7 +2172,7 @@ ] }, { - "id": 325, + "id": 330, "name": "Message", "kind": 4194304, "kindString": "Type alias", @@ -2094,14 +2187,14 @@ "type": { "type": "reflection", "declaration": { - "id": 326, + "id": 331, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 328, + "id": 333, "name": "event", "kind": 32, "kindString": "Variable", @@ -2119,7 +2212,7 @@ } }, { - "id": 329, + "id": 334, "name": "payload", "kind": 32, "kindString": "Variable", @@ -2137,7 +2230,7 @@ } }, { - "id": 330, + "id": 335, "name": "ref", "kind": 32, "kindString": "Variable", @@ -2155,7 +2248,7 @@ } }, { - "id": 327, + "id": 332, "name": "topic", "kind": 32, "kindString": "Variable", @@ -2178,10 +2271,10 @@ "title": "Variables", "kind": 32, "children": [ - 328, - 329, - 330, - 327 + 333, + 334, + 335, + 332 ] } ], @@ -2196,7 +2289,7 @@ } }, { - "id": 307, + "id": 312, "name": "Options", "kind": 4194304, "kindString": "Type alias", @@ -2213,7 +2306,7 @@ "type": { "type": "reflection", "declaration": { - "id": 308, + "id": 313, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2222,7 +2315,7 @@ }, "children": [ { - "id": 315, + "id": 320, "name": "decode", "kind": 32, "kindString": "Variable", @@ -2243,7 +2336,7 @@ } }, { - "id": 314, + "id": 319, "name": "encode", "kind": 32, "kindString": "Variable", @@ -2264,7 +2357,7 @@ } }, { - "id": 317, + "id": 322, "name": "headers", "kind": 32, "kindString": "Variable", @@ -2289,7 +2382,7 @@ { "type": "reflection", "declaration": { - "id": 318, + "id": 323, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2298,7 +2391,7 @@ }, "indexSignature": [ { - "id": 319, + "id": 324, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -2307,7 +2400,7 @@ }, "parameters": [ { - "id": 320, + "id": 325, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2332,7 +2425,7 @@ } }, { - "id": 311, + "id": 316, "name": "heartbeatIntervalMs", "kind": 32, "kindString": "Variable", @@ -2362,7 +2455,7 @@ } }, { - "id": 313, + "id": 318, "name": "logger", "kind": 32, "kindString": "Variable", @@ -2383,7 +2476,7 @@ } }, { - "id": 312, + "id": 317, "name": "longpollerTimeout", "kind": 32, "kindString": "Variable", @@ -2413,7 +2506,7 @@ } }, { - "id": 321, + "id": 326, "name": "params", "kind": 32, "kindString": "Variable", @@ -2438,7 +2531,7 @@ { "type": "reflection", "declaration": { - "id": 322, + "id": 327, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2447,7 +2540,7 @@ }, "indexSignature": [ { - "id": 323, + "id": 328, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -2456,7 +2549,7 @@ }, "parameters": [ { - "id": 324, + "id": 329, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2481,7 +2574,7 @@ } }, { - "id": 316, + "id": 321, "name": "reconnectAfterMs", "kind": 32, "kindString": "Variable", @@ -2502,7 +2595,7 @@ } }, { - "id": 310, + "id": 315, "name": "timeout", "kind": 32, "kindString": "Variable", @@ -2532,7 +2625,7 @@ } }, { - "id": 309, + "id": 314, "name": "transport", "kind": 32, "kindString": "Variable", @@ -2558,16 +2651,16 @@ "title": "Variables", "kind": 32, "children": [ - 315, - 314, - 317, - 311, - 313, - 312, - 321, + 320, + 319, + 322, 316, - 310, - 309 + 318, + 317, + 326, + 321, + 315, + 314 ] } ], @@ -2582,7 +2675,7 @@ } }, { - "id": 331, + "id": 336, "name": "noop", "kind": 64, "kindString": "Function", @@ -2591,7 +2684,7 @@ }, "signatures": [ { - "id": 332, + "id": 337, "name": "noop", "kind": 4096, "kindString": "Call signature", @@ -2616,22 +2709,22 @@ "title": "Classes", "kind": 128, "children": [ - 201 + 202 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 325, - 307 + 330, + 312 ] }, { "title": "Functions", "kind": 64, "children": [ - 331 + 336 ] } ], @@ -2644,7 +2737,7 @@ ] }, { - "id": 96, + "id": 97, "name": "\"RealtimeSubscription\"", "kind": 1, "kindString": "Module", @@ -2654,7 +2747,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts", "children": [ { - "id": 97, + "id": 98, "name": "RealtimeSubscription", "kind": 128, "kindString": "Class", @@ -2663,7 +2756,7 @@ }, "children": [ { - "id": 105, + "id": 106, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2672,7 +2765,7 @@ }, "signatures": [ { - "id": 109, + "id": 110, "name": "new RealtimeSubscription", "kind": 16384, "kindString": "Constructor signature", @@ -2681,7 +2774,7 @@ }, "parameters": [ { - "id": 110, + "id": 111, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -2694,7 +2787,7 @@ } }, { - "id": 111, + "id": 112, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -2708,7 +2801,7 @@ "defaultValue": "{}" }, { - "id": 112, + "id": 113, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -2717,14 +2810,14 @@ }, "type": { "type": "reference", - "id": 201, + "id": 202, "name": "RealtimeClient" } } ], "type": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } } @@ -2738,7 +2831,7 @@ ] }, { - "id": 98, + "id": 99, "name": "bindings", "kind": 1024, "kindString": "Property", @@ -2762,7 +2855,7 @@ "defaultValue": "[]" }, { - "id": 102, + "id": 103, "name": "joinPush", "kind": 1024, "kindString": "Property", @@ -2778,12 +2871,12 @@ ], "type": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } }, { - "id": 101, + "id": 102, "name": "joinedOnce", "kind": 1024, "kindString": "Property", @@ -2804,7 +2897,7 @@ "defaultValue": "false" }, { - "id": 107, + "id": 108, "name": "params", "kind": 1024, "kindString": "Property", @@ -2826,7 +2919,7 @@ } }, { - "id": 104, + "id": 105, "name": "pushBuffer", "kind": 1024, "kindString": "Property", @@ -2844,14 +2937,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } }, "defaultValue": "[]" }, { - "id": 103, + "id": 104, "name": "rejoinTimer", "kind": 1024, "kindString": "Property", @@ -2867,12 +2960,12 @@ ], "type": { "type": "reference", - "id": 29, + "id": 30, "name": "Timer" } }, { - "id": 108, + "id": 109, "name": "socket", "kind": 1024, "kindString": "Property", @@ -2890,12 +2983,12 @@ ], "type": { "type": "reference", - "id": 201, + "id": 202, "name": "RealtimeClient" } }, { - "id": 100, + "id": 101, "name": "state", "kind": 1024, "kindString": "Property", @@ -2917,7 +3010,7 @@ "defaultValue": "CHANNEL_STATES.closed" }, { - "id": 99, + "id": 100, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -2937,7 +3030,7 @@ } }, { - "id": 106, + "id": 107, "name": "topic", "kind": 1024, "kindString": "Property", @@ -2959,7 +3052,7 @@ } }, { - "id": 131, + "id": 132, "name": "canPush", "kind": 2048, "kindString": "Method", @@ -2968,7 +3061,7 @@ }, "signatures": [ { - "id": 132, + "id": 133, "name": "canPush", "kind": 4096, "kindString": "Call signature", @@ -2990,7 +3083,7 @@ ] }, { - "id": 165, + "id": 166, "name": "isClosed", "kind": 2048, "kindString": "Method", @@ -2999,7 +3092,7 @@ }, "signatures": [ { - "id": 166, + "id": 167, "name": "isClosed", "kind": 4096, "kindString": "Call signature", @@ -3021,7 +3114,7 @@ ] }, { - "id": 167, + "id": 168, "name": "isErrored", "kind": 2048, "kindString": "Method", @@ -3030,7 +3123,7 @@ }, "signatures": [ { - "id": 168, + "id": 169, "name": "isErrored", "kind": 4096, "kindString": "Call signature", @@ -3052,7 +3145,7 @@ ] }, { - "id": 169, + "id": 170, "name": "isJoined", "kind": 2048, "kindString": "Method", @@ -3061,7 +3154,7 @@ }, "signatures": [ { - "id": 170, + "id": 171, "name": "isJoined", "kind": 4096, "kindString": "Call signature", @@ -3083,7 +3176,7 @@ ] }, { - "id": 171, + "id": 172, "name": "isJoining", "kind": 2048, "kindString": "Method", @@ -3092,7 +3185,7 @@ }, "signatures": [ { - "id": 172, + "id": 173, "name": "isJoining", "kind": 4096, "kindString": "Call signature", @@ -3114,7 +3207,7 @@ ] }, { - "id": 173, + "id": 174, "name": "isLeaving", "kind": 2048, "kindString": "Method", @@ -3123,7 +3216,7 @@ }, "signatures": [ { - "id": 174, + "id": 175, "name": "isLeaving", "kind": 4096, "kindString": "Call signature", @@ -3145,7 +3238,7 @@ ] }, { - "id": 146, + "id": 147, "name": "isMember", "kind": 2048, "kindString": "Method", @@ -3154,7 +3247,7 @@ }, "signatures": [ { - "id": 147, + "id": 148, "name": "isMember", "kind": 4096, "kindString": "Call signature", @@ -3163,7 +3256,7 @@ }, "parameters": [ { - "id": 148, + "id": 149, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -3191,7 +3284,7 @@ ] }, { - "id": 149, + "id": 150, "name": "joinRef", "kind": 2048, "kindString": "Method", @@ -3200,7 +3293,7 @@ }, "signatures": [ { - "id": 150, + "id": 151, "name": "joinRef", "kind": 4096, "kindString": "Call signature", @@ -3222,7 +3315,7 @@ ] }, { - "id": 128, + "id": 129, "name": "off", "kind": 2048, "kindString": "Method", @@ -3231,7 +3324,7 @@ }, "signatures": [ { - "id": 129, + "id": 130, "name": "off", "kind": 4096, "kindString": "Call signature", @@ -3240,7 +3333,7 @@ }, "parameters": [ { - "id": 130, + "id": 131, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -3268,7 +3361,7 @@ ] }, { - "id": 124, + "id": 125, "name": "on", "kind": 2048, "kindString": "Method", @@ -3277,7 +3370,7 @@ }, "signatures": [ { - "id": 125, + "id": 126, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -3286,7 +3379,7 @@ }, "parameters": [ { - "id": 126, + "id": 127, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -3299,7 +3392,7 @@ } }, { - "id": 127, + "id": 128, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -3327,7 +3420,7 @@ ] }, { - "id": 118, + "id": 119, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -3336,7 +3429,7 @@ }, "signatures": [ { - "id": 119, + "id": 120, "name": "onClose", "kind": 4096, "kindString": "Call signature", @@ -3345,7 +3438,7 @@ }, "parameters": [ { - "id": 120, + "id": 121, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -3373,7 +3466,7 @@ ] }, { - "id": 121, + "id": 122, "name": "onError", "kind": 2048, "kindString": "Method", @@ -3382,7 +3475,7 @@ }, "signatures": [ { - "id": 122, + "id": 123, "name": "onError", "kind": 4096, "kindString": "Call signature", @@ -3391,7 +3484,7 @@ }, "parameters": [ { - "id": 123, + "id": 124, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -3419,7 +3512,7 @@ ] }, { - "id": 141, + "id": 142, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -3428,7 +3521,7 @@ }, "signatures": [ { - "id": 142, + "id": 143, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -3441,7 +3534,7 @@ }, "parameters": [ { - "id": 143, + "id": 144, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -3454,7 +3547,7 @@ } }, { - "id": 144, + "id": 145, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -3467,7 +3560,7 @@ } }, { - "id": 145, + "id": 146, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -3505,7 +3598,7 @@ ] }, { - "id": 133, + "id": 134, "name": "push", "kind": 2048, "kindString": "Method", @@ -3514,7 +3607,7 @@ }, "signatures": [ { - "id": 134, + "id": 135, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -3523,7 +3616,7 @@ }, "parameters": [ { - "id": 135, + "id": 136, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -3537,7 +3630,7 @@ } }, { - "id": 136, + "id": 137, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -3550,7 +3643,7 @@ } }, { - "id": 137, + "id": 138, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -3566,7 +3659,7 @@ ], "type": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } } @@ -3580,7 +3673,7 @@ ] }, { - "id": 154, + "id": 155, "name": "rejoin", "kind": 2048, "kindString": "Method", @@ -3589,7 +3682,7 @@ }, "signatures": [ { - "id": 155, + "id": 156, "name": "rejoin", "kind": 4096, "kindString": "Call signature", @@ -3598,7 +3691,7 @@ }, "parameters": [ { - "id": 156, + "id": 157, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -3627,7 +3720,7 @@ ] }, { - "id": 113, + "id": 114, "name": "rejoinUntilConnected", "kind": 2048, "kindString": "Method", @@ -3636,7 +3729,7 @@ }, "signatures": [ { - "id": 114, + "id": 115, "name": "rejoinUntilConnected", "kind": 4096, "kindString": "Call signature", @@ -3658,7 +3751,7 @@ ] }, { - "id": 162, + "id": 163, "name": "replyEventName", "kind": 2048, "kindString": "Method", @@ -3667,7 +3760,7 @@ }, "signatures": [ { - "id": 163, + "id": 164, "name": "replyEventName", "kind": 4096, "kindString": "Call signature", @@ -3676,7 +3769,7 @@ }, "parameters": [ { - "id": 164, + "id": 165, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -3704,7 +3797,7 @@ ] }, { - "id": 151, + "id": 152, "name": "sendJoin", "kind": 2048, "kindString": "Method", @@ -3713,7 +3806,7 @@ }, "signatures": [ { - "id": 152, + "id": 153, "name": "sendJoin", "kind": 4096, "kindString": "Call signature", @@ -3722,7 +3815,7 @@ }, "parameters": [ { - "id": 153, + "id": 154, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -3750,7 +3843,7 @@ ] }, { - "id": 115, + "id": 116, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -3759,7 +3852,7 @@ }, "signatures": [ { - "id": 116, + "id": 117, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -3768,7 +3861,7 @@ }, "parameters": [ { - "id": 117, + "id": 118, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -3784,7 +3877,7 @@ ], "type": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } } @@ -3798,7 +3891,7 @@ ] }, { - "id": 157, + "id": 158, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -3807,7 +3900,7 @@ }, "signatures": [ { - "id": 158, + "id": 159, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -3816,7 +3909,7 @@ }, "parameters": [ { - "id": 159, + "id": 160, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -3829,7 +3922,7 @@ } }, { - "id": 160, + "id": 161, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -3843,7 +3936,7 @@ } }, { - "id": 161, + "id": 162, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -3881,7 +3974,7 @@ ] }, { - "id": 138, + "id": 139, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -3890,7 +3983,7 @@ }, "signatures": [ { - "id": 139, + "id": 140, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -3903,7 +3996,7 @@ }, "parameters": [ { - "id": 140, + "id": 141, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -3919,7 +4012,7 @@ ], "type": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } } @@ -3938,50 +4031,50 @@ "title": "Constructors", "kind": 512, "children": [ - 105 + 106 ] }, { "title": "Properties", "kind": 1024, "children": [ - 98, - 102, - 101, - 107, - 104, - 103, - 108, - 100, 99, - 106 + 103, + 102, + 108, + 105, + 104, + 109, + 101, + 100, + 107 ] }, { "title": "Methods", "kind": 2048, "children": [ - 131, - 165, - 167, - 169, - 171, - 173, - 146, - 149, - 128, - 124, - 118, - 121, - 141, - 133, - 154, - 113, - 162, - 151, - 115, - 157, - 138 + 132, + 166, + 168, + 170, + 172, + 174, + 147, + 150, + 129, + 125, + 119, + 122, + 142, + 134, + 155, + 114, + 163, + 152, + 116, + 158, + 139 ] } ], @@ -3999,7 +4092,7 @@ "title": "Classes", "kind": 128, "children": [ - 97 + 98 ] } ], @@ -4012,7 +4105,7 @@ ] }, { - "id": 407, + "id": 412, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -4047,6 +4140,23 @@ "isExported": true }, "children": [ + { + "id": 21, + "name": "access_token", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 32, + "character": 14 + } + ], + "defaultValue": "\"access_token\"" + }, { "id": 16, "name": "close", @@ -4138,6 +4248,7 @@ "title": "Enumeration members", "kind": 16, "children": [ + 21, 16, 17, 18, @@ -4369,7 +4480,7 @@ ] }, { - "id": 21, + "id": 22, "name": "TRANSPORTS", "kind": 4, "kindString": "Enumeration", @@ -4378,7 +4489,7 @@ }, "children": [ { - "id": 22, + "id": 23, "name": "websocket", "kind": 16, "kindString": "Enumeration member", @@ -4388,7 +4499,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 35, + "line": 36, "character": 11 } ], @@ -4400,20 +4511,20 @@ "title": "Enumeration members", "kind": 16, "children": [ - 22 + 23 ] } ], "sources": [ { "fileName": "lib/constants.ts", - "line": 34, + "line": 35, "character": 22 } ] }, { - "id": 26, + "id": 27, "name": "DEFAULT_TIMEOUT", "kind": 32, "kindString": "Variable", @@ -4435,7 +4546,7 @@ "defaultValue": "10000" }, { - "id": 25, + "id": 26, "name": "VSN", "kind": 32, "kindString": "Variable", @@ -4457,7 +4568,7 @@ "defaultValue": "\"1.0.0\"" }, { - "id": 27, + "id": 28, "name": "WS_CLOSE_NORMAL", "kind": 32, "kindString": "Variable", @@ -4479,7 +4590,7 @@ "defaultValue": "1000" }, { - "id": 23, + "id": 24, "name": "DEFAULT_HEADERS", "kind": 2097152, "kindString": "Object literal", @@ -4489,7 +4600,7 @@ }, "children": [ { - "id": 24, + "id": 25, "name": "X-Client-Info", "kind": 32, "kindString": "Variable", @@ -4515,7 +4626,7 @@ "title": "Variables", "kind": 32, "children": [ - 24 + 25 ] } ], @@ -4540,23 +4651,23 @@ 15, 9, 4, - 21 + 22 ] }, { "title": "Variables", "kind": 32, "children": [ + 27, 26, - 25, - 27 + 28 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 23 + 24 ] } ], @@ -4569,7 +4680,7 @@ ] }, { - "id": 42, + "id": 43, "name": "\"lib/push\"", "kind": 1, "kindString": "Module", @@ -4579,7 +4690,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/push.ts", "children": [ { - "id": 43, + "id": 44, "name": "Push", "kind": 128, "kindString": "Class", @@ -4588,7 +4699,7 @@ }, "children": [ { - "id": 56, + "id": 57, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -4600,7 +4711,7 @@ }, "signatures": [ { - "id": 61, + "id": 62, "name": "new Push", "kind": 16384, "kindString": "Constructor signature", @@ -4612,7 +4723,7 @@ }, "parameters": [ { - "id": 62, + "id": 63, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -4624,12 +4735,12 @@ }, "type": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } }, { - "id": 63, + "id": 64, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -4645,7 +4756,7 @@ } }, { - "id": 64, + "id": 65, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -4662,7 +4773,7 @@ "defaultValue": "{}" }, { - "id": 65, + "id": 66, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -4681,7 +4792,7 @@ ], "type": { "type": "reference", - "id": 43, + "id": 44, "name": "Push" } } @@ -4695,7 +4806,7 @@ ] }, { - "id": 57, + "id": 58, "name": "channel", "kind": 1024, "kindString": "Property", @@ -4716,12 +4827,12 @@ ], "type": { "type": "reference", - "id": 97, + "id": 98, "name": "RealtimeSubscription" } }, { - "id": 58, + "id": 59, "name": "event", "kind": 1024, "kindString": "Property", @@ -4746,7 +4857,7 @@ } }, { - "id": 59, + "id": 60, "name": "payload", "kind": 1024, "kindString": "Property", @@ -4771,7 +4882,7 @@ } }, { - "id": 51, + "id": 52, "name": "recHooks", "kind": 1024, "kindString": "Property", @@ -4790,7 +4901,7 @@ "elementType": { "type": "reflection", "declaration": { - "id": 52, + "id": 53, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4799,7 +4910,7 @@ }, "children": [ { - "id": 54, + "id": 55, "name": "callback", "kind": 32, "kindString": "Variable", @@ -4819,7 +4930,7 @@ } }, { - "id": 53, + "id": 54, "name": "status", "kind": 32, "kindString": "Variable", @@ -4844,8 +4955,8 @@ "title": "Variables", "kind": 32, "children": [ - 54, - 53 + 55, + 54 ] } ], @@ -4862,7 +4973,7 @@ "defaultValue": "[]" }, { - "id": 47, + "id": 48, "name": "receivedResp", "kind": 1024, "kindString": "Property", @@ -4882,7 +4993,7 @@ { "type": "reflection", "declaration": { - "id": 48, + "id": 49, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4891,7 +5002,7 @@ }, "children": [ { - "id": 50, + "id": 51, "name": "response", "kind": 32, "kindString": "Variable", @@ -4911,7 +5022,7 @@ } }, { - "id": 49, + "id": 50, "name": "status", "kind": 32, "kindString": "Variable", @@ -4936,8 +5047,8 @@ "title": "Variables", "kind": 32, "children": [ - 50, - 49 + 51, + 50 ] } ], @@ -4959,7 +5070,7 @@ "defaultValue": "null" }, { - "id": 46, + "id": 47, "name": "ref", "kind": 1024, "kindString": "Property", @@ -4980,7 +5091,7 @@ "defaultValue": "\"\"" }, { - "id": 55, + "id": 56, "name": "refEvent", "kind": 1024, "kindString": "Property", @@ -5010,7 +5121,7 @@ "defaultValue": "null" }, { - "id": 44, + "id": 45, "name": "sent", "kind": 1024, "kindString": "Property", @@ -5031,7 +5142,7 @@ "defaultValue": "false" }, { - "id": 60, + "id": 61, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -5056,7 +5167,7 @@ } }, { - "id": 45, + "id": 46, "name": "timeoutTimer", "kind": 1024, "kindString": "Property", @@ -5086,7 +5197,7 @@ "defaultValue": "undefined" }, { - "id": 83, + "id": 84, "name": "_cancelRefEvent", "kind": 2048, "kindString": "Method", @@ -5096,7 +5207,7 @@ }, "signatures": [ { - "id": 84, + "id": 85, "name": "_cancelRefEvent", "kind": 4096, "kindString": "Call signature", @@ -5118,7 +5229,7 @@ ] }, { - "id": 85, + "id": 86, "name": "_cancelTimeout", "kind": 2048, "kindString": "Method", @@ -5128,7 +5239,7 @@ }, "signatures": [ { - "id": 86, + "id": 87, "name": "_cancelTimeout", "kind": 4096, "kindString": "Call signature", @@ -5150,7 +5261,7 @@ ] }, { - "id": 93, + "id": 94, "name": "_hasReceived", "kind": 2048, "kindString": "Method", @@ -5160,7 +5271,7 @@ }, "signatures": [ { - "id": 94, + "id": 95, "name": "_hasReceived", "kind": 4096, "kindString": "Call signature", @@ -5169,7 +5280,7 @@ }, "parameters": [ { - "id": 95, + "id": 96, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -5210,7 +5321,7 @@ ] }, { - "id": 87, + "id": 88, "name": "_matchReceive", "kind": 2048, "kindString": "Method", @@ -5220,7 +5331,7 @@ }, "signatures": [ { - "id": 88, + "id": 89, "name": "_matchReceive", "kind": 4096, "kindString": "Call signature", @@ -5229,7 +5340,7 @@ }, "parameters": [ { - "id": 89, + "id": 90, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -5240,7 +5351,7 @@ "type": { "type": "reflection", "declaration": { - "id": 90, + "id": 91, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5249,7 +5360,7 @@ }, "children": [ { - "id": 92, + "id": 93, "name": "response", "kind": 32, "kindString": "Variable", @@ -5269,7 +5380,7 @@ } }, { - "id": 91, + "id": 92, "name": "status", "kind": 32, "kindString": "Variable", @@ -5294,8 +5405,8 @@ "title": "Variables", "kind": 32, "children": [ - 92, - 91 + 93, + 92 ] } ], @@ -5325,7 +5436,7 @@ ] }, { - "id": 81, + "id": 82, "name": "destroy", "kind": 2048, "kindString": "Method", @@ -5334,7 +5445,7 @@ }, "signatures": [ { - "id": 82, + "id": 83, "name": "destroy", "kind": 4096, "kindString": "Call signature", @@ -5356,7 +5467,7 @@ ] }, { - "id": 71, + "id": 72, "name": "receive", "kind": 2048, "kindString": "Method", @@ -5365,7 +5476,7 @@ }, "signatures": [ { - "id": 72, + "id": 73, "name": "receive", "kind": 4096, "kindString": "Call signature", @@ -5374,7 +5485,7 @@ }, "parameters": [ { - "id": 73, + "id": 74, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -5387,7 +5498,7 @@ } }, { - "id": 74, + "id": 75, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -5415,7 +5526,7 @@ ] }, { - "id": 66, + "id": 67, "name": "resend", "kind": 2048, "kindString": "Method", @@ -5424,7 +5535,7 @@ }, "signatures": [ { - "id": 67, + "id": 68, "name": "resend", "kind": 4096, "kindString": "Call signature", @@ -5433,7 +5544,7 @@ }, "parameters": [ { - "id": 68, + "id": 69, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -5461,7 +5572,7 @@ ] }, { - "id": 69, + "id": 70, "name": "send", "kind": 2048, "kindString": "Method", @@ -5470,7 +5581,7 @@ }, "signatures": [ { - "id": 70, + "id": 71, "name": "send", "kind": 4096, "kindString": "Call signature", @@ -5492,7 +5603,7 @@ ] }, { - "id": 75, + "id": 76, "name": "startTimeout", "kind": 2048, "kindString": "Method", @@ -5501,7 +5612,7 @@ }, "signatures": [ { - "id": 76, + "id": 77, "name": "startTimeout", "kind": 4096, "kindString": "Call signature", @@ -5523,7 +5634,7 @@ ] }, { - "id": 77, + "id": 78, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -5532,7 +5643,7 @@ }, "signatures": [ { - "id": 78, + "id": 79, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -5541,7 +5652,7 @@ }, "parameters": [ { - "id": 79, + "id": 80, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -5554,7 +5665,7 @@ } }, { - "id": 80, + "id": 81, "name": "response", "kind": 32768, "kindString": "Parameter", @@ -5587,39 +5698,39 @@ "title": "Constructors", "kind": 512, "children": [ - 56 + 57 ] }, { "title": "Properties", "kind": 1024, "children": [ - 57, 58, 59, - 51, - 47, - 46, - 55, - 44, 60, - 45 + 52, + 48, + 47, + 56, + 45, + 61, + 46 ] }, { "title": "Methods", "kind": 2048, "children": [ - 83, - 85, - 93, - 87, - 81, - 71, - 66, - 69, - 75, - 77 + 84, + 86, + 94, + 88, + 82, + 72, + 67, + 70, + 76, + 78 ] } ], @@ -5637,7 +5748,7 @@ "title": "Classes", "kind": 128, "children": [ - 43 + 44 ] } ], @@ -5650,7 +5761,7 @@ ] }, { - "id": 175, + "id": 176, "name": "\"lib/serializer\"", "kind": 1, "kindString": "Module", @@ -5660,7 +5771,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts", "children": [ { - "id": 176, + "id": 177, "name": "Serializer", "kind": 128, "kindString": "Class", @@ -5669,7 +5780,7 @@ }, "children": [ { - "id": 177, + "id": 178, "name": "HEADER_LENGTH", "kind": 1024, "kindString": "Property", @@ -5690,7 +5801,7 @@ "defaultValue": "1" }, { - "id": 182, + "id": 183, "name": "_binaryDecode", "kind": 2048, "kindString": "Method", @@ -5700,7 +5811,7 @@ }, "signatures": [ { - "id": 183, + "id": 184, "name": "_binaryDecode", "kind": 4096, "kindString": "Call signature", @@ -5709,7 +5820,7 @@ }, "parameters": [ { - "id": 184, + "id": 185, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -5725,7 +5836,7 @@ "type": { "type": "reflection", "declaration": { - "id": 185, + "id": 186, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5734,7 +5845,7 @@ }, "children": [ { - "id": 188, + "id": 189, "name": "event", "kind": 32, "kindString": "Variable", @@ -5754,7 +5865,7 @@ } }, { - "id": 189, + "id": 190, "name": "payload", "kind": 32, "kindString": "Variable", @@ -5774,7 +5885,7 @@ } }, { - "id": 186, + "id": 187, "name": "ref", "kind": 32, "kindString": "Variable", @@ -5794,7 +5905,7 @@ } }, { - "id": 187, + "id": 188, "name": "topic", "kind": 32, "kindString": "Variable", @@ -5819,10 +5930,10 @@ "title": "Variables", "kind": 32, "children": [ - 188, 189, - 186, - 187 + 190, + 187, + 188 ] } ] @@ -5839,7 +5950,7 @@ ] }, { - "id": 190, + "id": 191, "name": "_decodeBroadcast", "kind": 2048, "kindString": "Method", @@ -5849,7 +5960,7 @@ }, "signatures": [ { - "id": 191, + "id": 192, "name": "_decodeBroadcast", "kind": 4096, "kindString": "Call signature", @@ -5858,7 +5969,7 @@ }, "parameters": [ { - "id": 192, + "id": 193, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -5871,7 +5982,7 @@ } }, { - "id": 193, + "id": 194, "name": "view", "kind": 32768, "kindString": "Parameter", @@ -5884,7 +5995,7 @@ } }, { - "id": 194, + "id": 195, "name": "decoder", "kind": 32768, "kindString": "Parameter", @@ -5900,7 +6011,7 @@ "type": { "type": "reflection", "declaration": { - "id": 195, + "id": 196, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5909,7 +6020,7 @@ }, "children": [ { - "id": 198, + "id": 199, "name": "event", "kind": 32, "kindString": "Variable", @@ -5929,7 +6040,7 @@ } }, { - "id": 199, + "id": 200, "name": "payload", "kind": 32, "kindString": "Variable", @@ -5949,7 +6060,7 @@ } }, { - "id": 196, + "id": 197, "name": "ref", "kind": 32, "kindString": "Variable", @@ -5969,7 +6080,7 @@ } }, { - "id": 197, + "id": 198, "name": "topic", "kind": 32, "kindString": "Variable", @@ -5994,10 +6105,10 @@ "title": "Variables", "kind": 32, "children": [ - 198, 199, - 196, - 197 + 200, + 197, + 198 ] } ], @@ -6021,7 +6132,7 @@ ] }, { - "id": 178, + "id": 179, "name": "decode", "kind": 2048, "kindString": "Method", @@ -6030,7 +6141,7 @@ }, "signatures": [ { - "id": 179, + "id": 180, "name": "decode", "kind": 4096, "kindString": "Call signature", @@ -6039,7 +6150,7 @@ }, "parameters": [ { - "id": 180, + "id": 181, "name": "rawPayload", "kind": 32768, "kindString": "Parameter", @@ -6061,7 +6172,7 @@ } }, { - "id": 181, + "id": 182, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -6094,16 +6205,16 @@ "title": "Properties", "kind": 1024, "children": [ - 177 + 178 ] }, { "title": "Methods", "kind": 2048, "children": [ - 182, - 190, - 178 + 183, + 191, + 179 ] } ], @@ -6121,7 +6232,7 @@ "title": "Classes", "kind": 128, "children": [ - 176 + 177 ] } ], @@ -6134,7 +6245,7 @@ ] }, { - "id": 28, + "id": 29, "name": "\"lib/timer\"", "kind": 1, "kindString": "Module", @@ -6144,7 +6255,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/timer.ts", "children": [ { - "id": 29, + "id": 30, "name": "Timer", "kind": 128, "kindString": "Class", @@ -6162,7 +6273,7 @@ }, "children": [ { - "id": 32, + "id": 33, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6171,7 +6282,7 @@ }, "signatures": [ { - "id": 35, + "id": 36, "name": "new Timer", "kind": 16384, "kindString": "Constructor signature", @@ -6180,7 +6291,7 @@ }, "parameters": [ { - "id": 36, + "id": 37, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -6193,7 +6304,7 @@ } }, { - "id": 37, + "id": 38, "name": "timerCalc", "kind": 32768, "kindString": "Parameter", @@ -6208,7 +6319,7 @@ ], "type": { "type": "reference", - "id": 29, + "id": 30, "name": "Timer" } } @@ -6222,7 +6333,7 @@ ] }, { - "id": 33, + "id": 34, "name": "callback", "kind": 1024, "kindString": "Property", @@ -6244,7 +6355,7 @@ } }, { - "id": 30, + "id": 31, "name": "timer", "kind": 1024, "kindString": "Property", @@ -6274,7 +6385,7 @@ "defaultValue": "undefined" }, { - "id": 34, + "id": 35, "name": "timerCalc", "kind": 1024, "kindString": "Property", @@ -6296,7 +6407,7 @@ } }, { - "id": 31, + "id": 32, "name": "tries", "kind": 1024, "kindString": "Property", @@ -6317,7 +6428,7 @@ "defaultValue": "0" }, { - "id": 38, + "id": 39, "name": "reset", "kind": 2048, "kindString": "Method", @@ -6326,7 +6437,7 @@ }, "signatures": [ { - "id": 39, + "id": 40, "name": "reset", "kind": 4096, "kindString": "Call signature", @@ -6348,7 +6459,7 @@ ] }, { - "id": 40, + "id": 41, "name": "scheduleTimeout", "kind": 2048, "kindString": "Method", @@ -6357,7 +6468,7 @@ }, "signatures": [ { - "id": 41, + "id": 42, "name": "scheduleTimeout", "kind": 4096, "kindString": "Call signature", @@ -6384,25 +6495,25 @@ "title": "Constructors", "kind": 512, "children": [ - 32 + 33 ] }, { "title": "Properties", "kind": 1024, "children": [ - 33, - 30, 34, - 31 + 31, + 35, + 32 ] }, { "title": "Methods", "kind": 2048, "children": [ - 38, - 40 + 39, + 41 ] } ], @@ -6420,7 +6531,7 @@ "title": "Classes", "kind": 128, "children": [ - 29 + 30 ] } ], @@ -6433,7 +6544,7 @@ ] }, { - "id": 333, + "id": 338, "name": "\"lib/transformers\"", "kind": 1, "kindString": "Module", @@ -6443,7 +6554,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts", "children": [ { - "id": 334, + "id": 339, "name": "PostgresTypes", "kind": 4, "kindString": "Enumeration", @@ -6455,7 +6566,7 @@ }, "children": [ { - "id": 335, + "id": 340, "name": "abstime", "kind": 16, "kindString": "Enumeration member", @@ -6472,7 +6583,7 @@ "defaultValue": "\"abstime\"" }, { - "id": 336, + "id": 341, "name": "bool", "kind": 16, "kindString": "Enumeration member", @@ -6489,7 +6600,7 @@ "defaultValue": "\"bool\"" }, { - "id": 337, + "id": 342, "name": "date", "kind": 16, "kindString": "Enumeration member", @@ -6506,7 +6617,7 @@ "defaultValue": "\"date\"" }, { - "id": 338, + "id": 343, "name": "daterange", "kind": 16, "kindString": "Enumeration member", @@ -6523,7 +6634,7 @@ "defaultValue": "\"daterange\"" }, { - "id": 339, + "id": 344, "name": "float4", "kind": 16, "kindString": "Enumeration member", @@ -6540,7 +6651,7 @@ "defaultValue": "\"float4\"" }, { - "id": 340, + "id": 345, "name": "float8", "kind": 16, "kindString": "Enumeration member", @@ -6557,7 +6668,7 @@ "defaultValue": "\"float8\"" }, { - "id": 341, + "id": 346, "name": "int2", "kind": 16, "kindString": "Enumeration member", @@ -6574,7 +6685,7 @@ "defaultValue": "\"int2\"" }, { - "id": 342, + "id": 347, "name": "int4", "kind": 16, "kindString": "Enumeration member", @@ -6591,7 +6702,7 @@ "defaultValue": "\"int4\"" }, { - "id": 343, + "id": 348, "name": "int4range", "kind": 16, "kindString": "Enumeration member", @@ -6608,7 +6719,7 @@ "defaultValue": "\"int4range\"" }, { - "id": 344, + "id": 349, "name": "int8", "kind": 16, "kindString": "Enumeration member", @@ -6625,7 +6736,7 @@ "defaultValue": "\"int8\"" }, { - "id": 345, + "id": 350, "name": "int8range", "kind": 16, "kindString": "Enumeration member", @@ -6642,7 +6753,7 @@ "defaultValue": "\"int8range\"" }, { - "id": 346, + "id": 351, "name": "json", "kind": 16, "kindString": "Enumeration member", @@ -6659,7 +6770,7 @@ "defaultValue": "\"json\"" }, { - "id": 347, + "id": 352, "name": "jsonb", "kind": 16, "kindString": "Enumeration member", @@ -6676,7 +6787,7 @@ "defaultValue": "\"jsonb\"" }, { - "id": 348, + "id": 353, "name": "money", "kind": 16, "kindString": "Enumeration member", @@ -6693,7 +6804,7 @@ "defaultValue": "\"money\"" }, { - "id": 349, + "id": 354, "name": "numeric", "kind": 16, "kindString": "Enumeration member", @@ -6710,7 +6821,7 @@ "defaultValue": "\"numeric\"" }, { - "id": 350, + "id": 355, "name": "oid", "kind": 16, "kindString": "Enumeration member", @@ -6727,7 +6838,7 @@ "defaultValue": "\"oid\"" }, { - "id": 351, + "id": 356, "name": "reltime", "kind": 16, "kindString": "Enumeration member", @@ -6744,7 +6855,7 @@ "defaultValue": "\"reltime\"" }, { - "id": 352, + "id": 357, "name": "text", "kind": 16, "kindString": "Enumeration member", @@ -6761,7 +6872,7 @@ "defaultValue": "\"text\"" }, { - "id": 353, + "id": 358, "name": "time", "kind": 16, "kindString": "Enumeration member", @@ -6778,7 +6889,7 @@ "defaultValue": "\"time\"" }, { - "id": 354, + "id": 359, "name": "timestamp", "kind": 16, "kindString": "Enumeration member", @@ -6795,7 +6906,7 @@ "defaultValue": "\"timestamp\"" }, { - "id": 355, + "id": 360, "name": "timestamptz", "kind": 16, "kindString": "Enumeration member", @@ -6812,7 +6923,7 @@ "defaultValue": "\"timestamptz\"" }, { - "id": 356, + "id": 361, "name": "timetz", "kind": 16, "kindString": "Enumeration member", @@ -6829,7 +6940,7 @@ "defaultValue": "\"timetz\"" }, { - "id": 357, + "id": 362, "name": "tsrange", "kind": 16, "kindString": "Enumeration member", @@ -6846,7 +6957,7 @@ "defaultValue": "\"tsrange\"" }, { - "id": 358, + "id": 363, "name": "tstzrange", "kind": 16, "kindString": "Enumeration member", @@ -6868,11 +6979,6 @@ "title": "Enumeration members", "kind": 16, "children": [ - 335, - 336, - 337, - 338, - 339, 340, 341, 342, @@ -6891,7 +6997,12 @@ 355, 356, 357, - 358 + 358, + 359, + 360, + 361, + 362, + 363 ] } ], @@ -6904,7 +7015,7 @@ ] }, { - "id": 365, + "id": 370, "name": "BaseValue", "kind": 4194304, "kindString": "Type alias", @@ -6939,7 +7050,7 @@ } }, { - "id": 359, + "id": 364, "name": "Columns", "kind": 4194304, "kindString": "Type alias", @@ -6956,14 +7067,14 @@ "elementType": { "type": "reflection", "declaration": { - "id": 360, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 363, + "id": 368, "name": "flags", "kind": 32, "kindString": "Variable", @@ -6986,7 +7097,7 @@ } }, { - "id": 361, + "id": 366, "name": "name", "kind": 32, "kindString": "Variable", @@ -7004,7 +7115,7 @@ } }, { - "id": 362, + "id": 367, "name": "type", "kind": 32, "kindString": "Variable", @@ -7022,7 +7133,7 @@ } }, { - "id": 364, + "id": 369, "name": "type_modifier", "kind": 32, "kindString": "Variable", @@ -7056,10 +7167,10 @@ "title": "Variables", "kind": 32, "children": [ - 363, - 361, - 362, - 364 + 368, + 366, + 367, + 369 ] } ], @@ -7075,7 +7186,7 @@ } }, { - "id": 367, + "id": 372, "name": "Record", "kind": 4194304, "kindString": "Type alias", @@ -7090,21 +7201,21 @@ "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 369, + "id": 374, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 370, + "id": 375, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7117,7 +7228,7 @@ ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -7133,7 +7244,7 @@ } }, { - "id": 366, + "id": 371, "name": "RecordValue", "kind": 4194304, "kindString": "Type alias", @@ -7150,14 +7261,14 @@ "types": [ { "type": "reference", - "id": 365, + "id": 370, "name": "BaseValue" }, { "type": "array", "elementType": { "type": "reference", - "id": 365, + "id": 370, "name": "BaseValue" } } @@ -7165,7 +7276,7 @@ } }, { - "id": 384, + "id": 389, "name": "convertCell", "kind": 64, "kindString": "Function", @@ -7192,7 +7303,7 @@ }, "signatures": [ { - "id": 385, + "id": 390, "name": "convertCell", "kind": 4096, "kindString": "Call signature", @@ -7218,7 +7329,7 @@ }, "parameters": [ { - "id": 386, + "id": 391, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -7234,7 +7345,7 @@ } }, { - "id": 387, + "id": 392, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7243,14 +7354,14 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -7264,7 +7375,7 @@ ] }, { - "id": 371, + "id": 376, "name": "convertChangeData", "kind": 64, "kindString": "Function", @@ -7283,7 +7394,7 @@ }, "signatures": [ { - "id": 372, + "id": 377, "name": "convertChangeData", "kind": 4096, "kindString": "Call signature", @@ -7301,7 +7412,7 @@ }, "parameters": [ { - "id": 373, + "id": 378, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -7310,12 +7421,12 @@ }, "type": { "type": "reference", - "id": 359, + "id": 364, "name": "Columns" } }, { - "id": 374, + "id": 379, "name": "record", "kind": 32768, "kindString": "Parameter", @@ -7325,12 +7436,12 @@ "comment": {}, "type": { "type": "reference", - "id": 367, + "id": 372, "name": "Record" } }, { - "id": 375, + "id": 380, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -7343,7 +7454,7 @@ "type": { "type": "reflection", "declaration": { - "id": 376, + "id": 381, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7352,7 +7463,7 @@ }, "children": [ { - "id": 377, + "id": 382, "name": "skipTypes", "kind": 32, "kindString": "Variable", @@ -7381,7 +7492,7 @@ "title": "Variables", "kind": 32, "children": [ - 377 + 382 ] } ], @@ -7399,7 +7510,7 @@ ], "type": { "type": "reference", - "id": 367, + "id": 372, "name": "Record" } } @@ -7413,7 +7524,7 @@ ] }, { - "id": 378, + "id": 383, "name": "convertColumn", "kind": 64, "kindString": "Function", @@ -7437,7 +7548,7 @@ }, "signatures": [ { - "id": 379, + "id": 384, "name": "convertColumn", "kind": 4096, "kindString": "Call signature", @@ -7460,7 +7571,7 @@ }, "parameters": [ { - "id": 380, + "id": 385, "name": "columnName", "kind": 32768, "kindString": "Parameter", @@ -7476,7 +7587,7 @@ } }, { - "id": 381, + "id": 386, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -7485,12 +7596,12 @@ }, "type": { "type": "reference", - "id": 359, + "id": 364, "name": "Columns" } }, { - "id": 382, + "id": 387, "name": "record", "kind": 32768, "kindString": "Parameter", @@ -7502,12 +7613,12 @@ }, "type": { "type": "reference", - "id": 367, + "id": 372, "name": "Record" } }, { - "id": 383, + "id": 388, "name": "skipTypes", "kind": 32768, "kindString": "Parameter", @@ -7528,7 +7639,7 @@ ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -7542,7 +7653,7 @@ ] }, { - "id": 388, + "id": 393, "name": "noop", "kind": 64, "kindString": "Function", @@ -7551,28 +7662,28 @@ }, "signatures": [ { - "id": 389, + "id": 394, "name": "noop", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 390, + "id": 395, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -7586,7 +7697,7 @@ ] }, { - "id": 400, + "id": 405, "name": "toArray", "kind": 64, "kindString": "Function", @@ -7613,7 +7724,7 @@ }, "signatures": [ { - "id": 401, + "id": 406, "name": "toArray", "kind": 4096, "kindString": "Call signature", @@ -7639,7 +7750,7 @@ }, "parameters": [ { - "id": 402, + "id": 407, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7648,12 +7759,12 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } }, { - "id": 403, + "id": 408, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -7668,7 +7779,7 @@ ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -7682,7 +7793,7 @@ ] }, { - "id": 391, + "id": 396, "name": "toBoolean", "kind": 64, "kindString": "Function", @@ -7692,7 +7803,7 @@ }, "signatures": [ { - "id": 392, + "id": 397, "name": "toBoolean", "kind": 4096, "kindString": "Call signature", @@ -7701,7 +7812,7 @@ }, "parameters": [ { - "id": 393, + "id": 398, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7710,14 +7821,14 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -7731,7 +7842,7 @@ ] }, { - "id": 397, + "id": 402, "name": "toJson", "kind": 64, "kindString": "Function", @@ -7741,7 +7852,7 @@ }, "signatures": [ { - "id": 398, + "id": 403, "name": "toJson", "kind": 4096, "kindString": "Call signature", @@ -7750,7 +7861,7 @@ }, "parameters": [ { - "id": 399, + "id": 404, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7759,14 +7870,14 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -7780,7 +7891,7 @@ ] }, { - "id": 394, + "id": 399, "name": "toNumber", "kind": 64, "kindString": "Function", @@ -7790,7 +7901,7 @@ }, "signatures": [ { - "id": 395, + "id": 400, "name": "toNumber", "kind": 4096, "kindString": "Call signature", @@ -7799,7 +7910,7 @@ }, "parameters": [ { - "id": 396, + "id": 401, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7808,14 +7919,14 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -7829,7 +7940,7 @@ ] }, { - "id": 404, + "id": 409, "name": "toTimestampString", "kind": 64, "kindString": "Function", @@ -7848,7 +7959,7 @@ }, "signatures": [ { - "id": 405, + "id": 410, "name": "toTimestampString", "kind": 4096, "kindString": "Call signature", @@ -7866,7 +7977,7 @@ }, "parameters": [ { - "id": 406, + "id": 411, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7875,14 +7986,14 @@ }, "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } ], "type": { "type": "reference", - "id": 366, + "id": 371, "name": "RecordValue" } } @@ -7901,32 +8012,32 @@ "title": "Enumerations", "kind": 4, "children": [ - 334 + 339 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 365, - 359, - 367, - 366 + 370, + 364, + 372, + 371 ] }, { "title": "Functions", "kind": 64, "children": [ - 384, - 371, - 378, - 388, - 400, - 391, - 397, - 394, - 404 + 389, + 376, + 383, + 393, + 405, + 396, + 402, + 399, + 409 ] } ], @@ -7994,14 +8105,14 @@ "title": "Modules", "kind": 1, "children": [ - 200, - 96, - 407, + 201, + 97, + 412, 3, - 42, - 175, - 28, - 333, + 43, + 176, + 29, + 338, 1 ] } diff --git a/web/spec/storage.json b/web/spec/storage.json index ee6800ac73b..5d3a98b95f4 100644 --- a/web/spec/storage.json +++ b/web/spec/storage.json @@ -4440,7 +4440,7 @@ "isExported": true }, "comment": { - "text": "An array of files to be deleted, including the path and file name. For example [`folder/image.png`].\n" + "text": "An array of files to be deletes, including the path and file name. For example [`folder/image.png`].\n" }, "type": { "type": "array", @@ -4606,7 +4606,7 @@ "isExported": true }, "comment": { - "text": "The body of the file is to be stored in the bucket." + "text": "The body of the file to be stored in the bucket." }, "type": { "type": "union", @@ -4876,7 +4876,7 @@ "isExported": true }, "comment": { - "text": "The body of the file is to be stored in the bucket." + "text": "The body of the file to be stored in the bucket." }, "type": { "type": "union", @@ -5172,7 +5172,7 @@ "isExported": true }, "comment": { - "text": "The body of the file is to be stored in the bucket." + "text": "The body of the file to be stored in the bucket." }, "type": { "type": "union", diff --git a/web/spec/supabase.json b/web/spec/supabase.json index 7c2df984315..cbd90d17748 100644 --- a/web/spec/supabase.json +++ b/web/spec/supabase.json @@ -29,7 +29,7 @@ }, "children": [ { - "id": 307, + "id": 311, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -41,7 +41,7 @@ }, "signatures": [ { - "id": 310, + "id": 314, "name": "new SupabaseClient", "kind": 16384, "kindString": "Constructor signature", @@ -53,7 +53,7 @@ }, "parameters": [ { - "id": 311, + "id": 315, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -69,7 +69,7 @@ } }, { - "id": 312, + "id": 316, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -85,7 +85,7 @@ } }, { - "id": 313, + "id": 317, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -110,8 +110,8 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 35, - "character": 25 + "line": 38, + "character": 3 } ] }, @@ -183,6 +183,72 @@ "name": "Fetch" } }, + { + "id": 307, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 36, + "character": 19 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 308, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 309, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 310, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 36, + "character": 20 + } + ] + } + } + }, { "id": 305, "name": "realtime", @@ -289,7 +355,7 @@ } }, { - "id": 309, + "id": 313, "name": "supabaseKey", "kind": 1024, "kindString": "Property", @@ -304,7 +370,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 51, + "line": 54, "character": 25 } ], @@ -314,7 +380,7 @@ } }, { - "id": 308, + "id": 312, "name": "supabaseUrl", "kind": 1024, "kindString": "Property", @@ -329,7 +395,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 50, + "line": 53, "character": 25 } ], @@ -339,7 +405,7 @@ } }, { - "id": 314, + "id": 318, "name": "storage", "kind": 262144, "kindString": "Accessor", @@ -351,7 +417,7 @@ }, "getSignature": [ { - "id": 315, + "id": 319, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -370,13 +436,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 80, + "line": 83, "character": 13 } ] }, { - "id": 359, + "id": 364, "name": "_closeChannel", "kind": 2048, "kindString": "Method", @@ -386,7 +452,7 @@ }, "signatures": [ { - "id": 360, + "id": 365, "name": "_closeChannel", "kind": 4096, "kindString": "Call signature", @@ -395,7 +461,7 @@ }, "parameters": [ { - "id": 361, + "id": 366, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -423,13 +489,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 201, + "line": 205, "character": 23 } ] }, { - "id": 332, + "id": 336, "name": "_closeSubscription", "kind": 2048, "kindString": "Method", @@ -439,7 +505,7 @@ }, "signatures": [ { - "id": 333, + "id": 337, "name": "_closeSubscription", "kind": 4096, "kindString": "Call signature", @@ -448,7 +514,7 @@ }, "parameters": [ { - "id": 334, + "id": 338, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -476,13 +542,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 143, + "line": 146, "character": 34 } ] }, { - "id": 354, + "id": 359, "name": "_getAuthHeaders", "kind": 2048, "kindString": "Method", @@ -492,7 +558,7 @@ }, "signatures": [ { - "id": 355, + "id": 360, "name": "_getAuthHeaders", "kind": 4096, "kindString": "Call signature", @@ -502,7 +568,7 @@ "type": { "type": "reflection", "declaration": { - "id": 356, + "id": 361, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -511,7 +577,7 @@ }, "indexSignature": [ { - "id": 357, + "id": 362, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -520,7 +586,7 @@ }, "parameters": [ { - "id": 358, + "id": 363, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -542,7 +608,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 193, + "line": 197, "character": 28 } ] @@ -553,13 +619,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 193, + "line": 197, "character": 25 } ] }, { - "id": 352, + "id": 357, "name": "_initPostgRESTClient", "kind": 2048, "kindString": "Method", @@ -569,7 +635,7 @@ }, "signatures": [ { - "id": 353, + "id": 358, "name": "_initPostgRESTClient", "kind": 4096, "kindString": "Call signature", @@ -585,13 +651,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 185, + "line": 189, "character": 30 } ] }, { - "id": 349, + "id": 354, "name": "_initRealtimeClient", "kind": 2048, "kindString": "Method", @@ -601,7 +667,7 @@ }, "signatures": [ { - "id": 350, + "id": 355, "name": "_initRealtimeClient", "kind": 4096, "kindString": "Call signature", @@ -610,7 +676,7 @@ }, "parameters": [ { - "id": 351, + "id": 356, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -633,13 +699,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 178, + "line": 182, "character": 29 } ] }, { - "id": 337, + "id": 341, "name": "_initSupabaseAuthClient", "kind": 2048, "kindString": "Method", @@ -649,7 +715,7 @@ }, "signatures": [ { - "id": 338, + "id": 342, "name": "_initSupabaseAuthClient", "kind": 4096, "kindString": "Call signature", @@ -658,7 +724,7 @@ }, "parameters": [ { - "id": 339, + "id": 343, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -669,7 +735,7 @@ "type": { "type": "reflection", "declaration": { - "id": 340, + "id": 344, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -678,7 +744,7 @@ }, "children": [ { - "id": 341, + "id": 345, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -688,7 +754,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 157, + "line": 160, "character": 20 } ], @@ -711,7 +777,7 @@ } }, { - "id": 343, + "id": 347, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -721,7 +787,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 159, + "line": 162, "character": 22 } ], @@ -744,7 +810,37 @@ } }, { - "id": 345, + "id": 353, + "name": "fetch", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 165, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "id": 220, + "name": "fetch" + } + ] + } + }, + { + "id": 349, "name": "headers", "kind": 32, "kindString": "Variable", @@ -754,7 +850,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 161, + "line": 164, "character": 11 } ], @@ -768,7 +864,7 @@ { "type": "reflection", "declaration": { - "id": 346, + "id": 350, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -777,7 +873,7 @@ }, "indexSignature": [ { - "id": 347, + "id": 351, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -786,7 +882,7 @@ }, "parameters": [ { - "id": 348, + "id": 352, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -811,7 +907,7 @@ } }, { - "id": 344, + "id": 348, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -821,7 +917,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 160, + "line": 163, "character": 16 } ], @@ -869,7 +965,7 @@ } }, { - "id": 342, + "id": 346, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -879,7 +975,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 158, + "line": 161, "character": 18 } ], @@ -907,18 +1003,19 @@ "title": "Variables", "kind": 32, "children": [ - 341, - 343, 345, - 344, - 342 + 347, + 353, + 349, + 348, + 346 ] } ], "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 156, + "line": 159, "character": 34 } ] @@ -936,13 +1033,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 156, + "line": 159, "character": 33 } ] }, { - "id": 316, + "id": 320, "name": "from", "kind": 2048, "kindString": "Method", @@ -951,7 +1048,7 @@ }, "signatures": [ { - "id": 317, + "id": 321, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -963,7 +1060,7 @@ }, "typeParameter": [ { - "id": 318, + "id": 322, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -974,7 +1071,7 @@ ], "parameters": [ { - "id": 319, + "id": 323, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -1010,13 +1107,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 89, + "line": 92, "character": 6 } ] }, { - "id": 335, + "id": 339, "name": "getSubscriptions", "kind": 2048, "kindString": "Method", @@ -1025,7 +1122,7 @@ }, "signatures": [ { - "id": 336, + "id": 340, "name": "getSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -1047,13 +1144,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 152, + "line": 155, "character": 18 } ] }, { - "id": 329, + "id": 333, "name": "removeSubscription", "kind": 2048, "kindString": "Method", @@ -1062,7 +1159,7 @@ }, "signatures": [ { - "id": 330, + "id": 334, "name": "removeSubscription", "kind": 4096, "kindString": "Call signature", @@ -1074,7 +1171,7 @@ }, "parameters": [ { - "id": 331, + "id": 335, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -1105,13 +1202,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 126, + "line": 129, "character": 20 } ] }, { - "id": 320, + "id": 324, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -1120,7 +1217,7 @@ }, "signatures": [ { - "id": 321, + "id": 325, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -1132,7 +1229,7 @@ }, "typeParameter": [ { - "id": 322, + "id": 326, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -1143,7 +1240,7 @@ ], "parameters": [ { - "id": 323, + "id": 327, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -1159,7 +1256,7 @@ } }, { - "id": 324, + "id": 328, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -1185,7 +1282,7 @@ } }, { - "id": 325, + "id": 329, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -1196,7 +1293,7 @@ "type": { "type": "reflection", "declaration": { - "id": 326, + "id": 330, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1205,7 +1302,7 @@ }, "children": [ { - "id": 328, + "id": 332, "name": "count", "kind": 32, "kindString": "Variable", @@ -1218,7 +1315,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 114, + "line": 117, "character": 11 } ], @@ -1246,7 +1343,7 @@ "defaultValue": "null" }, { - "id": 327, + "id": 331, "name": "head", "kind": 32, "kindString": "Variable", @@ -1259,7 +1356,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 113, + "line": 116, "character": 10 } ], @@ -1275,15 +1372,15 @@ "title": "Variables", "kind": 32, "children": [ - 328, - 327 + 332, + 331 ] } ], "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 111, + "line": 114, "character": 20 } ] @@ -1307,7 +1404,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 109, + "line": 112, "character": 5 } ] @@ -1318,7 +1415,7 @@ "title": "Constructors", "kind": 512, "children": [ - 307 + 311 ] }, { @@ -1328,36 +1425,37 @@ 299, 303, 306, + 307, 305, 302, 301, 300, 304, - 309, - 308 + 313, + 312 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 314 + 318 ] }, { "title": "Methods", "kind": 2048, "children": [ + 364, + 336, 359, - 332, + 357, 354, - 352, - 349, - 337, - 316, - 335, - 329, - 320 + 341, + 320, + 339, + 333, + 324 ] } ], @@ -1370,7 +1468,7 @@ ] }, { - "id": 362, + "id": 367, "name": "DEFAULT_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -1379,7 +1477,7 @@ }, "children": [ { - "id": 364, + "id": 369, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -1398,7 +1496,7 @@ "defaultValue": "true" }, { - "id": 366, + "id": 371, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -1417,7 +1515,7 @@ "defaultValue": "true" }, { - "id": 367, + "id": 372, "name": "headers", "kind": 32, "kindString": "Variable", @@ -1432,14 +1530,14 @@ "type": { "type": "reflection", "declaration": { - "id": 368, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 369, + "id": 374, "name": "X-Client-Info", "kind": 32, "kindString": "Variable", @@ -1463,7 +1561,7 @@ "title": "Variables", "kind": 32, "children": [ - 369 + 374 ] } ] @@ -1472,7 +1570,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 365, + "id": 370, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -1491,7 +1589,7 @@ "defaultValue": "true" }, { - "id": 363, + "id": 368, "name": "schema", "kind": 32, "kindString": "Variable", @@ -1515,11 +1613,11 @@ "title": "Variables", "kind": 32, "children": [ - 364, - 366, - 367, - 365, - 363 + 369, + 371, + 372, + 370, + 368 ] } ], @@ -1548,7 +1646,7 @@ "title": "Object literals", "kind": 2097152, "children": [ - 362 + 367 ] } ], @@ -1561,7 +1659,7 @@ ] }, { - "id": 370, + "id": 375, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -1571,7 +1669,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts", "children": [ { - "id": 371, + "id": 376, "name": "createClient", "kind": 64, "kindString": "Function", @@ -1584,7 +1682,7 @@ }, "signatures": [ { - "id": 372, + "id": 377, "name": "createClient", "kind": 4096, "kindString": "Call signature", @@ -1596,7 +1694,7 @@ }, "parameters": [ { - "id": 373, + "id": 378, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -1609,7 +1707,7 @@ } }, { - "id": 374, + "id": 379, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -1622,7 +1720,7 @@ } }, { - "id": 375, + "id": 380, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1658,7 +1756,7 @@ "title": "Functions", "kind": 64, "children": [ - 371 + 376 ] } ], @@ -9271,7 +9369,7 @@ "kind": 1, "children": [ 297, - 370, + 375, 62, 203, 173, diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index 6d6f723bab2..ba4811a2f07 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -128,6 +128,7 @@ info: - auth.update() - auth.setAuth() - auth.onAuthStateChange() + - auth.api.getUser() - Reset Password (Email) - name: 'Auth (Server Only)' items: @@ -429,6 +430,10 @@ pages: - If "Email Confirmations" is turned on, a `user` is returned but `session` will be null - If "Email Confirmations" is turned off, both a `user` and a `session` will be returned - When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.io](https://app.supabase.io) + - If signUp() is called for an existing confirmed user: + - If "Enable email confirmations" is enabled on the "Authentication" -> "Settings" page, an obfuscated / fake user object will be returned. + - If "Enable email confirmations" is disabled, an error with a message "User already registered" will be returned. + - To check if a user already exists, refer to getUser(). examples: - name: Sign up. isSpotlight: true @@ -566,6 +571,8 @@ pages: auth.user(): title: 'user()' $ref: '@supabase/gotrue-js.GoTrueClient.user' + notes: | + This method gets the user object stored in local storage. examples: - name: Get the logged in user isSpotlight: true @@ -676,6 +683,22 @@ pages: console.log(event, session) }) ``` + auth.api.getUser(): + title: 'getUser()' + $ref: '@supabase/gotrue-js.GoTrueApi.getUser' + notes: | + - Fetches the user object from the database instead of local storage. + - Note that user() fetches the user object from local storage which might not be the most updated. + - Requires the user's access_token. + examples: + - name: Fetch the user object using the access_token jwt. + isSpotlight: true + js: | + ```js + const { user, error } = await supabase.auth.api.getUser( + 'ACCESS_TOKEN_JWT', + ) + ``` Reset Password (Email): $ref: '@supabase/gotrue-js.GoTrueApi.resetPasswordForEmail' From 536224d6289f4df92c26fe846b50fbb994ae31ed Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Thu, 2 Dec 2021 02:34:42 +0800 Subject: [PATCH 3/6] docs: email update confirmation options --- web/sidebar_spec_supabase.js | 2 +- web/spec/supabase.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/sidebar_spec_supabase.js b/web/sidebar_spec_supabase.js index 2ea0db35246..45cf77eb4fc 100644 --- a/web/sidebar_spec_supabase.js +++ b/web/sidebar_spec_supabase.js @@ -9,7 +9,7 @@ module.exports = { { type: 'category', label: 'Auth', - items: ['reference/javascript/auth-signup', 'reference/javascript/auth-signin', 'reference/javascript/auth-signout', 'reference/javascript/auth-session', 'reference/javascript/auth-user', 'reference/javascript/auth-update', 'reference/javascript/auth-setauth', 'reference/javascript/auth-onauthstatechange', 'reference/javascript/reset-password-email'], + items: ['reference/javascript/auth-signup', 'reference/javascript/auth-signin', 'reference/javascript/auth-signout', 'reference/javascript/auth-session', 'reference/javascript/auth-user', 'reference/javascript/auth-update', 'reference/javascript/auth-setauth', 'reference/javascript/auth-onauthstatechange', 'reference/javascript/auth-api-getuser', 'reference/javascript/reset-password-email'], collapsed: true, }, { diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index ba4811a2f07..128564b7fd4 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -585,7 +585,9 @@ pages: title: 'update()' $ref: '@supabase/gotrue-js.GoTrueClient.update' notes: | - User email: email updates will send an email to both the user's current and new email with a confirmation link. + User email: Email updates will send an email to both the user's current and new email with a confirmation link by default. + To toggle this behavior off and only send a single confirmation link to the new email, toggle "Double confirm email changes" under "Authentication" -> "Settings" off. + User metadata: It's generally better to store user data in a table inside your public schema (i.e. `public.users`). Use the `update()` method if you have data which rarely changes or is specific only to the logged in user. From b0bb3a1fb528c2661982e857bb6177804b0c4707 Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Thu, 2 Dec 2021 11:04:47 +0800 Subject: [PATCH 4/6] chore: fix prettier --- examples/react-todo-list/craco.config.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/react-todo-list/craco.config.js b/examples/react-todo-list/craco.config.js index 68ff651a2f0..3900367412c 100644 --- a/examples/react-todo-list/craco.config.js +++ b/examples/react-todo-list/craco.config.js @@ -1,10 +1,10 @@ module.exports = { - style: { - postcss: { - plugins: [ - require("@tailwindcss/postcss7-compat"), - require("autoprefixer") - ], + style: { + postcss: { + plugins: [ + require("@tailwindcss/postcss7-compat"), + require("autoprefixer"), + ], + }, }, - }, }; From f61141816ae139e8a1bb3be7c6fe19113ccce32a Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Thu, 2 Dec 2021 11:27:21 +0800 Subject: [PATCH 5/6] docs: fix typo in storage --- web/spec/combined.json | 2 +- web/spec/storage.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/spec/combined.json b/web/spec/combined.json index 623bf28e29e..6649472728e 100644 --- a/web/spec/combined.json +++ b/web/spec/combined.json @@ -43337,7 +43337,7 @@ "isExported": true }, "comment": { - "text": "An array of files to be deletes, including the path and file name. For example [`folder/image.png`].\n" + "text": "An array of files to be deleted, including the path and file name. For example [`folder/image.png`].\n" }, "type": { "type": "array", diff --git a/web/spec/storage.json b/web/spec/storage.json index 5d3a98b95f4..0b41b11c93e 100644 --- a/web/spec/storage.json +++ b/web/spec/storage.json @@ -4440,7 +4440,7 @@ "isExported": true }, "comment": { - "text": "An array of files to be deletes, including the path and file name. For example [`folder/image.png`].\n" + "text": "An array of files to be deleted, including the path and file name. For example [`folder/image.png`].\n" }, "type": { "type": "array", From 8ba72211753a2612d587988367187e1898e974dd Mon Sep 17 00:00:00 2001 From: Kang Ming Date: Thu, 2 Dec 2021 12:19:55 +0800 Subject: [PATCH 6/6] resolve pr comments --- web/spec/supabase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index 1c1e7b3214d..40140f41490 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -572,7 +572,7 @@ pages: title: 'user()' $ref: '@supabase/gotrue-js.GoTrueClient.user' notes: | - This method gets the user object stored in local storage. + This method gets the user object from memory. examples: - name: Get the logged in user isSpotlight: true