diff --git a/web/README.md b/web/README.md index faaa71bd879..64cfe02ed7a 100644 --- a/web/README.md +++ b/web/README.md @@ -4,7 +4,7 @@ - `cd /web/spec/` - run `make` which will pull the latest TSDoc with your updates -- add your comments to `supabase.yml` | `postgrest.yml` | `gotrue.yml` | `realtime.yml` +- add your comments to `supabase.yml` | `dart.yml` | `postgrest.yml` | `gotrue.yml` | `realtime.yml` - run `npm run gen:supabase` inside the `/spec` folder which will generate the Docusaurus pages - run `npm run build` to make sure the build is working - submit your PR diff --git a/web/docs/reference/dart/.gitkeep b/web/docs/reference/dart/.gitkeep new file mode 100644 index 00000000000..e69de29bb2d diff --git a/web/package.json b/web/package.json index 671571b7d7d..54e42e1e240 100644 --- a/web/package.json +++ b/web/package.json @@ -7,7 +7,7 @@ "build": "npm run gen:all && docusaurus build", "swizzle": "docusaurus swizzle", "traction": "node traction.js", - "gen:all": "npm run gen:supabase && npm run gen:gotrue && npm run gen:postgrest && npm run gen:realtime && npm run gen:postgres && npm run gen:cli", + "gen:all": "npm run gen:supabase && npm run gen:dart && npm run gen:gotrue && npm run gen:postgrest && npm run gen:realtime && npm run gen:postgres && npm run gen:cli", "gen:dart": "ts-node ReferenceGenerator.ts -o docs/reference/dart spec/dart.yml", "gen:gotrue": "ts-node ReferenceGenerator.ts -o docs/gotrue/client spec/gotrue.yml", "gen:postgrest": "ts-node ReferenceGenerator.ts -o docs/postgrest/client spec/postgrest.yml", @@ -48,4 +48,4 @@ "ts-node": "^9.0.0", "typescript": "^4.1.3" } -} +} \ No newline at end of file diff --git a/web/sidebar_spec_dart.js b/web/sidebar_spec_dart.js index 0a145370861..a5fad0751a3 100644 --- a/web/sidebar_spec_dart.js +++ b/web/sidebar_spec_dart.js @@ -3,7 +3,43 @@ module.exports = { { type: 'category', label: 'About', - items: ['reference/dart/index', 'reference/dart/installing', 'reference/dart/initializing'], + items: ['reference/dart/installing', 'reference/dart/initializing'], + collapsed: true, + }, + { + type: 'category', + label: 'Auth', + items: ['reference/dart/auth-signup', 'reference/dart/auth-signin', 'reference/dart/auth-signinwithprovider', 'reference/dart/auth-signout', 'reference/dart/auth-session', 'reference/dart/auth-user', 'reference/dart/auth-update', 'reference/dart/auth-onauthstatechange', 'reference/dart/reset-password-email'], + collapsed: true, + }, + { + type: 'category', + label: 'Data', + items: ['reference/dart/select', 'reference/dart/insert', 'reference/dart/update', 'reference/dart/upsert', 'reference/dart/delete', 'reference/dart/rpc'], + collapsed: true, + }, + { + type: 'category', + label: 'Realtime', + items: ['reference/dart/subscribe', 'reference/dart/removesubscription', 'reference/dart/getsubscriptions', 'reference/dart/stream'], + collapsed: true, + }, + { + type: 'category', + label: 'Storage', + items: ['reference/dart/storage-createbucket', 'reference/dart/storage-getbucket', 'reference/dart/storage-listbuckets', 'reference/dart/storage-updatebucket', 'reference/dart/storage-deletebucket', 'reference/dart/storage-emptybucket', 'reference/dart/storage-from-upload', 'reference/dart/storage-from-download', 'reference/dart/storage-from-list', 'reference/dart/storage-from-update', 'reference/dart/storage-from-move', 'reference/dart/storage-from-remove', 'reference/dart/storage-from-createsignedurl', 'reference/dart/storage-from-getpublicurl'], + collapsed: true, + }, + { + type: 'category', + label: 'Modifiers', + items: ['reference/dart/using-modifiers', 'reference/dart/limit', 'reference/dart/order', 'reference/dart/range', 'reference/dart/single'], + collapsed: true, + }, + { + type: 'category', + label: 'Filters', + items: ['reference/dart/using-filters', 'reference/dart/filter', 'reference/dart/or', 'reference/dart/not', 'reference/dart/match', 'reference/dart/eq', 'reference/dart/neq', 'reference/dart/gt', 'reference/dart/gte', 'reference/dart/lt', 'reference/dart/lte', 'reference/dart/like', 'reference/dart/ilike', 'reference/dart/is_', 'reference/dart/in_', 'reference/dart/contains', 'reference/dart/containedby', 'reference/dart/rangelt', 'reference/dart/rangegt', 'reference/dart/rangegte', 'reference/dart/rangelte', 'reference/dart/rangeadjacent', 'reference/dart/overlaps', 'reference/dart/textsearch'], collapsed: true, } ], diff --git a/web/sidebar_spec_postgres.js b/web/sidebar_spec_postgres.js index d45dcbdcd95..a33d3af5072 100644 --- a/web/sidebar_spec_postgres.js +++ b/web/sidebar_spec_postgres.js @@ -23,6 +23,6 @@ module.exports = { label: 'Database Configuration', items: ['reference/postgres/database-passwords', 'reference/postgres/changing-timezones'], collapsed: true, - }, + } ], } \ No newline at end of file diff --git a/web/spec/combined.json b/web/spec/combined.json index ec9182c2533..72aad79b910 100644 --- a/web/spec/combined.json +++ b/web/spec/combined.json @@ -9,7 +9,7 @@ "originalName": "", "children": [ { - "id": 248, + "id": 266, "name": "\"SupabaseClient\"", "kind": 1, "kindString": "Module", @@ -19,7 +19,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts", "children": [ { - "id": 249, + "id": 267, "name": "SupabaseClient", "kind": 128, "kindString": "Class", @@ -32,7 +32,7 @@ }, "children": [ { - "id": 257, + "id": 275, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -44,7 +44,7 @@ }, "signatures": [ { - "id": 260, + "id": 278, "name": "new SupabaseClient", "kind": 16384, "kindString": "Constructor signature", @@ -56,7 +56,7 @@ }, "parameters": [ { - "id": 261, + "id": 279, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -72,7 +72,7 @@ } }, { - "id": 262, + "id": 280, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -88,7 +88,7 @@ } }, { - "id": 263, + "id": 281, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -98,14 +98,14 @@ }, "type": { "type": "reference", - "id": 5, + "id": 7, "name": "SupabaseClientOptions" } } ], "type": { "type": "reference", - "id": 249, + "id": 267, "name": "SupabaseClient" } } @@ -119,7 +119,7 @@ ] }, { - "id": 250, + "id": 268, "name": "auth", "kind": 1024, "kindString": "Property", @@ -138,12 +138,12 @@ ], "type": { "type": "reference", - "id": 28, + "id": 30, "name": "SupabaseAuthClient" } }, { - "id": 254, + "id": 272, "name": "authUrl", "kind": 1024, "kindString": "Property", @@ -164,7 +164,7 @@ } }, { - "id": 256, + "id": 274, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -185,7 +185,7 @@ } }, { - "id": 253, + "id": 271, "name": "realtimeUrl", "kind": 1024, "kindString": "Property", @@ -206,7 +206,7 @@ } }, { - "id": 252, + "id": 270, "name": "restUrl", "kind": 1024, "kindString": "Property", @@ -227,7 +227,7 @@ } }, { - "id": 251, + "id": 269, "name": "schema", "kind": 1024, "kindString": "Property", @@ -248,7 +248,7 @@ } }, { - "id": 255, + "id": 273, "name": "storageUrl", "kind": 1024, "kindString": "Property", @@ -269,7 +269,7 @@ } }, { - "id": 259, + "id": 277, "name": "supabaseKey", "kind": 1024, "kindString": "Property", @@ -294,7 +294,7 @@ } }, { - "id": 258, + "id": 276, "name": "supabaseUrl", "kind": 1024, "kindString": "Property", @@ -319,7 +319,7 @@ } }, { - "id": 264, + "id": 282, "name": "storage", "kind": 262144, "kindString": "Accessor", @@ -331,7 +331,7 @@ }, "getSignature": [ { - "id": 265, + "id": 283, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -356,7 +356,7 @@ ] }, { - "id": 301, + "id": 326, "name": "_closeChannel", "kind": 2048, "kindString": "Method", @@ -366,7 +366,7 @@ }, "signatures": [ { - "id": 302, + "id": 327, "name": "_closeChannel", "kind": 4096, "kindString": "Call signature", @@ -375,7 +375,7 @@ }, "parameters": [ { - "id": 303, + "id": 328, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -403,13 +403,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 180, + "line": 188, "character": 23 } ] }, { - "id": 278, + "id": 299, "name": "_closeSubscription", "kind": 2048, "kindString": "Method", @@ -419,7 +419,7 @@ }, "signatures": [ { - "id": 279, + "id": 300, "name": "_closeSubscription", "kind": 4096, "kindString": "Call signature", @@ -428,7 +428,7 @@ }, "parameters": [ { - "id": 280, + "id": 301, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -456,13 +456,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 126, + "line": 132, "character": 34 } ] }, { - "id": 296, + "id": 321, "name": "_getAuthHeaders", "kind": 2048, "kindString": "Method", @@ -472,7 +472,7 @@ }, "signatures": [ { - "id": 297, + "id": 322, "name": "_getAuthHeaders", "kind": 4096, "kindString": "Call signature", @@ -482,7 +482,7 @@ "type": { "type": "reflection", "declaration": { - "id": 298, + "id": 323, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -491,7 +491,7 @@ }, "indexSignature": [ { - "id": 299, + "id": 324, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -500,7 +500,7 @@ }, "parameters": [ { - "id": 300, + "id": 325, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -522,7 +522,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 172, + "line": 180, "character": 28 } ] @@ -533,13 +533,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 172, + "line": 180, "character": 25 } ] }, { - "id": 294, + "id": 319, "name": "_initPostgRESTClient", "kind": 2048, "kindString": "Method", @@ -549,7 +549,7 @@ }, "signatures": [ { - "id": 295, + "id": 320, "name": "_initPostgRESTClient", "kind": 4096, "kindString": "Call signature", @@ -565,13 +565,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 165, + "line": 173, "character": 30 } ] }, { - "id": 291, + "id": 316, "name": "_initRealtimeClient", "kind": 2048, "kindString": "Method", @@ -581,7 +581,7 @@ }, "signatures": [ { - "id": 292, + "id": 317, "name": "_initRealtimeClient", "kind": 4096, "kindString": "Call signature", @@ -590,7 +590,7 @@ }, "parameters": [ { - "id": 293, + "id": 318, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -613,13 +613,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 158, + "line": 166, "character": 29 } ] }, { - "id": 283, + "id": 304, "name": "_initSupabaseAuthClient", "kind": 2048, "kindString": "Method", @@ -629,7 +629,7 @@ }, "signatures": [ { - "id": 284, + "id": 305, "name": "_initSupabaseAuthClient", "kind": 4096, "kindString": "Call signature", @@ -638,7 +638,7 @@ }, "parameters": [ { - "id": 285, + "id": 306, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -649,7 +649,7 @@ "type": { "type": "reflection", "declaration": { - "id": 286, + "id": 307, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -658,7 +658,7 @@ }, "children": [ { - "id": 287, + "id": 308, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -668,7 +668,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 140, + "line": 146, "character": 20 } ], @@ -691,7 +691,7 @@ } }, { - "id": 289, + "id": 310, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -701,7 +701,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 142, + "line": 148, "character": 22 } ], @@ -724,7 +724,74 @@ } }, { - "id": 290, + "id": 312, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 150, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 313, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 314, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 315, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 311, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -734,7 +801,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 143, + "line": 149, "character": 16 } ], @@ -753,7 +820,7 @@ } }, { - "id": 288, + "id": 309, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -763,7 +830,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 141, + "line": 147, "character": 18 } ], @@ -791,17 +858,18 @@ "title": "Variables", "kind": 32, "children": [ - 287, - 289, - 290, - 288 + 308, + 310, + 312, + 311, + 309 ] } ], "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 139, + "line": 145, "character": 34 } ] @@ -811,7 +879,7 @@ ], "type": { "type": "reference", - "id": 28, + "id": 30, "name": "SupabaseAuthClient" } } @@ -819,13 +887,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 139, + "line": 145, "character": 33 } ] }, { - "id": 266, + "id": 284, "name": "from", "kind": 2048, "kindString": "Method", @@ -834,7 +902,7 @@ }, "signatures": [ { - "id": 267, + "id": 285, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -846,7 +914,7 @@ }, "typeParameter": [ { - "id": 268, + "id": 286, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -857,7 +925,7 @@ ], "parameters": [ { - "id": 269, + "id": 287, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -875,7 +943,7 @@ ], "type": { "type": "reference", - "id": 158, + "id": 176, "typeArguments": [ { "type": "typeParameter", @@ -899,7 +967,7 @@ ] }, { - "id": 281, + "id": 302, "name": "getSubscriptions", "kind": 2048, "kindString": "Method", @@ -908,7 +976,7 @@ }, "signatures": [ { - "id": 282, + "id": 303, "name": "getSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -930,13 +998,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 135, + "line": 141, "character": 18 } ] }, { - "id": 275, + "id": 296, "name": "removeSubscription", "kind": 2048, "kindString": "Method", @@ -945,7 +1013,7 @@ }, "signatures": [ { - "id": 276, + "id": 297, "name": "removeSubscription", "kind": 4096, "kindString": "Call signature", @@ -957,7 +1025,7 @@ }, "parameters": [ { - "id": 277, + "id": 298, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -988,13 +1056,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 109, + "line": 115, "character": 20 } ] }, { - "id": 270, + "id": 288, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -1003,7 +1071,7 @@ }, "signatures": [ { - "id": 271, + "id": 289, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -1011,11 +1079,11 @@ "isExported": true }, "comment": { - "shortText": "Perform a stored procedure call." + "shortText": "Perform a function call." }, "typeParameter": [ { - "id": 272, + "id": 290, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -1026,7 +1094,7 @@ ], "parameters": [ { - "id": 273, + "id": 291, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -1042,7 +1110,7 @@ } }, { - "id": 274, + "id": 292, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -1051,7 +1119,7 @@ "isOptional": true }, "comment": { - "text": "The parameters to pass to the function call.\n" + "text": "The parameters to pass to the function call." }, "type": { "type": "union", @@ -1066,6 +1134,88 @@ } ] } + }, + { + "id": 293, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__2", + "type": { + "type": "reflection", + "declaration": { + "id": 294, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 295, + "name": "count", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "Count algorithm to use to count rows in a table.\n\n" + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 104, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "stringLiteral", + "value": "exact" + }, + { + "type": "stringLiteral", + "value": "planned" + }, + { + "type": "stringLiteral", + "value": "estimated" + } + ] + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 295 + ] + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 103, + "character": 20 + } + ] + } + }, + "defaultValue": "{}" } ], "type": { @@ -1083,7 +1233,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 99, + "line": 101, "character": 5 } ] @@ -1094,45 +1244,45 @@ "title": "Constructors", "kind": 512, "children": [ - 257 + 275 ] }, { "title": "Properties", "kind": 1024, "children": [ - 250, - 254, - 256, - 253, - 252, - 251, - 255, - 259, - 258 + 268, + 272, + 274, + 271, + 270, + 269, + 273, + 277, + 276 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 264 + 282 ] }, { "title": "Methods", "kind": 2048, "children": [ - 301, - 278, + 326, + 299, + 321, + 319, + 316, + 304, + 284, + 302, 296, - 294, - 291, - 283, - 266, - 281, - 275, - 270 + 288 ] } ], @@ -1145,7 +1295,7 @@ ] }, { - "id": 304, + "id": 329, "name": "DEFAULT_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -1154,7 +1304,7 @@ }, "children": [ { - "id": 306, + "id": 331, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -1173,7 +1323,7 @@ "defaultValue": "true" }, { - "id": 308, + "id": 333, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -1192,7 +1342,7 @@ "defaultValue": "true" }, { - "id": 310, + "id": 335, "name": "headers", "kind": 32, "kindString": "Variable", @@ -1207,17 +1357,47 @@ "type": { "type": "reflection", "declaration": { - "id": 311, + "id": 336, "name": "__type", "kind": 65536, "kindString": "Type literal", - "flags": {} + "flags": {}, + "children": [ + { + "id": 337, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 3, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`supabase-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 337 + ] + } + ] } }, "defaultValue": "DEFAULT_HEADERS" }, { - "id": 309, + "id": 334, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -1236,7 +1416,7 @@ "defaultValue": "globalThis.localStorage" }, { - "id": 307, + "id": 332, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -1255,7 +1435,7 @@ "defaultValue": "true" }, { - "id": 305, + "id": 330, "name": "schema", "kind": 32, "kindString": "Variable", @@ -1279,12 +1459,12 @@ "title": "Variables", "kind": 32, "children": [ - 306, - 308, - 310, - 309, - 307, - 305 + 331, + 333, + 335, + 334, + 332, + 330 ] } ], @@ -1306,14 +1486,14 @@ "title": "Classes", "kind": 128, "children": [ - 249 + 267 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 304 + 329 ] } ], @@ -1326,7 +1506,7 @@ ] }, { - "id": 312, + "id": 338, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -1336,7 +1516,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts", "children": [ { - "id": 313, + "id": 339, "name": "createClient", "kind": 64, "kindString": "Function", @@ -1349,7 +1529,7 @@ }, "signatures": [ { - "id": 314, + "id": 340, "name": "createClient", "kind": 4096, "kindString": "Call signature", @@ -1361,7 +1541,7 @@ }, "parameters": [ { - "id": 315, + "id": 341, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -1374,7 +1554,7 @@ } }, { - "id": 316, + "id": 342, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -1387,7 +1567,7 @@ } }, { - "id": 317, + "id": 343, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1397,14 +1577,14 @@ }, "type": { "type": "reference", - "id": 5, + "id": 7, "name": "SupabaseClientOptions" } } ], "type": { "type": "reference", - "id": 249, + "id": 267, "name": "SupabaseClient" } } @@ -1423,7 +1603,7 @@ "title": "Functions", "kind": 64, "children": [ - 313 + 339 ] } ], @@ -1436,7 +1616,7 @@ ] }, { - "id": 27, + "id": 29, "name": "\"lib/SupabaseAuthClient\"", "kind": 1, "kindString": "Module", @@ -1446,7 +1626,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseAuthClient.ts", "children": [ { - "id": 28, + "id": 30, "name": "SupabaseAuthClient", "kind": 128, "kindString": "Class", @@ -1455,7 +1635,7 @@ }, "children": [ { - "id": 29, + "id": 31, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1464,7 +1644,7 @@ }, "signatures": [ { - "id": 30, + "id": 32, "name": "new SupabaseAuthClient", "kind": 16384, "kindString": "Constructor signature", @@ -1473,7 +1653,7 @@ }, "parameters": [ { - "id": 31, + "id": 33, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1483,7 +1663,7 @@ "type": { "type": "reflection", "declaration": { - "id": 32, + "id": 34, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1492,7 +1672,7 @@ }, "children": [ { - "id": 39, + "id": 41, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -1526,7 +1706,7 @@ } }, { - "id": 38, + "id": 40, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -1560,7 +1740,7 @@ } }, { - "id": 34, + "id": 36, "name": "headers", "kind": 32, "kindString": "Variable", @@ -1585,7 +1765,7 @@ { "type": "reflection", "declaration": { - "id": 35, + "id": 37, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1594,7 +1774,7 @@ }, "indexSignature": [ { - "id": 36, + "id": 38, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -1603,7 +1783,7 @@ }, "parameters": [ { - "id": 37, + "id": 39, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -1628,7 +1808,7 @@ } }, { - "id": 41, + "id": 43, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -1649,7 +1829,7 @@ } }, { - "id": 40, + "id": 42, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -1683,7 +1863,7 @@ } }, { - "id": 33, + "id": 35, "name": "url", "kind": 32, "kindString": "Variable", @@ -1718,12 +1898,12 @@ "title": "Variables", "kind": 32, "children": [ - 39, - 38, - 34, 41, 40, - 33 + 36, + 43, + 42, + 35 ] } ], @@ -1740,7 +1920,7 @@ ], "type": { "type": "reference", - "id": 28, + "id": 30, "name": "SupabaseAuthClient" }, "overwrites": { @@ -1762,7 +1942,7 @@ } }, { - "id": 42, + "id": 44, "name": "api", "kind": 1024, "kindString": "Property", @@ -1785,12 +1965,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 44, "name": "GoTrueClient.api" } }, { - "id": 45, + "id": 47, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -1811,12 +1991,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 45, + "id": 47, "name": "GoTrueClient.autoRefreshToken" } }, { - "id": 44, + "id": 46, "name": "currentSession", "kind": 1024, "kindString": "Property", @@ -1849,12 +2029,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 44, + "id": 46, "name": "GoTrueClient.currentSession" } }, { - "id": 43, + "id": 45, "name": "currentUser", "kind": 1024, "kindString": "Property", @@ -1887,12 +2067,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 43, + "id": 45, "name": "GoTrueClient.currentUser" } }, { - "id": 47, + "id": 49, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -1913,12 +2093,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 47, + "id": 49, "name": "GoTrueClient.localStorage" } }, { - "id": 46, + "id": 48, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -1939,12 +2119,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 46, + "id": 48, "name": "GoTrueClient.persistSession" } }, { - "id": 49, + "id": 51, "name": "refreshTokenTimer", "kind": 1024, "kindString": "Property", @@ -1975,12 +2155,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 49, + "id": 51, "name": "GoTrueClient.refreshTokenTimer" } }, { - "id": 48, + "id": 50, "name": "stateChangeEmitters", "kind": 1024, "kindString": "Property", @@ -2011,12 +2191,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 48, + "id": 50, "name": "GoTrueClient.stateChangeEmitters" } }, { - "id": 109, + "id": 127, "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", @@ -2025,7 +2205,7 @@ }, "signatures": [ { - "id": 110, + "id": 128, "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", @@ -2037,7 +2217,7 @@ }, "parameters": [ { - "id": 111, + "id": 129, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -2055,7 +2235,7 @@ { "type": "reflection", "declaration": { - "id": 112, + "id": 130, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2064,7 +2244,7 @@ }, "children": [ { - "id": 113, + "id": 131, "name": "storeSession", "kind": 32, "kindString": "Variable", @@ -2078,7 +2258,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 122, + "line": 137, "character": 20 } ], @@ -2106,7 +2286,7 @@ "title": "Variables", "kind": 32, "children": [ - 113 + 131 ] } ] @@ -2122,7 +2302,7 @@ { "type": "reflection", "declaration": { - "id": 114, + "id": 132, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2131,7 +2311,7 @@ }, "children": [ { - "id": 115, + "id": 133, "name": "data", "kind": 32, "kindString": "Variable", @@ -2141,7 +2321,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 124, + "line": 139, "character": 12 } ], @@ -2160,7 +2340,7 @@ } }, { - "id": 116, + "id": 134, "name": "error", "kind": 32, "kindString": "Variable", @@ -2170,7 +2350,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 125, + "line": 140, "character": 13 } ], @@ -2194,15 +2374,15 @@ "title": "Variables", "kind": 32, "children": [ - 115, - 116 + 133, + 134 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 123, + "line": 138, "character": 16 } ] @@ -2213,7 +2393,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 109, + "id": 127, "name": "GoTrueClient.getSessionFromUrl" } } @@ -2221,18 +2401,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 121, + "line": 136, "character": 21 } ], "inheritedFrom": { "type": "reference", - "id": 109, + "id": 127, "name": "GoTrueClient.getSessionFromUrl" } }, { - "id": 121, + "id": 139, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -2241,7 +2421,7 @@ }, "signatures": [ { - "id": 122, + "id": 140, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -2254,7 +2434,7 @@ }, "parameters": [ { - "id": 123, + "id": 141, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -2264,7 +2444,7 @@ "type": { "type": "reflection", "declaration": { - "id": 124, + "id": 142, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2273,7 +2453,7 @@ }, "signatures": [ { - "id": 125, + "id": 143, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -2282,7 +2462,7 @@ }, "parameters": [ { - "id": 126, + "id": 144, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -2295,7 +2475,7 @@ } }, { - "id": 127, + "id": 145, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -2326,7 +2506,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 140, + "line": 155, "character": 31 } ] @@ -2337,7 +2517,7 @@ "type": { "type": "reflection", "declaration": { - "id": 128, + "id": 146, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2346,7 +2526,7 @@ }, "children": [ { - "id": 129, + "id": 147, "name": "data", "kind": 32, "kindString": "Variable", @@ -2356,7 +2536,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 141, + "line": 156, "character": 12 } ], @@ -2375,7 +2555,7 @@ } }, { - "id": 130, + "id": 148, "name": "error", "kind": 32, "kindString": "Variable", @@ -2385,7 +2565,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 142, + "line": 157, "character": 13 } ], @@ -2409,15 +2589,15 @@ "title": "Variables", "kind": 32, "children": [ - 129, - 130 + 147, + 148 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 140, + "line": 155, "character": 91 } ] @@ -2425,7 +2605,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 121, + "id": 139, "name": "GoTrueClient.onAuthStateChange" } } @@ -2433,18 +2613,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 140, + "line": 155, "character": 21 } ], "inheritedFrom": { "type": "reference", - "id": 121, + "id": 139, "name": "GoTrueClient.onAuthStateChange" } }, { - "id": 87, + "id": 105, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -2453,7 +2633,7 @@ }, "signatures": [ { - "id": 88, + "id": 106, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -2469,7 +2649,7 @@ { "type": "reflection", "declaration": { - "id": 89, + "id": 107, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2478,7 +2658,7 @@ }, "children": [ { - "id": 90, + "id": 108, "name": "data", "kind": 32, "kindString": "Variable", @@ -2488,7 +2668,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 92, + "line": 107, "character": 12 } ], @@ -2507,7 +2687,7 @@ } }, { - "id": 92, + "id": 110, "name": "error", "kind": 32, "kindString": "Variable", @@ -2517,7 +2697,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 94, + "line": 109, "character": 13 } ], @@ -2536,7 +2716,7 @@ } }, { - "id": 91, + "id": 109, "name": "user", "kind": 32, "kindString": "Variable", @@ -2546,7 +2726,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 93, + "line": 108, "character": 12 } ], @@ -2570,16 +2750,16 @@ "title": "Variables", "kind": 32, "children": [ - 90, - 92, - 91 + 108, + 110, + 109 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 91, + "line": 106, "character": 30 } ] @@ -2590,7 +2770,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 87, + "id": 105, "name": "GoTrueClient.refreshSession" } } @@ -2598,18 +2778,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 91, + "line": 106, "character": 18 } ], "inheritedFrom": { "type": "reference", - "id": 87, + "id": 105, "name": "GoTrueClient.refreshSession" } }, { - "id": 85, + "id": 103, "name": "session", "kind": 2048, "kindString": "Method", @@ -2618,7 +2798,7 @@ }, "signatures": [ { - "id": 86, + "id": 104, "name": "session", "kind": 4096, "kindString": "Call signature", @@ -2643,7 +2823,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 85, + "id": 103, "name": "GoTrueClient.session" } } @@ -2651,18 +2831,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 87, + "line": 102, "character": 11 } ], "inheritedFrom": { "type": "reference", - "id": 85, + "id": 103, "name": "GoTrueClient.session" } }, { - "id": 106, + "id": 124, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -2671,7 +2851,7 @@ }, "signatures": [ { - "id": 107, + "id": 125, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -2683,7 +2863,7 @@ }, "parameters": [ { - "id": 108, + "id": 126, "name": "access_token", "kind": 32768, "kindString": "Parameter", @@ -2705,7 +2885,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 106, + "id": 124, "name": "GoTrueClient.setAuth" } } @@ -2713,18 +2893,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 116, + "line": 131, "character": 11 } ], "inheritedFrom": { "type": "reference", - "id": 106, + "id": 124, "name": "GoTrueClient.setAuth" } }, { - "id": 100, + "id": 118, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -2733,7 +2913,7 @@ }, "signatures": [ { - "id": 101, + "id": 119, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -2745,7 +2925,7 @@ }, "parameters": [ { - "id": 102, + "id": 120, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -2767,7 +2947,7 @@ { "type": "reflection", "declaration": { - "id": 103, + "id": 121, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2776,7 +2956,7 @@ }, "children": [ { - "id": 105, + "id": 123, "name": "error", "kind": 32, "kindString": "Variable", @@ -2786,7 +2966,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 110, + "line": 125, "character": 13 } ], @@ -2805,7 +2985,7 @@ } }, { - "id": 104, + "id": 122, "name": "session", "kind": 32, "kindString": "Variable", @@ -2815,7 +2995,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 109, + "line": 124, "character": 15 } ], @@ -2839,15 +3019,15 @@ "title": "Variables", "kind": 32, "children": [ - 105, - 104 + 123, + 122 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 108, + "line": 123, "character": 47 } ] @@ -2858,7 +3038,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 100, + "id": 118, "name": "GoTrueClient.setSession" } } @@ -2866,18 +3046,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 108, + "line": 123, "character": 14 } ], "inheritedFrom": { "type": "reference", - "id": 100, + "id": 118, "name": "GoTrueClient.setSession" } }, { - "id": 64, + "id": 67, "name": "signIn", "kind": 2048, "kindString": "Method", @@ -2886,7 +3066,7 @@ }, "signatures": [ { - "id": 65, + "id": 68, "name": "signIn", "kind": 4096, "kindString": "Call signature", @@ -2898,7 +3078,7 @@ }, "parameters": [ { - "id": 66, + "id": 69, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -2909,7 +3089,7 @@ "type": { "type": "reflection", "declaration": { - "id": 67, + "id": 70, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2918,7 +3098,7 @@ }, "children": [ { - "id": 68, + "id": 71, "name": "email", "kind": 32, "kindString": "Variable", @@ -2931,7 +3111,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, + "line": 68, "character": 18 } ], @@ -2950,7 +3130,7 @@ } }, { - "id": 69, + "id": 73, "name": "password", "kind": 32, "kindString": "Variable", @@ -2963,8 +3143,8 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, - "character": 28 + "line": 68, + "character": 35 } ], "type": { @@ -2982,7 +3162,36 @@ } }, { - "id": 71, + "id": 72, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 68, + "character": 25 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 75, "name": "provider", "kind": 32, "kindString": "Variable", @@ -2995,8 +3204,8 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, - "character": 52 + "line": 68, + "character": 59 } ], "type": { @@ -3041,12 +3250,16 @@ { "type": "stringLiteral", "value": "discord" + }, + { + "type": "stringLiteral", + "value": "twitch" } ] } }, { - "id": 70, + "id": 74, "name": "refreshToken", "kind": 32, "kindString": "Variable", @@ -3059,8 +3272,8 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, - "character": 42 + "line": 68, + "character": 49 } ], "type": { @@ -3083,17 +3296,18 @@ "title": "Variables", "kind": 32, "children": [ - 68, - 69, 71, - 70 + 73, + 72, + 75, + 74 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, + "line": 68, "character": 11 } ] @@ -3101,7 +3315,7 @@ } }, { - "id": 72, + "id": 76, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -3119,7 +3333,7 @@ { "type": "reflection", "declaration": { - "id": 73, + "id": 77, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3128,7 +3342,7 @@ }, "children": [ { - "id": 74, + "id": 78, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -3139,7 +3353,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 68, + "line": 69, "character": 18 } ], @@ -3158,7 +3372,7 @@ } }, { - "id": 75, + "id": 79, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -3169,7 +3383,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 69, + "line": 70, "character": 14 } ], @@ -3193,8 +3407,8 @@ "title": "Variables", "kind": 32, "children": [ - 74, - 75 + 78, + 79 ] } ] @@ -3210,7 +3424,7 @@ { "type": "reflection", "declaration": { - "id": 76, + "id": 80, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3219,7 +3433,7 @@ }, "children": [ { - "id": 82, + "id": 86, "name": "data", "kind": 32, "kindString": "Variable", @@ -3229,7 +3443,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 76, + "line": 77, "character": 12 } ], @@ -3248,7 +3462,7 @@ } }, { - "id": 81, + "id": 85, "name": "error", "kind": 32, "kindString": "Variable", @@ -3258,7 +3472,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 75, + "line": 76, "character": 13 } ], @@ -3277,7 +3491,7 @@ } }, { - "id": 79, + "id": 83, "name": "provider", "kind": 32, "kindString": "Variable", @@ -3288,7 +3502,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 73, + "line": 74, "character": 16 } ], @@ -3298,7 +3512,7 @@ } }, { - "id": 77, + "id": 81, "name": "session", "kind": 32, "kindString": "Variable", @@ -3308,7 +3522,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 71, + "line": 72, "character": 15 } ], @@ -3327,7 +3541,7 @@ } }, { - "id": 80, + "id": 84, "name": "url", "kind": 32, "kindString": "Variable", @@ -3338,7 +3552,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 74, + "line": 75, "character": 11 } ], @@ -3357,7 +3571,7 @@ } }, { - "id": 78, + "id": 82, "name": "user", "kind": 32, "kindString": "Variable", @@ -3367,7 +3581,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 72, + "line": 73, "character": 12 } ], @@ -3391,19 +3605,19 @@ "title": "Variables", "kind": 32, "children": [ - 82, + 86, + 85, + 83, 81, - 79, - 77, - 80, - 78 + 84, + 82 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 70, + "line": 71, "character": 16 } ] @@ -3414,7 +3628,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 64, + "id": 67, "name": "GoTrueClient.signIn" } } @@ -3422,18 +3636,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, + "line": 68, "character": 10 } ], "inheritedFrom": { "type": "reference", - "id": 64, + "id": 67, "name": "GoTrueClient.signIn" } }, { - "id": 117, + "id": 135, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -3442,7 +3656,7 @@ }, "signatures": [ { - "id": 118, + "id": 136, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -3459,7 +3673,7 @@ { "type": "reflection", "declaration": { - "id": 119, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3468,7 +3682,7 @@ }, "children": [ { - "id": 120, + "id": 138, "name": "error", "kind": 32, "kindString": "Variable", @@ -3478,7 +3692,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 134, + "line": 149, "character": 13 } ], @@ -3502,14 +3716,14 @@ "title": "Variables", "kind": 32, "children": [ - 120 + 138 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 133, + "line": 148, "character": 23 } ] @@ -3520,7 +3734,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 117, + "id": 135, "name": "GoTrueClient.signOut" } } @@ -3528,18 +3742,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 133, + "line": 148, "character": 11 } ], "inheritedFrom": { "type": "reference", - "id": 117, + "id": 135, "name": "GoTrueClient.signOut" } }, { - "id": 50, + "id": 52, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -3548,7 +3762,7 @@ }, "signatures": [ { - "id": 51, + "id": 53, "name": "signUp", "kind": 4096, "kindString": "Call signature", @@ -3560,7 +3774,7 @@ }, "parameters": [ { - "id": 52, + "id": 54, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -3571,7 +3785,7 @@ "type": { "type": "reflection", "declaration": { - "id": 53, + "id": 55, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3580,7 +3794,7 @@ }, "children": [ { - "id": 54, + "id": 56, "name": "email", "kind": 32, "kindString": "Variable", @@ -3593,7 +3807,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, + "line": 50, "character": 18 } ], @@ -3612,7 +3826,7 @@ } }, { - "id": 55, + "id": 57, "name": "password", "kind": 32, "kindString": "Variable", @@ -3625,7 +3839,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, + "line": 50, "character": 28 } ], @@ -3642,6 +3856,38 @@ } ] } + }, + { + "id": 58, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 50, + "character": 35 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } } ], "groups": [ @@ -3649,15 +3895,16 @@ "title": "Variables", "kind": 32, "children": [ - 54, - 55 + 56, + 57, + 58 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, + "line": 50, "character": 11 } ] @@ -3665,7 +3912,7 @@ } }, { - "id": 56, + "id": 59, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -3683,7 +3930,7 @@ { "type": "reflection", "declaration": { - "id": 57, + "id": 60, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3692,7 +3939,7 @@ }, "children": [ { - "id": 58, + "id": 61, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -3703,7 +3950,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 50, + "line": 51, "character": 18 } ], @@ -3727,7 +3974,7 @@ "title": "Variables", "kind": 32, "children": [ - 58 + 61 ] } ] @@ -3743,7 +3990,7 @@ { "type": "reflection", "declaration": { - "id": 59, + "id": 62, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3752,7 +3999,7 @@ }, "children": [ { - "id": 63, + "id": 66, "name": "data", "kind": 32, "kindString": "Variable", @@ -3762,7 +4009,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 55, + "line": 56, "character": 12 } ], @@ -3785,7 +4032,7 @@ } }, { - "id": 62, + "id": 65, "name": "error", "kind": 32, "kindString": "Variable", @@ -3795,7 +4042,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 54, + "line": 55, "character": 13 } ], @@ -3814,7 +4061,7 @@ } }, { - "id": 61, + "id": 64, "name": "session", "kind": 32, "kindString": "Variable", @@ -3824,7 +4071,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 53, + "line": 54, "character": 15 } ], @@ -3843,7 +4090,7 @@ } }, { - "id": 60, + "id": 63, "name": "user", "kind": 32, "kindString": "Variable", @@ -3853,7 +4100,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 52, + "line": 53, "character": 12 } ], @@ -3877,17 +4124,17 @@ "title": "Variables", "kind": 32, "children": [ - 63, - 62, - 61, - 60 + 66, + 65, + 64, + 63 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 51, + "line": 52, "character": 16 } ] @@ -3898,7 +4145,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 50, + "id": 52, "name": "GoTrueClient.signUp" } } @@ -3906,18 +4153,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, + "line": 50, "character": 10 } ], "inheritedFrom": { "type": "reference", - "id": 50, + "id": 52, "name": "GoTrueClient.signUp" } }, { - "id": 93, + "id": 111, "name": "update", "kind": 2048, "kindString": "Method", @@ -3926,7 +4173,7 @@ }, "signatures": [ { - "id": 94, + "id": 112, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -3938,7 +4185,7 @@ }, "parameters": [ { - "id": 95, + "id": 113, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -3957,7 +4204,7 @@ { "type": "reflection", "declaration": { - "id": 96, + "id": 114, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3966,7 +4213,7 @@ }, "children": [ { - "id": 97, + "id": 115, "name": "data", "kind": 32, "kindString": "Variable", @@ -3976,7 +4223,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 100, + "line": 115, "character": 12 } ], @@ -3995,7 +4242,7 @@ } }, { - "id": 99, + "id": 117, "name": "error", "kind": 32, "kindString": "Variable", @@ -4005,7 +4252,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 102, + "line": 117, "character": 13 } ], @@ -4024,7 +4271,7 @@ } }, { - "id": 98, + "id": 116, "name": "user", "kind": 32, "kindString": "Variable", @@ -4034,7 +4281,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 101, + "line": 116, "character": 12 } ], @@ -4058,16 +4305,16 @@ "title": "Variables", "kind": 32, "children": [ - 97, - 99, - 98 + 115, + 117, + 116 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 99, + "line": 114, "character": 48 } ] @@ -4078,7 +4325,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 93, + "id": 111, "name": "GoTrueClient.update" } } @@ -4086,18 +4333,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 99, + "line": 114, "character": 10 } ], "inheritedFrom": { "type": "reference", - "id": 93, + "id": 111, "name": "GoTrueClient.update" } }, { - "id": 83, + "id": 101, "name": "user", "kind": 2048, "kindString": "Method", @@ -4106,7 +4353,7 @@ }, "signatures": [ { - "id": 84, + "id": 102, "name": "user", "kind": 4096, "kindString": "Call signature", @@ -4132,7 +4379,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 83, + "id": 101, "name": "GoTrueClient.user" } } @@ -4140,15 +4387,375 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 83, + "line": 98, "character": 8 } ], "inheritedFrom": { "type": "reference", - "id": 83, + "id": 101, "name": "GoTrueClient.user" } + }, + { + "id": 87, + "name": "verifyOTP", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 88, + "name": "verifyOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Log in a user given a User supplied OTP received via mobile." + }, + "parameters": [ + { + "id": 89, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 90, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 91, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 85, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 92, + "name": "token", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's password." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 85, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 91, + 92 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 85, + "character": 14 + } + ] + } + } + }, + { + "id": 93, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 94, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 95, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 86, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 95 + ] + } + ] + } + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 96, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 100, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 91, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 99, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 90, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 98, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 89, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 97, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 88, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 100, + 99, + 98, + 97 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 87, + "character": 16 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 87, + "name": "GoTrueClient.verifyOTP" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 85, + "character": 13 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 87, + "name": "GoTrueClient.verifyOTP" + } } ], "groups": [ @@ -4156,38 +4763,39 @@ "title": "Constructors", "kind": 512, "children": [ - 29 + 31 ] }, { "title": "Properties", "kind": 1024, "children": [ - 42, - 45, 44, - 43, 47, 46, + 45, 49, - 48 + 48, + 51, + 50 ] }, { "title": "Methods", "kind": 2048, "children": [ - 109, - 121, - 87, - 85, - 106, - 100, - 64, - 117, - 50, - 93, - 83 + 127, + 139, + 105, + 103, + 124, + 118, + 67, + 135, + 52, + 111, + 101, + 87 ] } ], @@ -4211,7 +4819,7 @@ "title": "Classes", "kind": 128, "children": [ - 28 + 30 ] } ], @@ -4224,7 +4832,7 @@ ] }, { - "id": 157, + "id": 175, "name": "\"lib/SupabaseQueryBuilder\"", "kind": 1, "kindString": "Module", @@ -4234,7 +4842,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts", "children": [ { - "id": 158, + "id": 176, "name": "SupabaseQueryBuilder", "kind": 128, "kindString": "Class", @@ -4243,7 +4851,7 @@ }, "typeParameter": [ { - "id": 159, + "id": 177, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -4254,7 +4862,7 @@ ], "children": [ { - "id": 162, + "id": 180, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -4263,7 +4871,7 @@ }, "signatures": [ { - "id": 163, + "id": 181, "name": "new SupabaseQueryBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -4272,7 +4880,7 @@ }, "parameters": [ { - "id": 164, + "id": 182, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -4285,7 +4893,7 @@ } }, { - "id": 165, + "id": 183, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -4296,7 +4904,7 @@ "type": { "type": "reflection", "declaration": { - "id": 166, + "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4305,7 +4913,7 @@ }, "children": [ { - "id": 167, + "id": 185, "name": "headers", "kind": 32, "kindString": "Variable", @@ -4322,7 +4930,7 @@ "type": { "type": "reflection", "declaration": { - "id": 168, + "id": 186, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4331,7 +4939,7 @@ }, "indexSignature": [ { - "id": 169, + "id": 187, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -4340,7 +4948,7 @@ }, "parameters": [ { - "id": 170, + "id": 188, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -4363,7 +4971,7 @@ } }, { - "id": 172, + "id": 190, "name": "realtime", "kind": 32, "kindString": "Variable", @@ -4383,7 +4991,7 @@ } }, { - "id": 171, + "id": 189, "name": "schema", "kind": 32, "kindString": "Variable", @@ -4403,7 +5011,7 @@ } }, { - "id": 173, + "id": 191, "name": "table", "kind": 32, "kindString": "Variable", @@ -4428,10 +5036,10 @@ "title": "Variables", "kind": 32, "children": [ - 167, - 172, - 171, - 173 + 185, + 190, + 189, + 191 ] } ], @@ -4448,7 +5056,7 @@ ], "type": { "type": "reference", - "id": 158, + "id": 176, "name": "SupabaseQueryBuilder" }, "overwrites": { @@ -4470,7 +5078,7 @@ } }, { - "id": 161, + "id": 179, "name": "_realtime", "kind": 1024, "kindString": "Property", @@ -4491,7 +5099,7 @@ } }, { - "id": 160, + "id": 178, "name": "_subscription", "kind": 1024, "kindString": "Property", @@ -4508,12 +5116,12 @@ ], "type": { "type": "reference", - "id": 132, + "id": 150, "name": "SupabaseRealtimeClient" } }, { - "id": 232, + "id": 250, "name": "body", "kind": 1024, "kindString": "Property", @@ -4559,12 +5167,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 232, + "id": 250, "name": "PostgrestBuilder.body" } }, { - "id": 227, + "id": 245, "name": "headers", "kind": 1024, "kindString": "Property", @@ -4582,7 +5190,7 @@ "type": { "type": "reflection", "declaration": { - "id": 228, + "id": 246, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4591,7 +5199,7 @@ }, "indexSignature": [ { - "id": 229, + "id": 247, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -4600,7 +5208,7 @@ }, "parameters": [ { - "id": 230, + "id": 248, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -4630,12 +5238,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 227, + "id": 245, "name": "PostgrestBuilder.headers" } }, { - "id": 225, + "id": 243, "name": "method", "kind": 1024, "kindString": "Property", @@ -4677,12 +5285,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 225, + "id": 243, "name": "PostgrestBuilder.method" } }, { - "id": 231, + "id": 249, "name": "schema", "kind": 1024, "kindString": "Property", @@ -4713,12 +5321,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 231, + "id": 249, "name": "PostgrestBuilder.schema" } }, { - "id": 233, + "id": 251, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -4753,12 +5361,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 233, + "id": 251, "name": "PostgrestBuilder.shouldThrowOnError" } }, { - "id": 226, + "id": 244, "name": "url", "kind": 1024, "kindString": "Property", @@ -4779,12 +5387,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 226, + "id": 244, "name": "PostgrestBuilder.url" } }, { - "id": 219, + "id": 237, "name": "delete", "kind": 2048, "kindString": "Method", @@ -4793,7 +5401,7 @@ }, "signatures": [ { - "id": 220, + "id": 238, "name": "delete", "kind": 4096, "kindString": "Call signature", @@ -4805,7 +5413,7 @@ }, "parameters": [ { - "id": 221, + "id": 239, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -4817,7 +5425,7 @@ "type": { "type": "reflection", "declaration": { - "id": 222, + "id": 240, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4826,7 +5434,7 @@ }, "children": [ { - "id": 224, + "id": 242, "name": "count", "kind": 32, "kindString": "Variable", @@ -4870,7 +5478,7 @@ } }, { - "id": 223, + "id": 241, "name": "returning", "kind": 32, "kindString": "Variable", @@ -4911,8 +5519,8 @@ "title": "Variables", "kind": 32, "children": [ - 224, - 223 + 242, + 241 ] } ], @@ -4939,7 +5547,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 219, + "id": 237, "name": "PostgrestQueryBuilder.delete" } } @@ -4953,12 +5561,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 219, + "id": 237, "name": "PostgrestQueryBuilder.delete" } }, { - "id": 188, + "id": 206, "name": "insert", "kind": 2048, "kindString": "Method", @@ -4967,7 +5575,7 @@ }, "signatures": [ { - "id": 189, + "id": 207, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -4979,7 +5587,7 @@ }, "parameters": [ { - "id": 190, + "id": 208, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -5019,7 +5627,7 @@ } }, { - "id": 191, + "id": 209, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5037,7 +5645,7 @@ { "type": "reflection", "declaration": { - "id": 192, + "id": 210, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5046,7 +5654,7 @@ }, "children": [ { - "id": 194, + "id": 212, "name": "count", "kind": 32, "kindString": "Variable", @@ -5084,7 +5692,7 @@ } }, { - "id": 193, + "id": 211, "name": "returning", "kind": 32, "kindString": "Variable", @@ -5119,8 +5727,8 @@ "title": "Variables", "kind": 32, "children": [ - 194, - 193 + 212, + 211 ] } ] @@ -5142,12 +5750,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 188, + "id": 206, "name": "PostgrestQueryBuilder.insert" } }, { - "id": 195, + "id": 213, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -5164,7 +5772,7 @@ }, "parameters": [ { - "id": 196, + "id": 214, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -5201,7 +5809,7 @@ } }, { - "id": 197, + "id": 215, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5219,7 +5827,7 @@ { "type": "reflection", "declaration": { - "id": 198, + "id": 216, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5228,7 +5836,7 @@ }, "children": [ { - "id": 202, + "id": 220, "name": "count", "kind": 32, "kindString": "Variable", @@ -5266,7 +5874,7 @@ } }, { - "id": 200, + "id": 218, "name": "onConflict", "kind": 32, "kindString": "Variable", @@ -5296,7 +5904,7 @@ } }, { - "id": 201, + "id": 219, "name": "returning", "kind": 32, "kindString": "Variable", @@ -5326,7 +5934,7 @@ } }, { - "id": 199, + "id": 217, "name": "upsert", "kind": 32, "kindString": "Variable", @@ -5365,10 +5973,10 @@ "title": "Variables", "kind": 32, "children": [ - 202, - 200, - 201, - 199 + 220, + 218, + 219, + 217 ] } ] @@ -5390,7 +5998,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 188, + "id": 206, "name": "PostgrestQueryBuilder.insert" } } @@ -5409,12 +6017,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 188, + "id": 206, "name": "PostgrestQueryBuilder.insert" } }, { - "id": 174, + "id": 192, "name": "on", "kind": 2048, "kindString": "Method", @@ -5423,7 +6031,7 @@ }, "signatures": [ { - "id": 175, + "id": 193, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -5435,7 +6043,7 @@ }, "parameters": [ { - "id": 176, + "id": 194, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -5447,12 +6055,12 @@ }, "type": { "type": "reference", - "id": 26, + "id": 28, "name": "SupabaseEventTypes" } }, { - "id": 177, + "id": 195, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -5465,7 +6073,7 @@ "type": { "type": "reflection", "declaration": { - "id": 178, + "id": 196, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5474,7 +6082,7 @@ }, "signatures": [ { - "id": 179, + "id": 197, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5483,7 +6091,7 @@ }, "parameters": [ { - "id": 180, + "id": 198, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -5492,7 +6100,7 @@ }, "type": { "type": "reference", - "id": 17, + "id": 19, "typeArguments": [ { "type": "typeParameter", @@ -5522,7 +6130,7 @@ ], "type": { "type": "reference", - "id": 132, + "id": 150, "name": "SupabaseRealtimeClient" } } @@ -5536,7 +6144,7 @@ ] }, { - "id": 181, + "id": 199, "name": "select", "kind": 2048, "kindString": "Method", @@ -5545,7 +6153,7 @@ }, "signatures": [ { - "id": 182, + "id": 200, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -5557,7 +6165,7 @@ }, "parameters": [ { - "id": 183, + "id": 201, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -5583,7 +6191,7 @@ } }, { - "id": 184, + "id": 202, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -5595,7 +6203,7 @@ "type": { "type": "reflection", "declaration": { - "id": 185, + "id": 203, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5604,7 +6212,7 @@ }, "children": [ { - "id": 187, + "id": 205, "name": "count", "kind": 32, "kindString": "Variable", @@ -5648,7 +6256,7 @@ } }, { - "id": 186, + "id": 204, "name": "head", "kind": 32, "kindString": "Variable", @@ -5689,8 +6297,8 @@ "title": "Variables", "kind": 32, "children": [ - 187, - 186 + 205, + 204 ] } ], @@ -5717,7 +6325,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 181, + "id": 199, "name": "PostgrestQueryBuilder.select" } } @@ -5731,12 +6339,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 181, + "id": 199, "name": "PostgrestQueryBuilder.select" } }, { - "id": 236, + "id": 254, "name": "then", "kind": 2048, "kindString": "Method", @@ -5745,7 +6353,7 @@ }, "signatures": [ { - "id": 237, + "id": 255, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -5754,7 +6362,7 @@ }, "typeParameter": [ { - "id": 238, + "id": 256, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -5763,7 +6371,7 @@ } }, { - "id": 239, + "id": 257, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -5774,7 +6382,7 @@ ], "parameters": [ { - "id": 240, + "id": 258, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -5788,7 +6396,7 @@ { "type": "reflection", "declaration": { - "id": 241, + "id": 259, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5797,7 +6405,7 @@ }, "signatures": [ { - "id": 242, + "id": 260, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5806,7 +6414,7 @@ }, "parameters": [ { - "id": 243, + "id": 261, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -5887,7 +6495,7 @@ } }, { - "id": 244, + "id": 262, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -5901,7 +6509,7 @@ { "type": "reflection", "declaration": { - "id": 245, + "id": 263, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5910,7 +6518,7 @@ }, "signatures": [ { - "id": 246, + "id": 264, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5919,7 +6527,7 @@ }, "parameters": [ { - "id": 247, + "id": 265, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -6017,7 +6625,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 236, + "id": 254, "name": "PostgrestBuilder.then" } } @@ -6031,12 +6639,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 236, + "id": 254, "name": "PostgrestBuilder.then" } }, { - "id": 234, + "id": 252, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -6045,7 +6653,7 @@ }, "signatures": [ { - "id": 235, + "id": 253, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -6068,7 +6676,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 234, + "id": 252, "name": "PostgrestBuilder.throwOnError" } } @@ -6082,12 +6690,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 234, + "id": 252, "name": "PostgrestBuilder.throwOnError" } }, { - "id": 212, + "id": 230, "name": "update", "kind": 2048, "kindString": "Method", @@ -6096,7 +6704,7 @@ }, "signatures": [ { - "id": 213, + "id": 231, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -6108,7 +6716,7 @@ }, "parameters": [ { - "id": 214, + "id": 232, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -6130,7 +6738,7 @@ } }, { - "id": 215, + "id": 233, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -6142,7 +6750,7 @@ "type": { "type": "reflection", "declaration": { - "id": 216, + "id": 234, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6151,7 +6759,7 @@ }, "children": [ { - "id": 218, + "id": 236, "name": "count", "kind": 32, "kindString": "Variable", @@ -6195,7 +6803,7 @@ } }, { - "id": 217, + "id": 235, "name": "returning", "kind": 32, "kindString": "Variable", @@ -6236,8 +6844,8 @@ "title": "Variables", "kind": 32, "children": [ - 218, - 217 + 236, + 235 ] } ], @@ -6264,7 +6872,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 212, + "id": 230, "name": "PostgrestQueryBuilder.update" } } @@ -6278,12 +6886,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 212, + "id": 230, "name": "PostgrestQueryBuilder.update" } }, { - "id": 203, + "id": 221, "name": "upsert", "kind": 2048, "kindString": "Method", @@ -6292,7 +6900,7 @@ }, "signatures": [ { - "id": 204, + "id": 222, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -6304,7 +6912,7 @@ }, "parameters": [ { - "id": 205, + "id": 223, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -6344,7 +6952,7 @@ } }, { - "id": 206, + "id": 224, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -6356,7 +6964,7 @@ "type": { "type": "reflection", "declaration": { - "id": 207, + "id": 225, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6365,7 +6973,7 @@ }, "children": [ { - "id": 210, + "id": 228, "name": "count", "kind": 32, "kindString": "Variable", @@ -6409,7 +7017,7 @@ } }, { - "id": 211, + "id": 229, "name": "ignoreDuplicates", "kind": 32, "kindString": "Variable", @@ -6445,7 +7053,7 @@ } }, { - "id": 208, + "id": 226, "name": "onConflict", "kind": 32, "kindString": "Variable", @@ -6477,7 +7085,7 @@ } }, { - "id": 209, + "id": 227, "name": "returning", "kind": 32, "kindString": "Variable", @@ -6518,10 +7126,10 @@ "title": "Variables", "kind": 32, "children": [ - 210, - 211, - 208, - 209 + 228, + 229, + 226, + 227 ] } ], @@ -6548,7 +7156,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 203, + "id": 221, "name": "PostgrestQueryBuilder.upsert" } } @@ -6562,7 +7170,7 @@ ], "inheritedFrom": { "type": "reference", - "id": 203, + "id": 221, "name": "PostgrestQueryBuilder.upsert" } } @@ -6572,35 +7180,35 @@ "title": "Constructors", "kind": 512, "children": [ - 162 + 180 ] }, { "title": "Properties", "kind": 1024, "children": [ - 161, - 160, - 232, - 227, - 225, - 231, - 233, - 226 + 179, + 178, + 250, + 245, + 243, + 249, + 251, + 244 ] }, { "title": "Methods", "kind": 2048, "children": [ - 219, - 188, - 174, - 181, - 236, - 234, - 212, - 203 + 237, + 206, + 192, + 199, + 254, + 252, + 230, + 221 ] } ], @@ -6648,7 +7256,7 @@ "title": "Classes", "kind": 128, "children": [ - 158 + 176 ] } ], @@ -6661,7 +7269,7 @@ ] }, { - "id": 131, + "id": 149, "name": "\"lib/SupabaseRealtimeClient\"", "kind": 1, "kindString": "Module", @@ -6671,7 +7279,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts", "children": [ { - "id": 132, + "id": 150, "name": "SupabaseRealtimeClient", "kind": 128, "kindString": "Class", @@ -6680,7 +7288,7 @@ }, "children": [ { - "id": 134, + "id": 152, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6689,7 +7297,7 @@ }, "signatures": [ { - "id": 135, + "id": 153, "name": "new SupabaseRealtimeClient", "kind": 16384, "kindString": "Constructor signature", @@ -6698,7 +7306,7 @@ }, "parameters": [ { - "id": 136, + "id": 154, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -6711,7 +7319,7 @@ } }, { - "id": 137, + "id": 155, "name": "schema", "kind": 32768, "kindString": "Parameter", @@ -6724,7 +7332,7 @@ } }, { - "id": 138, + "id": 156, "name": "tableName", "kind": 32768, "kindString": "Parameter", @@ -6739,7 +7347,7 @@ ], "type": { "type": "reference", - "id": 132, + "id": 150, "name": "SupabaseRealtimeClient" } } @@ -6753,7 +7361,7 @@ ] }, { - "id": 133, + "id": 151, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -6773,7 +7381,7 @@ } }, { - "id": 139, + "id": 157, "name": "getPayloadRecords", "kind": 2048, "kindString": "Method", @@ -6783,7 +7391,7 @@ }, "signatures": [ { - "id": 140, + "id": 158, "name": "getPayloadRecords", "kind": 4096, "kindString": "Call signature", @@ -6792,7 +7400,7 @@ }, "parameters": [ { - "id": 141, + "id": 159, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -6808,7 +7416,7 @@ "type": { "type": "reflection", "declaration": { - "id": 142, + "id": 160, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6817,7 +7425,7 @@ }, "children": [ { - "id": 143, + "id": 161, "name": "new", "kind": 32, "kindString": "Variable", @@ -6834,7 +7442,7 @@ "type": { "type": "reflection", "declaration": { - "id": 144, + "id": 162, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6845,7 +7453,7 @@ } }, { - "id": 145, + "id": 163, "name": "old", "kind": 32, "kindString": "Variable", @@ -6862,7 +7470,7 @@ "type": { "type": "reflection", "declaration": { - "id": 146, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6878,8 +7486,8 @@ "title": "Variables", "kind": 32, "children": [ - 143, - 145 + 161, + 163 ] } ] @@ -6896,7 +7504,7 @@ ] }, { - "id": 147, + "id": 165, "name": "on", "kind": 2048, "kindString": "Method", @@ -6905,7 +7513,7 @@ }, "signatures": [ { - "id": 148, + "id": 166, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -6917,7 +7525,7 @@ }, "parameters": [ { - "id": 149, + "id": 167, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -6929,12 +7537,12 @@ }, "type": { "type": "reference", - "id": 26, + "id": 28, "name": "SupabaseEventTypes" } }, { - "id": 150, + "id": 168, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -6947,7 +7555,7 @@ "type": { "type": "reflection", "declaration": { - "id": 151, + "id": 169, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6956,7 +7564,7 @@ }, "signatures": [ { - "id": 152, + "id": 170, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -6965,7 +7573,7 @@ }, "parameters": [ { - "id": 153, + "id": 171, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -6974,7 +7582,7 @@ }, "type": { "type": "reference", - "id": 17, + "id": 19, "typeArguments": [ { "type": "intrinsic", @@ -7017,7 +7625,7 @@ ] }, { - "id": 154, + "id": 172, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -7026,7 +7634,7 @@ }, "signatures": [ { - "id": 155, + "id": 173, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -7038,7 +7646,7 @@ }, "parameters": [ { - "id": 156, + "id": 174, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -7072,23 +7680,23 @@ "title": "Constructors", "kind": 512, "children": [ - 134 + 152 ] }, { "title": "Properties", "kind": 1024, "children": [ - 133 + 151 ] }, { "title": "Methods", "kind": 2048, "children": [ - 139, - 147, - 154 + 157, + 165, + 172 ] } ], @@ -7106,7 +7714,7 @@ "title": "Classes", "kind": 128, "children": [ - 132 + 150 ] } ], @@ -7119,7 +7727,7 @@ ] }, { - "id": 1, + "id": 3, "name": "\"lib/constants\"", "kind": 1, "kindString": "Module", @@ -7129,14 +7737,46 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/constants.ts", "children": [ { - "id": 2, + "id": 4, "name": "DEFAULT_HEADERS", - "kind": 32, - "kindString": "Variable", + "kind": 2097152, + "kindString": "Object literal", "flags": { "isExported": true, "isConst": true }, + "children": [ + { + "id": 5, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 3, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`supabase-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 5 + ] + } + ], "sources": [ { "fileName": "src/lib/constants.ts", @@ -7145,25 +7785,17 @@ } ], "type": { - "type": "reflection", - "declaration": { - "id": 3, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - } - } + "type": "intrinsic", + "name": "object" } } ], "groups": [ { - "title": "Variables", - "kind": 32, + "title": "Object literals", + "kind": 2097152, "children": [ - 2 + 4 ] } ], @@ -7176,7 +7808,7 @@ ] }, { - "id": 318, + "id": 344, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", @@ -7186,7 +7818,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts", "children": [ { - "id": 319, + "id": 345, "name": "uuid", "kind": 64, "kindString": "Function", @@ -7195,7 +7827,7 @@ }, "signatures": [ { - "id": 320, + "id": 346, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -7222,7 +7854,7 @@ "title": "Functions", "kind": 64, "children": [ - 319 + 345 ] } ], @@ -7235,7 +7867,7 @@ ] }, { - "id": 4, + "id": 6, "name": "\"lib/types\"", "kind": 1, "kindString": "Module", @@ -7245,7 +7877,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/types.ts", "children": [ { - "id": 5, + "id": 7, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -7262,7 +7894,7 @@ "type": { "type": "reflection", "declaration": { - "id": 6, + "id": 8, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7271,7 +7903,7 @@ }, "children": [ { - "id": 12, + "id": 14, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -7308,7 +7940,7 @@ } }, { - "id": 14, + "id": 16, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -7345,7 +7977,7 @@ } }, { - "id": 8, + "id": 10, "name": "headers", "kind": 32, "kindString": "Variable", @@ -7373,7 +8005,7 @@ { "type": "reflection", "declaration": { - "id": 9, + "id": 11, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7382,7 +8014,7 @@ }, "indexSignature": [ { - "id": 10, + "id": 12, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -7391,7 +8023,7 @@ }, "parameters": [ { - "id": 11, + "id": 13, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7416,7 +8048,7 @@ } }, { - "id": 15, + "id": 17, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -7440,7 +8072,7 @@ } }, { - "id": 13, + "id": 15, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -7477,7 +8109,7 @@ } }, { - "id": 16, + "id": 18, "name": "realtime", "kind": 32, "kindString": "Variable", @@ -7501,7 +8133,7 @@ } }, { - "id": 7, + "id": 9, "name": "schema", "kind": 32, "kindString": "Variable", @@ -7539,13 +8171,13 @@ "title": "Variables", "kind": 32, "children": [ - 12, 14, - 8, - 15, - 13, 16, - 7 + 10, + 17, + 15, + 18, + 9 ] } ], @@ -7560,7 +8192,7 @@ } }, { - "id": 26, + "id": 28, "name": "SupabaseEventTypes", "kind": 4194304, "kindString": "Type alias", @@ -7597,7 +8229,7 @@ } }, { - "id": 17, + "id": 19, "name": "SupabaseRealtimePayload", "kind": 4194304, "kindString": "Type alias", @@ -7606,7 +8238,7 @@ }, "typeParameter": [ { - "id": 18, + "id": 20, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -7625,7 +8257,7 @@ "type": { "type": "reflection", "declaration": { - "id": 19, + "id": 21, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7634,7 +8266,7 @@ }, "children": [ { - "id": 20, + "id": 22, "name": "commit_timestamp", "kind": 32, "kindString": "Variable", @@ -7654,7 +8286,7 @@ } }, { - "id": 21, + "id": 23, "name": "eventType", "kind": 32, "kindString": "Variable", @@ -7687,7 +8319,7 @@ } }, { - "id": 24, + "id": 26, "name": "new", "kind": 32, "kindString": "Variable", @@ -7710,7 +8342,7 @@ } }, { - "id": 25, + "id": 27, "name": "old", "kind": 32, "kindString": "Variable", @@ -7733,7 +8365,7 @@ } }, { - "id": 22, + "id": 24, "name": "schema", "kind": 32, "kindString": "Variable", @@ -7753,7 +8385,7 @@ } }, { - "id": 23, + "id": 25, "name": "table", "kind": 32, "kindString": "Variable", @@ -7778,12 +8410,12 @@ "title": "Variables", "kind": 32, "children": [ - 20, - 21, - 24, - 25, 22, - 23 + 23, + 26, + 27, + 24, + 25 ] } ], @@ -7803,9 +8435,9 @@ "title": "Type aliases", "kind": 4194304, "children": [ - 5, - 26, - 17 + 7, + 28, + 19 ] } ], @@ -7816,6 +8448,56 @@ "character": 0 } ] + }, + { + "id": 1, + "name": "\"lib/version\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/version.ts", + "children": [ + { + "id": 2, + "name": "version", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/version.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "stringLiteral", + "value": "0.0.0" + }, + "defaultValue": "\"0.0.0\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 2 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/version.ts", + "line": 1, + "character": 0 + } + ] } ], "groups": [ @@ -7823,14 +8505,15 @@ "title": "Modules", "kind": 1, "children": [ - 248, - 312, - 27, - 157, - 131, - 1, - 318, - 4 + 266, + 338, + 29, + 175, + 149, + 3, + 344, + 6, + 1 ] } ] @@ -7843,7 +8526,7 @@ "originalName": "", "children": [ { - "id": 197, + "id": 208, "name": "\"GoTrueApi\"", "kind": 1, "kindString": "Module", @@ -7853,7 +8536,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts", "children": [ { - "id": 198, + "id": 209, "name": "GoTrueApi", "kind": 128, "kindString": "Class", @@ -7862,7 +8545,7 @@ }, "children": [ { - "id": 205, + "id": 216, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -7871,7 +8554,7 @@ }, "signatures": [ { - "id": 206, + "id": 217, "name": "new GoTrueApi", "kind": 16384, "kindString": "Constructor signature", @@ -7880,7 +8563,7 @@ }, "parameters": [ { - "id": 207, + "id": 218, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -7891,7 +8574,7 @@ "type": { "type": "reflection", "declaration": { - "id": 208, + "id": 219, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7900,7 +8583,7 @@ }, "children": [ { - "id": 214, + "id": 225, "name": "cookieOptions", "kind": 32, "kindString": "Variable", @@ -7923,14 +8606,14 @@ }, { "type": "reference", - "id": 92, + "id": 97, "name": "CookieOptions" } ] } }, { - "id": 210, + "id": 221, "name": "headers", "kind": 32, "kindString": "Variable", @@ -7947,7 +8630,7 @@ "type": { "type": "reflection", "declaration": { - "id": 211, + "id": 222, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7956,7 +8639,7 @@ }, "indexSignature": [ { - "id": 212, + "id": 223, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -7965,7 +8648,7 @@ }, "parameters": [ { - "id": 213, + "id": 224, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7988,7 +8671,7 @@ } }, { - "id": 209, + "id": 220, "name": "url", "kind": 32, "kindString": "Variable", @@ -8014,9 +8697,9 @@ "title": "Variables", "kind": 32, "children": [ - 214, - 210, - 209 + 225, + 221, + 220 ] } ], @@ -8033,7 +8716,7 @@ ], "type": { "type": "reference", - "id": 198, + "id": 209, "name": "GoTrueApi" } } @@ -8047,7 +8730,7 @@ ] }, { - "id": 204, + "id": 215, "name": "cookieOptions", "kind": 1024, "kindString": "Property", @@ -8064,12 +8747,12 @@ ], "type": { "type": "reference", - "id": 92, + "id": 97, "name": "CookieOptions" } }, { - "id": 200, + "id": 211, "name": "headers", "kind": 1024, "kindString": "Property", @@ -8087,7 +8770,7 @@ "type": { "type": "reflection", "declaration": { - "id": 201, + "id": 212, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8096,7 +8779,7 @@ }, "indexSignature": [ { - "id": 202, + "id": 213, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -8105,7 +8788,7 @@ }, "parameters": [ { - "id": 203, + "id": 214, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -8135,7 +8818,7 @@ } }, { - "id": 199, + "id": 210, "name": "url", "kind": 1024, "kindString": "Property", @@ -8156,7 +8839,7 @@ } }, { - "id": 264, + "id": 306, "name": "_createRequestHeaders", "kind": 2048, "kindString": "Method", @@ -8166,7 +8849,7 @@ }, "signatures": [ { - "id": 265, + "id": 307, "name": "_createRequestHeaders", "kind": 4096, "kindString": "Call signature", @@ -8178,7 +8861,7 @@ }, "parameters": [ { - "id": 266, + "id": 308, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -8197,7 +8880,7 @@ "type": { "type": "reflection", "declaration": { - "id": 267, + "id": 309, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8211,13 +8894,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 166, + "line": 247, "character": 31 } ] }, { - "id": 295, + "id": 337, "name": "deleteUser", "kind": 2048, "kindString": "Method", @@ -8226,7 +8909,7 @@ }, "signatures": [ { - "id": 296, + "id": 338, "name": "deleteUser", "kind": 4096, "kindString": "Call signature", @@ -8238,7 +8921,7 @@ }, "parameters": [ { - "id": 297, + "id": 339, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -8254,7 +8937,7 @@ } }, { - "id": 298, + "id": 340, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -8276,7 +8959,7 @@ { "type": "reflection", "declaration": { - "id": 299, + "id": 341, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8285,7 +8968,7 @@ }, "children": [ { - "id": 301, + "id": 343, "name": "data", "kind": 32, "kindString": "Variable", @@ -8295,7 +8978,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 254, + "line": 335, "character": 38 } ], @@ -8315,7 +8998,7 @@ } }, { - "id": 302, + "id": 344, "name": "error", "kind": 32, "kindString": "Variable", @@ -8325,7 +9008,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 254, + "line": 335, "character": 58 } ], @@ -8344,7 +9027,7 @@ } }, { - "id": 300, + "id": 342, "name": "user", "kind": 32, "kindString": "Variable", @@ -8354,7 +9037,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 254, + "line": 335, "character": 19 } ], @@ -8379,16 +9062,16 @@ "title": "Variables", "kind": 32, "children": [ - 301, - 302, - 300 + 343, + 344, + 342 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 254, + "line": 335, "character": 13 } ] @@ -8402,13 +9085,321 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 251, + "line": 332, "character": 18 } ] }, { - "id": 273, + "id": 362, + "name": "generateLink", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 363, + "name": "generateLink", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Generates links to be sent via email or other." + }, + "parameters": [ + { + "id": 364, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")." + }, + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "signup" + }, + { + "type": "stringLiteral", + "value": "magiclink" + }, + { + "type": "stringLiteral", + "value": "recovery" + }, + { + "type": "stringLiteral", + "value": "invite" + } + ] + } + }, + { + "id": 365, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's email." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 366, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 367, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 369, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 432, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 368, + "name": "password", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 431, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 370, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 433, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 369, + 368, + 370 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 430, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 371, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 372, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "Optional user metadata. For signup only." + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 435, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 373, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 435, + "character": 49 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 372, + 373 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 435, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 427, + "character": 20 + } + ] + }, + { + "id": 315, "name": "getUrlForProvider", "kind": 2048, "kindString": "Method", @@ -8417,7 +9408,7 @@ }, "signatures": [ { - "id": 274, + "id": 316, "name": "getUrlForProvider", "kind": 4096, "kindString": "Call signature", @@ -8429,7 +9420,7 @@ }, "parameters": [ { - "id": 275, + "id": 317, "name": "provider", "kind": 32768, "kindString": "Parameter", @@ -8441,12 +9432,12 @@ }, "type": { "type": "reference", - "id": 103, + "id": 112, "name": "Provider" } }, { - "id": 276, + "id": 318, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -8456,7 +9447,7 @@ "type": { "type": "reflection", "declaration": { - "id": 277, + "id": 319, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8465,7 +9456,7 @@ }, "children": [ { - "id": 278, + "id": 320, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -8476,7 +9467,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 198, + "line": 279, "character": 16 } ], @@ -8495,7 +9486,7 @@ } }, { - "id": 279, + "id": 321, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -8506,7 +9497,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 199, + "line": 280, "character": 12 } ], @@ -8530,15 +9521,15 @@ "title": "Variables", "kind": 32, "children": [ - 278, - 279 + 320, + 321 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 197, + "line": 278, "character": 12 } ] @@ -8555,13 +9546,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 195, + "line": 276, "character": 19 } ] }, { - "id": 280, + "id": 322, "name": "getUser", "kind": 2048, "kindString": "Method", @@ -8570,7 +9561,7 @@ }, "signatures": [ { - "id": 281, + "id": 323, "name": "getUser", "kind": 4096, "kindString": "Call signature", @@ -8582,7 +9573,7 @@ }, "parameters": [ { - "id": 282, + "id": 324, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -8604,7 +9595,7 @@ { "type": "reflection", "declaration": { - "id": 283, + "id": 325, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8613,7 +9604,7 @@ }, "children": [ { - "id": 285, + "id": 327, "name": "data", "kind": 32, "kindString": "Variable", @@ -8623,7 +9614,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 218, + "line": 299, "character": 38 } ], @@ -8643,7 +9634,7 @@ } }, { - "id": 286, + "id": 328, "name": "error", "kind": 32, "kindString": "Variable", @@ -8653,7 +9644,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 218, + "line": 299, "character": 58 } ], @@ -8672,7 +9663,7 @@ } }, { - "id": 284, + "id": 326, "name": "user", "kind": 32, "kindString": "Variable", @@ -8682,7 +9673,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 218, + "line": 299, "character": 19 } ], @@ -8707,16 +9698,16 @@ "title": "Variables", "kind": 32, "children": [ - 285, - 286, - 284 + 327, + 328, + 326 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 218, + "line": 299, "character": 13 } ] @@ -8730,13 +9721,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 216, + "line": 297, "character": 15 } ] }, { - "id": 313, + "id": 355, "name": "getUserByCookie", "kind": 2048, "kindString": "Method", @@ -8745,7 +9736,7 @@ }, "signatures": [ { - "id": 314, + "id": 356, "name": "getUserByCookie", "kind": 4096, "kindString": "Call signature", @@ -8757,7 +9748,7 @@ }, "parameters": [ { - "id": 315, + "id": 357, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -8776,7 +9767,7 @@ { "type": "reflection", "declaration": { - "id": 316, + "id": 358, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8785,7 +9776,7 @@ }, "children": [ { - "id": 318, + "id": 360, "name": "data", "kind": 32, "kindString": "Variable", @@ -8795,7 +9786,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 322, + "line": 403, "character": 38 } ], @@ -8815,7 +9806,7 @@ } }, { - "id": 319, + "id": 361, "name": "error", "kind": 32, "kindString": "Variable", @@ -8825,7 +9816,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 322, + "line": 403, "character": 58 } ], @@ -8844,7 +9835,7 @@ } }, { - "id": 317, + "id": 359, "name": "user", "kind": 32, "kindString": "Variable", @@ -8854,7 +9845,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 322, + "line": 403, "character": 19 } ], @@ -8879,16 +9870,16 @@ "title": "Variables", "kind": 32, "children": [ - 318, - 319, - 317 + 360, + 361, + 359 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 322, + "line": 403, "character": 13 } ] @@ -8902,13 +9893,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 320, + "line": 401, "character": 23 } ] }, { - "id": 245, + "id": 287, "name": "inviteUserByEmail", "kind": 2048, "kindString": "Method", @@ -8917,7 +9908,7 @@ }, "signatures": [ { - "id": 246, + "id": 288, "name": "inviteUserByEmail", "kind": 4096, "kindString": "Call signature", @@ -8929,7 +9920,7 @@ }, "parameters": [ { - "id": 247, + "id": 289, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -8945,7 +9936,7 @@ } }, { - "id": 248, + "id": 290, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -8955,7 +9946,7 @@ "type": { "type": "reflection", "declaration": { - "id": 249, + "id": 291, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8964,7 +9955,7 @@ }, "children": [ { - "id": 250, + "id": 292, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -8975,7 +9966,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 121, + "line": 202, "character": 16 } ], @@ -8999,14 +9990,14 @@ "title": "Variables", "kind": 32, "children": [ - 250 + 292 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 120, + "line": 201, "character": 12 } ] @@ -9021,7 +10012,7 @@ { "type": "reflection", "declaration": { - "id": 251, + "id": 293, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9030,7 +10021,7 @@ }, "children": [ { - "id": 252, + "id": 294, "name": "data", "kind": 32, "kindString": "Variable", @@ -9040,7 +10031,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 123, + "line": 204, "character": 19 } ], @@ -9060,7 +10051,7 @@ } }, { - "id": 253, + "id": 295, "name": "error", "kind": 32, "kindString": "Variable", @@ -9070,7 +10061,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 123, + "line": 204, "character": 39 } ], @@ -9094,15 +10085,15 @@ "title": "Variables", "kind": 32, "children": [ - 252, - 253 + 294, + 295 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 123, + "line": 204, "character": 13 } ] @@ -9116,13 +10107,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 118, + "line": 199, "character": 25 } ] }, { - "id": 303, + "id": 345, "name": "refreshAccessToken", "kind": 2048, "kindString": "Method", @@ -9131,7 +10122,7 @@ }, "signatures": [ { - "id": 304, + "id": 346, "name": "refreshAccessToken", "kind": 4096, "kindString": "Call signature", @@ -9143,7 +10134,7 @@ }, "parameters": [ { - "id": 305, + "id": 347, "name": "refreshToken", "kind": 32768, "kindString": "Parameter", @@ -9165,7 +10156,7 @@ { "type": "reflection", "declaration": { - "id": 306, + "id": 348, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9174,7 +10165,7 @@ }, "children": [ { - "id": 307, + "id": 349, "name": "data", "kind": 32, "kindString": "Variable", @@ -9184,7 +10175,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 275, + "line": 356, "character": 19 } ], @@ -9204,7 +10195,7 @@ } }, { - "id": 308, + "id": 350, "name": "error", "kind": 32, "kindString": "Variable", @@ -9214,7 +10205,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 275, + "line": 356, "character": 42 } ], @@ -9238,15 +10229,15 @@ "title": "Variables", "kind": 32, "children": [ - 307, - 308 + 349, + 350 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 275, + "line": 356, "character": 13 } ] @@ -9260,13 +10251,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 273, + "line": 354, "character": 26 } ] }, { - "id": 254, + "id": 296, "name": "resetPasswordForEmail", "kind": 2048, "kindString": "Method", @@ -9275,7 +10266,7 @@ }, "signatures": [ { - "id": 255, + "id": 297, "name": "resetPasswordForEmail", "kind": 4096, "kindString": "Call signature", @@ -9287,7 +10278,7 @@ }, "parameters": [ { - "id": 256, + "id": 298, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -9303,7 +10294,7 @@ } }, { - "id": 257, + "id": 299, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -9313,7 +10304,7 @@ "type": { "type": "reflection", "declaration": { - "id": 258, + "id": 300, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9322,7 +10313,7 @@ }, "children": [ { - "id": 259, + "id": 301, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -9333,7 +10324,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 145, + "line": 226, "character": 16 } ], @@ -9357,14 +10348,14 @@ "title": "Variables", "kind": 32, "children": [ - 259 + 301 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 144, + "line": 225, "character": 12 } ] @@ -9379,7 +10370,7 @@ { "type": "reflection", "declaration": { - "id": 260, + "id": 302, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9388,7 +10379,7 @@ }, "children": [ { - "id": 261, + "id": 303, "name": "data", "kind": 32, "kindString": "Variable", @@ -9398,7 +10389,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 147, + "line": 228, "character": 19 } ], @@ -9408,7 +10399,7 @@ { "type": "reflection", "declaration": { - "id": 262, + "id": 304, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9418,7 +10409,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 147, + "line": 228, "character": 20 } ] @@ -9432,7 +10423,7 @@ } }, { - "id": 263, + "id": 305, "name": "error", "kind": 32, "kindString": "Variable", @@ -9442,7 +10433,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 147, + "line": 228, "character": 37 } ], @@ -9466,15 +10457,15 @@ "title": "Variables", "kind": 32, "children": [ - 261, - 263 + 303, + 305 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 147, + "line": 228, "character": 13 } ] @@ -9488,13 +10479,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 142, + "line": 223, "character": 29 } ] }, { - "id": 235, + "id": 260, "name": "sendMagicLinkEmail", "kind": 2048, "kindString": "Method", @@ -9503,7 +10494,7 @@ }, "signatures": [ { - "id": 236, + "id": 261, "name": "sendMagicLinkEmail", "kind": 4096, "kindString": "Call signature", @@ -9515,7 +10506,7 @@ }, "parameters": [ { - "id": 237, + "id": 262, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -9531,7 +10522,7 @@ } }, { - "id": 238, + "id": 263, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -9541,7 +10532,7 @@ "type": { "type": "reflection", "declaration": { - "id": 239, + "id": 264, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9550,7 +10541,7 @@ }, "children": [ { - "id": 240, + "id": 265, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -9561,7 +10552,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 97, + "line": 138, "character": 16 } ], @@ -9585,14 +10576,14 @@ "title": "Variables", "kind": 32, "children": [ - 240 + 265 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 96, + "line": 137, "character": 12 } ] @@ -9607,7 +10598,7 @@ { "type": "reflection", "declaration": { - "id": 241, + "id": 266, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9616,7 +10607,7 @@ }, "children": [ { - "id": 242, + "id": 267, "name": "data", "kind": 32, "kindString": "Variable", @@ -9626,7 +10617,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 99, + "line": 140, "character": 19 } ], @@ -9636,7 +10627,7 @@ { "type": "reflection", "declaration": { - "id": 243, + "id": 268, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9646,7 +10637,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 99, + "line": 140, "character": 20 } ] @@ -9660,7 +10651,7 @@ } }, { - "id": 244, + "id": 269, "name": "error", "kind": 32, "kindString": "Variable", @@ -9670,7 +10661,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 99, + "line": 140, "character": 37 } ], @@ -9694,15 +10685,15 @@ "title": "Variables", "kind": 32, "children": [ - 242, - 244 + 267, + 269 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 99, + "line": 140, "character": 13 } ] @@ -9716,13 +10707,171 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 94, + "line": 135, "character": 26 } ] }, { - "id": 309, + "id": 270, + "name": "sendMobileOTP", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 271, + "name": "sendMobileOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist" + }, + "parameters": [ + { + "id": 272, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number WITH international prefix\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 273, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 274, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 158, + "character": 52 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 275, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 158, + "character": 53 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 276, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 158, + "character": 70 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 274, + 276 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 158, + "character": 46 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 158, + "character": 21 + } + ] + }, + { + "id": 351, "name": "setAuthCookie", "kind": 2048, "kindString": "Method", @@ -9731,7 +10880,7 @@ }, "signatures": [ { - "id": 310, + "id": 352, "name": "setAuthCookie", "kind": 4096, "kindString": "Call signature", @@ -9743,7 +10892,7 @@ }, "parameters": [ { - "id": 311, + "id": 353, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -9756,7 +10905,7 @@ } }, { - "id": 312, + "id": 354, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -9778,13 +10927,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 294, + "line": 375, "character": 15 } ] }, { - "id": 225, + "id": 236, "name": "signInWithEmail", "kind": 2048, "kindString": "Method", @@ -9793,7 +10942,7 @@ }, "signatures": [ { - "id": 226, + "id": 237, "name": "signInWithEmail", "kind": 4096, "kindString": "Call signature", @@ -9805,7 +10954,7 @@ }, "parameters": [ { - "id": 227, + "id": 238, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -9821,7 +10970,7 @@ } }, { - "id": 228, + "id": 239, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -9837,7 +10986,7 @@ } }, { - "id": 229, + "id": 240, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -9847,7 +10996,7 @@ "type": { "type": "reflection", "declaration": { - "id": 230, + "id": 241, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9856,7 +11005,7 @@ }, "children": [ { - "id": 231, + "id": 242, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -9891,7 +11040,7 @@ "title": "Variables", "kind": 32, "children": [ - 231 + 242 ] } ], @@ -9913,7 +11062,7 @@ { "type": "reflection", "declaration": { - "id": 232, + "id": 243, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9922,7 +11071,7 @@ }, "children": [ { - "id": 233, + "id": 244, "name": "data", "kind": 32, "kindString": "Variable", @@ -9952,7 +11101,7 @@ } }, { - "id": 234, + "id": 245, "name": "error", "kind": 32, "kindString": "Variable", @@ -9986,8 +11135,8 @@ "title": "Variables", "kind": 32, "children": [ - 233, - 234 + 244, + 245 ] } ], @@ -10014,7 +11163,167 @@ ] }, { - "id": 268, + "id": 253, + "name": "signInWithPhone", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 254, + "name": "signInWithPhone", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Logs in an existing user using their phone number and password." + }, + "parameters": [ + { + "id": 255, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The phone number of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 256, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The password of the user.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 257, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 258, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 117, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 259, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 117, + "character": 42 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 258, + 259 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 117, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 114, + "character": 23 + } + ] + }, + { + "id": 310, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -10023,7 +11332,7 @@ }, "signatures": [ { - "id": 269, + "id": 311, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -10035,7 +11344,7 @@ }, "parameters": [ { - "id": 270, + "id": 312, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -10057,7 +11366,7 @@ { "type": "reflection", "declaration": { - "id": 271, + "id": 313, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10066,7 +11375,7 @@ }, "children": [ { - "id": 272, + "id": 314, "name": "error", "kind": 32, "kindString": "Variable", @@ -10076,7 +11385,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 176, + "line": 257, "character": 45 } ], @@ -10100,14 +11409,14 @@ "title": "Variables", "kind": 32, "children": [ - 272 + 314 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 176, + "line": 257, "character": 38 } ] @@ -10121,13 +11430,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 176, + "line": 257, "character": 15 } ] }, { - "id": 215, + "id": 226, "name": "signUpWithEmail", "kind": 2048, "kindString": "Method", @@ -10136,7 +11445,7 @@ }, "signatures": [ { - "id": 216, + "id": 227, "name": "signUpWithEmail", "kind": 4096, "kindString": "Call signature", @@ -10149,7 +11458,7 @@ }, "parameters": [ { - "id": 217, + "id": 228, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -10165,7 +11474,7 @@ } }, { - "id": 218, + "id": 229, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -10181,7 +11490,7 @@ } }, { - "id": 219, + "id": 230, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -10191,7 +11500,7 @@ "type": { "type": "reflection", "declaration": { - "id": 220, + "id": 231, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10200,7 +11509,7 @@ }, "children": [ { - "id": 221, + "id": 232, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -10235,7 +11544,7 @@ "title": "Variables", "kind": 32, "children": [ - 221 + 232 ] } ], @@ -10257,7 +11566,7 @@ { "type": "reflection", "declaration": { - "id": 222, + "id": 233, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10266,7 +11575,7 @@ }, "children": [ { - "id": 223, + "id": 234, "name": "data", "kind": 32, "kindString": "Variable", @@ -10301,7 +11610,7 @@ } }, { - "id": 224, + "id": 235, "name": "error", "kind": 32, "kindString": "Variable", @@ -10335,8 +11644,8 @@ "title": "Variables", "kind": 32, "children": [ - 223, - 224 + 234, + 235 ] } ], @@ -10363,7 +11672,172 @@ ] }, { - "id": 287, + "id": 246, + "name": "signUpWithPhone", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 247, + "name": "signUpWithPhone", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Signs up a new user using their phone number and a password." + }, + "parameters": [ + { + "id": 248, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The phone number of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 249, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The password of the user.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 250, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 251, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 97, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 252, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 97, + "character": 49 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 251, + 252 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 97, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 94, + "character": 23 + } + ] + }, + { + "id": 329, "name": "updateUser", "kind": 2048, "kindString": "Method", @@ -10372,7 +11846,7 @@ }, "signatures": [ { - "id": 288, + "id": 330, "name": "updateUser", "kind": 4096, "kindString": "Call signature", @@ -10384,7 +11858,7 @@ }, "parameters": [ { - "id": 289, + "id": 331, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -10400,7 +11874,7 @@ } }, { - "id": 290, + "id": 332, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -10412,7 +11886,7 @@ }, "type": { "type": "reference", - "id": 77, + "id": 82, "name": "UserAttributes" } } @@ -10423,7 +11897,7 @@ { "type": "reflection", "declaration": { - "id": 291, + "id": 333, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10432,7 +11906,7 @@ }, "children": [ { - "id": 293, + "id": 335, "name": "data", "kind": 32, "kindString": "Variable", @@ -10442,7 +11916,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 235, + "line": 316, "character": 38 } ], @@ -10462,7 +11936,7 @@ } }, { - "id": 294, + "id": 336, "name": "error", "kind": 32, "kindString": "Variable", @@ -10472,7 +11946,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 235, + "line": 316, "character": 58 } ], @@ -10491,7 +11965,7 @@ } }, { - "id": 292, + "id": 334, "name": "user", "kind": 32, "kindString": "Variable", @@ -10501,7 +11975,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 235, + "line": 316, "character": 19 } ], @@ -10526,16 +12000,16 @@ "title": "Variables", "kind": 32, "children": [ - 293, - 294, - 292 + 335, + 336, + 334 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 235, + "line": 316, "character": 13 } ] @@ -10549,10 +12023,245 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 232, + "line": 313, "character": 18 } ] + }, + { + "id": 277, + "name": "verifyMobileOTP", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 278, + "name": "verifyMobileOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Send User supplied Mobile OTP to be verified" + }, + "parameters": [ + { + "id": 279, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number WITH international prefix" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 280, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "token that user was sent to their mobile phone" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 281, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 282, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 283, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 178, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 283 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 177, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 284, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 285, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 180, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 286, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 180, + "character": 49 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 285, + 286 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 180, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 174, + "character": 23 + } + ] } ], "groups": [ @@ -10560,36 +12269,41 @@ "title": "Constructors", "kind": 512, "children": [ - 205 + 216 ] }, { "title": "Properties", "kind": 1024, "children": [ - 204, - 200, - 199 + 215, + 211, + 210 ] }, { "title": "Methods", "kind": 2048, "children": [ - 264, - 295, - 273, - 280, - 313, - 245, - 303, - 254, - 235, - 309, - 225, - 268, - 215, - 287 + 306, + 337, + 362, + 315, + 322, + 355, + 287, + 345, + 296, + 260, + 270, + 351, + 236, + 253, + 310, + 226, + 246, + 329, + 277 ] } ], @@ -10607,7 +12321,7 @@ "title": "Classes", "kind": 128, "children": [ - 198 + 209 ] } ], @@ -10620,7 +12334,7 @@ ] }, { - "id": 323, + "id": 377, "name": "\"GoTrueClient\"", "kind": 1, "kindString": "Module", @@ -10630,7 +12344,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts", "children": [ { - "id": 324, + "id": 378, "name": "GoTrueClient", "kind": 128, "kindString": "Class", @@ -10639,7 +12353,7 @@ }, "children": [ { - "id": 333, + "id": 387, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -10651,7 +12365,7 @@ }, "signatures": [ { - "id": 334, + "id": 388, "name": "new GoTrueClient", "kind": 16384, "kindString": "Constructor signature", @@ -10663,7 +12377,7 @@ }, "parameters": [ { - "id": 335, + "id": 389, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -10673,7 +12387,7 @@ "type": { "type": "reflection", "declaration": { - "id": 336, + "id": 390, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10682,7 +12396,7 @@ }, "children": [ { - "id": 343, + "id": 397, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -10696,7 +12410,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 60, + "line": 61, "character": 20 } ], @@ -10719,7 +12433,7 @@ } }, { - "id": 346, + "id": 400, "name": "cookieOptions", "kind": 32, "kindString": "Variable", @@ -10730,18 +12444,18 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 63, + "line": 64, "character": 17 } ], "type": { "type": "reference", - "id": 92, + "id": 97, "name": "CookieOptions" } }, { - "id": 342, + "id": 396, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -10755,7 +12469,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 59, + "line": 60, "character": 22 } ], @@ -10778,7 +12492,7 @@ } }, { - "id": 338, + "id": 392, "name": "headers", "kind": 32, "kindString": "Variable", @@ -10792,7 +12506,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 58, + "line": 59, "character": 11 } ], @@ -10806,7 +12520,7 @@ { "type": "reflection", "declaration": { - "id": 339, + "id": 393, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10815,7 +12529,7 @@ }, "indexSignature": [ { - "id": 340, + "id": 394, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -10824,7 +12538,7 @@ }, "parameters": [ { - "id": 341, + "id": 395, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -10849,7 +12563,7 @@ } }, { - "id": 345, + "id": 399, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -10863,7 +12577,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 62, + "line": 63, "character": 16 } ], @@ -10873,7 +12587,7 @@ } }, { - "id": 344, + "id": 398, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -10887,7 +12601,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 61, + "line": 62, "character": 18 } ], @@ -10910,7 +12624,7 @@ } }, { - "id": 337, + "id": 391, "name": "url", "kind": 32, "kindString": "Variable", @@ -10924,7 +12638,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 57, + "line": 58, "character": 7 } ], @@ -10948,20 +12662,20 @@ "title": "Variables", "kind": 32, "children": [ - 343, - 346, - 342, - 338, - 345, - 344, - 337 + 397, + 400, + 396, + 392, + 399, + 398, + 391 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 56, + "line": 57, "character": 22 } ] @@ -10971,7 +12685,7 @@ ], "type": { "type": "reference", - "id": 324, + "id": 378, "name": "GoTrueClient" } } @@ -10979,13 +12693,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 45, + "line": 46, "character": 61 } ] }, { - "id": 325, + "id": 379, "name": "api", "kind": 1024, "kindString": "Property", @@ -10998,18 +12712,18 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 31, + "line": 32, "character": 5 } ], "type": { "type": "reference", - "id": 198, + "id": 209, "name": "GoTrueApi" } }, { - "id": 328, + "id": 382, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -11020,7 +12734,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 41, + "line": 42, "character": 28 } ], @@ -11030,7 +12744,7 @@ } }, { - "id": 327, + "id": 381, "name": "currentSession", "kind": 1024, "kindString": "Property", @@ -11044,7 +12758,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 39, + "line": 40, "character": 26 } ], @@ -11064,7 +12778,7 @@ } }, { - "id": 326, + "id": 380, "name": "currentUser", "kind": 1024, "kindString": "Property", @@ -11078,7 +12792,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 35, + "line": 36, "character": 23 } ], @@ -11098,7 +12812,7 @@ } }, { - "id": 330, + "id": 384, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -11109,7 +12823,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 43, + "line": 44, "character": 24 } ], @@ -11119,7 +12833,7 @@ } }, { - "id": 329, + "id": 383, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -11130,7 +12844,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 42, + "line": 43, "character": 26 } ], @@ -11140,7 +12854,7 @@ } }, { - "id": 332, + "id": 386, "name": "refreshTokenTimer", "kind": 1024, "kindString": "Property", @@ -11152,7 +12866,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 45, + "line": 46, "character": 29 } ], @@ -11171,7 +12885,7 @@ } }, { - "id": 331, + "id": 385, "name": "stateChangeEmitters", "kind": 1024, "kindString": "Property", @@ -11182,7 +12896,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 44, + "line": 45, "character": 31 } ], @@ -11195,7 +12909,7 @@ }, { "type": "reference", - "id": 82, + "id": 87, "name": "Subscription" } ], @@ -11204,7 +12918,7 @@ "defaultValue": "new Map()" }, { - "id": 468, + "id": 552, "name": "_callRefreshToken", "kind": 2048, "kindString": "Method", @@ -11214,7 +12928,7 @@ }, "signatures": [ { - "id": 469, + "id": 553, "name": "_callRefreshToken", "kind": 4096, "kindString": "Call signature", @@ -11223,7 +12937,7 @@ }, "parameters": [ { - "id": 470, + "id": 554, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -11255,7 +12969,7 @@ { "type": "reflection", "declaration": { - "id": 471, + "id": 555, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11264,7 +12978,7 @@ }, "children": [ { - "id": 472, + "id": 556, "name": "data", "kind": 32, "kindString": "Variable", @@ -11274,7 +12988,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 532, + "line": 610, "character": 19 } ], @@ -11285,7 +12999,7 @@ } }, { - "id": 473, + "id": 557, "name": "error", "kind": 32, "kindString": "Variable", @@ -11295,7 +13009,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 532, + "line": 610, "character": 26 } ], @@ -11311,8 +13025,8 @@ "title": "Variables", "kind": 32, "children": [ - 472, - 473 + 556, + 557 ] } ] @@ -11321,7 +13035,7 @@ { "type": "reflection", "declaration": { - "id": 474, + "id": 558, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11330,7 +13044,7 @@ }, "children": [ { - "id": 475, + "id": 559, "name": "data", "kind": 32, "kindString": "Variable", @@ -11340,7 +13054,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 534, + "line": 612, "character": 19 } ], @@ -11351,7 +13065,7 @@ "defaultValue": "null" }, { - "id": 476, + "id": 560, "name": "error", "kind": 32, "kindString": "Variable", @@ -11361,7 +13075,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 534, + "line": 612, "character": 32 } ], @@ -11376,8 +13090,8 @@ "title": "Variables", "kind": 32, "children": [ - 475, - 476 + 559, + 560 ] } ] @@ -11393,13 +13107,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 520, + "line": 598, "character": 33 } ] }, { - "id": 428, + "id": 498, "name": "_handleEmailSignIn", "kind": 2048, "kindString": "Method", @@ -11409,7 +13123,7 @@ }, "signatures": [ { - "id": 429, + "id": 499, "name": "_handleEmailSignIn", "kind": 4096, "kindString": "Call signature", @@ -11418,7 +13132,7 @@ }, "parameters": [ { - "id": 430, + "id": 500, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -11431,7 +13145,7 @@ } }, { - "id": 431, + "id": 501, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -11444,7 +13158,7 @@ } }, { - "id": 432, + "id": 502, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11454,7 +13168,7 @@ "type": { "type": "reflection", "declaration": { - "id": 433, + "id": 503, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11463,7 +13177,7 @@ }, "children": [ { - "id": 434, + "id": 504, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -11474,7 +13188,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 411, + "line": 473, "character": 16 } ], @@ -11498,14 +13212,14 @@ "title": "Variables", "kind": 32, "children": [ - 434 + 504 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 410, + "line": 472, "character": 12 } ] @@ -11523,7 +13237,7 @@ { "type": "reflection", "declaration": { - "id": 435, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11532,7 +13246,7 @@ }, "children": [ { - "id": 436, + "id": 506, "name": "data", "kind": 32, "kindString": "Variable", @@ -11542,7 +13256,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 425, + "line": 487, "character": 19 } ], @@ -11553,7 +13267,7 @@ } }, { - "id": 439, + "id": 509, "name": "error", "kind": 32, "kindString": "Variable", @@ -11563,7 +13277,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 425, + "line": 487, "character": 58 } ], @@ -11574,7 +13288,7 @@ "defaultValue": "null" }, { - "id": 438, + "id": 508, "name": "session", "kind": 32, "kindString": "Variable", @@ -11584,7 +13298,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 425, + "line": 487, "character": 45 } ], @@ -11596,7 +13310,7 @@ "defaultValue": "data" }, { - "id": 437, + "id": 507, "name": "user", "kind": 32, "kindString": "Variable", @@ -11606,7 +13320,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 425, + "line": 487, "character": 25 } ], @@ -11632,10 +13346,10 @@ "title": "Variables", "kind": 32, "children": [ - 436, - 439, - 438, - 437 + 506, + 509, + 508, + 507 ] } ] @@ -11644,7 +13358,7 @@ { "type": "reflection", "declaration": { - "id": 440, + "id": 510, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11653,7 +13367,7 @@ }, "children": [ { - "id": 441, + "id": 511, "name": "data", "kind": 32, "kindString": "Variable", @@ -11663,7 +13377,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 427, + "line": 489, "character": 19 } ], @@ -11674,7 +13388,7 @@ "defaultValue": "null" }, { - "id": 444, + "id": 514, "name": "error", "kind": 32, "kindString": "Variable", @@ -11684,7 +13398,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 427, + "line": 489, "character": 59 } ], @@ -11694,7 +13408,7 @@ } }, { - "id": 443, + "id": 513, "name": "session", "kind": 32, "kindString": "Variable", @@ -11704,7 +13418,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 427, + "line": 489, "character": 46 } ], @@ -11715,7 +13429,7 @@ "defaultValue": "null" }, { - "id": 442, + "id": 512, "name": "user", "kind": 32, "kindString": "Variable", @@ -11725,7 +13439,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 427, + "line": 489, "character": 31 } ], @@ -11741,10 +13455,10 @@ "title": "Variables", "kind": 32, "children": [ - 441, - 444, - 443, - 442 + 511, + 514, + 513, + 512 ] } ] @@ -11760,13 +13474,310 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 407, + "line": 469, "character": 34 } ] }, { - "id": 445, + "id": 515, + "name": "_handlePhoneSignIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 516, + "name": "_handlePhoneSignIn", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 517, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 518, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 519, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 520, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 503, + "character": 19 + } + ], + "type": { + "type": "reference", + "id": 50, + "name": "Session" + } + }, + { + "id": 523, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 503, + "character": 58 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 522, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 503, + "character": 45 + } + ], + "type": { + "type": "reference", + "id": 50, + "name": "Session" + }, + "defaultValue": "data" + }, + { + "id": 521, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 503, + "character": 25 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "reference", + "id": 58, + "name": "User" + } + ] + }, + "defaultValue": "data.user" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 520, + 523, + 522, + 521 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 524, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 525, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 505, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 528, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 505, + "character": 59 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 527, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 505, + "character": 46 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 526, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 505, + "character": 31 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 525, + 528, + 527, + 526 + ] + } + ] + } + } + ] + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 493, + "character": 34 + } + ] + }, + { + "id": 529, "name": "_handleProviderSignIn", "kind": 2048, "kindString": "Method", @@ -11776,7 +13787,7 @@ }, "signatures": [ { - "id": 446, + "id": 530, "name": "_handleProviderSignIn", "kind": 4096, "kindString": "Call signature", @@ -11785,7 +13796,7 @@ }, "parameters": [ { - "id": 447, + "id": 531, "name": "provider", "kind": 32768, "kindString": "Parameter", @@ -11794,12 +13805,12 @@ }, "type": { "type": "reference", - "id": 103, + "id": 112, "name": "Provider" } }, { - "id": 448, + "id": 532, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11809,7 +13820,7 @@ "type": { "type": "reflection", "declaration": { - "id": 449, + "id": 533, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11818,7 +13829,7 @@ }, "children": [ { - "id": 450, + "id": 534, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -11829,7 +13840,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 434, + "line": 512, "character": 16 } ], @@ -11848,7 +13859,7 @@ } }, { - "id": 451, + "id": 535, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -11859,7 +13870,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 435, + "line": 513, "character": 12 } ], @@ -11883,15 +13894,15 @@ "title": "Variables", "kind": 32, "children": [ - 450, - 451 + 534, + 535 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 433, + "line": 511, "character": 12 } ] @@ -11906,7 +13917,7 @@ { "type": "reflection", "declaration": { - "id": 452, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11915,7 +13926,7 @@ }, "children": [ { - "id": 455, + "id": 539, "name": "data", "kind": 32, "kindString": "Variable", @@ -11925,7 +13936,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 34 } ], @@ -11936,7 +13947,7 @@ "defaultValue": "null" }, { - "id": 458, + "id": 542, "name": "error", "kind": 32, "kindString": "Variable", @@ -11946,7 +13957,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 74 } ], @@ -11957,7 +13968,7 @@ "defaultValue": "null" }, { - "id": 453, + "id": 537, "name": "provider", "kind": 32, "kindString": "Variable", @@ -11967,18 +13978,18 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 23 } ], "type": { "type": "reference", - "id": 103, + "id": 112, "name": "Provider" } }, { - "id": 456, + "id": 540, "name": "session", "kind": 32, "kindString": "Variable", @@ -11988,7 +13999,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 49 } ], @@ -11999,7 +14010,7 @@ "defaultValue": "null" }, { - "id": 454, + "id": 538, "name": "url", "kind": 32, "kindString": "Variable", @@ -12009,7 +14020,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 28 } ], @@ -12019,7 +14030,7 @@ } }, { - "id": 457, + "id": 541, "name": "user", "kind": 32, "kindString": "Variable", @@ -12029,7 +14040,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 61 } ], @@ -12045,12 +14056,12 @@ "title": "Variables", "kind": 32, "children": [ - 455, - 458, - 453, - 456, - 454, - 457 + 539, + 542, + 537, + 540, + 538, + 541 ] } ] @@ -12059,7 +14070,7 @@ { "type": "reflection", "declaration": { - "id": 459, + "id": 543, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12068,7 +14079,7 @@ }, "children": [ { - "id": 460, + "id": 544, "name": "data", "kind": 32, "kindString": "Variable", @@ -12078,7 +14089,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 452, + "line": 530, "character": 19 } ], @@ -12089,7 +14100,7 @@ "defaultValue": "null" }, { - "id": 463, + "id": 547, "name": "error", "kind": 32, "kindString": "Variable", @@ -12099,7 +14110,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 452, + "line": 530, "character": 59 } ], @@ -12109,7 +14120,7 @@ } }, { - "id": 462, + "id": 546, "name": "session", "kind": 32, "kindString": "Variable", @@ -12119,7 +14130,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 452, + "line": 530, "character": 46 } ], @@ -12130,7 +14141,7 @@ "defaultValue": "null" }, { - "id": 461, + "id": 545, "name": "user", "kind": 32, "kindString": "Variable", @@ -12140,7 +14151,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 452, + "line": 530, "character": 31 } ], @@ -12156,10 +14167,10 @@ "title": "Variables", "kind": 32, "children": [ - 460, - 463, - 462, - 461 + 544, + 547, + 546, + 545 ] } ] @@ -12172,13 +14183,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 431, + "line": 509, "character": 31 } ] }, { - "id": 477, + "id": 561, "name": "_notifyAllSubscribers", "kind": 2048, "kindString": "Method", @@ -12188,7 +14199,7 @@ }, "signatures": [ { - "id": 478, + "id": 562, "name": "_notifyAllSubscribers", "kind": 4096, "kindString": "Call signature", @@ -12197,7 +14208,7 @@ }, "parameters": [ { - "id": 479, + "id": 563, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -12206,7 +14217,7 @@ }, "type": { "type": "reference", - "id": 104, + "id": 113, "name": "AuthChangeEvent" } } @@ -12220,13 +14231,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 538, + "line": 616, "character": 31 } ] }, { - "id": 483, + "id": 567, "name": "_persistSession", "kind": 2048, "kindString": "Method", @@ -12236,7 +14247,7 @@ }, "signatures": [ { - "id": 484, + "id": 568, "name": "_persistSession", "kind": 4096, "kindString": "Call signature", @@ -12245,7 +14256,7 @@ }, "parameters": [ { - "id": 485, + "id": 569, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -12268,13 +14279,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 565, + "line": 643, "character": 25 } ] }, { - "id": 466, + "id": 550, "name": "_recoverAndRefresh", "kind": 2048, "kindString": "Method", @@ -12284,7 +14295,7 @@ }, "signatures": [ { - "id": 467, + "id": 551, "name": "_recoverAndRefresh", "kind": 4096, "kindString": "Call signature", @@ -12318,13 +14329,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 484, + "line": 562, "character": 34 } ] }, { - "id": 464, + "id": 548, "name": "_recoverSession", "kind": 2048, "kindString": "Method", @@ -12334,7 +14345,7 @@ }, "signatures": [ { - "id": 465, + "id": 549, "name": "_recoverSession", "kind": 4096, "kindString": "Call signature", @@ -12362,13 +14373,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 460, + "line": 538, "character": 25 } ] }, { - "id": 486, + "id": 570, "name": "_removeSession", "kind": 2048, "kindString": "Method", @@ -12378,7 +14389,7 @@ }, "signatures": [ { - "id": 487, + "id": 571, "name": "_removeSession", "kind": 4096, "kindString": "Call signature", @@ -12400,13 +14411,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 570, + "line": 648, "character": 30 } ] }, { - "id": 480, + "id": 564, "name": "_saveSession", "kind": 2048, "kindString": "Method", @@ -12416,7 +14427,7 @@ }, "signatures": [ { - "id": 481, + "id": 565, "name": "_saveSession", "kind": 4096, "kindString": "Call signature", @@ -12428,7 +14439,7 @@ }, "parameters": [ { - "id": 482, + "id": 566, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -12451,13 +14462,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 546, + "line": 624, "character": 22 } ] }, { - "id": 488, + "id": 572, "name": "_startAutoRefreshToken", "kind": 2048, "kindString": "Method", @@ -12467,7 +14478,7 @@ }, "signatures": [ { - "id": 489, + "id": 573, "name": "_startAutoRefreshToken", "kind": 4096, "kindString": "Call signature", @@ -12479,7 +14490,7 @@ }, "parameters": [ { - "id": 490, + "id": 574, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -12504,13 +14515,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 581, + "line": 659, "character": 32 } ] }, { - "id": 406, + "id": 476, "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", @@ -12519,7 +14530,7 @@ }, "signatures": [ { - "id": 407, + "id": 477, "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", @@ -12531,7 +14542,7 @@ }, "parameters": [ { - "id": 408, + "id": 478, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -12549,7 +14560,7 @@ { "type": "reflection", "declaration": { - "id": 409, + "id": 479, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12558,7 +14569,7 @@ }, "children": [ { - "id": 410, + "id": 480, "name": "storeSession", "kind": 32, "kindString": "Variable", @@ -12572,7 +14583,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 317, + "line": 379, "character": 16 } ], @@ -12600,7 +14611,7 @@ "title": "Variables", "kind": 32, "children": [ - 410 + 480 ] } ] @@ -12616,7 +14627,7 @@ { "type": "reflection", "declaration": { - "id": 411, + "id": 481, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12625,7 +14636,7 @@ }, "children": [ { - "id": 412, + "id": 482, "name": "data", "kind": 32, "kindString": "Variable", @@ -12635,7 +14646,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 318, + "line": 380, "character": 20 } ], @@ -12655,7 +14666,7 @@ } }, { - "id": 413, + "id": 483, "name": "error", "kind": 32, "kindString": "Variable", @@ -12665,7 +14676,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 318, + "line": 380, "character": 43 } ], @@ -12689,15 +14700,15 @@ "title": "Variables", "kind": 32, "children": [ - 412, - 413 + 482, + 483 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 318, + "line": 380, "character": 14 } ] @@ -12711,13 +14722,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 316, + "line": 378, "character": 25 } ] }, { - "id": 418, + "id": 488, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -12726,7 +14737,7 @@ }, "signatures": [ { - "id": 419, + "id": 489, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -12739,7 +14750,7 @@ }, "parameters": [ { - "id": 420, + "id": 490, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -12749,7 +14760,7 @@ "type": { "type": "reflection", "declaration": { - "id": 421, + "id": 491, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12758,7 +14769,7 @@ }, "signatures": [ { - "id": 422, + "id": 492, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -12767,7 +14778,7 @@ }, "parameters": [ { - "id": 423, + "id": 493, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -12776,12 +14787,12 @@ }, "type": { "type": "reference", - "id": 104, + "id": 113, "name": "AuthChangeEvent" } }, { - "id": 424, + "id": 494, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -12813,7 +14824,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 388, + "line": 450, "character": 13 } ] @@ -12824,7 +14835,7 @@ "type": { "type": "reflection", "declaration": { - "id": 425, + "id": 495, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12833,7 +14844,7 @@ }, "children": [ { - "id": 426, + "id": 496, "name": "data", "kind": 32, "kindString": "Variable", @@ -12843,7 +14854,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 389, + "line": 451, "character": 11 } ], @@ -12852,7 +14863,7 @@ "types": [ { "type": "reference", - "id": 82, + "id": 87, "name": "Subscription" }, { @@ -12863,7 +14874,7 @@ } }, { - "id": 427, + "id": 497, "name": "error", "kind": 32, "kindString": "Variable", @@ -12873,7 +14884,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 389, + "line": 451, "character": 39 } ], @@ -12897,15 +14908,15 @@ "title": "Variables", "kind": 32, "children": [ - 426, - 427 + 496, + 497 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 389, + "line": 451, "character": 4 } ] @@ -12916,13 +14927,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 387, + "line": 449, "character": 19 } ] }, { - "id": 384, + "id": 454, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -12931,7 +14942,7 @@ }, "signatures": [ { - "id": 385, + "id": 455, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -12947,7 +14958,7 @@ { "type": "reflection", "declaration": { - "id": 386, + "id": 456, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12956,7 +14967,7 @@ }, "children": [ { - "id": 387, + "id": 457, "name": "data", "kind": 32, "kindString": "Variable", @@ -12966,7 +14977,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 224, + "line": 286, "character": 8 } ], @@ -12986,7 +14997,7 @@ } }, { - "id": 389, + "id": 459, "name": "error", "kind": 32, "kindString": "Variable", @@ -12996,7 +15007,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 226, + "line": 288, "character": 9 } ], @@ -13015,7 +15026,7 @@ } }, { - "id": 388, + "id": 458, "name": "user", "kind": 32, "kindString": "Variable", @@ -13025,7 +15036,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 225, + "line": 287, "character": 8 } ], @@ -13050,16 +15061,16 @@ "title": "Variables", "kind": 32, "children": [ - 387, - 389, - 388 + 457, + 459, + 458 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 223, + "line": 285, "character": 34 } ] @@ -13073,13 +15084,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 223, + "line": 285, "character": 22 } ] }, { - "id": 382, + "id": 452, "name": "session", "kind": 2048, "kindString": "Method", @@ -13088,7 +15099,7 @@ }, "signatures": [ { - "id": 383, + "id": 453, "name": "session", "kind": 4096, "kindString": "Call signature", @@ -13117,13 +15128,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 216, + "line": 278, "character": 9 } ] }, { - "id": 403, + "id": 473, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -13132,7 +15143,7 @@ }, "signatures": [ { - "id": 404, + "id": 474, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -13144,7 +15155,7 @@ }, "parameters": [ { - "id": 405, + "id": 475, "name": "access_token", "kind": 32768, "kindString": "Parameter", @@ -13170,13 +15181,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 301, + "line": 363, "character": 9 } ] }, { - "id": 397, + "id": 467, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -13185,7 +15196,7 @@ }, "signatures": [ { - "id": 398, + "id": 468, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -13197,7 +15208,7 @@ }, "parameters": [ { - "id": 399, + "id": 469, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -13219,7 +15230,7 @@ { "type": "reflection", "declaration": { - "id": 400, + "id": 470, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13228,7 +15239,7 @@ }, "children": [ { - "id": 402, + "id": 472, "name": "error", "kind": 32, "kindString": "Variable", @@ -13238,7 +15249,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 273, + "line": 335, "character": 45 } ], @@ -13257,7 +15268,7 @@ } }, { - "id": 401, + "id": 471, "name": "session", "kind": 32, "kindString": "Variable", @@ -13267,7 +15278,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 273, + "line": 335, "character": 22 } ], @@ -13292,15 +15303,15 @@ "title": "Variables", "kind": 32, "children": [ - 402, - 401 + 472, + 471 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 273, + "line": 335, "character": 13 } ] @@ -13314,13 +15325,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 271, + "line": 333, "character": 18 } ] }, { - "id": 361, + "id": 416, "name": "signIn", "kind": 2048, "kindString": "Method", @@ -13329,7 +15340,7 @@ }, "signatures": [ { - "id": 362, + "id": 417, "name": "signIn", "kind": 4096, "kindString": "Call signature", @@ -13341,7 +15352,7 @@ }, "parameters": [ { - "id": 363, + "id": 418, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -13352,7 +15363,7 @@ "type": { "type": "reflection", "declaration": { - "id": 364, + "id": 419, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13361,7 +15372,7 @@ }, "children": [ { - "id": 365, + "id": 420, "name": "email", "kind": 32, "kindString": "Variable", @@ -13374,7 +15385,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 153, + "line": 158, "character": 11 } ], @@ -13393,7 +15404,7 @@ } }, { - "id": 366, + "id": 422, "name": "password", "kind": 32, "kindString": "Variable", @@ -13406,8 +15417,8 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 153, - "character": 21 + "line": 158, + "character": 28 } ], "type": { @@ -13425,7 +15436,36 @@ } }, { - "id": 368, + "id": 421, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 158, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 424, "name": "provider", "kind": 32, "kindString": "Variable", @@ -13438,8 +15478,8 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 153, - "character": 45 + "line": 158, + "character": 52 } ], "type": { @@ -13484,12 +15524,16 @@ { "type": "stringLiteral", "value": "discord" + }, + { + "type": "stringLiteral", + "value": "twitch" } ] } }, { - "id": 367, + "id": 423, "name": "refreshToken", "kind": 32, "kindString": "Variable", @@ -13502,8 +15546,8 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 153, - "character": 35 + "line": 158, + "character": 42 } ], "type": { @@ -13526,17 +15570,18 @@ "title": "Variables", "kind": 32, "children": [ - 365, - 366, - 368, - 367 + 420, + 422, + 421, + 424, + 423 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 152, + "line": 157, "character": 15 } ] @@ -13544,7 +15589,7 @@ } }, { - "id": 369, + "id": 425, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -13554,7 +15599,7 @@ "type": { "type": "reflection", "declaration": { - "id": 370, + "id": 426, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13563,7 +15608,7 @@ }, "children": [ { - "id": 371, + "id": 427, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -13574,7 +15619,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 155, + "line": 160, "character": 16 } ], @@ -13593,7 +15638,7 @@ } }, { - "id": 372, + "id": 428, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -13604,7 +15649,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 156, + "line": 161, "character": 12 } ], @@ -13628,15 +15673,15 @@ "title": "Variables", "kind": 32, "children": [ - 371, - 372 + 427, + 428 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 154, + "line": 159, "character": 12 } ] @@ -13651,7 +15696,7 @@ { "type": "reflection", "declaration": { - "id": 373, + "id": 429, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13660,7 +15705,7 @@ }, "children": [ { - "id": 379, + "id": 435, "name": "data", "kind": 32, "kindString": "Variable", @@ -13670,7 +15715,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 164, + "line": 169, "character": 8 } ], @@ -13690,7 +15735,7 @@ } }, { - "id": 378, + "id": 434, "name": "error", "kind": 32, "kindString": "Variable", @@ -13700,7 +15745,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 163, + "line": 168, "character": 9 } ], @@ -13719,7 +15764,7 @@ } }, { - "id": 376, + "id": 432, "name": "provider", "kind": 32, "kindString": "Variable", @@ -13730,18 +15775,18 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 161, + "line": 166, "character": 12 } ], "type": { "type": "reference", - "id": 103, + "id": 112, "name": "Provider" } }, { - "id": 374, + "id": 430, "name": "session", "kind": 32, "kindString": "Variable", @@ -13751,7 +15796,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 159, + "line": 164, "character": 11 } ], @@ -13771,7 +15816,7 @@ } }, { - "id": 377, + "id": 433, "name": "url", "kind": 32, "kindString": "Variable", @@ -13782,7 +15827,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 162, + "line": 167, "character": 7 } ], @@ -13801,7 +15846,7 @@ } }, { - "id": 375, + "id": 431, "name": "user", "kind": 32, "kindString": "Variable", @@ -13811,7 +15856,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 160, + "line": 165, "character": 8 } ], @@ -13836,19 +15881,19 @@ "title": "Variables", "kind": 32, "children": [ - 379, - 378, - 376, - 374, - 377, - 375 + 435, + 434, + 432, + 430, + 433, + 431 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 158, + "line": 163, "character": 13 } ] @@ -13862,13 +15907,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 152, + "line": 157, "character": 14 } ] }, { - "id": 414, + "id": 484, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -13877,7 +15922,7 @@ }, "signatures": [ { - "id": 415, + "id": 485, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -13885,7 +15930,7 @@ "isExported": true }, "comment": { - "shortText": "Inside a browser context, `signOut()` will remove extract the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", + "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n" }, "type": { @@ -13894,7 +15939,7 @@ { "type": "reflection", "declaration": { - "id": 416, + "id": 486, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13903,7 +15948,7 @@ }, "children": [ { - "id": 417, + "id": 487, "name": "error", "kind": 32, "kindString": "Variable", @@ -13913,7 +15958,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 372, + "line": 434, "character": 34 } ], @@ -13937,14 +15982,14 @@ "title": "Variables", "kind": 32, "children": [ - 417 + 487 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 372, + "line": 434, "character": 27 } ] @@ -13958,13 +16003,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 372, + "line": 434, "character": 15 } ] }, { - "id": 347, + "id": 401, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -13973,7 +16018,7 @@ }, "signatures": [ { - "id": 348, + "id": 402, "name": "signUp", "kind": 4096, "kindString": "Call signature", @@ -13985,7 +16030,7 @@ }, "parameters": [ { - "id": 349, + "id": 403, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -13996,7 +16041,7 @@ "type": { "type": "reflection", "declaration": { - "id": 350, + "id": 404, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14005,7 +16050,7 @@ }, "children": [ { - "id": 351, + "id": 405, "name": "email", "kind": 32, "kindString": "Variable", @@ -14018,7 +16063,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 97, + "line": 99, "character": 11 } ], @@ -14037,7 +16082,7 @@ } }, { - "id": 352, + "id": 406, "name": "password", "kind": 32, "kindString": "Variable", @@ -14050,7 +16095,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 97, + "line": 99, "character": 21 } ], @@ -14067,6 +16112,38 @@ } ] } + }, + { + "id": 407, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 99, + "character": 28 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } } ], "groups": [ @@ -14074,15 +16151,16 @@ "title": "Variables", "kind": 32, "children": [ - 351, - 352 + 405, + 406, + 407 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 96, + "line": 98, "character": 15 } ] @@ -14090,7 +16168,7 @@ } }, { - "id": 353, + "id": 408, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -14100,7 +16178,7 @@ "type": { "type": "reflection", "declaration": { - "id": 354, + "id": 409, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14109,7 +16187,7 @@ }, "children": [ { - "id": 355, + "id": 410, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -14120,7 +16198,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 99, + "line": 101, "character": 16 } ], @@ -14144,14 +16222,14 @@ "title": "Variables", "kind": 32, "children": [ - 355 + 410 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 98, + "line": 100, "character": 12 } ] @@ -14166,7 +16244,7 @@ { "type": "reflection", "declaration": { - "id": 356, + "id": 411, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14175,7 +16253,7 @@ }, "children": [ { - "id": 360, + "id": 415, "name": "data", "kind": 32, "kindString": "Variable", @@ -14185,7 +16263,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 105, + "line": 107, "character": 8 } ], @@ -14210,7 +16288,7 @@ } }, { - "id": 359, + "id": 414, "name": "error", "kind": 32, "kindString": "Variable", @@ -14220,7 +16298,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 104, + "line": 106, "character": 9 } ], @@ -14239,7 +16317,7 @@ } }, { - "id": 358, + "id": 413, "name": "session", "kind": 32, "kindString": "Variable", @@ -14249,7 +16327,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 103, + "line": 105, "character": 11 } ], @@ -14269,7 +16347,7 @@ } }, { - "id": 357, + "id": 412, "name": "user", "kind": 32, "kindString": "Variable", @@ -14279,7 +16357,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 102, + "line": 104, "character": 8 } ], @@ -14304,17 +16382,17 @@ "title": "Variables", "kind": 32, "children": [ - 360, - 359, - 358, - 357 + 415, + 414, + 413, + 412 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 101, + "line": 103, "character": 13 } ] @@ -14328,13 +16406,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 96, + "line": 98, "character": 14 } ] }, { - "id": 390, + "id": 460, "name": "update", "kind": 2048, "kindString": "Method", @@ -14343,7 +16421,7 @@ }, "signatures": [ { - "id": 391, + "id": 461, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -14355,7 +16433,7 @@ }, "parameters": [ { - "id": 392, + "id": 462, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -14364,7 +16442,7 @@ }, "type": { "type": "reference", - "id": 77, + "id": 82, "name": "UserAttributes" } } @@ -14375,7 +16453,7 @@ { "type": "reflection", "declaration": { - "id": 393, + "id": 463, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14384,7 +16462,7 @@ }, "children": [ { - "id": 394, + "id": 464, "name": "data", "kind": 32, "kindString": "Variable", @@ -14394,7 +16472,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 246, + "line": 308, "character": 19 } ], @@ -14414,7 +16492,7 @@ } }, { - "id": 396, + "id": 466, "name": "error", "kind": 32, "kindString": "Variable", @@ -14424,7 +16502,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 246, + "line": 308, "character": 58 } ], @@ -14443,7 +16521,7 @@ } }, { - "id": 395, + "id": 465, "name": "user", "kind": 32, "kindString": "Variable", @@ -14453,7 +16531,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 246, + "line": 308, "character": 38 } ], @@ -14478,16 +16556,16 @@ "title": "Variables", "kind": 32, "children": [ - 394, - 396, - 395 + 464, + 466, + 465 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 246, + "line": 308, "character": 13 } ] @@ -14501,13 +16579,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 244, + "line": 306, "character": 14 } ] }, { - "id": 380, + "id": 450, "name": "user", "kind": 2048, "kindString": "Method", @@ -14516,7 +16594,7 @@ }, "signatures": [ { - "id": 381, + "id": 451, "name": "user", "kind": 4096, "kindString": "Call signature", @@ -14546,10 +16624,362 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 209, + "line": 271, "character": 6 } ] + }, + { + "id": 436, + "name": "verifyOTP", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 437, + "name": "verifyOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Log in a user given a User supplied OTP received via mobile." + }, + "parameters": [ + { + "id": 438, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 439, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 440, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 223, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 441, + "name": "token", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's password." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 223, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 440, + 441 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 222, + "character": 18 + } + ] + } + } + }, + { + "id": 442, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 443, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 444, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 225, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 444 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 224, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 445, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 449, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 231, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 448, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 230, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 447, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 229, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 446, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 228, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 449, + 448, + 447, + 446 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 227, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 222, + "character": 17 + } + ] } ], "groups": [ @@ -14557,61 +16987,63 @@ "title": "Constructors", "kind": 512, "children": [ - 333 + 387 ] }, { "title": "Properties", "kind": 1024, "children": [ - 325, - 328, - 327, - 326, - 330, - 329, - 332, - 331 + 379, + 382, + 381, + 380, + 384, + 383, + 386, + 385 ] }, { "title": "Methods", "kind": 2048, "children": [ - 468, - 428, - 445, - 477, - 483, - 466, - 464, - 486, - 480, + 552, + 498, + 515, + 529, + 561, + 567, + 550, + 548, + 570, + 564, + 572, + 476, 488, - 406, - 418, - 384, - 382, - 403, - 397, - 361, - 414, - 347, - 390, - 380 + 454, + 452, + 473, + 467, + 416, + 484, + 401, + 460, + 450, + 436 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 26, + "line": 27, "character": 33 } ] }, { - "id": 491, + "id": 575, "name": "DEFAULT_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -14620,7 +17052,7 @@ }, "children": [ { - "id": 493, + "id": 577, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -14628,7 +17060,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 20, + "line": 21, "character": 18 } ], @@ -14639,7 +17071,7 @@ "defaultValue": "true" }, { - "id": 496, + "id": 580, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -14647,7 +17079,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 23, + "line": 24, "character": 20 } ], @@ -14658,7 +17090,7 @@ "defaultValue": "true" }, { - "id": 497, + "id": 581, "name": "headers", "kind": 32, "kindString": "Variable", @@ -14666,24 +17098,54 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 24, + "line": 25, "character": 9 } ], "type": { "type": "reflection", "declaration": { - "id": 498, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", - "flags": {} + "flags": {}, + "children": [ + { + "id": 583, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 4, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`gotrue-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 583 + ] + } + ] } }, "defaultValue": "DEFAULT_HEADERS" }, { - "id": 495, + "id": 579, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -14691,7 +17153,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 22, + "line": 23, "character": 14 } ], @@ -14702,7 +17164,7 @@ "defaultValue": "globalThis.localStorage" }, { - "id": 494, + "id": 578, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -14710,7 +17172,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 21, + "line": 22, "character": 16 } ], @@ -14721,7 +17183,7 @@ "defaultValue": "true" }, { - "id": 492, + "id": 576, "name": "url", "kind": 32, "kindString": "Variable", @@ -14729,7 +17191,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 19, + "line": 20, "character": 5 } ], @@ -14745,19 +17207,19 @@ "title": "Variables", "kind": 32, "children": [ - 493, - 496, - 497, - 495, - 494, - 492 + 577, + 580, + 581, + 579, + 578, + 576 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 18, + "line": 19, "character": 21 } ], @@ -14772,14 +17234,14 @@ "title": "Classes", "kind": 128, "children": [ - 324 + 378 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 491 + 575 ] } ], @@ -14792,7 +17254,7 @@ ] }, { - "id": 499, + "id": 584, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -14802,37 +17264,37 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts", "children": [ { - "id": 501, + "id": 586, "name": "AuthChangeEvent", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 104 + "target": 113 }, { - "id": 506, + "id": 591, "name": "CookieOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 92 + "target": 97 }, { - "id": 500, + "id": 585, "name": "Provider", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 103 + "target": 112 }, { - "id": 502, + "id": 587, "name": "Session", "kind": 16777216, "kindString": "Reference", @@ -14842,17 +17304,17 @@ "target": 50 }, { - "id": 505, + "id": 590, "name": "Subscription", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 82 + "target": 87 }, { - "id": 503, + "id": 588, "name": "User", "kind": 16777216, "kindString": "Reference", @@ -14862,24 +17324,34 @@ "target": 58 }, { - "id": 504, + "id": 589, "name": "UserAttributes", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 77 + "target": 82 }, { - "id": 507, + "id": 592, "name": "UserCredentials", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 98 + "target": 103 + }, + { + "id": 593, + "name": "VerifyOTPParams", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 109 } ], "groups": [ @@ -14887,14 +17359,15 @@ "title": "References", "kind": 16777216, "children": [ - 501, - 506, - 500, - 502, - 505, - 503, - 504, - 507 + 586, + 591, + 585, + 587, + 590, + 588, + 589, + 592, + 593 ] } ], @@ -14907,7 +17380,7 @@ ] }, { - "id": 105, + "id": 116, "name": "\"lib/constants\"", "kind": 1, "kindString": "Module", @@ -14917,7 +17390,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts", "children": [ { - "id": 107, + "id": 118, "name": "AUDIENCE", "kind": 32, "kindString": "Variable", @@ -14928,7 +17401,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 2, + "line": 3, "character": 21 } ], @@ -14939,36 +17412,7 @@ "defaultValue": "\"\"" }, { - "id": 108, - "name": "DEFAULT_HEADERS", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isConst": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 3, - "character": 28 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 109, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - } - } - } - }, - { - "id": 110, + "id": 121, "name": "EXPIRY_MARGIN", "kind": 32, "kindString": "Variable", @@ -14979,7 +17423,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 4, + "line": 5, "character": 26 } ], @@ -14990,7 +17434,7 @@ "defaultValue": "60 * 1000" }, { - "id": 106, + "id": 117, "name": "GOTRUE_URL", "kind": 32, "kindString": "Variable", @@ -15001,7 +17445,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 1, + "line": 2, "character": 23 } ], @@ -15012,7 +17456,7 @@ "defaultValue": "\"http://localhost:9999\"" }, { - "id": 111, + "id": 122, "name": "STORAGE_KEY", "kind": 32, "kindString": "Variable", @@ -15023,7 +17467,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 5, + "line": 6, "character": 24 } ], @@ -15034,7 +17478,7 @@ "defaultValue": "\"supabase.auth.token\"" }, { - "id": 112, + "id": 123, "name": "COOKIE_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -15044,7 +17488,7 @@ }, "children": [ { - "id": 115, + "id": 126, "name": "domain", "kind": 32, "kindString": "Variable", @@ -15054,7 +17498,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 9, + "line": 10, "character": 8 } ], @@ -15065,7 +17509,7 @@ "defaultValue": "\"\"" }, { - "id": 114, + "id": 125, "name": "lifetime", "kind": 32, "kindString": "Variable", @@ -15075,7 +17519,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 8, + "line": 9, "character": 10 } ], @@ -15086,7 +17530,7 @@ "defaultValue": "60 * 60 * 8" }, { - "id": 113, + "id": 124, "name": "name", "kind": 32, "kindString": "Variable", @@ -15096,7 +17540,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 7, + "line": 8, "character": 6 } ], @@ -15107,7 +17551,7 @@ "defaultValue": "\"sb:token\"" }, { - "id": 116, + "id": 127, "name": "path", "kind": 32, "kindString": "Variable", @@ -15117,7 +17561,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 10, + "line": 11, "character": 6 } ], @@ -15128,7 +17572,7 @@ "defaultValue": "\"/\"" }, { - "id": 117, + "id": 128, "name": "sameSite", "kind": 32, "kindString": "Variable", @@ -15138,7 +17582,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 11, + "line": 12, "character": 10 } ], @@ -15154,18 +17598,18 @@ "title": "Variables", "kind": 32, "children": [ - 115, - 114, - 113, - 116, - 117 + 126, + 125, + 124, + 127, + 128 ] } ], "sources": [ { "fileName": "lib/constants.ts", - "line": 6, + "line": 7, "character": 27 } ], @@ -15173,6 +17617,59 @@ "type": "intrinsic", "name": "object" } + }, + { + "id": 119, + "name": "DEFAULT_HEADERS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isExported": true, + "isConst": true + }, + "children": [ + { + "id": 120, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 4, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`gotrue-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 120 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 4, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } } ], "groups": [ @@ -15180,18 +17677,18 @@ "title": "Variables", "kind": 32, "children": [ - 107, - 108, - 110, - 106, - 111 + 118, + 121, + 117, + 122 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 112 + 123, + 119 ] } ], @@ -15204,7 +17701,7 @@ ] }, { - "id": 118, + "id": 129, "name": "\"lib/cookies\"", "kind": 1, "kindString": "Module", @@ -15214,7 +17711,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts", "children": [ { - "id": 119, + "id": 130, "name": "Cookie", "kind": 4194304, "kindString": "Type alias", @@ -15229,14 +17726,14 @@ "type": { "type": "reflection", "declaration": { - "id": 120, + "id": 131, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 124, + "id": 135, "name": "domain", "kind": 32, "kindString": "Variable", @@ -15265,7 +17762,7 @@ } }, { - "id": 123, + "id": 134, "name": "maxAge", "kind": 32, "kindString": "Variable", @@ -15283,7 +17780,7 @@ } }, { - "id": 121, + "id": 132, "name": "name", "kind": 32, "kindString": "Variable", @@ -15301,7 +17798,7 @@ } }, { - "id": 125, + "id": 136, "name": "path", "kind": 32, "kindString": "Variable", @@ -15330,7 +17827,7 @@ } }, { - "id": 126, + "id": 137, "name": "sameSite", "kind": 32, "kindString": "Variable", @@ -15359,7 +17856,7 @@ } }, { - "id": 122, + "id": 133, "name": "value", "kind": 32, "kindString": "Variable", @@ -15382,12 +17879,12 @@ "title": "Variables", "kind": 32, "children": [ - 124, - 123, - 121, - 125, - 126, - 122 + 135, + 134, + 132, + 136, + 137, + 133 ] } ], @@ -15402,7 +17899,7 @@ } }, { - "id": 157, + "id": 168, "name": "deleteCookie", "kind": 64, "kindString": "Function", @@ -15411,7 +17908,7 @@ }, "signatures": [ { - "id": 158, + "id": 169, "name": "deleteCookie", "kind": 4096, "kindString": "Call signature", @@ -15420,7 +17917,7 @@ }, "parameters": [ { - "id": 159, + "id": 170, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -15433,7 +17930,7 @@ } }, { - "id": 160, + "id": 171, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -15446,7 +17943,7 @@ } }, { - "id": 161, + "id": 172, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -15474,14 +17971,14 @@ ] }, { - "id": 140, + "id": 151, "name": "isSecureEnvironment", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { - "id": 141, + "id": 152, "name": "isSecureEnvironment", "kind": 4096, "kindString": "Call signature", @@ -15491,7 +17988,7 @@ }, "parameters": [ { - "id": 142, + "id": 153, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -15517,14 +18014,14 @@ ] }, { - "id": 127, + "id": 138, "name": "serialize", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { - "id": 128, + "id": 139, "name": "serialize", "kind": 4096, "kindString": "Call signature", @@ -15534,7 +18031,7 @@ }, "parameters": [ { - "id": 129, + "id": 140, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -15545,7 +18042,7 @@ } }, { - "id": 130, + "id": 141, "name": "val", "kind": 32768, "kindString": "Parameter", @@ -15556,7 +18053,7 @@ } }, { - "id": 131, + "id": 142, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -15564,14 +18061,14 @@ "type": { "type": "reflection", "declaration": { - "id": 132, + "id": 143, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 134, + "id": 145, "name": "domain", "kind": 32, "kindString": "Variable", @@ -15589,7 +18086,7 @@ } }, { - "id": 136, + "id": 147, "name": "expires", "kind": 32, "kindString": "Variable", @@ -15607,7 +18104,7 @@ } }, { - "id": 137, + "id": 148, "name": "httpOnly", "kind": 32, "kindString": "Variable", @@ -15625,7 +18122,7 @@ } }, { - "id": 133, + "id": 144, "name": "maxAge", "kind": 32, "kindString": "Variable", @@ -15643,7 +18140,7 @@ } }, { - "id": 135, + "id": 146, "name": "path", "kind": 32, "kindString": "Variable", @@ -15661,7 +18158,7 @@ } }, { - "id": 139, + "id": 150, "name": "sameSite", "kind": 32, "kindString": "Variable", @@ -15679,7 +18176,7 @@ } }, { - "id": 138, + "id": 149, "name": "secure", "kind": 32, "kindString": "Variable", @@ -15702,13 +18199,13 @@ "title": "Variables", "kind": 32, "children": [ - 134, - 136, - 137, - 133, - 135, - 139, - 138 + 145, + 147, + 148, + 144, + 146, + 150, + 149 ] } ], @@ -15738,14 +18235,14 @@ ] }, { - "id": 143, + "id": 154, "name": "serializeCookie", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { - "id": 144, + "id": 155, "name": "serializeCookie", "kind": 4096, "kindString": "Call signature", @@ -15755,19 +18252,19 @@ }, "parameters": [ { - "id": 145, + "id": 156, "name": "cookie", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 119, + "id": 130, "name": "Cookie" } }, { - "id": 146, + "id": 157, "name": "secure", "kind": 32768, "kindString": "Parameter", @@ -15793,7 +18290,7 @@ ] }, { - "id": 152, + "id": 163, "name": "setCookie", "kind": 64, "kindString": "Function", @@ -15802,7 +18299,7 @@ }, "signatures": [ { - "id": 153, + "id": 164, "name": "setCookie", "kind": 4096, "kindString": "Call signature", @@ -15814,7 +18311,7 @@ }, "parameters": [ { - "id": 154, + "id": 165, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -15827,7 +18324,7 @@ } }, { - "id": 155, + "id": 166, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -15840,7 +18337,7 @@ } }, { - "id": 156, + "id": 167, "name": "cookie", "kind": 32768, "kindString": "Parameter", @@ -15849,7 +18346,7 @@ }, "type": { "type": "reference", - "id": 119, + "id": 130, "name": "Cookie" } } @@ -15869,7 +18366,7 @@ ] }, { - "id": 147, + "id": 158, "name": "setCookies", "kind": 64, "kindString": "Function", @@ -15878,7 +18375,7 @@ }, "signatures": [ { - "id": 148, + "id": 159, "name": "setCookies", "kind": 4096, "kindString": "Call signature", @@ -15890,7 +18387,7 @@ }, "parameters": [ { - "id": 149, + "id": 160, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -15903,7 +18400,7 @@ } }, { - "id": 150, + "id": 161, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -15916,7 +18413,7 @@ } }, { - "id": 151, + "id": 162, "name": "cookies", "kind": 32768, "kindString": "Parameter", @@ -15928,7 +18425,7 @@ "typeArguments": [ { "type": "reference", - "id": 119, + "id": 130, "name": "Cookie" } ], @@ -15956,19 +18453,19 @@ "title": "Type aliases", "kind": 4194304, "children": [ - 119 + 130 ] }, { "title": "Functions", "kind": 64, "children": [ - 157, - 140, - 127, - 143, - 152, - 147 + 168, + 151, + 138, + 154, + 163, + 158 ] } ], @@ -16808,7 +19305,7 @@ ] }, { - "id": 162, + "id": 173, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", @@ -16818,7 +19315,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts", "children": [ { - "id": 163, + "id": 174, "name": "LocalStorage", "kind": 128, "kindString": "Class", @@ -16827,7 +19324,7 @@ }, "indexSignature": [ { - "id": 165, + "id": 176, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -16836,7 +19333,7 @@ }, "parameters": [ { - "id": 166, + "id": 177, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -16857,7 +19354,7 @@ ], "children": [ { - "id": 168, + "id": 179, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -16866,7 +19363,7 @@ }, "signatures": [ { - "id": 169, + "id": 180, "name": "new LocalStorage", "kind": 16384, "kindString": "Constructor signature", @@ -16875,7 +19372,7 @@ }, "parameters": [ { - "id": 170, + "id": 181, "name": "localStorage", "kind": 32768, "kindString": "Parameter", @@ -16890,7 +19387,7 @@ ], "type": { "type": "reference", - "id": 163, + "id": 174, "name": "LocalStorage" } } @@ -16904,7 +19401,7 @@ ] }, { - "id": 167, + "id": 178, "name": "length", "kind": 1024, "kindString": "Property", @@ -16924,7 +19421,7 @@ } }, { - "id": 164, + "id": 175, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -16944,7 +19441,7 @@ } }, { - "id": 171, + "id": 182, "name": "clear", "kind": 2048, "kindString": "Method", @@ -16953,7 +19450,7 @@ }, "signatures": [ { - "id": 172, + "id": 183, "name": "clear", "kind": 4096, "kindString": "Call signature", @@ -16975,7 +19472,7 @@ ] }, { - "id": 180, + "id": 191, "name": "getItem", "kind": 2048, "kindString": "Method", @@ -16984,7 +19481,7 @@ }, "signatures": [ { - "id": 181, + "id": 192, "name": "getItem", "kind": 4096, "kindString": "Call signature", @@ -16993,7 +19490,7 @@ }, "parameters": [ { - "id": 182, + "id": 193, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -17030,7 +19527,7 @@ ] }, { - "id": 173, + "id": 184, "name": "key", "kind": 2048, "kindString": "Method", @@ -17039,7 +19536,7 @@ }, "signatures": [ { - "id": 174, + "id": 185, "name": "key", "kind": 4096, "kindString": "Call signature", @@ -17048,7 +19545,7 @@ }, "parameters": [ { - "id": 175, + "id": 186, "name": "index", "kind": 32768, "kindString": "Parameter", @@ -17085,7 +19582,7 @@ ] }, { - "id": 183, + "id": 194, "name": "removeItem", "kind": 2048, "kindString": "Method", @@ -17094,7 +19591,7 @@ }, "signatures": [ { - "id": 184, + "id": 195, "name": "removeItem", "kind": 4096, "kindString": "Call signature", @@ -17103,7 +19600,7 @@ }, "parameters": [ { - "id": 185, + "id": 196, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -17131,7 +19628,7 @@ ] }, { - "id": 176, + "id": 187, "name": "setItem", "kind": 2048, "kindString": "Method", @@ -17140,7 +19637,7 @@ }, "signatures": [ { - "id": 177, + "id": 188, "name": "setItem", "kind": 4096, "kindString": "Call signature", @@ -17149,7 +19646,7 @@ }, "parameters": [ { - "id": 178, + "id": 189, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -17162,7 +19659,7 @@ } }, { - "id": 179, + "id": 190, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -17195,26 +19692,26 @@ "title": "Constructors", "kind": 512, "children": [ - 168 + 179 ] }, { "title": "Properties", "kind": 1024, "children": [ - 167, - 164 + 178, + 175 ] }, { "title": "Methods", "kind": 2048, "children": [ - 171, - 180, - 173, - 183, - 176 + 182, + 191, + 184, + 194, + 187 ] } ], @@ -17233,7 +19730,7 @@ ] }, { - "id": 186, + "id": 197, "name": "expiresAt", "kind": 64, "kindString": "Function", @@ -17242,7 +19739,7 @@ }, "signatures": [ { - "id": 187, + "id": 198, "name": "expiresAt", "kind": 4096, "kindString": "Call signature", @@ -17251,7 +19748,7 @@ }, "parameters": [ { - "id": 188, + "id": 199, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -17279,7 +19776,7 @@ ] }, { - "id": 193, + "id": 204, "name": "getParameterByName", "kind": 64, "kindString": "Function", @@ -17288,7 +19785,7 @@ }, "signatures": [ { - "id": 194, + "id": 205, "name": "getParameterByName", "kind": 4096, "kindString": "Call signature", @@ -17297,7 +19794,7 @@ }, "parameters": [ { - "id": 195, + "id": 206, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -17310,7 +19807,7 @@ } }, { - "id": 196, + "id": 207, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -17357,7 +19854,7 @@ ] }, { - "id": 191, + "id": 202, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -17367,7 +19864,7 @@ }, "signatures": [ { - "id": 192, + "id": 203, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -17389,7 +19886,7 @@ ] }, { - "id": 189, + "id": 200, "name": "uuid", "kind": 64, "kindString": "Function", @@ -17398,7 +19895,7 @@ }, "signatures": [ { - "id": 190, + "id": 201, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -17425,17 +19922,17 @@ "title": "Classes", "kind": 128, "children": [ - 163 + 174 ] }, { "title": "Functions", "kind": 64, "children": [ - 186, - 193, - 191, - 189 + 197, + 204, + 202, + 200 ] } ], @@ -17448,7 +19945,7 @@ ] }, { - "id": 320, + "id": 374, "name": "\"lib/polyfills\"", "kind": 1, "kindString": "Module", @@ -17458,7 +19955,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts", "children": [ { - "id": 321, + "id": 375, "name": "polyfillGlobalThis", "kind": 64, "kindString": "Function", @@ -17467,7 +19964,7 @@ }, "signatures": [ { - "id": 322, + "id": 376, "name": "polyfillGlobalThis", "kind": 4096, "kindString": "Call signature", @@ -17497,7 +19994,7 @@ "title": "Functions", "kind": 64, "children": [ - 321 + 375 ] } ], @@ -17520,7 +20017,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts", "children": [ { - "id": 92, + "id": 97, "name": "CookieOptions", "kind": 256, "kindString": "Interface", @@ -17529,7 +20026,7 @@ }, "children": [ { - "id": 95, + "id": 100, "name": "domain", "kind": 1024, "kindString": "Property", @@ -17540,7 +20037,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 85, + "line": 100, "character": 8 } ], @@ -17559,7 +20056,7 @@ } }, { - "id": 94, + "id": 99, "name": "lifetime", "kind": 1024, "kindString": "Property", @@ -17570,7 +20067,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 83, + "line": 98, "character": 10 } ], @@ -17589,7 +20086,7 @@ } }, { - "id": 93, + "id": 98, "name": "name", "kind": 1024, "kindString": "Property", @@ -17600,7 +20097,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 81, + "line": 96, "character": 6 } ], @@ -17619,7 +20116,7 @@ } }, { - "id": 96, + "id": 101, "name": "path", "kind": 1024, "kindString": "Property", @@ -17630,7 +20127,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 86, + "line": 101, "character": 6 } ], @@ -17649,7 +20146,7 @@ } }, { - "id": 97, + "id": 102, "name": "sameSite", "kind": 1024, "kindString": "Property", @@ -17660,7 +20157,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 88, + "line": 103, "character": 10 } ], @@ -17684,18 +20181,18 @@ "title": "Properties", "kind": 1024, "children": [ - 95, - 94, - 93, - 96, - 97 + 100, + 99, + 98, + 101, + 102 ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 79, + "line": 94, "character": 30 } ] @@ -17720,7 +20217,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 12, + "line": 22, "character": 14 } ], @@ -17744,7 +20241,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 20, + "line": 30, "character": 12 } ], @@ -17777,7 +20274,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 16, + "line": 26, "character": 12 } ], @@ -17807,7 +20304,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 11, + "line": 21, "character": 16 } ], @@ -17837,7 +20334,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 21, + "line": 31, "character": 15 } ], @@ -17866,7 +20363,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 22, + "line": 32, "character": 12 } ], @@ -17886,7 +20383,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 23, + "line": 33, "character": 6 } ], @@ -17924,13 +20421,13 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 10, + "line": 20, "character": 24 } ] }, { - "id": 82, + "id": 87, "name": "Subscription", "kind": 256, "kindString": "Interface", @@ -17939,7 +20436,7 @@ }, "children": [ { - "id": 84, + "id": 89, "name": "callback", "kind": 1024, "kindString": "Property", @@ -17952,14 +20449,14 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 72, + "line": 87, "character": 10 } ], "type": { "type": "reflection", "declaration": { - "id": 85, + "id": 90, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -17968,7 +20465,7 @@ }, "signatures": [ { - "id": 86, + "id": 91, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -17977,7 +20474,7 @@ }, "parameters": [ { - "id": 87, + "id": 92, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -17986,12 +20483,12 @@ }, "type": { "type": "reference", - "id": 104, + "id": 113, "name": "AuthChangeEvent" } }, { - "id": 88, + "id": 93, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -18023,7 +20520,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 72, + "line": 87, "character": 11 } ] @@ -18031,7 +20528,7 @@ } }, { - "id": 83, + "id": 88, "name": "id", "kind": 1024, "kindString": "Property", @@ -18044,7 +20541,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 68, + "line": 83, "character": 4 } ], @@ -18054,7 +20551,7 @@ } }, { - "id": 89, + "id": 94, "name": "unsubscribe", "kind": 1024, "kindString": "Property", @@ -18067,14 +20564,14 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 76, + "line": 91, "character": 13 } ], "type": { "type": "reflection", "declaration": { - "id": 90, + "id": 95, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -18083,7 +20580,7 @@ }, "signatures": [ { - "id": 91, + "id": 96, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -18099,7 +20596,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 76, + "line": 91, "character": 14 } ] @@ -18112,16 +20609,16 @@ "title": "Properties", "kind": 1024, "children": [ - 84, - 83, - 89 + 89, + 88, + 94 ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 64, + "line": 79, "character": 29 } ] @@ -18135,6 +20632,36 @@ "isExported": true }, "children": [ + { + "id": 72, + "name": "action_link", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 47, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, { "id": 60, "name": "app_metadata", @@ -18146,7 +20673,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 27, + "line": 37, "character": 14 } ], @@ -18203,7 +20730,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 28, + "line": 38, "character": 12 } ], @@ -18234,7 +20761,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 27, + "line": 37, "character": 15 } ] @@ -18252,7 +20779,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 34, + "line": 44, "character": 5 } ], @@ -18273,7 +20800,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 35, + "line": 45, "character": 22 } ], @@ -18292,7 +20819,7 @@ } }, { - "id": 73, + "id": 76, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -18303,7 +20830,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 38, + "line": 51, "character": 14 } ], @@ -18322,7 +20849,7 @@ } }, { - "id": 72, + "id": 75, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -18332,7 +20859,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 37, + "line": 50, "character": 12 } ], @@ -18342,7 +20869,7 @@ } }, { - "id": 71, + "id": 73, "name": "email", "kind": 1024, "kindString": "Property", @@ -18353,7 +20880,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 36, + "line": 48, "character": 7 } ], @@ -18371,6 +20898,36 @@ ] } }, + { + "id": 77, + "name": "email_confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 52, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, { "id": 59, "name": "id", @@ -18382,7 +20939,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 26, + "line": 36, "character": 4 } ], @@ -18392,7 +20949,7 @@ } }, { - "id": 74, + "id": 79, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -18403,7 +20960,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 39, + "line": 54, "character": 17 } ], @@ -18422,7 +20979,97 @@ } }, { - "id": 75, + "id": 74, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 49, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 78, + "name": "phone_confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 53, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 71, + "name": "recovery_sent_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 46, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 80, "name": "role", "kind": 1024, "kindString": "Property", @@ -18433,7 +21080,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 40, + "line": 55, "character": 6 } ], @@ -18452,7 +21099,7 @@ } }, { - "id": 76, + "id": 81, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -18463,7 +21110,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 41, + "line": 56, "character": 12 } ], @@ -18492,7 +21139,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 31, + "line": 41, "character": 15 } ], @@ -18539,7 +21186,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 31, + "line": 41, "character": 16 } ] @@ -18552,16 +21199,21 @@ "title": "Properties", "kind": 1024, "children": [ + 72, 60, 69, 70, - 73, - 72, - 71, - 59, - 74, - 75, 76, + 75, + 73, + 77, + 59, + 79, + 74, + 78, + 71, + 80, + 81, 65 ] } @@ -18569,13 +21221,13 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 25, + "line": 35, "character": 21 } ] }, { - "id": 77, + "id": 82, "name": "UserAttributes", "kind": 256, "kindString": "Interface", @@ -18584,7 +21236,7 @@ }, "children": [ { - "id": 81, + "id": 86, "name": "data", "kind": 1024, "kindString": "Property", @@ -18598,7 +21250,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 61, + "line": 76, "character": 6 } ], @@ -18617,7 +21269,7 @@ } }, { - "id": 78, + "id": 83, "name": "email", "kind": 1024, "kindString": "Property", @@ -18631,7 +21283,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 48, + "line": 63, "character": 7 } ], @@ -18650,7 +21302,7 @@ } }, { - "id": 80, + "id": 85, "name": "email_change_token", "kind": 1024, "kindString": "Property", @@ -18664,7 +21316,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 56, + "line": 71, "character": 20 } ], @@ -18683,7 +21335,7 @@ } }, { - "id": 79, + "id": 84, "name": "password", "kind": 1024, "kindString": "Property", @@ -18697,7 +21349,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 52, + "line": 67, "character": 10 } ], @@ -18721,23 +21373,23 @@ "title": "Properties", "kind": 1024, "children": [ - 81, - 78, - 80, - 79 + 86, + 83, + 85, + 84 ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 44, + "line": 59, "character": 31 } ] }, { - "id": 98, + "id": 103, "name": "UserCredentials", "kind": 256, "kindString": "Interface", @@ -18746,7 +21398,7 @@ }, "children": [ { - "id": 99, + "id": 104, "name": "email", "kind": 1024, "kindString": "Property", @@ -18757,7 +21409,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 92, + "line": 107, "character": 7 } ], @@ -18776,7 +21428,7 @@ } }, { - "id": 100, + "id": 106, "name": "password", "kind": 1024, "kindString": "Property", @@ -18787,7 +21439,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 93, + "line": 109, "character": 10 } ], @@ -18806,7 +21458,37 @@ } }, { - "id": 102, + "id": 105, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 108, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 108, "name": "provider", "kind": 1024, "kindString": "Property", @@ -18817,18 +21499,18 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 96, + "line": 112, "character": 10 } ], "type": { "type": "reference", - "id": 103, + "id": 112, "name": "Provider" } }, { - "id": 101, + "id": 107, "name": "refreshToken", "kind": 1024, "kindString": "Property", @@ -18839,7 +21521,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 94, + "line": 110, "character": 14 } ], @@ -18863,23 +21545,92 @@ "title": "Properties", "kind": 1024, "children": [ - 99, - 100, - 102, - 101 + 104, + 106, + 105, + 108, + 107 ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 91, + "line": 106, "character": 32 } ] }, { - "id": 104, + "id": 109, + "name": "VerifyOTPParams", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 110, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 116, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 111, + "name": "token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 117, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 110, + 111 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 115, + "character": 32 + } + ] + }, + { + "id": 113, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -18889,7 +21640,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 3, + "line": 13, "character": 27 } ], @@ -18920,7 +21671,7 @@ } }, { - "id": 103, + "id": 112, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -18972,6 +21723,10 @@ { "type": "stringLiteral", "value": "discord" + }, + { + "type": "stringLiteral", + "value": "twitch" } ] } @@ -18982,20 +21737,21 @@ "title": "Interfaces", "kind": 256, "children": [ - 92, + 97, 50, - 82, + 87, 58, - 77, - 98 + 82, + 103, + 109 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 104, - 103 + 113, + 112 ] } ], @@ -19006,6 +21762,56 @@ "character": 0 } ] + }, + { + "id": 114, + "name": "\"lib/version\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/version.ts", + "children": [ + { + "id": 115, + "name": "version", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/version.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "stringLiteral", + "value": "0.0.0" + }, + "defaultValue": "\"0.0.0\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 115 + ] + } + ], + "sources": [ + { + "fileName": "lib/version.ts", + "line": 1, + "character": 0 + } + ] } ], "groups": [ @@ -19013,15 +21819,16 @@ "title": "Modules", "kind": 1, "children": [ - 197, - 323, - 499, - 105, - 118, + 208, + 377, + 584, + 116, + 129, 1, - 162, - 320, - 49 + 173, + 374, + 49, + 114 ] } ] @@ -19034,7 +21841,7 @@ "originalName": "", "children": [ { - "id": 443, + "id": 448, "name": "\"PostgrestClient\"", "kind": 1, "kindString": "Module", @@ -19044,7 +21851,7 @@ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/PostgrestClient.ts", "children": [ { - "id": 444, + "id": 449, "name": "PostgrestClient", "kind": 128, "kindString": "Class", @@ -19053,7 +21860,7 @@ }, "children": [ { - "id": 451, + "id": 456, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -19065,7 +21872,7 @@ }, "signatures": [ { - "id": 452, + "id": 457, "name": "new PostgrestClient", "kind": 16384, "kindString": "Constructor signature", @@ -19077,7 +21884,7 @@ }, "parameters": [ { - "id": 453, + "id": 458, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -19093,7 +21900,7 @@ } }, { - "id": 454, + "id": 459, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -19104,7 +21911,7 @@ "type": { "type": "reflection", "declaration": { - "id": 455, + "id": 460, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -19113,7 +21920,7 @@ }, "children": [ { - "id": 456, + "id": 461, "name": "headers", "kind": 32, "kindString": "Variable", @@ -19126,14 +21933,14 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 19, + "line": 20, "character": 13 } ], "type": { "type": "reflection", "declaration": { - "id": 457, + "id": 462, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -19142,7 +21949,7 @@ }, "indexSignature": [ { - "id": 458, + "id": 463, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -19151,7 +21958,7 @@ }, "parameters": [ { - "id": 459, + "id": 464, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -19174,7 +21981,7 @@ } }, { - "id": 460, + "id": 465, "name": "schema", "kind": 32, "kindString": "Variable", @@ -19187,7 +21994,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 19, + "line": 20, "character": 26 } ], @@ -19211,15 +22018,15 @@ "title": "Variables", "kind": 32, "children": [ - 456, - 460 + 461, + 465 ] } ], "sources": [ { "fileName": "PostgrestClient.ts", - "line": 18, + "line": 19, "character": 16 } ] @@ -19230,7 +22037,7 @@ ], "type": { "type": "reference", - "id": 444, + "id": 449, "name": "PostgrestClient" } } @@ -19238,13 +22045,13 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 8, + "line": 9, "character": 17 } ] }, { - "id": 446, + "id": 451, "name": "headers", "kind": 1024, "kindString": "Property", @@ -19254,14 +22061,14 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 7, + "line": 8, "character": 9 } ], "type": { "type": "reflection", "declaration": { - "id": 447, + "id": 452, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -19270,7 +22077,7 @@ }, "indexSignature": [ { - "id": 448, + "id": 453, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -19279,7 +22086,7 @@ }, "parameters": [ { - "id": 449, + "id": 454, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -19301,7 +22108,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 7, + "line": 8, "character": 10 } ] @@ -19309,7 +22116,7 @@ } }, { - "id": 450, + "id": 455, "name": "schema", "kind": 1024, "kindString": "Property", @@ -19320,7 +22127,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 8, + "line": 9, "character": 8 } ], @@ -19339,7 +22146,7 @@ } }, { - "id": 445, + "id": 450, "name": "url", "kind": 1024, "kindString": "Property", @@ -19349,7 +22156,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 6, + "line": 7, "character": 5 } ], @@ -19359,7 +22166,7 @@ } }, { - "id": 461, + "id": 466, "name": "auth", "kind": 2048, "kindString": "Method", @@ -19368,7 +22175,7 @@ }, "signatures": [ { - "id": 462, + "id": 467, "name": "auth", "kind": 4096, "kindString": "Call signature", @@ -19380,7 +22187,7 @@ }, "parameters": [ { - "id": 463, + "id": 468, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -19405,13 +22212,13 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 31, + "line": 32, "character": 6 } ] }, { - "id": 464, + "id": 469, "name": "from", "kind": 2048, "kindString": "Method", @@ -19420,7 +22227,7 @@ }, "signatures": [ { - "id": 465, + "id": 470, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -19432,7 +22239,7 @@ }, "typeParameter": [ { - "id": 466, + "id": 471, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -19443,7 +22250,7 @@ ], "parameters": [ { - "id": 467, + "id": 472, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -19479,13 +22286,13 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 41, + "line": 42, "character": 6 } ] }, { - "id": 468, + "id": 473, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -19494,7 +22301,7 @@ }, "signatures": [ { - "id": 469, + "id": 474, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -19502,11 +22309,11 @@ "isExported": true }, "comment": { - "shortText": "Perform a stored procedure call." + "shortText": "Perform a function call." }, "typeParameter": [ { - "id": 470, + "id": 475, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -19517,7 +22324,7 @@ ], "parameters": [ { - "id": 471, + "id": 476, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -19533,7 +22340,7 @@ } }, { - "id": 472, + "id": 477, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -19559,7 +22366,7 @@ } }, { - "id": 473, + "id": 478, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -19570,7 +22377,7 @@ "type": { "type": "reflection", "declaration": { - "id": 474, + "id": 479, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -19579,7 +22386,7 @@ }, "children": [ { - "id": 475, + "id": 480, "name": "count", "kind": 32, "kindString": "Variable", @@ -19592,7 +22399,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 57, + "line": 58, "character": 11 } ], @@ -19625,14 +22432,14 @@ "title": "Variables", "kind": 32, "children": [ - 475 + 480 ] } ], "sources": [ { "fileName": "PostgrestClient.ts", - "line": 55, + "line": 56, "character": 20 } ] @@ -19661,7 +22468,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 53, + "line": 54, "character": 5 } ] @@ -19672,32 +22479,32 @@ "title": "Constructors", "kind": 512, "children": [ - 451 + 456 ] }, { "title": "Properties", "kind": 1024, "children": [ - 446, - 450, - 445 + 451, + 455, + 450 ] }, { "title": "Methods", "kind": 2048, "children": [ - 461, - 464, - 468 + 466, + 469, + 473 ] } ], "sources": [ { "fileName": "PostgrestClient.ts", - "line": 5, + "line": 6, "character": 36 } ] @@ -19708,7 +22515,7 @@ "title": "Classes", "kind": 128, "children": [ - 444 + 449 ] } ], @@ -19721,7 +22528,7 @@ ] }, { - "id": 476, + "id": 481, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -26919,7 +29726,7 @@ "isExported": true }, "comment": { - "shortText": "Perform a stored procedure call." + "shortText": "Perform a function call." }, "parameters": [ { @@ -28950,6 +31757,87 @@ } ] }, + { + "id": 445, + "name": "\"lib/constants\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/constants.ts", + "children": [ + { + "id": 446, + "name": "DEFAULT_HEADERS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isExported": true, + "isConst": true + }, + "children": [ + { + "id": 447, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 2, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`postgrest-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 447 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 2, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 446 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 1, + "character": 0 + } + ] + }, { "id": 1, "name": "\"lib/types\"", @@ -30559,6 +33447,56 @@ "character": 0 } ] + }, + { + "id": 443, + "name": "\"lib/version\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/version.ts", + "children": [ + { + "id": 444, + "name": "version", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/version.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "stringLiteral", + "value": "0.0.0-automated" + }, + "defaultValue": "\"0.0.0-automated\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 444 + ] + } + ], + "sources": [ + { + "fileName": "lib/version.ts", + "line": 1, + "character": 0 + } + ] } ], "groups": [ @@ -30566,13 +33504,15 @@ "title": "Modules", "kind": 1, "children": [ - 443, - 476, + 448, + 481, 126, 321, 401, 67, - 1 + 445, + 1, + 443 ] } ] @@ -30585,7 +33525,7 @@ "originalName": "", "children": [ { - "id": 194, + "id": 200, "name": "\"RealtimeClient\"", "kind": 1, "kindString": "Module", @@ -30595,7 +33535,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts", "children": [ { - "id": 195, + "id": 201, "name": "RealtimeClient", "kind": 128, "kindString": "Class", @@ -30604,7 +33544,7 @@ }, "children": [ { - "id": 226, + "id": 232, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -30616,7 +33556,7 @@ }, "signatures": [ { - "id": 227, + "id": 233, "name": "new RealtimeClient", "kind": 16384, "kindString": "Constructor signature", @@ -30628,7 +33568,7 @@ }, "parameters": [ { - "id": 228, + "id": 234, "name": "endPoint", "kind": 32768, "kindString": "Parameter", @@ -30644,7 +33584,7 @@ } }, { - "id": 229, + "id": 235, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -30654,14 +33594,14 @@ }, "type": { "type": "reference", - "id": 301, + "id": 307, "name": "Options" } } ], "type": { "type": "reference", - "id": 195, + "id": 201, "name": "RealtimeClient" } } @@ -30669,13 +33609,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 65, + "line": 66, "character": 3 } ] }, { - "id": 196, + "id": 202, "name": "channels", "kind": 1024, "kindString": "Property", @@ -30685,7 +33625,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 36, + "line": 37, "character": 10 } ], @@ -30693,14 +33633,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } }, "defaultValue": "[]" }, { - "id": 218, + "id": 224, "name": "conn", "kind": 1024, "kindString": "Property", @@ -30710,7 +33650,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 52, + "line": 53, "character": 6 } ], @@ -30730,13 +33670,33 @@ "defaultValue": "null" }, { - "id": 216, + "id": 222, "name": "decode", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 51, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 221, + "name": "encode", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -30750,27 +33710,7 @@ } }, { - "id": 215, - "name": "encode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 49, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 197, + "id": 203, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -30780,7 +33720,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 37, + "line": 38, "character": 10 } ], @@ -30791,7 +33731,7 @@ "defaultValue": "\"\"" }, { - "id": 198, + "id": 204, "name": "headers", "kind": 1024, "kindString": "Property", @@ -30802,7 +33742,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 38, + "line": 39, "character": 9 } ], @@ -30816,7 +33756,7 @@ { "type": "reflection", "declaration": { - "id": 199, + "id": 205, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -30825,7 +33765,7 @@ }, "indexSignature": [ { - "id": 200, + "id": 206, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -30834,7 +33774,7 @@ }, "parameters": [ { - "id": 201, + "id": 207, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -30856,10 +33796,11 @@ } } ] - } + }, + "defaultValue": "DEFAULT_HEADERS" }, { - "id": 208, + "id": 214, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -30869,7 +33810,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 42, + "line": 43, "character": 21 } ], @@ -30880,7 +33821,7 @@ "defaultValue": "30000" }, { - "id": 210, + "id": 216, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -30890,7 +33831,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 44, + "line": 45, "character": 16 } ], @@ -30919,7 +33860,7 @@ "defaultValue": "undefined" }, { - "id": 214, + "id": 220, "name": "logger", "kind": 1024, "kindString": "Property", @@ -30929,7 +33870,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 48, + "line": 49, "character": 8 } ], @@ -30940,7 +33881,7 @@ "defaultValue": "noop" }, { - "id": 209, + "id": 215, "name": "longpollerTimeout", "kind": 1024, "kindString": "Property", @@ -30950,7 +33891,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 43, + "line": 44, "character": 19 } ], @@ -30961,7 +33902,7 @@ "defaultValue": "20000" }, { - "id": 202, + "id": 208, "name": "params", "kind": 1024, "kindString": "Property", @@ -30972,7 +33913,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 39, + "line": 40, "character": 8 } ], @@ -30986,7 +33927,7 @@ { "type": "reflection", "declaration": { - "id": 203, + "id": 209, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -30995,7 +33936,7 @@ }, "indexSignature": [ { - "id": 204, + "id": 210, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -31004,7 +33945,7 @@ }, "parameters": [ { - "id": 205, + "id": 211, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -31029,7 +33970,7 @@ } }, { - "id": 211, + "id": 217, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -31039,7 +33980,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 45, + "line": 46, "character": 21 } ], @@ -31059,7 +34000,7 @@ "defaultValue": "null" }, { - "id": 217, + "id": 223, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -31069,7 +34010,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 51, + "line": 52, "character": 18 } ], @@ -31079,7 +34020,7 @@ } }, { - "id": 213, + "id": 219, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -31089,18 +34030,18 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 47, + "line": 48, "character": 16 } ], "type": { "type": "reference", - "id": 25, + "id": 29, "name": "Timer" } }, { - "id": 212, + "id": 218, "name": "ref", "kind": 1024, "kindString": "Property", @@ -31110,7 +34051,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 46, + "line": 47, "character": 5 } ], @@ -31121,37 +34062,13 @@ "defaultValue": "0" }, { - "id": 219, + "id": 225, "name": "sendBuffer", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 53, - "character": 12 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Function" - } - }, - "defaultValue": "[]" - }, - { - "id": 220, - "name": "serializer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -31159,15 +34076,39 @@ "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", + "line": 55, + "character": 12 + } + ], "type": { "type": "reference", - "id": 170, + "id": 176, "name": "Serializer" }, "defaultValue": "new Serializer()" }, { - "id": 206, + "id": 212, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -31177,7 +34118,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 40, + "line": 41, "character": 9 } ], @@ -31188,7 +34129,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 207, + "id": 213, "name": "transport", "kind": 1024, "kindString": "Property", @@ -31198,7 +34139,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 41, + "line": 42, "character": 11 } ], @@ -31209,7 +34150,7 @@ "defaultValue": "WebSocket" }, { - "id": 288, + "id": 294, "name": "_appendParams", "kind": 2048, "kindString": "Method", @@ -31219,7 +34160,7 @@ }, "signatures": [ { - "id": 289, + "id": 295, "name": "_appendParams", "kind": 4096, "kindString": "Call signature", @@ -31228,7 +34169,7 @@ }, "parameters": [ { - "id": 290, + "id": 296, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -31241,7 +34182,7 @@ } }, { - "id": 291, + "id": 297, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -31251,7 +34192,7 @@ "type": { "type": "reflection", "declaration": { - "id": 292, + "id": 298, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -31260,7 +34201,7 @@ }, "indexSignature": [ { - "id": 293, + "id": 299, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -31269,7 +34210,7 @@ }, "parameters": [ { - "id": 294, + "id": 300, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -31291,7 +34232,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 344, + "line": 348, "character": 44 } ] @@ -31308,13 +34249,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 344, + "line": 348, "character": 23 } ] }, { - "id": 295, + "id": 301, "name": "_flushSendBuffer", "kind": 2048, "kindString": "Method", @@ -31324,7 +34265,7 @@ }, "signatures": [ { - "id": 296, + "id": 302, "name": "_flushSendBuffer", "kind": 4096, "kindString": "Call signature", @@ -31340,13 +34281,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 354, + "line": 358, "character": 26 } ] }, { - "id": 280, + "id": 286, "name": "_onConnClose", "kind": 2048, "kindString": "Method", @@ -31356,7 +34297,7 @@ }, "signatures": [ { - "id": 281, + "id": 287, "name": "_onConnClose", "kind": 4096, "kindString": "Call signature", @@ -31365,7 +34306,7 @@ }, "parameters": [ { - "id": 282, + "id": 288, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -31387,13 +34328,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 324, + "line": 328, "character": 22 } ] }, { - "id": 283, + "id": 289, "name": "_onConnError", "kind": 2048, "kindString": "Method", @@ -31403,7 +34344,7 @@ }, "signatures": [ { - "id": 284, + "id": 290, "name": "_onConnError", "kind": 4096, "kindString": "Call signature", @@ -31412,7 +34353,7 @@ }, "parameters": [ { - "id": 285, + "id": 291, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -31434,13 +34375,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 332, + "line": 336, "character": 22 } ] }, { - "id": 278, + "id": 284, "name": "_onConnOpen", "kind": 2048, "kindString": "Method", @@ -31450,7 +34391,7 @@ }, "signatures": [ { - "id": 279, + "id": 285, "name": "_onConnOpen", "kind": 4096, "kindString": "Call signature", @@ -31466,13 +34407,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 316, + "line": 320, "character": 21 } ] }, { - "id": 297, + "id": 303, "name": "_resetHeartbeat", "kind": 2048, "kindString": "Method", @@ -31482,7 +34423,7 @@ }, "signatures": [ { - "id": 298, + "id": 304, "name": "_resetHeartbeat", "kind": 4096, "kindString": "Call signature", @@ -31498,13 +34439,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 361, + "line": 365, "character": 25 } ] }, { - "id": 299, + "id": 305, "name": "_sendHeartbeat", "kind": 2048, "kindString": "Method", @@ -31514,7 +34455,7 @@ }, "signatures": [ { - "id": 300, + "id": 306, "name": "_sendHeartbeat", "kind": 4096, "kindString": "Call signature", @@ -31530,13 +34471,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 370, + "line": 374, "character": 24 } ] }, { - "id": 286, + "id": 292, "name": "_triggerChanError", "kind": 2048, "kindString": "Method", @@ -31546,7 +34487,7 @@ }, "signatures": [ { - "id": 287, + "id": 293, "name": "_triggerChanError", "kind": 4096, "kindString": "Call signature", @@ -31562,13 +34503,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 338, + "line": 342, "character": 27 } ] }, { - "id": 263, + "id": 269, "name": "channel", "kind": 2048, "kindString": "Method", @@ -31577,7 +34518,7 @@ }, "signatures": [ { - "id": 264, + "id": 270, "name": "channel", "kind": 4096, "kindString": "Call signature", @@ -31586,7 +34527,7 @@ }, "parameters": [ { - "id": 265, + "id": 271, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -31599,7 +34540,7 @@ } }, { - "id": 266, + "id": 272, "name": "chanParams", "kind": 32768, "kindString": "Parameter", @@ -31609,7 +34550,7 @@ "type": { "type": "reflection", "declaration": { - "id": 267, + "id": 273, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -31623,7 +34564,7 @@ ], "type": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } } @@ -31631,13 +34572,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 246, + "line": 250, "character": 9 } ] }, { - "id": 230, + "id": 236, "name": "connect", "kind": 2048, "kindString": "Method", @@ -31646,7 +34587,7 @@ }, "signatures": [ { - "id": 231, + "id": 237, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -31665,13 +34606,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 117, + "line": 118, "character": 9 } ] }, { - "id": 256, + "id": 262, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -31680,7 +34621,7 @@ }, "signatures": [ { - "id": 257, + "id": 263, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -31716,13 +34657,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 215, + "line": 219, "character": 17 } ] }, { - "id": 232, + "id": 238, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -31731,7 +34672,7 @@ }, "signatures": [ { - "id": 233, + "id": 239, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -31743,7 +34684,7 @@ }, "parameters": [ { - "id": 234, + "id": 240, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -31769,7 +34710,7 @@ } }, { - "id": 235, + "id": 241, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -31801,7 +34742,7 @@ { "type": "reflection", "declaration": { - "id": 236, + "id": 242, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -31810,7 +34751,7 @@ }, "children": [ { - "id": 238, + "id": 244, "name": "data", "kind": 32, "kindString": "Variable", @@ -31820,7 +34761,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 142, + "line": 143, "character": 40 } ], @@ -31830,7 +34771,7 @@ } }, { - "id": 237, + "id": 243, "name": "error", "kind": 32, "kindString": "Variable", @@ -31840,7 +34781,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 142, + "line": 143, "character": 20 } ], @@ -31864,15 +34805,15 @@ "title": "Variables", "kind": 32, "children": [ - 238, - 237 + 244, + 243 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 142, + "line": 143, "character": 13 } ] @@ -31886,13 +34827,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 139, + "line": 140, "character": 12 } ] }, { - "id": 274, + "id": 280, "name": "endPointURL", "kind": 2048, "kindString": "Method", @@ -31901,7 +34842,7 @@ }, "signatures": [ { - "id": 275, + "id": 281, "name": "endPointURL", "kind": 4096, "kindString": "Call signature", @@ -31920,13 +34861,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 295, + "line": 299, "character": 13 } ] }, { - "id": 258, + "id": 264, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -31935,7 +34876,7 @@ }, "signatures": [ { - "id": 259, + "id": 265, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -31954,13 +34895,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 231, + "line": 235, "character": 13 } ] }, { - "id": 239, + "id": 245, "name": "log", "kind": 2048, "kindString": "Method", @@ -31969,7 +34910,7 @@ }, "signatures": [ { - "id": 240, + "id": 246, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -31981,7 +34922,7 @@ }, "parameters": [ { - "id": 241, + "id": 247, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -31994,7 +34935,7 @@ } }, { - "id": 242, + "id": 248, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -32007,7 +34948,7 @@ } }, { - "id": 243, + "id": 249, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -32030,13 +34971,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 164, + "line": 168, "character": 5 } ] }, { - "id": 276, + "id": 282, "name": "makeRef", "kind": 2048, "kindString": "Method", @@ -32045,7 +34986,7 @@ }, "signatures": [ { - "id": 277, + "id": 283, "name": "makeRef", "kind": 4096, "kindString": "Call signature", @@ -32064,13 +35005,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 305, + "line": 309, "character": 9 } ] }, { - "id": 247, + "id": 253, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -32079,7 +35020,7 @@ }, "signatures": [ { - "id": 248, + "id": 254, "name": "onClose", "kind": 4096, "kindString": "Call signature", @@ -32095,168 +35036,6 @@ } ] }, - "parameters": [ - { - "id": 249, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 186, - "character": 9 - } - ] - }, - { - "id": 271, - "name": "onConnMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 272, - "name": "onConnMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 273, - "name": "rawMessage", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 267, - "character": 15 - } - ] - }, - { - "id": 250, - "name": "onError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 251, - "name": "onError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Registers a callback for connection state change events.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n" - } - ] - }, - "parameters": [ - { - "id": 252, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 197, - "character": 9 - } - ] - }, - { - "id": 253, - "name": "onMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 254, - "name": "onMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Calls a function any time a message is received.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onMessage((message) => console.log(message))\n" - } - ] - }, "parameters": [ { "id": 255, @@ -32284,14 +35063,14 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 208, - "character": 11 + "line": 190, + "character": 9 } ] }, { - "id": 244, - "name": "onOpen", + "id": 277, + "name": "onConnMessage", "kind": 2048, "kindString": "Method", "flags": { @@ -32299,25 +35078,71 @@ }, "signatures": [ { - "id": 245, - "name": "onOpen", + "id": 278, + "name": "onConnMessage", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 279, + "name": "rawMessage", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 271, + "character": 15 + } + ] + }, + { + "id": 256, + "name": "onError", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 257, + "name": "onError", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { - "shortText": "Registers a callback for connection state change event.", + "shortText": "Registers a callback for connection state change events.", "tags": [ { "tag": "example", - "text": "\n socket.onOpen(() => console.log(\"Socket opened.\"))\n" + "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n" } ] }, "parameters": [ { - "id": 246, + "id": 258, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -32342,13 +35167,129 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 175, + "line": 201, + "character": 9 + } + ] + }, + { + "id": 259, + "name": "onMessage", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 260, + "name": "onMessage", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Calls a function any time a message is received.", + "tags": [ + { + "tag": "example", + "text": "\n socket.onMessage((message) => console.log(message))\n" + } + ] + }, + "parameters": [ + { + "id": 261, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A function to be called when the event occurs.\n" + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 212, + "character": 11 + } + ] + }, + { + "id": 250, + "name": "onOpen", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 251, + "name": "onOpen", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Registers a callback for connection state change event.", + "tags": [ + { + "tag": "example", + "text": "\n socket.onOpen(() => console.log(\"Socket opened.\"))\n" + } + ] + }, + "parameters": [ + { + "id": 252, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A function to be called when the event occurs.\n" + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 179, "character": 8 } ] }, { - "id": 268, + "id": 274, "name": "push", "kind": 2048, "kindString": "Method", @@ -32357,7 +35298,7 @@ }, "signatures": [ { - "id": 269, + "id": 275, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -32366,7 +35307,7 @@ }, "parameters": [ { - "id": 270, + "id": 276, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -32375,7 +35316,7 @@ }, "type": { "type": "reference", - "id": 319, + "id": 325, "name": "Message" } } @@ -32389,13 +35330,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 252, + "line": 256, "character": 6 } ] }, { - "id": 260, + "id": 266, "name": "remove", "kind": 2048, "kindString": "Method", @@ -32404,7 +35345,7 @@ }, "signatures": [ { - "id": 261, + "id": 267, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -32416,7 +35357,7 @@ }, "parameters": [ { - "id": 262, + "id": 268, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -32428,7 +35369,7 @@ }, "type": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } } @@ -32442,13 +35383,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 240, + "line": 244, "character": 8 } ] }, { - "id": 221, + "id": 227, "name": "stateChangeCallbacks", "kind": 2097152, "kindString": "Object literal", @@ -32457,37 +35398,13 @@ }, "children": [ { - "id": 223, + "id": 229, "name": "close", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 62, - "character": 9 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "never" - } - }, - "defaultValue": "[]" - }, - { - "id": 224, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -32505,8 +35422,8 @@ "defaultValue": "[]" }, { - "id": 225, - "name": "message", + "id": 230, + "name": "error", "kind": 32, "kindString": "Variable", "flags": { @@ -32516,6 +35433,30 @@ { "fileName": "RealtimeClient.ts", "line": 64, + "character": 9 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + }, + "defaultValue": "[]" + }, + { + "id": 231, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 65, "character": 11 } ], @@ -32529,7 +35470,7 @@ "defaultValue": "[]" }, { - "id": 222, + "id": 228, "name": "open", "kind": 32, "kindString": "Variable", @@ -32539,7 +35480,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 61, + "line": 62, "character": 8 } ], @@ -32558,17 +35499,17 @@ "title": "Variables", "kind": 32, "children": [ - 223, - 224, - 225, - 222 + 229, + 230, + 231, + 228 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 55, + "line": 56, "character": 22 } ], @@ -32583,81 +35524,81 @@ "title": "Constructors", "kind": 512, "children": [ - 226 + 232 ] }, { "title": "Properties", "kind": 1024, "children": [ - 196, - 218, - 216, - 215, - 197, - 198, - 208, - 210, - 214, - 209, 202, - 211, - 217, - 213, - 212, - 219, + 224, + 222, + 221, + 203, + 204, + 214, + 216, 220, - 206, - 207 + 215, + 208, + 217, + 223, + 219, + 218, + 225, + 226, + 212, + 213 ] }, { "title": "Methods", "kind": 2048, "children": [ - 288, - 295, - 280, - 283, - 278, - 297, - 299, + 294, + 301, 286, - 263, - 230, - 256, - 232, - 274, - 258, - 239, - 276, - 247, - 271, - 250, + 289, + 284, + 303, + 305, + 292, + 269, + 236, + 262, + 238, + 280, + 264, + 245, + 282, 253, - 244, - 268, - 260 + 277, + 256, + 259, + 250, + 274, + 266 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 221 + 227 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 35, + "line": 36, "character": 35 } ] }, { - "id": 319, + "id": 325, "name": "Message", "kind": 4194304, "kindString": "Type alias", @@ -32665,25 +35606,79 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 26, + "line": 27, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 320, + "id": 326, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 322, + "id": 328, "name": "event", "kind": 32, "kindString": "Variable", "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 29, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 329, + "name": "payload", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 30, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 330, + "name": "ref", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 31, + "character": 5 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 327, + "name": "topic", + "kind": 32, + "kindString": "Variable", + "flags": {}, "sources": [ { "fileName": "RealtimeClient.ts", @@ -32695,60 +35690,6 @@ "type": "intrinsic", "name": "string" } - }, - { - "id": 323, - "name": "payload", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 29, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 324, - "name": "ref", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 30, - "character": 5 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 321, - "name": "topic", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 27, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } } ], "groups": [ @@ -32756,17 +35697,17 @@ "title": "Variables", "kind": 32, "children": [ - 322, - 323, - 324, - 321 + 328, + 329, + 330, + 327 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 26, + "line": 27, "character": 14 } ] @@ -32774,7 +35715,7 @@ } }, { - "id": 301, + "id": 307, "name": "Options", "kind": 4194304, "kindString": "Type alias", @@ -32784,14 +35725,14 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 14, + "line": 15, "character": 19 } ], "type": { "type": "reflection", "declaration": { - "id": 302, + "id": 308, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32800,7 +35741,7 @@ }, "children": [ { - "id": 309, + "id": 315, "name": "decode", "kind": 32, "kindString": "Variable", @@ -32808,6 +35749,27 @@ "isExported": true, "isOptional": true }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 22, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 314, + "name": "encode", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -32821,8 +35783,106 @@ } }, { - "id": 308, - "name": "encode", + "id": 317, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 24, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 318, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 319, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 320, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 311, + "name": "heartbeatIntervalMs", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 18, + "character": 21 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 313, + "name": "logger", "kind": 32, "kindString": "Variable", "flags": { @@ -32842,126 +35902,7 @@ } }, { - "id": 311, - "name": "headers", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 23, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 312, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 313, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 314, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 305, - "name": "heartbeatIntervalMs", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 17, - "character": 21 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 307, - "name": "logger", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 19, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 306, + "id": 312, "name": "longpollerTimeout", "kind": 32, "kindString": "Variable", @@ -32972,7 +35913,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 18, + "line": 19, "character": 19 } ], @@ -32991,7 +35932,7 @@ } }, { - "id": 315, + "id": 321, "name": "params", "kind": 32, "kindString": "Variable", @@ -33002,7 +35943,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 24, + "line": 25, "character": 8 } ], @@ -33016,7 +35957,7 @@ { "type": "reflection", "declaration": { - "id": 316, + "id": 322, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -33025,7 +35966,7 @@ }, "indexSignature": [ { - "id": 317, + "id": 323, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -33034,7 +35975,7 @@ }, "parameters": [ { - "id": 318, + "id": 324, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -33059,7 +36000,7 @@ } }, { - "id": 310, + "id": 316, "name": "reconnectAfterMs", "kind": 32, "kindString": "Variable", @@ -33070,7 +36011,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 22, + "line": 23, "character": 18 } ], @@ -33080,7 +36021,7 @@ } }, { - "id": 304, + "id": 310, "name": "timeout", "kind": 32, "kindString": "Variable", @@ -33091,7 +36032,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 16, + "line": 17, "character": 9 } ], @@ -33110,7 +36051,7 @@ } }, { - "id": 303, + "id": 309, "name": "transport", "kind": 32, "kindString": "Variable", @@ -33121,7 +36062,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 15, + "line": 16, "character": 11 } ], @@ -33136,23 +36077,23 @@ "title": "Variables", "kind": 32, "children": [ - 309, - 308, - 311, - 305, - 307, - 306, 315, + 314, + 317, + 311, + 313, + 312, + 321, + 316, 310, - 304, - 303 + 309 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 14, + "line": 15, "character": 21 } ] @@ -33160,7 +36101,7 @@ } }, { - "id": 325, + "id": 331, "name": "noop", "kind": 64, "kindString": "Function", @@ -33169,7 +36110,7 @@ }, "signatures": [ { - "id": 326, + "id": 332, "name": "noop", "kind": 4096, "kindString": "Call signature", @@ -33183,7 +36124,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 33, + "line": 34, "character": 10 } ] @@ -33194,22 +36135,22 @@ "title": "Classes", "kind": 128, "children": [ - 195 + 201 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 319, - 301 + 325, + 307 ] }, { "title": "Functions", "kind": 64, "children": [ - 325 + 331 ] } ], @@ -33222,7 +36163,7 @@ ] }, { - "id": 90, + "id": 96, "name": "\"RealtimeSubscription\"", "kind": 1, "kindString": "Module", @@ -33232,7 +36173,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts", "children": [ { - "id": 91, + "id": 97, "name": "RealtimeSubscription", "kind": 128, "kindString": "Class", @@ -33241,7 +36182,7 @@ }, "children": [ { - "id": 99, + "id": 105, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -33250,7 +36191,7 @@ }, "signatures": [ { - "id": 103, + "id": 109, "name": "new RealtimeSubscription", "kind": 16384, "kindString": "Constructor signature", @@ -33259,7 +36200,7 @@ }, "parameters": [ { - "id": 104, + "id": 110, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -33272,7 +36213,7 @@ } }, { - "id": 105, + "id": 111, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -33286,7 +36227,7 @@ "defaultValue": "{}" }, { - "id": 106, + "id": 112, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -33295,14 +36236,14 @@ }, "type": { "type": "reference", - "id": 195, + "id": 201, "name": "RealtimeClient" } } ], "type": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } } @@ -33316,7 +36257,7 @@ ] }, { - "id": 92, + "id": 98, "name": "bindings", "kind": 1024, "kindString": "Property", @@ -33340,7 +36281,7 @@ "defaultValue": "[]" }, { - "id": 96, + "id": 102, "name": "joinPush", "kind": 1024, "kindString": "Property", @@ -33356,12 +36297,12 @@ ], "type": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } }, { - "id": 95, + "id": 101, "name": "joinedOnce", "kind": 1024, "kindString": "Property", @@ -33382,7 +36323,7 @@ "defaultValue": "false" }, { - "id": 101, + "id": 107, "name": "params", "kind": 1024, "kindString": "Property", @@ -33404,7 +36345,7 @@ } }, { - "id": 98, + "id": 104, "name": "pushBuffer", "kind": 1024, "kindString": "Property", @@ -33422,14 +36363,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } }, "defaultValue": "[]" }, { - "id": 97, + "id": 103, "name": "rejoinTimer", "kind": 1024, "kindString": "Property", @@ -33445,12 +36386,12 @@ ], "type": { "type": "reference", - "id": 25, + "id": 29, "name": "Timer" } }, { - "id": 102, + "id": 108, "name": "socket", "kind": 1024, "kindString": "Property", @@ -33468,12 +36409,12 @@ ], "type": { "type": "reference", - "id": 195, + "id": 201, "name": "RealtimeClient" } }, { - "id": 94, + "id": 100, "name": "state", "kind": 1024, "kindString": "Property", @@ -33489,13 +36430,13 @@ ], "type": { "type": "reference", - "id": 7, + "id": 9, "name": "CHANNEL_STATES" }, "defaultValue": "CHANNEL_STATES.closed" }, { - "id": 93, + "id": 99, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -33515,7 +36456,7 @@ } }, { - "id": 100, + "id": 106, "name": "topic", "kind": 1024, "kindString": "Property", @@ -33537,7 +36478,7 @@ } }, { - "id": 125, + "id": 131, "name": "canPush", "kind": 2048, "kindString": "Method", @@ -33546,7 +36487,7 @@ }, "signatures": [ { - "id": 126, + "id": 132, "name": "canPush", "kind": 4096, "kindString": "Call signature", @@ -33568,7 +36509,7 @@ ] }, { - "id": 159, + "id": 165, "name": "isClosed", "kind": 2048, "kindString": "Method", @@ -33577,7 +36518,7 @@ }, "signatures": [ { - "id": 160, + "id": 166, "name": "isClosed", "kind": 4096, "kindString": "Call signature", @@ -33593,13 +36534,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 198, + "line": 201, "character": 10 } ] }, { - "id": 161, + "id": 167, "name": "isErrored", "kind": 2048, "kindString": "Method", @@ -33608,7 +36549,7 @@ }, "signatures": [ { - "id": 162, + "id": 168, "name": "isErrored", "kind": 4096, "kindString": "Call signature", @@ -33624,13 +36565,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 201, + "line": 204, "character": 11 } ] }, { - "id": 163, + "id": 169, "name": "isJoined", "kind": 2048, "kindString": "Method", @@ -33639,7 +36580,7 @@ }, "signatures": [ { - "id": 164, + "id": 170, "name": "isJoined", "kind": 4096, "kindString": "Call signature", @@ -33655,13 +36596,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 204, + "line": 207, "character": 10 } ] }, { - "id": 165, + "id": 171, "name": "isJoining", "kind": 2048, "kindString": "Method", @@ -33670,7 +36611,7 @@ }, "signatures": [ { - "id": 166, + "id": 172, "name": "isJoining", "kind": 4096, "kindString": "Call signature", @@ -33683,37 +36624,6 @@ } } ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 207, - "character": 11 - } - ] - }, - { - "id": 167, - "name": "isLeaving", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 168, - "name": "isLeaving", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], "sources": [ { "fileName": "RealtimeSubscription.ts", @@ -33723,7 +36633,38 @@ ] }, { - "id": 140, + "id": 173, + "name": "isLeaving", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 174, + "name": "isLeaving", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 213, + "character": 11 + } + ] + }, + { + "id": 146, "name": "isMember", "kind": 2048, "kindString": "Method", @@ -33732,7 +36673,7 @@ }, "signatures": [ { - "id": 141, + "id": 147, "name": "isMember", "kind": 4096, "kindString": "Call signature", @@ -33741,7 +36682,7 @@ }, "parameters": [ { - "id": 142, + "id": 148, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -33763,13 +36704,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 151, + "line": 154, "character": 10 } ] }, { - "id": 143, + "id": 149, "name": "joinRef", "kind": 2048, "kindString": "Method", @@ -33778,7 +36719,7 @@ }, "signatures": [ { - "id": 144, + "id": 150, "name": "joinRef", "kind": 4096, "kindString": "Call signature", @@ -33794,13 +36735,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 155, + "line": 158, "character": 9 } ] }, { - "id": 122, + "id": 128, "name": "off", "kind": 2048, "kindString": "Method", @@ -33809,7 +36750,7 @@ }, "signatures": [ { - "id": 123, + "id": 129, "name": "off", "kind": 4096, "kindString": "Call signature", @@ -33818,7 +36759,7 @@ }, "parameters": [ { - "id": 124, + "id": 130, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -33846,7 +36787,7 @@ ] }, { - "id": 118, + "id": 124, "name": "on", "kind": 2048, "kindString": "Method", @@ -33855,7 +36796,7 @@ }, "signatures": [ { - "id": 119, + "id": 125, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -33864,7 +36805,7 @@ }, "parameters": [ { - "id": 120, + "id": 126, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -33877,7 +36818,7 @@ } }, { - "id": 121, + "id": 127, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -33905,7 +36846,7 @@ ] }, { - "id": 112, + "id": 118, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -33914,7 +36855,7 @@ }, "signatures": [ { - "id": 113, + "id": 119, "name": "onClose", "kind": 4096, "kindString": "Call signature", @@ -33923,7 +36864,7 @@ }, "parameters": [ { - "id": 114, + "id": 120, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -33951,7 +36892,7 @@ ] }, { - "id": 115, + "id": 121, "name": "onError", "kind": 2048, "kindString": "Method", @@ -33960,7 +36901,7 @@ }, "signatures": [ { - "id": 116, + "id": 122, "name": "onError", "kind": 4096, "kindString": "Call signature", @@ -33969,7 +36910,7 @@ }, "parameters": [ { - "id": 117, + "id": 123, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -33997,7 +36938,7 @@ ] }, { - "id": 135, + "id": 141, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -34006,7 +36947,7 @@ }, "signatures": [ { - "id": 136, + "id": 142, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -34019,7 +36960,7 @@ }, "parameters": [ { - "id": 137, + "id": 143, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -34032,7 +36973,7 @@ } }, { - "id": 138, + "id": 144, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -34045,7 +36986,7 @@ } }, { - "id": 139, + "id": 145, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -34077,13 +37018,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 147, + "line": 150, "character": 11 } ] }, { - "id": 127, + "id": 133, "name": "push", "kind": 2048, "kindString": "Method", @@ -34092,7 +37033,7 @@ }, "signatures": [ { - "id": 128, + "id": 134, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -34101,7 +37042,7 @@ }, "parameters": [ { - "id": 129, + "id": 135, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -34110,12 +37051,12 @@ }, "type": { "type": "reference", - "id": 13, + "id": 15, "name": "CHANNEL_EVENTS" } }, { - "id": 130, + "id": 136, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -34128,7 +37069,7 @@ } }, { - "id": 131, + "id": 137, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -34144,7 +37085,7 @@ ], "type": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } } @@ -34158,7 +37099,7 @@ ] }, { - "id": 148, + "id": 154, "name": "rejoin", "kind": 2048, "kindString": "Method", @@ -34167,7 +37108,7 @@ }, "signatures": [ { - "id": 149, + "id": 155, "name": "rejoin", "kind": 4096, "kindString": "Call signature", @@ -34176,7 +37117,7 @@ }, "parameters": [ { - "id": 150, + "id": 156, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -34199,13 +37140,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 164, + "line": 167, "character": 8 } ] }, { - "id": 107, + "id": 113, "name": "rejoinUntilConnected", "kind": 2048, "kindString": "Method", @@ -34214,7 +37155,7 @@ }, "signatures": [ { - "id": 108, + "id": 114, "name": "rejoinUntilConnected", "kind": 4096, "kindString": "Call signature", @@ -34236,7 +37177,7 @@ ] }, { - "id": 156, + "id": 162, "name": "replyEventName", "kind": 2048, "kindString": "Method", @@ -34245,7 +37186,7 @@ }, "signatures": [ { - "id": 157, + "id": 163, "name": "replyEventName", "kind": 4096, "kindString": "Call signature", @@ -34254,7 +37195,7 @@ }, "parameters": [ { - "id": 158, + "id": 164, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -34276,13 +37217,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 194, + "line": 197, "character": 16 } ] }, { - "id": 145, + "id": 151, "name": "sendJoin", "kind": 2048, "kindString": "Method", @@ -34291,7 +37232,7 @@ }, "signatures": [ { - "id": 146, + "id": 152, "name": "sendJoin", "kind": 4096, "kindString": "Call signature", @@ -34300,7 +37241,7 @@ }, "parameters": [ { - "id": 147, + "id": 153, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -34322,13 +37263,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 159, + "line": 162, "character": 10 } ] }, { - "id": 109, + "id": 115, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -34337,7 +37278,7 @@ }, "signatures": [ { - "id": 110, + "id": 116, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -34346,7 +37287,7 @@ }, "parameters": [ { - "id": 111, + "id": 117, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -34362,7 +37303,7 @@ ], "type": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } } @@ -34376,7 +37317,7 @@ ] }, { - "id": 151, + "id": 157, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -34385,7 +37326,7 @@ }, "signatures": [ { - "id": 152, + "id": 158, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -34394,7 +37335,7 @@ }, "parameters": [ { - "id": 153, + "id": 159, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -34407,7 +37348,7 @@ } }, { - "id": 154, + "id": 160, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -34421,7 +37362,7 @@ } }, { - "id": 155, + "id": 161, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -34453,13 +37394,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 171, + "line": 174, "character": 9 } ] }, { - "id": 132, + "id": 138, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -34468,7 +37409,7 @@ }, "signatures": [ { - "id": 133, + "id": 139, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -34481,7 +37422,7 @@ }, "parameters": [ { - "id": 134, + "id": 140, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -34497,7 +37438,7 @@ ], "type": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } } @@ -34516,50 +37457,50 @@ "title": "Constructors", "kind": 512, "children": [ - 99 + 105 ] }, { "title": "Properties", "kind": 1024, "children": [ - 92, - 96, - 95, - 101, 98, - 97, 102, - 94, - 93, - 100 + 101, + 107, + 104, + 103, + 108, + 100, + 99, + 106 ] }, { "title": "Methods", "kind": 2048, "children": [ - 125, - 159, - 161, - 163, + 131, 165, 167, - 140, - 143, - 122, + 169, + 171, + 173, + 146, + 149, + 128, + 124, 118, - 112, - 115, - 135, - 127, - 148, - 107, - 156, - 145, - 109, + 121, + 141, + 133, + 154, + 113, + 162, 151, - 132 + 115, + 157, + 138 ] } ], @@ -34577,7 +37518,7 @@ "title": "Classes", "kind": 128, "children": [ - 91 + 97 ] } ], @@ -34590,7 +37531,7 @@ ] }, { - "id": 413, + "id": 419, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -34607,7 +37548,7 @@ ] }, { - "id": 1, + "id": 3, "name": "\"lib/constants\"", "kind": 1, "kindString": "Module", @@ -34617,7 +37558,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/constants.ts", "children": [ { - "id": 13, + "id": 15, "name": "CHANNEL_EVENTS", "kind": 4, "kindString": "Enumeration", @@ -34625,60 +37566,9 @@ "isExported": true }, "children": [ - { - "id": 14, - "name": "close", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 23, - "character": 7 - } - ], - "defaultValue": "\"phx_close\"" - }, - { - "id": 15, - "name": "error", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 24, - "character": 7 - } - ], - "defaultValue": "\"phx_error\"" - }, { "id": 16, - "name": "join", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 25, - "character": 6 - } - ], - "defaultValue": "\"phx_join\"" - }, - { - "id": 18, - "name": "leave", + "name": "close", "kind": 16, "kindString": "Enumeration member", "flags": { @@ -34691,10 +37581,61 @@ "character": 7 } ], - "defaultValue": "\"phx_leave\"" + "defaultValue": "\"phx_close\"" }, { "id": 17, + "name": "error", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 28, + "character": 7 + } + ], + "defaultValue": "\"phx_error\"" + }, + { + "id": 18, + "name": "join", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 29, + "character": 6 + } + ], + "defaultValue": "\"phx_join\"" + }, + { + "id": 20, + "name": "leave", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 31, + "character": 7 + } + ], + "defaultValue": "\"phx_leave\"" + }, + { + "id": 19, "name": "reply", "kind": 16, "kindString": "Enumeration member", @@ -34704,7 +37645,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 26, + "line": 30, "character": 7 } ], @@ -34716,30 +37657,146 @@ "title": "Enumeration members", "kind": 16, "children": [ - 14, - 15, 16, + 17, 18, - 17 + 20, + 19 ] } ], "sources": [ { "fileName": "lib/constants.ts", - "line": 22, + "line": 26, "character": 26 } ] }, { - "id": 7, + "id": 9, "name": "CHANNEL_STATES", "kind": 4, "kindString": "Enumeration", "flags": { "isExported": true }, + "children": [ + { + "id": 10, + "name": "closed", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 19, + "character": 8 + } + ], + "defaultValue": "\"closed\"" + }, + { + "id": 11, + "name": "errored", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 20, + "character": 9 + } + ], + "defaultValue": "\"errored\"" + }, + { + "id": 12, + "name": "joined", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 21, + "character": 8 + } + ], + "defaultValue": "\"joined\"" + }, + { + "id": 13, + "name": "joining", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 22, + "character": 9 + } + ], + "defaultValue": "\"joining\"" + }, + { + "id": 14, + "name": "leaving", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 23, + "character": 9 + } + ], + "defaultValue": "\"leaving\"" + } + ], + "groups": [ + { + "title": "Enumeration members", + "kind": 16, + "children": [ + 10, + 11, + 12, + 13, + 14 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 18, + "character": 26 + } + ] + }, + { + "id": 4, + "name": "SOCKET_STATES", + "kind": 4, + "kindString": "Enumeration", + "flags": { + "isExported": true + }, "children": [ { "id": 8, @@ -34756,126 +37813,10 @@ "character": 8 } ], - "defaultValue": "\"closed\"" - }, - { - "id": 9, - "name": "errored", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 16, - "character": 9 - } - ], - "defaultValue": "\"errored\"" - }, - { - "id": 10, - "name": "joined", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 17, - "character": 8 - } - ], - "defaultValue": "\"joined\"" - }, - { - "id": 11, - "name": "joining", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 18, - "character": 9 - } - ], - "defaultValue": "\"joining\"" - }, - { - "id": 12, - "name": "leaving", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 19, - "character": 9 - } - ], - "defaultValue": "\"leaving\"" - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [ - 8, - 9, - 10, - 11, - 12 - ] - } - ], - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 14, - "character": 26 - } - ] - }, - { - "id": 2, - "name": "SOCKET_STATES", - "kind": 4, - "kindString": "Enumeration", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 6, - "name": "closed", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 11, - "character": 8 - } - ], "defaultValue": "3" }, { - "id": 5, + "id": 7, "name": "closing", "kind": 16, "kindString": "Enumeration member", @@ -34885,14 +37826,14 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 10, + "line": 14, "character": 9 } ], "defaultValue": "2" }, { - "id": 3, + "id": 5, "name": "connecting", "kind": 16, "kindString": "Enumeration member", @@ -34902,14 +37843,14 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 8, + "line": 12, "character": 12 } ], "defaultValue": "0" }, { - "id": 4, + "id": 6, "name": "open", "kind": 16, "kindString": "Enumeration member", @@ -34919,7 +37860,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 9, + "line": 13, "character": 6 } ], @@ -34931,23 +37872,23 @@ "title": "Enumeration members", "kind": 16, "children": [ - 6, + 8, + 7, 5, - 3, - 4 + 6 ] } ], "sources": [ { "fileName": "lib/constants.ts", - "line": 7, + "line": 11, "character": 25 } ] }, { - "id": 19, + "id": 21, "name": "TRANSPORTS", "kind": 4, "kindString": "Enumeration", @@ -34956,7 +37897,7 @@ }, "children": [ { - "id": 20, + "id": 22, "name": "websocket", "kind": 16, "kindString": "Enumeration member", @@ -34966,7 +37907,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 31, + "line": 35, "character": 11 } ], @@ -34978,20 +37919,20 @@ "title": "Enumeration members", "kind": 16, "children": [ - 20 + 22 ] } ], "sources": [ { "fileName": "lib/constants.ts", - "line": 30, + "line": 34, "character": 22 } ] }, { - "id": 22, + "id": 26, "name": "DEFAULT_TIMEOUT", "kind": 32, "kindString": "Variable", @@ -35002,7 +37943,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 3, + "line": 7, "character": 28 } ], @@ -35013,7 +37954,7 @@ "defaultValue": "10000" }, { - "id": 21, + "id": 25, "name": "VSN", "kind": 32, "kindString": "Variable", @@ -35024,7 +37965,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 1, + "line": 5, "character": 16 } ], @@ -35035,7 +37976,7 @@ "defaultValue": "\"1.0.0\"" }, { - "id": 23, + "id": 27, "name": "WS_CLOSE_NORMAL", "kind": 32, "kindString": "Variable", @@ -35046,7 +37987,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 5, + "line": 9, "character": 28 } ], @@ -35055,6 +37996,59 @@ "name": "1000" }, "defaultValue": "1000" + }, + { + "id": 23, + "name": "DEFAULT_HEADERS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isExported": true, + "isConst": true + }, + "children": [ + { + "id": 24, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 3, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`realtime-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 24 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 3, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } } ], "groups": [ @@ -35062,18 +38056,25 @@ "title": "Enumerations", "kind": 4, "children": [ - 13, - 7, - 2, - 19 + 15, + 9, + 4, + 21 ] }, { "title": "Variables", "kind": 32, "children": [ - 22, - 21, + 26, + 25, + 27 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ 23 ] } @@ -35087,7 +38088,7 @@ ] }, { - "id": 38, + "id": 42, "name": "\"lib/push\"", "kind": 1, "kindString": "Module", @@ -35097,7 +38098,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/push.ts", "children": [ { - "id": 39, + "id": 43, "name": "Push", "kind": 128, "kindString": "Class", @@ -35106,7 +38107,7 @@ }, "children": [ { - "id": 52, + "id": 56, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -35118,7 +38119,7 @@ }, "signatures": [ { - "id": 57, + "id": 61, "name": "new Push", "kind": 16384, "kindString": "Constructor signature", @@ -35130,7 +38131,7 @@ }, "parameters": [ { - "id": 58, + "id": 62, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -35142,12 +38143,12 @@ }, "type": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } }, { - "id": 59, + "id": 63, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -35163,7 +38164,7 @@ } }, { - "id": 60, + "id": 64, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -35180,7 +38181,7 @@ "defaultValue": "{}" }, { - "id": 61, + "id": 65, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -35199,7 +38200,7 @@ ], "type": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } } @@ -35213,7 +38214,7 @@ ] }, { - "id": 53, + "id": 57, "name": "channel", "kind": 1024, "kindString": "Property", @@ -35234,12 +38235,12 @@ ], "type": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } }, { - "id": 54, + "id": 58, "name": "event", "kind": 1024, "kindString": "Property", @@ -35264,7 +38265,7 @@ } }, { - "id": 55, + "id": 59, "name": "payload", "kind": 1024, "kindString": "Property", @@ -35289,7 +38290,7 @@ } }, { - "id": 47, + "id": 51, "name": "recHooks", "kind": 1024, "kindString": "Property", @@ -35308,7 +38309,7 @@ "elementType": { "type": "reflection", "declaration": { - "id": 48, + "id": 52, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -35317,7 +38318,7 @@ }, "children": [ { - "id": 50, + "id": 54, "name": "callback", "kind": 32, "kindString": "Variable", @@ -35337,7 +38338,7 @@ } }, { - "id": 49, + "id": 53, "name": "status", "kind": 32, "kindString": "Variable", @@ -35362,8 +38363,8 @@ "title": "Variables", "kind": 32, "children": [ - 50, - 49 + 54, + 53 ] } ], @@ -35380,7 +38381,7 @@ "defaultValue": "[]" }, { - "id": 43, + "id": 47, "name": "receivedResp", "kind": 1024, "kindString": "Property", @@ -35400,7 +38401,7 @@ { "type": "reflection", "declaration": { - "id": 44, + "id": 48, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -35409,7 +38410,7 @@ }, "children": [ { - "id": 46, + "id": 50, "name": "response", "kind": 32, "kindString": "Variable", @@ -35429,7 +38430,7 @@ } }, { - "id": 45, + "id": 49, "name": "status", "kind": 32, "kindString": "Variable", @@ -35454,8 +38455,8 @@ "title": "Variables", "kind": 32, "children": [ - 46, - 45 + 50, + 49 ] } ], @@ -35477,7 +38478,7 @@ "defaultValue": "null" }, { - "id": 42, + "id": 46, "name": "ref", "kind": 1024, "kindString": "Property", @@ -35498,7 +38499,7 @@ "defaultValue": "\"\"" }, { - "id": 51, + "id": 55, "name": "refEvent", "kind": 1024, "kindString": "Property", @@ -35528,7 +38529,7 @@ "defaultValue": "null" }, { - "id": 40, + "id": 44, "name": "sent", "kind": 1024, "kindString": "Property", @@ -35549,7 +38550,7 @@ "defaultValue": "false" }, { - "id": 56, + "id": 60, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -35574,7 +38575,7 @@ } }, { - "id": 41, + "id": 45, "name": "timeoutTimer", "kind": 1024, "kindString": "Property", @@ -35604,7 +38605,7 @@ "defaultValue": "undefined" }, { - "id": 77, + "id": 83, "name": "_cancelRefEvent", "kind": 2048, "kindString": "Method", @@ -35614,7 +38615,7 @@ }, "signatures": [ { - "id": 78, + "id": 84, "name": "_cancelRefEvent", "kind": 4096, "kindString": "Call signature", @@ -35630,13 +38631,13 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 89, + "line": 94, "character": 25 } ] }, { - "id": 79, + "id": 85, "name": "_cancelTimeout", "kind": 2048, "kindString": "Method", @@ -35646,7 +38647,7 @@ }, "signatures": [ { - "id": 80, + "id": 86, "name": "_cancelTimeout", "kind": 4096, "kindString": "Call signature", @@ -35662,13 +38663,13 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 96, + "line": 101, "character": 24 } ] }, { - "id": 87, + "id": 93, "name": "_hasReceived", "kind": 2048, "kindString": "Method", @@ -35678,7 +38679,7 @@ }, "signatures": [ { - "id": 88, + "id": 94, "name": "_hasReceived", "kind": 4096, "kindString": "Call signature", @@ -35687,7 +38688,7 @@ }, "parameters": [ { - "id": 89, + "id": 95, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -35722,13 +38723,13 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 113, + "line": 118, "character": 22 } ] }, { - "id": 81, + "id": 87, "name": "_matchReceive", "kind": 2048, "kindString": "Method", @@ -35738,7 +38739,7 @@ }, "signatures": [ { - "id": 82, + "id": 88, "name": "_matchReceive", "kind": 4096, "kindString": "Call signature", @@ -35747,7 +38748,7 @@ }, "parameters": [ { - "id": 83, + "id": 89, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -35758,7 +38759,7 @@ "type": { "type": "reflection", "declaration": { - "id": 84, + "id": 90, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -35767,7 +38768,7 @@ }, "children": [ { - "id": 86, + "id": 92, "name": "response", "kind": 32, "kindString": "Variable", @@ -35777,7 +38778,7 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 103, + "line": 108, "character": 12 } ], @@ -35787,7 +38788,7 @@ } }, { - "id": 85, + "id": 91, "name": "status", "kind": 32, "kindString": "Variable", @@ -35797,7 +38798,7 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 102, + "line": 107, "character": 10 } ], @@ -35812,15 +38813,15 @@ "title": "Variables", "kind": 32, "children": [ - 86, - 85 + 92, + 91 ] } ], "sources": [ { "fileName": "lib/push.ts", - "line": 101, + "line": 106, "character": 24 } ] @@ -35837,13 +38838,44 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 101, + "line": 106, "character": 23 } ] }, { - "id": 67, + "id": 81, + "name": "destroy", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 82, + "name": "destroy", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 89, + "character": 9 + } + ] + }, + { + "id": 71, "name": "receive", "kind": 2048, "kindString": "Method", @@ -35852,7 +38884,7 @@ }, "signatures": [ { - "id": 68, + "id": 72, "name": "receive", "kind": 4096, "kindString": "Call signature", @@ -35861,7 +38893,7 @@ }, "parameters": [ { - "id": 69, + "id": 73, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -35874,7 +38906,7 @@ } }, { - "id": 70, + "id": 74, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -35902,7 +38934,7 @@ ] }, { - "id": 62, + "id": 66, "name": "resend", "kind": 2048, "kindString": "Method", @@ -35911,7 +38943,7 @@ }, "signatures": [ { - "id": 63, + "id": 67, "name": "resend", "kind": 4096, "kindString": "Call signature", @@ -35920,7 +38952,7 @@ }, "parameters": [ { - "id": 64, + "id": 68, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -35948,7 +38980,7 @@ ] }, { - "id": 65, + "id": 69, "name": "send", "kind": 2048, "kindString": "Method", @@ -35957,7 +38989,7 @@ }, "signatures": [ { - "id": 66, + "id": 70, "name": "send", "kind": 4096, "kindString": "Call signature", @@ -35979,7 +39011,7 @@ ] }, { - "id": 71, + "id": 75, "name": "startTimeout", "kind": 2048, "kindString": "Method", @@ -35988,7 +39020,7 @@ }, "signatures": [ { - "id": 72, + "id": 76, "name": "startTimeout", "kind": 4096, "kindString": "Call signature", @@ -36010,7 +39042,7 @@ ] }, { - "id": 73, + "id": 77, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -36019,7 +39051,7 @@ }, "signatures": [ { - "id": 74, + "id": 78, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -36028,7 +39060,7 @@ }, "parameters": [ { - "id": 75, + "id": 79, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -36041,7 +39073,7 @@ } }, { - "id": 76, + "id": 80, "name": "response", "kind": 32768, "kindString": "Parameter", @@ -36074,38 +39106,39 @@ "title": "Constructors", "kind": 512, "children": [ - 52 + 56 ] }, { "title": "Properties", "kind": 1024, "children": [ - 53, - 54, - 55, - 47, - 43, - 42, + 57, + 58, + 59, 51, - 40, - 56, - 41 + 47, + 46, + 55, + 44, + 60, + 45 ] }, { "title": "Methods", "kind": 2048, "children": [ - 77, - 79, + 83, + 85, + 93, 87, 81, - 67, - 62, - 65, 71, - 73 + 66, + 69, + 75, + 77 ] } ], @@ -36123,7 +39156,7 @@ "title": "Classes", "kind": 128, "children": [ - 39 + 43 ] } ], @@ -36136,7 +39169,7 @@ ] }, { - "id": 169, + "id": 175, "name": "\"lib/serializer\"", "kind": 1, "kindString": "Module", @@ -36146,7 +39179,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts", "children": [ { - "id": 170, + "id": 176, "name": "Serializer", "kind": 128, "kindString": "Class", @@ -36155,7 +39188,7 @@ }, "children": [ { - "id": 171, + "id": 177, "name": "HEADER_LENGTH", "kind": 1024, "kindString": "Property", @@ -36176,7 +39209,7 @@ "defaultValue": "1" }, { - "id": 176, + "id": 182, "name": "_binaryDecode", "kind": 2048, "kindString": "Method", @@ -36186,7 +39219,7 @@ }, "signatures": [ { - "id": 177, + "id": 183, "name": "_binaryDecode", "kind": 4096, "kindString": "Call signature", @@ -36195,7 +39228,7 @@ }, "parameters": [ { - "id": 178, + "id": 184, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -36211,7 +39244,7 @@ "type": { "type": "reflection", "declaration": { - "id": 179, + "id": 185, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -36220,7 +39253,7 @@ }, "children": [ { - "id": 182, + "id": 188, "name": "event", "kind": 32, "kindString": "Variable", @@ -36240,7 +39273,7 @@ } }, { - "id": 183, + "id": 189, "name": "payload", "kind": 32, "kindString": "Variable", @@ -36260,7 +39293,7 @@ } }, { - "id": 180, + "id": 186, "name": "ref", "kind": 32, "kindString": "Variable", @@ -36280,7 +39313,7 @@ } }, { - "id": 181, + "id": 187, "name": "topic", "kind": 32, "kindString": "Variable", @@ -36305,10 +39338,10 @@ "title": "Variables", "kind": 32, "children": [ - 182, - 183, - 180, - 181 + 188, + 189, + 186, + 187 ] } ] @@ -36325,7 +39358,7 @@ ] }, { - "id": 184, + "id": 190, "name": "_decodeBroadcast", "kind": 2048, "kindString": "Method", @@ -36335,7 +39368,7 @@ }, "signatures": [ { - "id": 185, + "id": 191, "name": "_decodeBroadcast", "kind": 4096, "kindString": "Call signature", @@ -36344,7 +39377,7 @@ }, "parameters": [ { - "id": 186, + "id": 192, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -36357,7 +39390,7 @@ } }, { - "id": 187, + "id": 193, "name": "view", "kind": 32768, "kindString": "Parameter", @@ -36370,7 +39403,7 @@ } }, { - "id": 188, + "id": 194, "name": "decoder", "kind": 32768, "kindString": "Parameter", @@ -36386,7 +39419,7 @@ "type": { "type": "reflection", "declaration": { - "id": 189, + "id": 195, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -36395,7 +39428,7 @@ }, "children": [ { - "id": 192, + "id": 198, "name": "event", "kind": 32, "kindString": "Variable", @@ -36415,7 +39448,7 @@ } }, { - "id": 193, + "id": 199, "name": "payload", "kind": 32, "kindString": "Variable", @@ -36435,7 +39468,7 @@ } }, { - "id": 190, + "id": 196, "name": "ref", "kind": 32, "kindString": "Variable", @@ -36455,7 +39488,7 @@ } }, { - "id": 191, + "id": 197, "name": "topic", "kind": 32, "kindString": "Variable", @@ -36480,10 +39513,10 @@ "title": "Variables", "kind": 32, "children": [ - 192, - 193, - 190, - 191 + 198, + 199, + 196, + 197 ] } ], @@ -36507,7 +39540,7 @@ ] }, { - "id": 172, + "id": 178, "name": "decode", "kind": 2048, "kindString": "Method", @@ -36516,7 +39549,7 @@ }, "signatures": [ { - "id": 173, + "id": 179, "name": "decode", "kind": 4096, "kindString": "Call signature", @@ -36525,7 +39558,7 @@ }, "parameters": [ { - "id": 174, + "id": 180, "name": "rawPayload", "kind": 32768, "kindString": "Parameter", @@ -36547,7 +39580,7 @@ } }, { - "id": 175, + "id": 181, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -36580,16 +39613,16 @@ "title": "Properties", "kind": 1024, "children": [ - 171 + 177 ] }, { "title": "Methods", "kind": 2048, "children": [ - 176, - 184, - 172 + 182, + 190, + 178 ] } ], @@ -36607,7 +39640,7 @@ "title": "Classes", "kind": 128, "children": [ - 170 + 176 ] } ], @@ -36620,7 +39653,7 @@ ] }, { - "id": 24, + "id": 28, "name": "\"lib/timer\"", "kind": 1, "kindString": "Module", @@ -36630,7 +39663,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/timer.ts", "children": [ { - "id": 25, + "id": 29, "name": "Timer", "kind": 128, "kindString": "Class", @@ -36648,7 +39681,7 @@ }, "children": [ { - "id": 28, + "id": 32, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -36657,7 +39690,7 @@ }, "signatures": [ { - "id": 31, + "id": 35, "name": "new Timer", "kind": 16384, "kindString": "Constructor signature", @@ -36666,7 +39699,7 @@ }, "parameters": [ { - "id": 32, + "id": 36, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -36679,7 +39712,7 @@ } }, { - "id": 33, + "id": 37, "name": "timerCalc", "kind": 32768, "kindString": "Parameter", @@ -36694,7 +39727,7 @@ ], "type": { "type": "reference", - "id": 25, + "id": 29, "name": "Timer" } } @@ -36708,7 +39741,7 @@ ] }, { - "id": 29, + "id": 33, "name": "callback", "kind": 1024, "kindString": "Property", @@ -36730,7 +39763,7 @@ } }, { - "id": 26, + "id": 30, "name": "timer", "kind": 1024, "kindString": "Property", @@ -36760,7 +39793,7 @@ "defaultValue": "undefined" }, { - "id": 30, + "id": 34, "name": "timerCalc", "kind": 1024, "kindString": "Property", @@ -36782,7 +39815,7 @@ } }, { - "id": 27, + "id": 31, "name": "tries", "kind": 1024, "kindString": "Property", @@ -36803,7 +39836,7 @@ "defaultValue": "0" }, { - "id": 34, + "id": 38, "name": "reset", "kind": 2048, "kindString": "Method", @@ -36812,7 +39845,7 @@ }, "signatures": [ { - "id": 35, + "id": 39, "name": "reset", "kind": 4096, "kindString": "Call signature", @@ -36834,7 +39867,7 @@ ] }, { - "id": 36, + "id": 40, "name": "scheduleTimeout", "kind": 2048, "kindString": "Method", @@ -36843,7 +39876,7 @@ }, "signatures": [ { - "id": 37, + "id": 41, "name": "scheduleTimeout", "kind": 4096, "kindString": "Call signature", @@ -36870,25 +39903,25 @@ "title": "Constructors", "kind": 512, "children": [ - 28 + 32 ] }, { "title": "Properties", "kind": 1024, "children": [ - 29, - 26, + 33, 30, - 27 + 34, + 31 ] }, { "title": "Methods", "kind": 2048, "children": [ - 34, - 36 + 38, + 40 ] } ], @@ -36906,7 +39939,7 @@ "title": "Classes", "kind": 128, "children": [ - 25 + 29 ] } ], @@ -36919,7 +39952,7 @@ ] }, { - "id": 327, + "id": 333, "name": "\"lib/transformers\"", "kind": 1, "kindString": "Module", @@ -36929,7 +39962,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts", "children": [ { - "id": 328, + "id": 334, "name": "PostgresTypes", "kind": 4, "kindString": "Enumeration", @@ -36941,7 +39974,7 @@ }, "children": [ { - "id": 329, + "id": 335, "name": "abstime", "kind": 16, "kindString": "Enumeration member", @@ -36958,7 +39991,7 @@ "defaultValue": "\"abstime\"" }, { - "id": 330, + "id": 336, "name": "bool", "kind": 16, "kindString": "Enumeration member", @@ -36975,7 +40008,7 @@ "defaultValue": "\"bool\"" }, { - "id": 331, + "id": 337, "name": "date", "kind": 16, "kindString": "Enumeration member", @@ -36992,7 +40025,7 @@ "defaultValue": "\"date\"" }, { - "id": 332, + "id": 338, "name": "daterange", "kind": 16, "kindString": "Enumeration member", @@ -37009,7 +40042,7 @@ "defaultValue": "\"daterange\"" }, { - "id": 333, + "id": 339, "name": "float4", "kind": 16, "kindString": "Enumeration member", @@ -37026,7 +40059,7 @@ "defaultValue": "\"float4\"" }, { - "id": 334, + "id": 340, "name": "float8", "kind": 16, "kindString": "Enumeration member", @@ -37043,7 +40076,7 @@ "defaultValue": "\"float8\"" }, { - "id": 335, + "id": 341, "name": "int2", "kind": 16, "kindString": "Enumeration member", @@ -37060,7 +40093,7 @@ "defaultValue": "\"int2\"" }, { - "id": 336, + "id": 342, "name": "int4", "kind": 16, "kindString": "Enumeration member", @@ -37077,7 +40110,7 @@ "defaultValue": "\"int4\"" }, { - "id": 337, + "id": 343, "name": "int4range", "kind": 16, "kindString": "Enumeration member", @@ -37094,7 +40127,7 @@ "defaultValue": "\"int4range\"" }, { - "id": 338, + "id": 344, "name": "int8", "kind": 16, "kindString": "Enumeration member", @@ -37111,7 +40144,7 @@ "defaultValue": "\"int8\"" }, { - "id": 339, + "id": 345, "name": "int8range", "kind": 16, "kindString": "Enumeration member", @@ -37128,7 +40161,7 @@ "defaultValue": "\"int8range\"" }, { - "id": 340, + "id": 346, "name": "json", "kind": 16, "kindString": "Enumeration member", @@ -37145,7 +40178,7 @@ "defaultValue": "\"json\"" }, { - "id": 341, + "id": 347, "name": "jsonb", "kind": 16, "kindString": "Enumeration member", @@ -37162,7 +40195,7 @@ "defaultValue": "\"jsonb\"" }, { - "id": 342, + "id": 348, "name": "money", "kind": 16, "kindString": "Enumeration member", @@ -37179,7 +40212,7 @@ "defaultValue": "\"money\"" }, { - "id": 343, + "id": 349, "name": "numeric", "kind": 16, "kindString": "Enumeration member", @@ -37196,7 +40229,7 @@ "defaultValue": "\"numeric\"" }, { - "id": 344, + "id": 350, "name": "oid", "kind": 16, "kindString": "Enumeration member", @@ -37213,7 +40246,7 @@ "defaultValue": "\"oid\"" }, { - "id": 345, + "id": 351, "name": "reltime", "kind": 16, "kindString": "Enumeration member", @@ -37230,7 +40263,7 @@ "defaultValue": "\"reltime\"" }, { - "id": 346, + "id": 352, "name": "time", "kind": 16, "kindString": "Enumeration member", @@ -37247,7 +40280,7 @@ "defaultValue": "\"time\"" }, { - "id": 347, + "id": 353, "name": "timestamp", "kind": 16, "kindString": "Enumeration member", @@ -37264,7 +40297,7 @@ "defaultValue": "\"timestamp\"" }, { - "id": 348, + "id": 354, "name": "timestamptz", "kind": 16, "kindString": "Enumeration member", @@ -37281,7 +40314,7 @@ "defaultValue": "\"timestamptz\"" }, { - "id": 349, + "id": 355, "name": "timetz", "kind": 16, "kindString": "Enumeration member", @@ -37298,7 +40331,7 @@ "defaultValue": "\"timetz\"" }, { - "id": 350, + "id": 356, "name": "tsrange", "kind": 16, "kindString": "Enumeration member", @@ -37315,7 +40348,7 @@ "defaultValue": "\"tsrange\"" }, { - "id": 351, + "id": 357, "name": "tstzrange", "kind": 16, "kindString": "Enumeration member", @@ -37337,12 +40370,6 @@ "title": "Enumeration members", "kind": 16, "children": [ - 329, - 330, - 331, - 332, - 333, - 334, 335, 336, 337, @@ -37359,7 +40386,13 @@ 348, 349, 350, - 351 + 351, + 352, + 353, + 354, + 355, + 356, + 357 ] } ], @@ -37372,7 +40405,7 @@ ] }, { - "id": 352, + "id": 358, "name": "Column", "kind": 4194304, "kindString": "Type alias", @@ -37387,14 +40420,14 @@ "type": { "type": "reflection", "declaration": { - "id": 353, + "id": 359, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 354, + "id": 360, "name": "flags", "kind": 32, "kindString": "Variable", @@ -37415,7 +40448,7 @@ } }, { - "id": 355, + "id": 361, "name": "name", "kind": 32, "kindString": "Variable", @@ -37433,7 +40466,7 @@ } }, { - "id": 356, + "id": 362, "name": "type", "kind": 32, "kindString": "Variable", @@ -37451,7 +40484,7 @@ } }, { - "id": 357, + "id": 363, "name": "type_modifier", "kind": 32, "kindString": "Variable", @@ -37474,10 +40507,10 @@ "title": "Variables", "kind": 32, "children": [ - 354, - 355, - 356, - 357 + 360, + 361, + 362, + 363 ] } ], @@ -37492,7 +40525,7 @@ } }, { - "id": 358, + "id": 364, "name": "Records", "kind": 4194304, "kindString": "Type alias", @@ -37507,21 +40540,21 @@ "type": { "type": "reflection", "declaration": { - "id": 359, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 360, + "id": 366, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 361, + "id": 367, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -37549,7 +40582,7 @@ } }, { - "id": 378, + "id": 384, "name": "convertCell", "kind": 64, "kindString": "Function", @@ -37562,7 +40595,7 @@ "tags": [ { "tag": "example", - "text": "convertCell('bool', 'true')\n//=> true" + "text": "convertCell('bool', 't')\n//=> true" }, { "tag": "example", @@ -37576,7 +40609,7 @@ }, "signatures": [ { - "id": 379, + "id": 385, "name": "convertCell", "kind": 4096, "kindString": "Call signature", @@ -37588,7 +40621,7 @@ "tags": [ { "tag": "example", - "text": "convertCell('bool', 'true')\n//=> true" + "text": "convertCell('bool', 't')\n//=> true" }, { "tag": "example", @@ -37602,7 +40635,7 @@ }, "parameters": [ { - "id": 380, + "id": 386, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -37618,7 +40651,7 @@ } }, { - "id": 381, + "id": 387, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -37649,7 +40682,7 @@ ] }, { - "id": 362, + "id": 368, "name": "convertChangeData", "kind": 64, "kindString": "Function", @@ -37668,7 +40701,7 @@ }, "signatures": [ { - "id": 363, + "id": 369, "name": "convertChangeData", "kind": 4096, "kindString": "Call signature", @@ -37686,7 +40719,7 @@ }, "parameters": [ { - "id": 364, + "id": 370, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -37697,13 +40730,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 352, + "id": 358, "name": "Column" } } }, { - "id": 365, + "id": 371, "name": "records", "kind": 32768, "kindString": "Parameter", @@ -37713,12 +40746,12 @@ "comment": {}, "type": { "type": "reference", - "id": 358, + "id": 364, "name": "Records" } }, { - "id": 366, + "id": 372, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -37731,7 +40764,7 @@ "type": { "type": "reflection", "declaration": { - "id": 367, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -37740,7 +40773,7 @@ }, "children": [ { - "id": 368, + "id": 374, "name": "skipTypes", "kind": 32, "kindString": "Variable", @@ -37769,7 +40802,7 @@ "title": "Variables", "kind": 32, "children": [ - 368 + 374 ] } ], @@ -37788,7 +40821,7 @@ "type": { "type": "reflection", "declaration": { - "id": 369, + "id": 375, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -37797,7 +40830,7 @@ }, "indexSignature": [ { - "id": 370, + "id": 376, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -37806,7 +40839,7 @@ }, "parameters": [ { - "id": 371, + "id": 377, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -37838,7 +40871,7 @@ ] }, { - "id": 372, + "id": 378, "name": "convertColumn", "kind": 64, "kindString": "Function", @@ -37852,17 +40885,17 @@ "tags": [ { "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33" + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, [])\n//=> 33" }, { "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n" + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n" } ] }, "signatures": [ { - "id": 373, + "id": 379, "name": "convertColumn", "kind": 4096, "kindString": "Call signature", @@ -37875,17 +40908,17 @@ "tags": [ { "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33" + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, [])\n//=> 33" }, { "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n" + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n" } ] }, "parameters": [ { - "id": 374, + "id": 380, "name": "columnName", "kind": 32768, "kindString": "Parameter", @@ -37901,7 +40934,7 @@ } }, { - "id": 375, + "id": 381, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -37912,13 +40945,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 352, + "id": 358, "name": "Column" } } }, { - "id": 376, + "id": 382, "name": "records", "kind": 32768, "kindString": "Parameter", @@ -37930,12 +40963,12 @@ }, "type": { "type": "reference", - "id": 358, + "id": 364, "name": "Records" } }, { - "id": 377, + "id": 383, "name": "skipTypes", "kind": 32768, "kindString": "Parameter", @@ -37969,7 +41002,7 @@ ] }, { - "id": 382, + "id": 388, "name": "noop", "kind": 64, "kindString": "Function", @@ -37978,14 +41011,14 @@ }, "signatures": [ { - "id": 383, + "id": 389, "name": "noop", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 384, + "id": 390, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -38011,7 +41044,7 @@ ] }, { - "id": 406, + "id": 412, "name": "toArray", "kind": 64, "kindString": "Function", @@ -38034,7 +41067,7 @@ }, "signatures": [ { - "id": 407, + "id": 413, "name": "toArray", "kind": 4096, "kindString": "Call signature", @@ -38056,7 +41089,7 @@ }, "parameters": [ { - "id": 408, + "id": 414, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -38069,7 +41102,7 @@ } }, { - "id": 409, + "id": 415, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -38100,7 +41133,7 @@ ] }, { - "id": 385, + "id": 391, "name": "toBoolean", "kind": 64, "kindString": "Function", @@ -38110,7 +41143,7 @@ }, "signatures": [ { - "id": 386, + "id": 392, "name": "toBoolean", "kind": 4096, "kindString": "Call signature", @@ -38119,7 +41152,7 @@ }, "parameters": [ { - "id": 387, + "id": 393, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -38160,7 +41193,7 @@ ] }, { - "id": 388, + "id": 394, "name": "toDate", "kind": 64, "kindString": "Function", @@ -38170,7 +41203,7 @@ }, "signatures": [ { - "id": 389, + "id": 395, "name": "toDate", "kind": 4096, "kindString": "Call signature", @@ -38179,7 +41212,7 @@ }, "parameters": [ { - "id": 390, + "id": 396, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -38207,7 +41240,7 @@ ] }, { - "id": 391, + "id": 397, "name": "toDateRange", "kind": 64, "kindString": "Function", @@ -38217,7 +41250,7 @@ }, "signatures": [ { - "id": 392, + "id": 398, "name": "toDateRange", "kind": 4096, "kindString": "Call signature", @@ -38226,7 +41259,7 @@ }, "parameters": [ { - "id": 393, + "id": 399, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -38257,7 +41290,7 @@ ] }, { - "id": 394, + "id": 400, "name": "toFloat", "kind": 64, "kindString": "Function", @@ -38267,7 +41300,7 @@ }, "signatures": [ { - "id": 395, + "id": 401, "name": "toFloat", "kind": 4096, "kindString": "Call signature", @@ -38276,7 +41309,7 @@ }, "parameters": [ { - "id": 396, + "id": 402, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -38304,7 +41337,7 @@ ] }, { - "id": 397, + "id": 403, "name": "toInt", "kind": 64, "kindString": "Function", @@ -38314,7 +41347,7 @@ }, "signatures": [ { - "id": 398, + "id": 404, "name": "toInt", "kind": 4096, "kindString": "Call signature", @@ -38323,7 +41356,7 @@ }, "parameters": [ { - "id": 399, + "id": 405, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -38351,7 +41384,7 @@ ] }, { - "id": 400, + "id": 406, "name": "toIntRange", "kind": 64, "kindString": "Function", @@ -38361,7 +41394,7 @@ }, "signatures": [ { - "id": 401, + "id": 407, "name": "toIntRange", "kind": 4096, "kindString": "Call signature", @@ -38370,7 +41403,7 @@ }, "parameters": [ { - "id": 402, + "id": 408, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -38401,7 +41434,7 @@ ] }, { - "id": 403, + "id": 409, "name": "toJson", "kind": 64, "kindString": "Function", @@ -38411,7 +41444,7 @@ }, "signatures": [ { - "id": 404, + "id": 410, "name": "toJson", "kind": 4096, "kindString": "Call signature", @@ -38420,7 +41453,7 @@ }, "parameters": [ { - "id": 405, + "id": 411, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -38448,7 +41481,7 @@ ] }, { - "id": 410, + "id": 416, "name": "toTimestampString", "kind": 64, "kindString": "Function", @@ -38467,7 +41500,7 @@ }, "signatures": [ { - "id": 411, + "id": 417, "name": "toTimestampString", "kind": 4096, "kindString": "Call signature", @@ -38485,7 +41518,7 @@ }, "parameters": [ { - "id": 412, + "id": 418, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -38518,34 +41551,34 @@ "title": "Enumerations", "kind": 4, "children": [ - 328 + 334 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 352, - 358 + 358, + 364 ] }, { "title": "Functions", "kind": 64, "children": [ + 384, + 368, 378, - 362, - 372, - 382, - 406, - 385, 388, + 412, 391, 394, 397, 400, 403, - 410 + 406, + 409, + 416 ] } ], @@ -38556,6 +41589,56 @@ "character": 0 } ] + }, + { + "id": 1, + "name": "\"lib/version\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/version.ts", + "children": [ + { + "id": 2, + "name": "version", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/version.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "stringLiteral", + "value": "0.0.0" + }, + "defaultValue": "\"0.0.0\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 2 + ] + } + ], + "sources": [ + { + "fileName": "lib/version.ts", + "line": 1, + "character": 0 + } + ] } ], "groups": [ @@ -38563,14 +41646,15 @@ "title": "Modules", "kind": 1, "children": [ - 194, - 90, - 413, - 1, - 38, - 169, - 24, - 327 + 200, + 96, + 419, + 3, + 42, + 175, + 28, + 333, + 1 ] } ] @@ -38583,7 +41667,7 @@ "originalName": "", "children": [ { - "id": 270, + "id": 276, "name": "\"SupabaseStorageClient\"", "kind": 1, "kindString": "Module", @@ -38593,7 +41677,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/SupabaseStorageClient.ts", "children": [ { - "id": 271, + "id": 277, "name": "SupabaseStorageClient", "kind": 128, "kindString": "Class", @@ -38602,7 +41686,7 @@ }, "children": [ { - "id": 272, + "id": 278, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -38611,7 +41695,7 @@ }, "signatures": [ { - "id": 273, + "id": 279, "name": "new SupabaseStorageClient", "kind": 16384, "kindString": "Constructor signature", @@ -38620,7 +41704,7 @@ }, "parameters": [ { - "id": 274, + "id": 280, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -38633,7 +41717,7 @@ } }, { - "id": 275, + "id": 281, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -38643,7 +41727,7 @@ "type": { "type": "reflection", "declaration": { - "id": 276, + "id": 282, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38652,7 +41736,7 @@ }, "indexSignature": [ { - "id": 277, + "id": 283, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -38661,7 +41745,7 @@ }, "parameters": [ { - "id": 278, + "id": 284, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -38694,12 +41778,12 @@ ], "type": { "type": "reference", - "id": 271, + "id": 277, "name": "SupabaseStorageClient" }, "overwrites": { "type": "reference", - "id": 96, + "id": 101, "name": "StorageBucketApi.__constructor" } } @@ -38713,12 +41797,12 @@ ], "overwrites": { "type": "reference", - "id": 96, + "id": 101, "name": "StorageBucketApi.__constructor" } }, { - "id": 283, + "id": 289, "name": "headers", "kind": 1024, "kindString": "Property", @@ -38729,14 +41813,14 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 6, + "line": 7, "character": 19 } ], "type": { "type": "reflection", "declaration": { - "id": 284, + "id": 290, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38745,7 +41829,7 @@ }, "indexSignature": [ { - "id": 285, + "id": 291, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -38754,7 +41838,7 @@ }, "parameters": [ { - "id": 286, + "id": 292, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -38776,7 +41860,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 6, + "line": 7, "character": 20 } ] @@ -38784,12 +41868,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 92, + "id": 97, "name": "StorageBucketApi.headers" } }, { - "id": 282, + "id": 288, "name": "url", "kind": 1024, "kindString": "Property", @@ -38800,7 +41884,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 5, + "line": 6, "character": 15 } ], @@ -38810,12 +41894,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 91, + "id": 96, "name": "StorageBucketApi.url" } }, { - "id": 298, + "id": 304, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -38824,7 +41908,7 @@ }, "signatures": [ { - "id": 299, + "id": 305, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -38837,7 +41921,7 @@ }, "parameters": [ { - "id": 300, + "id": 306, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -38853,7 +41937,7 @@ } }, { - "id": 301, + "id": 307, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -38863,7 +41947,7 @@ "type": { "type": "reflection", "declaration": { - "id": 302, + "id": 308, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38872,7 +41956,7 @@ }, "children": [ { - "id": 303, + "id": 309, "name": "public", "kind": 32, "kindString": "Variable", @@ -38882,7 +41966,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 47, + "line": 48, "character": 21 } ], @@ -38897,14 +41981,14 @@ "title": "Variables", "kind": 32, "children": [ - 303 + 309 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 47, + "line": 48, "character": 12 } ] @@ -38919,7 +42003,7 @@ { "type": "reflection", "declaration": { - "id": 304, + "id": 310, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38928,7 +42012,7 @@ }, "children": [ { - "id": 305, + "id": 311, "name": "data", "kind": 32, "kindString": "Variable", @@ -38938,7 +42022,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 19 } ], @@ -38957,7 +42041,7 @@ } }, { - "id": 306, + "id": 312, "name": "error", "kind": 32, "kindString": "Variable", @@ -38967,7 +42051,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 41 } ], @@ -38991,15 +42075,15 @@ "title": "Variables", "kind": 32, "children": [ - 305, - 306 + 311, + 312 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 13 } ] @@ -39010,7 +42094,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 114, + "id": 119, "name": "StorageBucketApi.createBucket" } } @@ -39018,18 +42102,18 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 45, + "line": 46, "character": 20 } ], "inheritedFrom": { "type": "reference", - "id": 114, + "id": 119, "name": "StorageBucketApi.createBucket" } }, { - "id": 326, + "id": 332, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -39038,7 +42122,7 @@ }, "signatures": [ { - "id": 327, + "id": 333, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -39050,7 +42134,7 @@ }, "parameters": [ { - "id": 328, + "id": 334, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -39072,7 +42156,7 @@ { "type": "reflection", "declaration": { - "id": 329, + "id": 335, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39081,7 +42165,7 @@ }, "children": [ { - "id": 330, + "id": 336, "name": "data", "kind": 32, "kindString": "Variable", @@ -39091,7 +42175,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 19 } ], @@ -39101,7 +42185,7 @@ { "type": "reflection", "declaration": { - "id": 331, + "id": 337, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39110,7 +42194,7 @@ }, "children": [ { - "id": 332, + "id": 338, "name": "message", "kind": 32, "kindString": "Variable", @@ -39120,7 +42204,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 30 } ], @@ -39135,14 +42219,14 @@ "title": "Variables", "kind": 32, "children": [ - 332 + 338 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 20 } ] @@ -39156,7 +42240,7 @@ } }, { - "id": 333, + "id": 339, "name": "error", "kind": 32, "kindString": "Variable", @@ -39166,7 +42250,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 54 } ], @@ -39190,15 +42274,15 @@ "title": "Variables", "kind": 32, "children": [ - 330, - 333 + 336, + 339 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 13 } ] @@ -39209,7 +42293,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 142, + "id": 147, "name": "StorageBucketApi.deleteBucket" } } @@ -39217,18 +42301,18 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 104, + "line": 105, "character": 20 } ], "inheritedFrom": { "type": "reference", - "id": 142, + "id": 147, "name": "StorageBucketApi.deleteBucket" } }, { - "id": 318, + "id": 324, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -39237,7 +42321,7 @@ }, "signatures": [ { - "id": 319, + "id": 325, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -39249,7 +42333,7 @@ }, "parameters": [ { - "id": 320, + "id": 326, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -39271,7 +42355,7 @@ { "type": "reflection", "declaration": { - "id": 321, + "id": 327, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39280,7 +42364,7 @@ }, "children": [ { - "id": 322, + "id": 328, "name": "data", "kind": 32, "kindString": "Variable", @@ -39290,7 +42374,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 19 } ], @@ -39300,7 +42384,7 @@ { "type": "reflection", "declaration": { - "id": 323, + "id": 329, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39309,7 +42393,7 @@ }, "children": [ { - "id": 324, + "id": 330, "name": "message", "kind": 32, "kindString": "Variable", @@ -39319,7 +42403,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 30 } ], @@ -39334,14 +42418,14 @@ "title": "Variables", "kind": 32, "children": [ - 324 + 330 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 20 } ] @@ -39355,7 +42439,7 @@ } }, { - "id": 325, + "id": 331, "name": "error", "kind": 32, "kindString": "Variable", @@ -39365,7 +42449,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 54 } ], @@ -39389,15 +42473,15 @@ "title": "Variables", "kind": 32, "children": [ - 322, - 325 + 328, + 331 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 13 } ] @@ -39408,7 +42492,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 134, + "id": 139, "name": "StorageBucketApi.emptyBucket" } } @@ -39416,18 +42500,18 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 87, + "line": 88, "character": 19 } ], "inheritedFrom": { "type": "reference", - "id": 134, + "id": 139, "name": "StorageBucketApi.emptyBucket" } }, { - "id": 279, + "id": 285, "name": "from", "kind": 2048, "kindString": "Method", @@ -39436,7 +42520,7 @@ }, "signatures": [ { - "id": 280, + "id": 286, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -39448,7 +42532,7 @@ }, "parameters": [ { - "id": 281, + "id": 287, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -39466,7 +42550,7 @@ ], "type": { "type": "reference", - "id": 154, + "id": 159, "name": "StorageFileApi" } } @@ -39480,7 +42564,7 @@ ] }, { - "id": 292, + "id": 298, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -39489,7 +42573,7 @@ }, "signatures": [ { - "id": 293, + "id": 299, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -39501,7 +42585,7 @@ }, "parameters": [ { - "id": 294, + "id": 300, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -39517,6 +42601,142 @@ } } ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 301, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 302, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 31, + "character": 45 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "Bucket" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 303, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 31, + "character": 67 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 302, + 303 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 31, + "character": 39 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 113, + "name": "StorageBucketApi.getBucket" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 31, + "character": 17 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 113, + "name": "StorageBucketApi.getBucket" + } + }, + { + "id": 293, + "name": "listBuckets", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 294, + "name": "listBuckets", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Retrieves the details of all Storage buckets within an existing product." + }, "type": { "type": "reference", "typeArguments": [ @@ -39542,17 +42762,20 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 45 + "line": 17, + "character": 37 } ], "type": { "type": "union", "types": [ { - "type": "reference", - "id": 58, - "name": "Bucket" + "type": "array", + "elementType": { + "type": "reference", + "id": 58, + "name": "Bucket" + } }, { "type": "intrinsic", @@ -39572,8 +42795,8 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 67 + "line": 17, + "character": 61 } ], "type": { @@ -39604,146 +42827,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 39 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 108, - "name": "StorageBucketApi.getBucket" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 17 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 108, - "name": "StorageBucketApi.getBucket" - } - }, - { - "id": 287, - "name": "listBuckets", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 288, - "name": "listBuckets", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Retrieves the details of all Storage buckets within an existing product." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 289, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 290, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, - "character": 37 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "array", - "elementType": { - "type": "reference", - "id": 58, - "name": "Bucket" - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 291, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, - "character": 61 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 290, - 291 - ] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 31 } ] @@ -39754,7 +42838,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 103, + "id": 108, "name": "StorageBucketApi.listBuckets" } } @@ -39762,18 +42846,18 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 19 } ], "inheritedFrom": { "type": "reference", - "id": 103, + "id": 108, "name": "StorageBucketApi.listBuckets" } }, { - "id": 307, + "id": 313, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -39782,7 +42866,7 @@ }, "signatures": [ { - "id": 308, + "id": 314, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -39794,7 +42878,7 @@ }, "parameters": [ { - "id": 309, + "id": 315, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -39810,7 +42894,7 @@ } }, { - "id": 310, + "id": 316, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -39820,7 +42904,7 @@ "type": { "type": "reflection", "declaration": { - "id": 311, + "id": 317, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39829,7 +42913,7 @@ }, "children": [ { - "id": 312, + "id": 318, "name": "public", "kind": 32, "kindString": "Variable", @@ -39839,7 +42923,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 68, + "line": 69, "character": 21 } ], @@ -39854,14 +42938,14 @@ "title": "Variables", "kind": 32, "children": [ - 312 + 318 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 68, + "line": 69, "character": 12 } ] @@ -39875,7 +42959,7 @@ { "type": "reflection", "declaration": { - "id": 313, + "id": 319, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39884,7 +42968,7 @@ }, "children": [ { - "id": 314, + "id": 320, "name": "data", "kind": 32, "kindString": "Variable", @@ -39894,7 +42978,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 19 } ], @@ -39904,7 +42988,7 @@ { "type": "reflection", "declaration": { - "id": 315, + "id": 321, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39913,7 +42997,7 @@ }, "children": [ { - "id": 316, + "id": 322, "name": "message", "kind": 32, "kindString": "Variable", @@ -39923,7 +43007,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 30 } ], @@ -39938,14 +43022,14 @@ "title": "Variables", "kind": 32, "children": [ - 316 + 322 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 20 } ] @@ -39959,7 +43043,7 @@ } }, { - "id": 317, + "id": 323, "name": "error", "kind": 32, "kindString": "Variable", @@ -39969,7 +43053,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 54 } ], @@ -39993,15 +43077,15 @@ "title": "Variables", "kind": 32, "children": [ - 314, - 317 + 320, + 323 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 13 } ] @@ -40012,7 +43096,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 123, + "id": 128, "name": "StorageBucketApi.updateBucket" } } @@ -40020,13 +43104,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 66, + "line": 67, "character": 20 } ], "inheritedFrom": { "type": "reference", - "id": 123, + "id": 128, "name": "StorageBucketApi.updateBucket" } } @@ -40036,28 +43120,28 @@ "title": "Constructors", "kind": 512, "children": [ - 272 + 278 ] }, { "title": "Properties", "kind": 1024, "children": [ - 283, - 282 + 289, + 288 ] }, { "title": "Methods", "kind": 2048, "children": [ + 304, + 332, + 324, + 285, 298, - 326, - 318, - 279, - 292, - 287, - 307 + 293, + 313 ] } ], @@ -40071,7 +43155,7 @@ "extendedTypes": [ { "type": "reference", - "id": 90, + "id": 95, "name": "StorageBucketApi" } ] @@ -40082,7 +43166,7 @@ "title": "Classes", "kind": 128, "children": [ - 271 + 277 ] } ], @@ -40095,7 +43179,7 @@ ] }, { - "id": 334, + "id": 340, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -40105,7 +43189,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/index.ts", "children": [ { - "id": 335, + "id": 341, "name": "Bucket", "kind": 16777216, "kindString": "Reference", @@ -40115,7 +43199,7 @@ "target": 58 }, { - "id": 336, + "id": 342, "name": "FileObject", "kind": 16777216, "kindString": "Reference", @@ -40125,7 +43209,7 @@ "target": 65 }, { - "id": 338, + "id": 344, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", @@ -40135,7 +43219,7 @@ "target": 79 }, { - "id": 340, + "id": 346, "name": "Metadata", "kind": 16777216, "kindString": "Reference", @@ -40145,7 +43229,7 @@ "target": 87 }, { - "id": 339, + "id": 345, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", @@ -40155,7 +43239,7 @@ "target": 83 }, { - "id": 337, + "id": 343, "name": "SortBy", "kind": 16777216, "kindString": "Reference", @@ -40170,12 +43254,12 @@ "title": "References", "kind": 16777216, "children": [ - 335, - 336, - 338, - 340, - 339, - 337 + 341, + 342, + 344, + 346, + 345, + 343 ] } ], @@ -40188,7 +43272,7 @@ ] }, { - "id": 89, + "id": 94, "name": "\"lib/StorageBucketApi\"", "kind": 1, "kindString": "Module", @@ -40198,7 +43282,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageBucketApi.ts", "children": [ { - "id": 90, + "id": 95, "name": "StorageBucketApi", "kind": 128, "kindString": "Class", @@ -40207,7 +43291,7 @@ }, "children": [ { - "id": 96, + "id": 101, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -40216,7 +43300,7 @@ }, "signatures": [ { - "id": 97, + "id": 102, "name": "new StorageBucketApi", "kind": 16384, "kindString": "Constructor signature", @@ -40225,7 +43309,7 @@ }, "parameters": [ { - "id": 98, + "id": 103, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -40238,7 +43322,7 @@ } }, { - "id": 99, + "id": 104, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -40248,7 +43332,7 @@ "type": { "type": "reflection", "declaration": { - "id": 100, + "id": 105, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40257,7 +43341,7 @@ }, "indexSignature": [ { - "id": 101, + "id": 106, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -40266,7 +43350,7 @@ }, "parameters": [ { - "id": 102, + "id": 107, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -40288,7 +43372,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 8, + "line": 9, "character": 35 } ] @@ -40299,7 +43383,7 @@ ], "type": { "type": "reference", - "id": 90, + "id": 95, "name": "StorageBucketApi" } } @@ -40307,13 +43391,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 6, + "line": 7, "character": 46 } ] }, { - "id": 92, + "id": 97, "name": "headers", "kind": 1024, "kindString": "Property", @@ -40324,14 +43408,14 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 6, + "line": 7, "character": 19 } ], "type": { "type": "reflection", "declaration": { - "id": 93, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40340,7 +43424,7 @@ }, "indexSignature": [ { - "id": 94, + "id": 99, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -40349,7 +43433,7 @@ }, "parameters": [ { - "id": 95, + "id": 100, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -40371,7 +43455,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 6, + "line": 7, "character": 20 } ] @@ -40379,7 +43463,7 @@ } }, { - "id": 91, + "id": 96, "name": "url", "kind": 1024, "kindString": "Property", @@ -40390,7 +43474,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 5, + "line": 6, "character": 15 } ], @@ -40400,7 +43484,7 @@ } }, { - "id": 114, + "id": 119, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -40409,7 +43493,7 @@ }, "signatures": [ { - "id": 115, + "id": 120, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -40422,7 +43506,7 @@ }, "parameters": [ { - "id": 116, + "id": 121, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -40438,7 +43522,7 @@ } }, { - "id": 117, + "id": 122, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -40448,7 +43532,7 @@ "type": { "type": "reflection", "declaration": { - "id": 118, + "id": 123, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40457,7 +43541,7 @@ }, "children": [ { - "id": 119, + "id": 124, "name": "public", "kind": 32, "kindString": "Variable", @@ -40467,7 +43551,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 47, + "line": 48, "character": 21 } ], @@ -40482,14 +43566,14 @@ "title": "Variables", "kind": 32, "children": [ - 119 + 124 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 47, + "line": 48, "character": 12 } ] @@ -40504,7 +43588,7 @@ { "type": "reflection", "declaration": { - "id": 120, + "id": 125, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40513,7 +43597,7 @@ }, "children": [ { - "id": 121, + "id": 126, "name": "data", "kind": 32, "kindString": "Variable", @@ -40523,7 +43607,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 19 } ], @@ -40542,7 +43626,7 @@ } }, { - "id": 122, + "id": 127, "name": "error", "kind": 32, "kindString": "Variable", @@ -40552,7 +43636,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 41 } ], @@ -40576,15 +43660,15 @@ "title": "Variables", "kind": 32, "children": [ - 121, - 122 + 126, + 127 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 13 } ] @@ -40598,13 +43682,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 45, + "line": 46, "character": 20 } ] }, { - "id": 142, + "id": 147, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -40613,7 +43697,7 @@ }, "signatures": [ { - "id": 143, + "id": 148, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -40625,7 +43709,7 @@ }, "parameters": [ { - "id": 144, + "id": 149, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -40647,7 +43731,7 @@ { "type": "reflection", "declaration": { - "id": 145, + "id": 150, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40656,7 +43740,7 @@ }, "children": [ { - "id": 146, + "id": 151, "name": "data", "kind": 32, "kindString": "Variable", @@ -40666,7 +43750,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 19 } ], @@ -40676,7 +43760,7 @@ { "type": "reflection", "declaration": { - "id": 147, + "id": 152, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40685,7 +43769,7 @@ }, "children": [ { - "id": 148, + "id": 153, "name": "message", "kind": 32, "kindString": "Variable", @@ -40695,7 +43779,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 30 } ], @@ -40710,14 +43794,14 @@ "title": "Variables", "kind": 32, "children": [ - 148 + 153 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 20 } ] @@ -40731,7 +43815,7 @@ } }, { - "id": 149, + "id": 154, "name": "error", "kind": 32, "kindString": "Variable", @@ -40741,7 +43825,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 54 } ], @@ -40765,15 +43849,15 @@ "title": "Variables", "kind": 32, "children": [ - 146, - 149 + 151, + 154 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 13 } ] @@ -40787,13 +43871,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 104, + "line": 105, "character": 20 } ] }, { - "id": 134, + "id": 139, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -40802,7 +43886,7 @@ }, "signatures": [ { - "id": 135, + "id": 140, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -40814,7 +43898,7 @@ }, "parameters": [ { - "id": 136, + "id": 141, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -40836,7 +43920,7 @@ { "type": "reflection", "declaration": { - "id": 137, + "id": 142, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40845,7 +43929,7 @@ }, "children": [ { - "id": 138, + "id": 143, "name": "data", "kind": 32, "kindString": "Variable", @@ -40855,7 +43939,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 19 } ], @@ -40865,7 +43949,7 @@ { "type": "reflection", "declaration": { - "id": 139, + "id": 144, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40874,7 +43958,7 @@ }, "children": [ { - "id": 140, + "id": 145, "name": "message", "kind": 32, "kindString": "Variable", @@ -40884,7 +43968,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 30 } ], @@ -40899,14 +43983,14 @@ "title": "Variables", "kind": 32, "children": [ - 140 + 145 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 20 } ] @@ -40920,7 +44004,7 @@ } }, { - "id": 141, + "id": 146, "name": "error", "kind": 32, "kindString": "Variable", @@ -40930,7 +44014,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 54 } ], @@ -40954,15 +44038,15 @@ "title": "Variables", "kind": 32, "children": [ - 138, - 141 + 143, + 146 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 13 } ] @@ -40976,13 +44060,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 87, + "line": 88, "character": 19 } ] }, { - "id": 108, + "id": 113, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -40991,7 +44075,7 @@ }, "signatures": [ { - "id": 109, + "id": 114, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -41003,7 +44087,7 @@ }, "parameters": [ { - "id": 110, + "id": 115, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -41025,7 +44109,7 @@ { "type": "reflection", "declaration": { - "id": 111, + "id": 116, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -41034,7 +44118,7 @@ }, "children": [ { - "id": 112, + "id": 117, "name": "data", "kind": 32, "kindString": "Variable", @@ -41044,7 +44128,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, + "line": 31, "character": 45 } ], @@ -41064,7 +44148,7 @@ } }, { - "id": 113, + "id": 118, "name": "error", "kind": 32, "kindString": "Variable", @@ -41074,7 +44158,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, + "line": 31, "character": 67 } ], @@ -41098,15 +44182,15 @@ "title": "Variables", "kind": 32, "children": [ - 112, - 113 + 117, + 118 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, + "line": 31, "character": 39 } ] @@ -41120,13 +44204,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, + "line": 31, "character": 17 } ] }, { - "id": 103, + "id": 108, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -41135,7 +44219,7 @@ }, "signatures": [ { - "id": 104, + "id": 109, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -41151,7 +44235,7 @@ { "type": "reflection", "declaration": { - "id": 105, + "id": 110, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -41160,7 +44244,7 @@ }, "children": [ { - "id": 106, + "id": 111, "name": "data", "kind": 32, "kindString": "Variable", @@ -41170,7 +44254,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 37 } ], @@ -41193,7 +44277,7 @@ } }, { - "id": 107, + "id": 112, "name": "error", "kind": 32, "kindString": "Variable", @@ -41203,7 +44287,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 61 } ], @@ -41227,15 +44311,15 @@ "title": "Variables", "kind": 32, "children": [ - 106, - 107 + 111, + 112 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 31 } ] @@ -41249,13 +44333,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 19 } ] }, { - "id": 123, + "id": 128, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -41264,7 +44348,7 @@ }, "signatures": [ { - "id": 124, + "id": 129, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -41276,7 +44360,7 @@ }, "parameters": [ { - "id": 125, + "id": 130, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -41292,7 +44376,7 @@ } }, { - "id": 126, + "id": 131, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -41302,7 +44386,7 @@ "type": { "type": "reflection", "declaration": { - "id": 127, + "id": 132, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -41311,7 +44395,7 @@ }, "children": [ { - "id": 128, + "id": 133, "name": "public", "kind": 32, "kindString": "Variable", @@ -41321,7 +44405,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 68, + "line": 69, "character": 21 } ], @@ -41336,14 +44420,14 @@ "title": "Variables", "kind": 32, "children": [ - 128 + 133 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 68, + "line": 69, "character": 12 } ] @@ -41357,7 +44441,7 @@ { "type": "reflection", "declaration": { - "id": 129, + "id": 134, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -41366,7 +44450,7 @@ }, "children": [ { - "id": 130, + "id": 135, "name": "data", "kind": 32, "kindString": "Variable", @@ -41376,7 +44460,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 19 } ], @@ -41386,7 +44470,7 @@ { "type": "reflection", "declaration": { - "id": 131, + "id": 136, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -41395,7 +44479,7 @@ }, "children": [ { - "id": 132, + "id": 137, "name": "message", "kind": 32, "kindString": "Variable", @@ -41405,7 +44489,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 30 } ], @@ -41420,14 +44504,14 @@ "title": "Variables", "kind": 32, "children": [ - 132 + 137 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 20 } ] @@ -41441,7 +44525,7 @@ } }, { - "id": 133, + "id": 138, "name": "error", "kind": 32, "kindString": "Variable", @@ -41451,7 +44535,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 54 } ], @@ -41475,15 +44559,15 @@ "title": "Variables", "kind": 32, "children": [ - 130, - 133 + 135, + 138 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 13 } ] @@ -41497,7 +44581,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 66, + "line": 67, "character": 20 } ] @@ -41508,41 +44592,41 @@ "title": "Constructors", "kind": 512, "children": [ - 96 + 101 ] }, { "title": "Properties", "kind": 1024, "children": [ - 92, - 91 + 97, + 96 ] }, { "title": "Methods", "kind": 2048, "children": [ - 114, - 142, - 134, + 119, + 147, + 139, + 113, 108, - 103, - 123 + 128 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 4, + "line": 5, "character": 29 } ], "extendedBy": [ { "type": "reference", - "id": 271, + "id": 277, "name": "SupabaseStorageClient" } ] @@ -41553,7 +44637,7 @@ "title": "Classes", "kind": 128, "children": [ - 90 + 95 ] } ], @@ -41566,7 +44650,7 @@ ] }, { - "id": 153, + "id": 158, "name": "\"lib/StorageFileApi\"", "kind": 1, "kindString": "Module", @@ -41576,7 +44660,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageFileApi.ts", "children": [ { - "id": 154, + "id": 159, "name": "StorageFileApi", "kind": 128, "kindString": "Class", @@ -41585,7 +44669,7 @@ }, "children": [ { - "id": 161, + "id": 166, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -41594,7 +44678,7 @@ }, "signatures": [ { - "id": 162, + "id": 167, "name": "new StorageFileApi", "kind": 16384, "kindString": "Constructor signature", @@ -41603,7 +44687,7 @@ }, "parameters": [ { - "id": 163, + "id": 168, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -41616,7 +44700,7 @@ } }, { - "id": 164, + "id": 169, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -41626,7 +44710,7 @@ "type": { "type": "reflection", "declaration": { - "id": 165, + "id": 170, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -41635,7 +44719,7 @@ }, "indexSignature": [ { - "id": 166, + "id": 171, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -41644,7 +44728,7 @@ }, "parameters": [ { - "id": 167, + "id": 172, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -41675,7 +44759,7 @@ "defaultValue": "{}" }, { - "id": 168, + "id": 173, "name": "bucketId", "kind": 32768, "kindString": "Parameter", @@ -41700,7 +44784,7 @@ ], "type": { "type": "reference", - "id": 154, + "id": 159, "name": "StorageFileApi" } } @@ -41714,7 +44798,7 @@ ] }, { - "id": 160, + "id": 165, "name": "bucketId", "kind": 1024, "kindString": "Property", @@ -41745,7 +44829,7 @@ } }, { - "id": 156, + "id": 161, "name": "headers", "kind": 1024, "kindString": "Property", @@ -41763,7 +44847,7 @@ "type": { "type": "reflection", "declaration": { - "id": 157, + "id": 162, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -41772,7 +44856,7 @@ }, "indexSignature": [ { - "id": 158, + "id": 163, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -41781,7 +44865,7 @@ }, "parameters": [ { - "id": 159, + "id": 164, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -41811,7 +44895,7 @@ } }, { - "id": 155, + "id": 160, "name": "url", "kind": 1024, "kindString": "Property", @@ -41832,7 +44916,7 @@ } }, { - "id": 248, + "id": 253, "name": "_getFinalPath", "kind": 2048, "kindString": "Method", @@ -41841,7 +44925,7 @@ }, "signatures": [ { - "id": 249, + "id": 254, "name": "_getFinalPath", "kind": 4096, "kindString": "Call signature", @@ -41850,7 +44934,7 @@ }, "parameters": [ { - "id": 250, + "id": 255, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -41878,7 +44962,7 @@ ] }, { - "id": 209, + "id": 214, "name": "createSignedUrl", "kind": 2048, "kindString": "Method", @@ -41887,7 +44971,7 @@ }, "signatures": [ { - "id": 210, + "id": 215, "name": "createSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -41899,7 +44983,7 @@ }, "parameters": [ { - "id": 211, + "id": 216, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -41915,7 +44999,7 @@ } }, { - "id": 212, + "id": 217, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -41937,7 +45021,7 @@ { "type": "reflection", "declaration": { - "id": 213, + "id": 218, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -41946,7 +45030,7 @@ }, "children": [ { - "id": 214, + "id": 219, "name": "data", "kind": 32, "kindString": "Variable", @@ -41966,7 +45050,7 @@ { "type": "reflection", "declaration": { - "id": 215, + "id": 220, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -41975,7 +45059,7 @@ }, "children": [ { - "id": 216, + "id": 221, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -42000,7 +45084,7 @@ "title": "Variables", "kind": 32, "children": [ - 216 + 221 ] } ], @@ -42021,7 +45105,7 @@ } }, { - "id": 217, + "id": 222, "name": "error", "kind": 32, "kindString": "Variable", @@ -42050,7 +45134,7 @@ } }, { - "id": 218, + "id": 223, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -42084,9 +45168,9 @@ "title": "Variables", "kind": 32, "children": [ - 214, - 217, - 218 + 219, + 222, + 223 ] } ], @@ -42113,7 +45197,7 @@ ] }, { - "id": 219, + "id": 224, "name": "download", "kind": 2048, "kindString": "Method", @@ -42122,7 +45206,7 @@ }, "signatures": [ { - "id": 220, + "id": 225, "name": "download", "kind": 4096, "kindString": "Call signature", @@ -42134,7 +45218,7 @@ }, "parameters": [ { - "id": 221, + "id": 226, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -42156,7 +45240,7 @@ { "type": "reflection", "declaration": { - "id": 222, + "id": 227, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -42165,7 +45249,7 @@ }, "children": [ { - "id": 223, + "id": 228, "name": "data", "kind": 32, "kindString": "Variable", @@ -42194,7 +45278,7 @@ } }, { - "id": 224, + "id": 229, "name": "error", "kind": 32, "kindString": "Variable", @@ -42228,8 +45312,8 @@ "title": "Variables", "kind": 32, "children": [ - 223, - 224 + 228, + 229 ] } ], @@ -42256,7 +45340,7 @@ ] }, { - "id": 225, + "id": 230, "name": "getPublicUrl", "kind": 2048, "kindString": "Method", @@ -42265,7 +45349,7 @@ }, "signatures": [ { - "id": 226, + "id": 231, "name": "getPublicUrl", "kind": 4096, "kindString": "Call signature", @@ -42277,7 +45361,7 @@ }, "parameters": [ { - "id": 227, + "id": 232, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -42296,7 +45380,7 @@ "type": { "type": "reflection", "declaration": { - "id": 228, + "id": 233, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -42305,7 +45389,7 @@ }, "children": [ { - "id": 229, + "id": 234, "name": "data", "kind": 32, "kindString": "Variable", @@ -42325,7 +45409,7 @@ { "type": "reflection", "declaration": { - "id": 230, + "id": 235, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -42334,7 +45418,7 @@ }, "children": [ { - "id": 231, + "id": 236, "name": "publicURL", "kind": 32, "kindString": "Variable", @@ -42359,7 +45443,7 @@ "title": "Variables", "kind": 32, "children": [ - 231 + 236 ] } ], @@ -42380,7 +45464,7 @@ } }, { - "id": 232, + "id": 237, "name": "error", "kind": 32, "kindString": "Variable", @@ -42409,7 +45493,7 @@ } }, { - "id": 233, + "id": 238, "name": "publicURL", "kind": 32, "kindString": "Variable", @@ -42443,9 +45527,9 @@ "title": "Variables", "kind": 32, "children": [ - 229, - 232, - 233 + 234, + 237, + 238 ] } ], @@ -42469,7 +45553,7 @@ ] }, { - "id": 240, + "id": 245, "name": "list", "kind": 2048, "kindString": "Method", @@ -42478,7 +45562,7 @@ }, "signatures": [ { - "id": 241, + "id": 246, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -42490,7 +45574,7 @@ }, "parameters": [ { - "id": 242, + "id": 247, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -42516,7 +45600,7 @@ } }, { - "id": 243, + "id": 248, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -42534,7 +45618,7 @@ } }, { - "id": 244, + "id": 249, "name": "parameters", "kind": 32768, "kindString": "Parameter", @@ -42558,7 +45642,7 @@ { "type": "reflection", "declaration": { - "id": 245, + "id": 250, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -42567,7 +45651,7 @@ }, "children": [ { - "id": 246, + "id": 251, "name": "data", "kind": 32, "kindString": "Variable", @@ -42600,7 +45684,7 @@ } }, { - "id": 247, + "id": 252, "name": "error", "kind": 32, "kindString": "Variable", @@ -42634,8 +45718,8 @@ "title": "Variables", "kind": 32, "children": [ - 246, - 247 + 251, + 252 ] } ], @@ -42662,7 +45746,7 @@ ] }, { - "id": 200, + "id": 205, "name": "move", "kind": 2048, "kindString": "Method", @@ -42671,7 +45755,7 @@ }, "signatures": [ { - "id": 201, + "id": 206, "name": "move", "kind": 4096, "kindString": "Call signature", @@ -42683,7 +45767,7 @@ }, "parameters": [ { - "id": 202, + "id": 207, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -42699,7 +45783,7 @@ } }, { - "id": 203, + "id": 208, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -42721,7 +45805,7 @@ { "type": "reflection", "declaration": { - "id": 204, + "id": 209, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -42730,7 +45814,7 @@ }, "children": [ { - "id": 205, + "id": 210, "name": "data", "kind": 32, "kindString": "Variable", @@ -42750,7 +45834,7 @@ { "type": "reflection", "declaration": { - "id": 206, + "id": 211, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -42759,7 +45843,7 @@ }, "children": [ { - "id": 207, + "id": 212, "name": "message", "kind": 32, "kindString": "Variable", @@ -42784,7 +45868,7 @@ "title": "Variables", "kind": 32, "children": [ - 207 + 212 ] } ], @@ -42805,7 +45889,7 @@ } }, { - "id": 208, + "id": 213, "name": "error", "kind": 32, "kindString": "Variable", @@ -42839,8 +45923,8 @@ "title": "Variables", "kind": 32, "children": [ - 205, - 208 + 210, + 213 ] } ], @@ -42867,7 +45951,7 @@ ] }, { - "id": 234, + "id": 239, "name": "remove", "kind": 2048, "kindString": "Method", @@ -42876,7 +45960,7 @@ }, "signatures": [ { - "id": 235, + "id": 240, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -42888,7 +45972,7 @@ }, "parameters": [ { - "id": 236, + "id": 241, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -42913,7 +45997,7 @@ { "type": "reflection", "declaration": { - "id": 237, + "id": 242, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -42922,7 +46006,7 @@ }, "children": [ { - "id": 238, + "id": 243, "name": "data", "kind": 32, "kindString": "Variable", @@ -42955,7 +46039,7 @@ } }, { - "id": 239, + "id": 244, "name": "error", "kind": 32, "kindString": "Variable", @@ -42989,8 +46073,8 @@ "title": "Variables", "kind": 32, "children": [ - 238, - 239 + 243, + 244 ] } ], @@ -43017,7 +46101,7 @@ ] }, { - "id": 190, + "id": 195, "name": "update", "kind": 2048, "kindString": "Method", @@ -43026,7 +46110,7 @@ }, "signatures": [ { - "id": 191, + "id": 196, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -43038,7 +46122,7 @@ }, "parameters": [ { - "id": 192, + "id": 197, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -43054,7 +46138,7 @@ } }, { - "id": 193, + "id": 198, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -43117,7 +46201,7 @@ } }, { - "id": 194, + "id": 199, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -43141,7 +46225,7 @@ { "type": "reflection", "declaration": { - "id": 195, + "id": 200, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -43150,7 +46234,7 @@ }, "children": [ { - "id": 196, + "id": 201, "name": "data", "kind": 32, "kindString": "Variable", @@ -43170,7 +46254,7 @@ { "type": "reflection", "declaration": { - "id": 197, + "id": 202, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -43179,7 +46263,7 @@ }, "children": [ { - "id": 198, + "id": 203, "name": "Key", "kind": 32, "kindString": "Variable", @@ -43204,7 +46288,7 @@ "title": "Variables", "kind": 32, "children": [ - 198 + 203 ] } ], @@ -43225,7 +46309,7 @@ } }, { - "id": 199, + "id": 204, "name": "error", "kind": 32, "kindString": "Variable", @@ -43259,8 +46343,8 @@ "title": "Variables", "kind": 32, "children": [ - 196, - 199 + 201, + 204 ] } ], @@ -43287,7 +46371,7 @@ ] }, { - "id": 180, + "id": 185, "name": "upload", "kind": 2048, "kindString": "Method", @@ -43296,7 +46380,7 @@ }, "signatures": [ { - "id": 181, + "id": 186, "name": "upload", "kind": 4096, "kindString": "Call signature", @@ -43308,7 +46392,7 @@ }, "parameters": [ { - "id": 182, + "id": 187, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -43324,7 +46408,7 @@ } }, { - "id": 183, + "id": 188, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -43387,7 +46471,7 @@ } }, { - "id": 184, + "id": 189, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -43411,7 +46495,7 @@ { "type": "reflection", "declaration": { - "id": 185, + "id": 190, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -43420,7 +46504,7 @@ }, "children": [ { - "id": 186, + "id": 191, "name": "data", "kind": 32, "kindString": "Variable", @@ -43440,7 +46524,7 @@ { "type": "reflection", "declaration": { - "id": 187, + "id": 192, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -43449,7 +46533,7 @@ }, "children": [ { - "id": 188, + "id": 193, "name": "Key", "kind": 32, "kindString": "Variable", @@ -43474,7 +46558,7 @@ "title": "Variables", "kind": 32, "children": [ - 188 + 193 ] } ], @@ -43495,7 +46579,7 @@ } }, { - "id": 189, + "id": 194, "name": "error", "kind": 32, "kindString": "Variable", @@ -43529,8 +46613,8 @@ "title": "Variables", "kind": 32, "children": [ - 186, - 189 + 191, + 194 ] } ], @@ -43557,7 +46641,7 @@ ] }, { - "id": 169, + "id": 174, "name": "uploadOrUpdate", "kind": 2048, "kindString": "Method", @@ -43567,7 +46651,7 @@ }, "signatures": [ { - "id": 170, + "id": 175, "name": "uploadOrUpdate", "kind": 4096, "kindString": "Call signature", @@ -43579,7 +46663,7 @@ }, "parameters": [ { - "id": 171, + "id": 176, "name": "method", "kind": 32768, "kindString": "Parameter", @@ -43604,7 +46688,7 @@ } }, { - "id": 172, + "id": 177, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -43620,7 +46704,7 @@ } }, { - "id": 173, + "id": 178, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -43683,7 +46767,7 @@ } }, { - "id": 174, + "id": 179, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -43707,7 +46791,7 @@ { "type": "reflection", "declaration": { - "id": 175, + "id": 180, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -43716,7 +46800,7 @@ }, "children": [ { - "id": 176, + "id": 181, "name": "data", "kind": 32, "kindString": "Variable", @@ -43736,7 +46820,7 @@ { "type": "reflection", "declaration": { - "id": 177, + "id": 182, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -43745,7 +46829,7 @@ }, "children": [ { - "id": 178, + "id": 183, "name": "Key", "kind": 32, "kindString": "Variable", @@ -43770,7 +46854,7 @@ "title": "Variables", "kind": 32, "children": [ - 178 + 183 ] } ], @@ -43791,7 +46875,7 @@ } }, { - "id": 179, + "id": 184, "name": "error", "kind": 32, "kindString": "Variable", @@ -43825,8 +46909,8 @@ "title": "Variables", "kind": 32, "children": [ - 176, - 179 + 181, + 184 ] } ], @@ -43858,32 +46942,32 @@ "title": "Constructors", "kind": 512, "children": [ - 161 + 166 ] }, { "title": "Properties", "kind": 1024, "children": [ - 160, - 156, - 155 + 165, + 161, + 160 ] }, { "title": "Methods", "kind": 2048, "children": [ - 248, - 209, - 219, - 225, - 240, - 200, - 234, - 190, - 180, - 169 + 253, + 214, + 224, + 230, + 245, + 205, + 239, + 195, + 185, + 174 ] } ], @@ -43896,7 +46980,7 @@ ] }, { - "id": 257, + "id": 262, "name": "DEFAULT_FILE_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -43905,7 +46989,7 @@ }, "children": [ { - "id": 258, + "id": 263, "name": "cacheControl", "kind": 32, "kindString": "Variable", @@ -43924,7 +47008,7 @@ "defaultValue": "\"3600\"" }, { - "id": 259, + "id": 264, "name": "contentType", "kind": 32, "kindString": "Variable", @@ -43943,7 +47027,7 @@ "defaultValue": "\"text/plain;charset=UTF-8\"" }, { - "id": 260, + "id": 265, "name": "upsert", "kind": 32, "kindString": "Variable", @@ -43967,9 +47051,9 @@ "title": "Variables", "kind": 32, "children": [ - 258, - 259, - 260 + 263, + 264, + 265 ] } ], @@ -43986,7 +47070,7 @@ } }, { - "id": 251, + "id": 256, "name": "DEFAULT_SEARCH_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -43995,7 +47079,7 @@ }, "children": [ { - "id": 252, + "id": 257, "name": "limit", "kind": 32, "kindString": "Variable", @@ -44014,7 +47098,7 @@ "defaultValue": "100" }, { - "id": 253, + "id": 258, "name": "offset", "kind": 32, "kindString": "Variable", @@ -44033,14 +47117,14 @@ "defaultValue": "0" }, { - "id": 254, + "id": 259, "name": "sortBy", "kind": 2097152, "kindString": "Object literal", "flags": {}, "children": [ { - "id": 255, + "id": 260, "name": "column", "kind": 32, "kindString": "Variable", @@ -44059,7 +47143,7 @@ "defaultValue": "\"name\"" }, { - "id": 256, + "id": 261, "name": "order", "kind": 32, "kindString": "Variable", @@ -44083,8 +47167,8 @@ "title": "Variables", "kind": 32, "children": [ - 255, - 256 + 260, + 261 ] } ], @@ -44106,15 +47190,15 @@ "title": "Variables", "kind": 32, "children": [ - 252, - 253 + 257, + 258 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 254 + 259 ] } ], @@ -44136,15 +47220,15 @@ "title": "Classes", "kind": 128, "children": [ - 154 + 159 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 257, - 251 + 262, + 256 ] } ], @@ -44156,6 +47240,87 @@ } ] }, + { + "id": 91, + "name": "\"lib/constants\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/lib/constants.ts", + "children": [ + { + "id": 92, + "name": "DEFAULT_HEADERS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isExported": true, + "isConst": true + }, + "children": [ + { + "id": 93, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 2, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`storage-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 93 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 2, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 92 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 1, + "character": 0 + } + ] + }, { "id": 1, "name": "\"lib/fetch\"", @@ -45117,7 +48282,7 @@ ] }, { - "id": 150, + "id": 155, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", @@ -45127,7 +48292,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/helpers.ts", "children": [ { - "id": 151, + "id": 156, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -45137,7 +48302,7 @@ }, "signatures": [ { - "id": 152, + "id": 157, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -45164,7 +48329,7 @@ "title": "Functions", "kind": 64, "children": [ - 151 + 156 ] } ], @@ -45177,7 +48342,7 @@ ] }, { - "id": 261, + "id": 266, "name": "\"lib/index\"", "kind": 1, "kindString": "Module", @@ -45187,7 +48352,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/index.ts", "children": [ { - "id": 264, + "id": 269, "name": "Bucket", "kind": 16777216, "kindString": "Reference", @@ -45197,7 +48362,17 @@ "target": 58 }, { - "id": 265, + "id": 275, + "name": "DEFAULT_HEADERS", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 92 + }, + { + "id": 270, "name": "FileObject", "kind": 16777216, "kindString": "Reference", @@ -45207,7 +48382,7 @@ "target": 65 }, { - "id": 267, + "id": 272, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", @@ -45217,7 +48392,7 @@ "target": 79 }, { - "id": 269, + "id": 274, "name": "Metadata", "kind": 16777216, "kindString": "Reference", @@ -45227,7 +48402,7 @@ "target": 87 }, { - "id": 268, + "id": 273, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", @@ -45237,7 +48412,7 @@ "target": 83 }, { - "id": 266, + "id": 271, "name": "SortBy", "kind": 16777216, "kindString": "Reference", @@ -45247,24 +48422,24 @@ "target": 76 }, { - "id": 262, + "id": 267, "name": "StorageBucketApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 90 + "target": 95 }, { - "id": 263, + "id": 268, "name": "StorageFileApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 154 + "target": 159 } ], "groups": [ @@ -45272,14 +48447,15 @@ "title": "References", "kind": 16777216, "children": [ - 264, - 265, - 267, 269, - 268, - 266, - 262, - 263 + 275, + 270, + 272, + 274, + 273, + 271, + 267, + 268 ] } ], @@ -46084,6 +49260,56 @@ "character": 0 } ] + }, + { + "id": 89, + "name": "\"lib/version\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/lib/version.ts", + "children": [ + { + "id": 90, + "name": "version", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/version.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "stringLiteral", + "value": "0.0.0" + }, + "defaultValue": "\"0.0.0\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 90 + ] + } + ], + "sources": [ + { + "fileName": "lib/version.ts", + "line": 1, + "character": 0 + } + ] } ], "groups": [ @@ -46091,14 +49317,16 @@ "title": "Modules", "kind": 1, "children": [ - 270, - 334, - 89, - 153, + 276, + 340, + 94, + 158, + 91, 1, - 150, - 261, - 57 + 155, + 266, + 57, + 89 ] } ] diff --git a/web/spec/dart.yml b/web/spec/dart.yml index d8138dde4db..4c209f47e95 100644 --- a/web/spec/dart.yml +++ b/web/spec/dart.yml @@ -17,40 +17,2174 @@ info: sidebar: - name: 'About' items: - - index - Installing - Initializing - + - name: 'Auth' + items: + - auth.signUp() + - auth.signIn() + - auth.signInWithProvider() + - auth.signOut() + - auth.session() + - auth.user() + - auth.update() + - auth.onAuthStateChange() + - Reset Password (Email) + - name: 'Data' + items: + - select() + - insert() + - update() + - upsert() + - delete() + - rpc() + - name: 'Realtime' + items: + - subscribe() + - removeSubscription() + - getSubscriptions() + - stream() + - name: 'Storage' + items: + - storage.createBucket() + - storage.getBucket() + - storage.listBuckets() + - storage.updateBucket() + - storage.deleteBucket() + - storage.emptyBucket() + - storage.from.upload() + - storage.from.download() + - storage.from.list() + - storage.from.update() + - storage.from.move() + - storage.from.remove() + - storage.from.createSignedUrl() + - storage.from.getPublicUrl() + - name: 'Modifiers' + items: + - Using Modifiers + - limit() + - order() + - range() + - single() + - name: 'Filters' + items: + - Using Filters + - .filter() + - .or() + - .not() + - .match() + - .eq() + - .neq() + - .gt() + - .gte() + - .lt() + - .lte() + - .like() + - .ilike() + - .is_() + - .in_() + - .contains() + - .containedBy() + - .rangeLt() + - .rangeGt() + - .rangeGte() + - .rangeLte() + - .rangeAdjacent() + - .overlaps() + - .textSearch() pages: Installing: description: | + + ## Dart + Dart libraries are built and suppported by the community. ```bash - # TODO + dart pub add supabase ``` Find the source code on [GitHub](https://github.com/supabase/supabase-dart). ## Flutter - TODO: Some notes about flutter + For Flutter project, you can use [supabase-flutter](https://github.com/supabase/supabase-flutter). + + ```bash + flutter pub add supabase_flutter + ``` + + `supabase-flutter` plugin uses `supabase` plugin internally, and it adds some Flutter specific functionality such as handling deeplinks comoing back from magic link vefications. + If you are creating a Flutter application, you should use `supabase-flutter` instead of `supabase-dart`. + + For the most part `supabase-flutter` are share the same API `supabase` with few exceptions such as initialization or OAuth sign in. Initializing: description: | - You can initialize a new Supabase client using the `createClient()` method. + ## Dart + You can initialize a new Supabase client using the `SupabaseClient()` method. The Supabase client is your entrypoint to the rest of the Supabase functionality and is the easiest way to interact with everything we offer within the Supabase ecosystem. + + ## Flutter + + For `supabase-flutter`, you will be using the static `initialize()` method on `Supabase` class. + examples: - - name: example() + - name: Dart SupabaseClient() dart: | ```dart - TODO + final supabase = SupabaseClient('https://xyzcompany.supabase.co', 'public-anon-key'); ``` - - name: example() + - name: Flutter initialize() + dart: | + ```dart title="main.dart" + Future main() async { + await Supabase.initialize(url: 'https://xyzcompany.supabase.co', anonKey: 'public-anon-key'); + runApp(MyApp()); + } + ``` + + auth.signUp(): + description: | + Creates a new user. + notes: | + - By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.io](https://app.supabase.io) + - 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) + examples: + - name: Sign up. + isSpotlight: true dart: | ```dart - TODO + final res = await supabase.auth.signUp('example@email.com', 'example-password'); + + final user = res.data?.user; + final error = res.error; + ``` + - name: Sign up with third-party providers. + hideCodeBlock: true + description: | + If you are using Flutter, you can sign up with OAuth providers using the [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider) method available on `supabase-flutter`. + + auth.signIn(): + description: | + Log in an existing user, or login via a third-party provider. + notes: | + - A user can sign up via email, phone number. + - If you provide `email` without a `password`, the user will be sent a magic link. + - The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.io](https://app.supabase.io) + - Similary, if you provide `phone` without a `password`, the user will be sent a one time password. + - If you are looking to sign users in with OAuth in Flutter apps, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider). + examples: + - name: Sign in with email. + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.signIn(email: 'example@email.com', password: 'example-password'); + + final user = res.data?.user; + final error = res.error; + ``` + - name: Sign in with magic link. + description: If email is provided, but no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds. + dart: | + ```dart + final res = await supabase.auth.signIn(email: 'example@email.com'); + + final error = res.error; + ``` + - name: Get OAuth sign in URL. + description: | + Passing provider parameter to `signIn()` will return a URL to sign your user in via OAuth. + If you are looking to sign in a user via OAuth on Flutter app, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider). + dart: | + ```dart + final res = await supabase.auth.signIn(provider: Provider.github); + + final url = res.data?.url; + final error = res.error; + ``` + auth.signInWithProvider(): + description: | + Signs the user in using thrid party OAuth providers. + notes: | + - `auth.signInWithProvider()` is only available on `supabase-flutter` + - It will open the browser to the relevant login page. + examples: + - name: Sign in with provider. + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.signInWithProvider(Provider.github); + + final error = res.error; + ``` + - name: With `redirectTo` + description: | + Specify the redirect link to bring back the user via deeplink. + Note that `redirectTo` should be null for Flutter Web. + dart: | + ```dart + final res = await supabase.auth.signInWithProvider( + Provider.github, + options: AuthOptions( + redirectTo: kIsWeb + ? null + : 'io.supabase.flutter://reset-callback/'), + ); + + final error = res.error; + ``` + - name: With scopes + description: | + If you need additional data from an OAuth provider, you can include a space-separated list of scopes in your request to get back an OAuth provider token. + You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider. + dart: | + ```dart + const { user, session, error } = await supabase.auth.signIn({ + provider: 'github' + }, { + scopes: 'repo gist notifications' + }) + const oAuthToken = session.provider_token // use to access provider API + ``` + auth.signOut(): + description: | + Signs out the current user, if there is a logged in user. + examples: + - name: Sign out + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.signOut(); + + final error = res.error; + ``` + + auth.session(): + description: | + Returns the session data, if there is an active session. + examples: + - name: Get the session data + isSpotlight: true + dart: | + ```dart + final session = supabase.auth.session(); + ``` + + auth.user(): + description: | + Returns the user data, if there is a logged in user. + examples: + - name: Get the logged in user + isSpotlight: true + dart: | + ```dart + final user = supabase.auth.user(); + ``` + + auth.update(): + description: | + Updates user data, if there is a logged in user. + notes: | + 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. + examples: + - name: Update a user's metadata. + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.update( + UserAttributes(data: {'hello': 'world'}) + ); + + final error = res.error; + ``` + + auth.onAuthStateChange(): + description: | + Receive a notification every time an auth event happens. + examples: + - name: Listen to auth changes + isSpotlight: true + dart: | + ```dart + final subscription = supabase.auth.onAuthStateChange((event, session) { + print(session?.user?.id); + // handle auth state change + }); + ``` + + Reset Password (Email): + description: | + Sends a reset request to an email address. + notes: | + Sends a reset request to an email address. + + When the user clicks the reset link in the email they will be forwarded to: + + `#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery` + + Your app must detect `type=recovery` in the fragment and display a password reset form to the user. + + You should then use the access_token in the url and new password to update the user as follows: + + ```dart + final res = await supabase.auth.api.updateUser( + accessToken, + UserAttributes(password: 'NEW_PASSWORD'), + ); + ``` + examples: + - name: Reset password + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.api.resetPasswordForEmail('user@example.com'); + + final error = res.error; + ``` + - name: Reset password for Flutter + isSpotlight: true + dart: | + You can pass `redirectTo` to open the app via deeplink when user opens the password reset email. + ```dart + final res = await supabase.auth.api.resetPasswordForEmail( + 'user@example.com', + options: AuthOptions(redirectTo: kIsWeb + ? null + : 'io.supabase.flutter://reset-callback/'), + ); + + final error = res.error; + ``` + select(): + description: | + Performs vertical filtering with SELECT. + title: 'Fetch data: select()' + notes: | + - By default, Supabase projects will return a maximum of 1,000 rows. This setting can be changed Project API Settings. It's recommended that you keep it low to limit the payload size of accidental or malicious requests. You can use `range()` queries to paginate through your data. + - `select()` can be combined with [Modifiers](/docs/reference/dart/using-modifiers) + - `select()` can be combined with [Filters](/docs/reference/dart/using-filters) + examples: + - name: Getting your data + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select() + .execute(); + + final data = res.data; + final error = res.error; + ``` + - name: Selecting specific columns + description: You can select specific fields from your tables. + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name') + .execute(); + ``` + - name: Query foreign tables + description: If your database has relationships, you can query related tables too. + dart: | + ```dart + final res = await supabase + .from('countries') + .select(''' + name, + cities ( + name + ) + ''') + .execute(); + ``` + - name: Query the same foreign table multiple times + description: | + Sometimes you will need to query the same foreign table twice. + In this case, you can use the name of the joined column to identify + which join you intend to use. For convenience, you can also give an + alias for each column. For example, if we had a shop of products, + and we wanted to get the supplier and the purchaser at the same time + (both in the users) table: + dart: | + ```dart + final res = await supabase + .from('products') + .select(''' + id, + supplier:supplier_id ( name ), + purchaser:purchaser_id ( name ) + ''') + .execute(); + ``` + - name: Querying with count option + description: | + You can get the number of rows by using the count option. + Allowed values for count option are [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count). + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name') + .execute(count: CountOption.exact); + + final count = res.count; + ``` + - name: Querying JSON data + description: | + If you have data inside of a JSONB column, you can apply select + and query filters to the data values. Postgres offers a + [number of operators](https://www.postgresql.org/docs/current/functions-json.html) + for querying JSON data. Also see + [PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details. + dart: | + ```dart + final res = await supabase + .from('users') + .select(''' + id, name, + address->street + ''') + .eq('address->postcode', 90210) + .execute(); + ``` + - name: Return data as CSV + description: | + By default the data is returned in JSON format, however you can also request for it to be returned as Comma Separated Values. + dart: | + ```dart + fianl res = await supabase + .from('users') + .select() + .csv() + .execute(); + ``` + + insert(): + description: | + Performs an INSERT into the table. + title: 'Create data: insert()' + notes: | + - By default, every time you run `insert()`, the client library will make a `select` to return the full record. + This is convenient, but it can also cause problems if your Policies are not configured to allow the `select` operation. + If you are using Row Level Security and you are encountering problems, try setting the `returning` param to `minimal`. + examples: + - name: Create a record + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .insert([ + {'name': 'The Shire', 'country_id': 554} + ]).execute(); + ``` + - name: Bulk create + dart: | + ```dart + final res = await supabase + .from('cities') + .insert([ + {'name': 'The Shire', 'country_id': 554}, + {'name': 'Rohan', 'country_id': 555}, + ]).execute(); + ``` + + update(): + description: | + Performs an UPDATE on the table. + title: 'Modify data: update()' + notes: | + TODO update the link to dart + - `update()` should always be combined with [Filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to update. + examples: + - name: Updating your data + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Middle Earth' }) + .match({ 'name': 'Auckland' }) + .execute(); + ``` + - name: Updating JSON data + description: | + Postgres offers a + [number of operators](https://www.postgresql.org/docs/current/functions-json.html) + for working with JSON data. Right now it is only possible to update an entire JSON document, + but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys. + dart: | + ```dart + final res = await supabase + .from('users') + .update({ + 'address': { + 'street': 'Melrose Place', + 'postcode': 90210 + } + }) + .eq('address->postcode', 90210) + .execute(); + ``` + + upsert(): + description: | + Performs an UPSERT into the table. + title: 'Upsert data: upsert()' + notes: | + - Primary keys should to be included in the data payload in order for an update to work correctly. + - Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys. + examples: + - name: Upsert your data + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('messages') + .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' }) + .execute(); + ``` + - name: Upserting into tables with constraints + description: | + Running the following will cause supabase to upsert data into the `users` table. + If the username 'supabot' already exists, the `onConflict` argument tells supabase to overwrite that row + based on the column passed into `onConflict`. + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('users') + .upsert({ 'username': 'supabot' }, { 'onConflict': 'username' }) + .execute(); + ``` + - name: Return the exact number of rows + description: | + Allowed values for count option are `exact`, `planned` and `estimated`. + dart: | + ```dart + final res = await supabase + .from('users') + .upsert({ + 'id': 3, + 'message': 'foo', + 'username': 'supabot' + }) + .execute(count: CountOption.exact); + ``` + + delete(): + description: | + Performs a DELETE on the table. + title: 'Delete data: delete()' + notes: | + TODO update link to dart + - `delete()` should always be combined with [Filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to delete. + examples: + - name: Delete records + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .match({ 'id': 666 }) + .execute(); + ``` + + rpc(): + title: 'Stored Procedures: rpc()' + description: | + You can call stored procedures as a "Remote Procedure Call". + + That's a fancy way of saying that you can put some logic into your database then call it from anywhere. + It's especially useful when the logic rarely changes - like password resets and updates. + examples: + - name: Call a stored procedure + isSpotlight: true + description: This is an example invoking a stored procedure. + dart: | + ```dart + final res = await supabase + .rpc('hello_world') + .execute(); + ``` + - name: With Parameters + dart: | + ```dart + final res = await supabase + .rpc('echo_city', params: { 'name': 'The Shire' }) + .execute(); + ``` + - name: With count option + description: | + You can specify a count option to get the row count along with your data. + Allowed values for count option are `exact`, `planned` and `estimated`. + dart: | + ```dart + final res = await supabase + .rpc('hello_world') + .execute(count: CountOption.exact); + ``` + + subscribe(): + description: | + Subscribe to realtime changes in your databse. + title: 'on().subscribe()' + notes: | + - Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api#managing-realtime). + - If you want to receive the "previous" data for updates and deletes, you will need to set `REPLICA IDENTITY` to `FULL`, like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;` + examples: + - name: Listen to all database changes + isSpotlight: true + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.all, (payload) { + // Handle realtime payload + }) + .subscribe(); + ``` + - name: Listening to a specific table + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.all, (payload) { + // Handle realtime payload + }) + .subscribe(); + ``` + - name: Listening to inserts + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.insert, (payload) { + // Handle realtime payload + }) + .subscribe(); + ``` + - name: Listening to updates + description: | + By default, Supabase will send only the updated record. If you want to receive the previous values as well you can + enable full replication for the table you are listening too: + + ```sql + alter table "your_table" replica identity full; + ``` + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.update, (payload) { + // Handle realtime payload + }) + .subscribe(); + ``` + - name: Listening to deletes + description: | + By default, Supabase does not send deleted records. If you want to receive the deleted record you can + enable full replication for the table you are listening too: + + ```sql + alter table "your_table" replica identity full; + ``` + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.delete, (payload) { + // Handle realtime payload + }) + .subscribe(); + ``` + - name: Listening to multiple events + description: You can chain listeners if you want to listen to multiple events for each table. + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.insert, handleInsert) + .on(SupabaseEventTypes.delete, handleDelete) + .subscribe(); + ``` + - name: Listening to row level changes + description: You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. + dart: | + ```dart + final mySubscription = supabase + .from('countries:id=eq.200') + .on(SupabaseEventTypes.update, handleRecordUpdated) + .subscribe(); + ``` + + removeSubscription(): + description: | + Removes an active subscription and returns the number of open connections. + title: 'removeSubscription()' + notes: | + - Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed. + examples: + - name: Remove a subscription + isSpotlight: true + dart: | + ```dart + supabase.removeSubscription(mySubscription); + ``` + + getSubscriptions(): + description: | + Returns an array of all your subscriptions. + title: 'getSubscriptions()' + examples: + - name: Get all subscriptions + isSpotlight: true + dart: | + ```dart + final subscriptions = supabase.getSubscriptions(); + ``` + + stream(): + description: | + Notifies of data at the queried table. + title: 'stream()' + notes: | + - `stream()` will emit the initial data as well as any further change on the database as `Stream` of `List>` by combining Postgrest and Realtime. + examples: + - name: Listening to a specific table + isSpotlight: true + dart: | + ```dart + supabase + .from('countries') + .stream() + .execute(); + ``` + - name: Listening to a specific rows within a table + description: | + You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. + This syntax is the as how you can filter data in Realtime + dart: | + ```dart + supabase + .from('countries:id=eq.120') + .stream() + .execute(); + ``` + - name: With `order()` + dart: | + ```dart + supabase + .from('countries') + .stream() + .order('name', ascending: false) + .execute(); + ``` + - name: With `limit()` + dart: | + ```dart + supabase + .from('countries') + .stream() + .order('name', ascending: false) + .limit(10) + .execute(); + ``` + + storage.listBuckets(): + description: | + Retrieves the details of all Storage buckets within an existing product. + title: 'listBuckets()' + $ref: '@supabase/storage-js."lib/StorageBucketApi".StorageBucketApi.listBuckets' + notes: | + - Policy permissions required: + - `buckets` permissions: `select` + - `objects` permissions: none + examples: + - name: List buckets + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .listBuckets() + ``` + + storage.getBucket(): + description: | + Retrieves the details of an existing Storage bucket. + title: 'getBucket()' + $ref: '@supabase/storage-js."lib/StorageBucketApi".StorageBucketApi.getBucket' + notes: | + - Policy permissions required: + - `buckets` permissions: `select` + - `objects` permissions: none + examples: + - name: Get bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .getBucket('avatars') + ``` + + storage.createBucket(): + description: | + Creates a new Storage bucket + title: 'createBucket()' + notes: | + - Policy permissions required: + - `buckets` permissions: `insert` + - `objects` permissions: none + examples: + - name: Create bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .createBucket('avatars'); + ``` + + storage.emptyBucket(): + description: | + Removes all objects inside a single bucket. + title: 'emptyBucket()' + notes: | + - Policy permissions required: + - `buckets` permissions: `select` + - `objects` permissions: `select` and `delete` + examples: + - name: Empty bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .emptyBucket('avatars'); + ``` + storage.updateBucket(): + description: | + Updates a new Storage bucket + title: 'updateBucket()' + notes: | + - Policy permissions required: + - `buckets` permissions: `update` + - `objects` permissions: none + examples: + - name: Update bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .updateBucket('avatars', { public: false }); + ``` + + storage.deleteBucket(): + description: | + Deletes an existing bucket. A bucket can't be deleted with existing objects inside it. You must first `empty()` the bucket. + title: 'deleteBucket()' + notes: | + - Policy permissions required: + - `buckets` permissions: `select` and `delete` + - `objects` permissions: none + examples: + - name: Delete bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .deleteBucket('avatars'); + ``` + + storage.from.upload(): + description: | + Uploads a file to an existing bucket. + title: 'from.upload()' + $ref: '@supabase/storage-js."lib/StorageFileApi".StorageFileApi.upload' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `insert` + examples: + - name: Upload file + isSpotlight: true + dart: | + ```dart + final avatarFile = File('path/to/file'); + final res = await supabase + .storage + .from('avatars') + .upload('public/avatar1.png', avatarFile, fileOptions: FileOptions( + cacheControl: '3600', + upsert: false + )); + ``` + + storage.from.update(): + description: | + Replaces an existing file at the specified path with a new one. + title: 'from.update()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `update` and `select` + examples: + - name: Update file + isSpotlight: true + dart: | + ```dart + final avatarFile = File('path/to/file'); + final res = await supabase + .storage + .from('avatars') + .update('public/avatar1.png', avatarFile, fileOptions: FileOptions( + cacheControl: '3600', + upsert: false + )); + ``` + + storage.from.move(): + description: | + Moves an existing file, optionally renaming it at the same time. + title: 'from.move()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `update` and `select` + examples: + - name: Move file + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .from('avatars') + .move('public/avatar1.png', 'private/avatar2.png'); + ``` + + storage.from.createSignedUrl(): + description: | + Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds. + title: 'from.createSignedUrl()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `select` + examples: + - name: Create Signed URL + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .from('avatars') + .createSignedUrl('avatar1.png', 60); + + final signedURL = res.data; + ``` + + storage.from.getPublicUrl(): + description: | + Retrieve URLs for assets in public buckets + title: 'from.getPublicUrl()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: none + examples: + - name: Returns the URL for an asset in a public bucket + isSpotlight: true + dart: | + ```dart + final res = supabase + .storage + .from('public-bucket') + .getPublicUrl('avatar1.png'); + + final publicURL = res.data; + ``` + + storage.from.download(): + description: | + Downloads a file. + title: 'from.download()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `select` + examples: + - name: Download file + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .from('avatars') + .download('avatar1.png'); + ``` + + storage.from.remove(): + description: | + Deletes files within the same bucket + title: 'from.remove()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `delete` and `select` + examples: + - name: Delete file + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .from('avatars') + .remove(['avatar1.png']); + ``` + + storage.from.list(): + description: | + Lists all the files within a bucket. + title: 'from.list()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `select` + examples: + - name: List files in a bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .from('avatars') + .list(); + ``` + Using Modifiers: + description: | + Modifiers can be used on `select()` queries. + + If a Stored Procedure returns a table response, you can also apply modifiers to the `rpc()` function. + + limit(): + description: | + Limits the result with the specified count. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .limit(1) + .execute(); + ``` + - name: With embedded resources + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, cities(name)') + .eq('name', 'United States') + .limit(1, foreignTable: 'cities' ) + .execute(); + ``` + + order(): + description: | + Orders the result with the specified column. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .order('id', ascending: false ) + .execute(); + ``` + - name: With embedded resources + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, cities(name)') + .eq('name', 'United States') + .order('name', foreignTable: 'cities') + .execute(); + ``` + + range(): + description: | + Limits the result to rows within the specified range, inclusive. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .range(0,3) + .execute(); + ``` + + single(): + description: | + Retrieves only one row from the result. Result must be one row (e.g. using limit), otherwise this will result in an error. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .single() + .execute(); + ``` + + Using Filters: + description: | + Filters can be used on `select()`, `update()`, and `delete()` queries. + + If a Stored Procedure returns a table response, you can also apply filters. + + ### Applying Filters + + You must apply your filters to the end of your query. For example: + + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .eq('name', 'The Shire') // Correct + .execute(); + + final res = await supabase + .from('cities') + .eq('name', 'The Shire') // Incorrect + .select('name, country_id') + .execute(); + ``` + + ### Chaining + + Filters can be chained together to produce advanced queries. For example: + + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .gte('population', 1000) + .lt('population', 10000) + .execute(); + ``` + + .filter(): + description: | + Finds all rows whose `column` satisfies the filter. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .filter('name', 'eq', 'Paris') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .filter('name', 'eq', 'Paris') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .filter('name', 'eq', 'Paris') + .execute(); + ``` + # TODO Not available at the moment, so would have to fix the bug on postgrest-dart first + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .filter('name', 'eq', 'Paris') + # ``` + - name: Filter embedded resources + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, countries ( name )') + .filter('countries.name', 'eq', 'France') + .execute(); + ``` + + .or(): + description: | + Finds all rows satisfying at least one of the filters. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .or('id.eq.20,id.eq.30') + .execute(); + ``` + - name: Use `or` with `and` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)') + .execute(); + ``` + # TODO Not available at the moment, so would have to fix the bug on postgrest-dart first + # - name: Use `or` on foreign tables + # isSpotlight: true + # dart: | + # ```dart + # final res = await supabase + # .from('countries') + # .select('id, cities(*)') + # .or('name.eq.Wellington,name.eq.Paris', { foreignTable: "cities" }) + # ``` + + .not(): + description: | + Finds all rows which doesn't satisfy the filter. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .not('name', 'eq', 'Paris') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .not('name', 'eq', 'Paris') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .not('name', 'eq', 'Paris') + .execute(); + ``` + # TODO Not available in dart yes, so first fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities) + # .not('name', 'eq', 'Paris') + # ``` + + .match(): + description: | + Finds all rows whose columns match the specified `query` object. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .match({'name': 'Beijing', 'country_id': 156}) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .match({'name': 'Beijing', 'country_id': 156}) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .match({'name': 'Beijing', 'country_id': 156}) + .execute(); + ``` + # TODO Not available in postgrest-dart yet, so first fix the bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .match({name: 'Beijing', country_id: 156}) + # ``` + + .eq(): + description: | + Finds all rows whose value on the stated `column` exactly matches the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .eq('name', 'The shire') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .eq('name', 'San Francisco') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .eq('name', 'Mordor') + .execute(); + ``` + # TODO Fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .eq('name', 'San Francisco') + # ``` + + .neq(): + description: | + Finds all rows whose value on the stated `column` doesn't match the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .neq('name', 'The shire') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .neq('name', 'San Francisco') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .neq('name', 'Mordor') + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .neq('name', 'Lagos') + # ``` + + .gt(): + description: | + Finds all rows whose value on the stated `column` is greater than the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .gt('country_id', 250) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .gt('country_id', 250) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .gt('country_id', 250) + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .gt('country_id', 250) + # ``` + + .gte(): + description: | + Finds all rows whose value on the stated `column` is greater than or equal to the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .gte('country_id', 250) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .gte('country_id', 250) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .gte('country_id', 250) + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .gte('country_id', 250) + # ``` + + .lt(): + description: | + Finds all rows whose value on the stated `column` is less than the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .lt('country_id', 250) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .lt('country_id', 250) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .lt('country_id', 250) + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .lt('country_id', 250) + # .execute(); + # ``` + + .lte(): + description: | + Finds all rows whose value on the stated `column` is less than or equal to the specified `value`. + $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.lte' + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .lte('country_id', 250) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .lte('country_id', 250) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .lte('country_id', 250) + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .lte('country_id', 250) + # .execute(); + # ``` + + .like(): + description: | + Finds all rows whose value in the stated `column` matches the supplied `pattern` (case sensitive). + $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.like' + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .like('name', '%la%') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .like('name', '%la%') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .like('name', '%la%') + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .like('name', '%la%') + # .execute(); + # ``` + + .ilike(): + description: | + Finds all rows whose value in the stated `column` matches the supplied `pattern` (case insensitive). + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .ilike('name', '%la%') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .ilike('name', '%la%') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .ilike('name', '%la%') + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .ilike('name', '%la%') + # .execute(); + # ``` + + .is_(): + description: | + A check for exact equality (null, true, false), finds all rows whose value on the stated `column` exactly match the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .is_('name', null) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .is_('name', null) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .is_('name', null) + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .is('name', null) + # .execute(); + # ``` + + .in_(): + description: | + Finds all rows whose value on the stated `column` is found on the specified `values`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .in_('name', ['Rio de Janeiro', 'San Francisco']) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .in_('name', ['Rio de Janeiro', 'San Francisco']) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .in_('name', ['Rio de Janeiro', 'San Francisco']) + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_cities') + # .in('name', ['Rio de Janeiro', 'San Francisco']) + # .execute(); + # ``` + + .contains(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, main_exports') + .contains('main_exports', ['oil']) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .contains('main_exports', ['oil']) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .contains('main_exports', ['oil']) + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_countries') + # .contains('main_exports', ['oil']) + # .execute(); + # ``` + + .containedBy(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, main_exports') + .containedBy('main_exports', ['cars', 'food', 'machine']) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .containedBy('main_exports', ['orks', 'surveillance', 'evil']) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .containedBy('main_exports', ['cars', 'food', 'machine']) + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_countries') + # .containedBy('main_exports', ['cars', 'food', 'machine']) + # .execute(); + # ``` + + .rangeLt(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, population_range_millions') + .rangeLt('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .rangeLt('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .rangeLt('population_range_millions', '[150, 250]') + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_countries') + # .rangeLt('population_range_millions', [150, 250]) + # .execute(); + # ``` + + .rangeGt(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, population_range_millions') + .rangeGt('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .rangeGt('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .rangeGt('population_range_millions', '[150, 250]') + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_countries') + # .rangeGt('population_range_millions', [150, 250]) + # .execute(); + # ``` + + .rangeGte(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, population_range_millions') + .rangeGte('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .rangeGte('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .rangeGte('population_range_millions', '[150, 250]') + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_countries') + # .rangeGte('population_range_millions', [150, 250]) + # .execute(); + # ``` + + .rangeLte(): + $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.nxr' + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, population_range_millions') + .rangeLte('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .rangeLte('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .rangeLte('population_range_millions', '[150, 250]') + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_countries') + # .rangeLte('population_range_millions', [150, 250]) + # .execute(); + # ``` + + .rangeAdjacent(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, population_range_millions') + .rangeAdjacent('population_range_millions', '[70, 185]') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .rangeAdjacent('population_range_millions', '[70, 185]') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .rangeAdjacent('population_range_millions', '[70, 185]') + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_countries') + # .rangeAdjacent('population_range_millions', [70, 185]) + # .execute(); + # ``` + + .overlaps(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, main_exports') + .overlaps('main_exports', ['computers', 'minerals']) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .overlaps('main_exports', ['computers', 'minerals']) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .overlaps('main_exports', ['computers', 'minerals']) + .execute(); + ``` + # TODO fix bug on postgrest-dart + # - name: With `rpc()` + # dart: | + # ```dart + # // Only valid if the Stored Procedure returns a table type. + # final res = await supabase + # .rpc('echo_all_countries') + # .overlaps('main_exports', ['computers', 'minerals']) + # .execute(); + # ``` + + .textSearch(): + description: | + Finds all rows whose tsvector value on the stated `column` matches to_tsquery(query). + examples: + - name: Text search + dart: | + ```dart + final res = await supabase + .from('quotes') + .select('catchphrase') + .textSearch('catchphrase', "'fat' & 'cat'", + config: 'english' + ) + .execute(); + ``` + - name: Basic normalization + description: Uses PostgreSQL's `plainto_tsquery` function. + dart: | + ```dart + final res = await supabase + .from('quotes') + .select('catchphrase') + .textSearch('catchphrase', "'fat' & 'cat'", + type: TextSearchType.plain, + config: 'english' + ) + .execute(); + ``` + - name: Full normalization + description: Uses PostgreSQL's `phraseto_tsquery` function. + dart: | + ```dart + final res = await supabase + .from('quotes') + .select('catchphrase') + .textSearch('catchphrase', "'fat' & 'cat'", + type: TextSearchType.phrase, + config: 'english' + ) + .execute(); + ``` + - name: Full normalization + description: | + Uses PostgreSQL's `websearch_to_tsquery` function. + This function will never raise syntax errors, which makes it possible to use raw user-supplied input for search, and can be used + with advanced operators. + + - `unquoted text`: text not inside quote marks will be converted to terms separated by & operators, as if processed by plainto_tsquery. + - `"quoted text"`: text inside quote marks will be converted to terms separated by <-> operators, as if processed by phraseto_tsquery. + - `OR`: the word “or” will be converted to the | operator. + - `-`: a dash will be converted to the ! operator. + + dart: | + ```dart + final res = await supabase + .from('quotes') + .select('catchphrase') + .textSearch('catchphrase', "'fat or cat'", + type: TextSearchType.websearch, + config: 'english' + ) + .execute(); ``` diff --git a/web/spec/gotrue.json b/web/spec/gotrue.json index 662e078287d..618e49ce3de 100644 --- a/web/spec/gotrue.json +++ b/web/spec/gotrue.json @@ -6,7 +6,7 @@ "originalName": "", "children": [ { - "id": 197, + "id": 208, "name": "\"GoTrueApi\"", "kind": 1, "kindString": "Module", @@ -16,7 +16,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts", "children": [ { - "id": 198, + "id": 209, "name": "GoTrueApi", "kind": 128, "kindString": "Class", @@ -25,7 +25,7 @@ }, "children": [ { - "id": 205, + "id": 216, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -34,7 +34,7 @@ }, "signatures": [ { - "id": 206, + "id": 217, "name": "new GoTrueApi", "kind": 16384, "kindString": "Constructor signature", @@ -43,7 +43,7 @@ }, "parameters": [ { - "id": 207, + "id": 218, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -54,7 +54,7 @@ "type": { "type": "reflection", "declaration": { - "id": 208, + "id": 219, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -63,7 +63,7 @@ }, "children": [ { - "id": 214, + "id": 225, "name": "cookieOptions", "kind": 32, "kindString": "Variable", @@ -86,14 +86,14 @@ }, { "type": "reference", - "id": 92, + "id": 97, "name": "CookieOptions" } ] } }, { - "id": 210, + "id": 221, "name": "headers", "kind": 32, "kindString": "Variable", @@ -110,7 +110,7 @@ "type": { "type": "reflection", "declaration": { - "id": 211, + "id": 222, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -119,7 +119,7 @@ }, "indexSignature": [ { - "id": 212, + "id": 223, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -128,7 +128,7 @@ }, "parameters": [ { - "id": 213, + "id": 224, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -151,7 +151,7 @@ } }, { - "id": 209, + "id": 220, "name": "url", "kind": 32, "kindString": "Variable", @@ -177,9 +177,9 @@ "title": "Variables", "kind": 32, "children": [ - 214, - 210, - 209 + 225, + 221, + 220 ] } ], @@ -196,7 +196,7 @@ ], "type": { "type": "reference", - "id": 198, + "id": 209, "name": "GoTrueApi" } } @@ -210,7 +210,7 @@ ] }, { - "id": 204, + "id": 215, "name": "cookieOptions", "kind": 1024, "kindString": "Property", @@ -227,12 +227,12 @@ ], "type": { "type": "reference", - "id": 92, + "id": 97, "name": "CookieOptions" } }, { - "id": 200, + "id": 211, "name": "headers", "kind": 1024, "kindString": "Property", @@ -250,7 +250,7 @@ "type": { "type": "reflection", "declaration": { - "id": 201, + "id": 212, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -259,7 +259,7 @@ }, "indexSignature": [ { - "id": 202, + "id": 213, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -268,7 +268,7 @@ }, "parameters": [ { - "id": 203, + "id": 214, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -298,7 +298,7 @@ } }, { - "id": 199, + "id": 210, "name": "url", "kind": 1024, "kindString": "Property", @@ -319,7 +319,7 @@ } }, { - "id": 264, + "id": 306, "name": "_createRequestHeaders", "kind": 2048, "kindString": "Method", @@ -329,7 +329,7 @@ }, "signatures": [ { - "id": 265, + "id": 307, "name": "_createRequestHeaders", "kind": 4096, "kindString": "Call signature", @@ -341,7 +341,7 @@ }, "parameters": [ { - "id": 266, + "id": 308, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -360,7 +360,7 @@ "type": { "type": "reflection", "declaration": { - "id": 267, + "id": 309, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -374,13 +374,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 166, + "line": 247, "character": 31 } ] }, { - "id": 295, + "id": 337, "name": "deleteUser", "kind": 2048, "kindString": "Method", @@ -389,7 +389,7 @@ }, "signatures": [ { - "id": 296, + "id": 338, "name": "deleteUser", "kind": 4096, "kindString": "Call signature", @@ -401,7 +401,7 @@ }, "parameters": [ { - "id": 297, + "id": 339, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -417,7 +417,7 @@ } }, { - "id": 298, + "id": 340, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -439,7 +439,7 @@ { "type": "reflection", "declaration": { - "id": 299, + "id": 341, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -448,7 +448,7 @@ }, "children": [ { - "id": 301, + "id": 343, "name": "data", "kind": 32, "kindString": "Variable", @@ -458,7 +458,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 254, + "line": 335, "character": 38 } ], @@ -478,7 +478,7 @@ } }, { - "id": 302, + "id": 344, "name": "error", "kind": 32, "kindString": "Variable", @@ -488,7 +488,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 254, + "line": 335, "character": 58 } ], @@ -507,7 +507,7 @@ } }, { - "id": 300, + "id": 342, "name": "user", "kind": 32, "kindString": "Variable", @@ -517,7 +517,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 254, + "line": 335, "character": 19 } ], @@ -542,16 +542,16 @@ "title": "Variables", "kind": 32, "children": [ - 301, - 302, - 300 + 343, + 344, + 342 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 254, + "line": 335, "character": 13 } ] @@ -565,13 +565,321 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 251, + "line": 332, "character": 18 } ] }, { - "id": 273, + "id": 362, + "name": "generateLink", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 363, + "name": "generateLink", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Generates links to be sent via email or other." + }, + "parameters": [ + { + "id": 364, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")." + }, + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "signup" + }, + { + "type": "stringLiteral", + "value": "magiclink" + }, + { + "type": "stringLiteral", + "value": "recovery" + }, + { + "type": "stringLiteral", + "value": "invite" + } + ] + } + }, + { + "id": 365, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's email." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 366, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 367, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 369, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 432, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 368, + "name": "password", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 431, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 370, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 433, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 369, + 368, + 370 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 430, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 371, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 372, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "Optional user metadata. For signup only." + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 435, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 373, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 435, + "character": 49 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 372, + 373 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 435, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 427, + "character": 20 + } + ] + }, + { + "id": 315, "name": "getUrlForProvider", "kind": 2048, "kindString": "Method", @@ -580,7 +888,7 @@ }, "signatures": [ { - "id": 274, + "id": 316, "name": "getUrlForProvider", "kind": 4096, "kindString": "Call signature", @@ -592,7 +900,7 @@ }, "parameters": [ { - "id": 275, + "id": 317, "name": "provider", "kind": 32768, "kindString": "Parameter", @@ -604,12 +912,12 @@ }, "type": { "type": "reference", - "id": 103, + "id": 112, "name": "Provider" } }, { - "id": 276, + "id": 318, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -619,7 +927,7 @@ "type": { "type": "reflection", "declaration": { - "id": 277, + "id": 319, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -628,7 +936,7 @@ }, "children": [ { - "id": 278, + "id": 320, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -639,7 +947,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 198, + "line": 279, "character": 16 } ], @@ -658,7 +966,7 @@ } }, { - "id": 279, + "id": 321, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -669,7 +977,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 199, + "line": 280, "character": 12 } ], @@ -693,15 +1001,15 @@ "title": "Variables", "kind": 32, "children": [ - 278, - 279 + 320, + 321 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 197, + "line": 278, "character": 12 } ] @@ -718,13 +1026,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 195, + "line": 276, "character": 19 } ] }, { - "id": 280, + "id": 322, "name": "getUser", "kind": 2048, "kindString": "Method", @@ -733,7 +1041,7 @@ }, "signatures": [ { - "id": 281, + "id": 323, "name": "getUser", "kind": 4096, "kindString": "Call signature", @@ -745,7 +1053,7 @@ }, "parameters": [ { - "id": 282, + "id": 324, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -767,7 +1075,7 @@ { "type": "reflection", "declaration": { - "id": 283, + "id": 325, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -776,7 +1084,7 @@ }, "children": [ { - "id": 285, + "id": 327, "name": "data", "kind": 32, "kindString": "Variable", @@ -786,7 +1094,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 218, + "line": 299, "character": 38 } ], @@ -806,7 +1114,7 @@ } }, { - "id": 286, + "id": 328, "name": "error", "kind": 32, "kindString": "Variable", @@ -816,7 +1124,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 218, + "line": 299, "character": 58 } ], @@ -835,7 +1143,7 @@ } }, { - "id": 284, + "id": 326, "name": "user", "kind": 32, "kindString": "Variable", @@ -845,7 +1153,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 218, + "line": 299, "character": 19 } ], @@ -870,16 +1178,16 @@ "title": "Variables", "kind": 32, "children": [ - 285, - 286, - 284 + 327, + 328, + 326 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 218, + "line": 299, "character": 13 } ] @@ -893,13 +1201,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 216, + "line": 297, "character": 15 } ] }, { - "id": 313, + "id": 355, "name": "getUserByCookie", "kind": 2048, "kindString": "Method", @@ -908,7 +1216,7 @@ }, "signatures": [ { - "id": 314, + "id": 356, "name": "getUserByCookie", "kind": 4096, "kindString": "Call signature", @@ -920,7 +1228,7 @@ }, "parameters": [ { - "id": 315, + "id": 357, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -939,7 +1247,7 @@ { "type": "reflection", "declaration": { - "id": 316, + "id": 358, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -948,7 +1256,7 @@ }, "children": [ { - "id": 318, + "id": 360, "name": "data", "kind": 32, "kindString": "Variable", @@ -958,7 +1266,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 322, + "line": 403, "character": 38 } ], @@ -978,7 +1286,7 @@ } }, { - "id": 319, + "id": 361, "name": "error", "kind": 32, "kindString": "Variable", @@ -988,7 +1296,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 322, + "line": 403, "character": 58 } ], @@ -1007,7 +1315,7 @@ } }, { - "id": 317, + "id": 359, "name": "user", "kind": 32, "kindString": "Variable", @@ -1017,7 +1325,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 322, + "line": 403, "character": 19 } ], @@ -1042,16 +1350,16 @@ "title": "Variables", "kind": 32, "children": [ - 318, - 319, - 317 + 360, + 361, + 359 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 322, + "line": 403, "character": 13 } ] @@ -1065,13 +1373,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 320, + "line": 401, "character": 23 } ] }, { - "id": 245, + "id": 287, "name": "inviteUserByEmail", "kind": 2048, "kindString": "Method", @@ -1080,7 +1388,7 @@ }, "signatures": [ { - "id": 246, + "id": 288, "name": "inviteUserByEmail", "kind": 4096, "kindString": "Call signature", @@ -1092,7 +1400,7 @@ }, "parameters": [ { - "id": 247, + "id": 289, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -1108,7 +1416,7 @@ } }, { - "id": 248, + "id": 290, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1118,7 +1426,7 @@ "type": { "type": "reflection", "declaration": { - "id": 249, + "id": 291, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1127,7 +1435,7 @@ }, "children": [ { - "id": 250, + "id": 292, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -1138,7 +1446,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 121, + "line": 202, "character": 16 } ], @@ -1162,14 +1470,14 @@ "title": "Variables", "kind": 32, "children": [ - 250 + 292 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 120, + "line": 201, "character": 12 } ] @@ -1184,7 +1492,7 @@ { "type": "reflection", "declaration": { - "id": 251, + "id": 293, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1193,7 +1501,7 @@ }, "children": [ { - "id": 252, + "id": 294, "name": "data", "kind": 32, "kindString": "Variable", @@ -1203,7 +1511,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 123, + "line": 204, "character": 19 } ], @@ -1223,7 +1531,7 @@ } }, { - "id": 253, + "id": 295, "name": "error", "kind": 32, "kindString": "Variable", @@ -1233,7 +1541,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 123, + "line": 204, "character": 39 } ], @@ -1257,15 +1565,15 @@ "title": "Variables", "kind": 32, "children": [ - 252, - 253 + 294, + 295 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 123, + "line": 204, "character": 13 } ] @@ -1279,13 +1587,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 118, + "line": 199, "character": 25 } ] }, { - "id": 303, + "id": 345, "name": "refreshAccessToken", "kind": 2048, "kindString": "Method", @@ -1294,7 +1602,7 @@ }, "signatures": [ { - "id": 304, + "id": 346, "name": "refreshAccessToken", "kind": 4096, "kindString": "Call signature", @@ -1306,7 +1614,7 @@ }, "parameters": [ { - "id": 305, + "id": 347, "name": "refreshToken", "kind": 32768, "kindString": "Parameter", @@ -1328,7 +1636,7 @@ { "type": "reflection", "declaration": { - "id": 306, + "id": 348, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1337,7 +1645,7 @@ }, "children": [ { - "id": 307, + "id": 349, "name": "data", "kind": 32, "kindString": "Variable", @@ -1347,7 +1655,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 275, + "line": 356, "character": 19 } ], @@ -1367,7 +1675,7 @@ } }, { - "id": 308, + "id": 350, "name": "error", "kind": 32, "kindString": "Variable", @@ -1377,7 +1685,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 275, + "line": 356, "character": 42 } ], @@ -1401,15 +1709,15 @@ "title": "Variables", "kind": 32, "children": [ - 307, - 308 + 349, + 350 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 275, + "line": 356, "character": 13 } ] @@ -1423,13 +1731,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 273, + "line": 354, "character": 26 } ] }, { - "id": 254, + "id": 296, "name": "resetPasswordForEmail", "kind": 2048, "kindString": "Method", @@ -1438,7 +1746,7 @@ }, "signatures": [ { - "id": 255, + "id": 297, "name": "resetPasswordForEmail", "kind": 4096, "kindString": "Call signature", @@ -1450,7 +1758,7 @@ }, "parameters": [ { - "id": 256, + "id": 298, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -1466,7 +1774,7 @@ } }, { - "id": 257, + "id": 299, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1476,7 +1784,7 @@ "type": { "type": "reflection", "declaration": { - "id": 258, + "id": 300, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1485,7 +1793,7 @@ }, "children": [ { - "id": 259, + "id": 301, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -1496,7 +1804,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 145, + "line": 226, "character": 16 } ], @@ -1520,14 +1828,14 @@ "title": "Variables", "kind": 32, "children": [ - 259 + 301 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 144, + "line": 225, "character": 12 } ] @@ -1542,7 +1850,7 @@ { "type": "reflection", "declaration": { - "id": 260, + "id": 302, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1551,7 +1859,7 @@ }, "children": [ { - "id": 261, + "id": 303, "name": "data", "kind": 32, "kindString": "Variable", @@ -1561,7 +1869,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 147, + "line": 228, "character": 19 } ], @@ -1571,7 +1879,7 @@ { "type": "reflection", "declaration": { - "id": 262, + "id": 304, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1581,7 +1889,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 147, + "line": 228, "character": 20 } ] @@ -1595,7 +1903,7 @@ } }, { - "id": 263, + "id": 305, "name": "error", "kind": 32, "kindString": "Variable", @@ -1605,7 +1913,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 147, + "line": 228, "character": 37 } ], @@ -1629,15 +1937,15 @@ "title": "Variables", "kind": 32, "children": [ - 261, - 263 + 303, + 305 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 147, + "line": 228, "character": 13 } ] @@ -1651,13 +1959,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 142, + "line": 223, "character": 29 } ] }, { - "id": 235, + "id": 260, "name": "sendMagicLinkEmail", "kind": 2048, "kindString": "Method", @@ -1666,7 +1974,7 @@ }, "signatures": [ { - "id": 236, + "id": 261, "name": "sendMagicLinkEmail", "kind": 4096, "kindString": "Call signature", @@ -1678,7 +1986,7 @@ }, "parameters": [ { - "id": 237, + "id": 262, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -1694,7 +2002,7 @@ } }, { - "id": 238, + "id": 263, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1704,7 +2012,7 @@ "type": { "type": "reflection", "declaration": { - "id": 239, + "id": 264, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1713,7 +2021,7 @@ }, "children": [ { - "id": 240, + "id": 265, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -1724,7 +2032,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 97, + "line": 138, "character": 16 } ], @@ -1748,14 +2056,14 @@ "title": "Variables", "kind": 32, "children": [ - 240 + 265 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 96, + "line": 137, "character": 12 } ] @@ -1770,7 +2078,7 @@ { "type": "reflection", "declaration": { - "id": 241, + "id": 266, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1779,7 +2087,7 @@ }, "children": [ { - "id": 242, + "id": 267, "name": "data", "kind": 32, "kindString": "Variable", @@ -1789,7 +2097,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 99, + "line": 140, "character": 19 } ], @@ -1799,7 +2107,7 @@ { "type": "reflection", "declaration": { - "id": 243, + "id": 268, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1809,7 +2117,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 99, + "line": 140, "character": 20 } ] @@ -1823,7 +2131,7 @@ } }, { - "id": 244, + "id": 269, "name": "error", "kind": 32, "kindString": "Variable", @@ -1833,7 +2141,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 99, + "line": 140, "character": 37 } ], @@ -1857,15 +2165,15 @@ "title": "Variables", "kind": 32, "children": [ - 242, - 244 + 267, + 269 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 99, + "line": 140, "character": 13 } ] @@ -1879,13 +2187,171 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 94, + "line": 135, "character": 26 } ] }, { - "id": 309, + "id": 270, + "name": "sendMobileOTP", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 271, + "name": "sendMobileOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist" + }, + "parameters": [ + { + "id": 272, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number WITH international prefix\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 273, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 274, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 158, + "character": 52 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 275, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 158, + "character": 53 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 276, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 158, + "character": 70 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 274, + 276 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 158, + "character": 46 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 158, + "character": 21 + } + ] + }, + { + "id": 351, "name": "setAuthCookie", "kind": 2048, "kindString": "Method", @@ -1894,7 +2360,7 @@ }, "signatures": [ { - "id": 310, + "id": 352, "name": "setAuthCookie", "kind": 4096, "kindString": "Call signature", @@ -1906,7 +2372,7 @@ }, "parameters": [ { - "id": 311, + "id": 353, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -1919,7 +2385,7 @@ } }, { - "id": 312, + "id": 354, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -1941,13 +2407,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 294, + "line": 375, "character": 15 } ] }, { - "id": 225, + "id": 236, "name": "signInWithEmail", "kind": 2048, "kindString": "Method", @@ -1956,7 +2422,7 @@ }, "signatures": [ { - "id": 226, + "id": 237, "name": "signInWithEmail", "kind": 4096, "kindString": "Call signature", @@ -1968,7 +2434,7 @@ }, "parameters": [ { - "id": 227, + "id": 238, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -1984,7 +2450,7 @@ } }, { - "id": 228, + "id": 239, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -2000,7 +2466,7 @@ } }, { - "id": 229, + "id": 240, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -2010,7 +2476,7 @@ "type": { "type": "reflection", "declaration": { - "id": 230, + "id": 241, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2019,7 +2485,7 @@ }, "children": [ { - "id": 231, + "id": 242, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -2054,7 +2520,7 @@ "title": "Variables", "kind": 32, "children": [ - 231 + 242 ] } ], @@ -2076,7 +2542,7 @@ { "type": "reflection", "declaration": { - "id": 232, + "id": 243, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2085,7 +2551,7 @@ }, "children": [ { - "id": 233, + "id": 244, "name": "data", "kind": 32, "kindString": "Variable", @@ -2115,7 +2581,7 @@ } }, { - "id": 234, + "id": 245, "name": "error", "kind": 32, "kindString": "Variable", @@ -2149,8 +2615,8 @@ "title": "Variables", "kind": 32, "children": [ - 233, - 234 + 244, + 245 ] } ], @@ -2177,7 +2643,167 @@ ] }, { - "id": 268, + "id": 253, + "name": "signInWithPhone", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 254, + "name": "signInWithPhone", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Logs in an existing user using their phone number and password." + }, + "parameters": [ + { + "id": 255, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The phone number of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 256, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The password of the user.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 257, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 258, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 117, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 259, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 117, + "character": 42 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 258, + 259 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 117, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 114, + "character": 23 + } + ] + }, + { + "id": 310, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -2186,7 +2812,7 @@ }, "signatures": [ { - "id": 269, + "id": 311, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -2198,7 +2824,7 @@ }, "parameters": [ { - "id": 270, + "id": 312, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -2220,7 +2846,7 @@ { "type": "reflection", "declaration": { - "id": 271, + "id": 313, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2229,7 +2855,7 @@ }, "children": [ { - "id": 272, + "id": 314, "name": "error", "kind": 32, "kindString": "Variable", @@ -2239,7 +2865,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 176, + "line": 257, "character": 45 } ], @@ -2263,14 +2889,14 @@ "title": "Variables", "kind": 32, "children": [ - 272 + 314 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 176, + "line": 257, "character": 38 } ] @@ -2284,13 +2910,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 176, + "line": 257, "character": 15 } ] }, { - "id": 215, + "id": 226, "name": "signUpWithEmail", "kind": 2048, "kindString": "Method", @@ -2299,7 +2925,7 @@ }, "signatures": [ { - "id": 216, + "id": 227, "name": "signUpWithEmail", "kind": 4096, "kindString": "Call signature", @@ -2312,7 +2938,7 @@ }, "parameters": [ { - "id": 217, + "id": 228, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -2328,7 +2954,7 @@ } }, { - "id": 218, + "id": 229, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -2344,7 +2970,7 @@ } }, { - "id": 219, + "id": 230, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -2354,7 +2980,7 @@ "type": { "type": "reflection", "declaration": { - "id": 220, + "id": 231, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2363,7 +2989,7 @@ }, "children": [ { - "id": 221, + "id": 232, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -2398,7 +3024,7 @@ "title": "Variables", "kind": 32, "children": [ - 221 + 232 ] } ], @@ -2420,7 +3046,7 @@ { "type": "reflection", "declaration": { - "id": 222, + "id": 233, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2429,7 +3055,7 @@ }, "children": [ { - "id": 223, + "id": 234, "name": "data", "kind": 32, "kindString": "Variable", @@ -2464,7 +3090,7 @@ } }, { - "id": 224, + "id": 235, "name": "error", "kind": 32, "kindString": "Variable", @@ -2498,8 +3124,8 @@ "title": "Variables", "kind": 32, "children": [ - 223, - 224 + 234, + 235 ] } ], @@ -2526,7 +3152,172 @@ ] }, { - "id": 287, + "id": 246, + "name": "signUpWithPhone", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 247, + "name": "signUpWithPhone", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Signs up a new user using their phone number and a password." + }, + "parameters": [ + { + "id": 248, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The phone number of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 249, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The password of the user.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 250, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 251, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 97, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 252, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 97, + "character": 49 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 251, + 252 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 97, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 94, + "character": 23 + } + ] + }, + { + "id": 329, "name": "updateUser", "kind": 2048, "kindString": "Method", @@ -2535,7 +3326,7 @@ }, "signatures": [ { - "id": 288, + "id": 330, "name": "updateUser", "kind": 4096, "kindString": "Call signature", @@ -2547,7 +3338,7 @@ }, "parameters": [ { - "id": 289, + "id": 331, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -2563,7 +3354,7 @@ } }, { - "id": 290, + "id": 332, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -2575,7 +3366,7 @@ }, "type": { "type": "reference", - "id": 77, + "id": 82, "name": "UserAttributes" } } @@ -2586,7 +3377,7 @@ { "type": "reflection", "declaration": { - "id": 291, + "id": 333, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2595,7 +3386,7 @@ }, "children": [ { - "id": 293, + "id": 335, "name": "data", "kind": 32, "kindString": "Variable", @@ -2605,7 +3396,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 235, + "line": 316, "character": 38 } ], @@ -2625,7 +3416,7 @@ } }, { - "id": 294, + "id": 336, "name": "error", "kind": 32, "kindString": "Variable", @@ -2635,7 +3426,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 235, + "line": 316, "character": 58 } ], @@ -2654,7 +3445,7 @@ } }, { - "id": 292, + "id": 334, "name": "user", "kind": 32, "kindString": "Variable", @@ -2664,7 +3455,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 235, + "line": 316, "character": 19 } ], @@ -2689,16 +3480,16 @@ "title": "Variables", "kind": 32, "children": [ - 293, - 294, - 292 + 335, + 336, + 334 ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 235, + "line": 316, "character": 13 } ] @@ -2712,10 +3503,245 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 232, + "line": 313, "character": 18 } ] + }, + { + "id": 277, + "name": "verifyMobileOTP", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 278, + "name": "verifyMobileOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Send User supplied Mobile OTP to be verified" + }, + "parameters": [ + { + "id": 279, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number WITH international prefix" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 280, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "token that user was sent to their mobile phone" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 281, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 282, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 283, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 178, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 283 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 177, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 284, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 285, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 180, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 286, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 180, + "character": 49 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 285, + 286 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 180, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 174, + "character": 23 + } + ] } ], "groups": [ @@ -2723,36 +3749,41 @@ "title": "Constructors", "kind": 512, "children": [ - 205 + 216 ] }, { "title": "Properties", "kind": 1024, "children": [ - 204, - 200, - 199 + 215, + 211, + 210 ] }, { "title": "Methods", "kind": 2048, "children": [ - 264, - 295, - 273, - 280, - 313, - 245, - 303, - 254, - 235, - 309, - 225, - 268, - 215, - 287 + 306, + 337, + 362, + 315, + 322, + 355, + 287, + 345, + 296, + 260, + 270, + 351, + 236, + 253, + 310, + 226, + 246, + 329, + 277 ] } ], @@ -2770,7 +3801,7 @@ "title": "Classes", "kind": 128, "children": [ - 198 + 209 ] } ], @@ -2783,7 +3814,7 @@ ] }, { - "id": 323, + "id": 377, "name": "\"GoTrueClient\"", "kind": 1, "kindString": "Module", @@ -2793,7 +3824,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts", "children": [ { - "id": 324, + "id": 378, "name": "GoTrueClient", "kind": 128, "kindString": "Class", @@ -2802,7 +3833,7 @@ }, "children": [ { - "id": 333, + "id": 387, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2814,7 +3845,7 @@ }, "signatures": [ { - "id": 334, + "id": 388, "name": "new GoTrueClient", "kind": 16384, "kindString": "Constructor signature", @@ -2826,7 +3857,7 @@ }, "parameters": [ { - "id": 335, + "id": 389, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -2836,7 +3867,7 @@ "type": { "type": "reflection", "declaration": { - "id": 336, + "id": 390, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2845,7 +3876,7 @@ }, "children": [ { - "id": 343, + "id": 397, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -2859,7 +3890,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 60, + "line": 61, "character": 20 } ], @@ -2882,7 +3913,7 @@ } }, { - "id": 346, + "id": 400, "name": "cookieOptions", "kind": 32, "kindString": "Variable", @@ -2893,18 +3924,18 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 63, + "line": 64, "character": 17 } ], "type": { "type": "reference", - "id": 92, + "id": 97, "name": "CookieOptions" } }, { - "id": 342, + "id": 396, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -2918,7 +3949,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 59, + "line": 60, "character": 22 } ], @@ -2941,7 +3972,7 @@ } }, { - "id": 338, + "id": 392, "name": "headers", "kind": 32, "kindString": "Variable", @@ -2955,7 +3986,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 58, + "line": 59, "character": 11 } ], @@ -2969,7 +4000,7 @@ { "type": "reflection", "declaration": { - "id": 339, + "id": 393, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2978,7 +4009,7 @@ }, "indexSignature": [ { - "id": 340, + "id": 394, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -2987,7 +4018,7 @@ }, "parameters": [ { - "id": 341, + "id": 395, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -3012,7 +4043,7 @@ } }, { - "id": 345, + "id": 399, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -3026,7 +4057,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 62, + "line": 63, "character": 16 } ], @@ -3036,7 +4067,7 @@ } }, { - "id": 344, + "id": 398, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -3050,7 +4081,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 61, + "line": 62, "character": 18 } ], @@ -3073,7 +4104,7 @@ } }, { - "id": 337, + "id": 391, "name": "url", "kind": 32, "kindString": "Variable", @@ -3087,7 +4118,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 57, + "line": 58, "character": 7 } ], @@ -3111,20 +4142,20 @@ "title": "Variables", "kind": 32, "children": [ - 343, - 346, - 342, - 338, - 345, - 344, - 337 + 397, + 400, + 396, + 392, + 399, + 398, + 391 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 56, + "line": 57, "character": 22 } ] @@ -3134,7 +4165,7 @@ ], "type": { "type": "reference", - "id": 324, + "id": 378, "name": "GoTrueClient" } } @@ -3142,13 +4173,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 45, + "line": 46, "character": 61 } ] }, { - "id": 325, + "id": 379, "name": "api", "kind": 1024, "kindString": "Property", @@ -3161,18 +4192,18 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 31, + "line": 32, "character": 5 } ], "type": { "type": "reference", - "id": 198, + "id": 209, "name": "GoTrueApi" } }, { - "id": 328, + "id": 382, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -3183,7 +4214,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 41, + "line": 42, "character": 28 } ], @@ -3193,7 +4224,7 @@ } }, { - "id": 327, + "id": 381, "name": "currentSession", "kind": 1024, "kindString": "Property", @@ -3207,7 +4238,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 39, + "line": 40, "character": 26 } ], @@ -3227,7 +4258,7 @@ } }, { - "id": 326, + "id": 380, "name": "currentUser", "kind": 1024, "kindString": "Property", @@ -3241,7 +4272,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 35, + "line": 36, "character": 23 } ], @@ -3261,7 +4292,7 @@ } }, { - "id": 330, + "id": 384, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -3272,7 +4303,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 43, + "line": 44, "character": 24 } ], @@ -3282,7 +4313,7 @@ } }, { - "id": 329, + "id": 383, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -3293,7 +4324,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 42, + "line": 43, "character": 26 } ], @@ -3303,7 +4334,7 @@ } }, { - "id": 332, + "id": 386, "name": "refreshTokenTimer", "kind": 1024, "kindString": "Property", @@ -3315,7 +4346,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 45, + "line": 46, "character": 29 } ], @@ -3334,7 +4365,7 @@ } }, { - "id": 331, + "id": 385, "name": "stateChangeEmitters", "kind": 1024, "kindString": "Property", @@ -3345,7 +4376,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 44, + "line": 45, "character": 31 } ], @@ -3358,7 +4389,7 @@ }, { "type": "reference", - "id": 82, + "id": 87, "name": "Subscription" } ], @@ -3367,7 +4398,7 @@ "defaultValue": "new Map()" }, { - "id": 468, + "id": 552, "name": "_callRefreshToken", "kind": 2048, "kindString": "Method", @@ -3377,7 +4408,7 @@ }, "signatures": [ { - "id": 469, + "id": 553, "name": "_callRefreshToken", "kind": 4096, "kindString": "Call signature", @@ -3386,7 +4417,7 @@ }, "parameters": [ { - "id": 470, + "id": 554, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -3418,7 +4449,7 @@ { "type": "reflection", "declaration": { - "id": 471, + "id": 555, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3427,7 +4458,7 @@ }, "children": [ { - "id": 472, + "id": 556, "name": "data", "kind": 32, "kindString": "Variable", @@ -3437,7 +4468,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 532, + "line": 610, "character": 19 } ], @@ -3448,7 +4479,7 @@ } }, { - "id": 473, + "id": 557, "name": "error", "kind": 32, "kindString": "Variable", @@ -3458,7 +4489,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 532, + "line": 610, "character": 26 } ], @@ -3474,8 +4505,8 @@ "title": "Variables", "kind": 32, "children": [ - 472, - 473 + 556, + 557 ] } ] @@ -3484,7 +4515,7 @@ { "type": "reflection", "declaration": { - "id": 474, + "id": 558, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3493,7 +4524,7 @@ }, "children": [ { - "id": 475, + "id": 559, "name": "data", "kind": 32, "kindString": "Variable", @@ -3503,7 +4534,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 534, + "line": 612, "character": 19 } ], @@ -3514,7 +4545,7 @@ "defaultValue": "null" }, { - "id": 476, + "id": 560, "name": "error", "kind": 32, "kindString": "Variable", @@ -3524,7 +4555,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 534, + "line": 612, "character": 32 } ], @@ -3539,8 +4570,8 @@ "title": "Variables", "kind": 32, "children": [ - 475, - 476 + 559, + 560 ] } ] @@ -3556,13 +4587,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 520, + "line": 598, "character": 33 } ] }, { - "id": 428, + "id": 498, "name": "_handleEmailSignIn", "kind": 2048, "kindString": "Method", @@ -3572,7 +4603,7 @@ }, "signatures": [ { - "id": 429, + "id": 499, "name": "_handleEmailSignIn", "kind": 4096, "kindString": "Call signature", @@ -3581,7 +4612,7 @@ }, "parameters": [ { - "id": 430, + "id": 500, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -3594,7 +4625,7 @@ } }, { - "id": 431, + "id": 501, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -3607,7 +4638,7 @@ } }, { - "id": 432, + "id": 502, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -3617,7 +4648,7 @@ "type": { "type": "reflection", "declaration": { - "id": 433, + "id": 503, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3626,7 +4657,7 @@ }, "children": [ { - "id": 434, + "id": 504, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -3637,7 +4668,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 411, + "line": 473, "character": 16 } ], @@ -3661,14 +4692,14 @@ "title": "Variables", "kind": 32, "children": [ - 434 + 504 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 410, + "line": 472, "character": 12 } ] @@ -3686,7 +4717,7 @@ { "type": "reflection", "declaration": { - "id": 435, + "id": 505, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3695,7 +4726,7 @@ }, "children": [ { - "id": 436, + "id": 506, "name": "data", "kind": 32, "kindString": "Variable", @@ -3705,7 +4736,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 425, + "line": 487, "character": 19 } ], @@ -3716,7 +4747,7 @@ } }, { - "id": 439, + "id": 509, "name": "error", "kind": 32, "kindString": "Variable", @@ -3726,7 +4757,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 425, + "line": 487, "character": 58 } ], @@ -3737,7 +4768,7 @@ "defaultValue": "null" }, { - "id": 438, + "id": 508, "name": "session", "kind": 32, "kindString": "Variable", @@ -3747,7 +4778,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 425, + "line": 487, "character": 45 } ], @@ -3759,7 +4790,7 @@ "defaultValue": "data" }, { - "id": 437, + "id": 507, "name": "user", "kind": 32, "kindString": "Variable", @@ -3769,7 +4800,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 425, + "line": 487, "character": 25 } ], @@ -3795,10 +4826,10 @@ "title": "Variables", "kind": 32, "children": [ - 436, - 439, - 438, - 437 + 506, + 509, + 508, + 507 ] } ] @@ -3807,7 +4838,7 @@ { "type": "reflection", "declaration": { - "id": 440, + "id": 510, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3816,7 +4847,7 @@ }, "children": [ { - "id": 441, + "id": 511, "name": "data", "kind": 32, "kindString": "Variable", @@ -3826,7 +4857,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 427, + "line": 489, "character": 19 } ], @@ -3837,7 +4868,7 @@ "defaultValue": "null" }, { - "id": 444, + "id": 514, "name": "error", "kind": 32, "kindString": "Variable", @@ -3847,7 +4878,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 427, + "line": 489, "character": 59 } ], @@ -3857,7 +4888,7 @@ } }, { - "id": 443, + "id": 513, "name": "session", "kind": 32, "kindString": "Variable", @@ -3867,7 +4898,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 427, + "line": 489, "character": 46 } ], @@ -3878,7 +4909,7 @@ "defaultValue": "null" }, { - "id": 442, + "id": 512, "name": "user", "kind": 32, "kindString": "Variable", @@ -3888,7 +4919,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 427, + "line": 489, "character": 31 } ], @@ -3904,10 +4935,10 @@ "title": "Variables", "kind": 32, "children": [ - 441, - 444, - 443, - 442 + 511, + 514, + 513, + 512 ] } ] @@ -3923,13 +4954,310 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 407, + "line": 469, "character": 34 } ] }, { - "id": 445, + "id": 515, + "name": "_handlePhoneSignIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 516, + "name": "_handlePhoneSignIn", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 517, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 518, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 519, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 520, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 503, + "character": 19 + } + ], + "type": { + "type": "reference", + "id": 50, + "name": "Session" + } + }, + { + "id": 523, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 503, + "character": 58 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 522, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 503, + "character": 45 + } + ], + "type": { + "type": "reference", + "id": 50, + "name": "Session" + }, + "defaultValue": "data" + }, + { + "id": 521, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 503, + "character": 25 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "reference", + "id": 58, + "name": "User" + } + ] + }, + "defaultValue": "data.user" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 520, + 523, + 522, + 521 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 524, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 525, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 505, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 528, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 505, + "character": 59 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 527, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 505, + "character": 46 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 526, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 505, + "character": 31 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 525, + 528, + 527, + 526 + ] + } + ] + } + } + ] + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 493, + "character": 34 + } + ] + }, + { + "id": 529, "name": "_handleProviderSignIn", "kind": 2048, "kindString": "Method", @@ -3939,7 +5267,7 @@ }, "signatures": [ { - "id": 446, + "id": 530, "name": "_handleProviderSignIn", "kind": 4096, "kindString": "Call signature", @@ -3948,7 +5276,7 @@ }, "parameters": [ { - "id": 447, + "id": 531, "name": "provider", "kind": 32768, "kindString": "Parameter", @@ -3957,12 +5285,12 @@ }, "type": { "type": "reference", - "id": 103, + "id": 112, "name": "Provider" } }, { - "id": 448, + "id": 532, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -3972,7 +5300,7 @@ "type": { "type": "reflection", "declaration": { - "id": 449, + "id": 533, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3981,7 +5309,7 @@ }, "children": [ { - "id": 450, + "id": 534, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -3992,7 +5320,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 434, + "line": 512, "character": 16 } ], @@ -4011,7 +5339,7 @@ } }, { - "id": 451, + "id": 535, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -4022,7 +5350,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 435, + "line": 513, "character": 12 } ], @@ -4046,15 +5374,15 @@ "title": "Variables", "kind": 32, "children": [ - 450, - 451 + 534, + 535 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 433, + "line": 511, "character": 12 } ] @@ -4069,7 +5397,7 @@ { "type": "reflection", "declaration": { - "id": 452, + "id": 536, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4078,7 +5406,7 @@ }, "children": [ { - "id": 455, + "id": 539, "name": "data", "kind": 32, "kindString": "Variable", @@ -4088,7 +5416,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 34 } ], @@ -4099,7 +5427,7 @@ "defaultValue": "null" }, { - "id": 458, + "id": 542, "name": "error", "kind": 32, "kindString": "Variable", @@ -4109,7 +5437,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 74 } ], @@ -4120,7 +5448,7 @@ "defaultValue": "null" }, { - "id": 453, + "id": 537, "name": "provider", "kind": 32, "kindString": "Variable", @@ -4130,18 +5458,18 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 23 } ], "type": { "type": "reference", - "id": 103, + "id": 112, "name": "Provider" } }, { - "id": 456, + "id": 540, "name": "session", "kind": 32, "kindString": "Variable", @@ -4151,7 +5479,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 49 } ], @@ -4162,7 +5490,7 @@ "defaultValue": "null" }, { - "id": 454, + "id": 538, "name": "url", "kind": 32, "kindString": "Variable", @@ -4172,7 +5500,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 28 } ], @@ -4182,7 +5510,7 @@ } }, { - "id": 457, + "id": 541, "name": "user", "kind": 32, "kindString": "Variable", @@ -4192,7 +5520,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 448, + "line": 526, "character": 61 } ], @@ -4208,12 +5536,12 @@ "title": "Variables", "kind": 32, "children": [ - 455, - 458, - 453, - 456, - 454, - 457 + 539, + 542, + 537, + 540, + 538, + 541 ] } ] @@ -4222,7 +5550,7 @@ { "type": "reflection", "declaration": { - "id": 459, + "id": 543, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4231,7 +5559,7 @@ }, "children": [ { - "id": 460, + "id": 544, "name": "data", "kind": 32, "kindString": "Variable", @@ -4241,7 +5569,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 452, + "line": 530, "character": 19 } ], @@ -4252,7 +5580,7 @@ "defaultValue": "null" }, { - "id": 463, + "id": 547, "name": "error", "kind": 32, "kindString": "Variable", @@ -4262,7 +5590,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 452, + "line": 530, "character": 59 } ], @@ -4272,7 +5600,7 @@ } }, { - "id": 462, + "id": 546, "name": "session", "kind": 32, "kindString": "Variable", @@ -4282,7 +5610,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 452, + "line": 530, "character": 46 } ], @@ -4293,7 +5621,7 @@ "defaultValue": "null" }, { - "id": 461, + "id": 545, "name": "user", "kind": 32, "kindString": "Variable", @@ -4303,7 +5631,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 452, + "line": 530, "character": 31 } ], @@ -4319,10 +5647,10 @@ "title": "Variables", "kind": 32, "children": [ - 460, - 463, - 462, - 461 + 544, + 547, + 546, + 545 ] } ] @@ -4335,13 +5663,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 431, + "line": 509, "character": 31 } ] }, { - "id": 477, + "id": 561, "name": "_notifyAllSubscribers", "kind": 2048, "kindString": "Method", @@ -4351,7 +5679,7 @@ }, "signatures": [ { - "id": 478, + "id": 562, "name": "_notifyAllSubscribers", "kind": 4096, "kindString": "Call signature", @@ -4360,7 +5688,7 @@ }, "parameters": [ { - "id": 479, + "id": 563, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -4369,7 +5697,7 @@ }, "type": { "type": "reference", - "id": 104, + "id": 113, "name": "AuthChangeEvent" } } @@ -4383,13 +5711,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 538, + "line": 616, "character": 31 } ] }, { - "id": 483, + "id": 567, "name": "_persistSession", "kind": 2048, "kindString": "Method", @@ -4399,7 +5727,7 @@ }, "signatures": [ { - "id": 484, + "id": 568, "name": "_persistSession", "kind": 4096, "kindString": "Call signature", @@ -4408,7 +5736,7 @@ }, "parameters": [ { - "id": 485, + "id": 569, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -4431,13 +5759,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 565, + "line": 643, "character": 25 } ] }, { - "id": 466, + "id": 550, "name": "_recoverAndRefresh", "kind": 2048, "kindString": "Method", @@ -4447,7 +5775,7 @@ }, "signatures": [ { - "id": 467, + "id": 551, "name": "_recoverAndRefresh", "kind": 4096, "kindString": "Call signature", @@ -4481,13 +5809,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 484, + "line": 562, "character": 34 } ] }, { - "id": 464, + "id": 548, "name": "_recoverSession", "kind": 2048, "kindString": "Method", @@ -4497,7 +5825,7 @@ }, "signatures": [ { - "id": 465, + "id": 549, "name": "_recoverSession", "kind": 4096, "kindString": "Call signature", @@ -4525,13 +5853,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 460, + "line": 538, "character": 25 } ] }, { - "id": 486, + "id": 570, "name": "_removeSession", "kind": 2048, "kindString": "Method", @@ -4541,7 +5869,7 @@ }, "signatures": [ { - "id": 487, + "id": 571, "name": "_removeSession", "kind": 4096, "kindString": "Call signature", @@ -4563,13 +5891,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 570, + "line": 648, "character": 30 } ] }, { - "id": 480, + "id": 564, "name": "_saveSession", "kind": 2048, "kindString": "Method", @@ -4579,7 +5907,7 @@ }, "signatures": [ { - "id": 481, + "id": 565, "name": "_saveSession", "kind": 4096, "kindString": "Call signature", @@ -4591,7 +5919,7 @@ }, "parameters": [ { - "id": 482, + "id": 566, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -4614,13 +5942,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 546, + "line": 624, "character": 22 } ] }, { - "id": 488, + "id": 572, "name": "_startAutoRefreshToken", "kind": 2048, "kindString": "Method", @@ -4630,7 +5958,7 @@ }, "signatures": [ { - "id": 489, + "id": 573, "name": "_startAutoRefreshToken", "kind": 4096, "kindString": "Call signature", @@ -4642,7 +5970,7 @@ }, "parameters": [ { - "id": 490, + "id": 574, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4667,13 +5995,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 581, + "line": 659, "character": 32 } ] }, { - "id": 406, + "id": 476, "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", @@ -4682,7 +6010,7 @@ }, "signatures": [ { - "id": 407, + "id": 477, "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", @@ -4694,7 +6022,7 @@ }, "parameters": [ { - "id": 408, + "id": 478, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -4712,7 +6040,7 @@ { "type": "reflection", "declaration": { - "id": 409, + "id": 479, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4721,7 +6049,7 @@ }, "children": [ { - "id": 410, + "id": 480, "name": "storeSession", "kind": 32, "kindString": "Variable", @@ -4735,7 +6063,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 317, + "line": 379, "character": 16 } ], @@ -4763,7 +6091,7 @@ "title": "Variables", "kind": 32, "children": [ - 410 + 480 ] } ] @@ -4779,7 +6107,7 @@ { "type": "reflection", "declaration": { - "id": 411, + "id": 481, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4788,7 +6116,7 @@ }, "children": [ { - "id": 412, + "id": 482, "name": "data", "kind": 32, "kindString": "Variable", @@ -4798,7 +6126,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 318, + "line": 380, "character": 20 } ], @@ -4818,7 +6146,7 @@ } }, { - "id": 413, + "id": 483, "name": "error", "kind": 32, "kindString": "Variable", @@ -4828,7 +6156,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 318, + "line": 380, "character": 43 } ], @@ -4852,15 +6180,15 @@ "title": "Variables", "kind": 32, "children": [ - 412, - 413 + 482, + 483 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 318, + "line": 380, "character": 14 } ] @@ -4874,13 +6202,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 316, + "line": 378, "character": 25 } ] }, { - "id": 418, + "id": 488, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -4889,7 +6217,7 @@ }, "signatures": [ { - "id": 419, + "id": 489, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -4902,7 +6230,7 @@ }, "parameters": [ { - "id": 420, + "id": 490, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -4912,7 +6240,7 @@ "type": { "type": "reflection", "declaration": { - "id": 421, + "id": 491, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4921,7 +6249,7 @@ }, "signatures": [ { - "id": 422, + "id": 492, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -4930,7 +6258,7 @@ }, "parameters": [ { - "id": 423, + "id": 493, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -4939,12 +6267,12 @@ }, "type": { "type": "reference", - "id": 104, + "id": 113, "name": "AuthChangeEvent" } }, { - "id": 424, + "id": 494, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -4976,7 +6304,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 388, + "line": 450, "character": 13 } ] @@ -4987,7 +6315,7 @@ "type": { "type": "reflection", "declaration": { - "id": 425, + "id": 495, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4996,7 +6324,7 @@ }, "children": [ { - "id": 426, + "id": 496, "name": "data", "kind": 32, "kindString": "Variable", @@ -5006,7 +6334,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 389, + "line": 451, "character": 11 } ], @@ -5015,7 +6343,7 @@ "types": [ { "type": "reference", - "id": 82, + "id": 87, "name": "Subscription" }, { @@ -5026,7 +6354,7 @@ } }, { - "id": 427, + "id": 497, "name": "error", "kind": 32, "kindString": "Variable", @@ -5036,7 +6364,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 389, + "line": 451, "character": 39 } ], @@ -5060,15 +6388,15 @@ "title": "Variables", "kind": 32, "children": [ - 426, - 427 + 496, + 497 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 389, + "line": 451, "character": 4 } ] @@ -5079,13 +6407,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 387, + "line": 449, "character": 19 } ] }, { - "id": 384, + "id": 454, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -5094,7 +6422,7 @@ }, "signatures": [ { - "id": 385, + "id": 455, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -5110,7 +6438,7 @@ { "type": "reflection", "declaration": { - "id": 386, + "id": 456, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5119,7 +6447,7 @@ }, "children": [ { - "id": 387, + "id": 457, "name": "data", "kind": 32, "kindString": "Variable", @@ -5129,7 +6457,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 224, + "line": 286, "character": 8 } ], @@ -5149,7 +6477,7 @@ } }, { - "id": 389, + "id": 459, "name": "error", "kind": 32, "kindString": "Variable", @@ -5159,7 +6487,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 226, + "line": 288, "character": 9 } ], @@ -5178,7 +6506,7 @@ } }, { - "id": 388, + "id": 458, "name": "user", "kind": 32, "kindString": "Variable", @@ -5188,7 +6516,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 225, + "line": 287, "character": 8 } ], @@ -5213,16 +6541,16 @@ "title": "Variables", "kind": 32, "children": [ - 387, - 389, - 388 + 457, + 459, + 458 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 223, + "line": 285, "character": 34 } ] @@ -5236,13 +6564,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 223, + "line": 285, "character": 22 } ] }, { - "id": 382, + "id": 452, "name": "session", "kind": 2048, "kindString": "Method", @@ -5251,7 +6579,7 @@ }, "signatures": [ { - "id": 383, + "id": 453, "name": "session", "kind": 4096, "kindString": "Call signature", @@ -5280,13 +6608,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 216, + "line": 278, "character": 9 } ] }, { - "id": 403, + "id": 473, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -5295,7 +6623,7 @@ }, "signatures": [ { - "id": 404, + "id": 474, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -5307,7 +6635,7 @@ }, "parameters": [ { - "id": 405, + "id": 475, "name": "access_token", "kind": 32768, "kindString": "Parameter", @@ -5333,13 +6661,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 301, + "line": 363, "character": 9 } ] }, { - "id": 397, + "id": 467, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -5348,7 +6676,7 @@ }, "signatures": [ { - "id": 398, + "id": 468, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -5360,7 +6688,7 @@ }, "parameters": [ { - "id": 399, + "id": 469, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -5382,7 +6710,7 @@ { "type": "reflection", "declaration": { - "id": 400, + "id": 470, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5391,7 +6719,7 @@ }, "children": [ { - "id": 402, + "id": 472, "name": "error", "kind": 32, "kindString": "Variable", @@ -5401,7 +6729,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 273, + "line": 335, "character": 45 } ], @@ -5420,7 +6748,7 @@ } }, { - "id": 401, + "id": 471, "name": "session", "kind": 32, "kindString": "Variable", @@ -5430,7 +6758,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 273, + "line": 335, "character": 22 } ], @@ -5455,15 +6783,15 @@ "title": "Variables", "kind": 32, "children": [ - 402, - 401 + 472, + 471 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 273, + "line": 335, "character": 13 } ] @@ -5477,13 +6805,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 271, + "line": 333, "character": 18 } ] }, { - "id": 361, + "id": 416, "name": "signIn", "kind": 2048, "kindString": "Method", @@ -5492,7 +6820,7 @@ }, "signatures": [ { - "id": 362, + "id": 417, "name": "signIn", "kind": 4096, "kindString": "Call signature", @@ -5504,7 +6832,7 @@ }, "parameters": [ { - "id": 363, + "id": 418, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -5515,7 +6843,7 @@ "type": { "type": "reflection", "declaration": { - "id": 364, + "id": 419, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5524,7 +6852,7 @@ }, "children": [ { - "id": 365, + "id": 420, "name": "email", "kind": 32, "kindString": "Variable", @@ -5537,7 +6865,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 153, + "line": 158, "character": 11 } ], @@ -5556,7 +6884,7 @@ } }, { - "id": 366, + "id": 422, "name": "password", "kind": 32, "kindString": "Variable", @@ -5569,8 +6897,8 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 153, - "character": 21 + "line": 158, + "character": 28 } ], "type": { @@ -5588,7 +6916,36 @@ } }, { - "id": 368, + "id": 421, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 158, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 424, "name": "provider", "kind": 32, "kindString": "Variable", @@ -5601,8 +6958,8 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 153, - "character": 45 + "line": 158, + "character": 52 } ], "type": { @@ -5647,12 +7004,16 @@ { "type": "stringLiteral", "value": "discord" + }, + { + "type": "stringLiteral", + "value": "twitch" } ] } }, { - "id": 367, + "id": 423, "name": "refreshToken", "kind": 32, "kindString": "Variable", @@ -5665,8 +7026,8 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 153, - "character": 35 + "line": 158, + "character": 42 } ], "type": { @@ -5689,17 +7050,18 @@ "title": "Variables", "kind": 32, "children": [ - 365, - 366, - 368, - 367 + 420, + 422, + 421, + 424, + 423 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 152, + "line": 157, "character": 15 } ] @@ -5707,7 +7069,7 @@ } }, { - "id": 369, + "id": 425, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5717,7 +7079,7 @@ "type": { "type": "reflection", "declaration": { - "id": 370, + "id": 426, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5726,7 +7088,7 @@ }, "children": [ { - "id": 371, + "id": 427, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -5737,7 +7099,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 155, + "line": 160, "character": 16 } ], @@ -5756,7 +7118,7 @@ } }, { - "id": 372, + "id": 428, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -5767,7 +7129,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 156, + "line": 161, "character": 12 } ], @@ -5791,15 +7153,15 @@ "title": "Variables", "kind": 32, "children": [ - 371, - 372 + 427, + 428 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 154, + "line": 159, "character": 12 } ] @@ -5814,7 +7176,7 @@ { "type": "reflection", "declaration": { - "id": 373, + "id": 429, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5823,7 +7185,7 @@ }, "children": [ { - "id": 379, + "id": 435, "name": "data", "kind": 32, "kindString": "Variable", @@ -5833,7 +7195,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 164, + "line": 169, "character": 8 } ], @@ -5853,7 +7215,7 @@ } }, { - "id": 378, + "id": 434, "name": "error", "kind": 32, "kindString": "Variable", @@ -5863,7 +7225,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 163, + "line": 168, "character": 9 } ], @@ -5882,7 +7244,7 @@ } }, { - "id": 376, + "id": 432, "name": "provider", "kind": 32, "kindString": "Variable", @@ -5893,18 +7255,18 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 161, + "line": 166, "character": 12 } ], "type": { "type": "reference", - "id": 103, + "id": 112, "name": "Provider" } }, { - "id": 374, + "id": 430, "name": "session", "kind": 32, "kindString": "Variable", @@ -5914,7 +7276,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 159, + "line": 164, "character": 11 } ], @@ -5934,7 +7296,7 @@ } }, { - "id": 377, + "id": 433, "name": "url", "kind": 32, "kindString": "Variable", @@ -5945,7 +7307,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 162, + "line": 167, "character": 7 } ], @@ -5964,7 +7326,7 @@ } }, { - "id": 375, + "id": 431, "name": "user", "kind": 32, "kindString": "Variable", @@ -5974,7 +7336,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 160, + "line": 165, "character": 8 } ], @@ -5999,19 +7361,19 @@ "title": "Variables", "kind": 32, "children": [ - 379, - 378, - 376, - 374, - 377, - 375 + 435, + 434, + 432, + 430, + 433, + 431 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 158, + "line": 163, "character": 13 } ] @@ -6025,13 +7387,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 152, + "line": 157, "character": 14 } ] }, { - "id": 414, + "id": 484, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -6040,7 +7402,7 @@ }, "signatures": [ { - "id": 415, + "id": 485, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -6048,7 +7410,7 @@ "isExported": true }, "comment": { - "shortText": "Inside a browser context, `signOut()` will remove extract the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", + "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n" }, "type": { @@ -6057,7 +7419,7 @@ { "type": "reflection", "declaration": { - "id": 416, + "id": 486, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6066,7 +7428,7 @@ }, "children": [ { - "id": 417, + "id": 487, "name": "error", "kind": 32, "kindString": "Variable", @@ -6076,7 +7438,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 372, + "line": 434, "character": 34 } ], @@ -6100,14 +7462,14 @@ "title": "Variables", "kind": 32, "children": [ - 417 + 487 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 372, + "line": 434, "character": 27 } ] @@ -6121,13 +7483,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 372, + "line": 434, "character": 15 } ] }, { - "id": 347, + "id": 401, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -6136,7 +7498,7 @@ }, "signatures": [ { - "id": 348, + "id": 402, "name": "signUp", "kind": 4096, "kindString": "Call signature", @@ -6148,7 +7510,7 @@ }, "parameters": [ { - "id": 349, + "id": 403, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -6159,7 +7521,7 @@ "type": { "type": "reflection", "declaration": { - "id": 350, + "id": 404, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6168,7 +7530,7 @@ }, "children": [ { - "id": 351, + "id": 405, "name": "email", "kind": 32, "kindString": "Variable", @@ -6181,7 +7543,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 97, + "line": 99, "character": 11 } ], @@ -6200,7 +7562,7 @@ } }, { - "id": 352, + "id": 406, "name": "password", "kind": 32, "kindString": "Variable", @@ -6213,7 +7575,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 97, + "line": 99, "character": 21 } ], @@ -6230,6 +7592,38 @@ } ] } + }, + { + "id": 407, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 99, + "character": 28 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } } ], "groups": [ @@ -6237,15 +7631,16 @@ "title": "Variables", "kind": 32, "children": [ - 351, - 352 + 405, + 406, + 407 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 96, + "line": 98, "character": 15 } ] @@ -6253,7 +7648,7 @@ } }, { - "id": 353, + "id": 408, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -6263,7 +7658,7 @@ "type": { "type": "reflection", "declaration": { - "id": 354, + "id": 409, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6272,7 +7667,7 @@ }, "children": [ { - "id": 355, + "id": 410, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -6283,7 +7678,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 99, + "line": 101, "character": 16 } ], @@ -6307,14 +7702,14 @@ "title": "Variables", "kind": 32, "children": [ - 355 + 410 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 98, + "line": 100, "character": 12 } ] @@ -6329,7 +7724,7 @@ { "type": "reflection", "declaration": { - "id": 356, + "id": 411, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6338,7 +7733,7 @@ }, "children": [ { - "id": 360, + "id": 415, "name": "data", "kind": 32, "kindString": "Variable", @@ -6348,7 +7743,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 105, + "line": 107, "character": 8 } ], @@ -6373,7 +7768,7 @@ } }, { - "id": 359, + "id": 414, "name": "error", "kind": 32, "kindString": "Variable", @@ -6383,7 +7778,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 104, + "line": 106, "character": 9 } ], @@ -6402,7 +7797,7 @@ } }, { - "id": 358, + "id": 413, "name": "session", "kind": 32, "kindString": "Variable", @@ -6412,7 +7807,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 103, + "line": 105, "character": 11 } ], @@ -6432,7 +7827,7 @@ } }, { - "id": 357, + "id": 412, "name": "user", "kind": 32, "kindString": "Variable", @@ -6442,7 +7837,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 102, + "line": 104, "character": 8 } ], @@ -6467,17 +7862,17 @@ "title": "Variables", "kind": 32, "children": [ - 360, - 359, - 358, - 357 + 415, + 414, + 413, + 412 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 101, + "line": 103, "character": 13 } ] @@ -6491,13 +7886,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 96, + "line": 98, "character": 14 } ] }, { - "id": 390, + "id": 460, "name": "update", "kind": 2048, "kindString": "Method", @@ -6506,7 +7901,7 @@ }, "signatures": [ { - "id": 391, + "id": 461, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -6518,7 +7913,7 @@ }, "parameters": [ { - "id": 392, + "id": 462, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -6527,7 +7922,7 @@ }, "type": { "type": "reference", - "id": 77, + "id": 82, "name": "UserAttributes" } } @@ -6538,7 +7933,7 @@ { "type": "reflection", "declaration": { - "id": 393, + "id": 463, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6547,7 +7942,7 @@ }, "children": [ { - "id": 394, + "id": 464, "name": "data", "kind": 32, "kindString": "Variable", @@ -6557,7 +7952,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 246, + "line": 308, "character": 19 } ], @@ -6577,7 +7972,7 @@ } }, { - "id": 396, + "id": 466, "name": "error", "kind": 32, "kindString": "Variable", @@ -6587,7 +7982,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 246, + "line": 308, "character": 58 } ], @@ -6606,7 +8001,7 @@ } }, { - "id": 395, + "id": 465, "name": "user", "kind": 32, "kindString": "Variable", @@ -6616,7 +8011,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 246, + "line": 308, "character": 38 } ], @@ -6641,16 +8036,16 @@ "title": "Variables", "kind": 32, "children": [ - 394, - 396, - 395 + 464, + 466, + 465 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 246, + "line": 308, "character": 13 } ] @@ -6664,13 +8059,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 244, + "line": 306, "character": 14 } ] }, { - "id": 380, + "id": 450, "name": "user", "kind": 2048, "kindString": "Method", @@ -6679,7 +8074,7 @@ }, "signatures": [ { - "id": 381, + "id": 451, "name": "user", "kind": 4096, "kindString": "Call signature", @@ -6709,10 +8104,362 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 209, + "line": 271, "character": 6 } ] + }, + { + "id": 436, + "name": "verifyOTP", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 437, + "name": "verifyOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Log in a user given a User supplied OTP received via mobile." + }, + "parameters": [ + { + "id": 438, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 439, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 440, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 223, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 441, + "name": "token", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's password." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 223, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 440, + 441 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 222, + "character": 18 + } + ] + } + } + }, + { + "id": 442, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 443, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 444, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 225, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 444 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 224, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 445, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 449, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 231, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 448, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 230, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 447, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 229, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 446, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 228, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 449, + 448, + 447, + 446 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 227, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 222, + "character": 17 + } + ] } ], "groups": [ @@ -6720,61 +8467,63 @@ "title": "Constructors", "kind": 512, "children": [ - 333 + 387 ] }, { "title": "Properties", "kind": 1024, "children": [ - 325, - 328, - 327, - 326, - 330, - 329, - 332, - 331 + 379, + 382, + 381, + 380, + 384, + 383, + 386, + 385 ] }, { "title": "Methods", "kind": 2048, "children": [ - 468, - 428, - 445, - 477, - 483, - 466, - 464, - 486, - 480, + 552, + 498, + 515, + 529, + 561, + 567, + 550, + 548, + 570, + 564, + 572, + 476, 488, - 406, - 418, - 384, - 382, - 403, - 397, - 361, - 414, - 347, - 390, - 380 + 454, + 452, + 473, + 467, + 416, + 484, + 401, + 460, + 450, + 436 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 26, + "line": 27, "character": 33 } ] }, { - "id": 491, + "id": 575, "name": "DEFAULT_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -6783,7 +8532,7 @@ }, "children": [ { - "id": 493, + "id": 577, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -6791,7 +8540,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 20, + "line": 21, "character": 18 } ], @@ -6802,7 +8551,7 @@ "defaultValue": "true" }, { - "id": 496, + "id": 580, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -6810,7 +8559,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 23, + "line": 24, "character": 20 } ], @@ -6821,7 +8570,7 @@ "defaultValue": "true" }, { - "id": 497, + "id": 581, "name": "headers", "kind": 32, "kindString": "Variable", @@ -6829,24 +8578,54 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 24, + "line": 25, "character": 9 } ], "type": { "type": "reflection", "declaration": { - "id": 498, + "id": 582, "name": "__type", "kind": 65536, "kindString": "Type literal", - "flags": {} + "flags": {}, + "children": [ + { + "id": 583, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 4, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`gotrue-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 583 + ] + } + ] } }, "defaultValue": "DEFAULT_HEADERS" }, { - "id": 495, + "id": 579, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -6854,7 +8633,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 22, + "line": 23, "character": 14 } ], @@ -6865,7 +8644,7 @@ "defaultValue": "globalThis.localStorage" }, { - "id": 494, + "id": 578, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -6873,7 +8652,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 21, + "line": 22, "character": 16 } ], @@ -6884,7 +8663,7 @@ "defaultValue": "true" }, { - "id": 492, + "id": 576, "name": "url", "kind": 32, "kindString": "Variable", @@ -6892,7 +8671,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 19, + "line": 20, "character": 5 } ], @@ -6908,19 +8687,19 @@ "title": "Variables", "kind": 32, "children": [ - 493, - 496, - 497, - 495, - 494, - 492 + 577, + 580, + 581, + 579, + 578, + 576 ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 18, + "line": 19, "character": 21 } ], @@ -6935,14 +8714,14 @@ "title": "Classes", "kind": 128, "children": [ - 324 + 378 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 491 + 575 ] } ], @@ -6955,7 +8734,7 @@ ] }, { - "id": 499, + "id": 584, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -6965,37 +8744,37 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts", "children": [ { - "id": 501, + "id": 586, "name": "AuthChangeEvent", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 104 + "target": 113 }, { - "id": 506, + "id": 591, "name": "CookieOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 92 + "target": 97 }, { - "id": 500, + "id": 585, "name": "Provider", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 103 + "target": 112 }, { - "id": 502, + "id": 587, "name": "Session", "kind": 16777216, "kindString": "Reference", @@ -7005,17 +8784,17 @@ "target": 50 }, { - "id": 505, + "id": 590, "name": "Subscription", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 82 + "target": 87 }, { - "id": 503, + "id": 588, "name": "User", "kind": 16777216, "kindString": "Reference", @@ -7025,24 +8804,34 @@ "target": 58 }, { - "id": 504, + "id": 589, "name": "UserAttributes", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 77 + "target": 82 }, { - "id": 507, + "id": 592, "name": "UserCredentials", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 98 + "target": 103 + }, + { + "id": 593, + "name": "VerifyOTPParams", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 109 } ], "groups": [ @@ -7050,14 +8839,15 @@ "title": "References", "kind": 16777216, "children": [ - 501, - 506, - 500, - 502, - 505, - 503, - 504, - 507 + 586, + 591, + 585, + 587, + 590, + 588, + 589, + 592, + 593 ] } ], @@ -7070,7 +8860,7 @@ ] }, { - "id": 105, + "id": 116, "name": "\"lib/constants\"", "kind": 1, "kindString": "Module", @@ -7080,7 +8870,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts", "children": [ { - "id": 107, + "id": 118, "name": "AUDIENCE", "kind": 32, "kindString": "Variable", @@ -7091,7 +8881,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 2, + "line": 3, "character": 21 } ], @@ -7102,36 +8892,7 @@ "defaultValue": "\"\"" }, { - "id": 108, - "name": "DEFAULT_HEADERS", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isConst": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 3, - "character": 28 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 109, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - } - } - } - }, - { - "id": 110, + "id": 121, "name": "EXPIRY_MARGIN", "kind": 32, "kindString": "Variable", @@ -7142,7 +8903,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 4, + "line": 5, "character": 26 } ], @@ -7153,7 +8914,7 @@ "defaultValue": "60 * 1000" }, { - "id": 106, + "id": 117, "name": "GOTRUE_URL", "kind": 32, "kindString": "Variable", @@ -7164,7 +8925,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 1, + "line": 2, "character": 23 } ], @@ -7175,7 +8936,7 @@ "defaultValue": "\"http://localhost:9999\"" }, { - "id": 111, + "id": 122, "name": "STORAGE_KEY", "kind": 32, "kindString": "Variable", @@ -7186,7 +8947,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 5, + "line": 6, "character": 24 } ], @@ -7197,7 +8958,7 @@ "defaultValue": "\"supabase.auth.token\"" }, { - "id": 112, + "id": 123, "name": "COOKIE_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -7207,7 +8968,7 @@ }, "children": [ { - "id": 115, + "id": 126, "name": "domain", "kind": 32, "kindString": "Variable", @@ -7217,7 +8978,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 9, + "line": 10, "character": 8 } ], @@ -7228,7 +8989,7 @@ "defaultValue": "\"\"" }, { - "id": 114, + "id": 125, "name": "lifetime", "kind": 32, "kindString": "Variable", @@ -7238,7 +8999,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 8, + "line": 9, "character": 10 } ], @@ -7249,7 +9010,7 @@ "defaultValue": "60 * 60 * 8" }, { - "id": 113, + "id": 124, "name": "name", "kind": 32, "kindString": "Variable", @@ -7259,7 +9020,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 7, + "line": 8, "character": 6 } ], @@ -7270,7 +9031,7 @@ "defaultValue": "\"sb:token\"" }, { - "id": 116, + "id": 127, "name": "path", "kind": 32, "kindString": "Variable", @@ -7280,7 +9041,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 10, + "line": 11, "character": 6 } ], @@ -7291,7 +9052,7 @@ "defaultValue": "\"/\"" }, { - "id": 117, + "id": 128, "name": "sameSite", "kind": 32, "kindString": "Variable", @@ -7301,7 +9062,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 11, + "line": 12, "character": 10 } ], @@ -7317,18 +9078,18 @@ "title": "Variables", "kind": 32, "children": [ - 115, - 114, - 113, - 116, - 117 + 126, + 125, + 124, + 127, + 128 ] } ], "sources": [ { "fileName": "lib/constants.ts", - "line": 6, + "line": 7, "character": 27 } ], @@ -7336,6 +9097,59 @@ "type": "intrinsic", "name": "object" } + }, + { + "id": 119, + "name": "DEFAULT_HEADERS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isExported": true, + "isConst": true + }, + "children": [ + { + "id": 120, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 4, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`gotrue-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 120 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 4, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } } ], "groups": [ @@ -7343,18 +9157,18 @@ "title": "Variables", "kind": 32, "children": [ - 107, - 108, - 110, - 106, - 111 + 118, + 121, + 117, + 122 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 112 + 123, + 119 ] } ], @@ -7367,7 +9181,7 @@ ] }, { - "id": 118, + "id": 129, "name": "\"lib/cookies\"", "kind": 1, "kindString": "Module", @@ -7377,7 +9191,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts", "children": [ { - "id": 119, + "id": 130, "name": "Cookie", "kind": 4194304, "kindString": "Type alias", @@ -7392,14 +9206,14 @@ "type": { "type": "reflection", "declaration": { - "id": 120, + "id": 131, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 124, + "id": 135, "name": "domain", "kind": 32, "kindString": "Variable", @@ -7428,7 +9242,7 @@ } }, { - "id": 123, + "id": 134, "name": "maxAge", "kind": 32, "kindString": "Variable", @@ -7446,7 +9260,7 @@ } }, { - "id": 121, + "id": 132, "name": "name", "kind": 32, "kindString": "Variable", @@ -7464,7 +9278,7 @@ } }, { - "id": 125, + "id": 136, "name": "path", "kind": 32, "kindString": "Variable", @@ -7493,7 +9307,7 @@ } }, { - "id": 126, + "id": 137, "name": "sameSite", "kind": 32, "kindString": "Variable", @@ -7522,7 +9336,7 @@ } }, { - "id": 122, + "id": 133, "name": "value", "kind": 32, "kindString": "Variable", @@ -7545,12 +9359,12 @@ "title": "Variables", "kind": 32, "children": [ - 124, - 123, - 121, - 125, - 126, - 122 + 135, + 134, + 132, + 136, + 137, + 133 ] } ], @@ -7565,7 +9379,7 @@ } }, { - "id": 157, + "id": 168, "name": "deleteCookie", "kind": 64, "kindString": "Function", @@ -7574,7 +9388,7 @@ }, "signatures": [ { - "id": 158, + "id": 169, "name": "deleteCookie", "kind": 4096, "kindString": "Call signature", @@ -7583,7 +9397,7 @@ }, "parameters": [ { - "id": 159, + "id": 170, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -7596,7 +9410,7 @@ } }, { - "id": 160, + "id": 171, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -7609,7 +9423,7 @@ } }, { - "id": 161, + "id": 172, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -7637,14 +9451,14 @@ ] }, { - "id": 140, + "id": 151, "name": "isSecureEnvironment", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { - "id": 141, + "id": 152, "name": "isSecureEnvironment", "kind": 4096, "kindString": "Call signature", @@ -7654,7 +9468,7 @@ }, "parameters": [ { - "id": 142, + "id": 153, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -7680,14 +9494,14 @@ ] }, { - "id": 127, + "id": 138, "name": "serialize", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { - "id": 128, + "id": 139, "name": "serialize", "kind": 4096, "kindString": "Call signature", @@ -7697,7 +9511,7 @@ }, "parameters": [ { - "id": 129, + "id": 140, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -7708,7 +9522,7 @@ } }, { - "id": 130, + "id": 141, "name": "val", "kind": 32768, "kindString": "Parameter", @@ -7719,7 +9533,7 @@ } }, { - "id": 131, + "id": 142, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -7727,14 +9541,14 @@ "type": { "type": "reflection", "declaration": { - "id": 132, + "id": 143, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 134, + "id": 145, "name": "domain", "kind": 32, "kindString": "Variable", @@ -7752,7 +9566,7 @@ } }, { - "id": 136, + "id": 147, "name": "expires", "kind": 32, "kindString": "Variable", @@ -7770,7 +9584,7 @@ } }, { - "id": 137, + "id": 148, "name": "httpOnly", "kind": 32, "kindString": "Variable", @@ -7788,7 +9602,7 @@ } }, { - "id": 133, + "id": 144, "name": "maxAge", "kind": 32, "kindString": "Variable", @@ -7806,7 +9620,7 @@ } }, { - "id": 135, + "id": 146, "name": "path", "kind": 32, "kindString": "Variable", @@ -7824,7 +9638,7 @@ } }, { - "id": 139, + "id": 150, "name": "sameSite", "kind": 32, "kindString": "Variable", @@ -7842,7 +9656,7 @@ } }, { - "id": 138, + "id": 149, "name": "secure", "kind": 32, "kindString": "Variable", @@ -7865,13 +9679,13 @@ "title": "Variables", "kind": 32, "children": [ - 134, - 136, - 137, - 133, - 135, - 139, - 138 + 145, + 147, + 148, + 144, + 146, + 150, + 149 ] } ], @@ -7901,14 +9715,14 @@ ] }, { - "id": 143, + "id": 154, "name": "serializeCookie", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { - "id": 144, + "id": 155, "name": "serializeCookie", "kind": 4096, "kindString": "Call signature", @@ -7918,19 +9732,19 @@ }, "parameters": [ { - "id": 145, + "id": 156, "name": "cookie", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 119, + "id": 130, "name": "Cookie" } }, { - "id": 146, + "id": 157, "name": "secure", "kind": 32768, "kindString": "Parameter", @@ -7956,7 +9770,7 @@ ] }, { - "id": 152, + "id": 163, "name": "setCookie", "kind": 64, "kindString": "Function", @@ -7965,7 +9779,7 @@ }, "signatures": [ { - "id": 153, + "id": 164, "name": "setCookie", "kind": 4096, "kindString": "Call signature", @@ -7977,7 +9791,7 @@ }, "parameters": [ { - "id": 154, + "id": 165, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -7990,7 +9804,7 @@ } }, { - "id": 155, + "id": 166, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -8003,7 +9817,7 @@ } }, { - "id": 156, + "id": 167, "name": "cookie", "kind": 32768, "kindString": "Parameter", @@ -8012,7 +9826,7 @@ }, "type": { "type": "reference", - "id": 119, + "id": 130, "name": "Cookie" } } @@ -8032,7 +9846,7 @@ ] }, { - "id": 147, + "id": 158, "name": "setCookies", "kind": 64, "kindString": "Function", @@ -8041,7 +9855,7 @@ }, "signatures": [ { - "id": 148, + "id": 159, "name": "setCookies", "kind": 4096, "kindString": "Call signature", @@ -8053,7 +9867,7 @@ }, "parameters": [ { - "id": 149, + "id": 160, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -8066,7 +9880,7 @@ } }, { - "id": 150, + "id": 161, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -8079,7 +9893,7 @@ } }, { - "id": 151, + "id": 162, "name": "cookies", "kind": 32768, "kindString": "Parameter", @@ -8091,7 +9905,7 @@ "typeArguments": [ { "type": "reference", - "id": 119, + "id": 130, "name": "Cookie" } ], @@ -8119,19 +9933,19 @@ "title": "Type aliases", "kind": 4194304, "children": [ - 119 + 130 ] }, { "title": "Functions", "kind": 64, "children": [ - 157, - 140, - 127, - 143, - 152, - 147 + 168, + 151, + 138, + 154, + 163, + 158 ] } ], @@ -8971,7 +10785,7 @@ ] }, { - "id": 162, + "id": 173, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", @@ -8981,7 +10795,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts", "children": [ { - "id": 163, + "id": 174, "name": "LocalStorage", "kind": 128, "kindString": "Class", @@ -8990,7 +10804,7 @@ }, "indexSignature": [ { - "id": 165, + "id": 176, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -8999,7 +10813,7 @@ }, "parameters": [ { - "id": 166, + "id": 177, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -9020,7 +10834,7 @@ ], "children": [ { - "id": 168, + "id": 179, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -9029,7 +10843,7 @@ }, "signatures": [ { - "id": 169, + "id": 180, "name": "new LocalStorage", "kind": 16384, "kindString": "Constructor signature", @@ -9038,7 +10852,7 @@ }, "parameters": [ { - "id": 170, + "id": 181, "name": "localStorage", "kind": 32768, "kindString": "Parameter", @@ -9053,7 +10867,7 @@ ], "type": { "type": "reference", - "id": 163, + "id": 174, "name": "LocalStorage" } } @@ -9067,7 +10881,7 @@ ] }, { - "id": 167, + "id": 178, "name": "length", "kind": 1024, "kindString": "Property", @@ -9087,7 +10901,7 @@ } }, { - "id": 164, + "id": 175, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -9107,7 +10921,7 @@ } }, { - "id": 171, + "id": 182, "name": "clear", "kind": 2048, "kindString": "Method", @@ -9116,7 +10930,7 @@ }, "signatures": [ { - "id": 172, + "id": 183, "name": "clear", "kind": 4096, "kindString": "Call signature", @@ -9138,7 +10952,7 @@ ] }, { - "id": 180, + "id": 191, "name": "getItem", "kind": 2048, "kindString": "Method", @@ -9147,7 +10961,7 @@ }, "signatures": [ { - "id": 181, + "id": 192, "name": "getItem", "kind": 4096, "kindString": "Call signature", @@ -9156,7 +10970,7 @@ }, "parameters": [ { - "id": 182, + "id": 193, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -9193,7 +11007,7 @@ ] }, { - "id": 173, + "id": 184, "name": "key", "kind": 2048, "kindString": "Method", @@ -9202,7 +11016,7 @@ }, "signatures": [ { - "id": 174, + "id": 185, "name": "key", "kind": 4096, "kindString": "Call signature", @@ -9211,7 +11025,7 @@ }, "parameters": [ { - "id": 175, + "id": 186, "name": "index", "kind": 32768, "kindString": "Parameter", @@ -9248,7 +11062,7 @@ ] }, { - "id": 183, + "id": 194, "name": "removeItem", "kind": 2048, "kindString": "Method", @@ -9257,7 +11071,7 @@ }, "signatures": [ { - "id": 184, + "id": 195, "name": "removeItem", "kind": 4096, "kindString": "Call signature", @@ -9266,7 +11080,7 @@ }, "parameters": [ { - "id": 185, + "id": 196, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -9294,7 +11108,7 @@ ] }, { - "id": 176, + "id": 187, "name": "setItem", "kind": 2048, "kindString": "Method", @@ -9303,7 +11117,7 @@ }, "signatures": [ { - "id": 177, + "id": 188, "name": "setItem", "kind": 4096, "kindString": "Call signature", @@ -9312,7 +11126,7 @@ }, "parameters": [ { - "id": 178, + "id": 189, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -9325,7 +11139,7 @@ } }, { - "id": 179, + "id": 190, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -9358,26 +11172,26 @@ "title": "Constructors", "kind": 512, "children": [ - 168 + 179 ] }, { "title": "Properties", "kind": 1024, "children": [ - 167, - 164 + 178, + 175 ] }, { "title": "Methods", "kind": 2048, "children": [ - 171, - 180, - 173, - 183, - 176 + 182, + 191, + 184, + 194, + 187 ] } ], @@ -9396,7 +11210,7 @@ ] }, { - "id": 186, + "id": 197, "name": "expiresAt", "kind": 64, "kindString": "Function", @@ -9405,7 +11219,7 @@ }, "signatures": [ { - "id": 187, + "id": 198, "name": "expiresAt", "kind": 4096, "kindString": "Call signature", @@ -9414,7 +11228,7 @@ }, "parameters": [ { - "id": 188, + "id": 199, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -9442,7 +11256,7 @@ ] }, { - "id": 193, + "id": 204, "name": "getParameterByName", "kind": 64, "kindString": "Function", @@ -9451,7 +11265,7 @@ }, "signatures": [ { - "id": 194, + "id": 205, "name": "getParameterByName", "kind": 4096, "kindString": "Call signature", @@ -9460,7 +11274,7 @@ }, "parameters": [ { - "id": 195, + "id": 206, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -9473,7 +11287,7 @@ } }, { - "id": 196, + "id": 207, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -9520,7 +11334,7 @@ ] }, { - "id": 191, + "id": 202, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -9530,7 +11344,7 @@ }, "signatures": [ { - "id": 192, + "id": 203, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -9552,7 +11366,7 @@ ] }, { - "id": 189, + "id": 200, "name": "uuid", "kind": 64, "kindString": "Function", @@ -9561,7 +11375,7 @@ }, "signatures": [ { - "id": 190, + "id": 201, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -9588,17 +11402,17 @@ "title": "Classes", "kind": 128, "children": [ - 163 + 174 ] }, { "title": "Functions", "kind": 64, "children": [ - 186, - 193, - 191, - 189 + 197, + 204, + 202, + 200 ] } ], @@ -9611,7 +11425,7 @@ ] }, { - "id": 320, + "id": 374, "name": "\"lib/polyfills\"", "kind": 1, "kindString": "Module", @@ -9621,7 +11435,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts", "children": [ { - "id": 321, + "id": 375, "name": "polyfillGlobalThis", "kind": 64, "kindString": "Function", @@ -9630,7 +11444,7 @@ }, "signatures": [ { - "id": 322, + "id": 376, "name": "polyfillGlobalThis", "kind": 4096, "kindString": "Call signature", @@ -9660,7 +11474,7 @@ "title": "Functions", "kind": 64, "children": [ - 321 + 375 ] } ], @@ -9683,7 +11497,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts", "children": [ { - "id": 92, + "id": 97, "name": "CookieOptions", "kind": 256, "kindString": "Interface", @@ -9692,7 +11506,7 @@ }, "children": [ { - "id": 95, + "id": 100, "name": "domain", "kind": 1024, "kindString": "Property", @@ -9703,7 +11517,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 85, + "line": 100, "character": 8 } ], @@ -9722,7 +11536,7 @@ } }, { - "id": 94, + "id": 99, "name": "lifetime", "kind": 1024, "kindString": "Property", @@ -9733,7 +11547,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 83, + "line": 98, "character": 10 } ], @@ -9752,7 +11566,7 @@ } }, { - "id": 93, + "id": 98, "name": "name", "kind": 1024, "kindString": "Property", @@ -9763,7 +11577,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 81, + "line": 96, "character": 6 } ], @@ -9782,7 +11596,7 @@ } }, { - "id": 96, + "id": 101, "name": "path", "kind": 1024, "kindString": "Property", @@ -9793,7 +11607,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 86, + "line": 101, "character": 6 } ], @@ -9812,7 +11626,7 @@ } }, { - "id": 97, + "id": 102, "name": "sameSite", "kind": 1024, "kindString": "Property", @@ -9823,7 +11637,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 88, + "line": 103, "character": 10 } ], @@ -9847,18 +11661,18 @@ "title": "Properties", "kind": 1024, "children": [ - 95, - 94, - 93, - 96, - 97 + 100, + 99, + 98, + 101, + 102 ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 79, + "line": 94, "character": 30 } ] @@ -9883,7 +11697,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 12, + "line": 22, "character": 14 } ], @@ -9907,7 +11721,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 20, + "line": 30, "character": 12 } ], @@ -9940,7 +11754,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 16, + "line": 26, "character": 12 } ], @@ -9970,7 +11784,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 11, + "line": 21, "character": 16 } ], @@ -10000,7 +11814,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 21, + "line": 31, "character": 15 } ], @@ -10029,7 +11843,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 22, + "line": 32, "character": 12 } ], @@ -10049,7 +11863,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 23, + "line": 33, "character": 6 } ], @@ -10087,13 +11901,13 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 10, + "line": 20, "character": 24 } ] }, { - "id": 82, + "id": 87, "name": "Subscription", "kind": 256, "kindString": "Interface", @@ -10102,7 +11916,7 @@ }, "children": [ { - "id": 84, + "id": 89, "name": "callback", "kind": 1024, "kindString": "Property", @@ -10115,14 +11929,14 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 72, + "line": 87, "character": 10 } ], "type": { "type": "reflection", "declaration": { - "id": 85, + "id": 90, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10131,7 +11945,7 @@ }, "signatures": [ { - "id": 86, + "id": 91, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -10140,7 +11954,7 @@ }, "parameters": [ { - "id": 87, + "id": 92, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -10149,12 +11963,12 @@ }, "type": { "type": "reference", - "id": 104, + "id": 113, "name": "AuthChangeEvent" } }, { - "id": 88, + "id": 93, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -10186,7 +12000,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 72, + "line": 87, "character": 11 } ] @@ -10194,7 +12008,7 @@ } }, { - "id": 83, + "id": 88, "name": "id", "kind": 1024, "kindString": "Property", @@ -10207,7 +12021,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 68, + "line": 83, "character": 4 } ], @@ -10217,7 +12031,7 @@ } }, { - "id": 89, + "id": 94, "name": "unsubscribe", "kind": 1024, "kindString": "Property", @@ -10230,14 +12044,14 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 76, + "line": 91, "character": 13 } ], "type": { "type": "reflection", "declaration": { - "id": 90, + "id": 95, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10246,7 +12060,7 @@ }, "signatures": [ { - "id": 91, + "id": 96, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -10262,7 +12076,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 76, + "line": 91, "character": 14 } ] @@ -10275,16 +12089,16 @@ "title": "Properties", "kind": 1024, "children": [ - 84, - 83, - 89 + 89, + 88, + 94 ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 64, + "line": 79, "character": 29 } ] @@ -10298,6 +12112,36 @@ "isExported": true }, "children": [ + { + "id": 72, + "name": "action_link", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 47, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, { "id": 60, "name": "app_metadata", @@ -10309,7 +12153,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 27, + "line": 37, "character": 14 } ], @@ -10366,7 +12210,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 28, + "line": 38, "character": 12 } ], @@ -10397,7 +12241,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 27, + "line": 37, "character": 15 } ] @@ -10415,7 +12259,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 34, + "line": 44, "character": 5 } ], @@ -10436,7 +12280,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 35, + "line": 45, "character": 22 } ], @@ -10455,7 +12299,7 @@ } }, { - "id": 73, + "id": 76, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -10466,7 +12310,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 38, + "line": 51, "character": 14 } ], @@ -10485,7 +12329,7 @@ } }, { - "id": 72, + "id": 75, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -10495,7 +12339,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 37, + "line": 50, "character": 12 } ], @@ -10505,7 +12349,7 @@ } }, { - "id": 71, + "id": 73, "name": "email", "kind": 1024, "kindString": "Property", @@ -10516,7 +12360,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 36, + "line": 48, "character": 7 } ], @@ -10534,6 +12378,36 @@ ] } }, + { + "id": 77, + "name": "email_confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 52, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, { "id": 59, "name": "id", @@ -10545,7 +12419,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 26, + "line": 36, "character": 4 } ], @@ -10555,7 +12429,7 @@ } }, { - "id": 74, + "id": 79, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -10566,7 +12440,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 39, + "line": 54, "character": 17 } ], @@ -10585,7 +12459,97 @@ } }, { - "id": 75, + "id": 74, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 49, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 78, + "name": "phone_confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 53, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 71, + "name": "recovery_sent_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 46, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 80, "name": "role", "kind": 1024, "kindString": "Property", @@ -10596,7 +12560,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 40, + "line": 55, "character": 6 } ], @@ -10615,7 +12579,7 @@ } }, { - "id": 76, + "id": 81, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -10626,7 +12590,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 41, + "line": 56, "character": 12 } ], @@ -10655,7 +12619,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 31, + "line": 41, "character": 15 } ], @@ -10702,7 +12666,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 31, + "line": 41, "character": 16 } ] @@ -10715,16 +12679,21 @@ "title": "Properties", "kind": 1024, "children": [ + 72, 60, 69, 70, - 73, - 72, - 71, - 59, - 74, - 75, 76, + 75, + 73, + 77, + 59, + 79, + 74, + 78, + 71, + 80, + 81, 65 ] } @@ -10732,13 +12701,13 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 25, + "line": 35, "character": 21 } ] }, { - "id": 77, + "id": 82, "name": "UserAttributes", "kind": 256, "kindString": "Interface", @@ -10747,7 +12716,7 @@ }, "children": [ { - "id": 81, + "id": 86, "name": "data", "kind": 1024, "kindString": "Property", @@ -10761,7 +12730,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 61, + "line": 76, "character": 6 } ], @@ -10780,7 +12749,7 @@ } }, { - "id": 78, + "id": 83, "name": "email", "kind": 1024, "kindString": "Property", @@ -10794,7 +12763,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 48, + "line": 63, "character": 7 } ], @@ -10813,7 +12782,7 @@ } }, { - "id": 80, + "id": 85, "name": "email_change_token", "kind": 1024, "kindString": "Property", @@ -10827,7 +12796,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 56, + "line": 71, "character": 20 } ], @@ -10846,7 +12815,7 @@ } }, { - "id": 79, + "id": 84, "name": "password", "kind": 1024, "kindString": "Property", @@ -10860,7 +12829,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 52, + "line": 67, "character": 10 } ], @@ -10884,23 +12853,23 @@ "title": "Properties", "kind": 1024, "children": [ - 81, - 78, - 80, - 79 + 86, + 83, + 85, + 84 ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 44, + "line": 59, "character": 31 } ] }, { - "id": 98, + "id": 103, "name": "UserCredentials", "kind": 256, "kindString": "Interface", @@ -10909,7 +12878,7 @@ }, "children": [ { - "id": 99, + "id": 104, "name": "email", "kind": 1024, "kindString": "Property", @@ -10920,7 +12889,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 92, + "line": 107, "character": 7 } ], @@ -10939,7 +12908,7 @@ } }, { - "id": 100, + "id": 106, "name": "password", "kind": 1024, "kindString": "Property", @@ -10950,7 +12919,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 93, + "line": 109, "character": 10 } ], @@ -10969,7 +12938,37 @@ } }, { - "id": 102, + "id": 105, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 108, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 108, "name": "provider", "kind": 1024, "kindString": "Property", @@ -10980,18 +12979,18 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 96, + "line": 112, "character": 10 } ], "type": { "type": "reference", - "id": 103, + "id": 112, "name": "Provider" } }, { - "id": 101, + "id": 107, "name": "refreshToken", "kind": 1024, "kindString": "Property", @@ -11002,7 +13001,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 94, + "line": 110, "character": 14 } ], @@ -11026,23 +13025,92 @@ "title": "Properties", "kind": 1024, "children": [ - 99, - 100, - 102, - 101 + 104, + 106, + 105, + 108, + 107 ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 91, + "line": 106, "character": 32 } ] }, { - "id": 104, + "id": 109, + "name": "VerifyOTPParams", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 110, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 116, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 111, + "name": "token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 117, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 110, + 111 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 115, + "character": 32 + } + ] + }, + { + "id": 113, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -11052,7 +13120,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 3, + "line": 13, "character": 27 } ], @@ -11083,7 +13151,7 @@ } }, { - "id": 103, + "id": 112, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -11135,6 +13203,10 @@ { "type": "stringLiteral", "value": "discord" + }, + { + "type": "stringLiteral", + "value": "twitch" } ] } @@ -11145,20 +13217,21 @@ "title": "Interfaces", "kind": 256, "children": [ - 92, + 97, 50, - 82, + 87, 58, - 77, - 98 + 82, + 103, + 109 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 104, - 103 + 113, + 112 ] } ], @@ -11169,6 +13242,56 @@ "character": 0 } ] + }, + { + "id": 114, + "name": "\"lib/version\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/version.ts", + "children": [ + { + "id": 115, + "name": "version", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/version.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "stringLiteral", + "value": "0.0.0" + }, + "defaultValue": "\"0.0.0\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 115 + ] + } + ], + "sources": [ + { + "fileName": "lib/version.ts", + "line": 1, + "character": 0 + } + ] } ], "groups": [ @@ -11176,15 +13299,16 @@ "title": "Modules", "kind": 1, "children": [ - 197, - 323, - 499, - 105, - 118, + 208, + 377, + 584, + 116, + 129, 1, - 162, - 320, - 49 + 173, + 374, + 49, + 114 ] } ] diff --git a/web/spec/postgrest.json b/web/spec/postgrest.json index 0ec28f506b5..6e9089b8e35 100644 --- a/web/spec/postgrest.json +++ b/web/spec/postgrest.json @@ -6,7 +6,7 @@ "originalName": "", "children": [ { - "id": 443, + "id": 448, "name": "\"PostgrestClient\"", "kind": 1, "kindString": "Module", @@ -16,7 +16,7 @@ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/PostgrestClient.ts", "children": [ { - "id": 444, + "id": 449, "name": "PostgrestClient", "kind": 128, "kindString": "Class", @@ -25,7 +25,7 @@ }, "children": [ { - "id": 451, + "id": 456, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -37,7 +37,7 @@ }, "signatures": [ { - "id": 452, + "id": 457, "name": "new PostgrestClient", "kind": 16384, "kindString": "Constructor signature", @@ -49,7 +49,7 @@ }, "parameters": [ { - "id": 453, + "id": 458, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -65,7 +65,7 @@ } }, { - "id": 454, + "id": 459, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -76,7 +76,7 @@ "type": { "type": "reflection", "declaration": { - "id": 455, + "id": 460, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -85,7 +85,7 @@ }, "children": [ { - "id": 456, + "id": 461, "name": "headers", "kind": 32, "kindString": "Variable", @@ -98,14 +98,14 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 19, + "line": 20, "character": 13 } ], "type": { "type": "reflection", "declaration": { - "id": 457, + "id": 462, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -114,7 +114,7 @@ }, "indexSignature": [ { - "id": 458, + "id": 463, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -123,7 +123,7 @@ }, "parameters": [ { - "id": 459, + "id": 464, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -146,7 +146,7 @@ } }, { - "id": 460, + "id": 465, "name": "schema", "kind": 32, "kindString": "Variable", @@ -159,7 +159,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 19, + "line": 20, "character": 26 } ], @@ -183,15 +183,15 @@ "title": "Variables", "kind": 32, "children": [ - 456, - 460 + 461, + 465 ] } ], "sources": [ { "fileName": "PostgrestClient.ts", - "line": 18, + "line": 19, "character": 16 } ] @@ -202,7 +202,7 @@ ], "type": { "type": "reference", - "id": 444, + "id": 449, "name": "PostgrestClient" } } @@ -210,13 +210,13 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 8, + "line": 9, "character": 17 } ] }, { - "id": 446, + "id": 451, "name": "headers", "kind": 1024, "kindString": "Property", @@ -226,14 +226,14 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 7, + "line": 8, "character": 9 } ], "type": { "type": "reflection", "declaration": { - "id": 447, + "id": 452, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -242,7 +242,7 @@ }, "indexSignature": [ { - "id": 448, + "id": 453, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -251,7 +251,7 @@ }, "parameters": [ { - "id": 449, + "id": 454, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -273,7 +273,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 7, + "line": 8, "character": 10 } ] @@ -281,7 +281,7 @@ } }, { - "id": 450, + "id": 455, "name": "schema", "kind": 1024, "kindString": "Property", @@ -292,7 +292,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 8, + "line": 9, "character": 8 } ], @@ -311,7 +311,7 @@ } }, { - "id": 445, + "id": 450, "name": "url", "kind": 1024, "kindString": "Property", @@ -321,7 +321,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 6, + "line": 7, "character": 5 } ], @@ -331,7 +331,7 @@ } }, { - "id": 461, + "id": 466, "name": "auth", "kind": 2048, "kindString": "Method", @@ -340,7 +340,7 @@ }, "signatures": [ { - "id": 462, + "id": 467, "name": "auth", "kind": 4096, "kindString": "Call signature", @@ -352,7 +352,7 @@ }, "parameters": [ { - "id": 463, + "id": 468, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -377,13 +377,13 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 31, + "line": 32, "character": 6 } ] }, { - "id": 464, + "id": 469, "name": "from", "kind": 2048, "kindString": "Method", @@ -392,7 +392,7 @@ }, "signatures": [ { - "id": 465, + "id": 470, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -404,7 +404,7 @@ }, "typeParameter": [ { - "id": 466, + "id": 471, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -415,7 +415,7 @@ ], "parameters": [ { - "id": 467, + "id": 472, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -451,13 +451,13 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 41, + "line": 42, "character": 6 } ] }, { - "id": 468, + "id": 473, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -466,7 +466,7 @@ }, "signatures": [ { - "id": 469, + "id": 474, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -474,11 +474,11 @@ "isExported": true }, "comment": { - "shortText": "Perform a stored procedure call." + "shortText": "Perform a function call." }, "typeParameter": [ { - "id": 470, + "id": 475, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -489,7 +489,7 @@ ], "parameters": [ { - "id": 471, + "id": 476, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -505,7 +505,7 @@ } }, { - "id": 472, + "id": 477, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -531,7 +531,7 @@ } }, { - "id": 473, + "id": 478, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -542,7 +542,7 @@ "type": { "type": "reflection", "declaration": { - "id": 474, + "id": 479, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -551,7 +551,7 @@ }, "children": [ { - "id": 475, + "id": 480, "name": "count", "kind": 32, "kindString": "Variable", @@ -564,7 +564,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 57, + "line": 58, "character": 11 } ], @@ -597,14 +597,14 @@ "title": "Variables", "kind": 32, "children": [ - 475 + 480 ] } ], "sources": [ { "fileName": "PostgrestClient.ts", - "line": 55, + "line": 56, "character": 20 } ] @@ -633,7 +633,7 @@ "sources": [ { "fileName": "PostgrestClient.ts", - "line": 53, + "line": 54, "character": 5 } ] @@ -644,32 +644,32 @@ "title": "Constructors", "kind": 512, "children": [ - 451 + 456 ] }, { "title": "Properties", "kind": 1024, "children": [ - 446, - 450, - 445 + 451, + 455, + 450 ] }, { "title": "Methods", "kind": 2048, "children": [ - 461, - 464, - 468 + 466, + 469, + 473 ] } ], "sources": [ { "fileName": "PostgrestClient.ts", - "line": 5, + "line": 6, "character": 36 } ] @@ -680,7 +680,7 @@ "title": "Classes", "kind": 128, "children": [ - 444 + 449 ] } ], @@ -693,7 +693,7 @@ ] }, { - "id": 476, + "id": 481, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -7891,7 +7891,7 @@ "isExported": true }, "comment": { - "shortText": "Perform a stored procedure call." + "shortText": "Perform a function call." }, "parameters": [ { @@ -9922,6 +9922,87 @@ } ] }, + { + "id": 445, + "name": "\"lib/constants\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/constants.ts", + "children": [ + { + "id": 446, + "name": "DEFAULT_HEADERS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isExported": true, + "isConst": true + }, + "children": [ + { + "id": 447, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 2, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`postgrest-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 447 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 2, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 446 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 1, + "character": 0 + } + ] + }, { "id": 1, "name": "\"lib/types\"", @@ -11531,6 +11612,56 @@ "character": 0 } ] + }, + { + "id": 443, + "name": "\"lib/version\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/version.ts", + "children": [ + { + "id": 444, + "name": "version", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/version.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "stringLiteral", + "value": "0.0.0-automated" + }, + "defaultValue": "\"0.0.0-automated\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 444 + ] + } + ], + "sources": [ + { + "fileName": "lib/version.ts", + "line": 1, + "character": 0 + } + ] } ], "groups": [ @@ -11538,13 +11669,15 @@ "title": "Modules", "kind": 1, "children": [ - 443, - 476, + 448, + 481, 126, 321, 401, 67, - 1 + 445, + 1, + 443 ] } ] diff --git a/web/spec/realtime.json b/web/spec/realtime.json index 51a0bb36f6b..6dd7a8be4ca 100644 --- a/web/spec/realtime.json +++ b/web/spec/realtime.json @@ -6,7 +6,7 @@ "originalName": "", "children": [ { - "id": 194, + "id": 200, "name": "\"RealtimeClient\"", "kind": 1, "kindString": "Module", @@ -16,7 +16,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts", "children": [ { - "id": 195, + "id": 201, "name": "RealtimeClient", "kind": 128, "kindString": "Class", @@ -25,7 +25,7 @@ }, "children": [ { - "id": 226, + "id": 232, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -37,7 +37,7 @@ }, "signatures": [ { - "id": 227, + "id": 233, "name": "new RealtimeClient", "kind": 16384, "kindString": "Constructor signature", @@ -49,7 +49,7 @@ }, "parameters": [ { - "id": 228, + "id": 234, "name": "endPoint", "kind": 32768, "kindString": "Parameter", @@ -65,7 +65,7 @@ } }, { - "id": 229, + "id": 235, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -75,14 +75,14 @@ }, "type": { "type": "reference", - "id": 301, + "id": 307, "name": "Options" } } ], "type": { "type": "reference", - "id": 195, + "id": 201, "name": "RealtimeClient" } } @@ -90,13 +90,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 65, + "line": 66, "character": 3 } ] }, { - "id": 196, + "id": 202, "name": "channels", "kind": 1024, "kindString": "Property", @@ -106,7 +106,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 36, + "line": 37, "character": 10 } ], @@ -114,14 +114,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } }, "defaultValue": "[]" }, { - "id": 218, + "id": 224, "name": "conn", "kind": 1024, "kindString": "Property", @@ -131,7 +131,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 52, + "line": 53, "character": 6 } ], @@ -151,13 +151,33 @@ "defaultValue": "null" }, { - "id": 216, + "id": 222, "name": "decode", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 51, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 221, + "name": "encode", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -171,27 +191,7 @@ } }, { - "id": 215, - "name": "encode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 49, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 197, + "id": 203, "name": "endPoint", "kind": 1024, "kindString": "Property", @@ -201,7 +201,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 37, + "line": 38, "character": 10 } ], @@ -212,7 +212,7 @@ "defaultValue": "\"\"" }, { - "id": 198, + "id": 204, "name": "headers", "kind": 1024, "kindString": "Property", @@ -223,7 +223,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 38, + "line": 39, "character": 9 } ], @@ -237,7 +237,7 @@ { "type": "reflection", "declaration": { - "id": 199, + "id": 205, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -246,7 +246,7 @@ }, "indexSignature": [ { - "id": 200, + "id": 206, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -255,7 +255,7 @@ }, "parameters": [ { - "id": 201, + "id": 207, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -277,10 +277,11 @@ } } ] - } + }, + "defaultValue": "DEFAULT_HEADERS" }, { - "id": 208, + "id": 214, "name": "heartbeatIntervalMs", "kind": 1024, "kindString": "Property", @@ -290,7 +291,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 42, + "line": 43, "character": 21 } ], @@ -301,7 +302,7 @@ "defaultValue": "30000" }, { - "id": 210, + "id": 216, "name": "heartbeatTimer", "kind": 1024, "kindString": "Property", @@ -311,7 +312,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 44, + "line": 45, "character": 16 } ], @@ -340,7 +341,7 @@ "defaultValue": "undefined" }, { - "id": 214, + "id": 220, "name": "logger", "kind": 1024, "kindString": "Property", @@ -350,7 +351,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 48, + "line": 49, "character": 8 } ], @@ -361,7 +362,7 @@ "defaultValue": "noop" }, { - "id": 209, + "id": 215, "name": "longpollerTimeout", "kind": 1024, "kindString": "Property", @@ -371,7 +372,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 43, + "line": 44, "character": 19 } ], @@ -382,7 +383,7 @@ "defaultValue": "20000" }, { - "id": 202, + "id": 208, "name": "params", "kind": 1024, "kindString": "Property", @@ -393,7 +394,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 39, + "line": 40, "character": 8 } ], @@ -407,7 +408,7 @@ { "type": "reflection", "declaration": { - "id": 203, + "id": 209, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -416,7 +417,7 @@ }, "indexSignature": [ { - "id": 204, + "id": 210, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -425,7 +426,7 @@ }, "parameters": [ { - "id": 205, + "id": 211, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -450,7 +451,7 @@ } }, { - "id": 211, + "id": 217, "name": "pendingHeartbeatRef", "kind": 1024, "kindString": "Property", @@ -460,7 +461,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 45, + "line": 46, "character": 21 } ], @@ -480,7 +481,7 @@ "defaultValue": "null" }, { - "id": 217, + "id": 223, "name": "reconnectAfterMs", "kind": 1024, "kindString": "Property", @@ -490,7 +491,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 51, + "line": 52, "character": 18 } ], @@ -500,7 +501,7 @@ } }, { - "id": 213, + "id": 219, "name": "reconnectTimer", "kind": 1024, "kindString": "Property", @@ -510,18 +511,18 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 47, + "line": 48, "character": 16 } ], "type": { "type": "reference", - "id": 25, + "id": 29, "name": "Timer" } }, { - "id": 212, + "id": 218, "name": "ref", "kind": 1024, "kindString": "Property", @@ -531,7 +532,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 46, + "line": 47, "character": 5 } ], @@ -542,37 +543,13 @@ "defaultValue": "0" }, { - "id": 219, + "id": 225, "name": "sendBuffer", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 53, - "character": 12 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Function" - } - }, - "defaultValue": "[]" - }, - { - "id": 220, - "name": "serializer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -580,15 +557,39 @@ "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", + "line": 55, + "character": 12 + } + ], "type": { "type": "reference", - "id": 170, + "id": 176, "name": "Serializer" }, "defaultValue": "new Serializer()" }, { - "id": 206, + "id": 212, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -598,7 +599,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 40, + "line": 41, "character": 9 } ], @@ -609,7 +610,7 @@ "defaultValue": "DEFAULT_TIMEOUT" }, { - "id": 207, + "id": 213, "name": "transport", "kind": 1024, "kindString": "Property", @@ -619,7 +620,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 41, + "line": 42, "character": 11 } ], @@ -630,7 +631,7 @@ "defaultValue": "WebSocket" }, { - "id": 288, + "id": 294, "name": "_appendParams", "kind": 2048, "kindString": "Method", @@ -640,7 +641,7 @@ }, "signatures": [ { - "id": 289, + "id": 295, "name": "_appendParams", "kind": 4096, "kindString": "Call signature", @@ -649,7 +650,7 @@ }, "parameters": [ { - "id": 290, + "id": 296, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -662,7 +663,7 @@ } }, { - "id": 291, + "id": 297, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -672,7 +673,7 @@ "type": { "type": "reflection", "declaration": { - "id": 292, + "id": 298, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -681,7 +682,7 @@ }, "indexSignature": [ { - "id": 293, + "id": 299, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -690,7 +691,7 @@ }, "parameters": [ { - "id": 294, + "id": 300, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -712,7 +713,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 344, + "line": 348, "character": 44 } ] @@ -729,13 +730,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 344, + "line": 348, "character": 23 } ] }, { - "id": 295, + "id": 301, "name": "_flushSendBuffer", "kind": 2048, "kindString": "Method", @@ -745,7 +746,7 @@ }, "signatures": [ { - "id": 296, + "id": 302, "name": "_flushSendBuffer", "kind": 4096, "kindString": "Call signature", @@ -761,13 +762,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 354, + "line": 358, "character": 26 } ] }, { - "id": 280, + "id": 286, "name": "_onConnClose", "kind": 2048, "kindString": "Method", @@ -777,7 +778,7 @@ }, "signatures": [ { - "id": 281, + "id": 287, "name": "_onConnClose", "kind": 4096, "kindString": "Call signature", @@ -786,7 +787,7 @@ }, "parameters": [ { - "id": 282, + "id": 288, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -808,13 +809,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 324, + "line": 328, "character": 22 } ] }, { - "id": 283, + "id": 289, "name": "_onConnError", "kind": 2048, "kindString": "Method", @@ -824,7 +825,7 @@ }, "signatures": [ { - "id": 284, + "id": 290, "name": "_onConnError", "kind": 4096, "kindString": "Call signature", @@ -833,7 +834,7 @@ }, "parameters": [ { - "id": 285, + "id": 291, "name": "error", "kind": 32768, "kindString": "Parameter", @@ -855,13 +856,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 332, + "line": 336, "character": 22 } ] }, { - "id": 278, + "id": 284, "name": "_onConnOpen", "kind": 2048, "kindString": "Method", @@ -871,7 +872,7 @@ }, "signatures": [ { - "id": 279, + "id": 285, "name": "_onConnOpen", "kind": 4096, "kindString": "Call signature", @@ -887,13 +888,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 316, + "line": 320, "character": 21 } ] }, { - "id": 297, + "id": 303, "name": "_resetHeartbeat", "kind": 2048, "kindString": "Method", @@ -903,7 +904,7 @@ }, "signatures": [ { - "id": 298, + "id": 304, "name": "_resetHeartbeat", "kind": 4096, "kindString": "Call signature", @@ -919,13 +920,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 361, + "line": 365, "character": 25 } ] }, { - "id": 299, + "id": 305, "name": "_sendHeartbeat", "kind": 2048, "kindString": "Method", @@ -935,7 +936,7 @@ }, "signatures": [ { - "id": 300, + "id": 306, "name": "_sendHeartbeat", "kind": 4096, "kindString": "Call signature", @@ -951,13 +952,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 370, + "line": 374, "character": 24 } ] }, { - "id": 286, + "id": 292, "name": "_triggerChanError", "kind": 2048, "kindString": "Method", @@ -967,7 +968,7 @@ }, "signatures": [ { - "id": 287, + "id": 293, "name": "_triggerChanError", "kind": 4096, "kindString": "Call signature", @@ -983,13 +984,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 338, + "line": 342, "character": 27 } ] }, { - "id": 263, + "id": 269, "name": "channel", "kind": 2048, "kindString": "Method", @@ -998,7 +999,7 @@ }, "signatures": [ { - "id": 264, + "id": 270, "name": "channel", "kind": 4096, "kindString": "Call signature", @@ -1007,7 +1008,7 @@ }, "parameters": [ { - "id": 265, + "id": 271, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -1020,7 +1021,7 @@ } }, { - "id": 266, + "id": 272, "name": "chanParams", "kind": 32768, "kindString": "Parameter", @@ -1030,7 +1031,7 @@ "type": { "type": "reflection", "declaration": { - "id": 267, + "id": 273, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1044,7 +1045,7 @@ ], "type": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } } @@ -1052,13 +1053,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 246, + "line": 250, "character": 9 } ] }, { - "id": 230, + "id": 236, "name": "connect", "kind": 2048, "kindString": "Method", @@ -1067,7 +1068,7 @@ }, "signatures": [ { - "id": 231, + "id": 237, "name": "connect", "kind": 4096, "kindString": "Call signature", @@ -1086,13 +1087,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 117, + "line": 118, "character": 9 } ] }, { - "id": 256, + "id": 262, "name": "connectionState", "kind": 2048, "kindString": "Method", @@ -1101,7 +1102,7 @@ }, "signatures": [ { - "id": 257, + "id": 263, "name": "connectionState", "kind": 4096, "kindString": "Call signature", @@ -1137,13 +1138,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 215, + "line": 219, "character": 17 } ] }, { - "id": 232, + "id": 238, "name": "disconnect", "kind": 2048, "kindString": "Method", @@ -1152,7 +1153,7 @@ }, "signatures": [ { - "id": 233, + "id": 239, "name": "disconnect", "kind": 4096, "kindString": "Call signature", @@ -1164,7 +1165,7 @@ }, "parameters": [ { - "id": 234, + "id": 240, "name": "code", "kind": 32768, "kindString": "Parameter", @@ -1190,7 +1191,7 @@ } }, { - "id": 235, + "id": 241, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -1222,7 +1223,7 @@ { "type": "reflection", "declaration": { - "id": 236, + "id": 242, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1231,7 +1232,7 @@ }, "children": [ { - "id": 238, + "id": 244, "name": "data", "kind": 32, "kindString": "Variable", @@ -1241,7 +1242,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 142, + "line": 143, "character": 40 } ], @@ -1251,7 +1252,7 @@ } }, { - "id": 237, + "id": 243, "name": "error", "kind": 32, "kindString": "Variable", @@ -1261,7 +1262,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 142, + "line": 143, "character": 20 } ], @@ -1285,15 +1286,15 @@ "title": "Variables", "kind": 32, "children": [ - 238, - 237 + 244, + 243 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 142, + "line": 143, "character": 13 } ] @@ -1307,13 +1308,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 139, + "line": 140, "character": 12 } ] }, { - "id": 274, + "id": 280, "name": "endPointURL", "kind": 2048, "kindString": "Method", @@ -1322,7 +1323,7 @@ }, "signatures": [ { - "id": 275, + "id": 281, "name": "endPointURL", "kind": 4096, "kindString": "Call signature", @@ -1341,13 +1342,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 295, + "line": 299, "character": 13 } ] }, { - "id": 258, + "id": 264, "name": "isConnected", "kind": 2048, "kindString": "Method", @@ -1356,7 +1357,7 @@ }, "signatures": [ { - "id": 259, + "id": 265, "name": "isConnected", "kind": 4096, "kindString": "Call signature", @@ -1375,13 +1376,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 231, + "line": 235, "character": 13 } ] }, { - "id": 239, + "id": 245, "name": "log", "kind": 2048, "kindString": "Method", @@ -1390,7 +1391,7 @@ }, "signatures": [ { - "id": 240, + "id": 246, "name": "log", "kind": 4096, "kindString": "Call signature", @@ -1402,7 +1403,7 @@ }, "parameters": [ { - "id": 241, + "id": 247, "name": "kind", "kind": 32768, "kindString": "Parameter", @@ -1415,7 +1416,7 @@ } }, { - "id": 242, + "id": 248, "name": "msg", "kind": 32768, "kindString": "Parameter", @@ -1428,7 +1429,7 @@ } }, { - "id": 243, + "id": 249, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -1451,13 +1452,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 164, + "line": 168, "character": 5 } ] }, { - "id": 276, + "id": 282, "name": "makeRef", "kind": 2048, "kindString": "Method", @@ -1466,7 +1467,7 @@ }, "signatures": [ { - "id": 277, + "id": 283, "name": "makeRef", "kind": 4096, "kindString": "Call signature", @@ -1485,13 +1486,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 305, + "line": 309, "character": 9 } ] }, { - "id": 247, + "id": 253, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -1500,7 +1501,7 @@ }, "signatures": [ { - "id": 248, + "id": 254, "name": "onClose", "kind": 4096, "kindString": "Call signature", @@ -1516,168 +1517,6 @@ } ] }, - "parameters": [ - { - "id": 249, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 186, - "character": 9 - } - ] - }, - { - "id": 271, - "name": "onConnMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 272, - "name": "onConnMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 273, - "name": "rawMessage", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 267, - "character": 15 - } - ] - }, - { - "id": 250, - "name": "onError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 251, - "name": "onError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Registers a callback for connection state change events.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n" - } - ] - }, - "parameters": [ - { - "id": 252, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 197, - "character": 9 - } - ] - }, - { - "id": 253, - "name": "onMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 254, - "name": "onMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Calls a function any time a message is received.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onMessage((message) => console.log(message))\n" - } - ] - }, "parameters": [ { "id": 255, @@ -1705,14 +1544,14 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 208, - "character": 11 + "line": 190, + "character": 9 } ] }, { - "id": 244, - "name": "onOpen", + "id": 277, + "name": "onConnMessage", "kind": 2048, "kindString": "Method", "flags": { @@ -1720,25 +1559,71 @@ }, "signatures": [ { - "id": 245, - "name": "onOpen", + "id": 278, + "name": "onConnMessage", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 279, + "name": "rawMessage", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 271, + "character": 15 + } + ] + }, + { + "id": 256, + "name": "onError", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 257, + "name": "onError", "kind": 4096, "kindString": "Call signature", "flags": { "isExported": true }, "comment": { - "shortText": "Registers a callback for connection state change event.", + "shortText": "Registers a callback for connection state change events.", "tags": [ { "tag": "example", - "text": "\n socket.onOpen(() => console.log(\"Socket opened.\"))\n" + "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n" } ] }, "parameters": [ { - "id": 246, + "id": 258, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -1763,13 +1648,129 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 175, + "line": 201, + "character": 9 + } + ] + }, + { + "id": 259, + "name": "onMessage", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 260, + "name": "onMessage", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Calls a function any time a message is received.", + "tags": [ + { + "tag": "example", + "text": "\n socket.onMessage((message) => console.log(message))\n" + } + ] + }, + "parameters": [ + { + "id": 261, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A function to be called when the event occurs.\n" + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 212, + "character": 11 + } + ] + }, + { + "id": 250, + "name": "onOpen", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 251, + "name": "onOpen", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Registers a callback for connection state change event.", + "tags": [ + { + "tag": "example", + "text": "\n socket.onOpen(() => console.log(\"Socket opened.\"))\n" + } + ] + }, + "parameters": [ + { + "id": 252, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A function to be called when the event occurs.\n" + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 179, "character": 8 } ] }, { - "id": 268, + "id": 274, "name": "push", "kind": 2048, "kindString": "Method", @@ -1778,7 +1779,7 @@ }, "signatures": [ { - "id": 269, + "id": 275, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -1787,7 +1788,7 @@ }, "parameters": [ { - "id": 270, + "id": 276, "name": "data", "kind": 32768, "kindString": "Parameter", @@ -1796,7 +1797,7 @@ }, "type": { "type": "reference", - "id": 319, + "id": 325, "name": "Message" } } @@ -1810,13 +1811,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 252, + "line": 256, "character": 6 } ] }, { - "id": 260, + "id": 266, "name": "remove", "kind": 2048, "kindString": "Method", @@ -1825,7 +1826,7 @@ }, "signatures": [ { - "id": 261, + "id": 267, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -1837,7 +1838,7 @@ }, "parameters": [ { - "id": 262, + "id": 268, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -1849,7 +1850,7 @@ }, "type": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } } @@ -1863,13 +1864,13 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 240, + "line": 244, "character": 8 } ] }, { - "id": 221, + "id": 227, "name": "stateChangeCallbacks", "kind": 2097152, "kindString": "Object literal", @@ -1878,37 +1879,13 @@ }, "children": [ { - "id": 223, + "id": 229, "name": "close", "kind": 32, "kindString": "Variable", "flags": { "isExported": true }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 62, - "character": 9 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "never" - } - }, - "defaultValue": "[]" - }, - { - "id": 224, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -1926,8 +1903,8 @@ "defaultValue": "[]" }, { - "id": 225, - "name": "message", + "id": 230, + "name": "error", "kind": 32, "kindString": "Variable", "flags": { @@ -1937,6 +1914,30 @@ { "fileName": "RealtimeClient.ts", "line": 64, + "character": 9 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + }, + "defaultValue": "[]" + }, + { + "id": 231, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 65, "character": 11 } ], @@ -1950,7 +1951,7 @@ "defaultValue": "[]" }, { - "id": 222, + "id": 228, "name": "open", "kind": 32, "kindString": "Variable", @@ -1960,7 +1961,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 61, + "line": 62, "character": 8 } ], @@ -1979,17 +1980,17 @@ "title": "Variables", "kind": 32, "children": [ - 223, - 224, - 225, - 222 + 229, + 230, + 231, + 228 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 55, + "line": 56, "character": 22 } ], @@ -2004,81 +2005,81 @@ "title": "Constructors", "kind": 512, "children": [ - 226 + 232 ] }, { "title": "Properties", "kind": 1024, "children": [ - 196, - 218, - 216, - 215, - 197, - 198, - 208, - 210, - 214, - 209, 202, - 211, - 217, - 213, - 212, - 219, + 224, + 222, + 221, + 203, + 204, + 214, + 216, 220, - 206, - 207 + 215, + 208, + 217, + 223, + 219, + 218, + 225, + 226, + 212, + 213 ] }, { "title": "Methods", "kind": 2048, "children": [ - 288, - 295, - 280, - 283, - 278, - 297, - 299, + 294, + 301, 286, - 263, - 230, - 256, - 232, - 274, - 258, - 239, - 276, - 247, - 271, - 250, + 289, + 284, + 303, + 305, + 292, + 269, + 236, + 262, + 238, + 280, + 264, + 245, + 282, 253, - 244, - 268, - 260 + 277, + 256, + 259, + 250, + 274, + 266 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 221 + 227 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 35, + "line": 36, "character": 35 } ] }, { - "id": 319, + "id": 325, "name": "Message", "kind": 4194304, "kindString": "Type alias", @@ -2086,25 +2087,79 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 26, + "line": 27, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 320, + "id": 326, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 322, + "id": 328, "name": "event", "kind": 32, "kindString": "Variable", "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 29, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 329, + "name": "payload", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 30, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 330, + "name": "ref", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 31, + "character": 5 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 327, + "name": "topic", + "kind": 32, + "kindString": "Variable", + "flags": {}, "sources": [ { "fileName": "RealtimeClient.ts", @@ -2116,60 +2171,6 @@ "type": "intrinsic", "name": "string" } - }, - { - "id": 323, - "name": "payload", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 29, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 324, - "name": "ref", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 30, - "character": 5 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 321, - "name": "topic", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 27, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } } ], "groups": [ @@ -2177,17 +2178,17 @@ "title": "Variables", "kind": 32, "children": [ - 322, - 323, - 324, - 321 + 328, + 329, + 330, + 327 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 26, + "line": 27, "character": 14 } ] @@ -2195,7 +2196,7 @@ } }, { - "id": 301, + "id": 307, "name": "Options", "kind": 4194304, "kindString": "Type alias", @@ -2205,14 +2206,14 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 14, + "line": 15, "character": 19 } ], "type": { "type": "reflection", "declaration": { - "id": 302, + "id": 308, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2221,7 +2222,7 @@ }, "children": [ { - "id": 309, + "id": 315, "name": "decode", "kind": 32, "kindString": "Variable", @@ -2229,6 +2230,27 @@ "isExported": true, "isOptional": true }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 22, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 314, + "name": "encode", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, "sources": [ { "fileName": "RealtimeClient.ts", @@ -2242,8 +2264,106 @@ } }, { - "id": 308, - "name": "encode", + "id": 317, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 24, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 318, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 319, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 320, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 311, + "name": "heartbeatIntervalMs", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 18, + "character": 21 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 313, + "name": "logger", "kind": 32, "kindString": "Variable", "flags": { @@ -2263,126 +2383,7 @@ } }, { - "id": 311, - "name": "headers", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 23, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 312, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 313, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 314, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 305, - "name": "heartbeatIntervalMs", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 17, - "character": 21 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 307, - "name": "logger", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 19, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 306, + "id": 312, "name": "longpollerTimeout", "kind": 32, "kindString": "Variable", @@ -2393,7 +2394,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 18, + "line": 19, "character": 19 } ], @@ -2412,7 +2413,7 @@ } }, { - "id": 315, + "id": 321, "name": "params", "kind": 32, "kindString": "Variable", @@ -2423,7 +2424,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 24, + "line": 25, "character": 8 } ], @@ -2437,7 +2438,7 @@ { "type": "reflection", "declaration": { - "id": 316, + "id": 322, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2446,7 +2447,7 @@ }, "indexSignature": [ { - "id": 317, + "id": 323, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -2455,7 +2456,7 @@ }, "parameters": [ { - "id": 318, + "id": 324, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2480,7 +2481,7 @@ } }, { - "id": 310, + "id": 316, "name": "reconnectAfterMs", "kind": 32, "kindString": "Variable", @@ -2491,7 +2492,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 22, + "line": 23, "character": 18 } ], @@ -2501,7 +2502,7 @@ } }, { - "id": 304, + "id": 310, "name": "timeout", "kind": 32, "kindString": "Variable", @@ -2512,7 +2513,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 16, + "line": 17, "character": 9 } ], @@ -2531,7 +2532,7 @@ } }, { - "id": 303, + "id": 309, "name": "transport", "kind": 32, "kindString": "Variable", @@ -2542,7 +2543,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 15, + "line": 16, "character": 11 } ], @@ -2557,23 +2558,23 @@ "title": "Variables", "kind": 32, "children": [ - 309, - 308, - 311, - 305, - 307, - 306, 315, + 314, + 317, + 311, + 313, + 312, + 321, + 316, 310, - 304, - 303 + 309 ] } ], "sources": [ { "fileName": "RealtimeClient.ts", - "line": 14, + "line": 15, "character": 21 } ] @@ -2581,7 +2582,7 @@ } }, { - "id": 325, + "id": 331, "name": "noop", "kind": 64, "kindString": "Function", @@ -2590,7 +2591,7 @@ }, "signatures": [ { - "id": 326, + "id": 332, "name": "noop", "kind": 4096, "kindString": "Call signature", @@ -2604,7 +2605,7 @@ "sources": [ { "fileName": "RealtimeClient.ts", - "line": 33, + "line": 34, "character": 10 } ] @@ -2615,22 +2616,22 @@ "title": "Classes", "kind": 128, "children": [ - 195 + 201 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 319, - 301 + 325, + 307 ] }, { "title": "Functions", "kind": 64, "children": [ - 325 + 331 ] } ], @@ -2643,7 +2644,7 @@ ] }, { - "id": 90, + "id": 96, "name": "\"RealtimeSubscription\"", "kind": 1, "kindString": "Module", @@ -2653,7 +2654,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts", "children": [ { - "id": 91, + "id": 97, "name": "RealtimeSubscription", "kind": 128, "kindString": "Class", @@ -2662,7 +2663,7 @@ }, "children": [ { - "id": 99, + "id": 105, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2671,7 +2672,7 @@ }, "signatures": [ { - "id": 103, + "id": 109, "name": "new RealtimeSubscription", "kind": 16384, "kindString": "Constructor signature", @@ -2680,7 +2681,7 @@ }, "parameters": [ { - "id": 104, + "id": 110, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -2693,7 +2694,7 @@ } }, { - "id": 105, + "id": 111, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -2707,7 +2708,7 @@ "defaultValue": "{}" }, { - "id": 106, + "id": 112, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -2716,14 +2717,14 @@ }, "type": { "type": "reference", - "id": 195, + "id": 201, "name": "RealtimeClient" } } ], "type": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } } @@ -2737,7 +2738,7 @@ ] }, { - "id": 92, + "id": 98, "name": "bindings", "kind": 1024, "kindString": "Property", @@ -2761,7 +2762,7 @@ "defaultValue": "[]" }, { - "id": 96, + "id": 102, "name": "joinPush", "kind": 1024, "kindString": "Property", @@ -2777,12 +2778,12 @@ ], "type": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } }, { - "id": 95, + "id": 101, "name": "joinedOnce", "kind": 1024, "kindString": "Property", @@ -2803,7 +2804,7 @@ "defaultValue": "false" }, { - "id": 101, + "id": 107, "name": "params", "kind": 1024, "kindString": "Property", @@ -2825,7 +2826,7 @@ } }, { - "id": 98, + "id": 104, "name": "pushBuffer", "kind": 1024, "kindString": "Property", @@ -2843,14 +2844,14 @@ "type": "array", "elementType": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } }, "defaultValue": "[]" }, { - "id": 97, + "id": 103, "name": "rejoinTimer", "kind": 1024, "kindString": "Property", @@ -2866,12 +2867,12 @@ ], "type": { "type": "reference", - "id": 25, + "id": 29, "name": "Timer" } }, { - "id": 102, + "id": 108, "name": "socket", "kind": 1024, "kindString": "Property", @@ -2889,12 +2890,12 @@ ], "type": { "type": "reference", - "id": 195, + "id": 201, "name": "RealtimeClient" } }, { - "id": 94, + "id": 100, "name": "state", "kind": 1024, "kindString": "Property", @@ -2910,13 +2911,13 @@ ], "type": { "type": "reference", - "id": 7, + "id": 9, "name": "CHANNEL_STATES" }, "defaultValue": "CHANNEL_STATES.closed" }, { - "id": 93, + "id": 99, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -2936,7 +2937,7 @@ } }, { - "id": 100, + "id": 106, "name": "topic", "kind": 1024, "kindString": "Property", @@ -2958,7 +2959,7 @@ } }, { - "id": 125, + "id": 131, "name": "canPush", "kind": 2048, "kindString": "Method", @@ -2967,7 +2968,7 @@ }, "signatures": [ { - "id": 126, + "id": 132, "name": "canPush", "kind": 4096, "kindString": "Call signature", @@ -2989,7 +2990,7 @@ ] }, { - "id": 159, + "id": 165, "name": "isClosed", "kind": 2048, "kindString": "Method", @@ -2998,7 +2999,7 @@ }, "signatures": [ { - "id": 160, + "id": 166, "name": "isClosed", "kind": 4096, "kindString": "Call signature", @@ -3014,13 +3015,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 198, + "line": 201, "character": 10 } ] }, { - "id": 161, + "id": 167, "name": "isErrored", "kind": 2048, "kindString": "Method", @@ -3029,7 +3030,7 @@ }, "signatures": [ { - "id": 162, + "id": 168, "name": "isErrored", "kind": 4096, "kindString": "Call signature", @@ -3045,13 +3046,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 201, + "line": 204, "character": 11 } ] }, { - "id": 163, + "id": 169, "name": "isJoined", "kind": 2048, "kindString": "Method", @@ -3060,7 +3061,7 @@ }, "signatures": [ { - "id": 164, + "id": 170, "name": "isJoined", "kind": 4096, "kindString": "Call signature", @@ -3076,13 +3077,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 204, + "line": 207, "character": 10 } ] }, { - "id": 165, + "id": 171, "name": "isJoining", "kind": 2048, "kindString": "Method", @@ -3091,7 +3092,7 @@ }, "signatures": [ { - "id": 166, + "id": 172, "name": "isJoining", "kind": 4096, "kindString": "Call signature", @@ -3104,37 +3105,6 @@ } } ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 207, - "character": 11 - } - ] - }, - { - "id": 167, - "name": "isLeaving", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 168, - "name": "isLeaving", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], "sources": [ { "fileName": "RealtimeSubscription.ts", @@ -3144,7 +3114,38 @@ ] }, { - "id": 140, + "id": 173, + "name": "isLeaving", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 174, + "name": "isLeaving", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 213, + "character": 11 + } + ] + }, + { + "id": 146, "name": "isMember", "kind": 2048, "kindString": "Method", @@ -3153,7 +3154,7 @@ }, "signatures": [ { - "id": 141, + "id": 147, "name": "isMember", "kind": 4096, "kindString": "Call signature", @@ -3162,7 +3163,7 @@ }, "parameters": [ { - "id": 142, + "id": 148, "name": "topic", "kind": 32768, "kindString": "Parameter", @@ -3184,13 +3185,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 151, + "line": 154, "character": 10 } ] }, { - "id": 143, + "id": 149, "name": "joinRef", "kind": 2048, "kindString": "Method", @@ -3199,7 +3200,7 @@ }, "signatures": [ { - "id": 144, + "id": 150, "name": "joinRef", "kind": 4096, "kindString": "Call signature", @@ -3215,13 +3216,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 155, + "line": 158, "character": 9 } ] }, { - "id": 122, + "id": 128, "name": "off", "kind": 2048, "kindString": "Method", @@ -3230,7 +3231,7 @@ }, "signatures": [ { - "id": 123, + "id": 129, "name": "off", "kind": 4096, "kindString": "Call signature", @@ -3239,7 +3240,7 @@ }, "parameters": [ { - "id": 124, + "id": 130, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -3267,7 +3268,7 @@ ] }, { - "id": 118, + "id": 124, "name": "on", "kind": 2048, "kindString": "Method", @@ -3276,7 +3277,7 @@ }, "signatures": [ { - "id": 119, + "id": 125, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -3285,7 +3286,7 @@ }, "parameters": [ { - "id": 120, + "id": 126, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -3298,7 +3299,7 @@ } }, { - "id": 121, + "id": 127, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -3326,7 +3327,7 @@ ] }, { - "id": 112, + "id": 118, "name": "onClose", "kind": 2048, "kindString": "Method", @@ -3335,7 +3336,7 @@ }, "signatures": [ { - "id": 113, + "id": 119, "name": "onClose", "kind": 4096, "kindString": "Call signature", @@ -3344,7 +3345,7 @@ }, "parameters": [ { - "id": 114, + "id": 120, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -3372,7 +3373,7 @@ ] }, { - "id": 115, + "id": 121, "name": "onError", "kind": 2048, "kindString": "Method", @@ -3381,7 +3382,7 @@ }, "signatures": [ { - "id": 116, + "id": 122, "name": "onError", "kind": 4096, "kindString": "Call signature", @@ -3390,7 +3391,7 @@ }, "parameters": [ { - "id": 117, + "id": 123, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -3418,7 +3419,7 @@ ] }, { - "id": 135, + "id": 141, "name": "onMessage", "kind": 2048, "kindString": "Method", @@ -3427,7 +3428,7 @@ }, "signatures": [ { - "id": 136, + "id": 142, "name": "onMessage", "kind": 4096, "kindString": "Call signature", @@ -3440,7 +3441,7 @@ }, "parameters": [ { - "id": 137, + "id": 143, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -3453,7 +3454,7 @@ } }, { - "id": 138, + "id": 144, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -3466,7 +3467,7 @@ } }, { - "id": 139, + "id": 145, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -3498,13 +3499,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 147, + "line": 150, "character": 11 } ] }, { - "id": 127, + "id": 133, "name": "push", "kind": 2048, "kindString": "Method", @@ -3513,7 +3514,7 @@ }, "signatures": [ { - "id": 128, + "id": 134, "name": "push", "kind": 4096, "kindString": "Call signature", @@ -3522,7 +3523,7 @@ }, "parameters": [ { - "id": 129, + "id": 135, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -3531,12 +3532,12 @@ }, "type": { "type": "reference", - "id": 13, + "id": 15, "name": "CHANNEL_EVENTS" } }, { - "id": 130, + "id": 136, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -3549,7 +3550,7 @@ } }, { - "id": 131, + "id": 137, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -3565,7 +3566,7 @@ ], "type": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } } @@ -3579,7 +3580,7 @@ ] }, { - "id": 148, + "id": 154, "name": "rejoin", "kind": 2048, "kindString": "Method", @@ -3588,7 +3589,7 @@ }, "signatures": [ { - "id": 149, + "id": 155, "name": "rejoin", "kind": 4096, "kindString": "Call signature", @@ -3597,7 +3598,7 @@ }, "parameters": [ { - "id": 150, + "id": 156, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -3620,13 +3621,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 164, + "line": 167, "character": 8 } ] }, { - "id": 107, + "id": 113, "name": "rejoinUntilConnected", "kind": 2048, "kindString": "Method", @@ -3635,7 +3636,7 @@ }, "signatures": [ { - "id": 108, + "id": 114, "name": "rejoinUntilConnected", "kind": 4096, "kindString": "Call signature", @@ -3657,7 +3658,7 @@ ] }, { - "id": 156, + "id": 162, "name": "replyEventName", "kind": 2048, "kindString": "Method", @@ -3666,7 +3667,7 @@ }, "signatures": [ { - "id": 157, + "id": 163, "name": "replyEventName", "kind": 4096, "kindString": "Call signature", @@ -3675,7 +3676,7 @@ }, "parameters": [ { - "id": 158, + "id": 164, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -3697,13 +3698,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 194, + "line": 197, "character": 16 } ] }, { - "id": 145, + "id": 151, "name": "sendJoin", "kind": 2048, "kindString": "Method", @@ -3712,7 +3713,7 @@ }, "signatures": [ { - "id": 146, + "id": 152, "name": "sendJoin", "kind": 4096, "kindString": "Call signature", @@ -3721,7 +3722,7 @@ }, "parameters": [ { - "id": 147, + "id": 153, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -3743,13 +3744,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 159, + "line": 162, "character": 10 } ] }, { - "id": 109, + "id": 115, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -3758,7 +3759,7 @@ }, "signatures": [ { - "id": 110, + "id": 116, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -3767,7 +3768,7 @@ }, "parameters": [ { - "id": 111, + "id": 117, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -3783,7 +3784,7 @@ ], "type": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } } @@ -3797,7 +3798,7 @@ ] }, { - "id": 151, + "id": 157, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -3806,7 +3807,7 @@ }, "signatures": [ { - "id": 152, + "id": 158, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -3815,7 +3816,7 @@ }, "parameters": [ { - "id": 153, + "id": 159, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -3828,7 +3829,7 @@ } }, { - "id": 154, + "id": 160, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -3842,7 +3843,7 @@ } }, { - "id": 155, + "id": 161, "name": "ref", "kind": 32768, "kindString": "Parameter", @@ -3874,13 +3875,13 @@ "sources": [ { "fileName": "RealtimeSubscription.ts", - "line": 171, + "line": 174, "character": 9 } ] }, { - "id": 132, + "id": 138, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -3889,7 +3890,7 @@ }, "signatures": [ { - "id": 133, + "id": 139, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -3902,7 +3903,7 @@ }, "parameters": [ { - "id": 134, + "id": 140, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -3918,7 +3919,7 @@ ], "type": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } } @@ -3937,50 +3938,50 @@ "title": "Constructors", "kind": 512, "children": [ - 99 + 105 ] }, { "title": "Properties", "kind": 1024, "children": [ - 92, - 96, - 95, - 101, 98, - 97, 102, - 94, - 93, - 100 + 101, + 107, + 104, + 103, + 108, + 100, + 99, + 106 ] }, { "title": "Methods", "kind": 2048, "children": [ - 125, - 159, - 161, - 163, + 131, 165, 167, - 140, - 143, - 122, + 169, + 171, + 173, + 146, + 149, + 128, + 124, 118, - 112, - 115, - 135, - 127, - 148, - 107, - 156, - 145, - 109, + 121, + 141, + 133, + 154, + 113, + 162, 151, - 132 + 115, + 157, + 138 ] } ], @@ -3998,7 +3999,7 @@ "title": "Classes", "kind": 128, "children": [ - 91 + 97 ] } ], @@ -4011,7 +4012,7 @@ ] }, { - "id": 413, + "id": 419, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -4028,7 +4029,7 @@ ] }, { - "id": 1, + "id": 3, "name": "\"lib/constants\"", "kind": 1, "kindString": "Module", @@ -4038,7 +4039,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/constants.ts", "children": [ { - "id": 13, + "id": 15, "name": "CHANNEL_EVENTS", "kind": 4, "kindString": "Enumeration", @@ -4046,60 +4047,9 @@ "isExported": true }, "children": [ - { - "id": 14, - "name": "close", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 23, - "character": 7 - } - ], - "defaultValue": "\"phx_close\"" - }, - { - "id": 15, - "name": "error", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 24, - "character": 7 - } - ], - "defaultValue": "\"phx_error\"" - }, { "id": 16, - "name": "join", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 25, - "character": 6 - } - ], - "defaultValue": "\"phx_join\"" - }, - { - "id": 18, - "name": "leave", + "name": "close", "kind": 16, "kindString": "Enumeration member", "flags": { @@ -4112,10 +4062,61 @@ "character": 7 } ], - "defaultValue": "\"phx_leave\"" + "defaultValue": "\"phx_close\"" }, { "id": 17, + "name": "error", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 28, + "character": 7 + } + ], + "defaultValue": "\"phx_error\"" + }, + { + "id": 18, + "name": "join", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 29, + "character": 6 + } + ], + "defaultValue": "\"phx_join\"" + }, + { + "id": 20, + "name": "leave", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 31, + "character": 7 + } + ], + "defaultValue": "\"phx_leave\"" + }, + { + "id": 19, "name": "reply", "kind": 16, "kindString": "Enumeration member", @@ -4125,7 +4126,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 26, + "line": 30, "character": 7 } ], @@ -4137,30 +4138,146 @@ "title": "Enumeration members", "kind": 16, "children": [ - 14, - 15, 16, + 17, 18, - 17 + 20, + 19 ] } ], "sources": [ { "fileName": "lib/constants.ts", - "line": 22, + "line": 26, "character": 26 } ] }, { - "id": 7, + "id": 9, "name": "CHANNEL_STATES", "kind": 4, "kindString": "Enumeration", "flags": { "isExported": true }, + "children": [ + { + "id": 10, + "name": "closed", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 19, + "character": 8 + } + ], + "defaultValue": "\"closed\"" + }, + { + "id": 11, + "name": "errored", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 20, + "character": 9 + } + ], + "defaultValue": "\"errored\"" + }, + { + "id": 12, + "name": "joined", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 21, + "character": 8 + } + ], + "defaultValue": "\"joined\"" + }, + { + "id": 13, + "name": "joining", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 22, + "character": 9 + } + ], + "defaultValue": "\"joining\"" + }, + { + "id": 14, + "name": "leaving", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 23, + "character": 9 + } + ], + "defaultValue": "\"leaving\"" + } + ], + "groups": [ + { + "title": "Enumeration members", + "kind": 16, + "children": [ + 10, + 11, + 12, + 13, + 14 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 18, + "character": 26 + } + ] + }, + { + "id": 4, + "name": "SOCKET_STATES", + "kind": 4, + "kindString": "Enumeration", + "flags": { + "isExported": true + }, "children": [ { "id": 8, @@ -4177,126 +4294,10 @@ "character": 8 } ], - "defaultValue": "\"closed\"" - }, - { - "id": 9, - "name": "errored", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 16, - "character": 9 - } - ], - "defaultValue": "\"errored\"" - }, - { - "id": 10, - "name": "joined", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 17, - "character": 8 - } - ], - "defaultValue": "\"joined\"" - }, - { - "id": 11, - "name": "joining", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 18, - "character": 9 - } - ], - "defaultValue": "\"joining\"" - }, - { - "id": 12, - "name": "leaving", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 19, - "character": 9 - } - ], - "defaultValue": "\"leaving\"" - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [ - 8, - 9, - 10, - 11, - 12 - ] - } - ], - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 14, - "character": 26 - } - ] - }, - { - "id": 2, - "name": "SOCKET_STATES", - "kind": 4, - "kindString": "Enumeration", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 6, - "name": "closed", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 11, - "character": 8 - } - ], "defaultValue": "3" }, { - "id": 5, + "id": 7, "name": "closing", "kind": 16, "kindString": "Enumeration member", @@ -4306,14 +4307,14 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 10, + "line": 14, "character": 9 } ], "defaultValue": "2" }, { - "id": 3, + "id": 5, "name": "connecting", "kind": 16, "kindString": "Enumeration member", @@ -4323,14 +4324,14 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 8, + "line": 12, "character": 12 } ], "defaultValue": "0" }, { - "id": 4, + "id": 6, "name": "open", "kind": 16, "kindString": "Enumeration member", @@ -4340,7 +4341,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 9, + "line": 13, "character": 6 } ], @@ -4352,23 +4353,23 @@ "title": "Enumeration members", "kind": 16, "children": [ - 6, + 8, + 7, 5, - 3, - 4 + 6 ] } ], "sources": [ { "fileName": "lib/constants.ts", - "line": 7, + "line": 11, "character": 25 } ] }, { - "id": 19, + "id": 21, "name": "TRANSPORTS", "kind": 4, "kindString": "Enumeration", @@ -4377,7 +4378,7 @@ }, "children": [ { - "id": 20, + "id": 22, "name": "websocket", "kind": 16, "kindString": "Enumeration member", @@ -4387,7 +4388,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 31, + "line": 35, "character": 11 } ], @@ -4399,20 +4400,20 @@ "title": "Enumeration members", "kind": 16, "children": [ - 20 + 22 ] } ], "sources": [ { "fileName": "lib/constants.ts", - "line": 30, + "line": 34, "character": 22 } ] }, { - "id": 22, + "id": 26, "name": "DEFAULT_TIMEOUT", "kind": 32, "kindString": "Variable", @@ -4423,7 +4424,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 3, + "line": 7, "character": 28 } ], @@ -4434,7 +4435,7 @@ "defaultValue": "10000" }, { - "id": 21, + "id": 25, "name": "VSN", "kind": 32, "kindString": "Variable", @@ -4445,7 +4446,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 1, + "line": 5, "character": 16 } ], @@ -4456,7 +4457,7 @@ "defaultValue": "\"1.0.0\"" }, { - "id": 23, + "id": 27, "name": "WS_CLOSE_NORMAL", "kind": 32, "kindString": "Variable", @@ -4467,7 +4468,7 @@ "sources": [ { "fileName": "lib/constants.ts", - "line": 5, + "line": 9, "character": 28 } ], @@ -4476,6 +4477,59 @@ "name": "1000" }, "defaultValue": "1000" + }, + { + "id": 23, + "name": "DEFAULT_HEADERS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isExported": true, + "isConst": true + }, + "children": [ + { + "id": 24, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 3, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`realtime-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 24 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 3, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } } ], "groups": [ @@ -4483,18 +4537,25 @@ "title": "Enumerations", "kind": 4, "children": [ - 13, - 7, - 2, - 19 + 15, + 9, + 4, + 21 ] }, { "title": "Variables", "kind": 32, "children": [ - 22, - 21, + 26, + 25, + 27 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ 23 ] } @@ -4508,7 +4569,7 @@ ] }, { - "id": 38, + "id": 42, "name": "\"lib/push\"", "kind": 1, "kindString": "Module", @@ -4518,7 +4579,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/push.ts", "children": [ { - "id": 39, + "id": 43, "name": "Push", "kind": 128, "kindString": "Class", @@ -4527,7 +4588,7 @@ }, "children": [ { - "id": 52, + "id": 56, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -4539,7 +4600,7 @@ }, "signatures": [ { - "id": 57, + "id": 61, "name": "new Push", "kind": 16384, "kindString": "Constructor signature", @@ -4551,7 +4612,7 @@ }, "parameters": [ { - "id": 58, + "id": 62, "name": "channel", "kind": 32768, "kindString": "Parameter", @@ -4563,12 +4624,12 @@ }, "type": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } }, { - "id": 59, + "id": 63, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -4584,7 +4645,7 @@ } }, { - "id": 60, + "id": 64, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -4601,7 +4662,7 @@ "defaultValue": "{}" }, { - "id": 61, + "id": 65, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -4620,7 +4681,7 @@ ], "type": { "type": "reference", - "id": 39, + "id": 43, "name": "Push" } } @@ -4634,7 +4695,7 @@ ] }, { - "id": 53, + "id": 57, "name": "channel", "kind": 1024, "kindString": "Property", @@ -4655,12 +4716,12 @@ ], "type": { "type": "reference", - "id": 91, + "id": 97, "name": "RealtimeSubscription" } }, { - "id": 54, + "id": 58, "name": "event", "kind": 1024, "kindString": "Property", @@ -4685,7 +4746,7 @@ } }, { - "id": 55, + "id": 59, "name": "payload", "kind": 1024, "kindString": "Property", @@ -4710,7 +4771,7 @@ } }, { - "id": 47, + "id": 51, "name": "recHooks", "kind": 1024, "kindString": "Property", @@ -4729,7 +4790,7 @@ "elementType": { "type": "reflection", "declaration": { - "id": 48, + "id": 52, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4738,7 +4799,7 @@ }, "children": [ { - "id": 50, + "id": 54, "name": "callback", "kind": 32, "kindString": "Variable", @@ -4758,7 +4819,7 @@ } }, { - "id": 49, + "id": 53, "name": "status", "kind": 32, "kindString": "Variable", @@ -4783,8 +4844,8 @@ "title": "Variables", "kind": 32, "children": [ - 50, - 49 + 54, + 53 ] } ], @@ -4801,7 +4862,7 @@ "defaultValue": "[]" }, { - "id": 43, + "id": 47, "name": "receivedResp", "kind": 1024, "kindString": "Property", @@ -4821,7 +4882,7 @@ { "type": "reflection", "declaration": { - "id": 44, + "id": 48, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4830,7 +4891,7 @@ }, "children": [ { - "id": 46, + "id": 50, "name": "response", "kind": 32, "kindString": "Variable", @@ -4850,7 +4911,7 @@ } }, { - "id": 45, + "id": 49, "name": "status", "kind": 32, "kindString": "Variable", @@ -4875,8 +4936,8 @@ "title": "Variables", "kind": 32, "children": [ - 46, - 45 + 50, + 49 ] } ], @@ -4898,7 +4959,7 @@ "defaultValue": "null" }, { - "id": 42, + "id": 46, "name": "ref", "kind": 1024, "kindString": "Property", @@ -4919,7 +4980,7 @@ "defaultValue": "\"\"" }, { - "id": 51, + "id": 55, "name": "refEvent", "kind": 1024, "kindString": "Property", @@ -4949,7 +5010,7 @@ "defaultValue": "null" }, { - "id": 40, + "id": 44, "name": "sent", "kind": 1024, "kindString": "Property", @@ -4970,7 +5031,7 @@ "defaultValue": "false" }, { - "id": 56, + "id": 60, "name": "timeout", "kind": 1024, "kindString": "Property", @@ -4995,7 +5056,7 @@ } }, { - "id": 41, + "id": 45, "name": "timeoutTimer", "kind": 1024, "kindString": "Property", @@ -5025,7 +5086,7 @@ "defaultValue": "undefined" }, { - "id": 77, + "id": 83, "name": "_cancelRefEvent", "kind": 2048, "kindString": "Method", @@ -5035,7 +5096,7 @@ }, "signatures": [ { - "id": 78, + "id": 84, "name": "_cancelRefEvent", "kind": 4096, "kindString": "Call signature", @@ -5051,13 +5112,13 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 89, + "line": 94, "character": 25 } ] }, { - "id": 79, + "id": 85, "name": "_cancelTimeout", "kind": 2048, "kindString": "Method", @@ -5067,7 +5128,7 @@ }, "signatures": [ { - "id": 80, + "id": 86, "name": "_cancelTimeout", "kind": 4096, "kindString": "Call signature", @@ -5083,13 +5144,13 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 96, + "line": 101, "character": 24 } ] }, { - "id": 87, + "id": 93, "name": "_hasReceived", "kind": 2048, "kindString": "Method", @@ -5099,7 +5160,7 @@ }, "signatures": [ { - "id": 88, + "id": 94, "name": "_hasReceived", "kind": 4096, "kindString": "Call signature", @@ -5108,7 +5169,7 @@ }, "parameters": [ { - "id": 89, + "id": 95, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -5143,13 +5204,13 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 113, + "line": 118, "character": 22 } ] }, { - "id": 81, + "id": 87, "name": "_matchReceive", "kind": 2048, "kindString": "Method", @@ -5159,7 +5220,7 @@ }, "signatures": [ { - "id": 82, + "id": 88, "name": "_matchReceive", "kind": 4096, "kindString": "Call signature", @@ -5168,7 +5229,7 @@ }, "parameters": [ { - "id": 83, + "id": 89, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -5179,7 +5240,7 @@ "type": { "type": "reflection", "declaration": { - "id": 84, + "id": 90, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5188,7 +5249,7 @@ }, "children": [ { - "id": 86, + "id": 92, "name": "response", "kind": 32, "kindString": "Variable", @@ -5198,7 +5259,7 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 103, + "line": 108, "character": 12 } ], @@ -5208,7 +5269,7 @@ } }, { - "id": 85, + "id": 91, "name": "status", "kind": 32, "kindString": "Variable", @@ -5218,7 +5279,7 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 102, + "line": 107, "character": 10 } ], @@ -5233,15 +5294,15 @@ "title": "Variables", "kind": 32, "children": [ - 86, - 85 + 92, + 91 ] } ], "sources": [ { "fileName": "lib/push.ts", - "line": 101, + "line": 106, "character": 24 } ] @@ -5258,13 +5319,44 @@ "sources": [ { "fileName": "lib/push.ts", - "line": 101, + "line": 106, "character": 23 } ] }, { - "id": 67, + "id": 81, + "name": "destroy", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 82, + "name": "destroy", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 89, + "character": 9 + } + ] + }, + { + "id": 71, "name": "receive", "kind": 2048, "kindString": "Method", @@ -5273,7 +5365,7 @@ }, "signatures": [ { - "id": 68, + "id": 72, "name": "receive", "kind": 4096, "kindString": "Call signature", @@ -5282,7 +5374,7 @@ }, "parameters": [ { - "id": 69, + "id": 73, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -5295,7 +5387,7 @@ } }, { - "id": 70, + "id": 74, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -5323,7 +5415,7 @@ ] }, { - "id": 62, + "id": 66, "name": "resend", "kind": 2048, "kindString": "Method", @@ -5332,7 +5424,7 @@ }, "signatures": [ { - "id": 63, + "id": 67, "name": "resend", "kind": 4096, "kindString": "Call signature", @@ -5341,7 +5433,7 @@ }, "parameters": [ { - "id": 64, + "id": 68, "name": "timeout", "kind": 32768, "kindString": "Parameter", @@ -5369,7 +5461,7 @@ ] }, { - "id": 65, + "id": 69, "name": "send", "kind": 2048, "kindString": "Method", @@ -5378,7 +5470,7 @@ }, "signatures": [ { - "id": 66, + "id": 70, "name": "send", "kind": 4096, "kindString": "Call signature", @@ -5400,7 +5492,7 @@ ] }, { - "id": 71, + "id": 75, "name": "startTimeout", "kind": 2048, "kindString": "Method", @@ -5409,7 +5501,7 @@ }, "signatures": [ { - "id": 72, + "id": 76, "name": "startTimeout", "kind": 4096, "kindString": "Call signature", @@ -5431,7 +5523,7 @@ ] }, { - "id": 73, + "id": 77, "name": "trigger", "kind": 2048, "kindString": "Method", @@ -5440,7 +5532,7 @@ }, "signatures": [ { - "id": 74, + "id": 78, "name": "trigger", "kind": 4096, "kindString": "Call signature", @@ -5449,7 +5541,7 @@ }, "parameters": [ { - "id": 75, + "id": 79, "name": "status", "kind": 32768, "kindString": "Parameter", @@ -5462,7 +5554,7 @@ } }, { - "id": 76, + "id": 80, "name": "response", "kind": 32768, "kindString": "Parameter", @@ -5495,38 +5587,39 @@ "title": "Constructors", "kind": 512, "children": [ - 52 + 56 ] }, { "title": "Properties", "kind": 1024, "children": [ - 53, - 54, - 55, - 47, - 43, - 42, + 57, + 58, + 59, 51, - 40, - 56, - 41 + 47, + 46, + 55, + 44, + 60, + 45 ] }, { "title": "Methods", "kind": 2048, "children": [ - 77, - 79, + 83, + 85, + 93, 87, 81, - 67, - 62, - 65, 71, - 73 + 66, + 69, + 75, + 77 ] } ], @@ -5544,7 +5637,7 @@ "title": "Classes", "kind": 128, "children": [ - 39 + 43 ] } ], @@ -5557,7 +5650,7 @@ ] }, { - "id": 169, + "id": 175, "name": "\"lib/serializer\"", "kind": 1, "kindString": "Module", @@ -5567,7 +5660,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts", "children": [ { - "id": 170, + "id": 176, "name": "Serializer", "kind": 128, "kindString": "Class", @@ -5576,7 +5669,7 @@ }, "children": [ { - "id": 171, + "id": 177, "name": "HEADER_LENGTH", "kind": 1024, "kindString": "Property", @@ -5597,7 +5690,7 @@ "defaultValue": "1" }, { - "id": 176, + "id": 182, "name": "_binaryDecode", "kind": 2048, "kindString": "Method", @@ -5607,7 +5700,7 @@ }, "signatures": [ { - "id": 177, + "id": 183, "name": "_binaryDecode", "kind": 4096, "kindString": "Call signature", @@ -5616,7 +5709,7 @@ }, "parameters": [ { - "id": 178, + "id": 184, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -5632,7 +5725,7 @@ "type": { "type": "reflection", "declaration": { - "id": 179, + "id": 185, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5641,7 +5734,7 @@ }, "children": [ { - "id": 182, + "id": 188, "name": "event", "kind": 32, "kindString": "Variable", @@ -5661,7 +5754,7 @@ } }, { - "id": 183, + "id": 189, "name": "payload", "kind": 32, "kindString": "Variable", @@ -5681,7 +5774,7 @@ } }, { - "id": 180, + "id": 186, "name": "ref", "kind": 32, "kindString": "Variable", @@ -5701,7 +5794,7 @@ } }, { - "id": 181, + "id": 187, "name": "topic", "kind": 32, "kindString": "Variable", @@ -5726,10 +5819,10 @@ "title": "Variables", "kind": 32, "children": [ - 182, - 183, - 180, - 181 + 188, + 189, + 186, + 187 ] } ] @@ -5746,7 +5839,7 @@ ] }, { - "id": 184, + "id": 190, "name": "_decodeBroadcast", "kind": 2048, "kindString": "Method", @@ -5756,7 +5849,7 @@ }, "signatures": [ { - "id": 185, + "id": 191, "name": "_decodeBroadcast", "kind": 4096, "kindString": "Call signature", @@ -5765,7 +5858,7 @@ }, "parameters": [ { - "id": 186, + "id": 192, "name": "buffer", "kind": 32768, "kindString": "Parameter", @@ -5778,7 +5871,7 @@ } }, { - "id": 187, + "id": 193, "name": "view", "kind": 32768, "kindString": "Parameter", @@ -5791,7 +5884,7 @@ } }, { - "id": 188, + "id": 194, "name": "decoder", "kind": 32768, "kindString": "Parameter", @@ -5807,7 +5900,7 @@ "type": { "type": "reflection", "declaration": { - "id": 189, + "id": 195, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5816,7 +5909,7 @@ }, "children": [ { - "id": 192, + "id": 198, "name": "event", "kind": 32, "kindString": "Variable", @@ -5836,7 +5929,7 @@ } }, { - "id": 193, + "id": 199, "name": "payload", "kind": 32, "kindString": "Variable", @@ -5856,7 +5949,7 @@ } }, { - "id": 190, + "id": 196, "name": "ref", "kind": 32, "kindString": "Variable", @@ -5876,7 +5969,7 @@ } }, { - "id": 191, + "id": 197, "name": "topic", "kind": 32, "kindString": "Variable", @@ -5901,10 +5994,10 @@ "title": "Variables", "kind": 32, "children": [ - 192, - 193, - 190, - 191 + 198, + 199, + 196, + 197 ] } ], @@ -5928,7 +6021,7 @@ ] }, { - "id": 172, + "id": 178, "name": "decode", "kind": 2048, "kindString": "Method", @@ -5937,7 +6030,7 @@ }, "signatures": [ { - "id": 173, + "id": 179, "name": "decode", "kind": 4096, "kindString": "Call signature", @@ -5946,7 +6039,7 @@ }, "parameters": [ { - "id": 174, + "id": 180, "name": "rawPayload", "kind": 32768, "kindString": "Parameter", @@ -5968,7 +6061,7 @@ } }, { - "id": 175, + "id": 181, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -6001,16 +6094,16 @@ "title": "Properties", "kind": 1024, "children": [ - 171 + 177 ] }, { "title": "Methods", "kind": 2048, "children": [ - 176, - 184, - 172 + 182, + 190, + 178 ] } ], @@ -6028,7 +6121,7 @@ "title": "Classes", "kind": 128, "children": [ - 170 + 176 ] } ], @@ -6041,7 +6134,7 @@ ] }, { - "id": 24, + "id": 28, "name": "\"lib/timer\"", "kind": 1, "kindString": "Module", @@ -6051,7 +6144,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/timer.ts", "children": [ { - "id": 25, + "id": 29, "name": "Timer", "kind": 128, "kindString": "Class", @@ -6069,7 +6162,7 @@ }, "children": [ { - "id": 28, + "id": 32, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6078,7 +6171,7 @@ }, "signatures": [ { - "id": 31, + "id": 35, "name": "new Timer", "kind": 16384, "kindString": "Constructor signature", @@ -6087,7 +6180,7 @@ }, "parameters": [ { - "id": 32, + "id": 36, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -6100,7 +6193,7 @@ } }, { - "id": 33, + "id": 37, "name": "timerCalc", "kind": 32768, "kindString": "Parameter", @@ -6115,7 +6208,7 @@ ], "type": { "type": "reference", - "id": 25, + "id": 29, "name": "Timer" } } @@ -6129,7 +6222,7 @@ ] }, { - "id": 29, + "id": 33, "name": "callback", "kind": 1024, "kindString": "Property", @@ -6151,7 +6244,7 @@ } }, { - "id": 26, + "id": 30, "name": "timer", "kind": 1024, "kindString": "Property", @@ -6181,7 +6274,7 @@ "defaultValue": "undefined" }, { - "id": 30, + "id": 34, "name": "timerCalc", "kind": 1024, "kindString": "Property", @@ -6203,7 +6296,7 @@ } }, { - "id": 27, + "id": 31, "name": "tries", "kind": 1024, "kindString": "Property", @@ -6224,7 +6317,7 @@ "defaultValue": "0" }, { - "id": 34, + "id": 38, "name": "reset", "kind": 2048, "kindString": "Method", @@ -6233,7 +6326,7 @@ }, "signatures": [ { - "id": 35, + "id": 39, "name": "reset", "kind": 4096, "kindString": "Call signature", @@ -6255,7 +6348,7 @@ ] }, { - "id": 36, + "id": 40, "name": "scheduleTimeout", "kind": 2048, "kindString": "Method", @@ -6264,7 +6357,7 @@ }, "signatures": [ { - "id": 37, + "id": 41, "name": "scheduleTimeout", "kind": 4096, "kindString": "Call signature", @@ -6291,25 +6384,25 @@ "title": "Constructors", "kind": 512, "children": [ - 28 + 32 ] }, { "title": "Properties", "kind": 1024, "children": [ - 29, - 26, + 33, 30, - 27 + 34, + 31 ] }, { "title": "Methods", "kind": 2048, "children": [ - 34, - 36 + 38, + 40 ] } ], @@ -6327,7 +6420,7 @@ "title": "Classes", "kind": 128, "children": [ - 25 + 29 ] } ], @@ -6340,7 +6433,7 @@ ] }, { - "id": 327, + "id": 333, "name": "\"lib/transformers\"", "kind": 1, "kindString": "Module", @@ -6350,7 +6443,7 @@ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts", "children": [ { - "id": 328, + "id": 334, "name": "PostgresTypes", "kind": 4, "kindString": "Enumeration", @@ -6362,7 +6455,7 @@ }, "children": [ { - "id": 329, + "id": 335, "name": "abstime", "kind": 16, "kindString": "Enumeration member", @@ -6379,7 +6472,7 @@ "defaultValue": "\"abstime\"" }, { - "id": 330, + "id": 336, "name": "bool", "kind": 16, "kindString": "Enumeration member", @@ -6396,7 +6489,7 @@ "defaultValue": "\"bool\"" }, { - "id": 331, + "id": 337, "name": "date", "kind": 16, "kindString": "Enumeration member", @@ -6413,7 +6506,7 @@ "defaultValue": "\"date\"" }, { - "id": 332, + "id": 338, "name": "daterange", "kind": 16, "kindString": "Enumeration member", @@ -6430,7 +6523,7 @@ "defaultValue": "\"daterange\"" }, { - "id": 333, + "id": 339, "name": "float4", "kind": 16, "kindString": "Enumeration member", @@ -6447,7 +6540,7 @@ "defaultValue": "\"float4\"" }, { - "id": 334, + "id": 340, "name": "float8", "kind": 16, "kindString": "Enumeration member", @@ -6464,7 +6557,7 @@ "defaultValue": "\"float8\"" }, { - "id": 335, + "id": 341, "name": "int2", "kind": 16, "kindString": "Enumeration member", @@ -6481,7 +6574,7 @@ "defaultValue": "\"int2\"" }, { - "id": 336, + "id": 342, "name": "int4", "kind": 16, "kindString": "Enumeration member", @@ -6498,7 +6591,7 @@ "defaultValue": "\"int4\"" }, { - "id": 337, + "id": 343, "name": "int4range", "kind": 16, "kindString": "Enumeration member", @@ -6515,7 +6608,7 @@ "defaultValue": "\"int4range\"" }, { - "id": 338, + "id": 344, "name": "int8", "kind": 16, "kindString": "Enumeration member", @@ -6532,7 +6625,7 @@ "defaultValue": "\"int8\"" }, { - "id": 339, + "id": 345, "name": "int8range", "kind": 16, "kindString": "Enumeration member", @@ -6549,7 +6642,7 @@ "defaultValue": "\"int8range\"" }, { - "id": 340, + "id": 346, "name": "json", "kind": 16, "kindString": "Enumeration member", @@ -6566,7 +6659,7 @@ "defaultValue": "\"json\"" }, { - "id": 341, + "id": 347, "name": "jsonb", "kind": 16, "kindString": "Enumeration member", @@ -6583,7 +6676,7 @@ "defaultValue": "\"jsonb\"" }, { - "id": 342, + "id": 348, "name": "money", "kind": 16, "kindString": "Enumeration member", @@ -6600,7 +6693,7 @@ "defaultValue": "\"money\"" }, { - "id": 343, + "id": 349, "name": "numeric", "kind": 16, "kindString": "Enumeration member", @@ -6617,7 +6710,7 @@ "defaultValue": "\"numeric\"" }, { - "id": 344, + "id": 350, "name": "oid", "kind": 16, "kindString": "Enumeration member", @@ -6634,7 +6727,7 @@ "defaultValue": "\"oid\"" }, { - "id": 345, + "id": 351, "name": "reltime", "kind": 16, "kindString": "Enumeration member", @@ -6651,7 +6744,7 @@ "defaultValue": "\"reltime\"" }, { - "id": 346, + "id": 352, "name": "time", "kind": 16, "kindString": "Enumeration member", @@ -6668,7 +6761,7 @@ "defaultValue": "\"time\"" }, { - "id": 347, + "id": 353, "name": "timestamp", "kind": 16, "kindString": "Enumeration member", @@ -6685,7 +6778,7 @@ "defaultValue": "\"timestamp\"" }, { - "id": 348, + "id": 354, "name": "timestamptz", "kind": 16, "kindString": "Enumeration member", @@ -6702,7 +6795,7 @@ "defaultValue": "\"timestamptz\"" }, { - "id": 349, + "id": 355, "name": "timetz", "kind": 16, "kindString": "Enumeration member", @@ -6719,7 +6812,7 @@ "defaultValue": "\"timetz\"" }, { - "id": 350, + "id": 356, "name": "tsrange", "kind": 16, "kindString": "Enumeration member", @@ -6736,7 +6829,7 @@ "defaultValue": "\"tsrange\"" }, { - "id": 351, + "id": 357, "name": "tstzrange", "kind": 16, "kindString": "Enumeration member", @@ -6758,12 +6851,6 @@ "title": "Enumeration members", "kind": 16, "children": [ - 329, - 330, - 331, - 332, - 333, - 334, 335, 336, 337, @@ -6780,7 +6867,13 @@ 348, 349, 350, - 351 + 351, + 352, + 353, + 354, + 355, + 356, + 357 ] } ], @@ -6793,7 +6886,7 @@ ] }, { - "id": 352, + "id": 358, "name": "Column", "kind": 4194304, "kindString": "Type alias", @@ -6808,14 +6901,14 @@ "type": { "type": "reflection", "declaration": { - "id": 353, + "id": 359, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 354, + "id": 360, "name": "flags", "kind": 32, "kindString": "Variable", @@ -6836,7 +6929,7 @@ } }, { - "id": 355, + "id": 361, "name": "name", "kind": 32, "kindString": "Variable", @@ -6854,7 +6947,7 @@ } }, { - "id": 356, + "id": 362, "name": "type", "kind": 32, "kindString": "Variable", @@ -6872,7 +6965,7 @@ } }, { - "id": 357, + "id": 363, "name": "type_modifier", "kind": 32, "kindString": "Variable", @@ -6895,10 +6988,10 @@ "title": "Variables", "kind": 32, "children": [ - 354, - 355, - 356, - 357 + 360, + 361, + 362, + 363 ] } ], @@ -6913,7 +7006,7 @@ } }, { - "id": 358, + "id": 364, "name": "Records", "kind": 4194304, "kindString": "Type alias", @@ -6928,21 +7021,21 @@ "type": { "type": "reflection", "declaration": { - "id": 359, + "id": 365, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": [ { - "id": 360, + "id": 366, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 361, + "id": 367, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -6970,7 +7063,7 @@ } }, { - "id": 378, + "id": 384, "name": "convertCell", "kind": 64, "kindString": "Function", @@ -6983,7 +7076,7 @@ "tags": [ { "tag": "example", - "text": "convertCell('bool', 'true')\n//=> true" + "text": "convertCell('bool', 't')\n//=> true" }, { "tag": "example", @@ -6997,7 +7090,7 @@ }, "signatures": [ { - "id": 379, + "id": 385, "name": "convertCell", "kind": 4096, "kindString": "Call signature", @@ -7009,7 +7102,7 @@ "tags": [ { "tag": "example", - "text": "convertCell('bool', 'true')\n//=> true" + "text": "convertCell('bool', 't')\n//=> true" }, { "tag": "example", @@ -7023,7 +7116,7 @@ }, "parameters": [ { - "id": 380, + "id": 386, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -7039,7 +7132,7 @@ } }, { - "id": 381, + "id": 387, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7070,7 +7163,7 @@ ] }, { - "id": 362, + "id": 368, "name": "convertChangeData", "kind": 64, "kindString": "Function", @@ -7089,7 +7182,7 @@ }, "signatures": [ { - "id": 363, + "id": 369, "name": "convertChangeData", "kind": 4096, "kindString": "Call signature", @@ -7107,7 +7200,7 @@ }, "parameters": [ { - "id": 364, + "id": 370, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -7118,13 +7211,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 352, + "id": 358, "name": "Column" } } }, { - "id": 365, + "id": 371, "name": "records", "kind": 32768, "kindString": "Parameter", @@ -7134,12 +7227,12 @@ "comment": {}, "type": { "type": "reference", - "id": 358, + "id": 364, "name": "Records" } }, { - "id": 366, + "id": 372, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -7152,7 +7245,7 @@ "type": { "type": "reflection", "declaration": { - "id": 367, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7161,7 +7254,7 @@ }, "children": [ { - "id": 368, + "id": 374, "name": "skipTypes", "kind": 32, "kindString": "Variable", @@ -7190,7 +7283,7 @@ "title": "Variables", "kind": 32, "children": [ - 368 + 374 ] } ], @@ -7209,7 +7302,7 @@ "type": { "type": "reflection", "declaration": { - "id": 369, + "id": 375, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7218,7 +7311,7 @@ }, "indexSignature": [ { - "id": 370, + "id": 376, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -7227,7 +7320,7 @@ }, "parameters": [ { - "id": 371, + "id": 377, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7259,7 +7352,7 @@ ] }, { - "id": 372, + "id": 378, "name": "convertColumn", "kind": 64, "kindString": "Function", @@ -7273,17 +7366,17 @@ "tags": [ { "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33" + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, [])\n//=> 33" }, { "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n" + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n" } ] }, "signatures": [ { - "id": 373, + "id": 379, "name": "convertColumn", "kind": 4096, "kindString": "Call signature", @@ -7296,17 +7389,17 @@ "tags": [ { "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33" + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, [])\n//=> 33" }, { "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n" + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n" } ] }, "parameters": [ { - "id": 374, + "id": 380, "name": "columnName", "kind": 32768, "kindString": "Parameter", @@ -7322,7 +7415,7 @@ } }, { - "id": 375, + "id": 381, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -7333,13 +7426,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 352, + "id": 358, "name": "Column" } } }, { - "id": 376, + "id": 382, "name": "records", "kind": 32768, "kindString": "Parameter", @@ -7351,12 +7444,12 @@ }, "type": { "type": "reference", - "id": 358, + "id": 364, "name": "Records" } }, { - "id": 377, + "id": 383, "name": "skipTypes", "kind": 32768, "kindString": "Parameter", @@ -7390,7 +7483,7 @@ ] }, { - "id": 382, + "id": 388, "name": "noop", "kind": 64, "kindString": "Function", @@ -7399,14 +7492,14 @@ }, "signatures": [ { - "id": 383, + "id": 389, "name": "noop", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 384, + "id": 390, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7432,7 +7525,7 @@ ] }, { - "id": 406, + "id": 412, "name": "toArray", "kind": 64, "kindString": "Function", @@ -7455,7 +7548,7 @@ }, "signatures": [ { - "id": 407, + "id": 413, "name": "toArray", "kind": 4096, "kindString": "Call signature", @@ -7477,7 +7570,7 @@ }, "parameters": [ { - "id": 408, + "id": 414, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7490,7 +7583,7 @@ } }, { - "id": 409, + "id": 415, "name": "type", "kind": 32768, "kindString": "Parameter", @@ -7521,7 +7614,7 @@ ] }, { - "id": 385, + "id": 391, "name": "toBoolean", "kind": 64, "kindString": "Function", @@ -7531,7 +7624,7 @@ }, "signatures": [ { - "id": 386, + "id": 392, "name": "toBoolean", "kind": 4096, "kindString": "Call signature", @@ -7540,7 +7633,7 @@ }, "parameters": [ { - "id": 387, + "id": 393, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7581,7 +7674,7 @@ ] }, { - "id": 388, + "id": 394, "name": "toDate", "kind": 64, "kindString": "Function", @@ -7591,7 +7684,7 @@ }, "signatures": [ { - "id": 389, + "id": 395, "name": "toDate", "kind": 4096, "kindString": "Call signature", @@ -7600,7 +7693,7 @@ }, "parameters": [ { - "id": 390, + "id": 396, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7628,7 +7721,7 @@ ] }, { - "id": 391, + "id": 397, "name": "toDateRange", "kind": 64, "kindString": "Function", @@ -7638,7 +7731,7 @@ }, "signatures": [ { - "id": 392, + "id": 398, "name": "toDateRange", "kind": 4096, "kindString": "Call signature", @@ -7647,7 +7740,7 @@ }, "parameters": [ { - "id": 393, + "id": 399, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7678,7 +7771,7 @@ ] }, { - "id": 394, + "id": 400, "name": "toFloat", "kind": 64, "kindString": "Function", @@ -7688,7 +7781,7 @@ }, "signatures": [ { - "id": 395, + "id": 401, "name": "toFloat", "kind": 4096, "kindString": "Call signature", @@ -7697,7 +7790,7 @@ }, "parameters": [ { - "id": 396, + "id": 402, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7725,7 +7818,7 @@ ] }, { - "id": 397, + "id": 403, "name": "toInt", "kind": 64, "kindString": "Function", @@ -7735,7 +7828,7 @@ }, "signatures": [ { - "id": 398, + "id": 404, "name": "toInt", "kind": 4096, "kindString": "Call signature", @@ -7744,7 +7837,7 @@ }, "parameters": [ { - "id": 399, + "id": 405, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7772,7 +7865,7 @@ ] }, { - "id": 400, + "id": 406, "name": "toIntRange", "kind": 64, "kindString": "Function", @@ -7782,7 +7875,7 @@ }, "signatures": [ { - "id": 401, + "id": 407, "name": "toIntRange", "kind": 4096, "kindString": "Call signature", @@ -7791,7 +7884,7 @@ }, "parameters": [ { - "id": 402, + "id": 408, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7822,7 +7915,7 @@ ] }, { - "id": 403, + "id": 409, "name": "toJson", "kind": 64, "kindString": "Function", @@ -7832,7 +7925,7 @@ }, "signatures": [ { - "id": 404, + "id": 410, "name": "toJson", "kind": 4096, "kindString": "Call signature", @@ -7841,7 +7934,7 @@ }, "parameters": [ { - "id": 405, + "id": 411, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7869,7 +7962,7 @@ ] }, { - "id": 410, + "id": 416, "name": "toTimestampString", "kind": 64, "kindString": "Function", @@ -7888,7 +7981,7 @@ }, "signatures": [ { - "id": 411, + "id": 417, "name": "toTimestampString", "kind": 4096, "kindString": "Call signature", @@ -7906,7 +7999,7 @@ }, "parameters": [ { - "id": 412, + "id": 418, "name": "stringValue", "kind": 32768, "kindString": "Parameter", @@ -7939,34 +8032,34 @@ "title": "Enumerations", "kind": 4, "children": [ - 328 + 334 ] }, { "title": "Type aliases", "kind": 4194304, "children": [ - 352, - 358 + 358, + 364 ] }, { "title": "Functions", "kind": 64, "children": [ + 384, + 368, 378, - 362, - 372, - 382, - 406, - 385, 388, + 412, 391, 394, 397, 400, 403, - 410 + 406, + 409, + 416 ] } ], @@ -7977,6 +8070,56 @@ "character": 0 } ] + }, + { + "id": 1, + "name": "\"lib/version\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/version.ts", + "children": [ + { + "id": 2, + "name": "version", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/version.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "stringLiteral", + "value": "0.0.0" + }, + "defaultValue": "\"0.0.0\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 2 + ] + } + ], + "sources": [ + { + "fileName": "lib/version.ts", + "line": 1, + "character": 0 + } + ] } ], "groups": [ @@ -7984,14 +8127,15 @@ "title": "Modules", "kind": 1, "children": [ - 194, - 90, - 413, - 1, - 38, - 169, - 24, - 327 + 200, + 96, + 419, + 3, + 42, + 175, + 28, + 333, + 1 ] } ] diff --git a/web/spec/storage.json b/web/spec/storage.json index fc4d6858de6..4430e1f63f6 100644 --- a/web/spec/storage.json +++ b/web/spec/storage.json @@ -6,7 +6,7 @@ "originalName": "", "children": [ { - "id": 270, + "id": 276, "name": "\"SupabaseStorageClient\"", "kind": 1, "kindString": "Module", @@ -16,7 +16,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/SupabaseStorageClient.ts", "children": [ { - "id": 271, + "id": 277, "name": "SupabaseStorageClient", "kind": 128, "kindString": "Class", @@ -25,7 +25,7 @@ }, "children": [ { - "id": 272, + "id": 278, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -34,7 +34,7 @@ }, "signatures": [ { - "id": 273, + "id": 279, "name": "new SupabaseStorageClient", "kind": 16384, "kindString": "Constructor signature", @@ -43,7 +43,7 @@ }, "parameters": [ { - "id": 274, + "id": 280, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -56,7 +56,7 @@ } }, { - "id": 275, + "id": 281, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -66,7 +66,7 @@ "type": { "type": "reflection", "declaration": { - "id": 276, + "id": 282, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -75,7 +75,7 @@ }, "indexSignature": [ { - "id": 277, + "id": 283, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -84,7 +84,7 @@ }, "parameters": [ { - "id": 278, + "id": 284, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -117,12 +117,12 @@ ], "type": { "type": "reference", - "id": 271, + "id": 277, "name": "SupabaseStorageClient" }, "overwrites": { "type": "reference", - "id": 96, + "id": 101, "name": "StorageBucketApi.__constructor" } } @@ -136,12 +136,12 @@ ], "overwrites": { "type": "reference", - "id": 96, + "id": 101, "name": "StorageBucketApi.__constructor" } }, { - "id": 283, + "id": 289, "name": "headers", "kind": 1024, "kindString": "Property", @@ -152,14 +152,14 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 6, + "line": 7, "character": 19 } ], "type": { "type": "reflection", "declaration": { - "id": 284, + "id": 290, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -168,7 +168,7 @@ }, "indexSignature": [ { - "id": 285, + "id": 291, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -177,7 +177,7 @@ }, "parameters": [ { - "id": 286, + "id": 292, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -199,7 +199,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 6, + "line": 7, "character": 20 } ] @@ -207,12 +207,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 92, + "id": 97, "name": "StorageBucketApi.headers" } }, { - "id": 282, + "id": 288, "name": "url", "kind": 1024, "kindString": "Property", @@ -223,7 +223,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 5, + "line": 6, "character": 15 } ], @@ -233,12 +233,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 91, + "id": 96, "name": "StorageBucketApi.url" } }, { - "id": 298, + "id": 304, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -247,7 +247,7 @@ }, "signatures": [ { - "id": 299, + "id": 305, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -260,7 +260,7 @@ }, "parameters": [ { - "id": 300, + "id": 306, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -276,7 +276,7 @@ } }, { - "id": 301, + "id": 307, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -286,7 +286,7 @@ "type": { "type": "reflection", "declaration": { - "id": 302, + "id": 308, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -295,7 +295,7 @@ }, "children": [ { - "id": 303, + "id": 309, "name": "public", "kind": 32, "kindString": "Variable", @@ -305,7 +305,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 47, + "line": 48, "character": 21 } ], @@ -320,14 +320,14 @@ "title": "Variables", "kind": 32, "children": [ - 303 + 309 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 47, + "line": 48, "character": 12 } ] @@ -342,7 +342,7 @@ { "type": "reflection", "declaration": { - "id": 304, + "id": 310, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -351,7 +351,7 @@ }, "children": [ { - "id": 305, + "id": 311, "name": "data", "kind": 32, "kindString": "Variable", @@ -361,7 +361,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 19 } ], @@ -380,7 +380,7 @@ } }, { - "id": 306, + "id": 312, "name": "error", "kind": 32, "kindString": "Variable", @@ -390,7 +390,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 41 } ], @@ -414,15 +414,15 @@ "title": "Variables", "kind": 32, "children": [ - 305, - 306 + 311, + 312 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 13 } ] @@ -433,7 +433,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 114, + "id": 119, "name": "StorageBucketApi.createBucket" } } @@ -441,18 +441,18 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 45, + "line": 46, "character": 20 } ], "inheritedFrom": { "type": "reference", - "id": 114, + "id": 119, "name": "StorageBucketApi.createBucket" } }, { - "id": 326, + "id": 332, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -461,7 +461,7 @@ }, "signatures": [ { - "id": 327, + "id": 333, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -473,7 +473,7 @@ }, "parameters": [ { - "id": 328, + "id": 334, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -495,7 +495,7 @@ { "type": "reflection", "declaration": { - "id": 329, + "id": 335, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -504,7 +504,7 @@ }, "children": [ { - "id": 330, + "id": 336, "name": "data", "kind": 32, "kindString": "Variable", @@ -514,7 +514,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 19 } ], @@ -524,7 +524,7 @@ { "type": "reflection", "declaration": { - "id": 331, + "id": 337, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -533,7 +533,7 @@ }, "children": [ { - "id": 332, + "id": 338, "name": "message", "kind": 32, "kindString": "Variable", @@ -543,7 +543,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 30 } ], @@ -558,14 +558,14 @@ "title": "Variables", "kind": 32, "children": [ - 332 + 338 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 20 } ] @@ -579,7 +579,7 @@ } }, { - "id": 333, + "id": 339, "name": "error", "kind": 32, "kindString": "Variable", @@ -589,7 +589,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 54 } ], @@ -613,15 +613,15 @@ "title": "Variables", "kind": 32, "children": [ - 330, - 333 + 336, + 339 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 13 } ] @@ -632,7 +632,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 142, + "id": 147, "name": "StorageBucketApi.deleteBucket" } } @@ -640,18 +640,18 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 104, + "line": 105, "character": 20 } ], "inheritedFrom": { "type": "reference", - "id": 142, + "id": 147, "name": "StorageBucketApi.deleteBucket" } }, { - "id": 318, + "id": 324, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -660,7 +660,7 @@ }, "signatures": [ { - "id": 319, + "id": 325, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -672,7 +672,7 @@ }, "parameters": [ { - "id": 320, + "id": 326, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -694,7 +694,7 @@ { "type": "reflection", "declaration": { - "id": 321, + "id": 327, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -703,7 +703,7 @@ }, "children": [ { - "id": 322, + "id": 328, "name": "data", "kind": 32, "kindString": "Variable", @@ -713,7 +713,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 19 } ], @@ -723,7 +723,7 @@ { "type": "reflection", "declaration": { - "id": 323, + "id": 329, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -732,7 +732,7 @@ }, "children": [ { - "id": 324, + "id": 330, "name": "message", "kind": 32, "kindString": "Variable", @@ -742,7 +742,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 30 } ], @@ -757,14 +757,14 @@ "title": "Variables", "kind": 32, "children": [ - 324 + 330 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 20 } ] @@ -778,7 +778,7 @@ } }, { - "id": 325, + "id": 331, "name": "error", "kind": 32, "kindString": "Variable", @@ -788,7 +788,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 54 } ], @@ -812,15 +812,15 @@ "title": "Variables", "kind": 32, "children": [ - 322, - 325 + 328, + 331 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 13 } ] @@ -831,7 +831,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 134, + "id": 139, "name": "StorageBucketApi.emptyBucket" } } @@ -839,18 +839,18 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 87, + "line": 88, "character": 19 } ], "inheritedFrom": { "type": "reference", - "id": 134, + "id": 139, "name": "StorageBucketApi.emptyBucket" } }, { - "id": 279, + "id": 285, "name": "from", "kind": 2048, "kindString": "Method", @@ -859,7 +859,7 @@ }, "signatures": [ { - "id": 280, + "id": 286, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -871,7 +871,7 @@ }, "parameters": [ { - "id": 281, + "id": 287, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -889,7 +889,7 @@ ], "type": { "type": "reference", - "id": 154, + "id": 159, "name": "StorageFileApi" } } @@ -903,7 +903,7 @@ ] }, { - "id": 292, + "id": 298, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -912,7 +912,7 @@ }, "signatures": [ { - "id": 293, + "id": 299, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -924,7 +924,7 @@ }, "parameters": [ { - "id": 294, + "id": 300, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -940,6 +940,142 @@ } } ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 301, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 302, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 31, + "character": 45 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "Bucket" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 303, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 31, + "character": 67 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 302, + 303 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 31, + "character": 39 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 113, + "name": "StorageBucketApi.getBucket" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 31, + "character": 17 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 113, + "name": "StorageBucketApi.getBucket" + } + }, + { + "id": 293, + "name": "listBuckets", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 294, + "name": "listBuckets", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Retrieves the details of all Storage buckets within an existing product." + }, "type": { "type": "reference", "typeArguments": [ @@ -965,17 +1101,20 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 45 + "line": 17, + "character": 37 } ], "type": { "type": "union", "types": [ { - "type": "reference", - "id": 58, - "name": "Bucket" + "type": "array", + "elementType": { + "type": "reference", + "id": 58, + "name": "Bucket" + } }, { "type": "intrinsic", @@ -995,8 +1134,8 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 67 + "line": 17, + "character": 61 } ], "type": { @@ -1027,146 +1166,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 39 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 108, - "name": "StorageBucketApi.getBucket" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 17 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 108, - "name": "StorageBucketApi.getBucket" - } - }, - { - "id": 287, - "name": "listBuckets", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 288, - "name": "listBuckets", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Retrieves the details of all Storage buckets within an existing product." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 289, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 290, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, - "character": 37 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "array", - "elementType": { - "type": "reference", - "id": 58, - "name": "Bucket" - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 291, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, - "character": 61 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 290, - 291 - ] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 31 } ] @@ -1177,7 +1177,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 103, + "id": 108, "name": "StorageBucketApi.listBuckets" } } @@ -1185,18 +1185,18 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 19 } ], "inheritedFrom": { "type": "reference", - "id": 103, + "id": 108, "name": "StorageBucketApi.listBuckets" } }, { - "id": 307, + "id": 313, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -1205,7 +1205,7 @@ }, "signatures": [ { - "id": 308, + "id": 314, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -1217,7 +1217,7 @@ }, "parameters": [ { - "id": 309, + "id": 315, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -1233,7 +1233,7 @@ } }, { - "id": 310, + "id": 316, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1243,7 +1243,7 @@ "type": { "type": "reflection", "declaration": { - "id": 311, + "id": 317, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1252,7 +1252,7 @@ }, "children": [ { - "id": 312, + "id": 318, "name": "public", "kind": 32, "kindString": "Variable", @@ -1262,7 +1262,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 68, + "line": 69, "character": 21 } ], @@ -1277,14 +1277,14 @@ "title": "Variables", "kind": 32, "children": [ - 312 + 318 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 68, + "line": 69, "character": 12 } ] @@ -1298,7 +1298,7 @@ { "type": "reflection", "declaration": { - "id": 313, + "id": 319, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1307,7 +1307,7 @@ }, "children": [ { - "id": 314, + "id": 320, "name": "data", "kind": 32, "kindString": "Variable", @@ -1317,7 +1317,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 19 } ], @@ -1327,7 +1327,7 @@ { "type": "reflection", "declaration": { - "id": 315, + "id": 321, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1336,7 +1336,7 @@ }, "children": [ { - "id": 316, + "id": 322, "name": "message", "kind": 32, "kindString": "Variable", @@ -1346,7 +1346,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 30 } ], @@ -1361,14 +1361,14 @@ "title": "Variables", "kind": 32, "children": [ - 316 + 322 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 20 } ] @@ -1382,7 +1382,7 @@ } }, { - "id": 317, + "id": 323, "name": "error", "kind": 32, "kindString": "Variable", @@ -1392,7 +1392,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 54 } ], @@ -1416,15 +1416,15 @@ "title": "Variables", "kind": 32, "children": [ - 314, - 317 + 320, + 323 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 13 } ] @@ -1435,7 +1435,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 123, + "id": 128, "name": "StorageBucketApi.updateBucket" } } @@ -1443,13 +1443,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 66, + "line": 67, "character": 20 } ], "inheritedFrom": { "type": "reference", - "id": 123, + "id": 128, "name": "StorageBucketApi.updateBucket" } } @@ -1459,28 +1459,28 @@ "title": "Constructors", "kind": 512, "children": [ - 272 + 278 ] }, { "title": "Properties", "kind": 1024, "children": [ - 283, - 282 + 289, + 288 ] }, { "title": "Methods", "kind": 2048, "children": [ + 304, + 332, + 324, + 285, 298, - 326, - 318, - 279, - 292, - 287, - 307 + 293, + 313 ] } ], @@ -1494,7 +1494,7 @@ "extendedTypes": [ { "type": "reference", - "id": 90, + "id": 95, "name": "StorageBucketApi" } ] @@ -1505,7 +1505,7 @@ "title": "Classes", "kind": 128, "children": [ - 271 + 277 ] } ], @@ -1518,7 +1518,7 @@ ] }, { - "id": 334, + "id": 340, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -1528,7 +1528,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/index.ts", "children": [ { - "id": 335, + "id": 341, "name": "Bucket", "kind": 16777216, "kindString": "Reference", @@ -1538,7 +1538,7 @@ "target": 58 }, { - "id": 336, + "id": 342, "name": "FileObject", "kind": 16777216, "kindString": "Reference", @@ -1548,7 +1548,7 @@ "target": 65 }, { - "id": 338, + "id": 344, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", @@ -1558,7 +1558,7 @@ "target": 79 }, { - "id": 340, + "id": 346, "name": "Metadata", "kind": 16777216, "kindString": "Reference", @@ -1568,7 +1568,7 @@ "target": 87 }, { - "id": 339, + "id": 345, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", @@ -1578,7 +1578,7 @@ "target": 83 }, { - "id": 337, + "id": 343, "name": "SortBy", "kind": 16777216, "kindString": "Reference", @@ -1593,12 +1593,12 @@ "title": "References", "kind": 16777216, "children": [ - 335, - 336, - 338, - 340, - 339, - 337 + 341, + 342, + 344, + 346, + 345, + 343 ] } ], @@ -1611,7 +1611,7 @@ ] }, { - "id": 89, + "id": 94, "name": "\"lib/StorageBucketApi\"", "kind": 1, "kindString": "Module", @@ -1621,7 +1621,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageBucketApi.ts", "children": [ { - "id": 90, + "id": 95, "name": "StorageBucketApi", "kind": 128, "kindString": "Class", @@ -1630,7 +1630,7 @@ }, "children": [ { - "id": 96, + "id": 101, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1639,7 +1639,7 @@ }, "signatures": [ { - "id": 97, + "id": 102, "name": "new StorageBucketApi", "kind": 16384, "kindString": "Constructor signature", @@ -1648,7 +1648,7 @@ }, "parameters": [ { - "id": 98, + "id": 103, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -1661,7 +1661,7 @@ } }, { - "id": 99, + "id": 104, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -1671,7 +1671,7 @@ "type": { "type": "reflection", "declaration": { - "id": 100, + "id": 105, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1680,7 +1680,7 @@ }, "indexSignature": [ { - "id": 101, + "id": 106, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -1689,7 +1689,7 @@ }, "parameters": [ { - "id": 102, + "id": 107, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -1711,7 +1711,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 8, + "line": 9, "character": 35 } ] @@ -1722,7 +1722,7 @@ ], "type": { "type": "reference", - "id": 90, + "id": 95, "name": "StorageBucketApi" } } @@ -1730,13 +1730,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 6, + "line": 7, "character": 46 } ] }, { - "id": 92, + "id": 97, "name": "headers", "kind": 1024, "kindString": "Property", @@ -1747,14 +1747,14 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 6, + "line": 7, "character": 19 } ], "type": { "type": "reflection", "declaration": { - "id": 93, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1763,7 +1763,7 @@ }, "indexSignature": [ { - "id": 94, + "id": 99, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -1772,7 +1772,7 @@ }, "parameters": [ { - "id": 95, + "id": 100, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -1794,7 +1794,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 6, + "line": 7, "character": 20 } ] @@ -1802,7 +1802,7 @@ } }, { - "id": 91, + "id": 96, "name": "url", "kind": 1024, "kindString": "Property", @@ -1813,7 +1813,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 5, + "line": 6, "character": 15 } ], @@ -1823,7 +1823,7 @@ } }, { - "id": 114, + "id": 119, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -1832,7 +1832,7 @@ }, "signatures": [ { - "id": 115, + "id": 120, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -1845,7 +1845,7 @@ }, "parameters": [ { - "id": 116, + "id": 121, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -1861,7 +1861,7 @@ } }, { - "id": 117, + "id": 122, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1871,7 +1871,7 @@ "type": { "type": "reflection", "declaration": { - "id": 118, + "id": 123, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1880,7 +1880,7 @@ }, "children": [ { - "id": 119, + "id": 124, "name": "public", "kind": 32, "kindString": "Variable", @@ -1890,7 +1890,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 47, + "line": 48, "character": 21 } ], @@ -1905,14 +1905,14 @@ "title": "Variables", "kind": 32, "children": [ - 119 + 124 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 47, + "line": 48, "character": 12 } ] @@ -1927,7 +1927,7 @@ { "type": "reflection", "declaration": { - "id": 120, + "id": 125, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1936,7 +1936,7 @@ }, "children": [ { - "id": 121, + "id": 126, "name": "data", "kind": 32, "kindString": "Variable", @@ -1946,7 +1946,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 19 } ], @@ -1965,7 +1965,7 @@ } }, { - "id": 122, + "id": 127, "name": "error", "kind": 32, "kindString": "Variable", @@ -1975,7 +1975,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 41 } ], @@ -1999,15 +1999,15 @@ "title": "Variables", "kind": 32, "children": [ - 121, - 122 + 126, + 127 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 48, + "line": 49, "character": 13 } ] @@ -2021,13 +2021,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 45, + "line": 46, "character": 20 } ] }, { - "id": 142, + "id": 147, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -2036,7 +2036,7 @@ }, "signatures": [ { - "id": 143, + "id": 148, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -2048,7 +2048,7 @@ }, "parameters": [ { - "id": 144, + "id": 149, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -2070,7 +2070,7 @@ { "type": "reflection", "declaration": { - "id": 145, + "id": 150, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2079,7 +2079,7 @@ }, "children": [ { - "id": 146, + "id": 151, "name": "data", "kind": 32, "kindString": "Variable", @@ -2089,7 +2089,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 19 } ], @@ -2099,7 +2099,7 @@ { "type": "reflection", "declaration": { - "id": 147, + "id": 152, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2108,7 +2108,7 @@ }, "children": [ { - "id": 148, + "id": 153, "name": "message", "kind": 32, "kindString": "Variable", @@ -2118,7 +2118,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 30 } ], @@ -2133,14 +2133,14 @@ "title": "Variables", "kind": 32, "children": [ - 148 + 153 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 20 } ] @@ -2154,7 +2154,7 @@ } }, { - "id": 149, + "id": 154, "name": "error", "kind": 32, "kindString": "Variable", @@ -2164,7 +2164,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 54 } ], @@ -2188,15 +2188,15 @@ "title": "Variables", "kind": 32, "children": [ - 146, - 149 + 151, + 154 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 106, + "line": 107, "character": 13 } ] @@ -2210,13 +2210,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 104, + "line": 105, "character": 20 } ] }, { - "id": 134, + "id": 139, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -2225,7 +2225,7 @@ }, "signatures": [ { - "id": 135, + "id": 140, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -2237,7 +2237,7 @@ }, "parameters": [ { - "id": 136, + "id": 141, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -2259,7 +2259,7 @@ { "type": "reflection", "declaration": { - "id": 137, + "id": 142, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2268,7 +2268,7 @@ }, "children": [ { - "id": 138, + "id": 143, "name": "data", "kind": 32, "kindString": "Variable", @@ -2278,7 +2278,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 19 } ], @@ -2288,7 +2288,7 @@ { "type": "reflection", "declaration": { - "id": 139, + "id": 144, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2297,7 +2297,7 @@ }, "children": [ { - "id": 140, + "id": 145, "name": "message", "kind": 32, "kindString": "Variable", @@ -2307,7 +2307,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 30 } ], @@ -2322,14 +2322,14 @@ "title": "Variables", "kind": 32, "children": [ - 140 + 145 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 20 } ] @@ -2343,7 +2343,7 @@ } }, { - "id": 141, + "id": 146, "name": "error", "kind": 32, "kindString": "Variable", @@ -2353,7 +2353,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 54 } ], @@ -2377,15 +2377,15 @@ "title": "Variables", "kind": 32, "children": [ - 138, - 141 + 143, + 146 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 89, + "line": 90, "character": 13 } ] @@ -2399,13 +2399,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 87, + "line": 88, "character": 19 } ] }, { - "id": 108, + "id": 113, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -2414,7 +2414,7 @@ }, "signatures": [ { - "id": 109, + "id": 114, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -2426,7 +2426,7 @@ }, "parameters": [ { - "id": 110, + "id": 115, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -2448,7 +2448,7 @@ { "type": "reflection", "declaration": { - "id": 111, + "id": 116, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2457,7 +2457,7 @@ }, "children": [ { - "id": 112, + "id": 117, "name": "data", "kind": 32, "kindString": "Variable", @@ -2467,7 +2467,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, + "line": 31, "character": 45 } ], @@ -2487,7 +2487,7 @@ } }, { - "id": 113, + "id": 118, "name": "error", "kind": 32, "kindString": "Variable", @@ -2497,7 +2497,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, + "line": 31, "character": 67 } ], @@ -2521,15 +2521,15 @@ "title": "Variables", "kind": 32, "children": [ - 112, - 113 + 117, + 118 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, + "line": 31, "character": 39 } ] @@ -2543,13 +2543,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 30, + "line": 31, "character": 17 } ] }, { - "id": 103, + "id": 108, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -2558,7 +2558,7 @@ }, "signatures": [ { - "id": 104, + "id": 109, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -2574,7 +2574,7 @@ { "type": "reflection", "declaration": { - "id": 105, + "id": 110, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2583,7 +2583,7 @@ }, "children": [ { - "id": 106, + "id": 111, "name": "data", "kind": 32, "kindString": "Variable", @@ -2593,7 +2593,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 37 } ], @@ -2616,7 +2616,7 @@ } }, { - "id": 107, + "id": 112, "name": "error", "kind": 32, "kindString": "Variable", @@ -2626,7 +2626,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 61 } ], @@ -2650,15 +2650,15 @@ "title": "Variables", "kind": 32, "children": [ - 106, - 107 + 111, + 112 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 31 } ] @@ -2672,13 +2672,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 16, + "line": 17, "character": 19 } ] }, { - "id": 123, + "id": 128, "name": "updateBucket", "kind": 2048, "kindString": "Method", @@ -2687,7 +2687,7 @@ }, "signatures": [ { - "id": 124, + "id": 129, "name": "updateBucket", "kind": 4096, "kindString": "Call signature", @@ -2699,7 +2699,7 @@ }, "parameters": [ { - "id": 125, + "id": 130, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -2715,7 +2715,7 @@ } }, { - "id": 126, + "id": 131, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -2725,7 +2725,7 @@ "type": { "type": "reflection", "declaration": { - "id": 127, + "id": 132, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2734,7 +2734,7 @@ }, "children": [ { - "id": 128, + "id": 133, "name": "public", "kind": 32, "kindString": "Variable", @@ -2744,7 +2744,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 68, + "line": 69, "character": 21 } ], @@ -2759,14 +2759,14 @@ "title": "Variables", "kind": 32, "children": [ - 128 + 133 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 68, + "line": 69, "character": 12 } ] @@ -2780,7 +2780,7 @@ { "type": "reflection", "declaration": { - "id": 129, + "id": 134, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2789,7 +2789,7 @@ }, "children": [ { - "id": 130, + "id": 135, "name": "data", "kind": 32, "kindString": "Variable", @@ -2799,7 +2799,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 19 } ], @@ -2809,7 +2809,7 @@ { "type": "reflection", "declaration": { - "id": 131, + "id": 136, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2818,7 +2818,7 @@ }, "children": [ { - "id": 132, + "id": 137, "name": "message", "kind": 32, "kindString": "Variable", @@ -2828,7 +2828,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 30 } ], @@ -2843,14 +2843,14 @@ "title": "Variables", "kind": 32, "children": [ - 132 + 137 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 20 } ] @@ -2864,7 +2864,7 @@ } }, { - "id": 133, + "id": 138, "name": "error", "kind": 32, "kindString": "Variable", @@ -2874,7 +2874,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 54 } ], @@ -2898,15 +2898,15 @@ "title": "Variables", "kind": 32, "children": [ - 130, - 133 + 135, + 138 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 69, + "line": 70, "character": 13 } ] @@ -2920,7 +2920,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 66, + "line": 67, "character": 20 } ] @@ -2931,41 +2931,41 @@ "title": "Constructors", "kind": 512, "children": [ - 96 + 101 ] }, { "title": "Properties", "kind": 1024, "children": [ - 92, - 91 + 97, + 96 ] }, { "title": "Methods", "kind": 2048, "children": [ - 114, - 142, - 134, + 119, + 147, + 139, + 113, 108, - 103, - 123 + 128 ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 4, + "line": 5, "character": 29 } ], "extendedBy": [ { "type": "reference", - "id": 271, + "id": 277, "name": "SupabaseStorageClient" } ] @@ -2976,7 +2976,7 @@ "title": "Classes", "kind": 128, "children": [ - 90 + 95 ] } ], @@ -2989,7 +2989,7 @@ ] }, { - "id": 153, + "id": 158, "name": "\"lib/StorageFileApi\"", "kind": 1, "kindString": "Module", @@ -2999,7 +2999,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageFileApi.ts", "children": [ { - "id": 154, + "id": 159, "name": "StorageFileApi", "kind": 128, "kindString": "Class", @@ -3008,7 +3008,7 @@ }, "children": [ { - "id": 161, + "id": 166, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -3017,7 +3017,7 @@ }, "signatures": [ { - "id": 162, + "id": 167, "name": "new StorageFileApi", "kind": 16384, "kindString": "Constructor signature", @@ -3026,7 +3026,7 @@ }, "parameters": [ { - "id": 163, + "id": 168, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -3039,7 +3039,7 @@ } }, { - "id": 164, + "id": 169, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -3049,7 +3049,7 @@ "type": { "type": "reflection", "declaration": { - "id": 165, + "id": 170, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3058,7 +3058,7 @@ }, "indexSignature": [ { - "id": 166, + "id": 171, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -3067,7 +3067,7 @@ }, "parameters": [ { - "id": 167, + "id": 172, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -3098,7 +3098,7 @@ "defaultValue": "{}" }, { - "id": 168, + "id": 173, "name": "bucketId", "kind": 32768, "kindString": "Parameter", @@ -3123,7 +3123,7 @@ ], "type": { "type": "reference", - "id": 154, + "id": 159, "name": "StorageFileApi" } } @@ -3137,7 +3137,7 @@ ] }, { - "id": 160, + "id": 165, "name": "bucketId", "kind": 1024, "kindString": "Property", @@ -3168,7 +3168,7 @@ } }, { - "id": 156, + "id": 161, "name": "headers", "kind": 1024, "kindString": "Property", @@ -3186,7 +3186,7 @@ "type": { "type": "reflection", "declaration": { - "id": 157, + "id": 162, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3195,7 +3195,7 @@ }, "indexSignature": [ { - "id": 158, + "id": 163, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -3204,7 +3204,7 @@ }, "parameters": [ { - "id": 159, + "id": 164, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -3234,7 +3234,7 @@ } }, { - "id": 155, + "id": 160, "name": "url", "kind": 1024, "kindString": "Property", @@ -3255,7 +3255,7 @@ } }, { - "id": 248, + "id": 253, "name": "_getFinalPath", "kind": 2048, "kindString": "Method", @@ -3264,7 +3264,7 @@ }, "signatures": [ { - "id": 249, + "id": 254, "name": "_getFinalPath", "kind": 4096, "kindString": "Call signature", @@ -3273,7 +3273,7 @@ }, "parameters": [ { - "id": 250, + "id": 255, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -3301,7 +3301,7 @@ ] }, { - "id": 209, + "id": 214, "name": "createSignedUrl", "kind": 2048, "kindString": "Method", @@ -3310,7 +3310,7 @@ }, "signatures": [ { - "id": 210, + "id": 215, "name": "createSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -3322,7 +3322,7 @@ }, "parameters": [ { - "id": 211, + "id": 216, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -3338,7 +3338,7 @@ } }, { - "id": 212, + "id": 217, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -3360,7 +3360,7 @@ { "type": "reflection", "declaration": { - "id": 213, + "id": 218, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3369,7 +3369,7 @@ }, "children": [ { - "id": 214, + "id": 219, "name": "data", "kind": 32, "kindString": "Variable", @@ -3389,7 +3389,7 @@ { "type": "reflection", "declaration": { - "id": 215, + "id": 220, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3398,7 +3398,7 @@ }, "children": [ { - "id": 216, + "id": 221, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -3423,7 +3423,7 @@ "title": "Variables", "kind": 32, "children": [ - 216 + 221 ] } ], @@ -3444,7 +3444,7 @@ } }, { - "id": 217, + "id": 222, "name": "error", "kind": 32, "kindString": "Variable", @@ -3473,7 +3473,7 @@ } }, { - "id": 218, + "id": 223, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -3507,9 +3507,9 @@ "title": "Variables", "kind": 32, "children": [ - 214, - 217, - 218 + 219, + 222, + 223 ] } ], @@ -3536,7 +3536,7 @@ ] }, { - "id": 219, + "id": 224, "name": "download", "kind": 2048, "kindString": "Method", @@ -3545,7 +3545,7 @@ }, "signatures": [ { - "id": 220, + "id": 225, "name": "download", "kind": 4096, "kindString": "Call signature", @@ -3557,7 +3557,7 @@ }, "parameters": [ { - "id": 221, + "id": 226, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -3579,7 +3579,7 @@ { "type": "reflection", "declaration": { - "id": 222, + "id": 227, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3588,7 +3588,7 @@ }, "children": [ { - "id": 223, + "id": 228, "name": "data", "kind": 32, "kindString": "Variable", @@ -3617,7 +3617,7 @@ } }, { - "id": 224, + "id": 229, "name": "error", "kind": 32, "kindString": "Variable", @@ -3651,8 +3651,8 @@ "title": "Variables", "kind": 32, "children": [ - 223, - 224 + 228, + 229 ] } ], @@ -3679,7 +3679,7 @@ ] }, { - "id": 225, + "id": 230, "name": "getPublicUrl", "kind": 2048, "kindString": "Method", @@ -3688,7 +3688,7 @@ }, "signatures": [ { - "id": 226, + "id": 231, "name": "getPublicUrl", "kind": 4096, "kindString": "Call signature", @@ -3700,7 +3700,7 @@ }, "parameters": [ { - "id": 227, + "id": 232, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -3719,7 +3719,7 @@ "type": { "type": "reflection", "declaration": { - "id": 228, + "id": 233, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3728,7 +3728,7 @@ }, "children": [ { - "id": 229, + "id": 234, "name": "data", "kind": 32, "kindString": "Variable", @@ -3748,7 +3748,7 @@ { "type": "reflection", "declaration": { - "id": 230, + "id": 235, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3757,7 +3757,7 @@ }, "children": [ { - "id": 231, + "id": 236, "name": "publicURL", "kind": 32, "kindString": "Variable", @@ -3782,7 +3782,7 @@ "title": "Variables", "kind": 32, "children": [ - 231 + 236 ] } ], @@ -3803,7 +3803,7 @@ } }, { - "id": 232, + "id": 237, "name": "error", "kind": 32, "kindString": "Variable", @@ -3832,7 +3832,7 @@ } }, { - "id": 233, + "id": 238, "name": "publicURL", "kind": 32, "kindString": "Variable", @@ -3866,9 +3866,9 @@ "title": "Variables", "kind": 32, "children": [ - 229, - 232, - 233 + 234, + 237, + 238 ] } ], @@ -3892,7 +3892,7 @@ ] }, { - "id": 240, + "id": 245, "name": "list", "kind": 2048, "kindString": "Method", @@ -3901,7 +3901,7 @@ }, "signatures": [ { - "id": 241, + "id": 246, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -3913,7 +3913,7 @@ }, "parameters": [ { - "id": 242, + "id": 247, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -3939,7 +3939,7 @@ } }, { - "id": 243, + "id": 248, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -3957,7 +3957,7 @@ } }, { - "id": 244, + "id": 249, "name": "parameters", "kind": 32768, "kindString": "Parameter", @@ -3981,7 +3981,7 @@ { "type": "reflection", "declaration": { - "id": 245, + "id": 250, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3990,7 +3990,7 @@ }, "children": [ { - "id": 246, + "id": 251, "name": "data", "kind": 32, "kindString": "Variable", @@ -4023,7 +4023,7 @@ } }, { - "id": 247, + "id": 252, "name": "error", "kind": 32, "kindString": "Variable", @@ -4057,8 +4057,8 @@ "title": "Variables", "kind": 32, "children": [ - 246, - 247 + 251, + 252 ] } ], @@ -4085,7 +4085,7 @@ ] }, { - "id": 200, + "id": 205, "name": "move", "kind": 2048, "kindString": "Method", @@ -4094,7 +4094,7 @@ }, "signatures": [ { - "id": 201, + "id": 206, "name": "move", "kind": 4096, "kindString": "Call signature", @@ -4106,7 +4106,7 @@ }, "parameters": [ { - "id": 202, + "id": 207, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -4122,7 +4122,7 @@ } }, { - "id": 203, + "id": 208, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -4144,7 +4144,7 @@ { "type": "reflection", "declaration": { - "id": 204, + "id": 209, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4153,7 +4153,7 @@ }, "children": [ { - "id": 205, + "id": 210, "name": "data", "kind": 32, "kindString": "Variable", @@ -4173,7 +4173,7 @@ { "type": "reflection", "declaration": { - "id": 206, + "id": 211, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4182,7 +4182,7 @@ }, "children": [ { - "id": 207, + "id": 212, "name": "message", "kind": 32, "kindString": "Variable", @@ -4207,7 +4207,7 @@ "title": "Variables", "kind": 32, "children": [ - 207 + 212 ] } ], @@ -4228,7 +4228,7 @@ } }, { - "id": 208, + "id": 213, "name": "error", "kind": 32, "kindString": "Variable", @@ -4262,8 +4262,8 @@ "title": "Variables", "kind": 32, "children": [ - 205, - 208 + 210, + 213 ] } ], @@ -4290,7 +4290,7 @@ ] }, { - "id": 234, + "id": 239, "name": "remove", "kind": 2048, "kindString": "Method", @@ -4299,7 +4299,7 @@ }, "signatures": [ { - "id": 235, + "id": 240, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -4311,7 +4311,7 @@ }, "parameters": [ { - "id": 236, + "id": 241, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -4336,7 +4336,7 @@ { "type": "reflection", "declaration": { - "id": 237, + "id": 242, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4345,7 +4345,7 @@ }, "children": [ { - "id": 238, + "id": 243, "name": "data", "kind": 32, "kindString": "Variable", @@ -4378,7 +4378,7 @@ } }, { - "id": 239, + "id": 244, "name": "error", "kind": 32, "kindString": "Variable", @@ -4412,8 +4412,8 @@ "title": "Variables", "kind": 32, "children": [ - 238, - 239 + 243, + 244 ] } ], @@ -4440,7 +4440,7 @@ ] }, { - "id": 190, + "id": 195, "name": "update", "kind": 2048, "kindString": "Method", @@ -4449,7 +4449,7 @@ }, "signatures": [ { - "id": 191, + "id": 196, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -4461,7 +4461,7 @@ }, "parameters": [ { - "id": 192, + "id": 197, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -4477,7 +4477,7 @@ } }, { - "id": 193, + "id": 198, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -4540,7 +4540,7 @@ } }, { - "id": 194, + "id": 199, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -4564,7 +4564,7 @@ { "type": "reflection", "declaration": { - "id": 195, + "id": 200, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4573,7 +4573,7 @@ }, "children": [ { - "id": 196, + "id": 201, "name": "data", "kind": 32, "kindString": "Variable", @@ -4593,7 +4593,7 @@ { "type": "reflection", "declaration": { - "id": 197, + "id": 202, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4602,7 +4602,7 @@ }, "children": [ { - "id": 198, + "id": 203, "name": "Key", "kind": 32, "kindString": "Variable", @@ -4627,7 +4627,7 @@ "title": "Variables", "kind": 32, "children": [ - 198 + 203 ] } ], @@ -4648,7 +4648,7 @@ } }, { - "id": 199, + "id": 204, "name": "error", "kind": 32, "kindString": "Variable", @@ -4682,8 +4682,8 @@ "title": "Variables", "kind": 32, "children": [ - 196, - 199 + 201, + 204 ] } ], @@ -4710,7 +4710,7 @@ ] }, { - "id": 180, + "id": 185, "name": "upload", "kind": 2048, "kindString": "Method", @@ -4719,7 +4719,7 @@ }, "signatures": [ { - "id": 181, + "id": 186, "name": "upload", "kind": 4096, "kindString": "Call signature", @@ -4731,7 +4731,7 @@ }, "parameters": [ { - "id": 182, + "id": 187, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -4747,7 +4747,7 @@ } }, { - "id": 183, + "id": 188, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -4810,7 +4810,7 @@ } }, { - "id": 184, + "id": 189, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -4834,7 +4834,7 @@ { "type": "reflection", "declaration": { - "id": 185, + "id": 190, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4843,7 +4843,7 @@ }, "children": [ { - "id": 186, + "id": 191, "name": "data", "kind": 32, "kindString": "Variable", @@ -4863,7 +4863,7 @@ { "type": "reflection", "declaration": { - "id": 187, + "id": 192, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4872,7 +4872,7 @@ }, "children": [ { - "id": 188, + "id": 193, "name": "Key", "kind": 32, "kindString": "Variable", @@ -4897,7 +4897,7 @@ "title": "Variables", "kind": 32, "children": [ - 188 + 193 ] } ], @@ -4918,7 +4918,7 @@ } }, { - "id": 189, + "id": 194, "name": "error", "kind": 32, "kindString": "Variable", @@ -4952,8 +4952,8 @@ "title": "Variables", "kind": 32, "children": [ - 186, - 189 + 191, + 194 ] } ], @@ -4980,7 +4980,7 @@ ] }, { - "id": 169, + "id": 174, "name": "uploadOrUpdate", "kind": 2048, "kindString": "Method", @@ -4990,7 +4990,7 @@ }, "signatures": [ { - "id": 170, + "id": 175, "name": "uploadOrUpdate", "kind": 4096, "kindString": "Call signature", @@ -5002,7 +5002,7 @@ }, "parameters": [ { - "id": 171, + "id": 176, "name": "method", "kind": 32768, "kindString": "Parameter", @@ -5027,7 +5027,7 @@ } }, { - "id": 172, + "id": 177, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -5043,7 +5043,7 @@ } }, { - "id": 173, + "id": 178, "name": "fileBody", "kind": 32768, "kindString": "Parameter", @@ -5106,7 +5106,7 @@ } }, { - "id": 174, + "id": 179, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -5130,7 +5130,7 @@ { "type": "reflection", "declaration": { - "id": 175, + "id": 180, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5139,7 +5139,7 @@ }, "children": [ { - "id": 176, + "id": 181, "name": "data", "kind": 32, "kindString": "Variable", @@ -5159,7 +5159,7 @@ { "type": "reflection", "declaration": { - "id": 177, + "id": 182, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5168,7 +5168,7 @@ }, "children": [ { - "id": 178, + "id": 183, "name": "Key", "kind": 32, "kindString": "Variable", @@ -5193,7 +5193,7 @@ "title": "Variables", "kind": 32, "children": [ - 178 + 183 ] } ], @@ -5214,7 +5214,7 @@ } }, { - "id": 179, + "id": 184, "name": "error", "kind": 32, "kindString": "Variable", @@ -5248,8 +5248,8 @@ "title": "Variables", "kind": 32, "children": [ - 176, - 179 + 181, + 184 ] } ], @@ -5281,32 +5281,32 @@ "title": "Constructors", "kind": 512, "children": [ - 161 + 166 ] }, { "title": "Properties", "kind": 1024, "children": [ - 160, - 156, - 155 + 165, + 161, + 160 ] }, { "title": "Methods", "kind": 2048, "children": [ - 248, - 209, - 219, - 225, - 240, - 200, - 234, - 190, - 180, - 169 + 253, + 214, + 224, + 230, + 245, + 205, + 239, + 195, + 185, + 174 ] } ], @@ -5319,7 +5319,7 @@ ] }, { - "id": 257, + "id": 262, "name": "DEFAULT_FILE_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -5328,7 +5328,7 @@ }, "children": [ { - "id": 258, + "id": 263, "name": "cacheControl", "kind": 32, "kindString": "Variable", @@ -5347,7 +5347,7 @@ "defaultValue": "\"3600\"" }, { - "id": 259, + "id": 264, "name": "contentType", "kind": 32, "kindString": "Variable", @@ -5366,7 +5366,7 @@ "defaultValue": "\"text/plain;charset=UTF-8\"" }, { - "id": 260, + "id": 265, "name": "upsert", "kind": 32, "kindString": "Variable", @@ -5390,9 +5390,9 @@ "title": "Variables", "kind": 32, "children": [ - 258, - 259, - 260 + 263, + 264, + 265 ] } ], @@ -5409,7 +5409,7 @@ } }, { - "id": 251, + "id": 256, "name": "DEFAULT_SEARCH_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -5418,7 +5418,7 @@ }, "children": [ { - "id": 252, + "id": 257, "name": "limit", "kind": 32, "kindString": "Variable", @@ -5437,7 +5437,7 @@ "defaultValue": "100" }, { - "id": 253, + "id": 258, "name": "offset", "kind": 32, "kindString": "Variable", @@ -5456,14 +5456,14 @@ "defaultValue": "0" }, { - "id": 254, + "id": 259, "name": "sortBy", "kind": 2097152, "kindString": "Object literal", "flags": {}, "children": [ { - "id": 255, + "id": 260, "name": "column", "kind": 32, "kindString": "Variable", @@ -5482,7 +5482,7 @@ "defaultValue": "\"name\"" }, { - "id": 256, + "id": 261, "name": "order", "kind": 32, "kindString": "Variable", @@ -5506,8 +5506,8 @@ "title": "Variables", "kind": 32, "children": [ - 255, - 256 + 260, + 261 ] } ], @@ -5529,15 +5529,15 @@ "title": "Variables", "kind": 32, "children": [ - 252, - 253 + 257, + 258 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 254 + 259 ] } ], @@ -5559,15 +5559,15 @@ "title": "Classes", "kind": 128, "children": [ - 154 + 159 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 257, - 251 + 262, + 256 ] } ], @@ -5579,6 +5579,87 @@ } ] }, + { + "id": 91, + "name": "\"lib/constants\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/lib/constants.ts", + "children": [ + { + "id": 92, + "name": "DEFAULT_HEADERS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isExported": true, + "isConst": true + }, + "children": [ + { + "id": 93, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 2, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`storage-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 93 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 2, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 92 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 1, + "character": 0 + } + ] + }, { "id": 1, "name": "\"lib/fetch\"", @@ -6540,7 +6621,7 @@ ] }, { - "id": 150, + "id": 155, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", @@ -6550,7 +6631,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/helpers.ts", "children": [ { - "id": 151, + "id": 156, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -6560,7 +6641,7 @@ }, "signatures": [ { - "id": 152, + "id": 157, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -6587,7 +6668,7 @@ "title": "Functions", "kind": 64, "children": [ - 151 + 156 ] } ], @@ -6600,7 +6681,7 @@ ] }, { - "id": 261, + "id": 266, "name": "\"lib/index\"", "kind": 1, "kindString": "Module", @@ -6610,7 +6691,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/index.ts", "children": [ { - "id": 264, + "id": 269, "name": "Bucket", "kind": 16777216, "kindString": "Reference", @@ -6620,7 +6701,17 @@ "target": 58 }, { - "id": 265, + "id": 275, + "name": "DEFAULT_HEADERS", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 92 + }, + { + "id": 270, "name": "FileObject", "kind": 16777216, "kindString": "Reference", @@ -6630,7 +6721,7 @@ "target": 65 }, { - "id": 267, + "id": 272, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", @@ -6640,7 +6731,7 @@ "target": 79 }, { - "id": 269, + "id": 274, "name": "Metadata", "kind": 16777216, "kindString": "Reference", @@ -6650,7 +6741,7 @@ "target": 87 }, { - "id": 268, + "id": 273, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", @@ -6660,7 +6751,7 @@ "target": 83 }, { - "id": 266, + "id": 271, "name": "SortBy", "kind": 16777216, "kindString": "Reference", @@ -6670,24 +6761,24 @@ "target": 76 }, { - "id": 262, + "id": 267, "name": "StorageBucketApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 90 + "target": 95 }, { - "id": 263, + "id": 268, "name": "StorageFileApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 154 + "target": 159 } ], "groups": [ @@ -6695,14 +6786,15 @@ "title": "References", "kind": 16777216, "children": [ - 264, - 265, - 267, 269, - 268, - 266, - 262, - 263 + 275, + 270, + 272, + 274, + 273, + 271, + 267, + 268 ] } ], @@ -7507,6 +7599,56 @@ "character": 0 } ] + }, + { + "id": 89, + "name": "\"lib/version\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/lib/version.ts", + "children": [ + { + "id": 90, + "name": "version", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/version.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "stringLiteral", + "value": "0.0.0" + }, + "defaultValue": "\"0.0.0\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 90 + ] + } + ], + "sources": [ + { + "fileName": "lib/version.ts", + "line": 1, + "character": 0 + } + ] } ], "groups": [ @@ -7514,14 +7656,16 @@ "title": "Modules", "kind": 1, "children": [ - 270, - 334, - 89, - 153, + 276, + 340, + 94, + 158, + 91, 1, - 150, - 261, - 57 + 155, + 266, + 57, + 89 ] } ] diff --git a/web/spec/supabase.json b/web/spec/supabase.json index 13acb57dfd6..d214fc76b0b 100644 --- a/web/spec/supabase.json +++ b/web/spec/supabase.json @@ -6,7 +6,7 @@ "originalName": "", "children": [ { - "id": 248, + "id": 266, "name": "\"SupabaseClient\"", "kind": 1, "kindString": "Module", @@ -16,7 +16,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts", "children": [ { - "id": 249, + "id": 267, "name": "SupabaseClient", "kind": 128, "kindString": "Class", @@ -29,7 +29,7 @@ }, "children": [ { - "id": 257, + "id": 275, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -41,7 +41,7 @@ }, "signatures": [ { - "id": 260, + "id": 278, "name": "new SupabaseClient", "kind": 16384, "kindString": "Constructor signature", @@ -53,7 +53,7 @@ }, "parameters": [ { - "id": 261, + "id": 279, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -69,7 +69,7 @@ } }, { - "id": 262, + "id": 280, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -85,7 +85,7 @@ } }, { - "id": 263, + "id": 281, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -95,14 +95,14 @@ }, "type": { "type": "reference", - "id": 5, + "id": 7, "name": "SupabaseClientOptions" } } ], "type": { "type": "reference", - "id": 249, + "id": 267, "name": "SupabaseClient" } } @@ -116,7 +116,7 @@ ] }, { - "id": 250, + "id": 268, "name": "auth", "kind": 1024, "kindString": "Property", @@ -135,12 +135,12 @@ ], "type": { "type": "reference", - "id": 28, + "id": 30, "name": "SupabaseAuthClient" } }, { - "id": 254, + "id": 272, "name": "authUrl", "kind": 1024, "kindString": "Property", @@ -161,7 +161,7 @@ } }, { - "id": 256, + "id": 274, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -182,7 +182,7 @@ } }, { - "id": 253, + "id": 271, "name": "realtimeUrl", "kind": 1024, "kindString": "Property", @@ -203,7 +203,7 @@ } }, { - "id": 252, + "id": 270, "name": "restUrl", "kind": 1024, "kindString": "Property", @@ -224,7 +224,7 @@ } }, { - "id": 251, + "id": 269, "name": "schema", "kind": 1024, "kindString": "Property", @@ -245,7 +245,7 @@ } }, { - "id": 255, + "id": 273, "name": "storageUrl", "kind": 1024, "kindString": "Property", @@ -266,7 +266,7 @@ } }, { - "id": 259, + "id": 277, "name": "supabaseKey", "kind": 1024, "kindString": "Property", @@ -291,7 +291,7 @@ } }, { - "id": 258, + "id": 276, "name": "supabaseUrl", "kind": 1024, "kindString": "Property", @@ -316,7 +316,7 @@ } }, { - "id": 264, + "id": 282, "name": "storage", "kind": 262144, "kindString": "Accessor", @@ -328,7 +328,7 @@ }, "getSignature": [ { - "id": 265, + "id": 283, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -353,7 +353,7 @@ ] }, { - "id": 301, + "id": 326, "name": "_closeChannel", "kind": 2048, "kindString": "Method", @@ -363,7 +363,7 @@ }, "signatures": [ { - "id": 302, + "id": 327, "name": "_closeChannel", "kind": 4096, "kindString": "Call signature", @@ -372,7 +372,7 @@ }, "parameters": [ { - "id": 303, + "id": 328, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -400,13 +400,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 180, + "line": 188, "character": 23 } ] }, { - "id": 278, + "id": 299, "name": "_closeSubscription", "kind": 2048, "kindString": "Method", @@ -416,7 +416,7 @@ }, "signatures": [ { - "id": 279, + "id": 300, "name": "_closeSubscription", "kind": 4096, "kindString": "Call signature", @@ -425,7 +425,7 @@ }, "parameters": [ { - "id": 280, + "id": 301, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -453,13 +453,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 126, + "line": 132, "character": 34 } ] }, { - "id": 296, + "id": 321, "name": "_getAuthHeaders", "kind": 2048, "kindString": "Method", @@ -469,7 +469,7 @@ }, "signatures": [ { - "id": 297, + "id": 322, "name": "_getAuthHeaders", "kind": 4096, "kindString": "Call signature", @@ -479,7 +479,7 @@ "type": { "type": "reflection", "declaration": { - "id": 298, + "id": 323, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -488,7 +488,7 @@ }, "indexSignature": [ { - "id": 299, + "id": 324, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -497,7 +497,7 @@ }, "parameters": [ { - "id": 300, + "id": 325, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -519,7 +519,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 172, + "line": 180, "character": 28 } ] @@ -530,13 +530,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 172, + "line": 180, "character": 25 } ] }, { - "id": 294, + "id": 319, "name": "_initPostgRESTClient", "kind": 2048, "kindString": "Method", @@ -546,7 +546,7 @@ }, "signatures": [ { - "id": 295, + "id": 320, "name": "_initPostgRESTClient", "kind": 4096, "kindString": "Call signature", @@ -562,13 +562,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 165, + "line": 173, "character": 30 } ] }, { - "id": 291, + "id": 316, "name": "_initRealtimeClient", "kind": 2048, "kindString": "Method", @@ -578,7 +578,7 @@ }, "signatures": [ { - "id": 292, + "id": 317, "name": "_initRealtimeClient", "kind": 4096, "kindString": "Call signature", @@ -587,7 +587,7 @@ }, "parameters": [ { - "id": 293, + "id": 318, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -610,13 +610,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 158, + "line": 166, "character": 29 } ] }, { - "id": 283, + "id": 304, "name": "_initSupabaseAuthClient", "kind": 2048, "kindString": "Method", @@ -626,7 +626,7 @@ }, "signatures": [ { - "id": 284, + "id": 305, "name": "_initSupabaseAuthClient", "kind": 4096, "kindString": "Call signature", @@ -635,7 +635,7 @@ }, "parameters": [ { - "id": 285, + "id": 306, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -646,7 +646,7 @@ "type": { "type": "reflection", "declaration": { - "id": 286, + "id": 307, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -655,7 +655,7 @@ }, "children": [ { - "id": 287, + "id": 308, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -665,7 +665,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 140, + "line": 146, "character": 20 } ], @@ -688,7 +688,7 @@ } }, { - "id": 289, + "id": 310, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -698,7 +698,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 142, + "line": 148, "character": 22 } ], @@ -721,7 +721,74 @@ } }, { - "id": 290, + "id": 312, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 150, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 313, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 314, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 315, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 311, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -731,7 +798,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 143, + "line": 149, "character": 16 } ], @@ -750,7 +817,7 @@ } }, { - "id": 288, + "id": 309, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -760,7 +827,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 141, + "line": 147, "character": 18 } ], @@ -788,17 +855,18 @@ "title": "Variables", "kind": 32, "children": [ - 287, - 289, - 290, - 288 + 308, + 310, + 312, + 311, + 309 ] } ], "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 139, + "line": 145, "character": 34 } ] @@ -808,7 +876,7 @@ ], "type": { "type": "reference", - "id": 28, + "id": 30, "name": "SupabaseAuthClient" } } @@ -816,13 +884,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 139, + "line": 145, "character": 33 } ] }, { - "id": 266, + "id": 284, "name": "from", "kind": 2048, "kindString": "Method", @@ -831,7 +899,7 @@ }, "signatures": [ { - "id": 267, + "id": 285, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -843,7 +911,7 @@ }, "typeParameter": [ { - "id": 268, + "id": 286, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -854,7 +922,7 @@ ], "parameters": [ { - "id": 269, + "id": 287, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -872,7 +940,7 @@ ], "type": { "type": "reference", - "id": 158, + "id": 176, "typeArguments": [ { "type": "typeParameter", @@ -896,7 +964,7 @@ ] }, { - "id": 281, + "id": 302, "name": "getSubscriptions", "kind": 2048, "kindString": "Method", @@ -905,7 +973,7 @@ }, "signatures": [ { - "id": 282, + "id": 303, "name": "getSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -927,13 +995,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 135, + "line": 141, "character": 18 } ] }, { - "id": 275, + "id": 296, "name": "removeSubscription", "kind": 2048, "kindString": "Method", @@ -942,7 +1010,7 @@ }, "signatures": [ { - "id": 276, + "id": 297, "name": "removeSubscription", "kind": 4096, "kindString": "Call signature", @@ -954,7 +1022,7 @@ }, "parameters": [ { - "id": 277, + "id": 298, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -985,13 +1053,13 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 109, + "line": 115, "character": 20 } ] }, { - "id": 270, + "id": 288, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -1000,7 +1068,7 @@ }, "signatures": [ { - "id": 271, + "id": 289, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -1008,11 +1076,11 @@ "isExported": true }, "comment": { - "shortText": "Perform a stored procedure call." + "shortText": "Perform a function call." }, "typeParameter": [ { - "id": 272, + "id": 290, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -1023,7 +1091,7 @@ ], "parameters": [ { - "id": 273, + "id": 291, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -1039,7 +1107,7 @@ } }, { - "id": 274, + "id": 292, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -1048,7 +1116,7 @@ "isOptional": true }, "comment": { - "text": "The parameters to pass to the function call.\n" + "text": "The parameters to pass to the function call." }, "type": { "type": "union", @@ -1063,6 +1131,88 @@ } ] } + }, + { + "id": 293, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__2", + "type": { + "type": "reflection", + "declaration": { + "id": 294, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 295, + "name": "count", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "Count algorithm to use to count rows in a table.\n\n" + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 104, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "stringLiteral", + "value": "exact" + }, + { + "type": "stringLiteral", + "value": "planned" + }, + { + "type": "stringLiteral", + "value": "estimated" + } + ] + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 295 + ] + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 103, + "character": 20 + } + ] + } + }, + "defaultValue": "{}" } ], "type": { @@ -1080,7 +1230,7 @@ "sources": [ { "fileName": "src/SupabaseClient.ts", - "line": 99, + "line": 101, "character": 5 } ] @@ -1091,45 +1241,45 @@ "title": "Constructors", "kind": 512, "children": [ - 257 + 275 ] }, { "title": "Properties", "kind": 1024, "children": [ - 250, - 254, - 256, - 253, - 252, - 251, - 255, - 259, - 258 + 268, + 272, + 274, + 271, + 270, + 269, + 273, + 277, + 276 ] }, { "title": "Accessors", "kind": 262144, "children": [ - 264 + 282 ] }, { "title": "Methods", "kind": 2048, "children": [ - 301, - 278, + 326, + 299, + 321, + 319, + 316, + 304, + 284, + 302, 296, - 294, - 291, - 283, - 266, - 281, - 275, - 270 + 288 ] } ], @@ -1142,7 +1292,7 @@ ] }, { - "id": 304, + "id": 329, "name": "DEFAULT_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -1151,7 +1301,7 @@ }, "children": [ { - "id": 306, + "id": 331, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -1170,7 +1320,7 @@ "defaultValue": "true" }, { - "id": 308, + "id": 333, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -1189,7 +1339,7 @@ "defaultValue": "true" }, { - "id": 310, + "id": 335, "name": "headers", "kind": 32, "kindString": "Variable", @@ -1204,17 +1354,47 @@ "type": { "type": "reflection", "declaration": { - "id": 311, + "id": 336, "name": "__type", "kind": 65536, "kindString": "Type literal", - "flags": {} + "flags": {}, + "children": [ + { + "id": 337, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 3, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`supabase-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 337 + ] + } + ] } }, "defaultValue": "DEFAULT_HEADERS" }, { - "id": 309, + "id": 334, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -1233,7 +1413,7 @@ "defaultValue": "globalThis.localStorage" }, { - "id": 307, + "id": 332, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -1252,7 +1432,7 @@ "defaultValue": "true" }, { - "id": 305, + "id": 330, "name": "schema", "kind": 32, "kindString": "Variable", @@ -1276,12 +1456,12 @@ "title": "Variables", "kind": 32, "children": [ - 306, - 308, - 310, - 309, - 307, - 305 + 331, + 333, + 335, + 334, + 332, + 330 ] } ], @@ -1303,14 +1483,14 @@ "title": "Classes", "kind": 128, "children": [ - 249 + 267 ] }, { "title": "Object literals", "kind": 2097152, "children": [ - 304 + 329 ] } ], @@ -1323,7 +1503,7 @@ ] }, { - "id": 312, + "id": 338, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -1333,7 +1513,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts", "children": [ { - "id": 313, + "id": 339, "name": "createClient", "kind": 64, "kindString": "Function", @@ -1346,7 +1526,7 @@ }, "signatures": [ { - "id": 314, + "id": 340, "name": "createClient", "kind": 4096, "kindString": "Call signature", @@ -1358,7 +1538,7 @@ }, "parameters": [ { - "id": 315, + "id": 341, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -1371,7 +1551,7 @@ } }, { - "id": 316, + "id": 342, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -1384,7 +1564,7 @@ } }, { - "id": 317, + "id": 343, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1394,14 +1574,14 @@ }, "type": { "type": "reference", - "id": 5, + "id": 7, "name": "SupabaseClientOptions" } } ], "type": { "type": "reference", - "id": 249, + "id": 267, "name": "SupabaseClient" } } @@ -1420,7 +1600,7 @@ "title": "Functions", "kind": 64, "children": [ - 313 + 339 ] } ], @@ -1433,7 +1613,7 @@ ] }, { - "id": 27, + "id": 29, "name": "\"lib/SupabaseAuthClient\"", "kind": 1, "kindString": "Module", @@ -1443,7 +1623,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseAuthClient.ts", "children": [ { - "id": 28, + "id": 30, "name": "SupabaseAuthClient", "kind": 128, "kindString": "Class", @@ -1452,7 +1632,7 @@ }, "children": [ { - "id": 29, + "id": 31, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -1461,7 +1641,7 @@ }, "signatures": [ { - "id": 30, + "id": 32, "name": "new SupabaseAuthClient", "kind": 16384, "kindString": "Constructor signature", @@ -1470,7 +1650,7 @@ }, "parameters": [ { - "id": 31, + "id": 33, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1480,7 +1660,7 @@ "type": { "type": "reflection", "declaration": { - "id": 32, + "id": 34, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1489,7 +1669,7 @@ }, "children": [ { - "id": 39, + "id": 41, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -1523,7 +1703,7 @@ } }, { - "id": 38, + "id": 40, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -1557,7 +1737,7 @@ } }, { - "id": 34, + "id": 36, "name": "headers", "kind": 32, "kindString": "Variable", @@ -1582,7 +1762,7 @@ { "type": "reflection", "declaration": { - "id": 35, + "id": 37, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1591,7 +1771,7 @@ }, "indexSignature": [ { - "id": 36, + "id": 38, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -1600,7 +1780,7 @@ }, "parameters": [ { - "id": 37, + "id": 39, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -1625,7 +1805,7 @@ } }, { - "id": 41, + "id": 43, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -1646,7 +1826,7 @@ } }, { - "id": 40, + "id": 42, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -1680,7 +1860,7 @@ } }, { - "id": 33, + "id": 35, "name": "url", "kind": 32, "kindString": "Variable", @@ -1715,12 +1895,12 @@ "title": "Variables", "kind": 32, "children": [ - 39, - 38, - 34, 41, 40, - 33 + 36, + 43, + 42, + 35 ] } ], @@ -1737,7 +1917,7 @@ ], "type": { "type": "reference", - "id": 28, + "id": 30, "name": "SupabaseAuthClient" }, "overwrites": { @@ -1759,7 +1939,7 @@ } }, { - "id": 42, + "id": 44, "name": "api", "kind": 1024, "kindString": "Property", @@ -1782,12 +1962,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 42, + "id": 44, "name": "GoTrueClient.api" } }, { - "id": 45, + "id": 47, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -1808,12 +1988,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 45, + "id": 47, "name": "GoTrueClient.autoRefreshToken" } }, { - "id": 44, + "id": 46, "name": "currentSession", "kind": 1024, "kindString": "Property", @@ -1846,12 +2026,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 44, + "id": 46, "name": "GoTrueClient.currentSession" } }, { - "id": 43, + "id": 45, "name": "currentUser", "kind": 1024, "kindString": "Property", @@ -1884,12 +2064,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 43, + "id": 45, "name": "GoTrueClient.currentUser" } }, { - "id": 47, + "id": 49, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -1910,12 +2090,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 47, + "id": 49, "name": "GoTrueClient.localStorage" } }, { - "id": 46, + "id": 48, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -1936,12 +2116,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 46, + "id": 48, "name": "GoTrueClient.persistSession" } }, { - "id": 49, + "id": 51, "name": "refreshTokenTimer", "kind": 1024, "kindString": "Property", @@ -1972,12 +2152,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 49, + "id": 51, "name": "GoTrueClient.refreshTokenTimer" } }, { - "id": 48, + "id": 50, "name": "stateChangeEmitters", "kind": 1024, "kindString": "Property", @@ -2008,12 +2188,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 48, + "id": 50, "name": "GoTrueClient.stateChangeEmitters" } }, { - "id": 109, + "id": 127, "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", @@ -2022,7 +2202,7 @@ }, "signatures": [ { - "id": 110, + "id": 128, "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", @@ -2034,7 +2214,7 @@ }, "parameters": [ { - "id": 111, + "id": 129, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -2052,7 +2232,7 @@ { "type": "reflection", "declaration": { - "id": 112, + "id": 130, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2061,7 +2241,7 @@ }, "children": [ { - "id": 113, + "id": 131, "name": "storeSession", "kind": 32, "kindString": "Variable", @@ -2075,7 +2255,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 122, + "line": 137, "character": 20 } ], @@ -2103,7 +2283,7 @@ "title": "Variables", "kind": 32, "children": [ - 113 + 131 ] } ] @@ -2119,7 +2299,7 @@ { "type": "reflection", "declaration": { - "id": 114, + "id": 132, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2128,7 +2308,7 @@ }, "children": [ { - "id": 115, + "id": 133, "name": "data", "kind": 32, "kindString": "Variable", @@ -2138,7 +2318,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 124, + "line": 139, "character": 12 } ], @@ -2157,7 +2337,7 @@ } }, { - "id": 116, + "id": 134, "name": "error", "kind": 32, "kindString": "Variable", @@ -2167,7 +2347,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 125, + "line": 140, "character": 13 } ], @@ -2191,15 +2371,15 @@ "title": "Variables", "kind": 32, "children": [ - 115, - 116 + 133, + 134 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 123, + "line": 138, "character": 16 } ] @@ -2210,7 +2390,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 109, + "id": 127, "name": "GoTrueClient.getSessionFromUrl" } } @@ -2218,18 +2398,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 121, + "line": 136, "character": 21 } ], "inheritedFrom": { "type": "reference", - "id": 109, + "id": 127, "name": "GoTrueClient.getSessionFromUrl" } }, { - "id": 121, + "id": 139, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -2238,7 +2418,7 @@ }, "signatures": [ { - "id": 122, + "id": 140, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -2251,7 +2431,7 @@ }, "parameters": [ { - "id": 123, + "id": 141, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -2261,7 +2441,7 @@ "type": { "type": "reflection", "declaration": { - "id": 124, + "id": 142, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2270,7 +2450,7 @@ }, "signatures": [ { - "id": 125, + "id": 143, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -2279,7 +2459,7 @@ }, "parameters": [ { - "id": 126, + "id": 144, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -2292,7 +2472,7 @@ } }, { - "id": 127, + "id": 145, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -2323,7 +2503,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 140, + "line": 155, "character": 31 } ] @@ -2334,7 +2514,7 @@ "type": { "type": "reflection", "declaration": { - "id": 128, + "id": 146, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2343,7 +2523,7 @@ }, "children": [ { - "id": 129, + "id": 147, "name": "data", "kind": 32, "kindString": "Variable", @@ -2353,7 +2533,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 141, + "line": 156, "character": 12 } ], @@ -2372,7 +2552,7 @@ } }, { - "id": 130, + "id": 148, "name": "error", "kind": 32, "kindString": "Variable", @@ -2382,7 +2562,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 142, + "line": 157, "character": 13 } ], @@ -2406,15 +2586,15 @@ "title": "Variables", "kind": 32, "children": [ - 129, - 130 + 147, + 148 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 140, + "line": 155, "character": 91 } ] @@ -2422,7 +2602,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 121, + "id": 139, "name": "GoTrueClient.onAuthStateChange" } } @@ -2430,18 +2610,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 140, + "line": 155, "character": 21 } ], "inheritedFrom": { "type": "reference", - "id": 121, + "id": 139, "name": "GoTrueClient.onAuthStateChange" } }, { - "id": 87, + "id": 105, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -2450,7 +2630,7 @@ }, "signatures": [ { - "id": 88, + "id": 106, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -2466,7 +2646,7 @@ { "type": "reflection", "declaration": { - "id": 89, + "id": 107, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2475,7 +2655,7 @@ }, "children": [ { - "id": 90, + "id": 108, "name": "data", "kind": 32, "kindString": "Variable", @@ -2485,7 +2665,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 92, + "line": 107, "character": 12 } ], @@ -2504,7 +2684,7 @@ } }, { - "id": 92, + "id": 110, "name": "error", "kind": 32, "kindString": "Variable", @@ -2514,7 +2694,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 94, + "line": 109, "character": 13 } ], @@ -2533,7 +2713,7 @@ } }, { - "id": 91, + "id": 109, "name": "user", "kind": 32, "kindString": "Variable", @@ -2543,7 +2723,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 93, + "line": 108, "character": 12 } ], @@ -2567,16 +2747,16 @@ "title": "Variables", "kind": 32, "children": [ - 90, - 92, - 91 + 108, + 110, + 109 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 91, + "line": 106, "character": 30 } ] @@ -2587,7 +2767,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 87, + "id": 105, "name": "GoTrueClient.refreshSession" } } @@ -2595,18 +2775,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 91, + "line": 106, "character": 18 } ], "inheritedFrom": { "type": "reference", - "id": 87, + "id": 105, "name": "GoTrueClient.refreshSession" } }, { - "id": 85, + "id": 103, "name": "session", "kind": 2048, "kindString": "Method", @@ -2615,7 +2795,7 @@ }, "signatures": [ { - "id": 86, + "id": 104, "name": "session", "kind": 4096, "kindString": "Call signature", @@ -2640,7 +2820,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 85, + "id": 103, "name": "GoTrueClient.session" } } @@ -2648,18 +2828,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 87, + "line": 102, "character": 11 } ], "inheritedFrom": { "type": "reference", - "id": 85, + "id": 103, "name": "GoTrueClient.session" } }, { - "id": 106, + "id": 124, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -2668,7 +2848,7 @@ }, "signatures": [ { - "id": 107, + "id": 125, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -2680,7 +2860,7 @@ }, "parameters": [ { - "id": 108, + "id": 126, "name": "access_token", "kind": 32768, "kindString": "Parameter", @@ -2702,7 +2882,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 106, + "id": 124, "name": "GoTrueClient.setAuth" } } @@ -2710,18 +2890,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 116, + "line": 131, "character": 11 } ], "inheritedFrom": { "type": "reference", - "id": 106, + "id": 124, "name": "GoTrueClient.setAuth" } }, { - "id": 100, + "id": 118, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -2730,7 +2910,7 @@ }, "signatures": [ { - "id": 101, + "id": 119, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -2742,7 +2922,7 @@ }, "parameters": [ { - "id": 102, + "id": 120, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -2764,7 +2944,7 @@ { "type": "reflection", "declaration": { - "id": 103, + "id": 121, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2773,7 +2953,7 @@ }, "children": [ { - "id": 105, + "id": 123, "name": "error", "kind": 32, "kindString": "Variable", @@ -2783,7 +2963,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 110, + "line": 125, "character": 13 } ], @@ -2802,7 +2982,7 @@ } }, { - "id": 104, + "id": 122, "name": "session", "kind": 32, "kindString": "Variable", @@ -2812,7 +2992,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 109, + "line": 124, "character": 15 } ], @@ -2836,15 +3016,15 @@ "title": "Variables", "kind": 32, "children": [ - 105, - 104 + 123, + 122 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 108, + "line": 123, "character": 47 } ] @@ -2855,7 +3035,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 100, + "id": 118, "name": "GoTrueClient.setSession" } } @@ -2863,18 +3043,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 108, + "line": 123, "character": 14 } ], "inheritedFrom": { "type": "reference", - "id": 100, + "id": 118, "name": "GoTrueClient.setSession" } }, { - "id": 64, + "id": 67, "name": "signIn", "kind": 2048, "kindString": "Method", @@ -2883,7 +3063,7 @@ }, "signatures": [ { - "id": 65, + "id": 68, "name": "signIn", "kind": 4096, "kindString": "Call signature", @@ -2895,7 +3075,7 @@ }, "parameters": [ { - "id": 66, + "id": 69, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -2906,7 +3086,7 @@ "type": { "type": "reflection", "declaration": { - "id": 67, + "id": 70, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2915,7 +3095,7 @@ }, "children": [ { - "id": 68, + "id": 71, "name": "email", "kind": 32, "kindString": "Variable", @@ -2928,7 +3108,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, + "line": 68, "character": 18 } ], @@ -2947,7 +3127,7 @@ } }, { - "id": 69, + "id": 73, "name": "password", "kind": 32, "kindString": "Variable", @@ -2960,8 +3140,8 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, - "character": 28 + "line": 68, + "character": 35 } ], "type": { @@ -2979,7 +3159,36 @@ } }, { - "id": 71, + "id": 72, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 68, + "character": 25 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 75, "name": "provider", "kind": 32, "kindString": "Variable", @@ -2992,8 +3201,8 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, - "character": 52 + "line": 68, + "character": 59 } ], "type": { @@ -3038,12 +3247,16 @@ { "type": "stringLiteral", "value": "discord" + }, + { + "type": "stringLiteral", + "value": "twitch" } ] } }, { - "id": 70, + "id": 74, "name": "refreshToken", "kind": 32, "kindString": "Variable", @@ -3056,8 +3269,8 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, - "character": 42 + "line": 68, + "character": 49 } ], "type": { @@ -3080,17 +3293,18 @@ "title": "Variables", "kind": 32, "children": [ - 68, - 69, 71, - 70 + 73, + 72, + 75, + 74 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, + "line": 68, "character": 11 } ] @@ -3098,7 +3312,7 @@ } }, { - "id": 72, + "id": 76, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -3116,7 +3330,7 @@ { "type": "reflection", "declaration": { - "id": 73, + "id": 77, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3125,7 +3339,7 @@ }, "children": [ { - "id": 74, + "id": 78, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -3136,7 +3350,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 68, + "line": 69, "character": 18 } ], @@ -3155,7 +3369,7 @@ } }, { - "id": 75, + "id": 79, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -3166,7 +3380,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 69, + "line": 70, "character": 14 } ], @@ -3190,8 +3404,8 @@ "title": "Variables", "kind": 32, "children": [ - 74, - 75 + 78, + 79 ] } ] @@ -3207,7 +3421,7 @@ { "type": "reflection", "declaration": { - "id": 76, + "id": 80, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3216,7 +3430,7 @@ }, "children": [ { - "id": 82, + "id": 86, "name": "data", "kind": 32, "kindString": "Variable", @@ -3226,7 +3440,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 76, + "line": 77, "character": 12 } ], @@ -3245,7 +3459,7 @@ } }, { - "id": 81, + "id": 85, "name": "error", "kind": 32, "kindString": "Variable", @@ -3255,7 +3469,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 75, + "line": 76, "character": 13 } ], @@ -3274,7 +3488,7 @@ } }, { - "id": 79, + "id": 83, "name": "provider", "kind": 32, "kindString": "Variable", @@ -3285,7 +3499,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 73, + "line": 74, "character": 16 } ], @@ -3295,7 +3509,7 @@ } }, { - "id": 77, + "id": 81, "name": "session", "kind": 32, "kindString": "Variable", @@ -3305,7 +3519,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 71, + "line": 72, "character": 15 } ], @@ -3324,7 +3538,7 @@ } }, { - "id": 80, + "id": 84, "name": "url", "kind": 32, "kindString": "Variable", @@ -3335,7 +3549,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 74, + "line": 75, "character": 11 } ], @@ -3354,7 +3568,7 @@ } }, { - "id": 78, + "id": 82, "name": "user", "kind": 32, "kindString": "Variable", @@ -3364,7 +3578,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 72, + "line": 73, "character": 12 } ], @@ -3388,19 +3602,19 @@ "title": "Variables", "kind": 32, "children": [ - 82, + 86, + 85, + 83, 81, - 79, - 77, - 80, - 78 + 84, + 82 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 70, + "line": 71, "character": 16 } ] @@ -3411,7 +3625,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 64, + "id": 67, "name": "GoTrueClient.signIn" } } @@ -3419,18 +3633,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, + "line": 68, "character": 10 } ], "inheritedFrom": { "type": "reference", - "id": 64, + "id": 67, "name": "GoTrueClient.signIn" } }, { - "id": 117, + "id": 135, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -3439,7 +3653,7 @@ }, "signatures": [ { - "id": 118, + "id": 136, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -3456,7 +3670,7 @@ { "type": "reflection", "declaration": { - "id": 119, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3465,7 +3679,7 @@ }, "children": [ { - "id": 120, + "id": 138, "name": "error", "kind": 32, "kindString": "Variable", @@ -3475,7 +3689,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 134, + "line": 149, "character": 13 } ], @@ -3499,14 +3713,14 @@ "title": "Variables", "kind": 32, "children": [ - 120 + 138 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 133, + "line": 148, "character": 23 } ] @@ -3517,7 +3731,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 117, + "id": 135, "name": "GoTrueClient.signOut" } } @@ -3525,18 +3739,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 133, + "line": 148, "character": 11 } ], "inheritedFrom": { "type": "reference", - "id": 117, + "id": 135, "name": "GoTrueClient.signOut" } }, { - "id": 50, + "id": 52, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -3545,7 +3759,7 @@ }, "signatures": [ { - "id": 51, + "id": 53, "name": "signUp", "kind": 4096, "kindString": "Call signature", @@ -3557,7 +3771,7 @@ }, "parameters": [ { - "id": 52, + "id": 54, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -3568,7 +3782,7 @@ "type": { "type": "reflection", "declaration": { - "id": 53, + "id": 55, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3577,7 +3791,7 @@ }, "children": [ { - "id": 54, + "id": 56, "name": "email", "kind": 32, "kindString": "Variable", @@ -3590,7 +3804,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, + "line": 50, "character": 18 } ], @@ -3609,7 +3823,7 @@ } }, { - "id": 55, + "id": 57, "name": "password", "kind": 32, "kindString": "Variable", @@ -3622,7 +3836,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, + "line": 50, "character": 28 } ], @@ -3639,6 +3853,38 @@ } ] } + }, + { + "id": 58, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 50, + "character": 35 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } } ], "groups": [ @@ -3646,15 +3892,16 @@ "title": "Variables", "kind": 32, "children": [ - 54, - 55 + 56, + 57, + 58 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, + "line": 50, "character": 11 } ] @@ -3662,7 +3909,7 @@ } }, { - "id": 56, + "id": 59, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -3680,7 +3927,7 @@ { "type": "reflection", "declaration": { - "id": 57, + "id": 60, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3689,7 +3936,7 @@ }, "children": [ { - "id": 58, + "id": 61, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -3700,7 +3947,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 50, + "line": 51, "character": 18 } ], @@ -3724,7 +3971,7 @@ "title": "Variables", "kind": 32, "children": [ - 58 + 61 ] } ] @@ -3740,7 +3987,7 @@ { "type": "reflection", "declaration": { - "id": 59, + "id": 62, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3749,7 +3996,7 @@ }, "children": [ { - "id": 63, + "id": 66, "name": "data", "kind": 32, "kindString": "Variable", @@ -3759,7 +4006,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 55, + "line": 56, "character": 12 } ], @@ -3782,7 +4029,7 @@ } }, { - "id": 62, + "id": 65, "name": "error", "kind": 32, "kindString": "Variable", @@ -3792,7 +4039,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 54, + "line": 55, "character": 13 } ], @@ -3811,7 +4058,7 @@ } }, { - "id": 61, + "id": 64, "name": "session", "kind": 32, "kindString": "Variable", @@ -3821,7 +4068,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 53, + "line": 54, "character": 15 } ], @@ -3840,7 +4087,7 @@ } }, { - "id": 60, + "id": 63, "name": "user", "kind": 32, "kindString": "Variable", @@ -3850,7 +4097,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 52, + "line": 53, "character": 12 } ], @@ -3874,17 +4121,17 @@ "title": "Variables", "kind": 32, "children": [ - 63, - 62, - 61, - 60 + 66, + 65, + 64, + 63 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 51, + "line": 52, "character": 16 } ] @@ -3895,7 +4142,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 50, + "id": 52, "name": "GoTrueClient.signUp" } } @@ -3903,18 +4150,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, + "line": 50, "character": 10 } ], "inheritedFrom": { "type": "reference", - "id": 50, + "id": 52, "name": "GoTrueClient.signUp" } }, { - "id": 93, + "id": 111, "name": "update", "kind": 2048, "kindString": "Method", @@ -3923,7 +4170,7 @@ }, "signatures": [ { - "id": 94, + "id": 112, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -3935,7 +4182,7 @@ }, "parameters": [ { - "id": 95, + "id": 113, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -3954,7 +4201,7 @@ { "type": "reflection", "declaration": { - "id": 96, + "id": 114, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3963,7 +4210,7 @@ }, "children": [ { - "id": 97, + "id": 115, "name": "data", "kind": 32, "kindString": "Variable", @@ -3973,7 +4220,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 100, + "line": 115, "character": 12 } ], @@ -3992,7 +4239,7 @@ } }, { - "id": 99, + "id": 117, "name": "error", "kind": 32, "kindString": "Variable", @@ -4002,7 +4249,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 102, + "line": 117, "character": 13 } ], @@ -4021,7 +4268,7 @@ } }, { - "id": 98, + "id": 116, "name": "user", "kind": 32, "kindString": "Variable", @@ -4031,7 +4278,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 101, + "line": 116, "character": 12 } ], @@ -4055,16 +4302,16 @@ "title": "Variables", "kind": 32, "children": [ - 97, - 99, - 98 + 115, + 117, + 116 ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 99, + "line": 114, "character": 48 } ] @@ -4075,7 +4322,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 93, + "id": 111, "name": "GoTrueClient.update" } } @@ -4083,18 +4330,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 99, + "line": 114, "character": 10 } ], "inheritedFrom": { "type": "reference", - "id": 93, + "id": 111, "name": "GoTrueClient.update" } }, { - "id": 83, + "id": 101, "name": "user", "kind": 2048, "kindString": "Method", @@ -4103,7 +4350,7 @@ }, "signatures": [ { - "id": 84, + "id": 102, "name": "user", "kind": 4096, "kindString": "Call signature", @@ -4129,7 +4376,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 83, + "id": 101, "name": "GoTrueClient.user" } } @@ -4137,15 +4384,375 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 83, + "line": 98, "character": 8 } ], "inheritedFrom": { "type": "reference", - "id": 83, + "id": 101, "name": "GoTrueClient.user" } + }, + { + "id": 87, + "name": "verifyOTP", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 88, + "name": "verifyOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Log in a user given a User supplied OTP received via mobile." + }, + "parameters": [ + { + "id": 89, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 90, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 91, + "name": "phone", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's phone number." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 85, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 92, + "name": "token", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's password." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 85, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 91, + 92 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 85, + "character": 14 + } + ] + } + } + }, + { + "id": 93, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 94, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 95, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 86, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 95 + ] + } + ] + } + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 96, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 100, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 91, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 99, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 90, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 98, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 89, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 97, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 88, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 100, + 99, + 98, + 97 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 87, + "character": 16 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 87, + "name": "GoTrueClient.verifyOTP" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 85, + "character": 13 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 87, + "name": "GoTrueClient.verifyOTP" + } } ], "groups": [ @@ -4153,38 +4760,39 @@ "title": "Constructors", "kind": 512, "children": [ - 29 + 31 ] }, { "title": "Properties", "kind": 1024, "children": [ - 42, - 45, 44, - 43, 47, 46, + 45, 49, - 48 + 48, + 51, + 50 ] }, { "title": "Methods", "kind": 2048, "children": [ - 109, - 121, - 87, - 85, - 106, - 100, - 64, - 117, - 50, - 93, - 83 + 127, + 139, + 105, + 103, + 124, + 118, + 67, + 135, + 52, + 111, + 101, + 87 ] } ], @@ -4208,7 +4816,7 @@ "title": "Classes", "kind": 128, "children": [ - 28 + 30 ] } ], @@ -4221,7 +4829,7 @@ ] }, { - "id": 157, + "id": 175, "name": "\"lib/SupabaseQueryBuilder\"", "kind": 1, "kindString": "Module", @@ -4231,7 +4839,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts", "children": [ { - "id": 158, + "id": 176, "name": "SupabaseQueryBuilder", "kind": 128, "kindString": "Class", @@ -4240,7 +4848,7 @@ }, "typeParameter": [ { - "id": 159, + "id": 177, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -4251,7 +4859,7 @@ ], "children": [ { - "id": 162, + "id": 180, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -4260,7 +4868,7 @@ }, "signatures": [ { - "id": 163, + "id": 181, "name": "new SupabaseQueryBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -4269,7 +4877,7 @@ }, "parameters": [ { - "id": 164, + "id": 182, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -4282,7 +4890,7 @@ } }, { - "id": 165, + "id": 183, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -4293,7 +4901,7 @@ "type": { "type": "reflection", "declaration": { - "id": 166, + "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4302,7 +4910,7 @@ }, "children": [ { - "id": 167, + "id": 185, "name": "headers", "kind": 32, "kindString": "Variable", @@ -4319,7 +4927,7 @@ "type": { "type": "reflection", "declaration": { - "id": 168, + "id": 186, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4328,7 +4936,7 @@ }, "indexSignature": [ { - "id": 169, + "id": 187, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -4337,7 +4945,7 @@ }, "parameters": [ { - "id": 170, + "id": 188, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -4360,7 +4968,7 @@ } }, { - "id": 172, + "id": 190, "name": "realtime", "kind": 32, "kindString": "Variable", @@ -4380,7 +4988,7 @@ } }, { - "id": 171, + "id": 189, "name": "schema", "kind": 32, "kindString": "Variable", @@ -4400,7 +5008,7 @@ } }, { - "id": 173, + "id": 191, "name": "table", "kind": 32, "kindString": "Variable", @@ -4425,10 +5033,10 @@ "title": "Variables", "kind": 32, "children": [ - 167, - 172, - 171, - 173 + 185, + 190, + 189, + 191 ] } ], @@ -4445,7 +5053,7 @@ ], "type": { "type": "reference", - "id": 158, + "id": 176, "name": "SupabaseQueryBuilder" }, "overwrites": { @@ -4467,7 +5075,7 @@ } }, { - "id": 161, + "id": 179, "name": "_realtime", "kind": 1024, "kindString": "Property", @@ -4488,7 +5096,7 @@ } }, { - "id": 160, + "id": 178, "name": "_subscription", "kind": 1024, "kindString": "Property", @@ -4505,12 +5113,12 @@ ], "type": { "type": "reference", - "id": 132, + "id": 150, "name": "SupabaseRealtimeClient" } }, { - "id": 232, + "id": 250, "name": "body", "kind": 1024, "kindString": "Property", @@ -4556,12 +5164,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 232, + "id": 250, "name": "PostgrestBuilder.body" } }, { - "id": 227, + "id": 245, "name": "headers", "kind": 1024, "kindString": "Property", @@ -4579,7 +5187,7 @@ "type": { "type": "reflection", "declaration": { - "id": 228, + "id": 246, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4588,7 +5196,7 @@ }, "indexSignature": [ { - "id": 229, + "id": 247, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -4597,7 +5205,7 @@ }, "parameters": [ { - "id": 230, + "id": 248, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -4627,12 +5235,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 227, + "id": 245, "name": "PostgrestBuilder.headers" } }, { - "id": 225, + "id": 243, "name": "method", "kind": 1024, "kindString": "Property", @@ -4674,12 +5282,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 225, + "id": 243, "name": "PostgrestBuilder.method" } }, { - "id": 231, + "id": 249, "name": "schema", "kind": 1024, "kindString": "Property", @@ -4710,12 +5318,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 231, + "id": 249, "name": "PostgrestBuilder.schema" } }, { - "id": 233, + "id": 251, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -4750,12 +5358,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 233, + "id": 251, "name": "PostgrestBuilder.shouldThrowOnError" } }, { - "id": 226, + "id": 244, "name": "url", "kind": 1024, "kindString": "Property", @@ -4776,12 +5384,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 226, + "id": 244, "name": "PostgrestBuilder.url" } }, { - "id": 219, + "id": 237, "name": "delete", "kind": 2048, "kindString": "Method", @@ -4790,7 +5398,7 @@ }, "signatures": [ { - "id": 220, + "id": 238, "name": "delete", "kind": 4096, "kindString": "Call signature", @@ -4802,7 +5410,7 @@ }, "parameters": [ { - "id": 221, + "id": 239, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -4814,7 +5422,7 @@ "type": { "type": "reflection", "declaration": { - "id": 222, + "id": 240, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4823,7 +5431,7 @@ }, "children": [ { - "id": 224, + "id": 242, "name": "count", "kind": 32, "kindString": "Variable", @@ -4867,7 +5475,7 @@ } }, { - "id": 223, + "id": 241, "name": "returning", "kind": 32, "kindString": "Variable", @@ -4908,8 +5516,8 @@ "title": "Variables", "kind": 32, "children": [ - 224, - 223 + 242, + 241 ] } ], @@ -4936,7 +5544,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 219, + "id": 237, "name": "PostgrestQueryBuilder.delete" } } @@ -4950,12 +5558,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 219, + "id": 237, "name": "PostgrestQueryBuilder.delete" } }, { - "id": 188, + "id": 206, "name": "insert", "kind": 2048, "kindString": "Method", @@ -4964,7 +5572,7 @@ }, "signatures": [ { - "id": 189, + "id": 207, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -4976,7 +5584,7 @@ }, "parameters": [ { - "id": 190, + "id": 208, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -5016,7 +5624,7 @@ } }, { - "id": 191, + "id": 209, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5034,7 +5642,7 @@ { "type": "reflection", "declaration": { - "id": 192, + "id": 210, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5043,7 +5651,7 @@ }, "children": [ { - "id": 194, + "id": 212, "name": "count", "kind": 32, "kindString": "Variable", @@ -5081,7 +5689,7 @@ } }, { - "id": 193, + "id": 211, "name": "returning", "kind": 32, "kindString": "Variable", @@ -5116,8 +5724,8 @@ "title": "Variables", "kind": 32, "children": [ - 194, - 193 + 212, + 211 ] } ] @@ -5139,12 +5747,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 188, + "id": 206, "name": "PostgrestQueryBuilder.insert" } }, { - "id": 195, + "id": 213, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -5161,7 +5769,7 @@ }, "parameters": [ { - "id": 196, + "id": 214, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -5198,7 +5806,7 @@ } }, { - "id": 197, + "id": 215, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5216,7 +5824,7 @@ { "type": "reflection", "declaration": { - "id": 198, + "id": 216, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5225,7 +5833,7 @@ }, "children": [ { - "id": 202, + "id": 220, "name": "count", "kind": 32, "kindString": "Variable", @@ -5263,7 +5871,7 @@ } }, { - "id": 200, + "id": 218, "name": "onConflict", "kind": 32, "kindString": "Variable", @@ -5293,7 +5901,7 @@ } }, { - "id": 201, + "id": 219, "name": "returning", "kind": 32, "kindString": "Variable", @@ -5323,7 +5931,7 @@ } }, { - "id": 199, + "id": 217, "name": "upsert", "kind": 32, "kindString": "Variable", @@ -5362,10 +5970,10 @@ "title": "Variables", "kind": 32, "children": [ - 202, - 200, - 201, - 199 + 220, + 218, + 219, + 217 ] } ] @@ -5387,7 +5995,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 188, + "id": 206, "name": "PostgrestQueryBuilder.insert" } } @@ -5406,12 +6014,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 188, + "id": 206, "name": "PostgrestQueryBuilder.insert" } }, { - "id": 174, + "id": 192, "name": "on", "kind": 2048, "kindString": "Method", @@ -5420,7 +6028,7 @@ }, "signatures": [ { - "id": 175, + "id": 193, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -5432,7 +6040,7 @@ }, "parameters": [ { - "id": 176, + "id": 194, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -5444,12 +6052,12 @@ }, "type": { "type": "reference", - "id": 26, + "id": 28, "name": "SupabaseEventTypes" } }, { - "id": 177, + "id": 195, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -5462,7 +6070,7 @@ "type": { "type": "reflection", "declaration": { - "id": 178, + "id": 196, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5471,7 +6079,7 @@ }, "signatures": [ { - "id": 179, + "id": 197, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5480,7 +6088,7 @@ }, "parameters": [ { - "id": 180, + "id": 198, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -5489,7 +6097,7 @@ }, "type": { "type": "reference", - "id": 17, + "id": 19, "typeArguments": [ { "type": "typeParameter", @@ -5519,7 +6127,7 @@ ], "type": { "type": "reference", - "id": 132, + "id": 150, "name": "SupabaseRealtimeClient" } } @@ -5533,7 +6141,7 @@ ] }, { - "id": 181, + "id": 199, "name": "select", "kind": 2048, "kindString": "Method", @@ -5542,7 +6150,7 @@ }, "signatures": [ { - "id": 182, + "id": 200, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -5554,7 +6162,7 @@ }, "parameters": [ { - "id": 183, + "id": 201, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -5580,7 +6188,7 @@ } }, { - "id": 184, + "id": 202, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -5592,7 +6200,7 @@ "type": { "type": "reflection", "declaration": { - "id": 185, + "id": 203, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5601,7 +6209,7 @@ }, "children": [ { - "id": 187, + "id": 205, "name": "count", "kind": 32, "kindString": "Variable", @@ -5645,7 +6253,7 @@ } }, { - "id": 186, + "id": 204, "name": "head", "kind": 32, "kindString": "Variable", @@ -5686,8 +6294,8 @@ "title": "Variables", "kind": 32, "children": [ - 187, - 186 + 205, + 204 ] } ], @@ -5714,7 +6322,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 181, + "id": 199, "name": "PostgrestQueryBuilder.select" } } @@ -5728,12 +6336,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 181, + "id": 199, "name": "PostgrestQueryBuilder.select" } }, { - "id": 236, + "id": 254, "name": "then", "kind": 2048, "kindString": "Method", @@ -5742,7 +6350,7 @@ }, "signatures": [ { - "id": 237, + "id": 255, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -5751,7 +6359,7 @@ }, "typeParameter": [ { - "id": 238, + "id": 256, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -5760,7 +6368,7 @@ } }, { - "id": 239, + "id": 257, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -5771,7 +6379,7 @@ ], "parameters": [ { - "id": 240, + "id": 258, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -5785,7 +6393,7 @@ { "type": "reflection", "declaration": { - "id": 241, + "id": 259, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5794,7 +6402,7 @@ }, "signatures": [ { - "id": 242, + "id": 260, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5803,7 +6411,7 @@ }, "parameters": [ { - "id": 243, + "id": 261, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -5884,7 +6492,7 @@ } }, { - "id": 244, + "id": 262, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -5898,7 +6506,7 @@ { "type": "reflection", "declaration": { - "id": 245, + "id": 263, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5907,7 +6515,7 @@ }, "signatures": [ { - "id": 246, + "id": 264, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5916,7 +6524,7 @@ }, "parameters": [ { - "id": 247, + "id": 265, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -6014,7 +6622,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 236, + "id": 254, "name": "PostgrestBuilder.then" } } @@ -6028,12 +6636,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 236, + "id": 254, "name": "PostgrestBuilder.then" } }, { - "id": 234, + "id": 252, "name": "throwOnError", "kind": 2048, "kindString": "Method", @@ -6042,7 +6650,7 @@ }, "signatures": [ { - "id": 235, + "id": 253, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -6065,7 +6673,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 234, + "id": 252, "name": "PostgrestBuilder.throwOnError" } } @@ -6079,12 +6687,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 234, + "id": 252, "name": "PostgrestBuilder.throwOnError" } }, { - "id": 212, + "id": 230, "name": "update", "kind": 2048, "kindString": "Method", @@ -6093,7 +6701,7 @@ }, "signatures": [ { - "id": 213, + "id": 231, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -6105,7 +6713,7 @@ }, "parameters": [ { - "id": 214, + "id": 232, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -6127,7 +6735,7 @@ } }, { - "id": 215, + "id": 233, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -6139,7 +6747,7 @@ "type": { "type": "reflection", "declaration": { - "id": 216, + "id": 234, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6148,7 +6756,7 @@ }, "children": [ { - "id": 218, + "id": 236, "name": "count", "kind": 32, "kindString": "Variable", @@ -6192,7 +6800,7 @@ } }, { - "id": 217, + "id": 235, "name": "returning", "kind": 32, "kindString": "Variable", @@ -6233,8 +6841,8 @@ "title": "Variables", "kind": 32, "children": [ - 218, - 217 + 236, + 235 ] } ], @@ -6261,7 +6869,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 212, + "id": 230, "name": "PostgrestQueryBuilder.update" } } @@ -6275,12 +6883,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 212, + "id": 230, "name": "PostgrestQueryBuilder.update" } }, { - "id": 203, + "id": 221, "name": "upsert", "kind": 2048, "kindString": "Method", @@ -6289,7 +6897,7 @@ }, "signatures": [ { - "id": 204, + "id": 222, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -6301,7 +6909,7 @@ }, "parameters": [ { - "id": 205, + "id": 223, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -6341,7 +6949,7 @@ } }, { - "id": 206, + "id": 224, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -6353,7 +6961,7 @@ "type": { "type": "reflection", "declaration": { - "id": 207, + "id": 225, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6362,7 +6970,7 @@ }, "children": [ { - "id": 210, + "id": 228, "name": "count", "kind": 32, "kindString": "Variable", @@ -6406,7 +7014,7 @@ } }, { - "id": 211, + "id": 229, "name": "ignoreDuplicates", "kind": 32, "kindString": "Variable", @@ -6442,7 +7050,7 @@ } }, { - "id": 208, + "id": 226, "name": "onConflict", "kind": 32, "kindString": "Variable", @@ -6474,7 +7082,7 @@ } }, { - "id": 209, + "id": 227, "name": "returning", "kind": 32, "kindString": "Variable", @@ -6515,10 +7123,10 @@ "title": "Variables", "kind": 32, "children": [ - 210, - 211, - 208, - 209 + 228, + 229, + 226, + 227 ] } ], @@ -6545,7 +7153,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 203, + "id": 221, "name": "PostgrestQueryBuilder.upsert" } } @@ -6559,7 +7167,7 @@ ], "inheritedFrom": { "type": "reference", - "id": 203, + "id": 221, "name": "PostgrestQueryBuilder.upsert" } } @@ -6569,35 +7177,35 @@ "title": "Constructors", "kind": 512, "children": [ - 162 + 180 ] }, { "title": "Properties", "kind": 1024, "children": [ - 161, - 160, - 232, - 227, - 225, - 231, - 233, - 226 + 179, + 178, + 250, + 245, + 243, + 249, + 251, + 244 ] }, { "title": "Methods", "kind": 2048, "children": [ - 219, - 188, - 174, - 181, - 236, - 234, - 212, - 203 + 237, + 206, + 192, + 199, + 254, + 252, + 230, + 221 ] } ], @@ -6645,7 +7253,7 @@ "title": "Classes", "kind": 128, "children": [ - 158 + 176 ] } ], @@ -6658,7 +7266,7 @@ ] }, { - "id": 131, + "id": 149, "name": "\"lib/SupabaseRealtimeClient\"", "kind": 1, "kindString": "Module", @@ -6668,7 +7276,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts", "children": [ { - "id": 132, + "id": 150, "name": "SupabaseRealtimeClient", "kind": 128, "kindString": "Class", @@ -6677,7 +7285,7 @@ }, "children": [ { - "id": 134, + "id": 152, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6686,7 +7294,7 @@ }, "signatures": [ { - "id": 135, + "id": 153, "name": "new SupabaseRealtimeClient", "kind": 16384, "kindString": "Constructor signature", @@ -6695,7 +7303,7 @@ }, "parameters": [ { - "id": 136, + "id": 154, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -6708,7 +7316,7 @@ } }, { - "id": 137, + "id": 155, "name": "schema", "kind": 32768, "kindString": "Parameter", @@ -6721,7 +7329,7 @@ } }, { - "id": 138, + "id": 156, "name": "tableName", "kind": 32768, "kindString": "Parameter", @@ -6736,7 +7344,7 @@ ], "type": { "type": "reference", - "id": 132, + "id": 150, "name": "SupabaseRealtimeClient" } } @@ -6750,7 +7358,7 @@ ] }, { - "id": 133, + "id": 151, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -6770,7 +7378,7 @@ } }, { - "id": 139, + "id": 157, "name": "getPayloadRecords", "kind": 2048, "kindString": "Method", @@ -6780,7 +7388,7 @@ }, "signatures": [ { - "id": 140, + "id": 158, "name": "getPayloadRecords", "kind": 4096, "kindString": "Call signature", @@ -6789,7 +7397,7 @@ }, "parameters": [ { - "id": 141, + "id": 159, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -6805,7 +7413,7 @@ "type": { "type": "reflection", "declaration": { - "id": 142, + "id": 160, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6814,7 +7422,7 @@ }, "children": [ { - "id": 143, + "id": 161, "name": "new", "kind": 32, "kindString": "Variable", @@ -6831,7 +7439,7 @@ "type": { "type": "reflection", "declaration": { - "id": 144, + "id": 162, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6842,7 +7450,7 @@ } }, { - "id": 145, + "id": 163, "name": "old", "kind": 32, "kindString": "Variable", @@ -6859,7 +7467,7 @@ "type": { "type": "reflection", "declaration": { - "id": 146, + "id": 164, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6875,8 +7483,8 @@ "title": "Variables", "kind": 32, "children": [ - 143, - 145 + 161, + 163 ] } ] @@ -6893,7 +7501,7 @@ ] }, { - "id": 147, + "id": 165, "name": "on", "kind": 2048, "kindString": "Method", @@ -6902,7 +7510,7 @@ }, "signatures": [ { - "id": 148, + "id": 166, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -6914,7 +7522,7 @@ }, "parameters": [ { - "id": 149, + "id": 167, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -6926,12 +7534,12 @@ }, "type": { "type": "reference", - "id": 26, + "id": 28, "name": "SupabaseEventTypes" } }, { - "id": 150, + "id": 168, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -6944,7 +7552,7 @@ "type": { "type": "reflection", "declaration": { - "id": 151, + "id": 169, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6953,7 +7561,7 @@ }, "signatures": [ { - "id": 152, + "id": 170, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -6962,7 +7570,7 @@ }, "parameters": [ { - "id": 153, + "id": 171, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -6971,7 +7579,7 @@ }, "type": { "type": "reference", - "id": 17, + "id": 19, "typeArguments": [ { "type": "intrinsic", @@ -7014,7 +7622,7 @@ ] }, { - "id": 154, + "id": 172, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -7023,7 +7631,7 @@ }, "signatures": [ { - "id": 155, + "id": 173, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -7035,7 +7643,7 @@ }, "parameters": [ { - "id": 156, + "id": 174, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -7069,23 +7677,23 @@ "title": "Constructors", "kind": 512, "children": [ - 134 + 152 ] }, { "title": "Properties", "kind": 1024, "children": [ - 133 + 151 ] }, { "title": "Methods", "kind": 2048, "children": [ - 139, - 147, - 154 + 157, + 165, + 172 ] } ], @@ -7103,7 +7711,7 @@ "title": "Classes", "kind": 128, "children": [ - 132 + 150 ] } ], @@ -7116,7 +7724,7 @@ ] }, { - "id": 1, + "id": 3, "name": "\"lib/constants\"", "kind": 1, "kindString": "Module", @@ -7126,14 +7734,46 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/constants.ts", "children": [ { - "id": 2, + "id": 4, "name": "DEFAULT_HEADERS", - "kind": 32, - "kindString": "Variable", + "kind": 2097152, + "kindString": "Object literal", "flags": { "isExported": true, "isConst": true }, + "children": [ + { + "id": 5, + "name": "X-Client-Info", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 3, + "character": 48 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "`supabase-js/${version}`" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 5 + ] + } + ], "sources": [ { "fileName": "src/lib/constants.ts", @@ -7142,25 +7782,17 @@ } ], "type": { - "type": "reflection", - "declaration": { - "id": 3, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - } - } + "type": "intrinsic", + "name": "object" } } ], "groups": [ { - "title": "Variables", - "kind": 32, + "title": "Object literals", + "kind": 2097152, "children": [ - 2 + 4 ] } ], @@ -7173,7 +7805,7 @@ ] }, { - "id": 318, + "id": 344, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", @@ -7183,7 +7815,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts", "children": [ { - "id": 319, + "id": 345, "name": "uuid", "kind": 64, "kindString": "Function", @@ -7192,7 +7824,7 @@ }, "signatures": [ { - "id": 320, + "id": 346, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -7219,7 +7851,7 @@ "title": "Functions", "kind": 64, "children": [ - 319 + 345 ] } ], @@ -7232,7 +7864,7 @@ ] }, { - "id": 4, + "id": 6, "name": "\"lib/types\"", "kind": 1, "kindString": "Module", @@ -7242,7 +7874,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/types.ts", "children": [ { - "id": 5, + "id": 7, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -7259,7 +7891,7 @@ "type": { "type": "reflection", "declaration": { - "id": 6, + "id": 8, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7268,7 +7900,7 @@ }, "children": [ { - "id": 12, + "id": 14, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -7305,7 +7937,7 @@ } }, { - "id": 14, + "id": 16, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -7342,7 +7974,7 @@ } }, { - "id": 8, + "id": 10, "name": "headers", "kind": 32, "kindString": "Variable", @@ -7370,7 +8002,7 @@ { "type": "reflection", "declaration": { - "id": 9, + "id": 11, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7379,7 +8011,7 @@ }, "indexSignature": [ { - "id": 10, + "id": 12, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -7388,7 +8020,7 @@ }, "parameters": [ { - "id": 11, + "id": 13, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7413,7 +8045,7 @@ } }, { - "id": 15, + "id": 17, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -7437,7 +8069,7 @@ } }, { - "id": 13, + "id": 15, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -7474,7 +8106,7 @@ } }, { - "id": 16, + "id": 18, "name": "realtime", "kind": 32, "kindString": "Variable", @@ -7498,7 +8130,7 @@ } }, { - "id": 7, + "id": 9, "name": "schema", "kind": 32, "kindString": "Variable", @@ -7536,13 +8168,13 @@ "title": "Variables", "kind": 32, "children": [ - 12, 14, - 8, - 15, - 13, 16, - 7 + 10, + 17, + 15, + 18, + 9 ] } ], @@ -7557,7 +8189,7 @@ } }, { - "id": 26, + "id": 28, "name": "SupabaseEventTypes", "kind": 4194304, "kindString": "Type alias", @@ -7594,7 +8226,7 @@ } }, { - "id": 17, + "id": 19, "name": "SupabaseRealtimePayload", "kind": 4194304, "kindString": "Type alias", @@ -7603,7 +8235,7 @@ }, "typeParameter": [ { - "id": 18, + "id": 20, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -7622,7 +8254,7 @@ "type": { "type": "reflection", "declaration": { - "id": 19, + "id": 21, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7631,7 +8263,7 @@ }, "children": [ { - "id": 20, + "id": 22, "name": "commit_timestamp", "kind": 32, "kindString": "Variable", @@ -7651,7 +8283,7 @@ } }, { - "id": 21, + "id": 23, "name": "eventType", "kind": 32, "kindString": "Variable", @@ -7684,7 +8316,7 @@ } }, { - "id": 24, + "id": 26, "name": "new", "kind": 32, "kindString": "Variable", @@ -7707,7 +8339,7 @@ } }, { - "id": 25, + "id": 27, "name": "old", "kind": 32, "kindString": "Variable", @@ -7730,7 +8362,7 @@ } }, { - "id": 22, + "id": 24, "name": "schema", "kind": 32, "kindString": "Variable", @@ -7750,7 +8382,7 @@ } }, { - "id": 23, + "id": 25, "name": "table", "kind": 32, "kindString": "Variable", @@ -7775,12 +8407,12 @@ "title": "Variables", "kind": 32, "children": [ - 20, - 21, - 24, - 25, 22, - 23 + 23, + 26, + 27, + 24, + 25 ] } ], @@ -7800,9 +8432,9 @@ "title": "Type aliases", "kind": 4194304, "children": [ - 5, - 26, - 17 + 7, + 28, + 19 ] } ], @@ -7813,6 +8445,56 @@ "character": 0 } ] + }, + { + "id": 1, + "name": "\"lib/version\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/version.ts", + "children": [ + { + "id": 2, + "name": "version", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/version.ts", + "line": 2, + "character": 20 + } + ], + "type": { + "type": "stringLiteral", + "value": "0.0.0" + }, + "defaultValue": "\"0.0.0\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 2 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/version.ts", + "line": 1, + "character": 0 + } + ] } ], "groups": [ @@ -7820,14 +8502,15 @@ "title": "Modules", "kind": 1, "children": [ - 248, - 312, - 27, - 157, - 131, - 1, - 318, - 4 + 266, + 338, + 29, + 175, + 149, + 3, + 344, + 6, + 1 ] } ]