diff --git a/web/spec/combined.json b/web/spec/combined.json index c16326119fa..3669a9aedf0 100644 --- a/web/spec/combined.json +++ b/web/spec/combined.json @@ -9,7 +9,7 @@ "originalName": "", "children": [ { - "id": 239, + "id": 243, "name": "\"SupabaseClient\"", "kind": 1, "kindString": "Module", @@ -19,7 +19,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts", "children": [ { - "id": 240, + "id": 244, "name": "SupabaseClient", "kind": 128, "kindString": "Class", @@ -32,7 +32,7 @@ }, "children": [ { - "id": 248, + "id": 252, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -44,7 +44,7 @@ }, "signatures": [ { - "id": 251, + "id": 255, "name": "new SupabaseClient", "kind": 16384, "kindString": "Constructor signature", @@ -56,7 +56,7 @@ }, "parameters": [ { - "id": 252, + "id": 256, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -72,7 +72,7 @@ } }, { - "id": 253, + "id": 257, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -88,7 +88,7 @@ } }, { - "id": 254, + "id": 258, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -105,7 +105,7 @@ ], "type": { "type": "reference", - "id": 240, + "id": 244, "name": "SupabaseClient" } } @@ -119,7 +119,7 @@ ] }, { - "id": 241, + "id": 245, "name": "auth", "kind": 1024, "kindString": "Property", @@ -143,7 +143,7 @@ } }, { - "id": 245, + "id": 249, "name": "authUrl", "kind": 1024, "kindString": "Property", @@ -164,7 +164,7 @@ } }, { - "id": 247, + "id": 251, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -185,7 +185,7 @@ } }, { - "id": 244, + "id": 248, "name": "realtimeUrl", "kind": 1024, "kindString": "Property", @@ -206,7 +206,7 @@ } }, { - "id": 243, + "id": 247, "name": "restUrl", "kind": 1024, "kindString": "Property", @@ -227,7 +227,7 @@ } }, { - "id": 242, + "id": 246, "name": "schema", "kind": 1024, "kindString": "Property", @@ -248,7 +248,7 @@ } }, { - "id": 246, + "id": 250, "name": "storageUrl", "kind": 1024, "kindString": "Property", @@ -269,7 +269,7 @@ } }, { - "id": 250, + "id": 254, "name": "supabaseKey", "kind": 1024, "kindString": "Property", @@ -294,7 +294,7 @@ } }, { - "id": 249, + "id": 253, "name": "supabaseUrl", "kind": 1024, "kindString": "Property", @@ -319,7 +319,7 @@ } }, { - "id": 255, + "id": 259, "name": "storage", "kind": 262144, "kindString": "Accessor", @@ -331,7 +331,7 @@ }, "getSignature": [ { - "id": 256, + "id": 260, "name": "__get", "kind": 524288, "kindString": "Get signature", @@ -356,7 +356,7 @@ ] }, { - "id": 291, + "id": 295, "name": "_closeChannel", "kind": 2048, "kindString": "Method", @@ -366,7 +366,7 @@ }, "signatures": [ { - "id": 292, + "id": 296, "name": "_closeChannel", "kind": 4096, "kindString": "Call signature", @@ -375,7 +375,7 @@ }, "parameters": [ { - "id": 293, + "id": 297, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -409,7 +409,7 @@ ] }, { - "id": 269, + "id": 273, "name": "_closeSubscription", "kind": 2048, "kindString": "Method", @@ -419,7 +419,7 @@ }, "signatures": [ { - "id": 270, + "id": 274, "name": "_closeSubscription", "kind": 4096, "kindString": "Call signature", @@ -428,7 +428,7 @@ }, "parameters": [ { - "id": 271, + "id": 275, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -462,7 +462,7 @@ ] }, { - "id": 286, + "id": 290, "name": "_getAuthHeaders", "kind": 2048, "kindString": "Method", @@ -472,7 +472,7 @@ }, "signatures": [ { - "id": 287, + "id": 291, "name": "_getAuthHeaders", "kind": 4096, "kindString": "Call signature", @@ -482,7 +482,7 @@ "type": { "type": "reflection", "declaration": { - "id": 288, + "id": 292, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -491,7 +491,7 @@ }, "indexSignature": [ { - "id": 289, + "id": 293, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -500,7 +500,7 @@ }, "parameters": [ { - "id": 290, + "id": 294, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -539,7 +539,7 @@ ] }, { - "id": 284, + "id": 288, "name": "_initPostgRESTClient", "kind": 2048, "kindString": "Method", @@ -549,7 +549,7 @@ }, "signatures": [ { - "id": 285, + "id": 289, "name": "_initPostgRESTClient", "kind": 4096, "kindString": "Call signature", @@ -571,7 +571,7 @@ ] }, { - "id": 282, + "id": 286, "name": "_initRealtimeClient", "kind": 2048, "kindString": "Method", @@ -581,7 +581,7 @@ }, "signatures": [ { - "id": 283, + "id": 287, "name": "_initRealtimeClient", "kind": 4096, "kindString": "Call signature", @@ -603,7 +603,7 @@ ] }, { - "id": 274, + "id": 278, "name": "_initSupabaseAuthClient", "kind": 2048, "kindString": "Method", @@ -613,7 +613,7 @@ }, "signatures": [ { - "id": 275, + "id": 279, "name": "_initSupabaseAuthClient", "kind": 4096, "kindString": "Call signature", @@ -622,7 +622,7 @@ }, "parameters": [ { - "id": 276, + "id": 280, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -633,7 +633,7 @@ "type": { "type": "reflection", "declaration": { - "id": 277, + "id": 281, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -642,7 +642,7 @@ }, "children": [ { - "id": 278, + "id": 282, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -675,7 +675,7 @@ } }, { - "id": 280, + "id": 284, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -708,7 +708,7 @@ } }, { - "id": 281, + "id": 285, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -737,7 +737,7 @@ } }, { - "id": 279, + "id": 283, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -774,7 +774,12 @@ { "title": "Variables", "kind": 32, - "children": [278, 280, 281, 279] + "children": [ + 282, + 284, + 285, + 283 + ] } ], "sources": [ @@ -804,7 +809,7 @@ ] }, { - "id": 257, + "id": 261, "name": "from", "kind": 2048, "kindString": "Method", @@ -813,7 +818,7 @@ }, "signatures": [ { - "id": 258, + "id": 262, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -825,7 +830,7 @@ }, "typeParameter": [ { - "id": 259, + "id": 263, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -836,7 +841,7 @@ ], "parameters": [ { - "id": 260, + "id": 264, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -854,7 +859,7 @@ ], "type": { "type": "reference", - "id": 153, + "id": 157, "typeArguments": [ { "type": "typeParameter", @@ -878,7 +883,7 @@ ] }, { - "id": 272, + "id": 276, "name": "getSubscriptions", "kind": 2048, "kindString": "Method", @@ -887,7 +892,7 @@ }, "signatures": [ { - "id": 273, + "id": 277, "name": "getSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -915,7 +920,7 @@ ] }, { - "id": 266, + "id": 270, "name": "removeSubscription", "kind": 2048, "kindString": "Method", @@ -924,7 +929,7 @@ }, "signatures": [ { - "id": 267, + "id": 271, "name": "removeSubscription", "kind": 4096, "kindString": "Call signature", @@ -936,7 +941,7 @@ }, "parameters": [ { - "id": 268, + "id": 272, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -973,7 +978,7 @@ ] }, { - "id": 261, + "id": 265, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -982,7 +987,7 @@ }, "signatures": [ { - "id": 262, + "id": 266, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -994,7 +999,7 @@ }, "typeParameter": [ { - "id": 263, + "id": 267, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -1005,7 +1010,7 @@ ], "parameters": [ { - "id": 264, + "id": 268, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -1021,7 +1026,7 @@ } }, { - "id": 265, + "id": 269, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -1072,22 +1077,47 @@ { "title": "Constructors", "kind": 512, - "children": [248] + "children": [ + 252 + ] }, { "title": "Properties", "kind": 1024, - "children": [241, 245, 247, 244, 243, 242, 246, 250, 249] + "children": [ + 245, + 249, + 251, + 248, + 247, + 246, + 250, + 254, + 253 + ] }, { "title": "Accessors", "kind": 262144, - "children": [255] + "children": [ + 259 + ] }, { "title": "Methods", "kind": 2048, - "children": [291, 269, 286, 284, 282, 274, 257, 272, 266, 261] + "children": [ + 295, + 273, + 290, + 288, + 286, + 278, + 261, + 276, + 270, + 265 + ] } ], "sources": [ @@ -1099,7 +1129,7 @@ ] }, { - "id": 294, + "id": 298, "name": "DEFAULT_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -1108,7 +1138,7 @@ }, "children": [ { - "id": 296, + "id": 300, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -1127,7 +1157,7 @@ "defaultValue": "true" }, { - "id": 298, + "id": 302, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -1146,7 +1176,7 @@ "defaultValue": "true" }, { - "id": 300, + "id": 304, "name": "headers", "kind": 32, "kindString": "Variable", @@ -1161,7 +1191,7 @@ "type": { "type": "reflection", "declaration": { - "id": 301, + "id": 305, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1171,7 +1201,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 299, + "id": 303, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -1190,7 +1220,7 @@ "defaultValue": "globalThis.localStorage" }, { - "id": 297, + "id": 301, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -1209,7 +1239,7 @@ "defaultValue": "true" }, { - "id": 295, + "id": 299, "name": "schema", "kind": 32, "kindString": "Variable", @@ -1232,7 +1262,14 @@ { "title": "Variables", "kind": 32, - "children": [296, 298, 300, 299, 297, 295] + "children": [ + 300, + 302, + 304, + 303, + 301, + 299 + ] } ], "sources": [ @@ -1252,12 +1289,16 @@ { "title": "Classes", "kind": 128, - "children": [240] + "children": [ + 244 + ] }, { "title": "Object literals", "kind": 2097152, - "children": [294] + "children": [ + 298 + ] } ], "sources": [ @@ -1269,7 +1310,7 @@ ] }, { - "id": 302, + "id": 306, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -1279,7 +1320,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts", "children": [ { - "id": 303, + "id": 307, "name": "createClient", "kind": 64, "kindString": "Function", @@ -1292,7 +1333,7 @@ }, "signatures": [ { - "id": 304, + "id": 308, "name": "createClient", "kind": 4096, "kindString": "Call signature", @@ -1304,7 +1345,7 @@ }, "parameters": [ { - "id": 305, + "id": 309, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -1317,7 +1358,7 @@ } }, { - "id": 306, + "id": 310, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -1330,7 +1371,7 @@ } }, { - "id": 307, + "id": 311, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1347,7 +1388,7 @@ ], "type": { "type": "reference", - "id": 240, + "id": 244, "name": "SupabaseClient" } } @@ -1365,7 +1406,9 @@ { "title": "Functions", "kind": 64, - "children": [303] + "children": [ + 307 + ] } ], "sources": [ @@ -1658,7 +1701,14 @@ { "title": "Variables", "kind": 32, - "children": [38, 37, 33, 40, 39, 32] + "children": [ + 38, + 37, + 33, + 40, + 39, + 32 + ] } ], "sources": [ @@ -1950,7 +2000,7 @@ } }, { - "id": 107, + "id": 108, "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", @@ -1959,7 +2009,7 @@ }, "signatures": [ { - "id": 108, + "id": 109, "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", @@ -1971,7 +2021,7 @@ }, "parameters": [ { - "id": 109, + "id": 110, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -1989,7 +2039,7 @@ { "type": "reflection", "declaration": { - "id": 110, + "id": 111, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1998,7 +2048,7 @@ }, "children": [ { - "id": 111, + "id": 112, "name": "storeSession", "kind": 32, "kindString": "Variable", @@ -2012,7 +2062,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 121, + "line": 122, "character": 20 } ], @@ -2039,7 +2089,9 @@ { "title": "Variables", "kind": 32, - "children": [111] + "children": [ + 112 + ] } ] } @@ -2054,7 +2106,7 @@ { "type": "reflection", "declaration": { - "id": 112, + "id": 113, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2063,7 +2115,7 @@ }, "children": [ { - "id": 113, + "id": 114, "name": "data", "kind": 32, "kindString": "Variable", @@ -2073,7 +2125,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 123, + "line": 124, "character": 12 } ], @@ -2092,7 +2144,7 @@ } }, { - "id": 114, + "id": 115, "name": "error", "kind": 32, "kindString": "Variable", @@ -2102,7 +2154,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 124, + "line": 125, "character": 13 } ], @@ -2125,13 +2177,16 @@ { "title": "Variables", "kind": 32, - "children": [113, 114] + "children": [ + 114, + 115 + ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 122, + "line": 123, "character": 16 } ] @@ -2142,7 +2197,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 107, + "id": 108, "name": "GoTrueClient.getSessionFromUrl" } } @@ -2150,18 +2205,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 120, + "line": 121, "character": 21 } ], "inheritedFrom": { "type": "reference", - "id": 107, + "id": 108, "name": "GoTrueClient.getSessionFromUrl" } }, { - "id": 119, + "id": 120, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -2170,7 +2225,7 @@ }, "signatures": [ { - "id": 120, + "id": 121, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -2183,7 +2238,7 @@ }, "parameters": [ { - "id": 121, + "id": 122, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -2193,7 +2248,7 @@ "type": { "type": "reflection", "declaration": { - "id": 122, + "id": 123, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2202,7 +2257,7 @@ }, "signatures": [ { - "id": 123, + "id": 124, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -2211,7 +2266,7 @@ }, "parameters": [ { - "id": 124, + "id": 125, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -2224,7 +2279,7 @@ } }, { - "id": 125, + "id": 126, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -2255,7 +2310,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 139, + "line": 140, "character": 31 } ] @@ -2266,7 +2321,7 @@ "type": { "type": "reflection", "declaration": { - "id": 126, + "id": 127, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2275,7 +2330,7 @@ }, "children": [ { - "id": 127, + "id": 128, "name": "data", "kind": 32, "kindString": "Variable", @@ -2285,7 +2340,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 140, + "line": 141, "character": 12 } ], @@ -2304,7 +2359,7 @@ } }, { - "id": 128, + "id": 129, "name": "error", "kind": 32, "kindString": "Variable", @@ -2314,7 +2369,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 141, + "line": 142, "character": 13 } ], @@ -2337,13 +2392,16 @@ { "title": "Variables", "kind": 32, - "children": [127, 128] + "children": [ + 128, + 129 + ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 139, + "line": 140, "character": 91 } ] @@ -2351,7 +2409,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 119, + "id": 120, "name": "GoTrueClient.onAuthStateChange" } } @@ -2359,18 +2417,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 139, + "line": 140, "character": 21 } ], "inheritedFrom": { "type": "reference", - "id": 119, + "id": 120, "name": "GoTrueClient.onAuthStateChange" } }, { - "id": 85, + "id": 86, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -2379,7 +2437,7 @@ }, "signatures": [ { - "id": 86, + "id": 87, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -2395,7 +2453,7 @@ { "type": "reflection", "declaration": { - "id": 87, + "id": 88, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2404,7 +2462,7 @@ }, "children": [ { - "id": 88, + "id": 89, "name": "data", "kind": 32, "kindString": "Variable", @@ -2414,7 +2472,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 91, + "line": 92, "character": 12 } ], @@ -2433,7 +2491,7 @@ } }, { - "id": 90, + "id": 91, "name": "error", "kind": 32, "kindString": "Variable", @@ -2443,7 +2501,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 93, + "line": 94, "character": 13 } ], @@ -2462,7 +2520,7 @@ } }, { - "id": 89, + "id": 90, "name": "user", "kind": 32, "kindString": "Variable", @@ -2472,7 +2530,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 92, + "line": 93, "character": 12 } ], @@ -2495,13 +2553,17 @@ { "title": "Variables", "kind": 32, - "children": [88, 90, 89] + "children": [ + 89, + 91, + 90 + ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 90, + "line": 91, "character": 30 } ] @@ -2512,7 +2574,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 85, + "id": 86, "name": "GoTrueClient.refreshSession" } } @@ -2520,18 +2582,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 90, + "line": 91, "character": 18 } ], "inheritedFrom": { "type": "reference", - "id": 85, + "id": 86, "name": "GoTrueClient.refreshSession" } }, { - "id": 83, + "id": 84, "name": "session", "kind": 2048, "kindString": "Method", @@ -2540,7 +2602,7 @@ }, "signatures": [ { - "id": 84, + "id": 85, "name": "session", "kind": 4096, "kindString": "Call signature", @@ -2565,7 +2627,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 83, + "id": 84, "name": "GoTrueClient.session" } } @@ -2573,18 +2635,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 86, + "line": 87, "character": 11 } ], "inheritedFrom": { "type": "reference", - "id": 83, + "id": 84, "name": "GoTrueClient.session" } }, { - "id": 104, + "id": 105, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -2593,7 +2655,7 @@ }, "signatures": [ { - "id": 105, + "id": 106, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -2605,7 +2667,7 @@ }, "parameters": [ { - "id": 106, + "id": 107, "name": "access_token", "kind": 32768, "kindString": "Parameter", @@ -2627,7 +2689,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 104, + "id": 105, "name": "GoTrueClient.setAuth" } } @@ -2635,18 +2697,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 115, + "line": 116, "character": 11 } ], "inheritedFrom": { "type": "reference", - "id": 104, + "id": 105, "name": "GoTrueClient.setAuth" } }, { - "id": 98, + "id": 99, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -2655,7 +2717,7 @@ }, "signatures": [ { - "id": 99, + "id": 100, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -2667,7 +2729,7 @@ }, "parameters": [ { - "id": 100, + "id": 101, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -2689,7 +2751,7 @@ { "type": "reflection", "declaration": { - "id": 101, + "id": 102, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2698,7 +2760,7 @@ }, "children": [ { - "id": 103, + "id": 104, "name": "error", "kind": 32, "kindString": "Variable", @@ -2708,7 +2770,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 109, + "line": 110, "character": 13 } ], @@ -2727,7 +2789,7 @@ } }, { - "id": 102, + "id": 103, "name": "session", "kind": 32, "kindString": "Variable", @@ -2737,7 +2799,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 108, + "line": 109, "character": 15 } ], @@ -2760,13 +2822,16 @@ { "title": "Variables", "kind": 32, - "children": [103, 102] + "children": [ + 104, + 103 + ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 107, + "line": 108, "character": 47 } ] @@ -2777,7 +2842,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 98, + "id": 99, "name": "GoTrueClient.setSession" } } @@ -2785,13 +2850,13 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 107, + "line": 108, "character": 14 } ], "inheritedFrom": { "type": "reference", - "id": 98, + "id": 99, "name": "GoTrueClient.setSession" } }, @@ -2850,7 +2915,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 66, + "line": 67, "character": 18 } ], @@ -2882,7 +2947,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 66, + "line": 67, "character": 28 } ], @@ -2901,7 +2966,7 @@ } }, { - "id": 69, + "id": 70, "name": "provider", "kind": 32, "kindString": "Variable", @@ -2914,8 +2979,8 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 66, - "character": 38 + "line": 67, + "character": 52 } ], "type": { @@ -2948,6 +3013,46 @@ { "type": "stringLiteral", "value": "google" + }, + { + "type": "stringLiteral", + "value": "twitter" + }, + { + "type": "stringLiteral", + "value": "apple" + } + ] + } + }, + { + "id": 69, + "name": "refreshToken", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "A valid refresh token that was returned on login." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 67, + "character": 42 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" } ] } @@ -2957,13 +3062,18 @@ { "title": "Variables", "kind": 32, - "children": [67, 68, 69] + "children": [ + 67, + 68, + 70, + 69 + ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 66, + "line": 67, "character": 11 } ] @@ -2971,7 +3081,7 @@ } }, { - "id": 70, + "id": 71, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -2989,7 +3099,7 @@ { "type": "reflection", "declaration": { - "id": 71, + "id": 72, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2998,7 +3108,7 @@ }, "children": [ { - "id": 72, + "id": 73, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -3009,7 +3119,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, + "line": 68, "character": 18 } ], @@ -3028,7 +3138,7 @@ } }, { - "id": 73, + "id": 74, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -3039,7 +3149,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 68, + "line": 69, "character": 14 } ], @@ -3062,7 +3172,10 @@ { "title": "Variables", "kind": 32, - "children": [72, 73] + "children": [ + 73, + 74 + ] } ] } @@ -3077,7 +3190,7 @@ { "type": "reflection", "declaration": { - "id": 74, + "id": 75, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3086,7 +3199,7 @@ }, "children": [ { - "id": 80, + "id": 81, "name": "data", "kind": 32, "kindString": "Variable", @@ -3096,7 +3209,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 75, + "line": 76, "character": 12 } ], @@ -3115,7 +3228,7 @@ } }, { - "id": 79, + "id": 80, "name": "error", "kind": 32, "kindString": "Variable", @@ -3125,7 +3238,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 74, + "line": 75, "character": 13 } ], @@ -3144,7 +3257,7 @@ } }, { - "id": 77, + "id": 78, "name": "provider", "kind": 32, "kindString": "Variable", @@ -3155,7 +3268,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 72, + "line": 73, "character": 16 } ], @@ -3165,7 +3278,7 @@ } }, { - "id": 75, + "id": 76, "name": "session", "kind": 32, "kindString": "Variable", @@ -3175,7 +3288,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 70, + "line": 71, "character": 15 } ], @@ -3194,7 +3307,7 @@ } }, { - "id": 78, + "id": 79, "name": "url", "kind": 32, "kindString": "Variable", @@ -3205,7 +3318,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 73, + "line": 74, "character": 11 } ], @@ -3224,7 +3337,7 @@ } }, { - "id": 76, + "id": 77, "name": "user", "kind": 32, "kindString": "Variable", @@ -3234,7 +3347,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 71, + "line": 72, "character": 12 } ], @@ -3257,13 +3370,20 @@ { "title": "Variables", "kind": 32, - "children": [80, 79, 77, 75, 78, 76] + "children": [ + 81, + 80, + 78, + 76, + 79, + 77 + ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 69, + "line": 70, "character": 16 } ] @@ -3282,7 +3402,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 66, + "line": 67, "character": 10 } ], @@ -3293,7 +3413,7 @@ } }, { - "id": 115, + "id": 116, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -3302,7 +3422,7 @@ }, "signatures": [ { - "id": 116, + "id": 117, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -3310,7 +3430,7 @@ "isExported": true }, "comment": { - "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", + "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.", "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n" }, "type": { @@ -3319,7 +3439,7 @@ { "type": "reflection", "declaration": { - "id": 117, + "id": 118, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3328,7 +3448,7 @@ }, "children": [ { - "id": 118, + "id": 119, "name": "error", "kind": 32, "kindString": "Variable", @@ -3338,7 +3458,7 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 133, + "line": 134, "character": 13 } ], @@ -3361,13 +3481,15 @@ { "title": "Variables", "kind": 32, - "children": [118] + "children": [ + 119 + ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 132, + "line": 133, "character": 23 } ] @@ -3378,7 +3500,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 115, + "id": 116, "name": "GoTrueClient.signOut" } } @@ -3386,13 +3508,13 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 132, + "line": 133, "character": 11 } ], "inheritedFrom": { "type": "reference", - "id": 115, + "id": 116, "name": "GoTrueClient.signOut" } }, @@ -3506,7 +3628,10 @@ { "title": "Variables", "kind": 32, - "children": [53, 54] + "children": [ + 53, + 54 + ] } ], "sources": [ @@ -3581,7 +3706,9 @@ { "title": "Variables", "kind": 32, - "children": [57] + "children": [ + 57 + ] } ] } @@ -3729,7 +3856,12 @@ { "title": "Variables", "kind": 32, - "children": [62, 61, 60, 59] + "children": [ + 62, + 61, + 60, + 59 + ] } ], "sources": [ @@ -3765,7 +3897,7 @@ } }, { - "id": 91, + "id": 92, "name": "update", "kind": 2048, "kindString": "Method", @@ -3774,7 +3906,7 @@ }, "signatures": [ { - "id": 92, + "id": 93, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -3786,7 +3918,7 @@ }, "parameters": [ { - "id": 93, + "id": 94, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -3805,7 +3937,7 @@ { "type": "reflection", "declaration": { - "id": 94, + "id": 95, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3813,67 +3945,9 @@ "isExported": true }, "children": [ - { - "id": 95, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 99, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 97, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 101, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, { "id": 96, - "name": "user", + "name": "data", "kind": 32, "kindString": "Variable", "flags": { @@ -3899,19 +3973,81 @@ } ] } + }, + { + "id": 98, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 102, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "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": 101, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } } ], "groups": [ { "title": "Variables", "kind": 32, - "children": [95, 97, 96] + "children": [ + 96, + 98, + 97 + ] } ], "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 98, + "line": 99, "character": 48 } ] @@ -3922,7 +4058,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 91, + "id": 92, "name": "GoTrueClient.update" } } @@ -3930,18 +4066,18 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 98, + "line": 99, "character": 10 } ], "inheritedFrom": { "type": "reference", - "id": 91, + "id": 92, "name": "GoTrueClient.update" } }, { - "id": 81, + "id": 82, "name": "user", "kind": 2048, "kindString": "Method", @@ -3950,7 +4086,7 @@ }, "signatures": [ { - "id": 82, + "id": 83, "name": "user", "kind": 4096, "kindString": "Call signature", @@ -3976,7 +4112,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 81, + "id": 82, "name": "GoTrueClient.user" } } @@ -3984,13 +4120,13 @@ "sources": [ { "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 82, + "line": 83, "character": 8 } ], "inheritedFrom": { "type": "reference", - "id": 81, + "id": 82, "name": "GoTrueClient.user" } } @@ -3999,17 +4135,40 @@ { "title": "Constructors", "kind": 512, - "children": [28] + "children": [ + 28 + ] }, { "title": "Properties", "kind": 1024, - "children": [41, 44, 43, 42, 46, 45, 48, 47] + "children": [ + 41, + 44, + 43, + 42, + 46, + 45, + 48, + 47 + ] }, { "title": "Methods", "kind": 2048, - "children": [107, 119, 85, 83, 104, 98, 63, 115, 49, 91, 81] + "children": [ + 108, + 120, + 86, + 84, + 105, + 99, + 63, + 116, + 49, + 92, + 82 + ] } ], "sources": [ @@ -4031,7 +4190,9 @@ { "title": "Classes", "kind": 128, - "children": [27] + "children": [ + 27 + ] } ], "sources": [ @@ -4043,7 +4204,7 @@ ] }, { - "id": 152, + "id": 156, "name": "\"lib/SupabaseQueryBuilder\"", "kind": 1, "kindString": "Module", @@ -4053,7 +4214,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts", "children": [ { - "id": 153, + "id": 157, "name": "SupabaseQueryBuilder", "kind": 128, "kindString": "Class", @@ -4062,7 +4223,7 @@ }, "typeParameter": [ { - "id": 154, + "id": 158, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -4073,7 +4234,7 @@ ], "children": [ { - "id": 157, + "id": 161, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -4082,7 +4243,7 @@ }, "signatures": [ { - "id": 158, + "id": 162, "name": "new SupabaseQueryBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -4091,7 +4252,7 @@ }, "parameters": [ { - "id": 159, + "id": 163, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -4104,7 +4265,7 @@ } }, { - "id": 160, + "id": 164, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -4115,7 +4276,7 @@ "type": { "type": "reflection", "declaration": { - "id": 161, + "id": 165, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4124,7 +4285,7 @@ }, "children": [ { - "id": 162, + "id": 166, "name": "headers", "kind": 32, "kindString": "Variable", @@ -4141,7 +4302,7 @@ "type": { "type": "reflection", "declaration": { - "id": 163, + "id": 167, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4150,7 +4311,7 @@ }, "indexSignature": [ { - "id": 164, + "id": 168, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -4159,7 +4320,7 @@ }, "parameters": [ { - "id": 165, + "id": 169, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -4182,7 +4343,7 @@ } }, { - "id": 167, + "id": 171, "name": "realtime", "kind": 32, "kindString": "Variable", @@ -4202,7 +4363,7 @@ } }, { - "id": 166, + "id": 170, "name": "schema", "kind": 32, "kindString": "Variable", @@ -4222,7 +4383,7 @@ } }, { - "id": 168, + "id": 172, "name": "table", "kind": 32, "kindString": "Variable", @@ -4246,7 +4407,12 @@ { "title": "Variables", "kind": 32, - "children": [162, 167, 166, 168] + "children": [ + 166, + 171, + 170, + 172 + ] } ], "sources": [ @@ -4262,7 +4428,7 @@ ], "type": { "type": "reference", - "id": 153, + "id": 157, "name": "SupabaseQueryBuilder" }, "overwrites": { @@ -4284,7 +4450,7 @@ } }, { - "id": 156, + "id": 160, "name": "_realtime", "kind": 1024, "kindString": "Property", @@ -4305,7 +4471,7 @@ } }, { - "id": 155, + "id": 159, "name": "_subscription", "kind": 1024, "kindString": "Property", @@ -4322,12 +4488,12 @@ ], "type": { "type": "reference", - "id": 130, + "id": 131, "name": "SupabaseRealtimeClient" } }, { - "id": 226, + "id": 230, "name": "body", "kind": 1024, "kindString": "Property", @@ -4373,12 +4539,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 226, + "id": 230, "name": "PostgrestBuilder.body" } }, { - "id": 221, + "id": 225, "name": "headers", "kind": 1024, "kindString": "Property", @@ -4396,7 +4562,7 @@ "type": { "type": "reflection", "declaration": { - "id": 222, + "id": 226, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4405,7 +4571,7 @@ }, "indexSignature": [ { - "id": 223, + "id": 227, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -4414,7 +4580,7 @@ }, "parameters": [ { - "id": 224, + "id": 228, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -4444,12 +4610,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 221, + "id": 225, "name": "PostgrestBuilder.headers" } }, { - "id": 219, + "id": 223, "name": "method", "kind": 1024, "kindString": "Property", @@ -4491,12 +4657,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 219, + "id": 223, "name": "PostgrestBuilder.method" } }, { - "id": 225, + "id": 229, "name": "schema", "kind": 1024, "kindString": "Property", @@ -4527,12 +4693,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 225, + "id": 229, "name": "PostgrestBuilder.schema" } }, { - "id": 220, + "id": 224, "name": "url", "kind": 1024, "kindString": "Property", @@ -4553,12 +4719,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 220, + "id": 224, "name": "PostgrestBuilder.url" } }, { - "id": 213, + "id": 217, "name": "delete", "kind": 2048, "kindString": "Method", @@ -4567,7 +4733,7 @@ }, "signatures": [ { - "id": 214, + "id": 218, "name": "delete", "kind": 4096, "kindString": "Call signature", @@ -4579,7 +4745,7 @@ }, "parameters": [ { - "id": 215, + "id": 219, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -4591,7 +4757,7 @@ "type": { "type": "reflection", "declaration": { - "id": 216, + "id": 220, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4600,7 +4766,7 @@ }, "children": [ { - "id": 218, + "id": 222, "name": "count", "kind": 32, "kindString": "Variable", @@ -4644,7 +4810,7 @@ } }, { - "id": 217, + "id": 221, "name": "returning", "kind": 32, "kindString": "Variable", @@ -4684,7 +4850,10 @@ { "title": "Variables", "kind": 32, - "children": [218, 217] + "children": [ + 222, + 221 + ] } ], "sources": [ @@ -4710,7 +4879,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 213, + "id": 217, "name": "PostgrestQueryBuilder.delete" } } @@ -4724,12 +4893,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 213, + "id": 217, "name": "PostgrestQueryBuilder.delete" } }, { - "id": 183, + "id": 187, "name": "insert", "kind": 2048, "kindString": "Method", @@ -4738,7 +4907,7 @@ }, "signatures": [ { - "id": 184, + "id": 188, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -4750,7 +4919,7 @@ }, "parameters": [ { - "id": 185, + "id": 189, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -4790,7 +4959,7 @@ } }, { - "id": 186, + "id": 190, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -4808,7 +4977,7 @@ { "type": "reflection", "declaration": { - "id": 187, + "id": 191, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4817,7 +4986,7 @@ }, "children": [ { - "id": 189, + "id": 193, "name": "count", "kind": 32, "kindString": "Variable", @@ -4855,7 +5024,7 @@ } }, { - "id": 188, + "id": 192, "name": "returning", "kind": 32, "kindString": "Variable", @@ -4889,7 +5058,10 @@ { "title": "Variables", "kind": 32, - "children": [189, 188] + "children": [ + 193, + 192 + ] } ] } @@ -4910,12 +5082,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 183, + "id": 187, "name": "PostgrestQueryBuilder.insert" } }, { - "id": 190, + "id": 194, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -4932,7 +5104,7 @@ }, "parameters": [ { - "id": 191, + "id": 195, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -4969,7 +5141,7 @@ } }, { - "id": 192, + "id": 196, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -4987,7 +5159,7 @@ { "type": "reflection", "declaration": { - "id": 193, + "id": 197, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4996,7 +5168,7 @@ }, "children": [ { - "id": 197, + "id": 201, "name": "count", "kind": 32, "kindString": "Variable", @@ -5034,7 +5206,7 @@ } }, { - "id": 195, + "id": 199, "name": "onConflict", "kind": 32, "kindString": "Variable", @@ -5064,7 +5236,7 @@ } }, { - "id": 196, + "id": 200, "name": "returning", "kind": 32, "kindString": "Variable", @@ -5094,7 +5266,7 @@ } }, { - "id": 194, + "id": 198, "name": "upsert", "kind": 32, "kindString": "Variable", @@ -5132,7 +5304,12 @@ { "title": "Variables", "kind": 32, - "children": [197, 195, 196, 194] + "children": [ + 201, + 199, + 200, + 198 + ] } ] } @@ -5153,7 +5330,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 183, + "id": 187, "name": "PostgrestQueryBuilder.insert" } } @@ -5172,12 +5349,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 183, + "id": 187, "name": "PostgrestQueryBuilder.insert" } }, { - "id": 169, + "id": 173, "name": "on", "kind": 2048, "kindString": "Method", @@ -5186,7 +5363,7 @@ }, "signatures": [ { - "id": 170, + "id": 174, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -5198,7 +5375,7 @@ }, "parameters": [ { - "id": 171, + "id": 175, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -5215,7 +5392,7 @@ } }, { - "id": 172, + "id": 176, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -5228,7 +5405,7 @@ "type": { "type": "reflection", "declaration": { - "id": 173, + "id": 177, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5237,7 +5414,7 @@ }, "signatures": [ { - "id": 174, + "id": 178, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5246,7 +5423,7 @@ }, "parameters": [ { - "id": 175, + "id": 179, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -5285,7 +5462,7 @@ ], "type": { "type": "reference", - "id": 130, + "id": 131, "name": "SupabaseRealtimeClient" } } @@ -5299,7 +5476,7 @@ ] }, { - "id": 176, + "id": 180, "name": "select", "kind": 2048, "kindString": "Method", @@ -5308,7 +5485,7 @@ }, "signatures": [ { - "id": 177, + "id": 181, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -5320,7 +5497,7 @@ }, "parameters": [ { - "id": 178, + "id": 182, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -5346,7 +5523,7 @@ } }, { - "id": 179, + "id": 183, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -5358,7 +5535,7 @@ "type": { "type": "reflection", "declaration": { - "id": 180, + "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5367,7 +5544,7 @@ }, "children": [ { - "id": 182, + "id": 186, "name": "count", "kind": 32, "kindString": "Variable", @@ -5411,7 +5588,7 @@ } }, { - "id": 181, + "id": 185, "name": "head", "kind": 32, "kindString": "Variable", @@ -5451,7 +5628,10 @@ { "title": "Variables", "kind": 32, - "children": [182, 181] + "children": [ + 186, + 185 + ] } ], "sources": [ @@ -5477,7 +5657,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 176, + "id": 180, "name": "PostgrestQueryBuilder.select" } } @@ -5491,12 +5671,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 176, + "id": 180, "name": "PostgrestQueryBuilder.select" } }, { - "id": 227, + "id": 231, "name": "then", "kind": 2048, "kindString": "Method", @@ -5505,7 +5685,7 @@ }, "signatures": [ { - "id": 228, + "id": 232, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -5514,7 +5694,7 @@ }, "typeParameter": [ { - "id": 229, + "id": 233, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -5523,7 +5703,7 @@ } }, { - "id": 230, + "id": 234, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -5534,7 +5714,7 @@ ], "parameters": [ { - "id": 231, + "id": 235, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -5548,7 +5728,7 @@ { "type": "reflection", "declaration": { - "id": 232, + "id": 236, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5557,7 +5737,7 @@ }, "signatures": [ { - "id": 233, + "id": 237, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5566,7 +5746,7 @@ }, "parameters": [ { - "id": 234, + "id": 238, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -5647,7 +5827,7 @@ } }, { - "id": 235, + "id": 239, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -5661,7 +5841,7 @@ { "type": "reflection", "declaration": { - "id": 236, + "id": 240, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5670,7 +5850,7 @@ }, "signatures": [ { - "id": 237, + "id": 241, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -5679,7 +5859,7 @@ }, "parameters": [ { - "id": 238, + "id": 242, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -5777,7 +5957,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 227, + "id": 231, "name": "PostgrestBuilder.then" } } @@ -5791,12 +5971,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 227, + "id": 231, "name": "PostgrestBuilder.then" } }, { - "id": 206, + "id": 210, "name": "update", "kind": 2048, "kindString": "Method", @@ -5805,7 +5985,7 @@ }, "signatures": [ { - "id": 207, + "id": 211, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -5817,7 +5997,7 @@ }, "parameters": [ { - "id": 208, + "id": 212, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -5839,7 +6019,7 @@ } }, { - "id": 209, + "id": 213, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -5851,7 +6031,7 @@ "type": { "type": "reflection", "declaration": { - "id": 210, + "id": 214, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5860,7 +6040,7 @@ }, "children": [ { - "id": 212, + "id": 216, "name": "count", "kind": 32, "kindString": "Variable", @@ -5904,7 +6084,7 @@ } }, { - "id": 211, + "id": 215, "name": "returning", "kind": 32, "kindString": "Variable", @@ -5944,7 +6124,10 @@ { "title": "Variables", "kind": 32, - "children": [212, 211] + "children": [ + 216, + 215 + ] } ], "sources": [ @@ -5970,7 +6153,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 206, + "id": 210, "name": "PostgrestQueryBuilder.update" } } @@ -5984,12 +6167,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 206, + "id": 210, "name": "PostgrestQueryBuilder.update" } }, { - "id": 198, + "id": 202, "name": "upsert", "kind": 2048, "kindString": "Method", @@ -5998,7 +6181,7 @@ }, "signatures": [ { - "id": 199, + "id": 203, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -6010,7 +6193,7 @@ }, "parameters": [ { - "id": 200, + "id": 204, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -6050,7 +6233,7 @@ } }, { - "id": 201, + "id": 205, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -6062,7 +6245,7 @@ "type": { "type": "reflection", "declaration": { - "id": 202, + "id": 206, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6071,7 +6254,7 @@ }, "children": [ { - "id": 205, + "id": 209, "name": "count", "kind": 32, "kindString": "Variable", @@ -6115,7 +6298,7 @@ } }, { - "id": 203, + "id": 207, "name": "onConflict", "kind": 32, "kindString": "Variable", @@ -6147,7 +6330,7 @@ } }, { - "id": 204, + "id": 208, "name": "returning", "kind": 32, "kindString": "Variable", @@ -6187,7 +6370,11 @@ { "title": "Variables", "kind": 32, - "children": [205, 203, 204] + "children": [ + 209, + 207, + 208 + ] } ], "sources": [ @@ -6213,7 +6400,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 198, + "id": 202, "name": "PostgrestQueryBuilder.upsert" } } @@ -6227,7 +6414,7 @@ ], "inheritedFrom": { "type": "reference", - "id": 198, + "id": 202, "name": "PostgrestQueryBuilder.upsert" } } @@ -6236,17 +6423,35 @@ { "title": "Constructors", "kind": 512, - "children": [157] + "children": [ + 161 + ] }, { "title": "Properties", "kind": 1024, - "children": [156, 155, 226, 221, 219, 225, 220] + "children": [ + 160, + 159, + 230, + 225, + 223, + 229, + 224 + ] }, { "title": "Methods", "kind": 2048, - "children": [213, 183, 169, 176, 227, 206, 198] + "children": [ + 217, + 187, + 173, + 180, + 231, + 210, + 202 + ] } ], "sources": [ @@ -6292,7 +6497,9 @@ { "title": "Classes", "kind": 128, - "children": [153] + "children": [ + 157 + ] } ], "sources": [ @@ -6304,7 +6511,7 @@ ] }, { - "id": 129, + "id": 130, "name": "\"lib/SupabaseRealtimeClient\"", "kind": 1, "kindString": "Module", @@ -6314,7 +6521,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts", "children": [ { - "id": 130, + "id": 131, "name": "SupabaseRealtimeClient", "kind": 128, "kindString": "Class", @@ -6323,7 +6530,7 @@ }, "children": [ { - "id": 132, + "id": 133, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -6332,7 +6539,7 @@ }, "signatures": [ { - "id": 133, + "id": 134, "name": "new SupabaseRealtimeClient", "kind": 16384, "kindString": "Constructor signature", @@ -6341,7 +6548,7 @@ }, "parameters": [ { - "id": 134, + "id": 135, "name": "socket", "kind": 32768, "kindString": "Parameter", @@ -6354,7 +6561,7 @@ } }, { - "id": 135, + "id": 136, "name": "schema", "kind": 32768, "kindString": "Parameter", @@ -6367,7 +6574,7 @@ } }, { - "id": 136, + "id": 137, "name": "tableName", "kind": 32768, "kindString": "Parameter", @@ -6382,7 +6589,7 @@ ], "type": { "type": "reference", - "id": 130, + "id": 131, "name": "SupabaseRealtimeClient" } } @@ -6396,7 +6603,7 @@ ] }, { - "id": 131, + "id": 132, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -6416,7 +6623,7 @@ } }, { - "id": 137, + "id": 138, "name": "getPayloadRecords", "kind": 2048, "kindString": "Method", @@ -6426,7 +6633,7 @@ }, "signatures": [ { - "id": 138, + "id": 139, "name": "getPayloadRecords", "kind": 4096, "kindString": "Call signature", @@ -6435,7 +6642,7 @@ }, "parameters": [ { - "id": 139, + "id": 140, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -6451,7 +6658,7 @@ "type": { "type": "reflection", "declaration": { - "id": 140, + "id": 141, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6460,7 +6667,7 @@ }, "children": [ { - "id": 141, + "id": 142, "name": "new", "kind": 32, "kindString": "Variable", @@ -6477,7 +6684,7 @@ "type": { "type": "reflection", "declaration": { - "id": 142, + "id": 143, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6488,7 +6695,7 @@ } }, { - "id": 143, + "id": 144, "name": "old", "kind": 32, "kindString": "Variable", @@ -6505,7 +6712,7 @@ "type": { "type": "reflection", "declaration": { - "id": 144, + "id": 145, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6520,7 +6727,10 @@ { "title": "Variables", "kind": 32, - "children": [141, 143] + "children": [ + 142, + 144 + ] } ] } @@ -6536,7 +6746,7 @@ ] }, { - "id": 145, + "id": 146, "name": "on", "kind": 2048, "kindString": "Method", @@ -6545,7 +6755,7 @@ }, "signatures": [ { - "id": 146, + "id": 147, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -6557,7 +6767,7 @@ }, "parameters": [ { - "id": 147, + "id": 148, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -6574,7 +6784,7 @@ } }, { - "id": 148, + "id": 149, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -6585,8 +6795,60 @@ "text": "A callback function that is called whenever the event occurs.\n" }, "type": { - "type": "reference", - "name": "Function" + "type": "reflection", + "declaration": { + "id": 150, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 151, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 152, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 16, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "SupabaseRealtimePayload" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 35, + "character": 41 + } + ] + } } } ], @@ -6605,7 +6867,7 @@ ] }, { - "id": 149, + "id": 153, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -6614,7 +6876,7 @@ }, "signatures": [ { - "id": 150, + "id": 154, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -6626,7 +6888,7 @@ }, "parameters": [ { - "id": 151, + "id": 155, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -6659,17 +6921,25 @@ { "title": "Constructors", "kind": 512, - "children": [132] + "children": [ + 133 + ] }, { "title": "Properties", "kind": 1024, - "children": [131] + "children": [ + 132 + ] }, { "title": "Methods", "kind": 2048, - "children": [137, 145, 149] + "children": [ + 138, + 146, + 153 + ] } ], "sources": [ @@ -6685,7 +6955,9 @@ { "title": "Classes", "kind": 128, - "children": [130] + "children": [ + 131 + ] } ], "sources": [ @@ -6740,7 +7012,9 @@ { "title": "Variables", "kind": 32, - "children": [2] + "children": [ + 2 + ] } ], "sources": [ @@ -6752,7 +7026,7 @@ ] }, { - "id": 308, + "id": 312, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", @@ -6762,7 +7036,7 @@ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts", "children": [ { - "id": 309, + "id": 313, "name": "uuid", "kind": 64, "kindString": "Function", @@ -6771,7 +7045,7 @@ }, "signatures": [ { - "id": 310, + "id": 314, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -6797,7 +7071,9 @@ { "title": "Functions", "kind": 64, - "children": [309] + "children": [ + 313 + ] } ], "sources": [ @@ -7088,7 +7364,14 @@ { "title": "Variables", "kind": 32, - "children": [12, 14, 8, 15, 13, 7] + "children": [ + 12, + 14, + 8, + 15, + 13, + 7 + ] } ], "sources": [ @@ -7319,7 +7602,14 @@ { "title": "Variables", "kind": 32, - "children": [19, 20, 23, 24, 21, 22] + "children": [ + 19, + 20, + 23, + 24, + 21, + 22 + ] } ], "sources": [ @@ -7337,7 +7627,11 @@ { "title": "Type aliases", "kind": 4194304, - "children": [5, 25, 16] + "children": [ + 5, + 25, + 16 + ] } ], "sources": [ @@ -7353,7 +7647,16 @@ { "title": "Modules", "kind": 1, - "children": [239, 302, 26, 152, 129, 1, 308, 4] + "children": [ + 243, + 306, + 26, + 156, + 130, + 1, + 312, + 4 + ] } ] }, @@ -7365,7 +7668,7 @@ "originalName": "", "children": [ { - "id": 196, + "id": 197, "name": "\"GoTrueApi\"", "kind": 1, "kindString": "Module", @@ -7375,7 +7678,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts", "children": [ { - "id": 197, + "id": 198, "name": "GoTrueApi", "kind": 128, "kindString": "Class", @@ -7384,7 +7687,7 @@ }, "children": [ { - "id": 204, + "id": 205, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -7393,7 +7696,7 @@ }, "signatures": [ { - "id": 205, + "id": 206, "name": "new GoTrueApi", "kind": 16384, "kindString": "Constructor signature", @@ -7402,7 +7705,7 @@ }, "parameters": [ { - "id": 206, + "id": 207, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -7413,7 +7716,7 @@ "type": { "type": "reflection", "declaration": { - "id": 207, + "id": 208, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7422,7 +7725,7 @@ }, "children": [ { - "id": 213, + "id": 214, "name": "cookieOptions", "kind": 32, "kindString": "Variable", @@ -7452,7 +7755,7 @@ } }, { - "id": 209, + "id": 210, "name": "headers", "kind": 32, "kindString": "Variable", @@ -7469,7 +7772,7 @@ "type": { "type": "reflection", "declaration": { - "id": 210, + "id": 211, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7478,7 +7781,7 @@ }, "indexSignature": [ { - "id": 211, + "id": 212, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -7487,7 +7790,7 @@ }, "parameters": [ { - "id": 212, + "id": 213, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7510,7 +7813,7 @@ } }, { - "id": 208, + "id": 209, "name": "url", "kind": 32, "kindString": "Variable", @@ -7535,7 +7838,11 @@ { "title": "Variables", "kind": 32, - "children": [213, 209, 208] + "children": [ + 214, + 210, + 209 + ] } ], "sources": [ @@ -7551,7 +7858,7 @@ ], "type": { "type": "reference", - "id": 197, + "id": 198, "name": "GoTrueApi" } } @@ -7565,7 +7872,7 @@ ] }, { - "id": 203, + "id": 204, "name": "cookieOptions", "kind": 1024, "kindString": "Property", @@ -7587,7 +7894,7 @@ } }, { - "id": 199, + "id": 200, "name": "headers", "kind": 1024, "kindString": "Property", @@ -7605,7 +7912,7 @@ "type": { "type": "reflection", "declaration": { - "id": 200, + "id": 201, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7614,7 +7921,7 @@ }, "indexSignature": [ { - "id": 201, + "id": 202, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -7623,7 +7930,7 @@ }, "parameters": [ { - "id": 202, + "id": 203, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7653,7 +7960,7 @@ } }, { - "id": 198, + "id": 199, "name": "url", "kind": 1024, "kindString": "Property", @@ -7729,7 +8036,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 165, + "line": 166, "character": 31 } ] @@ -7813,7 +8120,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 253, + "line": 254, "character": 38 } ], @@ -7843,7 +8150,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 253, + "line": 254, "character": 58 } ], @@ -7872,7 +8179,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 253, + "line": 254, "character": 19 } ], @@ -7896,13 +8203,17 @@ { "title": "Variables", "kind": 32, - "children": [301, 302, 300] + "children": [ + 301, + 302, + 300 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 253, + "line": 254, "character": 13 } ] @@ -7916,7 +8227,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 250, + "line": 251, "character": 18 } ] @@ -7955,7 +8266,7 @@ }, "type": { "type": "reference", - "id": 102, + "id": 103, "name": "Provider" } }, @@ -7990,7 +8301,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 197, + "line": 198, "character": 16 } ], @@ -8020,7 +8331,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 198, + "line": 199, "character": 12 } ], @@ -8043,13 +8354,16 @@ { "title": "Variables", "kind": 32, - "children": [278, 279] + "children": [ + 278, + 279 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 196, + "line": 197, "character": 12 } ] @@ -8066,7 +8380,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 194, + "line": 195, "character": 19 } ] @@ -8134,7 +8448,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 217, + "line": 218, "character": 38 } ], @@ -8164,7 +8478,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 217, + "line": 218, "character": 58 } ], @@ -8193,7 +8507,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 217, + "line": 218, "character": 19 } ], @@ -8217,13 +8531,17 @@ { "title": "Variables", "kind": 32, - "children": [285, 286, 284] + "children": [ + 285, + 286, + 284 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 217, + "line": 218, "character": 13 } ] @@ -8237,7 +8555,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 215, + "line": 216, "character": 15 } ] @@ -8302,7 +8620,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 321, + "line": 322, "character": 38 } ], @@ -8332,7 +8650,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 321, + "line": 322, "character": 58 } ], @@ -8361,7 +8679,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 321, + "line": 322, "character": 19 } ], @@ -8385,13 +8703,17 @@ { "title": "Variables", "kind": 32, - "children": [318, 319, 317] + "children": [ + 318, + 319, + 317 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 321, + "line": 322, "character": 13 } ] @@ -8405,13 +8727,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 319, + "line": 320, "character": 23 } ] }, { - "id": 244, + "id": 245, "name": "inviteUserByEmail", "kind": 2048, "kindString": "Method", @@ -8420,7 +8742,7 @@ }, "signatures": [ { - "id": 245, + "id": 246, "name": "inviteUserByEmail", "kind": 4096, "kindString": "Call signature", @@ -8432,7 +8754,7 @@ }, "parameters": [ { - "id": 246, + "id": 247, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -8448,7 +8770,7 @@ } }, { - "id": 247, + "id": 248, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -8458,7 +8780,7 @@ "type": { "type": "reflection", "declaration": { - "id": 248, + "id": 249, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8467,7 +8789,7 @@ }, "children": [ { - "id": 249, + "id": 250, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -8478,7 +8800,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 122, + "line": 121, "character": 16 } ], @@ -8501,13 +8823,15 @@ { "title": "Variables", "kind": 32, - "children": [249] + "children": [ + 250 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 121, + "line": 120, "character": 12 } ] @@ -8522,7 +8846,7 @@ { "type": "reflection", "declaration": { - "id": 250, + "id": 251, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8531,7 +8855,7 @@ }, "children": [ { - "id": 251, + "id": 252, "name": "data", "kind": 32, "kindString": "Variable", @@ -8541,7 +8865,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 124, + "line": 123, "character": 19 } ], @@ -8549,23 +8873,9 @@ "type": "union", "types": [ { - "type": "reflection", - "declaration": { - "id": 252, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 124, - "character": 20 - } - ] - } + "type": "reference", + "id": 58, + "name": "User" }, { "type": "intrinsic", @@ -8585,8 +8895,8 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 124, - "character": 37 + "line": 123, + "character": 39 } ], "type": { @@ -8608,13 +8918,16 @@ { "title": "Variables", "kind": 32, - "children": [251, 253] + "children": [ + 252, + 253 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 124, + "line": 123, "character": 13 } ] @@ -8628,7 +8941,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 119, + "line": 118, "character": 25 } ] @@ -8696,7 +9009,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 274, + "line": 275, "character": 19 } ], @@ -8726,7 +9039,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 274, + "line": 275, "character": 42 } ], @@ -8749,13 +9062,16 @@ { "title": "Variables", "kind": 32, - "children": [307, 308] + "children": [ + 307, + 308 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 274, + "line": 275, "character": 13 } ] @@ -8769,7 +9085,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 272, + "line": 273, "character": 26 } ] @@ -8865,7 +9181,9 @@ { "title": "Variables", "kind": 32, - "children": [259] + "children": [ + 259 + ] } ], "sources": [ @@ -8972,7 +9290,10 @@ { "title": "Variables", "kind": 32, - "children": [261, 263] + "children": [ + 261, + 263 + ] } ], "sources": [ @@ -8998,7 +9319,7 @@ ] }, { - "id": 234, + "id": 235, "name": "sendMagicLinkEmail", "kind": 2048, "kindString": "Method", @@ -9007,7 +9328,7 @@ }, "signatures": [ { - "id": 235, + "id": 236, "name": "sendMagicLinkEmail", "kind": 4096, "kindString": "Call signature", @@ -9019,7 +9340,7 @@ }, "parameters": [ { - "id": 236, + "id": 237, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -9035,7 +9356,7 @@ } }, { - "id": 237, + "id": 238, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -9045,7 +9366,7 @@ "type": { "type": "reflection", "declaration": { - "id": 238, + "id": 239, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9054,7 +9375,7 @@ }, "children": [ { - "id": 239, + "id": 240, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -9065,7 +9386,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 99, + "line": 97, "character": 16 } ], @@ -9088,13 +9409,15 @@ { "title": "Variables", "kind": 32, - "children": [239] + "children": [ + 240 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 98, + "line": 96, "character": 12 } ] @@ -9109,7 +9432,7 @@ { "type": "reflection", "declaration": { - "id": 240, + "id": 241, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9118,7 +9441,7 @@ }, "children": [ { - "id": 241, + "id": 242, "name": "data", "kind": 32, "kindString": "Variable", @@ -9128,7 +9451,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 101, + "line": 99, "character": 19 } ], @@ -9138,7 +9461,7 @@ { "type": "reflection", "declaration": { - "id": 242, + "id": 243, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9148,7 +9471,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 101, + "line": 99, "character": 20 } ] @@ -9162,7 +9485,7 @@ } }, { - "id": 243, + "id": 244, "name": "error", "kind": 32, "kindString": "Variable", @@ -9172,7 +9495,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 101, + "line": 99, "character": 37 } ], @@ -9195,13 +9518,16 @@ { "title": "Variables", "kind": 32, - "children": [241, 243] + "children": [ + 242, + 244 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 101, + "line": 99, "character": 13 } ] @@ -9215,7 +9541,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 96, + "line": 94, "character": 26 } ] @@ -9277,13 +9603,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 293, + "line": 294, "character": 15 } ] }, { - "id": 224, + "id": 225, "name": "signInWithEmail", "kind": 2048, "kindString": "Method", @@ -9292,7 +9618,7 @@ }, "signatures": [ { - "id": 225, + "id": 226, "name": "signInWithEmail", "kind": 4096, "kindString": "Call signature", @@ -9304,7 +9630,7 @@ }, "parameters": [ { - "id": 226, + "id": 227, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -9320,7 +9646,7 @@ } }, { - "id": 227, + "id": 228, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -9336,7 +9662,7 @@ } }, { - "id": 228, + "id": 229, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -9346,7 +9672,7 @@ "type": { "type": "reflection", "declaration": { - "id": 229, + "id": 230, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9355,7 +9681,7 @@ }, "children": [ { - "id": 230, + "id": 231, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -9366,7 +9692,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 70, + "line": 71, "character": 16 } ], @@ -9389,13 +9715,15 @@ { "title": "Variables", "kind": 32, - "children": [230] + "children": [ + 231 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 69, + "line": 70, "character": 12 } ] @@ -9410,7 +9738,7 @@ { "type": "reflection", "declaration": { - "id": 231, + "id": 232, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9419,7 +9747,7 @@ }, "children": [ { - "id": 232, + "id": 233, "name": "data", "kind": 32, "kindString": "Variable", @@ -9429,7 +9757,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 72, + "line": 73, "character": 19 } ], @@ -9449,7 +9777,7 @@ } }, { - "id": 233, + "id": 234, "name": "error", "kind": 32, "kindString": "Variable", @@ -9459,7 +9787,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 72, + "line": 73, "character": 42 } ], @@ -9482,13 +9810,16 @@ { "title": "Variables", "kind": 32, - "children": [232, 233] + "children": [ + 233, + 234 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 72, + "line": 73, "character": 13 } ] @@ -9502,7 +9833,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 66, + "line": 67, "character": 23 } ] @@ -9570,7 +9901,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 175, + "line": 176, "character": 45 } ], @@ -9593,13 +9924,15 @@ { "title": "Variables", "kind": 32, - "children": [272] + "children": [ + 272 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 175, + "line": 176, "character": 38 } ] @@ -9613,13 +9946,13 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 175, + "line": 176, "character": 15 } ] }, { - "id": 214, + "id": 215, "name": "signUpWithEmail", "kind": 2048, "kindString": "Method", @@ -9628,7 +9961,7 @@ }, "signatures": [ { - "id": 215, + "id": 216, "name": "signUpWithEmail", "kind": 4096, "kindString": "Call signature", @@ -9641,7 +9974,7 @@ }, "parameters": [ { - "id": 216, + "id": 217, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -9657,7 +9990,7 @@ } }, { - "id": 217, + "id": 218, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -9673,7 +10006,7 @@ } }, { - "id": 218, + "id": 219, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -9683,7 +10016,7 @@ "type": { "type": "reflection", "declaration": { - "id": 219, + "id": 220, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9692,7 +10025,7 @@ }, "children": [ { - "id": 220, + "id": 221, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -9726,7 +10059,9 @@ { "title": "Variables", "kind": 32, - "children": [220] + "children": [ + 221 + ] } ], "sources": [ @@ -9747,7 +10082,7 @@ { "type": "reflection", "declaration": { - "id": 221, + "id": 222, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -9756,7 +10091,7 @@ }, "children": [ { - "id": 222, + "id": 223, "name": "data", "kind": 32, "kindString": "Variable", @@ -9791,7 +10126,7 @@ } }, { - "id": 223, + "id": 224, "name": "error", "kind": 32, "kindString": "Variable", @@ -9824,7 +10159,10 @@ { "title": "Variables", "kind": 32, - "children": [222, 223] + "children": [ + 223, + 224 + ] } ], "sources": [ @@ -9929,7 +10267,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 234, + "line": 235, "character": 38 } ], @@ -9959,7 +10297,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 234, + "line": 235, "character": 58 } ], @@ -9988,7 +10326,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 234, + "line": 235, "character": 19 } ], @@ -10012,13 +10350,17 @@ { "title": "Variables", "kind": 32, - "children": [293, 294, 292] + "children": [ + 293, + 294, + 292 + ] } ], "sources": [ { "fileName": "GoTrueApi.ts", - "line": 234, + "line": 235, "character": 13 } ] @@ -10032,7 +10374,7 @@ "sources": [ { "fileName": "GoTrueApi.ts", - "line": 231, + "line": 232, "character": 18 } ] @@ -10042,17 +10384,38 @@ { "title": "Constructors", "kind": 512, - "children": [204] + "children": [ + 205 + ] }, { "title": "Properties", "kind": 1024, - "children": [203, 199, 198] + "children": [ + 204, + 200, + 199 + ] }, { "title": "Methods", "kind": 2048, - "children": [264, 295, 273, 280, 313, 244, 303, 254, 234, 309, 224, 268, 214, 287] + "children": [ + 264, + 295, + 273, + 280, + 313, + 245, + 303, + 254, + 235, + 309, + 225, + 268, + 215, + 287 + ] } ], "sources": [ @@ -10068,7 +10431,9 @@ { "title": "Classes", "kind": 128, - "children": [197] + "children": [ + 198 + ] } ], "sources": [ @@ -10407,7 +10772,15 @@ { "title": "Variables", "kind": 32, - "children": [343, 346, 342, 338, 345, 344, 337] + "children": [ + 343, + 346, + 342, + 338, + 345, + 344, + 337 + ] } ], "sources": [ @@ -10456,7 +10829,7 @@ ], "type": { "type": "reference", - "id": 197, + "id": 198, "name": "GoTrueApi" } }, @@ -10656,7 +11029,7 @@ "defaultValue": "new Map()" }, { - "id": 467, + "id": 468, "name": "_callRefreshToken", "kind": 2048, "kindString": "Method", @@ -10666,7 +11039,7 @@ }, "signatures": [ { - "id": 468, + "id": 469, "name": "_callRefreshToken", "kind": 4096, "kindString": "Call signature", @@ -10675,7 +11048,7 @@ }, "parameters": [ { - "id": 469, + "id": 470, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -10707,7 +11080,7 @@ { "type": "reflection", "declaration": { - "id": 470, + "id": 471, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10716,7 +11089,7 @@ }, "children": [ { - "id": 471, + "id": 472, "name": "data", "kind": 32, "kindString": "Variable", @@ -10726,7 +11099,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 519, + "line": 532, "character": 19 } ], @@ -10737,7 +11110,7 @@ } }, { - "id": 472, + "id": 473, "name": "error", "kind": 32, "kindString": "Variable", @@ -10747,7 +11120,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 519, + "line": 532, "character": 26 } ], @@ -10762,7 +11135,10 @@ { "title": "Variables", "kind": 32, - "children": [471, 472] + "children": [ + 472, + 473 + ] } ] } @@ -10770,7 +11146,7 @@ { "type": "reflection", "declaration": { - "id": 473, + "id": 474, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10779,7 +11155,7 @@ }, "children": [ { - "id": 474, + "id": 475, "name": "data", "kind": 32, "kindString": "Variable", @@ -10789,7 +11165,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 521, + "line": 534, "character": 19 } ], @@ -10800,7 +11176,7 @@ "defaultValue": "null" }, { - "id": 475, + "id": 476, "name": "error", "kind": 32, "kindString": "Variable", @@ -10810,7 +11186,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 521, + "line": 534, "character": 32 } ], @@ -10824,7 +11200,10 @@ { "title": "Variables", "kind": 32, - "children": [474, 475] + "children": [ + 475, + 476 + ] } ] } @@ -10839,13 +11218,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 507, + "line": 520, "character": 33 } ] }, { - "id": 427, + "id": 428, "name": "_handleEmailSignIn", "kind": 2048, "kindString": "Method", @@ -10855,7 +11234,7 @@ }, "signatures": [ { - "id": 428, + "id": 429, "name": "_handleEmailSignIn", "kind": 4096, "kindString": "Call signature", @@ -10864,7 +11243,7 @@ }, "parameters": [ { - "id": 429, + "id": 430, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -10877,7 +11256,7 @@ } }, { - "id": 430, + "id": 431, "name": "password", "kind": 32768, "kindString": "Parameter", @@ -10890,7 +11269,7 @@ } }, { - "id": 431, + "id": 432, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -10900,7 +11279,7 @@ "type": { "type": "reflection", "declaration": { - "id": 432, + "id": 433, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10909,7 +11288,7 @@ }, "children": [ { - "id": 433, + "id": 434, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -10920,7 +11299,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 398, + "line": 411, "character": 16 } ], @@ -10943,13 +11322,15 @@ { "title": "Variables", "kind": 32, - "children": [433] + "children": [ + 434 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 397, + "line": 410, "character": 12 } ] @@ -10967,7 +11348,7 @@ { "type": "reflection", "declaration": { - "id": 434, + "id": 435, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -10976,7 +11357,7 @@ }, "children": [ { - "id": 435, + "id": 436, "name": "data", "kind": 32, "kindString": "Variable", @@ -10986,7 +11367,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 412, + "line": 425, "character": 19 } ], @@ -10997,7 +11378,7 @@ } }, { - "id": 438, + "id": 439, "name": "error", "kind": 32, "kindString": "Variable", @@ -11007,7 +11388,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 412, + "line": 425, "character": 58 } ], @@ -11018,7 +11399,7 @@ "defaultValue": "null" }, { - "id": 437, + "id": 438, "name": "session", "kind": 32, "kindString": "Variable", @@ -11028,7 +11409,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 412, + "line": 425, "character": 45 } ], @@ -11040,7 +11421,7 @@ "defaultValue": "data" }, { - "id": 436, + "id": 437, "name": "user", "kind": 32, "kindString": "Variable", @@ -11050,7 +11431,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 412, + "line": 425, "character": 25 } ], @@ -11075,7 +11456,12 @@ { "title": "Variables", "kind": 32, - "children": [435, 438, 437, 436] + "children": [ + 436, + 439, + 438, + 437 + ] } ] } @@ -11083,7 +11469,7 @@ { "type": "reflection", "declaration": { - "id": 439, + "id": 440, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11092,7 +11478,7 @@ }, "children": [ { - "id": 440, + "id": 441, "name": "data", "kind": 32, "kindString": "Variable", @@ -11102,7 +11488,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 414, + "line": 427, "character": 19 } ], @@ -11113,7 +11499,7 @@ "defaultValue": "null" }, { - "id": 443, + "id": 444, "name": "error", "kind": 32, "kindString": "Variable", @@ -11123,7 +11509,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 414, + "line": 427, "character": 59 } ], @@ -11133,7 +11519,7 @@ } }, { - "id": 442, + "id": 443, "name": "session", "kind": 32, "kindString": "Variable", @@ -11143,7 +11529,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 414, + "line": 427, "character": 46 } ], @@ -11154,7 +11540,7 @@ "defaultValue": "null" }, { - "id": 441, + "id": 442, "name": "user", "kind": 32, "kindString": "Variable", @@ -11164,7 +11550,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 414, + "line": 427, "character": 31 } ], @@ -11179,7 +11565,12 @@ { "title": "Variables", "kind": 32, - "children": [440, 443, 442, 441] + "children": [ + 441, + 444, + 443, + 442 + ] } ] } @@ -11194,13 +11585,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 394, + "line": 407, "character": 34 } ] }, { - "id": 444, + "id": 445, "name": "_handleProviderSignIn", "kind": 2048, "kindString": "Method", @@ -11210,7 +11601,7 @@ }, "signatures": [ { - "id": 445, + "id": 446, "name": "_handleProviderSignIn", "kind": 4096, "kindString": "Call signature", @@ -11219,7 +11610,7 @@ }, "parameters": [ { - "id": 446, + "id": 447, "name": "provider", "kind": 32768, "kindString": "Parameter", @@ -11228,12 +11619,12 @@ }, "type": { "type": "reference", - "id": 102, + "id": 103, "name": "Provider" } }, { - "id": 447, + "id": 448, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11243,7 +11634,7 @@ "type": { "type": "reflection", "declaration": { - "id": 448, + "id": 449, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11252,7 +11643,7 @@ }, "children": [ { - "id": 449, + "id": 450, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -11263,7 +11654,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 421, + "line": 434, "character": 16 } ], @@ -11282,7 +11673,7 @@ } }, { - "id": 450, + "id": 451, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -11293,7 +11684,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 422, + "line": 435, "character": 12 } ], @@ -11316,13 +11707,16 @@ { "title": "Variables", "kind": 32, - "children": [449, 450] + "children": [ + 450, + 451 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 420, + "line": 433, "character": 12 } ] @@ -11337,7 +11731,7 @@ { "type": "reflection", "declaration": { - "id": 451, + "id": 452, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11346,7 +11740,7 @@ }, "children": [ { - "id": 454, + "id": 455, "name": "data", "kind": 32, "kindString": "Variable", @@ -11356,7 +11750,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 435, + "line": 448, "character": 34 } ], @@ -11367,7 +11761,7 @@ "defaultValue": "null" }, { - "id": 457, + "id": 458, "name": "error", "kind": 32, "kindString": "Variable", @@ -11377,7 +11771,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 435, + "line": 448, "character": 74 } ], @@ -11388,7 +11782,7 @@ "defaultValue": "null" }, { - "id": 452, + "id": 453, "name": "provider", "kind": 32, "kindString": "Variable", @@ -11398,18 +11792,18 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 435, + "line": 448, "character": 23 } ], "type": { "type": "reference", - "id": 102, + "id": 103, "name": "Provider" } }, { - "id": 455, + "id": 456, "name": "session", "kind": 32, "kindString": "Variable", @@ -11419,7 +11813,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 435, + "line": 448, "character": 49 } ], @@ -11430,7 +11824,7 @@ "defaultValue": "null" }, { - "id": 453, + "id": 454, "name": "url", "kind": 32, "kindString": "Variable", @@ -11440,7 +11834,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 435, + "line": 448, "character": 28 } ], @@ -11450,7 +11844,7 @@ } }, { - "id": 456, + "id": 457, "name": "user", "kind": 32, "kindString": "Variable", @@ -11460,7 +11854,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 435, + "line": 448, "character": 61 } ], @@ -11475,7 +11869,14 @@ { "title": "Variables", "kind": 32, - "children": [454, 457, 452, 455, 453, 456] + "children": [ + 455, + 458, + 453, + 456, + 454, + 457 + ] } ] } @@ -11483,7 +11884,7 @@ { "type": "reflection", "declaration": { - "id": 458, + "id": 459, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11492,7 +11893,7 @@ }, "children": [ { - "id": 459, + "id": 460, "name": "data", "kind": 32, "kindString": "Variable", @@ -11502,7 +11903,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 439, + "line": 452, "character": 19 } ], @@ -11513,7 +11914,7 @@ "defaultValue": "null" }, { - "id": 462, + "id": 463, "name": "error", "kind": 32, "kindString": "Variable", @@ -11523,7 +11924,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 439, + "line": 452, "character": 59 } ], @@ -11533,7 +11934,7 @@ } }, { - "id": 461, + "id": 462, "name": "session", "kind": 32, "kindString": "Variable", @@ -11543,7 +11944,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 439, + "line": 452, "character": 46 } ], @@ -11554,7 +11955,7 @@ "defaultValue": "null" }, { - "id": 460, + "id": 461, "name": "user", "kind": 32, "kindString": "Variable", @@ -11564,7 +11965,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 439, + "line": 452, "character": 31 } ], @@ -11579,7 +11980,12 @@ { "title": "Variables", "kind": 32, - "children": [459, 462, 461, 460] + "children": [ + 460, + 463, + 462, + 461 + ] } ] } @@ -11591,13 +11997,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 418, + "line": 431, "character": 31 } ] }, { - "id": 476, + "id": 477, "name": "_notifyAllSubscribers", "kind": 2048, "kindString": "Method", @@ -11607,7 +12013,7 @@ }, "signatures": [ { - "id": 477, + "id": 478, "name": "_notifyAllSubscribers", "kind": 4096, "kindString": "Call signature", @@ -11616,7 +12022,7 @@ }, "parameters": [ { - "id": 478, + "id": 479, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -11625,7 +12031,7 @@ }, "type": { "type": "reference", - "id": 103, + "id": 104, "name": "AuthChangeEvent" } } @@ -11639,13 +12045,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 525, + "line": 538, "character": 31 } ] }, { - "id": 482, + "id": 483, "name": "_persistSession", "kind": 2048, "kindString": "Method", @@ -11655,7 +12061,7 @@ }, "signatures": [ { - "id": 483, + "id": 484, "name": "_persistSession", "kind": 4096, "kindString": "Call signature", @@ -11664,7 +12070,7 @@ }, "parameters": [ { - "id": 484, + "id": 485, "name": "currentSession", "kind": 32768, "kindString": "Parameter", @@ -11687,13 +12093,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 548, + "line": 561, "character": 25 } ] }, { - "id": 465, + "id": 466, "name": "_recoverAndRefresh", "kind": 2048, "kindString": "Method", @@ -11703,7 +12109,7 @@ }, "signatures": [ { - "id": 466, + "id": 467, "name": "_recoverAndRefresh", "kind": 4096, "kindString": "Call signature", @@ -11737,13 +12143,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 471, + "line": 484, "character": 34 } ] }, { - "id": 463, + "id": 464, "name": "_recoverSession", "kind": 2048, "kindString": "Method", @@ -11753,7 +12159,7 @@ }, "signatures": [ { - "id": 464, + "id": 465, "name": "_recoverSession", "kind": 4096, "kindString": "Call signature", @@ -11781,13 +12187,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 447, + "line": 460, "character": 25 } ] }, { - "id": 485, + "id": 486, "name": "_removeSession", "kind": 2048, "kindString": "Method", @@ -11797,7 +12203,7 @@ }, "signatures": [ { - "id": 486, + "id": 487, "name": "_removeSession", "kind": 4096, "kindString": "Call signature", @@ -11819,13 +12225,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 553, + "line": 566, "character": 30 } ] }, { - "id": 479, + "id": 480, "name": "_saveSession", "kind": 2048, "kindString": "Method", @@ -11835,7 +12241,7 @@ }, "signatures": [ { - "id": 480, + "id": 481, "name": "_saveSession", "kind": 4096, "kindString": "Call signature", @@ -11847,7 +12253,7 @@ }, "parameters": [ { - "id": 481, + "id": 482, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -11870,13 +12276,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 533, + "line": 546, "character": 22 } ] }, { - "id": 487, + "id": 488, "name": "_startAutoRefreshToken", "kind": 2048, "kindString": "Method", @@ -11886,7 +12292,7 @@ }, "signatures": [ { - "id": 488, + "id": 489, "name": "_startAutoRefreshToken", "kind": 4096, "kindString": "Call signature", @@ -11898,7 +12304,7 @@ }, "parameters": [ { - "id": 489, + "id": 490, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -11923,13 +12329,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 564, + "line": 577, "character": 32 } ] }, { - "id": 405, + "id": 406, "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", @@ -11938,7 +12344,7 @@ }, "signatures": [ { - "id": 406, + "id": 407, "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", @@ -11950,7 +12356,7 @@ }, "parameters": [ { - "id": 407, + "id": 408, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -11968,7 +12374,7 @@ { "type": "reflection", "declaration": { - "id": 408, + "id": 409, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -11977,7 +12383,7 @@ }, "children": [ { - "id": 409, + "id": 410, "name": "storeSession", "kind": 32, "kindString": "Variable", @@ -11991,7 +12397,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 304, + "line": 317, "character": 16 } ], @@ -12018,7 +12424,9 @@ { "title": "Variables", "kind": 32, - "children": [409] + "children": [ + 410 + ] } ] } @@ -12033,7 +12441,7 @@ { "type": "reflection", "declaration": { - "id": 410, + "id": 411, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12042,7 +12450,7 @@ }, "children": [ { - "id": 411, + "id": 412, "name": "data", "kind": 32, "kindString": "Variable", @@ -12052,7 +12460,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 305, + "line": 318, "character": 20 } ], @@ -12072,7 +12480,7 @@ } }, { - "id": 412, + "id": 413, "name": "error", "kind": 32, "kindString": "Variable", @@ -12082,7 +12490,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 305, + "line": 318, "character": 43 } ], @@ -12105,13 +12513,16 @@ { "title": "Variables", "kind": 32, - "children": [411, 412] + "children": [ + 412, + 413 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 305, + "line": 318, "character": 14 } ] @@ -12125,13 +12536,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 303, + "line": 316, "character": 25 } ] }, { - "id": 417, + "id": 418, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -12140,7 +12551,7 @@ }, "signatures": [ { - "id": 418, + "id": 419, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", @@ -12153,7 +12564,7 @@ }, "parameters": [ { - "id": 419, + "id": 420, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -12163,7 +12574,7 @@ "type": { "type": "reflection", "declaration": { - "id": 420, + "id": 421, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12172,7 +12583,7 @@ }, "signatures": [ { - "id": 421, + "id": 422, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -12181,7 +12592,7 @@ }, "parameters": [ { - "id": 422, + "id": 423, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -12190,12 +12601,12 @@ }, "type": { "type": "reference", - "id": 103, + "id": 104, "name": "AuthChangeEvent" } }, { - "id": 423, + "id": 424, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -12227,7 +12638,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 375, + "line": 388, "character": 13 } ] @@ -12238,7 +12649,7 @@ "type": { "type": "reflection", "declaration": { - "id": 424, + "id": 425, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12247,7 +12658,7 @@ }, "children": [ { - "id": 425, + "id": 426, "name": "data", "kind": 32, "kindString": "Variable", @@ -12257,7 +12668,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 376, + "line": 389, "character": 11 } ], @@ -12277,7 +12688,7 @@ } }, { - "id": 426, + "id": 427, "name": "error", "kind": 32, "kindString": "Variable", @@ -12287,7 +12698,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 376, + "line": 389, "character": 39 } ], @@ -12310,13 +12721,16 @@ { "title": "Variables", "kind": 32, - "children": [425, 426] + "children": [ + 426, + 427 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 376, + "line": 389, "character": 4 } ] @@ -12327,13 +12741,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 374, + "line": 387, "character": 19 } ] }, { - "id": 383, + "id": 384, "name": "refreshSession", "kind": 2048, "kindString": "Method", @@ -12342,7 +12756,7 @@ }, "signatures": [ { - "id": 384, + "id": 385, "name": "refreshSession", "kind": 4096, "kindString": "Call signature", @@ -12358,7 +12772,7 @@ { "type": "reflection", "declaration": { - "id": 385, + "id": 386, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12367,7 +12781,7 @@ }, "children": [ { - "id": 386, + "id": 387, "name": "data", "kind": 32, "kindString": "Variable", @@ -12377,7 +12791,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 211, + "line": 224, "character": 8 } ], @@ -12397,7 +12811,7 @@ } }, { - "id": 388, + "id": 389, "name": "error", "kind": 32, "kindString": "Variable", @@ -12407,7 +12821,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 213, + "line": 226, "character": 9 } ], @@ -12426,7 +12840,7 @@ } }, { - "id": 387, + "id": 388, "name": "user", "kind": 32, "kindString": "Variable", @@ -12436,7 +12850,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 212, + "line": 225, "character": 8 } ], @@ -12460,13 +12874,17 @@ { "title": "Variables", "kind": 32, - "children": [386, 388, 387] + "children": [ + 387, + 389, + 388 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 210, + "line": 223, "character": 34 } ] @@ -12480,13 +12898,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 210, + "line": 223, "character": 22 } ] }, { - "id": 381, + "id": 382, "name": "session", "kind": 2048, "kindString": "Method", @@ -12495,7 +12913,7 @@ }, "signatures": [ { - "id": 382, + "id": 383, "name": "session", "kind": 4096, "kindString": "Call signature", @@ -12524,13 +12942,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 203, + "line": 216, "character": 9 } ] }, { - "id": 402, + "id": 403, "name": "setAuth", "kind": 2048, "kindString": "Method", @@ -12539,7 +12957,7 @@ }, "signatures": [ { - "id": 403, + "id": 404, "name": "setAuth", "kind": 4096, "kindString": "Call signature", @@ -12551,7 +12969,7 @@ }, "parameters": [ { - "id": 404, + "id": 405, "name": "access_token", "kind": 32768, "kindString": "Parameter", @@ -12577,13 +12995,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 288, + "line": 301, "character": 9 } ] }, { - "id": 396, + "id": 397, "name": "setSession", "kind": 2048, "kindString": "Method", @@ -12592,7 +13010,7 @@ }, "signatures": [ { - "id": 397, + "id": 398, "name": "setSession", "kind": 4096, "kindString": "Call signature", @@ -12604,7 +13022,7 @@ }, "parameters": [ { - "id": 398, + "id": 399, "name": "refresh_token", "kind": 32768, "kindString": "Parameter", @@ -12626,7 +13044,7 @@ { "type": "reflection", "declaration": { - "id": 399, + "id": 400, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12635,7 +13053,7 @@ }, "children": [ { - "id": 401, + "id": 402, "name": "error", "kind": 32, "kindString": "Variable", @@ -12645,7 +13063,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 260, + "line": 273, "character": 45 } ], @@ -12664,7 +13082,7 @@ } }, { - "id": 400, + "id": 401, "name": "session", "kind": 32, "kindString": "Variable", @@ -12674,7 +13092,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 260, + "line": 273, "character": 22 } ], @@ -12698,13 +13116,16 @@ { "title": "Variables", "kind": 32, - "children": [401, 400] + "children": [ + 402, + 401 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 260, + "line": 273, "character": 13 } ] @@ -12718,7 +13139,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 258, + "line": 271, "character": 18 } ] @@ -12778,7 +13199,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 152, + "line": 153, "character": 11 } ], @@ -12810,7 +13231,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 152, + "line": 153, "character": 21 } ], @@ -12829,7 +13250,7 @@ } }, { - "id": 367, + "id": 368, "name": "provider", "kind": 32, "kindString": "Variable", @@ -12842,8 +13263,8 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 152, - "character": 31 + "line": 153, + "character": 45 } ], "type": { @@ -12876,6 +13297,46 @@ { "type": "stringLiteral", "value": "google" + }, + { + "type": "stringLiteral", + "value": "twitter" + }, + { + "type": "stringLiteral", + "value": "apple" + } + ] + } + }, + { + "id": 367, + "name": "refreshToken", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "A valid refresh token that was returned on login." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 153, + "character": 35 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" } ] } @@ -12885,13 +13346,18 @@ { "title": "Variables", "kind": 32, - "children": [365, 366, 367] + "children": [ + 365, + 366, + 368, + 367 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 151, + "line": 152, "character": 15 } ] @@ -12899,7 +13365,7 @@ } }, { - "id": 368, + "id": 369, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -12909,7 +13375,7 @@ "type": { "type": "reflection", "declaration": { - "id": 369, + "id": 370, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -12918,7 +13384,7 @@ }, "children": [ { - "id": 370, + "id": 371, "name": "redirectTo", "kind": 32, "kindString": "Variable", @@ -12929,7 +13395,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 154, + "line": 155, "character": 16 } ], @@ -12948,7 +13414,7 @@ } }, { - "id": 371, + "id": 372, "name": "scopes", "kind": 32, "kindString": "Variable", @@ -12959,7 +13425,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 155, + "line": 156, "character": 12 } ], @@ -12982,13 +13448,16 @@ { "title": "Variables", "kind": 32, - "children": [370, 371] + "children": [ + 371, + 372 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 153, + "line": 154, "character": 12 } ] @@ -13003,7 +13472,7 @@ { "type": "reflection", "declaration": { - "id": 372, + "id": 373, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13012,7 +13481,7 @@ }, "children": [ { - "id": 378, + "id": 379, "name": "data", "kind": 32, "kindString": "Variable", @@ -13022,7 +13491,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 163, + "line": 164, "character": 8 } ], @@ -13042,7 +13511,7 @@ } }, { - "id": 377, + "id": 378, "name": "error", "kind": 32, "kindString": "Variable", @@ -13052,7 +13521,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 162, + "line": 163, "character": 9 } ], @@ -13071,7 +13540,7 @@ } }, { - "id": 375, + "id": 376, "name": "provider", "kind": 32, "kindString": "Variable", @@ -13082,18 +13551,18 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 160, + "line": 161, "character": 12 } ], "type": { "type": "reference", - "id": 102, + "id": 103, "name": "Provider" } }, { - "id": 373, + "id": 374, "name": "session", "kind": 32, "kindString": "Variable", @@ -13103,7 +13572,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 158, + "line": 159, "character": 11 } ], @@ -13123,7 +13592,7 @@ } }, { - "id": 376, + "id": 377, "name": "url", "kind": 32, "kindString": "Variable", @@ -13134,7 +13603,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 161, + "line": 162, "character": 7 } ], @@ -13153,7 +13622,7 @@ } }, { - "id": 374, + "id": 375, "name": "user", "kind": 32, "kindString": "Variable", @@ -13163,7 +13632,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 159, + "line": 160, "character": 8 } ], @@ -13187,13 +13656,20 @@ { "title": "Variables", "kind": 32, - "children": [378, 377, 375, 373, 376, 374] + "children": [ + 379, + 378, + 376, + 374, + 377, + 375 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 157, + "line": 158, "character": 13 } ] @@ -13207,13 +13683,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 151, + "line": 152, "character": 14 } ] }, { - "id": 413, + "id": 414, "name": "signOut", "kind": 2048, "kindString": "Method", @@ -13222,7 +13698,7 @@ }, "signatures": [ { - "id": 414, + "id": 415, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -13230,7 +13706,7 @@ "isExported": true }, "comment": { - "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", + "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.", "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n" }, "type": { @@ -13239,7 +13715,7 @@ { "type": "reflection", "declaration": { - "id": 415, + "id": 416, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13248,7 +13724,7 @@ }, "children": [ { - "id": 416, + "id": 417, "name": "error", "kind": 32, "kindString": "Variable", @@ -13258,7 +13734,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 359, + "line": 372, "character": 34 } ], @@ -13281,13 +13757,15 @@ { "title": "Variables", "kind": 32, - "children": [416] + "children": [ + 417 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 359, + "line": 372, "character": 27 } ] @@ -13301,7 +13779,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 359, + "line": 372, "character": 15 } ] @@ -13416,7 +13894,10 @@ { "title": "Variables", "kind": 32, - "children": [351, 352] + "children": [ + 351, + 352 + ] } ], "sources": [ @@ -13483,7 +13964,9 @@ { "title": "Variables", "kind": 32, - "children": [355] + "children": [ + 355 + ] } ], "sources": [ @@ -13641,7 +14124,12 @@ { "title": "Variables", "kind": 32, - "children": [360, 359, 358, 357] + "children": [ + 360, + 359, + 358, + 357 + ] } ], "sources": [ @@ -13667,7 +14155,7 @@ ] }, { - "id": 389, + "id": 390, "name": "update", "kind": 2048, "kindString": "Method", @@ -13676,7 +14164,7 @@ }, "signatures": [ { - "id": 390, + "id": 391, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -13688,7 +14176,7 @@ }, "parameters": [ { - "id": 391, + "id": 392, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -13708,7 +14196,7 @@ { "type": "reflection", "declaration": { - "id": 392, + "id": 393, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13717,7 +14205,7 @@ }, "children": [ { - "id": 393, + "id": 394, "name": "data", "kind": 32, "kindString": "Variable", @@ -13727,7 +14215,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 233, + "line": 246, "character": 19 } ], @@ -13747,7 +14235,7 @@ } }, { - "id": 395, + "id": 396, "name": "error", "kind": 32, "kindString": "Variable", @@ -13757,7 +14245,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 233, + "line": 246, "character": 58 } ], @@ -13776,7 +14264,7 @@ } }, { - "id": 394, + "id": 395, "name": "user", "kind": 32, "kindString": "Variable", @@ -13786,7 +14274,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 233, + "line": 246, "character": 38 } ], @@ -13810,13 +14298,17 @@ { "title": "Variables", "kind": 32, - "children": [393, 395, 394] + "children": [ + 394, + 396, + 395 + ] } ], "sources": [ { "fileName": "GoTrueClient.ts", - "line": 233, + "line": 246, "character": 13 } ] @@ -13830,13 +14322,13 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 231, + "line": 244, "character": 14 } ] }, { - "id": 379, + "id": 380, "name": "user", "kind": 2048, "kindString": "Method", @@ -13845,7 +14337,7 @@ }, "signatures": [ { - "id": 380, + "id": 381, "name": "user", "kind": 4096, "kindString": "Call signature", @@ -13875,7 +14367,7 @@ "sources": [ { "fileName": "GoTrueClient.ts", - "line": 196, + "line": 209, "character": 6 } ] @@ -13885,19 +14377,49 @@ { "title": "Constructors", "kind": 512, - "children": [333] + "children": [ + 333 + ] }, { "title": "Properties", "kind": 1024, - "children": [325, 328, 327, 326, 330, 329, 332, 331] + "children": [ + 325, + 328, + 327, + 326, + 330, + 329, + 332, + 331 + ] }, { "title": "Methods", "kind": 2048, "children": [ - 467, 427, 444, 476, 482, 465, 463, 485, 479, 487, 405, 417, 383, 381, 402, 396, - 361, 413, 347, 389, 379 + 468, + 428, + 445, + 477, + 483, + 466, + 464, + 486, + 480, + 488, + 406, + 418, + 384, + 382, + 403, + 397, + 361, + 414, + 347, + 390, + 380 ] } ], @@ -13910,7 +14432,7 @@ ] }, { - "id": 490, + "id": 491, "name": "DEFAULT_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -13919,7 +14441,7 @@ }, "children": [ { - "id": 492, + "id": 493, "name": "autoRefreshToken", "kind": 32, "kindString": "Variable", @@ -13938,7 +14460,7 @@ "defaultValue": "true" }, { - "id": 495, + "id": 496, "name": "detectSessionInUrl", "kind": 32, "kindString": "Variable", @@ -13957,7 +14479,7 @@ "defaultValue": "true" }, { - "id": 496, + "id": 497, "name": "headers", "kind": 32, "kindString": "Variable", @@ -13972,7 +14494,7 @@ "type": { "type": "reflection", "declaration": { - "id": 497, + "id": 498, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -13982,7 +14504,7 @@ "defaultValue": "DEFAULT_HEADERS" }, { - "id": 494, + "id": 495, "name": "localStorage", "kind": 32, "kindString": "Variable", @@ -14001,7 +14523,7 @@ "defaultValue": "globalThis.localStorage" }, { - "id": 493, + "id": 494, "name": "persistSession", "kind": 32, "kindString": "Variable", @@ -14020,7 +14542,7 @@ "defaultValue": "true" }, { - "id": 491, + "id": 492, "name": "url", "kind": 32, "kindString": "Variable", @@ -14043,7 +14565,14 @@ { "title": "Variables", "kind": 32, - "children": [492, 495, 496, 494, 493, 491] + "children": [ + 493, + 496, + 497, + 495, + 494, + 492 + ] } ], "sources": [ @@ -14063,12 +14592,16 @@ { "title": "Classes", "kind": 128, - "children": [324] + "children": [ + 324 + ] }, { "title": "Object literals", "kind": 2097152, - "children": [490] + "children": [ + 491 + ] } ], "sources": [ @@ -14080,7 +14613,7 @@ ] }, { - "id": 498, + "id": 499, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -14090,17 +14623,17 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts", "children": [ { - "id": 500, + "id": 501, "name": "AuthChangeEvent", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 103 + "target": 104 }, { - "id": 505, + "id": 506, "name": "CookieOptions", "kind": 16777216, "kindString": "Reference", @@ -14110,17 +14643,17 @@ "target": 92 }, { - "id": 499, + "id": 500, "name": "Provider", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 102 + "target": 103 }, { - "id": 501, + "id": 502, "name": "Session", "kind": 16777216, "kindString": "Reference", @@ -14130,7 +14663,7 @@ "target": 50 }, { - "id": 504, + "id": 505, "name": "Subscription", "kind": 16777216, "kindString": "Reference", @@ -14140,7 +14673,7 @@ "target": 82 }, { - "id": 502, + "id": 503, "name": "User", "kind": 16777216, "kindString": "Reference", @@ -14150,7 +14683,7 @@ "target": 58 }, { - "id": 503, + "id": 504, "name": "UserAttributes", "kind": 16777216, "kindString": "Reference", @@ -14160,7 +14693,7 @@ "target": 77 }, { - "id": 506, + "id": 507, "name": "UserCredentials", "kind": 16777216, "kindString": "Reference", @@ -14174,7 +14707,16 @@ { "title": "References", "kind": 16777216, - "children": [500, 505, 499, 501, 504, 502, 503, 506] + "children": [ + 501, + 506, + 500, + 502, + 505, + 503, + 504, + 507 + ] } ], "sources": [ @@ -14186,7 +14728,7 @@ ] }, { - "id": 104, + "id": 105, "name": "\"lib/constants\"", "kind": 1, "kindString": "Module", @@ -14196,7 +14738,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts", "children": [ { - "id": 106, + "id": 107, "name": "AUDIENCE", "kind": 32, "kindString": "Variable", @@ -14218,7 +14760,7 @@ "defaultValue": "\"\"" }, { - "id": 107, + "id": 108, "name": "DEFAULT_HEADERS", "kind": 32, "kindString": "Variable", @@ -14236,7 +14778,7 @@ "type": { "type": "reflection", "declaration": { - "id": 108, + "id": 109, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -14247,7 +14789,7 @@ } }, { - "id": 109, + "id": 110, "name": "EXPIRY_MARGIN", "kind": 32, "kindString": "Variable", @@ -14269,7 +14811,7 @@ "defaultValue": "60 * 1000" }, { - "id": 105, + "id": 106, "name": "GOTRUE_URL", "kind": 32, "kindString": "Variable", @@ -14291,7 +14833,7 @@ "defaultValue": "\"http://localhost:9999\"" }, { - "id": 110, + "id": 111, "name": "STORAGE_KEY", "kind": 32, "kindString": "Variable", @@ -14313,7 +14855,7 @@ "defaultValue": "\"supabase.auth.token\"" }, { - "id": 111, + "id": 112, "name": "COOKIE_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -14323,7 +14865,7 @@ }, "children": [ { - "id": 114, + "id": 115, "name": "domain", "kind": 32, "kindString": "Variable", @@ -14344,7 +14886,7 @@ "defaultValue": "\"\"" }, { - "id": 113, + "id": 114, "name": "lifetime", "kind": 32, "kindString": "Variable", @@ -14365,7 +14907,7 @@ "defaultValue": "60 * 60 * 8" }, { - "id": 112, + "id": 113, "name": "name", "kind": 32, "kindString": "Variable", @@ -14386,7 +14928,7 @@ "defaultValue": "\"sb:token\"" }, { - "id": 115, + "id": 116, "name": "path", "kind": 32, "kindString": "Variable", @@ -14407,7 +14949,7 @@ "defaultValue": "\"/\"" }, { - "id": 116, + "id": 117, "name": "sameSite", "kind": 32, "kindString": "Variable", @@ -14432,7 +14974,13 @@ { "title": "Variables", "kind": 32, - "children": [114, 113, 112, 115, 116] + "children": [ + 115, + 114, + 113, + 116, + 117 + ] } ], "sources": [ @@ -14452,12 +15000,20 @@ { "title": "Variables", "kind": 32, - "children": [106, 107, 109, 105, 110] + "children": [ + 107, + 108, + 110, + 106, + 111 + ] }, { "title": "Object literals", "kind": 2097152, - "children": [111] + "children": [ + 112 + ] } ], "sources": [ @@ -14469,7 +15025,7 @@ ] }, { - "id": 117, + "id": 118, "name": "\"lib/cookies\"", "kind": 1, "kindString": "Module", @@ -14479,7 +15035,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts", "children": [ { - "id": 118, + "id": 119, "name": "Cookie", "kind": 4194304, "kindString": "Type alias", @@ -14494,14 +15050,14 @@ "type": { "type": "reflection", "declaration": { - "id": 119, + "id": 120, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 123, + "id": 124, "name": "domain", "kind": 32, "kindString": "Variable", @@ -14530,7 +15086,7 @@ } }, { - "id": 122, + "id": 123, "name": "maxAge", "kind": 32, "kindString": "Variable", @@ -14548,7 +15104,7 @@ } }, { - "id": 120, + "id": 121, "name": "name", "kind": 32, "kindString": "Variable", @@ -14566,7 +15122,7 @@ } }, { - "id": 124, + "id": 125, "name": "path", "kind": 32, "kindString": "Variable", @@ -14595,7 +15151,7 @@ } }, { - "id": 125, + "id": 126, "name": "sameSite", "kind": 32, "kindString": "Variable", @@ -14624,7 +15180,7 @@ } }, { - "id": 121, + "id": 122, "name": "value", "kind": 32, "kindString": "Variable", @@ -14646,7 +15202,14 @@ { "title": "Variables", "kind": 32, - "children": [123, 122, 120, 124, 125, 121] + "children": [ + 124, + 123, + 121, + 125, + 126, + 122 + ] } ], "sources": [ @@ -14660,7 +15223,7 @@ } }, { - "id": 156, + "id": 157, "name": "deleteCookie", "kind": 64, "kindString": "Function", @@ -14669,7 +15232,7 @@ }, "signatures": [ { - "id": 157, + "id": 158, "name": "deleteCookie", "kind": 4096, "kindString": "Call signature", @@ -14678,7 +15241,7 @@ }, "parameters": [ { - "id": 158, + "id": 159, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -14691,7 +15254,7 @@ } }, { - "id": 159, + "id": 160, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -14704,7 +15267,7 @@ } }, { - "id": 160, + "id": 161, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -14732,14 +15295,14 @@ ] }, { - "id": 139, + "id": 140, "name": "isSecureEnvironment", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { - "id": 140, + "id": 141, "name": "isSecureEnvironment", "kind": 4096, "kindString": "Call signature", @@ -14749,7 +15312,7 @@ }, "parameters": [ { - "id": 141, + "id": 142, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -14775,14 +15338,14 @@ ] }, { - "id": 126, + "id": 127, "name": "serialize", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { - "id": 127, + "id": 128, "name": "serialize", "kind": 4096, "kindString": "Call signature", @@ -14792,7 +15355,7 @@ }, "parameters": [ { - "id": 128, + "id": 129, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -14803,7 +15366,7 @@ } }, { - "id": 129, + "id": 130, "name": "val", "kind": 32768, "kindString": "Parameter", @@ -14814,7 +15377,7 @@ } }, { - "id": 130, + "id": 131, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -14822,14 +15385,14 @@ "type": { "type": "reflection", "declaration": { - "id": 131, + "id": 132, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 133, + "id": 134, "name": "domain", "kind": 32, "kindString": "Variable", @@ -14847,7 +15410,7 @@ } }, { - "id": 135, + "id": 136, "name": "expires", "kind": 32, "kindString": "Variable", @@ -14865,7 +15428,7 @@ } }, { - "id": 136, + "id": 137, "name": "httpOnly", "kind": 32, "kindString": "Variable", @@ -14883,7 +15446,7 @@ } }, { - "id": 132, + "id": 133, "name": "maxAge", "kind": 32, "kindString": "Variable", @@ -14901,7 +15464,7 @@ } }, { - "id": 134, + "id": 135, "name": "path", "kind": 32, "kindString": "Variable", @@ -14919,7 +15482,7 @@ } }, { - "id": 138, + "id": 139, "name": "sameSite", "kind": 32, "kindString": "Variable", @@ -14937,7 +15500,7 @@ } }, { - "id": 137, + "id": 138, "name": "secure", "kind": 32, "kindString": "Variable", @@ -14959,7 +15522,15 @@ { "title": "Variables", "kind": 32, - "children": [133, 135, 136, 132, 134, 138, 137] + "children": [ + 134, + 136, + 137, + 133, + 135, + 139, + 138 + ] } ], "sources": [ @@ -14988,14 +15559,14 @@ ] }, { - "id": 142, + "id": 143, "name": "serializeCookie", "kind": 64, "kindString": "Function", "flags": {}, "signatures": [ { - "id": 143, + "id": 144, "name": "serializeCookie", "kind": 4096, "kindString": "Call signature", @@ -15005,19 +15576,19 @@ }, "parameters": [ { - "id": 144, + "id": 145, "name": "cookie", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 118, + "id": 119, "name": "Cookie" } }, { - "id": 145, + "id": 146, "name": "secure", "kind": 32768, "kindString": "Parameter", @@ -15043,7 +15614,7 @@ ] }, { - "id": 151, + "id": 152, "name": "setCookie", "kind": 64, "kindString": "Function", @@ -15052,7 +15623,7 @@ }, "signatures": [ { - "id": 152, + "id": 153, "name": "setCookie", "kind": 4096, "kindString": "Call signature", @@ -15064,7 +15635,7 @@ }, "parameters": [ { - "id": 153, + "id": 154, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -15077,7 +15648,7 @@ } }, { - "id": 154, + "id": 155, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -15090,7 +15661,7 @@ } }, { - "id": 155, + "id": 156, "name": "cookie", "kind": 32768, "kindString": "Parameter", @@ -15099,7 +15670,7 @@ }, "type": { "type": "reference", - "id": 118, + "id": 119, "name": "Cookie" } } @@ -15119,7 +15690,7 @@ ] }, { - "id": 146, + "id": 147, "name": "setCookies", "kind": 64, "kindString": "Function", @@ -15128,7 +15699,7 @@ }, "signatures": [ { - "id": 147, + "id": 148, "name": "setCookies", "kind": 4096, "kindString": "Call signature", @@ -15140,7 +15711,7 @@ }, "parameters": [ { - "id": 148, + "id": 149, "name": "req", "kind": 32768, "kindString": "Parameter", @@ -15153,7 +15724,7 @@ } }, { - "id": 149, + "id": 150, "name": "res", "kind": 32768, "kindString": "Parameter", @@ -15166,7 +15737,7 @@ } }, { - "id": 150, + "id": 151, "name": "cookies", "kind": 32768, "kindString": "Parameter", @@ -15178,7 +15749,7 @@ "typeArguments": [ { "type": "reference", - "id": 118, + "id": 119, "name": "Cookie" } ], @@ -15205,12 +15776,21 @@ { "title": "Type aliases", "kind": 4194304, - "children": [118] + "children": [ + 119 + ] }, { "title": "Functions", "kind": 64, - "children": [156, 139, 126, 142, 151, 146] + "children": [ + 157, + 140, + 127, + 143, + 152, + 147 + ] } ], "sources": [ @@ -15347,7 +15927,10 @@ { "title": "Properties", "kind": 1024, - "children": [3, 7] + "children": [ + 3, + 7 + ] } ], "sources": [ @@ -16011,17 +16594,30 @@ { "title": "Interfaces", "kind": 256, - "children": [2] + "children": [ + 2 + ] }, { "title": "Type aliases", "kind": 4194304, - "children": [8] + "children": [ + 8 + ] }, { "title": "Functions", "kind": 64, - "children": [9, 16, 24, 30, 12, 34, 39, 44] + "children": [ + 9, + 16, + 24, + 30, + 12, + 34, + 39, + 44 + ] } ], "sources": [ @@ -16033,7 +16629,7 @@ ] }, { - "id": 161, + "id": 162, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", @@ -16043,7 +16639,7 @@ "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts", "children": [ { - "id": 162, + "id": 163, "name": "LocalStorage", "kind": 128, "kindString": "Class", @@ -16052,7 +16648,7 @@ }, "indexSignature": [ { - "id": 164, + "id": 165, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -16061,7 +16657,7 @@ }, "parameters": [ { - "id": 165, + "id": 166, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -16082,7 +16678,7 @@ ], "children": [ { - "id": 167, + "id": 168, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -16091,7 +16687,7 @@ }, "signatures": [ { - "id": 168, + "id": 169, "name": "new LocalStorage", "kind": 16384, "kindString": "Constructor signature", @@ -16100,7 +16696,7 @@ }, "parameters": [ { - "id": 169, + "id": 170, "name": "localStorage", "kind": 32768, "kindString": "Parameter", @@ -16115,7 +16711,7 @@ ], "type": { "type": "reference", - "id": 162, + "id": 163, "name": "LocalStorage" } } @@ -16129,7 +16725,7 @@ ] }, { - "id": 166, + "id": 167, "name": "length", "kind": 1024, "kindString": "Property", @@ -16149,7 +16745,7 @@ } }, { - "id": 163, + "id": 164, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -16169,7 +16765,7 @@ } }, { - "id": 170, + "id": 171, "name": "clear", "kind": 2048, "kindString": "Method", @@ -16178,7 +16774,7 @@ }, "signatures": [ { - "id": 171, + "id": 172, "name": "clear", "kind": 4096, "kindString": "Call signature", @@ -16200,7 +16796,7 @@ ] }, { - "id": 179, + "id": 180, "name": "getItem", "kind": 2048, "kindString": "Method", @@ -16209,7 +16805,7 @@ }, "signatures": [ { - "id": 180, + "id": 181, "name": "getItem", "kind": 4096, "kindString": "Call signature", @@ -16218,7 +16814,7 @@ }, "parameters": [ { - "id": 181, + "id": 182, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -16255,7 +16851,7 @@ ] }, { - "id": 172, + "id": 173, "name": "key", "kind": 2048, "kindString": "Method", @@ -16264,7 +16860,7 @@ }, "signatures": [ { - "id": 173, + "id": 174, "name": "key", "kind": 4096, "kindString": "Call signature", @@ -16273,7 +16869,7 @@ }, "parameters": [ { - "id": 174, + "id": 175, "name": "index", "kind": 32768, "kindString": "Parameter", @@ -16310,7 +16906,7 @@ ] }, { - "id": 182, + "id": 183, "name": "removeItem", "kind": 2048, "kindString": "Method", @@ -16319,7 +16915,7 @@ }, "signatures": [ { - "id": 183, + "id": 184, "name": "removeItem", "kind": 4096, "kindString": "Call signature", @@ -16328,7 +16924,7 @@ }, "parameters": [ { - "id": 184, + "id": 185, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -16356,7 +16952,7 @@ ] }, { - "id": 175, + "id": 176, "name": "setItem", "kind": 2048, "kindString": "Method", @@ -16365,7 +16961,7 @@ }, "signatures": [ { - "id": 176, + "id": 177, "name": "setItem", "kind": 4096, "kindString": "Call signature", @@ -16374,7 +16970,7 @@ }, "parameters": [ { - "id": 177, + "id": 178, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -16387,7 +16983,7 @@ } }, { - "id": 178, + "id": 179, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -16419,17 +17015,28 @@ { "title": "Constructors", "kind": 512, - "children": [167] + "children": [ + 168 + ] }, { "title": "Properties", "kind": 1024, - "children": [166, 163] + "children": [ + 167, + 164 + ] }, { "title": "Methods", "kind": 2048, - "children": [170, 179, 172, 182, 175] + "children": [ + 171, + 180, + 173, + 183, + 176 + ] } ], "sources": [ @@ -16447,7 +17054,7 @@ ] }, { - "id": 185, + "id": 186, "name": "expiresAt", "kind": 64, "kindString": "Function", @@ -16456,7 +17063,7 @@ }, "signatures": [ { - "id": 186, + "id": 187, "name": "expiresAt", "kind": 4096, "kindString": "Call signature", @@ -16465,7 +17072,7 @@ }, "parameters": [ { - "id": 187, + "id": 188, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -16493,7 +17100,7 @@ ] }, { - "id": 192, + "id": 193, "name": "getParameterByName", "kind": 64, "kindString": "Function", @@ -16502,7 +17109,7 @@ }, "signatures": [ { - "id": 193, + "id": 194, "name": "getParameterByName", "kind": 4096, "kindString": "Call signature", @@ -16511,7 +17118,7 @@ }, "parameters": [ { - "id": 194, + "id": 195, "name": "name", "kind": 32768, "kindString": "Parameter", @@ -16524,7 +17131,7 @@ } }, { - "id": 195, + "id": 196, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -16571,7 +17178,7 @@ ] }, { - "id": 190, + "id": 191, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -16581,7 +17188,7 @@ }, "signatures": [ { - "id": 191, + "id": 192, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -16603,7 +17210,7 @@ ] }, { - "id": 188, + "id": 189, "name": "uuid", "kind": 64, "kindString": "Function", @@ -16612,7 +17219,7 @@ }, "signatures": [ { - "id": 189, + "id": 190, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -16638,12 +17245,19 @@ { "title": "Classes", "kind": 128, - "children": [162] + "children": [ + 163 + ] }, { "title": "Functions", "kind": 64, - "children": [185, 192, 190, 188] + "children": [ + 186, + 193, + 191, + 189 + ] } ], "sources": [ @@ -16703,7 +17317,9 @@ { "title": "Functions", "kind": 64, - "children": [321] + "children": [ + 321 + ] } ], "sources": [ @@ -16888,7 +17504,13 @@ { "title": "Properties", "kind": 1024, - "children": [95, 94, 93, 96, 97] + "children": [ + 95, + 94, + 93, + 96, + 97 + ] } ], "sources": [ @@ -17109,7 +17731,15 @@ { "title": "Properties", "kind": 1024, - "children": [52, 54, 53, 51, 55, 56, 57] + "children": [ + 52, + 54, + 53, + 51, + 55, + 56, + 57 + ] } ], "sources": [ @@ -17177,7 +17807,7 @@ }, "type": { "type": "reference", - "id": 103, + "id": 104, "name": "AuthChangeEvent" } }, @@ -17302,7 +17932,11 @@ { "title": "Properties", "kind": 1024, - "children": [84, 83, 89] + "children": [ + 84, + 83, + 89 + ] } ], "sources": [ @@ -17413,7 +18047,9 @@ { "title": "Variables", "kind": 32, - "children": [62] + "children": [ + 62 + ] } ], "sources": [ @@ -17736,7 +18372,19 @@ { "title": "Properties", "kind": 1024, - "children": [60, 69, 70, 73, 72, 71, 59, 74, 75, 76, 65] + "children": [ + 60, + 69, + 70, + 73, + 72, + 71, + 59, + 74, + 75, + 76, + 65 + ] } ], "sources": [ @@ -17893,7 +18541,12 @@ { "title": "Properties", "kind": 1024, - "children": [81, 78, 80, 79] + "children": [ + 81, + 78, + 80, + 79 + ] } ], "sources": [ @@ -17974,7 +18627,7 @@ } }, { - "id": 101, + "id": 102, "name": "provider", "kind": 1024, "kindString": "Property", @@ -17985,22 +18638,57 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 95, + "line": 96, "character": 10 } ], "type": { "type": "reference", - "id": 102, + "id": 103, "name": "Provider" } + }, + { + "id": 101, + "name": "refreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 94, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } } ], "groups": [ { "title": "Properties", "kind": 1024, - "children": [99, 100, 101] + "children": [ + 99, + 100, + 102, + 101 + ] } ], "sources": [ @@ -18012,7 +18700,7 @@ ] }, { - "id": 103, + "id": 104, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -18053,7 +18741,7 @@ } }, { - "id": 102, + "id": 103, "name": "Provider", "kind": 4194304, "kindString": "Type alias", @@ -18093,6 +18781,14 @@ { "type": "stringLiteral", "value": "google" + }, + { + "type": "stringLiteral", + "value": "twitter" + }, + { + "type": "stringLiteral", + "value": "apple" } ] } @@ -18102,12 +18798,22 @@ { "title": "Interfaces", "kind": 256, - "children": [92, 50, 82, 58, 77, 98] + "children": [ + 92, + 50, + 82, + 58, + 77, + 98 + ] }, { "title": "Type aliases", "kind": 4194304, - "children": [103, 102] + "children": [ + 104, + 103 + ] } ], "sources": [ @@ -18123,7 +18829,17 @@ { "title": "Modules", "kind": 1, - "children": [196, 323, 498, 104, 117, 1, 161, 320, 49] + "children": [ + 197, + 323, + 499, + 105, + 118, + 1, + 162, + 320, + 49 + ] } ] }, @@ -18135,7 +18851,7 @@ "originalName": "", "children": [ { - "id": 420, + "id": 424, "name": "\"PostgrestClient\"", "kind": 1, "kindString": "Module", @@ -18145,7 +18861,7 @@ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/PostgrestClient.ts", "children": [ { - "id": 421, + "id": 425, "name": "PostgrestClient", "kind": 128, "kindString": "Class", @@ -18154,7 +18870,7 @@ }, "children": [ { - "id": 428, + "id": 432, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -18166,7 +18882,7 @@ }, "signatures": [ { - "id": 429, + "id": 433, "name": "new PostgrestClient", "kind": 16384, "kindString": "Constructor signature", @@ -18178,7 +18894,7 @@ }, "parameters": [ { - "id": 430, + "id": 434, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -18194,7 +18910,7 @@ } }, { - "id": 431, + "id": 435, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -18205,7 +18921,7 @@ "type": { "type": "reflection", "declaration": { - "id": 432, + "id": 436, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -18214,7 +18930,7 @@ }, "children": [ { - "id": 433, + "id": 437, "name": "headers", "kind": 32, "kindString": "Variable", @@ -18234,7 +18950,7 @@ "type": { "type": "reflection", "declaration": { - "id": 434, + "id": 438, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -18243,7 +18959,7 @@ }, "indexSignature": [ { - "id": 435, + "id": 439, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -18252,7 +18968,7 @@ }, "parameters": [ { - "id": 436, + "id": 440, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -18275,7 +18991,7 @@ } }, { - "id": 437, + "id": 441, "name": "schema", "kind": 32, "kindString": "Variable", @@ -18311,7 +19027,10 @@ { "title": "Variables", "kind": 32, - "children": [433, 437] + "children": [ + 437, + 441 + ] } ], "sources": [ @@ -18328,7 +19047,7 @@ ], "type": { "type": "reference", - "id": 421, + "id": 425, "name": "PostgrestClient" } } @@ -18342,7 +19061,7 @@ ] }, { - "id": 423, + "id": 427, "name": "headers", "kind": 1024, "kindString": "Property", @@ -18359,7 +19078,7 @@ "type": { "type": "reflection", "declaration": { - "id": 424, + "id": 428, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -18368,7 +19087,7 @@ }, "indexSignature": [ { - "id": 425, + "id": 429, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -18377,7 +19096,7 @@ }, "parameters": [ { - "id": 426, + "id": 430, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -18407,7 +19126,7 @@ } }, { - "id": 427, + "id": 431, "name": "schema", "kind": 1024, "kindString": "Property", @@ -18437,7 +19156,7 @@ } }, { - "id": 422, + "id": 426, "name": "url", "kind": 1024, "kindString": "Property", @@ -18457,7 +19176,7 @@ } }, { - "id": 438, + "id": 442, "name": "auth", "kind": 2048, "kindString": "Method", @@ -18466,7 +19185,7 @@ }, "signatures": [ { - "id": 439, + "id": 443, "name": "auth", "kind": 4096, "kindString": "Call signature", @@ -18478,7 +19197,7 @@ }, "parameters": [ { - "id": 440, + "id": 444, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -18509,7 +19228,7 @@ ] }, { - "id": 441, + "id": 445, "name": "from", "kind": 2048, "kindString": "Method", @@ -18518,7 +19237,7 @@ }, "signatures": [ { - "id": 442, + "id": 446, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -18530,7 +19249,7 @@ }, "typeParameter": [ { - "id": 443, + "id": 447, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -18541,7 +19260,7 @@ ], "parameters": [ { - "id": 444, + "id": 448, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -18559,7 +19278,7 @@ ], "type": { "type": "reference", - "id": 306, + "id": 310, "typeArguments": [ { "type": "typeParameter", @@ -18583,7 +19302,7 @@ ] }, { - "id": 445, + "id": 449, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -18592,7 +19311,7 @@ }, "signatures": [ { - "id": 446, + "id": 450, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -18604,7 +19323,7 @@ }, "typeParameter": [ { - "id": 447, + "id": 451, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -18615,7 +19334,7 @@ ], "parameters": [ { - "id": 448, + "id": 452, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -18631,7 +19350,7 @@ } }, { - "id": 449, + "id": 453, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -18657,7 +19376,7 @@ } }, { - "id": 450, + "id": 454, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -18668,7 +19387,7 @@ "type": { "type": "reflection", "declaration": { - "id": 451, + "id": 455, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -18677,7 +19396,7 @@ }, "children": [ { - "id": 452, + "id": 456, "name": "count", "kind": 32, "kindString": "Variable", @@ -18722,7 +19441,9 @@ { "title": "Variables", "kind": 32, - "children": [452] + "children": [ + 456 + ] } ], "sources": [ @@ -18739,7 +19460,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -18767,17 +19488,27 @@ { "title": "Constructors", "kind": 512, - "children": [428] + "children": [ + 432 + ] }, { "title": "Properties", "kind": 1024, - "children": [423, 427, 422] + "children": [ + 427, + 431, + 426 + ] }, { "title": "Methods", "kind": 2048, - "children": [438, 441, 445] + "children": [ + 442, + 445, + 449 + ] } ], "sources": [ @@ -18793,7 +19524,9 @@ { "title": "Classes", "kind": 128, - "children": [421] + "children": [ + 425 + ] } ], "sources": [ @@ -18805,7 +19538,7 @@ ] }, { - "id": 453, + "id": 457, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -18822,7 +19555,7 @@ ] }, { - "id": 114, + "id": 116, "name": "\"lib/PostgrestFilterBuilder\"", "kind": 1, "kindString": "Module", @@ -18832,7 +19565,7 @@ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestFilterBuilder.ts", "children": [ { - "id": 115, + "id": 117, "name": "PostgrestFilterBuilder", "kind": 128, "kindString": "Class", @@ -18841,7 +19574,7 @@ }, "typeParameter": [ { - "id": 116, + "id": 118, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -18852,7 +19585,7 @@ ], "children": [ { - "id": 289, + "id": 293, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -18861,7 +19594,7 @@ }, "signatures": [ { - "id": 290, + "id": 294, "name": "new PostgrestFilterBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -18870,7 +19603,7 @@ }, "parameters": [ { - "id": 291, + "id": 295, "name": "builder", "kind": 32768, "kindString": "Parameter", @@ -18892,7 +19625,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "name": "PostgrestFilterBuilder" }, "inheritedFrom": { @@ -18916,7 +19649,7 @@ } }, { - "id": 202, + "id": 204, "name": "adj", "kind": 1024, "kindString": "Property", @@ -18940,13 +19673,13 @@ ], "type": { "type": "reference", - "id": 198, + "id": 200, "name": "rangeAdjacent" }, "defaultValue": "this.rangeAdjacent" }, { - "id": 288, + "id": 292, "name": "body", "kind": 1024, "kindString": "Property", @@ -18997,7 +19730,7 @@ } }, { - "id": 177, + "id": 179, "name": "cd", "kind": 1024, "kindString": "Property", @@ -19021,13 +19754,13 @@ ], "type": { "type": "reference", - "id": 173, + "id": 175, "name": "containedBy" }, "defaultValue": "this.containedBy" }, { - "id": 172, + "id": 174, "name": "cs", "kind": 1024, "kindString": "Property", @@ -19051,13 +19784,13 @@ ], "type": { "type": "reference", - "id": 168, + "id": 170, "name": "contains" }, "defaultValue": "this.contains" }, { - "id": 283, + "id": 287, "name": "headers", "kind": 1024, "kindString": "Property", @@ -19075,7 +19808,7 @@ "type": { "type": "reflection", "declaration": { - "id": 284, + "id": 288, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -19084,7 +19817,7 @@ }, "indexSignature": [ { - "id": 285, + "id": 289, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -19093,7 +19826,7 @@ }, "parameters": [ { - "id": 286, + "id": 290, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -19128,7 +19861,7 @@ } }, { - "id": 281, + "id": 285, "name": "method", "kind": 1024, "kindString": "Property", @@ -19175,7 +19908,7 @@ } }, { - "id": 192, + "id": 194, "name": "nxl", "kind": 1024, "kindString": "Property", @@ -19199,13 +19932,13 @@ ], "type": { "type": "reference", - "id": 188, + "id": 190, "name": "rangeGte" }, "defaultValue": "this.rangeGte" }, { - "id": 197, + "id": 199, "name": "nxr", "kind": 1024, "kindString": "Property", @@ -19229,13 +19962,13 @@ ], "type": { "type": "reference", - "id": 193, + "id": 195, "name": "rangeLte" }, "defaultValue": "this.rangeLte" }, { - "id": 207, + "id": 209, "name": "ov", "kind": 1024, "kindString": "Property", @@ -19259,13 +19992,13 @@ ], "type": { "type": "reference", - "id": 203, + "id": 205, "name": "overlaps" }, "defaultValue": "this.overlaps" }, { - "id": 287, + "id": 291, "name": "schema", "kind": 1024, "kindString": "Property", @@ -19301,7 +20034,7 @@ } }, { - "id": 182, + "id": 184, "name": "sl", "kind": 1024, "kindString": "Property", @@ -19325,13 +20058,13 @@ ], "type": { "type": "reference", - "id": 178, + "id": 180, "name": "rangeLt" }, "defaultValue": "this.rangeLt" }, { - "id": 187, + "id": 189, "name": "sr", "kind": 1024, "kindString": "Property", @@ -19355,13 +20088,13 @@ ], "type": { "type": "reference", - "id": 183, + "id": 185, "name": "rangeGt" }, "defaultValue": "this.rangeGt" }, { - "id": 282, + "id": 286, "name": "url", "kind": 1024, "kindString": "Property", @@ -19387,7 +20120,7 @@ } }, { - "id": 173, + "id": 175, "name": "containedBy", "kind": 2048, "kindString": "Method", @@ -19396,7 +20129,7 @@ }, "signatures": [ { - "id": 174, + "id": 176, "name": "containedBy", "kind": 4096, "kindString": "Call signature", @@ -19408,7 +20141,7 @@ }, "parameters": [ { - "id": 175, + "id": 177, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -19428,7 +20161,7 @@ } }, { - "id": 176, + "id": 178, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -19486,7 +20219,7 @@ ] }, { - "id": 168, + "id": 170, "name": "contains", "kind": 2048, "kindString": "Method", @@ -19495,7 +20228,7 @@ }, "signatures": [ { - "id": 169, + "id": 171, "name": "contains", "kind": 4096, "kindString": "Call signature", @@ -19507,7 +20240,7 @@ }, "parameters": [ { - "id": 170, + "id": 172, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -19527,7 +20260,7 @@ } }, { - "id": 171, + "id": 173, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -19585,7 +20318,51 @@ ] }, { - "id": 128, + "id": 283, + "name": "csv", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 284, + "name": "csv", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set the response type to CSV." + }, + "type": { + "type": "intrinsic", + "name": "this" + }, + "inheritedFrom": { + "type": "reference", + "id": 91, + "name": "PostgrestTransformBuilder.csv" + } + } + ], + "sources": [ + { + "fileName": "lib/PostgrestTransformBuilder.ts", + "line": 100, + "character": 6 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 91, + "name": "PostgrestTransformBuilder.csv" + } + }, + { + "id": 130, "name": "eq", "kind": 2048, "kindString": "Method", @@ -19594,7 +20371,7 @@ }, "signatures": [ { - "id": 129, + "id": 131, "name": "eq", "kind": 4096, "kindString": "Call signature", @@ -19606,7 +20383,7 @@ }, "parameters": [ { - "id": 130, + "id": 132, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -19626,7 +20403,7 @@ } }, { - "id": 131, + "id": 133, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -19668,7 +20445,7 @@ ] }, { - "id": 244, + "id": 246, "name": "filter", "kind": 2048, "kindString": "Method", @@ -19677,7 +20454,7 @@ }, "signatures": [ { - "id": 245, + "id": 247, "name": "filter", "kind": 4096, "kindString": "Call signature", @@ -19689,7 +20466,7 @@ }, "parameters": [ { - "id": 246, + "id": 248, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -19709,7 +20486,7 @@ } }, { - "id": 247, + "id": 249, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -19721,12 +20498,12 @@ }, "type": { "type": "reference", - "id": 304, + "id": 308, "name": "FilterOperator" } }, { - "id": 248, + "id": 250, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -19757,7 +20534,7 @@ ] }, { - "id": 216, + "id": 218, "name": "fts", "kind": 2048, "kindString": "Method", @@ -19766,7 +20543,7 @@ }, "signatures": [ { - "id": 217, + "id": 219, "name": "fts", "kind": 4096, "kindString": "Call signature", @@ -19784,7 +20561,7 @@ }, "parameters": [ { - "id": 218, + "id": 220, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -19804,7 +20581,7 @@ } }, { - "id": 219, + "id": 221, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -19820,7 +20597,7 @@ } }, { - "id": 220, + "id": 222, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -19831,7 +20608,7 @@ "type": { "type": "reflection", "declaration": { - "id": 221, + "id": 223, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -19840,7 +20617,7 @@ }, "children": [ { - "id": 222, + "id": 224, "name": "config", "kind": 32, "kindString": "Variable", @@ -19876,7 +20653,9 @@ { "title": "Variables", "kind": 32, - "children": [222] + "children": [ + 224 + ] } ], "sources": [ @@ -19906,7 +20685,7 @@ ] }, { - "id": 136, + "id": 138, "name": "gt", "kind": 2048, "kindString": "Method", @@ -19915,7 +20694,7 @@ }, "signatures": [ { - "id": 137, + "id": 139, "name": "gt", "kind": 4096, "kindString": "Call signature", @@ -19927,7 +20706,7 @@ }, "parameters": [ { - "id": 138, + "id": 140, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -19947,7 +20726,7 @@ } }, { - "id": 139, + "id": 141, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -19989,7 +20768,7 @@ ] }, { - "id": 140, + "id": 142, "name": "gte", "kind": 2048, "kindString": "Method", @@ -19998,7 +20777,7 @@ }, "signatures": [ { - "id": 141, + "id": 143, "name": "gte", "kind": 4096, "kindString": "Call signature", @@ -20010,7 +20789,7 @@ }, "parameters": [ { - "id": 142, + "id": 144, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -20030,7 +20809,7 @@ } }, { - "id": 143, + "id": 145, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -20072,7 +20851,7 @@ ] }, { - "id": 156, + "id": 158, "name": "ilike", "kind": 2048, "kindString": "Method", @@ -20081,7 +20860,7 @@ }, "signatures": [ { - "id": 157, + "id": 159, "name": "ilike", "kind": 4096, "kindString": "Call signature", @@ -20093,7 +20872,7 @@ }, "parameters": [ { - "id": 158, + "id": 160, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -20113,7 +20892,7 @@ } }, { - "id": 159, + "id": 161, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -20144,7 +20923,7 @@ ] }, { - "id": 164, + "id": 166, "name": "in", "kind": 2048, "kindString": "Method", @@ -20153,7 +20932,7 @@ }, "signatures": [ { - "id": 165, + "id": 167, "name": "in", "kind": 4096, "kindString": "Call signature", @@ -20165,7 +20944,7 @@ }, "parameters": [ { - "id": 166, + "id": 168, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -20185,7 +20964,7 @@ } }, { - "id": 167, + "id": 169, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -20230,7 +21009,7 @@ ] }, { - "id": 160, + "id": 162, "name": "is", "kind": 2048, "kindString": "Method", @@ -20239,7 +21018,7 @@ }, "signatures": [ { - "id": 161, + "id": 163, "name": "is", "kind": 4096, "kindString": "Call signature", @@ -20251,7 +21030,7 @@ }, "parameters": [ { - "id": 162, + "id": 164, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -20271,7 +21050,7 @@ } }, { - "id": 163, + "id": 165, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -20311,7 +21090,7 @@ ] }, { - "id": 152, + "id": 154, "name": "like", "kind": 2048, "kindString": "Method", @@ -20320,7 +21099,7 @@ }, "signatures": [ { - "id": 153, + "id": 155, "name": "like", "kind": 4096, "kindString": "Call signature", @@ -20332,7 +21111,7 @@ }, "parameters": [ { - "id": 154, + "id": 156, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -20352,7 +21131,7 @@ } }, { - "id": 155, + "id": 157, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -20383,7 +21162,7 @@ ] }, { - "id": 266, + "id": 268, "name": "limit", "kind": 2048, "kindString": "Method", @@ -20392,7 +21171,7 @@ }, "signatures": [ { - "id": 267, + "id": 269, "name": "limit", "kind": 4096, "kindString": "Call signature", @@ -20404,7 +21183,7 @@ }, "parameters": [ { - "id": 268, + "id": 270, "name": "count", "kind": 32768, "kindString": "Parameter", @@ -20420,7 +21199,7 @@ } }, { - "id": 269, + "id": 271, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -20431,7 +21210,7 @@ "type": { "type": "reflection", "declaration": { - "id": 270, + "id": 272, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -20440,7 +21219,7 @@ }, "children": [ { - "id": 271, + "id": 273, "name": "foreignTable", "kind": 32, "kindString": "Variable", @@ -20476,7 +21255,9 @@ { "title": "Variables", "kind": 32, - "children": [271] + "children": [ + 273 + ] } ], "sources": [ @@ -20516,7 +21297,7 @@ } }, { - "id": 144, + "id": 146, "name": "lt", "kind": 2048, "kindString": "Method", @@ -20525,7 +21306,7 @@ }, "signatures": [ { - "id": 145, + "id": 147, "name": "lt", "kind": 4096, "kindString": "Call signature", @@ -20537,7 +21318,7 @@ }, "parameters": [ { - "id": 146, + "id": 148, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -20557,7 +21338,7 @@ } }, { - "id": 147, + "id": 149, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -20599,7 +21380,7 @@ ] }, { - "id": 148, + "id": 150, "name": "lte", "kind": 2048, "kindString": "Method", @@ -20608,7 +21389,7 @@ }, "signatures": [ { - "id": 149, + "id": 151, "name": "lte", "kind": 4096, "kindString": "Call signature", @@ -20620,7 +21401,7 @@ }, "parameters": [ { - "id": 150, + "id": 152, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -20640,7 +21421,7 @@ } }, { - "id": 151, + "id": 153, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -20682,7 +21463,7 @@ ] }, { - "id": 249, + "id": 251, "name": "match", "kind": 2048, "kindString": "Method", @@ -20691,7 +21472,7 @@ }, "signatures": [ { - "id": 250, + "id": 252, "name": "match", "kind": 4096, "kindString": "Call signature", @@ -20703,7 +21484,7 @@ }, "parameters": [ { - "id": 251, + "id": 253, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -20716,7 +21497,7 @@ "type": { "type": "reflection", "declaration": { - "id": 252, + "id": 254, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -20725,7 +21506,7 @@ }, "indexSignature": [ { - "id": 253, + "id": 255, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -20734,7 +21515,7 @@ }, "parameters": [ { - "id": 254, + "id": 256, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -20779,7 +21560,7 @@ ] }, { - "id": 132, + "id": 134, "name": "neq", "kind": 2048, "kindString": "Method", @@ -20788,7 +21569,7 @@ }, "signatures": [ { - "id": 133, + "id": 135, "name": "neq", "kind": 4096, "kindString": "Call signature", @@ -20800,7 +21581,7 @@ }, "parameters": [ { - "id": 134, + "id": 136, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -20820,7 +21601,7 @@ } }, { - "id": 135, + "id": 137, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -20862,7 +21643,7 @@ ] }, { - "id": 117, + "id": 119, "name": "not", "kind": 2048, "kindString": "Method", @@ -20871,7 +21652,7 @@ }, "signatures": [ { - "id": 118, + "id": 120, "name": "not", "kind": 4096, "kindString": "Call signature", @@ -20883,7 +21664,7 @@ }, "parameters": [ { - "id": 119, + "id": 121, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -20903,7 +21684,7 @@ } }, { - "id": 120, + "id": 122, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -20915,12 +21696,12 @@ }, "type": { "type": "reference", - "id": 304, + "id": 308, "name": "FilterOperator" } }, { - "id": 121, + "id": 123, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -20951,7 +21732,7 @@ ] }, { - "id": 122, + "id": 124, "name": "or", "kind": 2048, "kindString": "Method", @@ -20960,7 +21741,7 @@ }, "signatures": [ { - "id": 123, + "id": 125, "name": "or", "kind": 4096, "kindString": "Call signature", @@ -20972,7 +21753,7 @@ }, "parameters": [ { - "id": 124, + "id": 126, "name": "filters", "kind": 32768, "kindString": "Parameter", @@ -20988,7 +21769,7 @@ } }, { - "id": 125, + "id": 127, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -20999,7 +21780,7 @@ "type": { "type": "reflection", "declaration": { - "id": 126, + "id": 128, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -21008,7 +21789,7 @@ }, "children": [ { - "id": 127, + "id": 129, "name": "foreignTable", "kind": 32, "kindString": "Variable", @@ -21044,7 +21825,9 @@ { "title": "Variables", "kind": 32, - "children": [127] + "children": [ + 129 + ] } ], "sources": [ @@ -21074,7 +21857,7 @@ ] }, { - "id": 258, + "id": 260, "name": "order", "kind": 2048, "kindString": "Method", @@ -21083,7 +21866,7 @@ }, "signatures": [ { - "id": 259, + "id": 261, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -21095,7 +21878,7 @@ }, "parameters": [ { - "id": 260, + "id": 262, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -21115,7 +21898,7 @@ } }, { - "id": 261, + "id": 263, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -21126,7 +21909,7 @@ "type": { "type": "reflection", "declaration": { - "id": 262, + "id": 264, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -21135,7 +21918,7 @@ }, "children": [ { - "id": 263, + "id": 265, "name": "ascending", "kind": 32, "kindString": "Variable", @@ -21159,7 +21942,7 @@ "defaultValue": "true" }, { - "id": 265, + "id": 267, "name": "foreignTable", "kind": 32, "kindString": "Variable", @@ -21191,7 +21974,7 @@ } }, { - "id": 264, + "id": 266, "name": "nullsFirst", "kind": 32, "kindString": "Variable", @@ -21219,7 +22002,11 @@ { "title": "Variables", "kind": 32, - "children": [263, 265, 264] + "children": [ + 265, + 267, + 266 + ] } ], "sources": [ @@ -21259,7 +22046,7 @@ } }, { - "id": 203, + "id": 205, "name": "overlaps", "kind": 2048, "kindString": "Method", @@ -21268,7 +22055,7 @@ }, "signatures": [ { - "id": 204, + "id": 206, "name": "overlaps", "kind": 4096, "kindString": "Call signature", @@ -21280,7 +22067,7 @@ }, "parameters": [ { - "id": 205, + "id": 207, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -21300,7 +22087,7 @@ } }, { - "id": 206, + "id": 208, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -21354,7 +22141,7 @@ ] }, { - "id": 230, + "id": 232, "name": "phfts", "kind": 2048, "kindString": "Method", @@ -21363,7 +22150,7 @@ }, "signatures": [ { - "id": 231, + "id": 233, "name": "phfts", "kind": 4096, "kindString": "Call signature", @@ -21381,7 +22168,7 @@ }, "parameters": [ { - "id": 232, + "id": 234, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -21401,7 +22188,7 @@ } }, { - "id": 233, + "id": 235, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -21417,7 +22204,7 @@ } }, { - "id": 234, + "id": 236, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -21428,7 +22215,7 @@ "type": { "type": "reflection", "declaration": { - "id": 235, + "id": 237, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -21437,7 +22224,7 @@ }, "children": [ { - "id": 236, + "id": 238, "name": "config", "kind": 32, "kindString": "Variable", @@ -21473,7 +22260,9 @@ { "title": "Variables", "kind": 32, - "children": [236] + "children": [ + 238 + ] } ], "sources": [ @@ -21503,7 +22292,7 @@ ] }, { - "id": 223, + "id": 225, "name": "plfts", "kind": 2048, "kindString": "Method", @@ -21512,7 +22301,7 @@ }, "signatures": [ { - "id": 224, + "id": 226, "name": "plfts", "kind": 4096, "kindString": "Call signature", @@ -21530,7 +22319,7 @@ }, "parameters": [ { - "id": 225, + "id": 227, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -21550,7 +22339,7 @@ } }, { - "id": 226, + "id": 228, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -21566,7 +22355,7 @@ } }, { - "id": 227, + "id": 229, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -21577,7 +22366,7 @@ "type": { "type": "reflection", "declaration": { - "id": 228, + "id": 230, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -21586,7 +22375,7 @@ }, "children": [ { - "id": 229, + "id": 231, "name": "config", "kind": 32, "kindString": "Variable", @@ -21622,7 +22411,9 @@ { "title": "Variables", "kind": 32, - "children": [229] + "children": [ + 231 + ] } ], "sources": [ @@ -21652,7 +22443,7 @@ ] }, { - "id": 272, + "id": 274, "name": "range", "kind": 2048, "kindString": "Method", @@ -21661,7 +22452,7 @@ }, "signatures": [ { - "id": 273, + "id": 275, "name": "range", "kind": 4096, "kindString": "Call signature", @@ -21673,7 +22464,7 @@ }, "parameters": [ { - "id": 274, + "id": 276, "name": "from", "kind": 32768, "kindString": "Parameter", @@ -21689,7 +22480,7 @@ } }, { - "id": 275, + "id": 277, "name": "to", "kind": 32768, "kindString": "Parameter", @@ -21705,7 +22496,7 @@ } }, { - "id": 276, + "id": 278, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -21716,7 +22507,7 @@ "type": { "type": "reflection", "declaration": { - "id": 277, + "id": 279, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -21725,7 +22516,7 @@ }, "children": [ { - "id": 278, + "id": 280, "name": "foreignTable", "kind": 32, "kindString": "Variable", @@ -21761,7 +22552,9 @@ { "title": "Variables", "kind": 32, - "children": [278] + "children": [ + 280 + ] } ], "sources": [ @@ -21801,7 +22594,7 @@ } }, { - "id": 198, + "id": 200, "name": "rangeAdjacent", "kind": 2048, "kindString": "Method", @@ -21810,7 +22603,7 @@ }, "signatures": [ { - "id": 199, + "id": 201, "name": "rangeAdjacent", "kind": 4096, "kindString": "Call signature", @@ -21822,7 +22615,7 @@ }, "parameters": [ { - "id": 200, + "id": 202, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -21842,7 +22635,7 @@ } }, { - "id": 201, + "id": 203, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -21873,7 +22666,7 @@ ] }, { - "id": 183, + "id": 185, "name": "rangeGt", "kind": 2048, "kindString": "Method", @@ -21882,7 +22675,7 @@ }, "signatures": [ { - "id": 184, + "id": 186, "name": "rangeGt", "kind": 4096, "kindString": "Call signature", @@ -21894,7 +22687,7 @@ }, "parameters": [ { - "id": 185, + "id": 187, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -21914,7 +22707,7 @@ } }, { - "id": 186, + "id": 188, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -21945,7 +22738,7 @@ ] }, { - "id": 188, + "id": 190, "name": "rangeGte", "kind": 2048, "kindString": "Method", @@ -21954,7 +22747,7 @@ }, "signatures": [ { - "id": 189, + "id": 191, "name": "rangeGte", "kind": 4096, "kindString": "Call signature", @@ -21966,7 +22759,7 @@ }, "parameters": [ { - "id": 190, + "id": 192, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -21986,7 +22779,7 @@ } }, { - "id": 191, + "id": 193, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -22017,7 +22810,7 @@ ] }, { - "id": 178, + "id": 180, "name": "rangeLt", "kind": 2048, "kindString": "Method", @@ -22026,7 +22819,7 @@ }, "signatures": [ { - "id": 179, + "id": 181, "name": "rangeLt", "kind": 4096, "kindString": "Call signature", @@ -22038,7 +22831,7 @@ }, "parameters": [ { - "id": 180, + "id": 182, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -22058,7 +22851,7 @@ } }, { - "id": 181, + "id": 183, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -22089,7 +22882,7 @@ ] }, { - "id": 193, + "id": 195, "name": "rangeLte", "kind": 2048, "kindString": "Method", @@ -22098,7 +22891,7 @@ }, "signatures": [ { - "id": 194, + "id": 196, "name": "rangeLte", "kind": 4096, "kindString": "Call signature", @@ -22110,7 +22903,7 @@ }, "parameters": [ { - "id": 195, + "id": 197, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -22130,7 +22923,7 @@ } }, { - "id": 196, + "id": 198, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -22161,7 +22954,7 @@ ] }, { - "id": 255, + "id": 257, "name": "select", "kind": 2048, "kindString": "Method", @@ -22170,7 +22963,7 @@ }, "signatures": [ { - "id": 256, + "id": 258, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -22182,7 +22975,7 @@ }, "parameters": [ { - "id": 257, + "id": 259, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -22224,7 +23017,7 @@ } }, { - "id": 279, + "id": 281, "name": "single", "kind": 2048, "kindString": "Method", @@ -22233,7 +23026,7 @@ }, "signatures": [ { - "id": 280, + "id": 282, "name": "single", "kind": 4096, "kindString": "Call signature", @@ -22281,7 +23074,7 @@ } }, { - "id": 208, + "id": 210, "name": "textSearch", "kind": 2048, "kindString": "Method", @@ -22290,7 +23083,7 @@ }, "signatures": [ { - "id": 209, + "id": 211, "name": "textSearch", "kind": 4096, "kindString": "Call signature", @@ -22302,7 +23095,7 @@ }, "parameters": [ { - "id": 210, + "id": 212, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -22322,7 +23115,7 @@ } }, { - "id": 211, + "id": 213, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -22338,7 +23131,7 @@ } }, { - "id": 212, + "id": 214, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -22349,7 +23142,7 @@ "type": { "type": "reflection", "declaration": { - "id": 213, + "id": 215, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -22358,7 +23151,7 @@ }, "children": [ { - "id": 214, + "id": 216, "name": "config", "kind": 32, "kindString": "Variable", @@ -22390,7 +23183,7 @@ } }, { - "id": 215, + "id": 217, "name": "type", "kind": 32, "kindString": "Variable", @@ -22435,7 +23228,10 @@ { "title": "Variables", "kind": 32, - "children": [214, 215] + "children": [ + 216, + 217 + ] } ], "sources": [ @@ -22465,7 +23261,7 @@ ] }, { - "id": 292, + "id": 296, "name": "then", "kind": 2048, "kindString": "Method", @@ -22474,7 +23270,7 @@ }, "signatures": [ { - "id": 293, + "id": 297, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -22483,7 +23279,7 @@ }, "typeParameter": [ { - "id": 294, + "id": 298, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -22492,7 +23288,7 @@ } }, { - "id": 295, + "id": 299, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -22503,7 +23299,7 @@ ], "parameters": [ { - "id": 296, + "id": 300, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -22517,7 +23313,7 @@ { "type": "reflection", "declaration": { - "id": 297, + "id": 301, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -22526,7 +23322,7 @@ }, "signatures": [ { - "id": 298, + "id": 302, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -22535,7 +23331,7 @@ }, "parameters": [ { - "id": 299, + "id": 303, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -22617,7 +23413,7 @@ } }, { - "id": 300, + "id": 304, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -22631,7 +23427,7 @@ { "type": "reflection", "declaration": { - "id": 301, + "id": 305, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -22640,7 +23436,7 @@ }, "signatures": [ { - "id": 302, + "id": 306, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -22649,7 +23445,7 @@ }, "parameters": [ { - "id": 303, + "id": 307, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -22766,7 +23562,7 @@ } }, { - "id": 237, + "id": 239, "name": "wfts", "kind": 2048, "kindString": "Method", @@ -22775,7 +23571,7 @@ }, "signatures": [ { - "id": 238, + "id": 240, "name": "wfts", "kind": 4096, "kindString": "Call signature", @@ -22793,7 +23589,7 @@ }, "parameters": [ { - "id": 239, + "id": 241, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -22813,7 +23609,7 @@ } }, { - "id": 240, + "id": 242, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -22829,7 +23625,7 @@ } }, { - "id": 241, + "id": 243, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -22840,7 +23636,7 @@ "type": { "type": "reflection", "declaration": { - "id": 242, + "id": 244, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -22849,7 +23645,7 @@ }, "children": [ { - "id": 243, + "id": 245, "name": "config", "kind": 32, "kindString": "Variable", @@ -22885,7 +23681,9 @@ { "title": "Variables", "kind": 32, - "children": [243] + "children": [ + 245 + ] } ], "sources": [ @@ -22919,20 +23717,67 @@ { "title": "Constructors", "kind": 512, - "children": [289] + "children": [ + 293 + ] }, { "title": "Properties", "kind": 1024, - "children": [202, 288, 177, 172, 283, 281, 192, 197, 207, 287, 182, 187, 282] + "children": [ + 204, + 292, + 179, + 174, + 287, + 285, + 194, + 199, + 209, + 291, + 184, + 189, + 286 + ] }, { "title": "Methods", "kind": 2048, "children": [ - 173, 168, 128, 244, 216, 136, 140, 156, 164, 160, 152, 266, 144, 148, 249, 132, - 117, 122, 258, 203, 230, 223, 272, 198, 183, 188, 178, 193, 255, 279, 208, 292, - 237 + 175, + 170, + 283, + 130, + 246, + 218, + 138, + 142, + 158, + 166, + 162, + 154, + 268, + 146, + 150, + 251, + 134, + 119, + 124, + 260, + 205, + 232, + 225, + 274, + 200, + 185, + 190, + 180, + 195, + 257, + 281, + 210, + 296, + 239 ] } ], @@ -22977,7 +23822,7 @@ ] }, { - "id": 304, + "id": 308, "name": "FilterOperator", "kind": 4194304, "kindString": "Type alias", @@ -23091,12 +23936,16 @@ { "title": "Classes", "kind": 128, - "children": [115] + "children": [ + 117 + ] }, { "title": "Type aliases", "kind": 4194304, - "children": [304] + "children": [ + 308 + ] } ], "sources": [ @@ -23108,7 +23957,7 @@ ] }, { - "id": 305, + "id": 309, "name": "\"lib/PostgrestQueryBuilder\"", "kind": 1, "kindString": "Module", @@ -23118,7 +23967,7 @@ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestQueryBuilder.ts", "children": [ { - "id": 306, + "id": 310, "name": "PostgrestQueryBuilder", "kind": 128, "kindString": "Class", @@ -23127,7 +23976,7 @@ }, "typeParameter": [ { - "id": 307, + "id": 311, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -23138,7 +23987,7 @@ ], "children": [ { - "id": 308, + "id": 312, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -23147,7 +23996,7 @@ }, "signatures": [ { - "id": 309, + "id": 313, "name": "new PostgrestQueryBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -23156,7 +24005,7 @@ }, "parameters": [ { - "id": 310, + "id": 314, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -23169,7 +24018,7 @@ } }, { - "id": 311, + "id": 315, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -23180,7 +24029,7 @@ "type": { "type": "reflection", "declaration": { - "id": 312, + "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -23189,7 +24038,7 @@ }, "children": [ { - "id": 313, + "id": 317, "name": "headers", "kind": 32, "kindString": "Variable", @@ -23206,7 +24055,7 @@ "type": { "type": "reflection", "declaration": { - "id": 314, + "id": 318, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -23215,7 +24064,7 @@ }, "indexSignature": [ { - "id": 315, + "id": 319, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -23224,7 +24073,7 @@ }, "parameters": [ { - "id": 316, + "id": 320, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -23247,7 +24096,7 @@ } }, { - "id": 317, + "id": 321, "name": "schema", "kind": 32, "kindString": "Variable", @@ -23280,7 +24129,10 @@ { "title": "Variables", "kind": 32, - "children": [313, 317] + "children": [ + 317, + 321 + ] } ], "sources": [ @@ -23297,7 +24149,7 @@ ], "type": { "type": "reference", - "id": 306, + "id": 310, "name": "PostgrestQueryBuilder" }, "overwrites": { @@ -23321,7 +24173,7 @@ } }, { - "id": 368, + "id": 372, "name": "body", "kind": 1024, "kindString": "Property", @@ -23372,7 +24224,7 @@ } }, { - "id": 363, + "id": 367, "name": "headers", "kind": 1024, "kindString": "Property", @@ -23390,7 +24242,7 @@ "type": { "type": "reflection", "declaration": { - "id": 364, + "id": 368, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -23399,7 +24251,7 @@ }, "indexSignature": [ { - "id": 365, + "id": 369, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -23408,7 +24260,7 @@ }, "parameters": [ { - "id": 366, + "id": 370, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -23443,7 +24295,7 @@ } }, { - "id": 361, + "id": 365, "name": "method", "kind": 1024, "kindString": "Property", @@ -23490,7 +24342,7 @@ } }, { - "id": 367, + "id": 371, "name": "schema", "kind": 1024, "kindString": "Property", @@ -23526,7 +24378,7 @@ } }, { - "id": 362, + "id": 366, "name": "url", "kind": 1024, "kindString": "Property", @@ -23552,7 +24404,7 @@ } }, { - "id": 355, + "id": 359, "name": "delete", "kind": 2048, "kindString": "Method", @@ -23561,7 +24413,7 @@ }, "signatures": [ { - "id": 356, + "id": 360, "name": "delete", "kind": 4096, "kindString": "Call signature", @@ -23573,7 +24425,7 @@ }, "parameters": [ { - "id": 357, + "id": 361, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -23584,7 +24436,7 @@ "type": { "type": "reflection", "declaration": { - "id": 358, + "id": 362, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -23593,7 +24445,7 @@ }, "children": [ { - "id": 360, + "id": 364, "name": "count", "kind": 32, "kindString": "Variable", @@ -23634,7 +24486,7 @@ "defaultValue": "null" }, { - "id": 359, + "id": 363, "name": "returning", "kind": 32, "kindString": "Variable", @@ -23671,7 +24523,10 @@ { "title": "Variables", "kind": 32, - "children": [360, 359] + "children": [ + 364, + 363 + ] } ], "sources": [ @@ -23688,7 +24543,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -23708,7 +24563,7 @@ ] }, { - "id": 325, + "id": 329, "name": "insert", "kind": 2048, "kindString": "Method", @@ -23717,7 +24572,7 @@ }, "signatures": [ { - "id": 326, + "id": 330, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -23729,7 +24584,7 @@ }, "parameters": [ { - "id": 327, + "id": 331, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -23769,7 +24624,7 @@ } }, { - "id": 328, + "id": 332, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -23787,7 +24642,7 @@ { "type": "reflection", "declaration": { - "id": 329, + "id": 333, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -23796,7 +24651,7 @@ }, "children": [ { - "id": 331, + "id": 335, "name": "count", "kind": 32, "kindString": "Variable", @@ -23834,7 +24689,7 @@ } }, { - "id": 330, + "id": 334, "name": "returning", "kind": 32, "kindString": "Variable", @@ -23868,7 +24723,10 @@ { "title": "Variables", "kind": 32, - "children": [331, 330] + "children": [ + 335, + 334 + ] } ] } @@ -23879,7 +24737,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -23890,7 +24748,7 @@ } }, { - "id": 332, + "id": 336, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -23907,7 +24765,7 @@ }, "parameters": [ { - "id": 333, + "id": 337, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -23944,7 +24802,7 @@ } }, { - "id": 334, + "id": 338, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -23962,7 +24820,7 @@ { "type": "reflection", "declaration": { - "id": 335, + "id": 339, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -23971,7 +24829,7 @@ }, "children": [ { - "id": 339, + "id": 343, "name": "count", "kind": 32, "kindString": "Variable", @@ -24009,7 +24867,7 @@ } }, { - "id": 337, + "id": 341, "name": "onConflict", "kind": 32, "kindString": "Variable", @@ -24039,7 +24897,7 @@ } }, { - "id": 338, + "id": 342, "name": "returning", "kind": 32, "kindString": "Variable", @@ -24069,7 +24927,7 @@ } }, { - "id": 336, + "id": 340, "name": "upsert", "kind": 32, "kindString": "Variable", @@ -24107,7 +24965,12 @@ { "title": "Variables", "kind": 32, - "children": [339, 337, 338, 336] + "children": [ + 343, + 341, + 342, + 340 + ] } ] } @@ -24118,7 +24981,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -24148,7 +25011,7 @@ ] }, { - "id": 318, + "id": 322, "name": "select", "kind": 2048, "kindString": "Method", @@ -24157,7 +25020,7 @@ }, "signatures": [ { - "id": 319, + "id": 323, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -24169,7 +25032,7 @@ }, "parameters": [ { - "id": 320, + "id": 324, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -24186,7 +25049,7 @@ "defaultValue": "\"*\"" }, { - "id": 321, + "id": 325, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -24197,7 +25060,7 @@ "type": { "type": "reflection", "declaration": { - "id": 322, + "id": 326, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -24206,7 +25069,7 @@ }, "children": [ { - "id": 324, + "id": 328, "name": "count", "kind": 32, "kindString": "Variable", @@ -24247,7 +25110,7 @@ "defaultValue": "null" }, { - "id": 323, + "id": 327, "name": "head", "kind": 32, "kindString": "Variable", @@ -24275,7 +25138,10 @@ { "title": "Variables", "kind": 32, - "children": [324, 323] + "children": [ + 328, + 327 + ] } ], "sources": [ @@ -24292,7 +25158,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -24312,7 +25178,7 @@ ] }, { - "id": 369, + "id": 373, "name": "then", "kind": 2048, "kindString": "Method", @@ -24321,7 +25187,7 @@ }, "signatures": [ { - "id": 370, + "id": 374, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -24330,7 +25196,7 @@ }, "typeParameter": [ { - "id": 371, + "id": 375, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -24339,7 +25205,7 @@ } }, { - "id": 372, + "id": 376, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -24350,7 +25216,7 @@ ], "parameters": [ { - "id": 373, + "id": 377, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -24364,7 +25230,7 @@ { "type": "reflection", "declaration": { - "id": 374, + "id": 378, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -24373,7 +25239,7 @@ }, "signatures": [ { - "id": 375, + "id": 379, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -24382,7 +25248,7 @@ }, "parameters": [ { - "id": 376, + "id": 380, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -24464,7 +25330,7 @@ } }, { - "id": 377, + "id": 381, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -24478,7 +25344,7 @@ { "type": "reflection", "declaration": { - "id": 378, + "id": 382, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -24487,7 +25353,7 @@ }, "signatures": [ { - "id": 379, + "id": 383, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -24496,7 +25362,7 @@ }, "parameters": [ { - "id": 380, + "id": 384, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -24613,7 +25479,7 @@ } }, { - "id": 348, + "id": 352, "name": "update", "kind": 2048, "kindString": "Method", @@ -24622,7 +25488,7 @@ }, "signatures": [ { - "id": 349, + "id": 353, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -24634,7 +25500,7 @@ }, "parameters": [ { - "id": 350, + "id": 354, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -24656,7 +25522,7 @@ } }, { - "id": 351, + "id": 355, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -24667,7 +25533,7 @@ "type": { "type": "reflection", "declaration": { - "id": 352, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -24676,7 +25542,7 @@ }, "children": [ { - "id": 354, + "id": 358, "name": "count", "kind": 32, "kindString": "Variable", @@ -24717,7 +25583,7 @@ "defaultValue": "null" }, { - "id": 353, + "id": 357, "name": "returning", "kind": 32, "kindString": "Variable", @@ -24754,7 +25620,10 @@ { "title": "Variables", "kind": 32, - "children": [354, 353] + "children": [ + 358, + 357 + ] } ], "sources": [ @@ -24771,7 +25640,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -24791,7 +25660,7 @@ ] }, { - "id": 340, + "id": 344, "name": "upsert", "kind": 2048, "kindString": "Method", @@ -24800,7 +25669,7 @@ }, "signatures": [ { - "id": 341, + "id": 345, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -24812,7 +25681,7 @@ }, "parameters": [ { - "id": 342, + "id": 346, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -24852,7 +25721,7 @@ } }, { - "id": 343, + "id": 347, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -24863,7 +25732,7 @@ "type": { "type": "reflection", "declaration": { - "id": 344, + "id": 348, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -24872,7 +25741,7 @@ }, "children": [ { - "id": 347, + "id": 351, "name": "count", "kind": 32, "kindString": "Variable", @@ -24913,7 +25782,7 @@ "defaultValue": "null" }, { - "id": 345, + "id": 349, "name": "onConflict", "kind": 32, "kindString": "Variable", @@ -24945,7 +25814,7 @@ } }, { - "id": 346, + "id": 350, "name": "returning", "kind": 32, "kindString": "Variable", @@ -24982,7 +25851,11 @@ { "title": "Variables", "kind": 32, - "children": [347, 345, 346] + "children": [ + 351, + 349, + 350 + ] } ], "sources": [ @@ -24999,7 +25872,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -25023,17 +25896,32 @@ { "title": "Constructors", "kind": 512, - "children": [308] + "children": [ + 312 + ] }, { "title": "Properties", "kind": 1024, - "children": [368, 363, 361, 367, 362] + "children": [ + 372, + 367, + 365, + 371, + 366 + ] }, { "title": "Methods", "kind": 2048, - "children": [355, 325, 318, 369, 348, 340] + "children": [ + 359, + 329, + 322, + 373, + 352, + 344 + ] } ], "sources": [ @@ -25081,7 +25969,9 @@ { "title": "Classes", "kind": 128, - "children": [306] + "children": [ + 310 + ] } ], "sources": [ @@ -25093,7 +25983,7 @@ ] }, { - "id": 381, + "id": 385, "name": "\"lib/PostgrestRpcBuilder\"", "kind": 1, "kindString": "Module", @@ -25103,7 +25993,7 @@ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestRpcBuilder.ts", "children": [ { - "id": 382, + "id": 386, "name": "PostgrestRpcBuilder", "kind": 128, "kindString": "Class", @@ -25112,7 +26002,7 @@ }, "typeParameter": [ { - "id": 383, + "id": 387, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -25123,7 +26013,7 @@ ], "children": [ { - "id": 384, + "id": 388, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -25132,7 +26022,7 @@ }, "signatures": [ { - "id": 385, + "id": 389, "name": "new PostgrestRpcBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -25141,7 +26031,7 @@ }, "parameters": [ { - "id": 386, + "id": 390, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -25154,7 +26044,7 @@ } }, { - "id": 387, + "id": 391, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -25165,7 +26055,7 @@ "type": { "type": "reflection", "declaration": { - "id": 388, + "id": 392, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -25174,7 +26064,7 @@ }, "children": [ { - "id": 389, + "id": 393, "name": "headers", "kind": 32, "kindString": "Variable", @@ -25191,7 +26081,7 @@ "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 394, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -25200,7 +26090,7 @@ }, "indexSignature": [ { - "id": 391, + "id": 395, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -25209,7 +26099,7 @@ }, "parameters": [ { - "id": 392, + "id": 396, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -25232,7 +26122,7 @@ } }, { - "id": 393, + "id": 397, "name": "schema", "kind": 32, "kindString": "Variable", @@ -25265,7 +26155,10 @@ { "title": "Variables", "kind": 32, - "children": [389, 393] + "children": [ + 393, + 397 + ] } ], "sources": [ @@ -25282,7 +26175,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 386, "name": "PostgrestRpcBuilder" }, "overwrites": { @@ -25306,7 +26199,7 @@ } }, { - "id": 407, + "id": 411, "name": "body", "kind": 1024, "kindString": "Property", @@ -25357,7 +26250,7 @@ } }, { - "id": 402, + "id": 406, "name": "headers", "kind": 1024, "kindString": "Property", @@ -25375,7 +26268,7 @@ "type": { "type": "reflection", "declaration": { - "id": 403, + "id": 407, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -25384,7 +26277,7 @@ }, "indexSignature": [ { - "id": 404, + "id": 408, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -25393,7 +26286,7 @@ }, "parameters": [ { - "id": 405, + "id": 409, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -25428,7 +26321,7 @@ } }, { - "id": 400, + "id": 404, "name": "method", "kind": 1024, "kindString": "Property", @@ -25475,7 +26368,7 @@ } }, { - "id": 406, + "id": 410, "name": "schema", "kind": 1024, "kindString": "Property", @@ -25511,7 +26404,7 @@ } }, { - "id": 401, + "id": 405, "name": "url", "kind": 1024, "kindString": "Property", @@ -25537,7 +26430,7 @@ } }, { - "id": 394, + "id": 398, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -25546,7 +26439,7 @@ }, "signatures": [ { - "id": 395, + "id": 399, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -25558,7 +26451,7 @@ }, "parameters": [ { - "id": 396, + "id": 400, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -25581,7 +26474,7 @@ } }, { - "id": 397, + "id": 401, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -25592,7 +26485,7 @@ "type": { "type": "reflection", "declaration": { - "id": 398, + "id": 402, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -25601,7 +26494,7 @@ }, "children": [ { - "id": 399, + "id": 403, "name": "count", "kind": 32, "kindString": "Variable", @@ -25643,7 +26536,9 @@ { "title": "Variables", "kind": 32, - "children": [399] + "children": [ + 403 + ] } ], "sources": [ @@ -25660,7 +26555,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -25680,7 +26575,7 @@ ] }, { - "id": 408, + "id": 412, "name": "then", "kind": 2048, "kindString": "Method", @@ -25689,7 +26584,7 @@ }, "signatures": [ { - "id": 409, + "id": 413, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -25698,7 +26593,7 @@ }, "typeParameter": [ { - "id": 410, + "id": 414, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -25707,7 +26602,7 @@ } }, { - "id": 411, + "id": 415, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -25718,7 +26613,7 @@ ], "parameters": [ { - "id": 412, + "id": 416, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -25732,7 +26627,7 @@ { "type": "reflection", "declaration": { - "id": 413, + "id": 417, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -25741,7 +26636,7 @@ }, "signatures": [ { - "id": 414, + "id": 418, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -25750,7 +26645,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -25832,7 +26727,7 @@ } }, { - "id": 416, + "id": 420, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -25846,7 +26741,7 @@ { "type": "reflection", "declaration": { - "id": 417, + "id": 421, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -25855,7 +26750,7 @@ }, "signatures": [ { - "id": 418, + "id": 422, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -25864,7 +26759,7 @@ }, "parameters": [ { - "id": 419, + "id": 423, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -25985,17 +26880,28 @@ { "title": "Constructors", "kind": 512, - "children": [384] + "children": [ + 388 + ] }, { "title": "Properties", "kind": 1024, - "children": [407, 402, 400, 406, 401] + "children": [ + 411, + 406, + 404, + 410, + 405 + ] }, { "title": "Methods", "kind": 2048, - "children": [394, 408] + "children": [ + 398, + 412 + ] } ], "sources": [ @@ -26043,7 +26949,9 @@ { "title": "Classes", "kind": 128, - "children": [382] + "children": [ + 386 + ] } ], "sources": [ @@ -26088,7 +26996,7 @@ ], "children": [ { - "id": 99, + "id": 101, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -26097,7 +27005,7 @@ }, "signatures": [ { - "id": 100, + "id": 102, "name": "new PostgrestTransformBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -26106,7 +27014,7 @@ }, "parameters": [ { - "id": 101, + "id": 103, "name": "builder", "kind": 32768, "kindString": "Parameter", @@ -26152,7 +27060,7 @@ } }, { - "id": 98, + "id": 100, "name": "body", "kind": 1024, "kindString": "Property", @@ -26203,7 +27111,7 @@ } }, { - "id": 93, + "id": 95, "name": "headers", "kind": 1024, "kindString": "Property", @@ -26221,7 +27129,7 @@ "type": { "type": "reflection", "declaration": { - "id": 94, + "id": 96, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -26230,7 +27138,7 @@ }, "indexSignature": [ { - "id": 95, + "id": 97, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -26239,7 +27147,7 @@ }, "parameters": [ { - "id": 96, + "id": 98, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -26274,7 +27182,7 @@ } }, { - "id": 91, + "id": 93, "name": "method", "kind": 1024, "kindString": "Property", @@ -26321,7 +27229,7 @@ } }, { - "id": 97, + "id": 99, "name": "schema", "kind": 1024, "kindString": "Property", @@ -26357,7 +27265,7 @@ } }, { - "id": 92, + "id": 94, "name": "url", "kind": 1024, "kindString": "Property", @@ -26382,6 +27290,40 @@ "name": "PostgrestBuilder.url" } }, + { + "id": 91, + "name": "csv", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 92, + "name": "csv", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set the response type to CSV." + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ], + "sources": [ + { + "fileName": "lib/PostgrestTransformBuilder.ts", + "line": 100, + "character": 6 + } + ] + }, { "id": 76, "name": "limit", @@ -26476,7 +27418,9 @@ { "title": "Variables", "kind": 32, - "children": [81] + "children": [ + 81 + ] } ], "sources": [ @@ -26651,7 +27595,11 @@ { "title": "Variables", "kind": 32, - "children": [73, 75, 74] + "children": [ + 73, + 75, + 74 + ] } ], "sources": [ @@ -26790,7 +27738,9 @@ { "title": "Variables", "kind": 32, - "children": [88] + "children": [ + 88 + ] } ], "sources": [ @@ -26920,7 +27870,7 @@ ] }, { - "id": 102, + "id": 104, "name": "then", "kind": 2048, "kindString": "Method", @@ -26929,7 +27879,7 @@ }, "signatures": [ { - "id": 103, + "id": 105, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -26938,7 +27888,7 @@ }, "typeParameter": [ { - "id": 104, + "id": 106, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -26947,7 +27897,7 @@ } }, { - "id": 105, + "id": 107, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -26958,7 +27908,7 @@ ], "parameters": [ { - "id": 106, + "id": 108, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -26972,7 +27922,7 @@ { "type": "reflection", "declaration": { - "id": 107, + "id": 109, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -26981,7 +27931,7 @@ }, "signatures": [ { - "id": 108, + "id": 110, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -26990,7 +27940,7 @@ }, "parameters": [ { - "id": 109, + "id": 111, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -27072,7 +28022,7 @@ } }, { - "id": 110, + "id": 112, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -27086,7 +28036,7 @@ { "type": "reflection", "declaration": { - "id": 111, + "id": 113, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -27095,7 +28045,7 @@ }, "signatures": [ { - "id": 112, + "id": 114, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -27104,7 +28054,7 @@ }, "parameters": [ { - "id": 113, + "id": 115, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -27225,17 +28175,33 @@ { "title": "Constructors", "kind": 512, - "children": [99] + "children": [ + 101 + ] }, { "title": "Properties", "kind": 1024, - "children": [98, 93, 91, 97, 92] + "children": [ + 100, + 95, + 93, + 99, + 94 + ] }, { "title": "Methods", "kind": 2048, - "children": [76, 68, 82, 65, 89, 102] + "children": [ + 91, + 76, + 68, + 82, + 65, + 89, + 104 + ] } ], "sources": [ @@ -27261,7 +28227,7 @@ "extendedBy": [ { "type": "reference", - "id": 115, + "id": 117, "name": "PostgrestFilterBuilder" } ], @@ -27290,7 +28256,9 @@ { "title": "Classes", "kind": 128, - "children": [63] + "children": [ + 63 + ] } ], "sources": [ @@ -27888,17 +28856,27 @@ { "title": "Constructors", "kind": 512, - "children": [37] + "children": [ + 37 + ] }, { "title": "Properties", "kind": 1024, - "children": [36, 31, 29, 35, 30] + "children": [ + 36, + 31, + 29, + 35, + 30 + ] }, { "title": "Methods", "kind": 2048, - "children": [40] + "children": [ + 40 + ] } ], "sources": [ @@ -27916,12 +28894,12 @@ }, { "type": "reference", - "id": 306, + "id": 310, "name": "PostgrestQueryBuilder" }, { "type": "reference", - "id": 382, + "id": 386, "name": "PostgrestRpcBuilder" } ], @@ -27997,7 +28975,10 @@ { "title": "Properties", "kind": 1024, - "children": [3, 4] + "children": [ + 3, + 4 + ] } ], "sources": [ @@ -28156,7 +29137,14 @@ { "title": "Properties", "kind": 1024, - "children": [16, 17, 15, 14, 18, 19] + "children": [ + 16, + 17, + 15, + 14, + 18, + 19 + ] } ], "sources": [ @@ -28328,7 +29316,14 @@ { "title": "Properties", "kind": 1024, - "children": [9, 10, 8, 7, 11, 12] + "children": [ + 9, + 10, + 8, + 7, + 11, + 12 + ] } ], "sources": [ @@ -28467,7 +29462,13 @@ { "title": "Properties", "kind": 1024, - "children": [24, 23, 22, 25, 26] + "children": [ + 24, + 23, + 22, + 25, + 26 + ] } ], "sources": [ @@ -28588,7 +29589,12 @@ { "title": "Variables", "kind": 32, - "children": [57, 55, 56, 54] + "children": [ + 57, + 55, + 56, + 54 + ] } ], "sources": [ @@ -28702,17 +29708,28 @@ { "title": "Classes", "kind": 128, - "children": [27] + "children": [ + 27 + ] }, { "title": "Interfaces", "kind": 256, - "children": [2, 13, 5, 20] + "children": [ + 2, + 13, + 5, + 20 + ] }, { "title": "Type aliases", "kind": 4194304, - "children": [52, 58, 60] + "children": [ + 52, + 58, + 60 + ] } ], "sources": [ @@ -28728,7 +29745,15 @@ { "title": "Modules", "kind": 1, - "children": [420, 453, 114, 305, 381, 62, 1] + "children": [ + 424, + 457, + 116, + 309, + 385, + 62, + 1 + ] } ] }, @@ -30018,7 +31043,10 @@ { "title": "Variables", "kind": 32, - "children": [238, 237] + "children": [ + 238, + 237 + ] } ], "sources": [ @@ -30709,7 +31737,12 @@ { "title": "Variables", "kind": 32, - "children": [223, 224, 225, 222] + "children": [ + 223, + 224, + 225, + 222 + ] } ], "sources": [ @@ -30729,28 +31762,70 @@ { "title": "Constructors", "kind": 512, - "children": [226] + "children": [ + 226 + ] }, { "title": "Properties", "kind": 1024, "children": [ - 196, 218, 216, 215, 197, 198, 208, 210, 214, 209, 202, 211, 217, 213, 212, 219, - 220, 206, 207 + 196, + 218, + 216, + 215, + 197, + 198, + 208, + 210, + 214, + 209, + 202, + 211, + 217, + 213, + 212, + 219, + 220, + 206, + 207 ] }, { "title": "Methods", "kind": 2048, "children": [ - 288, 295, 280, 283, 278, 297, 299, 286, 263, 230, 256, 232, 274, 258, 239, 276, - 247, 271, 250, 253, 244, 268, 260 + 288, + 295, + 280, + 283, + 278, + 297, + 299, + 286, + 263, + 230, + 256, + 232, + 274, + 258, + 239, + 276, + 247, + 271, + 250, + 253, + 244, + 268, + 260 ] }, { "title": "Object literals", "kind": 2097152, - "children": [221] + "children": [ + 221 + ] } ], "sources": [ @@ -30860,7 +31935,12 @@ { "title": "Variables", "kind": 32, - "children": [322, 323, 324, 321] + "children": [ + 322, + 323, + 324, + 321 + ] } ], "sources": [ @@ -31209,7 +32289,18 @@ { "title": "Variables", "kind": 32, - "children": [309, 308, 311, 305, 307, 306, 315, 310, 304, 303] + "children": [ + 309, + 308, + 311, + 305, + 307, + 306, + 315, + 310, + 304, + 303 + ] } ], "sources": [ @@ -31256,17 +32347,24 @@ { "title": "Classes", "kind": 128, - "children": [195] + "children": [ + 195 + ] }, { "title": "Type aliases", "kind": 4194304, - "children": [319, 301] + "children": [ + 319, + 301 + ] }, { "title": "Functions", "kind": 64, - "children": [325] + "children": [ + 325 + ] } ], "sources": [ @@ -32571,19 +33669,51 @@ { "title": "Constructors", "kind": 512, - "children": [99] + "children": [ + 99 + ] }, { "title": "Properties", "kind": 1024, - "children": [92, 96, 95, 101, 98, 97, 102, 94, 93, 100] + "children": [ + 92, + 96, + 95, + 101, + 98, + 97, + 102, + 94, + 93, + 100 + ] }, { "title": "Methods", "kind": 2048, "children": [ - 125, 159, 161, 163, 165, 167, 140, 143, 122, 118, 112, 115, 135, 127, 148, 107, - 156, 145, 109, 151, 132 + 125, + 159, + 161, + 163, + 165, + 167, + 140, + 143, + 122, + 118, + 112, + 115, + 135, + 127, + 148, + 107, + 156, + 145, + 109, + 151, + 132 ] } ], @@ -32600,7 +33730,9 @@ { "title": "Classes", "kind": 128, - "children": [91] + "children": [ + 91 + ] } ], "sources": [ @@ -32737,7 +33869,13 @@ { "title": "Enumeration members", "kind": 16, - "children": [14, 15, 16, 18, 17] + "children": [ + 14, + 15, + 16, + 18, + 17 + ] } ], "sources": [ @@ -32847,7 +33985,13 @@ { "title": "Enumeration members", "kind": 16, - "children": [8, 9, 10, 11, 12] + "children": [ + 8, + 9, + 10, + 11, + 12 + ] } ], "sources": [ @@ -32940,7 +34084,12 @@ { "title": "Enumeration members", "kind": 16, - "children": [6, 5, 3, 4] + "children": [ + 6, + 5, + 3, + 4 + ] } ], "sources": [ @@ -32982,7 +34131,9 @@ { "title": "Enumeration members", "kind": 16, - "children": [20] + "children": [ + 20 + ] } ], "sources": [ @@ -33064,12 +34215,21 @@ { "title": "Enumerations", "kind": 4, - "children": [13, 7, 2, 19] + "children": [ + 13, + 7, + 2, + 19 + ] }, { "title": "Variables", "kind": 32, - "children": [22, 21, 23] + "children": [ + 22, + 21, + 23 + ] } ], "sources": [ @@ -33355,7 +34515,10 @@ { "title": "Variables", "kind": 32, - "children": [50, 49] + "children": [ + 50, + 49 + ] } ], "sources": [ @@ -33444,7 +34607,10 @@ { "title": "Variables", "kind": 32, - "children": [46, 45] + "children": [ + 46, + 45 + ] } ], "sources": [ @@ -33799,7 +34965,10 @@ { "title": "Variables", "kind": 32, - "children": [86, 85] + "children": [ + 86, + 85 + ] } ], "sources": [ @@ -34058,17 +35227,40 @@ { "title": "Constructors", "kind": 512, - "children": [52] + "children": [ + 52 + ] }, { "title": "Properties", "kind": 1024, - "children": [53, 54, 55, 47, 43, 42, 51, 40, 56, 41] + "children": [ + 53, + 54, + 55, + 47, + 43, + 42, + 51, + 40, + 56, + 41 + ] }, { "title": "Methods", "kind": 2048, - "children": [77, 79, 87, 81, 67, 62, 65, 71, 73] + "children": [ + 77, + 79, + 87, + 81, + 67, + 62, + 65, + 71, + 73 + ] } ], "sources": [ @@ -34084,7 +35276,9 @@ { "title": "Classes", "kind": 128, - "children": [39] + "children": [ + 39 + ] } ], "sources": [ @@ -34264,7 +35458,12 @@ { "title": "Variables", "kind": 32, - "children": [182, 183, 180, 181] + "children": [ + 182, + 183, + 180, + 181 + ] } ] } @@ -34434,7 +35633,12 @@ { "title": "Variables", "kind": 32, - "children": [192, 193, 190, 191] + "children": [ + 192, + 193, + 190, + 191 + ] } ], "sources": [ @@ -34529,12 +35733,18 @@ { "title": "Properties", "kind": 1024, - "children": [171] + "children": [ + 171 + ] }, { "title": "Methods", "kind": 2048, - "children": [176, 184, 172] + "children": [ + 176, + 184, + 172 + ] } ], "sources": [ @@ -34550,7 +35760,9 @@ { "title": "Classes", "kind": 128, - "children": [170] + "children": [ + 170 + ] } ], "sources": [ @@ -34811,17 +36023,27 @@ { "title": "Constructors", "kind": 512, - "children": [28] + "children": [ + 28 + ] }, { "title": "Properties", "kind": 1024, - "children": [29, 26, 30, 27] + "children": [ + 29, + 26, + 30, + 27 + ] }, { "title": "Methods", "kind": 2048, - "children": [34, 36] + "children": [ + 34, + 36 + ] } ], "sources": [ @@ -34837,7 +36059,9 @@ { "title": "Classes", "kind": 128, - "children": [25] + "children": [ + 25 + ] } ], "sources": [ @@ -35267,8 +36491,29 @@ "title": "Enumeration members", "kind": 16, "children": [ - 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, - 345, 346, 347, 348, 349, 350, 351 + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351 ] } ], @@ -35382,7 +36627,12 @@ { "title": "Variables", "kind": 32, - "children": [354, 355, 356, 357] + "children": [ + 354, + 355, + 356, + 357 + ] } ], "sources": [ @@ -35672,7 +36922,9 @@ { "title": "Variables", "kind": 32, - "children": [368] + "children": [ + 368 + ] } ], "sources": [ @@ -36419,17 +37671,36 @@ { "title": "Enumerations", "kind": 4, - "children": [328] + "children": [ + 328 + ] }, { "title": "Type aliases", "kind": 4194304, - "children": [352, 358] + "children": [ + 352, + 358 + ] }, { "title": "Functions", "kind": 64, - "children": [378, 362, 372, 382, 406, 385, 388, 391, 394, 397, 400, 403, 410] + "children": [ + 378, + 362, + 372, + 382, + 406, + 385, + 388, + 391, + 394, + 397, + 400, + 403, + 410 + ] } ], "sources": [ @@ -36445,7 +37716,16 @@ { "title": "Modules", "kind": 1, - "children": [194, 90, 413, 1, 38, 169, 24, 327] + "children": [ + 194, + 90, + 413, + 1, + 38, + 169, + 24, + 327 + ] } ] }, @@ -36457,7 +37737,7 @@ "originalName": "", "children": [ { - "id": 231, + "id": 255, "name": "\"SupabaseStorageClient\"", "kind": 1, "kindString": "Module", @@ -36467,7 +37747,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/SupabaseStorageClient.ts", "children": [ { - "id": 232, + "id": 256, "name": "SupabaseStorageClient", "kind": 128, "kindString": "Class", @@ -36476,7 +37756,7 @@ }, "children": [ { - "id": 233, + "id": 257, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -36485,7 +37765,7 @@ }, "signatures": [ { - "id": 234, + "id": 258, "name": "new SupabaseStorageClient", "kind": 16384, "kindString": "Constructor signature", @@ -36494,7 +37774,7 @@ }, "parameters": [ { - "id": 235, + "id": 259, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -36507,7 +37787,7 @@ } }, { - "id": 236, + "id": 260, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -36517,7 +37797,7 @@ "type": { "type": "reflection", "declaration": { - "id": 237, + "id": 261, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -36526,7 +37806,7 @@ }, "indexSignature": [ { - "id": 238, + "id": 262, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -36535,7 +37815,7 @@ }, "parameters": [ { - "id": 239, + "id": 263, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -36568,12 +37848,12 @@ ], "type": { "type": "reference", - "id": 232, + "id": 256, "name": "SupabaseStorageClient" }, "overwrites": { "type": "reference", - "id": 93, + "id": 94, "name": "StorageBucketApi.__constructor" } } @@ -36587,12 +37867,12 @@ ], "overwrites": { "type": "reference", - "id": 93, + "id": 94, "name": "StorageBucketApi.__constructor" } }, { - "id": 244, + "id": 268, "name": "headers", "kind": 1024, "kindString": "Property", @@ -36610,7 +37890,7 @@ "type": { "type": "reflection", "declaration": { - "id": 245, + "id": 269, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -36619,7 +37899,7 @@ }, "indexSignature": [ { - "id": 246, + "id": 270, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -36628,7 +37908,7 @@ }, "parameters": [ { - "id": 247, + "id": 271, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -36658,12 +37938,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 89, + "id": 90, "name": "StorageBucketApi.headers" } }, { - "id": 243, + "id": 267, "name": "url", "kind": 1024, "kindString": "Property", @@ -36684,12 +37964,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 88, + "id": 89, "name": "StorageBucketApi.url" } }, { - "id": 259, + "id": 283, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -36698,7 +37978,7 @@ }, "signatures": [ { - "id": 260, + "id": 284, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -36711,7 +37991,7 @@ }, "parameters": [ { - "id": 261, + "id": 285, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -36725,15 +38005,19 @@ "type": "intrinsic", "name": "string" } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { + }, + { + "id": 286, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { "type": "reflection", "declaration": { - "id": 262, + "id": 287, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -36742,7 +38026,63 @@ }, "children": [ { - "id": 263, + "id": 288, + "name": "public", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 47, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 288 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 47, + "character": 12 + } + ] + } + }, + "defaultValue": "{ public: false }" + } + ], + "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", @@ -36752,8 +38092,8 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 48 + "line": 48, + "character": 19 } ], "type": { @@ -36771,7 +38111,7 @@ } }, { - "id": 264, + "id": 291, "name": "error", "kind": 32, "kindString": "Variable", @@ -36781,8 +38121,8 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 70 + "line": 48, + "character": 41 } ], "type": { @@ -36804,14 +38144,17 @@ { "title": "Variables", "kind": 32, - "children": [263, 264] + "children": [ + 290, + 291 + ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 42 + "line": 48, + "character": 13 } ] } @@ -36821,7 +38164,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 111, + "id": 112, "name": "StorageBucketApi.createBucket" } } @@ -36835,12 +38178,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 111, + "id": 112, "name": "StorageBucketApi.createBucket" } }, { - "id": 273, + "id": 311, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -36849,7 +38192,7 @@ }, "signatures": [ { - "id": 274, + "id": 312, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -36861,7 +38204,7 @@ }, "parameters": [ { - "id": 275, + "id": 313, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -36883,7 +38226,7 @@ { "type": "reflection", "declaration": { - "id": 276, + "id": 314, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -36892,7 +38235,7 @@ }, "children": [ { - "id": 277, + "id": 315, "name": "data", "kind": 32, "kindString": "Variable", @@ -36902,7 +38245,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 78, + "line": 106, "character": 19 } ], @@ -36912,7 +38255,7 @@ { "type": "reflection", "declaration": { - "id": 278, + "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -36921,7 +38264,7 @@ }, "children": [ { - "id": 279, + "id": 317, "name": "message", "kind": 32, "kindString": "Variable", @@ -36931,7 +38274,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 78, + "line": 106, "character": 30 } ], @@ -36945,13 +38288,15 @@ { "title": "Variables", "kind": 32, - "children": [279] + "children": [ + 317 + ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 78, + "line": 106, "character": 20 } ] @@ -36965,7 +38310,7 @@ } }, { - "id": 280, + "id": 318, "name": "error", "kind": 32, "kindString": "Variable", @@ -36975,7 +38320,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 78, + "line": 106, "character": 54 } ], @@ -36998,13 +38343,16 @@ { "title": "Variables", "kind": 32, - "children": [277, 280] + "children": [ + 315, + 318 + ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 78, + "line": 106, "character": 13 } ] @@ -37015,7 +38363,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 125, + "id": 140, "name": "StorageBucketApi.deleteBucket" } } @@ -37023,18 +38371,18 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 76, + "line": 104, "character": 20 } ], "inheritedFrom": { "type": "reference", - "id": 125, + "id": 140, "name": "StorageBucketApi.deleteBucket" } }, { - "id": 265, + "id": 303, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -37043,7 +38391,7 @@ }, "signatures": [ { - "id": 266, + "id": 304, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -37055,7 +38403,7 @@ }, "parameters": [ { - "id": 267, + "id": 305, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -37077,7 +38425,7 @@ { "type": "reflection", "declaration": { - "id": 268, + "id": 306, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -37086,7 +38434,7 @@ }, "children": [ { - "id": 269, + "id": 307, "name": "data", "kind": 32, "kindString": "Variable", @@ -37096,7 +38444,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 61, + "line": 89, "character": 19 } ], @@ -37106,7 +38454,7 @@ { "type": "reflection", "declaration": { - "id": 270, + "id": 308, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -37115,7 +38463,7 @@ }, "children": [ { - "id": 271, + "id": 309, "name": "message", "kind": 32, "kindString": "Variable", @@ -37125,7 +38473,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 61, + "line": 89, "character": 30 } ], @@ -37139,13 +38487,15 @@ { "title": "Variables", "kind": 32, - "children": [271] + "children": [ + 309 + ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 61, + "line": 89, "character": 20 } ] @@ -37159,7 +38509,7 @@ } }, { - "id": 272, + "id": 310, "name": "error", "kind": 32, "kindString": "Variable", @@ -37169,7 +38519,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 61, + "line": 89, "character": 54 } ], @@ -37192,13 +38542,16 @@ { "title": "Variables", "kind": 32, - "children": [269, 272] + "children": [ + 307, + 310 + ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 61, + "line": 89, "character": 13 } ] @@ -37209,7 +38562,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 117, + "id": 132, "name": "StorageBucketApi.emptyBucket" } } @@ -37217,18 +38570,18 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 59, + "line": 87, "character": 19 } ], "inheritedFrom": { "type": "reference", - "id": 117, + "id": 132, "name": "StorageBucketApi.emptyBucket" } }, { - "id": 240, + "id": 264, "name": "from", "kind": 2048, "kindString": "Method", @@ -37237,7 +38590,7 @@ }, "signatures": [ { - "id": 241, + "id": 265, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -37249,7 +38602,7 @@ }, "parameters": [ { - "id": 242, + "id": 266, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -37267,7 +38620,7 @@ ], "type": { "type": "reference", - "id": 137, + "id": 152, "name": "StorageFileApi" } } @@ -37281,7 +38634,7 @@ ] }, { - "id": 253, + "id": 277, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -37290,7 +38643,7 @@ }, "signatures": [ { - "id": 254, + "id": 278, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -37302,7 +38655,7 @@ }, "parameters": [ { - "id": 255, + "id": 279, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -37324,7 +38677,7 @@ { "type": "reflection", "declaration": { - "id": 256, + "id": 280, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -37333,7 +38686,7 @@ }, "children": [ { - "id": 257, + "id": 281, "name": "data", "kind": 32, "kindString": "Variable", @@ -37363,7 +38716,7 @@ } }, { - "id": 258, + "id": 282, "name": "error", "kind": 32, "kindString": "Variable", @@ -37396,7 +38749,10 @@ { "title": "Variables", "kind": 32, - "children": [257, 258] + "children": [ + 281, + 282 + ] } ], "sources": [ @@ -37413,7 +38769,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 105, + "id": 106, "name": "StorageBucketApi.getBucket" } } @@ -37427,12 +38783,12 @@ ], "inheritedFrom": { "type": "reference", - "id": 105, + "id": 106, "name": "StorageBucketApi.getBucket" } }, { - "id": 248, + "id": 272, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -37441,7 +38797,7 @@ }, "signatures": [ { - "id": 249, + "id": 273, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -37457,7 +38813,7 @@ { "type": "reflection", "declaration": { - "id": 250, + "id": 274, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -37466,7 +38822,7 @@ }, "children": [ { - "id": 251, + "id": 275, "name": "data", "kind": 32, "kindString": "Variable", @@ -37499,7 +38855,7 @@ } }, { - "id": 252, + "id": 276, "name": "error", "kind": 32, "kindString": "Variable", @@ -37532,7 +38888,10 @@ { "title": "Variables", "kind": 32, - "children": [251, 252] + "children": [ + 275, + 276 + ] } ], "sources": [ @@ -37549,7 +38908,7 @@ }, "inheritedFrom": { "type": "reference", - "id": 100, + "id": 101, "name": "StorageBucketApi.listBuckets" } } @@ -37563,26 +38922,297 @@ ], "inheritedFrom": { "type": "reference", - "id": 100, + "id": 101, "name": "StorageBucketApi.listBuckets" } + }, + { + "id": 292, + "name": "updateBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 293, + "name": "updateBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Updates a new Storage bucket" + }, + "parameters": [ + { + "id": 294, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A unique identifier for the bucket you are creating.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 295, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 296, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 297, + "name": "public", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 68, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 297 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 68, + "character": 12 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 298, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 299, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 300, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 301, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 301 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 302, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 54 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 299, + 302 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 121, + "name": "StorageBucketApi.updateBucket" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 66, + "character": 20 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 121, + "name": "StorageBucketApi.updateBucket" + } } ], "groups": [ { "title": "Constructors", "kind": 512, - "children": [233] + "children": [ + 257 + ] }, { "title": "Properties", "kind": 1024, - "children": [244, 243] + "children": [ + 268, + 267 + ] }, { "title": "Methods", "kind": 2048, - "children": [259, 273, 265, 240, 253, 248] + "children": [ + 283, + 311, + 303, + 264, + 277, + 272, + 292 + ] } ], "sources": [ @@ -37595,7 +39225,7 @@ "extendedTypes": [ { "type": "reference", - "id": 87, + "id": 88, "name": "StorageBucketApi" } ] @@ -37605,7 +39235,9 @@ { "title": "Classes", "kind": 128, - "children": [232] + "children": [ + 256 + ] } ], "sources": [ @@ -37617,7 +39249,7 @@ ] }, { - "id": 281, + "id": 319, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -37627,7 +39259,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/index.ts", "children": [ { - "id": 282, + "id": 320, "name": "Bucket", "kind": 16777216, "kindString": "Reference", @@ -37637,61 +39269,68 @@ "target": 58 }, { - "id": 283, + "id": 321, "name": "FileObject", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 64 + "target": 65 }, { - "id": 285, + "id": 323, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 78 + "target": 79 }, { - "id": 287, + "id": 325, "name": "Metadata", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 84 + "target": 85 }, { - "id": 286, + "id": 324, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 80 + "target": 81 }, { - "id": 284, + "id": 322, "name": "SortBy", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 75 + "target": 76 } ], "groups": [ { "title": "References", "kind": 16777216, - "children": [282, 283, 285, 287, 286, 284] + "children": [ + 320, + 321, + 323, + 325, + 324, + 322 + ] } ], "sources": [ @@ -37703,7 +39342,7 @@ ] }, { - "id": 86, + "id": 87, "name": "\"lib/StorageBucketApi\"", "kind": 1, "kindString": "Module", @@ -37713,7 +39352,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageBucketApi.ts", "children": [ { - "id": 87, + "id": 88, "name": "StorageBucketApi", "kind": 128, "kindString": "Class", @@ -37722,7 +39361,7 @@ }, "children": [ { - "id": 93, + "id": 94, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -37731,7 +39370,7 @@ }, "signatures": [ { - "id": 94, + "id": 95, "name": "new StorageBucketApi", "kind": 16384, "kindString": "Constructor signature", @@ -37740,7 +39379,7 @@ }, "parameters": [ { - "id": 95, + "id": 96, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -37753,7 +39392,7 @@ } }, { - "id": 96, + "id": 97, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -37763,7 +39402,7 @@ "type": { "type": "reflection", "declaration": { - "id": 97, + "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -37772,7 +39411,7 @@ }, "indexSignature": [ { - "id": 98, + "id": 99, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -37781,7 +39420,7 @@ }, "parameters": [ { - "id": 99, + "id": 100, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -37814,7 +39453,7 @@ ], "type": { "type": "reference", - "id": 87, + "id": 88, "name": "StorageBucketApi" } } @@ -37828,7 +39467,7 @@ ] }, { - "id": 89, + "id": 90, "name": "headers", "kind": 1024, "kindString": "Property", @@ -37846,7 +39485,7 @@ "type": { "type": "reflection", "declaration": { - "id": 90, + "id": 91, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -37855,7 +39494,7 @@ }, "indexSignature": [ { - "id": 91, + "id": 92, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -37864,7 +39503,7 @@ }, "parameters": [ { - "id": 92, + "id": 93, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -37894,7 +39533,7 @@ } }, { - "id": 88, + "id": 89, "name": "url", "kind": 1024, "kindString": "Property", @@ -37915,7 +39554,7 @@ } }, { - "id": 111, + "id": 112, "name": "createBucket", "kind": 2048, "kindString": "Method", @@ -37924,7 +39563,7 @@ }, "signatures": [ { - "id": 112, + "id": 113, "name": "createBucket", "kind": 4096, "kindString": "Call signature", @@ -37937,7 +39576,7 @@ }, "parameters": [ { - "id": 113, + "id": 114, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -37951,15 +39590,19 @@ "type": "intrinsic", "name": "string" } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { + }, + { + "id": 115, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { "type": "reflection", "declaration": { - "id": 114, + "id": 116, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -37968,7 +39611,63 @@ }, "children": [ { - "id": 115, + "id": 117, + "name": "public", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 47, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 117 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 47, + "character": 12 + } + ] + } + }, + "defaultValue": "{ public: false }" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 118, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 119, "name": "data", "kind": 32, "kindString": "Variable", @@ -37978,8 +39677,8 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 48 + "line": 48, + "character": 19 } ], "type": { @@ -37997,7 +39696,7 @@ } }, { - "id": 116, + "id": 120, "name": "error", "kind": 32, "kindString": "Variable", @@ -38007,8 +39706,8 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 70 + "line": 48, + "character": 41 } ], "type": { @@ -38030,14 +39729,17 @@ { "title": "Variables", "kind": 32, - "children": [115, 116] + "children": [ + 119, + 120 + ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 42 + "line": 48, + "character": 13 } ] } @@ -38056,7 +39758,7 @@ ] }, { - "id": 125, + "id": 140, "name": "deleteBucket", "kind": 2048, "kindString": "Method", @@ -38065,7 +39767,7 @@ }, "signatures": [ { - "id": 126, + "id": 141, "name": "deleteBucket", "kind": 4096, "kindString": "Call signature", @@ -38077,7 +39779,7 @@ }, "parameters": [ { - "id": 127, + "id": 142, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -38099,7 +39801,7 @@ { "type": "reflection", "declaration": { - "id": 128, + "id": 143, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38108,7 +39810,7 @@ }, "children": [ { - "id": 129, + "id": 144, "name": "data", "kind": 32, "kindString": "Variable", @@ -38118,7 +39820,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 78, + "line": 106, "character": 19 } ], @@ -38128,7 +39830,7 @@ { "type": "reflection", "declaration": { - "id": 130, + "id": 145, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38137,7 +39839,7 @@ }, "children": [ { - "id": 131, + "id": 146, "name": "message", "kind": 32, "kindString": "Variable", @@ -38147,7 +39849,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 78, + "line": 106, "character": 30 } ], @@ -38161,13 +39863,15 @@ { "title": "Variables", "kind": 32, - "children": [131] + "children": [ + 146 + ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 78, + "line": 106, "character": 20 } ] @@ -38181,7 +39885,7 @@ } }, { - "id": 132, + "id": 147, "name": "error", "kind": 32, "kindString": "Variable", @@ -38191,7 +39895,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 78, + "line": 106, "character": 54 } ], @@ -38214,13 +39918,16 @@ { "title": "Variables", "kind": 32, - "children": [129, 132] + "children": [ + 144, + 147 + ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 78, + "line": 106, "character": 13 } ] @@ -38234,13 +39941,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 76, + "line": 104, "character": 20 } ] }, { - "id": 117, + "id": 132, "name": "emptyBucket", "kind": 2048, "kindString": "Method", @@ -38249,7 +39956,7 @@ }, "signatures": [ { - "id": 118, + "id": 133, "name": "emptyBucket", "kind": 4096, "kindString": "Call signature", @@ -38261,7 +39968,7 @@ }, "parameters": [ { - "id": 119, + "id": 134, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -38283,7 +39990,7 @@ { "type": "reflection", "declaration": { - "id": 120, + "id": 135, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38292,7 +39999,7 @@ }, "children": [ { - "id": 121, + "id": 136, "name": "data", "kind": 32, "kindString": "Variable", @@ -38302,7 +40009,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 61, + "line": 89, "character": 19 } ], @@ -38312,7 +40019,7 @@ { "type": "reflection", "declaration": { - "id": 122, + "id": 137, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38321,7 +40028,7 @@ }, "children": [ { - "id": 123, + "id": 138, "name": "message", "kind": 32, "kindString": "Variable", @@ -38331,7 +40038,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 61, + "line": 89, "character": 30 } ], @@ -38345,13 +40052,15 @@ { "title": "Variables", "kind": 32, - "children": [123] + "children": [ + 138 + ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 61, + "line": 89, "character": 20 } ] @@ -38365,7 +40074,7 @@ } }, { - "id": 124, + "id": 139, "name": "error", "kind": 32, "kindString": "Variable", @@ -38375,7 +40084,7 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 61, + "line": 89, "character": 54 } ], @@ -38398,13 +40107,16 @@ { "title": "Variables", "kind": 32, - "children": [121, 124] + "children": [ + 136, + 139 + ] } ], "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 61, + "line": 89, "character": 13 } ] @@ -38418,13 +40130,13 @@ "sources": [ { "fileName": "lib/StorageBucketApi.ts", - "line": 59, + "line": 87, "character": 19 } ] }, { - "id": 105, + "id": 106, "name": "getBucket", "kind": 2048, "kindString": "Method", @@ -38433,7 +40145,7 @@ }, "signatures": [ { - "id": 106, + "id": 107, "name": "getBucket", "kind": 4096, "kindString": "Call signature", @@ -38445,7 +40157,7 @@ }, "parameters": [ { - "id": 107, + "id": 108, "name": "id", "kind": 32768, "kindString": "Parameter", @@ -38467,7 +40179,7 @@ { "type": "reflection", "declaration": { - "id": 108, + "id": 109, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38476,7 +40188,7 @@ }, "children": [ { - "id": 109, + "id": 110, "name": "data", "kind": 32, "kindString": "Variable", @@ -38506,7 +40218,7 @@ } }, { - "id": 110, + "id": 111, "name": "error", "kind": 32, "kindString": "Variable", @@ -38539,7 +40251,10 @@ { "title": "Variables", "kind": 32, - "children": [109, 110] + "children": [ + 110, + 111 + ] } ], "sources": [ @@ -38565,7 +40280,7 @@ ] }, { - "id": 100, + "id": 101, "name": "listBuckets", "kind": 2048, "kindString": "Method", @@ -38574,7 +40289,7 @@ }, "signatures": [ { - "id": 101, + "id": 102, "name": "listBuckets", "kind": 4096, "kindString": "Call signature", @@ -38590,7 +40305,7 @@ { "type": "reflection", "declaration": { - "id": 102, + "id": 103, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38599,7 +40314,7 @@ }, "children": [ { - "id": 103, + "id": 104, "name": "data", "kind": 32, "kindString": "Variable", @@ -38632,7 +40347,7 @@ } }, { - "id": 104, + "id": 105, "name": "error", "kind": 32, "kindString": "Variable", @@ -38665,7 +40380,10 @@ { "title": "Variables", "kind": 32, - "children": [103, 104] + "children": [ + 104, + 105 + ] } ], "sources": [ @@ -38689,23 +40407,283 @@ "character": 19 } ] + }, + { + "id": 121, + "name": "updateBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 122, + "name": "updateBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Updates a new Storage bucket" + }, + "parameters": [ + { + "id": 123, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A unique identifier for the bucket you are creating.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 124, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 125, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 126, + "name": "public", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 68, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 126 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 68, + "character": 12 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 127, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 128, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 129, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 130, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 130 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 131, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 54 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 128, + 131 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 66, + "character": 20 + } + ] } ], "groups": [ { "title": "Constructors", "kind": 512, - "children": [93] + "children": [ + 94 + ] }, { "title": "Properties", "kind": 1024, - "children": [89, 88] + "children": [ + 90, + 89 + ] }, { "title": "Methods", "kind": 2048, - "children": [111, 125, 117, 105, 100] + "children": [ + 112, + 140, + 132, + 106, + 101, + 121 + ] } ], "sources": [ @@ -38718,7 +40696,7 @@ "extendedBy": [ { "type": "reference", - "id": 232, + "id": 256, "name": "SupabaseStorageClient" } ] @@ -38728,7 +40706,9 @@ { "title": "Classes", "kind": 128, - "children": [87] + "children": [ + 88 + ] } ], "sources": [ @@ -38740,7 +40720,7 @@ ] }, { - "id": 136, + "id": 151, "name": "\"lib/StorageFileApi\"", "kind": 1, "kindString": "Module", @@ -38750,7 +40730,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageFileApi.ts", "children": [ { - "id": 137, + "id": 152, "name": "StorageFileApi", "kind": 128, "kindString": "Class", @@ -38759,7 +40739,7 @@ }, "children": [ { - "id": 144, + "id": 159, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -38768,7 +40748,7 @@ }, "signatures": [ { - "id": 145, + "id": 160, "name": "new StorageFileApi", "kind": 16384, "kindString": "Constructor signature", @@ -38777,7 +40757,7 @@ }, "parameters": [ { - "id": 146, + "id": 161, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -38790,7 +40770,7 @@ } }, { - "id": 147, + "id": 162, "name": "headers", "kind": 32768, "kindString": "Parameter", @@ -38800,7 +40780,7 @@ "type": { "type": "reflection", "declaration": { - "id": 148, + "id": 163, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38809,7 +40789,7 @@ }, "indexSignature": [ { - "id": 149, + "id": 164, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -38818,7 +40798,7 @@ }, "parameters": [ { - "id": 150, + "id": 165, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -38849,7 +40829,7 @@ "defaultValue": "{}" }, { - "id": 151, + "id": 166, "name": "bucketId", "kind": 32768, "kindString": "Parameter", @@ -38874,7 +40854,7 @@ ], "type": { "type": "reference", - "id": 137, + "id": 152, "name": "StorageFileApi" } } @@ -38888,7 +40868,7 @@ ] }, { - "id": 143, + "id": 158, "name": "bucketId", "kind": 1024, "kindString": "Property", @@ -38919,7 +40899,7 @@ } }, { - "id": 139, + "id": 154, "name": "headers", "kind": 1024, "kindString": "Property", @@ -38937,7 +40917,7 @@ "type": { "type": "reflection", "declaration": { - "id": 140, + "id": 155, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -38946,7 +40926,7 @@ }, "indexSignature": [ { - "id": 141, + "id": 156, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -38955,7 +40935,7 @@ }, "parameters": [ { - "id": 142, + "id": 157, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -38985,7 +40965,7 @@ } }, { - "id": 138, + "id": 153, "name": "url", "kind": 1024, "kindString": "Property", @@ -39006,7 +40986,7 @@ } }, { - "id": 211, + "id": 235, "name": "_getFinalPath", "kind": 2048, "kindString": "Method", @@ -39015,7 +40995,7 @@ }, "signatures": [ { - "id": 212, + "id": 236, "name": "_getFinalPath", "kind": 4096, "kindString": "Call signature", @@ -39024,7 +41004,7 @@ }, "parameters": [ { - "id": 213, + "id": 237, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -39046,13 +41026,13 @@ "sources": [ { "fileName": "lib/StorageFileApi.ts", - "line": 254, + "line": 276, "character": 15 } ] }, { - "id": 181, + "id": 196, "name": "createSignedUrl", "kind": 2048, "kindString": "Method", @@ -39061,7 +41041,7 @@ }, "signatures": [ { - "id": 182, + "id": 197, "name": "createSignedUrl", "kind": 4096, "kindString": "Call signature", @@ -39073,7 +41053,7 @@ }, "parameters": [ { - "id": 183, + "id": 198, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -39089,7 +41069,7 @@ } }, { - "id": 184, + "id": 199, "name": "expiresIn", "kind": 32768, "kindString": "Parameter", @@ -39111,7 +41091,7 @@ { "type": "reflection", "declaration": { - "id": 185, + "id": 200, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39120,7 +41100,7 @@ }, "children": [ { - "id": 186, + "id": 201, "name": "data", "kind": 32, "kindString": "Variable", @@ -39140,7 +41120,7 @@ { "type": "reflection", "declaration": { - "id": 187, + "id": 202, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39149,7 +41129,7 @@ }, "children": [ { - "id": 188, + "id": 203, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -39173,7 +41153,9 @@ { "title": "Variables", "kind": 32, - "children": [188] + "children": [ + 203 + ] } ], "sources": [ @@ -39193,7 +41175,7 @@ } }, { - "id": 189, + "id": 204, "name": "error", "kind": 32, "kindString": "Variable", @@ -39222,7 +41204,7 @@ } }, { - "id": 190, + "id": 205, "name": "signedURL", "kind": 32, "kindString": "Variable", @@ -39255,7 +41237,11 @@ { "title": "Variables", "kind": 32, - "children": [186, 189, 190] + "children": [ + 201, + 204, + 205 + ] } ], "sources": [ @@ -39281,7 +41267,7 @@ ] }, { - "id": 191, + "id": 206, "name": "download", "kind": 2048, "kindString": "Method", @@ -39290,7 +41276,7 @@ }, "signatures": [ { - "id": 192, + "id": 207, "name": "download", "kind": 4096, "kindString": "Call signature", @@ -39302,7 +41288,7 @@ }, "parameters": [ { - "id": 193, + "id": 208, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -39324,7 +41310,7 @@ { "type": "reflection", "declaration": { - "id": 194, + "id": 209, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39333,7 +41319,7 @@ }, "children": [ { - "id": 195, + "id": 210, "name": "data", "kind": 32, "kindString": "Variable", @@ -39362,7 +41348,7 @@ } }, { - "id": 196, + "id": 211, "name": "error", "kind": 32, "kindString": "Variable", @@ -39395,7 +41381,10 @@ { "title": "Variables", "kind": 32, - "children": [195, 196] + "children": [ + 210, + 211 + ] } ], "sources": [ @@ -39421,7 +41410,220 @@ ] }, { - "id": 203, + "id": 212, + "name": "getPublicUrl", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 213, + "name": "getPublicUrl", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Retrieve URLs for assets in public buckets" + }, + "parameters": [ + { + "id": 214, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 215, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 216, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 189, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 217, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 218, + "name": "publicURL", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 189, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 218 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 189, + "character": 9 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 219, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 190, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 220, + "name": "publicURL", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 191, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 216, + 219, + 220 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 188, + "character": 4 + } + ] + } + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 186, + "character": 14 + } + ] + }, + { + "id": 227, "name": "list", "kind": 2048, "kindString": "Method", @@ -39430,7 +41632,7 @@ }, "signatures": [ { - "id": 204, + "id": 228, "name": "list", "kind": 4096, "kindString": "Call signature", @@ -39442,7 +41644,7 @@ }, "parameters": [ { - "id": 205, + "id": 229, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -39468,7 +41670,7 @@ } }, { - "id": 206, + "id": 230, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -39481,12 +41683,12 @@ }, "type": { "type": "reference", - "id": 80, + "id": 81, "name": "SearchOptions" } }, { - "id": 207, + "id": 231, "name": "parameters", "kind": 32768, "kindString": "Parameter", @@ -39510,7 +41712,7 @@ { "type": "reflection", "declaration": { - "id": 208, + "id": 232, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39519,7 +41721,7 @@ }, "children": [ { - "id": 209, + "id": 233, "name": "data", "kind": 32, "kindString": "Variable", @@ -39529,7 +41731,7 @@ "sources": [ { "fileName": "lib/StorageFileApi.ts", - "line": 239, + "line": 261, "character": 19 } ], @@ -39540,7 +41742,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 64, + "id": 65, "name": "FileObject" } }, @@ -39552,7 +41754,7 @@ } }, { - "id": 210, + "id": 234, "name": "error", "kind": 32, "kindString": "Variable", @@ -39562,7 +41764,7 @@ "sources": [ { "fileName": "lib/StorageFileApi.ts", - "line": 239, + "line": 261, "character": 47 } ], @@ -39585,13 +41787,16 @@ { "title": "Variables", "kind": 32, - "children": [209, 210] + "children": [ + 233, + 234 + ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", - "line": 239, + "line": 261, "character": 13 } ] @@ -39605,13 +41810,13 @@ "sources": [ { "fileName": "lib/StorageFileApi.ts", - "line": 235, + "line": 257, "character": 12 } ] }, { - "id": 172, + "id": 187, "name": "move", "kind": 2048, "kindString": "Method", @@ -39620,7 +41825,7 @@ }, "signatures": [ { - "id": 173, + "id": 188, "name": "move", "kind": 4096, "kindString": "Call signature", @@ -39632,7 +41837,7 @@ }, "parameters": [ { - "id": 174, + "id": 189, "name": "fromPath", "kind": 32768, "kindString": "Parameter", @@ -39648,7 +41853,7 @@ } }, { - "id": 175, + "id": 190, "name": "toPath", "kind": 32768, "kindString": "Parameter", @@ -39670,7 +41875,7 @@ { "type": "reflection", "declaration": { - "id": 176, + "id": 191, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39679,7 +41884,7 @@ }, "children": [ { - "id": 177, + "id": 192, "name": "data", "kind": 32, "kindString": "Variable", @@ -39699,7 +41904,7 @@ { "type": "reflection", "declaration": { - "id": 178, + "id": 193, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39708,7 +41913,7 @@ }, "children": [ { - "id": 179, + "id": 194, "name": "message", "kind": 32, "kindString": "Variable", @@ -39732,7 +41937,9 @@ { "title": "Variables", "kind": 32, - "children": [179] + "children": [ + 194 + ] } ], "sources": [ @@ -39752,7 +41959,7 @@ } }, { - "id": 180, + "id": 195, "name": "error", "kind": 32, "kindString": "Variable", @@ -39785,7 +41992,10 @@ { "title": "Variables", "kind": 32, - "children": [177, 180] + "children": [ + 192, + 195 + ] } ], "sources": [ @@ -39811,7 +42021,7 @@ ] }, { - "id": 197, + "id": 221, "name": "remove", "kind": 2048, "kindString": "Method", @@ -39820,7 +42030,7 @@ }, "signatures": [ { - "id": 198, + "id": 222, "name": "remove", "kind": 4096, "kindString": "Call signature", @@ -39832,7 +42042,7 @@ }, "parameters": [ { - "id": 199, + "id": 223, "name": "paths", "kind": 32768, "kindString": "Parameter", @@ -39857,7 +42067,7 @@ { "type": "reflection", "declaration": { - "id": 200, + "id": 224, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -39866,7 +42076,7 @@ }, "children": [ { - "id": 201, + "id": 225, "name": "data", "kind": 32, "kindString": "Variable", @@ -39876,7 +42086,7 @@ "sources": [ { "fileName": "lib/StorageFileApi.ts", - "line": 186, + "line": 208, "character": 47 } ], @@ -39887,7 +42097,7 @@ "type": "array", "elementType": { "type": "reference", - "id": 64, + "id": 65, "name": "FileObject" } }, @@ -39899,7 +42109,7 @@ } }, { - "id": 202, + "id": 226, "name": "error", "kind": 32, "kindString": "Variable", @@ -39909,7 +42119,7 @@ "sources": [ { "fileName": "lib/StorageFileApi.ts", - "line": 186, + "line": 208, "character": 75 } ], @@ -39932,13 +42142,16 @@ { "title": "Variables", "kind": 32, - "children": [201, 202] + "children": [ + 225, + 226 + ] } ], "sources": [ { "fileName": "lib/StorageFileApi.ts", - "line": 186, + "line": 208, "character": 41 } ] @@ -39952,13 +42165,13 @@ "sources": [ { "fileName": "lib/StorageFileApi.ts", - "line": 186, + "line": 208, "character": 14 } ] }, { - "id": 162, + "id": 177, "name": "update", "kind": 2048, "kindString": "Method", @@ -39967,7 +42180,7 @@ }, "signatures": [ { - "id": 163, + "id": 178, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -39979,7 +42192,7 @@ }, "parameters": [ { - "id": 164, + "id": 179, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -39995,7 +42208,7 @@ } }, { - "id": 165, + "id": 180, "name": "file", "kind": 32768, "kindString": "Parameter", @@ -40011,7 +42224,7 @@ } }, { - "id": 166, + "id": 181, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -40024,7 +42237,7 @@ }, "type": { "type": "reference", - "id": 78, + "id": 79, "name": "FileOptions" } } @@ -40035,7 +42248,7 @@ { "type": "reflection", "declaration": { - "id": 167, + "id": 182, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40044,7 +42257,7 @@ }, "children": [ { - "id": 168, + "id": 183, "name": "data", "kind": 32, "kindString": "Variable", @@ -40064,7 +42277,7 @@ { "type": "reflection", "declaration": { - "id": 169, + "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40073,7 +42286,7 @@ }, "children": [ { - "id": 170, + "id": 185, "name": "Key", "kind": 32, "kindString": "Variable", @@ -40097,7 +42310,9 @@ { "title": "Variables", "kind": 32, - "children": [170] + "children": [ + 185 + ] } ], "sources": [ @@ -40117,7 +42332,7 @@ } }, { - "id": 171, + "id": 186, "name": "error", "kind": 32, "kindString": "Variable", @@ -40150,7 +42365,10 @@ { "title": "Variables", "kind": 32, - "children": [168, 171] + "children": [ + 183, + 186 + ] } ], "sources": [ @@ -40176,7 +42394,7 @@ ] }, { - "id": 152, + "id": 167, "name": "upload", "kind": 2048, "kindString": "Method", @@ -40185,7 +42403,7 @@ }, "signatures": [ { - "id": 153, + "id": 168, "name": "upload", "kind": 4096, "kindString": "Call signature", @@ -40197,7 +42415,7 @@ }, "parameters": [ { - "id": 154, + "id": 169, "name": "path", "kind": 32768, "kindString": "Parameter", @@ -40213,7 +42431,7 @@ } }, { - "id": 155, + "id": 170, "name": "file", "kind": 32768, "kindString": "Parameter", @@ -40229,7 +42447,7 @@ } }, { - "id": 156, + "id": 171, "name": "fileOptions", "kind": 32768, "kindString": "Parameter", @@ -40242,7 +42460,7 @@ }, "type": { "type": "reference", - "id": 78, + "id": 79, "name": "FileOptions" } } @@ -40253,7 +42471,7 @@ { "type": "reflection", "declaration": { - "id": 157, + "id": 172, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40262,7 +42480,7 @@ }, "children": [ { - "id": 158, + "id": 173, "name": "data", "kind": 32, "kindString": "Variable", @@ -40282,7 +42500,7 @@ { "type": "reflection", "declaration": { - "id": 159, + "id": 174, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -40291,7 +42509,7 @@ }, "children": [ { - "id": 160, + "id": 175, "name": "Key", "kind": 32, "kindString": "Variable", @@ -40315,7 +42533,9 @@ { "title": "Variables", "kind": 32, - "children": [160] + "children": [ + 175 + ] } ], "sources": [ @@ -40335,7 +42555,7 @@ } }, { - "id": 161, + "id": 176, "name": "error", "kind": 32, "kindString": "Variable", @@ -40368,7 +42588,10 @@ { "title": "Variables", "kind": 32, - "children": [158, 161] + "children": [ + 173, + 176 + ] } ], "sources": [ @@ -40398,17 +42621,33 @@ { "title": "Constructors", "kind": 512, - "children": [144] + "children": [ + 159 + ] }, { "title": "Properties", "kind": 1024, - "children": [143, 139, 138] + "children": [ + 158, + 154, + 153 + ] }, { "title": "Methods", "kind": 2048, - "children": [211, 181, 191, 203, 172, 197, 162, 152] + "children": [ + 235, + 196, + 206, + 212, + 227, + 187, + 221, + 177, + 167 + ] } ], "sources": [ @@ -40420,7 +42659,7 @@ ] }, { - "id": 220, + "id": 244, "name": "DEFAULT_FILE_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -40429,7 +42668,7 @@ }, "children": [ { - "id": 221, + "id": 245, "name": "cacheControl", "kind": 32, "kindString": "Variable", @@ -40452,7 +42691,9 @@ { "title": "Variables", "kind": 32, - "children": [221] + "children": [ + 245 + ] } ], "sources": [ @@ -40468,7 +42709,7 @@ } }, { - "id": 214, + "id": 238, "name": "DEFAULT_SEARCH_OPTIONS", "kind": 2097152, "kindString": "Object literal", @@ -40477,7 +42718,7 @@ }, "children": [ { - "id": 215, + "id": 239, "name": "limit", "kind": 32, "kindString": "Variable", @@ -40496,7 +42737,7 @@ "defaultValue": "100" }, { - "id": 216, + "id": 240, "name": "offset", "kind": 32, "kindString": "Variable", @@ -40515,14 +42756,14 @@ "defaultValue": "0" }, { - "id": 217, + "id": 241, "name": "sortBy", "kind": 2097152, "kindString": "Object literal", "flags": {}, "children": [ { - "id": 218, + "id": 242, "name": "column", "kind": 32, "kindString": "Variable", @@ -40541,7 +42782,7 @@ "defaultValue": "\"name\"" }, { - "id": 219, + "id": 243, "name": "order", "kind": 32, "kindString": "Variable", @@ -40564,7 +42805,10 @@ { "title": "Variables", "kind": 32, - "children": [218, 219] + "children": [ + 242, + 243 + ] } ], "sources": [ @@ -40584,12 +42828,17 @@ { "title": "Variables", "kind": 32, - "children": [215, 216] + "children": [ + 239, + 240 + ] }, { "title": "Object literals", "kind": 2097152, - "children": [217] + "children": [ + 241 + ] } ], "sources": [ @@ -40609,12 +42858,17 @@ { "title": "Classes", "kind": 128, - "children": [137] + "children": [ + 152 + ] }, { "title": "Object literals", "kind": 2097152, - "children": [220, 214] + "children": [ + 244, + 238 + ] } ], "sources": [ @@ -40751,7 +43005,10 @@ { "title": "Properties", "kind": 1024, - "children": [3, 7] + "children": [ + 3, + 7 + ] } ], "sources": [ @@ -40797,7 +43054,9 @@ { "title": "Properties", "kind": 1024, - "children": [9] + "children": [ + 9 + ] } ], "sources": [ @@ -41545,17 +43804,31 @@ { "title": "Interfaces", "kind": 256, - "children": [2, 8] + "children": [ + 2, + 8 + ] }, { "title": "Type aliases", "kind": 4194304, - "children": [10] + "children": [ + 10 + ] }, { "title": "Functions", "kind": 64, - "children": [11, 18, 27, 34, 14, 39, 45, 51] + "children": [ + 11, + 18, + 27, + 34, + 14, + 39, + 45, + 51 + ] } ], "sources": [ @@ -41567,7 +43840,7 @@ ] }, { - "id": 133, + "id": 148, "name": "\"lib/helpers\"", "kind": 1, "kindString": "Module", @@ -41577,7 +43850,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/helpers.ts", "children": [ { - "id": 134, + "id": 149, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -41587,7 +43860,7 @@ }, "signatures": [ { - "id": 135, + "id": 150, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -41613,7 +43886,9 @@ { "title": "Functions", "kind": 64, - "children": [134] + "children": [ + 149 + ] } ], "sources": [ @@ -41625,7 +43900,7 @@ ] }, { - "id": 222, + "id": 246, "name": "\"lib/index\"", "kind": 1, "kindString": "Module", @@ -41635,7 +43910,7 @@ "originalName": "/home/runner/work/storage-js/storage-js/src/lib/index.ts", "children": [ { - "id": 225, + "id": 249, "name": "Bucket", "kind": 16777216, "kindString": "Reference", @@ -41645,81 +43920,90 @@ "target": 58 }, { - "id": 226, + "id": 250, "name": "FileObject", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 64 + "target": 65 }, { - "id": 228, + "id": 252, "name": "FileOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 78 + "target": 79 }, { - "id": 230, + "id": 254, "name": "Metadata", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 84 + "target": 85 }, { - "id": 229, + "id": 253, "name": "SearchOptions", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 80 + "target": 81 }, { - "id": 227, + "id": 251, "name": "SortBy", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 75 + "target": 76 }, { - "id": 223, + "id": 247, "name": "StorageBucketApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 87 + "target": 88 }, { - "id": 224, + "id": 248, "name": "StorageFileApi", "kind": 16777216, "kindString": "Reference", "flags": { "isExported": true }, - "target": 137 + "target": 152 } ], "groups": [ { "title": "References", "kind": 16777216, - "children": [225, 226, 228, 230, 229, 227, 223, 224] + "children": [ + 249, + 250, + 252, + 254, + 253, + 251, + 247, + 248 + ] } ], "sources": [ @@ -41829,6 +44113,26 @@ "name": "string" } }, + { + "id": 64, + "name": "public", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 7, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, { "id": 63, "name": "updated_at", @@ -41854,7 +44158,14 @@ { "title": "Properties", "kind": 1024, - "children": [62, 59, 60, 61, 63] + "children": [ + 62, + 59, + 60, + 61, + 64, + 63 + ] } ], "sources": [ @@ -41866,7 +44177,7 @@ ] }, { - "id": 64, + "id": 65, "name": "FileObject", "kind": 256, "kindString": "Interface", @@ -41875,7 +44186,7 @@ }, "children": [ { - "id": 66, + "id": 67, "name": "bucket_id", "kind": 1024, "kindString": "Property", @@ -41885,7 +44196,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 11, + "line": 12, "character": 11 } ], @@ -41895,7 +44206,7 @@ } }, { - "id": 74, + "id": 75, "name": "buckets", "kind": 1024, "kindString": "Property", @@ -41905,7 +44216,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 18, + "line": 19, "character": 9 } ], @@ -41916,13 +44227,148 @@ } }, { - "id": 70, + "id": 71, "name": "created_at", "kind": 1024, "kindString": "Property", "flags": { "isExported": true }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 16, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 69, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 14, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 72, + "name": "last_accessed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 17, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 73, + "name": "metadata", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 18, + "character": 10 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 74, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 18, + "character": 11 + } + ] + } + } + }, + { + "id": 66, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 11, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 68, + "name": "owner", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 13, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 70, + "name": "updated_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, "sources": [ { "fileName": "lib/types.ts", @@ -41934,160 +44380,35 @@ "type": "intrinsic", "name": "string" } - }, - { - "id": 68, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 13, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 71, - "name": "last_accessed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 16, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 72, - "name": "metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 17, - "character": 10 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 73, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 17, - "character": 11 - } - ] - } - } - }, - { - "id": 65, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 10, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 67, - "name": "owner", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 12, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 69, - "name": "updated_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 14, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } } ], "groups": [ { "title": "Properties", "kind": 1024, - "children": [66, 74, 70, 68, 71, 72, 65, 67, 69] + "children": [ + 67, + 75, + 71, + 69, + 72, + 73, + 66, + 68, + 70 + ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 9, + "line": 10, "character": 27 } ] }, { - "id": 78, + "id": 79, "name": "FileOptions", "kind": 256, "kindString": "Interface", @@ -42096,7 +44417,7 @@ }, "children": [ { - "id": 79, + "id": 80, "name": "cacheControl", "kind": 1024, "kindString": "Property", @@ -42106,7 +44427,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 27, + "line": 28, "character": 14 } ], @@ -42120,19 +44441,21 @@ { "title": "Properties", "kind": 1024, - "children": [79] + "children": [ + 80 + ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 26, + "line": 27, "character": 28 } ] }, { - "id": 84, + "id": 85, "name": "Metadata", "kind": 256, "kindString": "Interface", @@ -42141,7 +44464,7 @@ }, "children": [ { - "id": 85, + "id": 86, "name": "name", "kind": 1024, "kindString": "Property", @@ -42151,7 +44474,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 43, + "line": 44, "character": 6 } ], @@ -42165,19 +44488,21 @@ { "title": "Properties", "kind": 1024, - "children": [85] + "children": [ + 86 + ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 42, + "line": 43, "character": 25 } ] }, { - "id": 80, + "id": 81, "name": "SearchOptions", "kind": 256, "kindString": "Interface", @@ -42186,7 +44511,7 @@ }, "children": [ { - "id": 81, + "id": 82, "name": "limit", "kind": 1024, "kindString": "Property", @@ -42200,7 +44525,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 32, + "line": 33, "character": 7 } ], @@ -42218,41 +44543,41 @@ ] } }, - { - "id": 82, - "name": "offset", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The starting position." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 35, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, { "id": 83, + "name": "offset", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The starting position." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 36, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 84, "name": "sortBy", "kind": 1024, "kindString": "Property", @@ -42266,13 +44591,13 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 38, + "line": 39, "character": 8 } ], "type": { "type": "reference", - "id": 75, + "id": 76, "name": "SortBy" } } @@ -42281,19 +44606,23 @@ { "title": "Properties", "kind": 1024, - "children": [81, 82, 83] + "children": [ + 82, + 83, + 84 + ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 30, + "line": 31, "character": 30 } ] }, { - "id": 75, + "id": 76, "name": "SortBy", "kind": 256, "kindString": "Interface", @@ -42302,7 +44631,7 @@ }, "children": [ { - "id": 76, + "id": 77, "name": "column", "kind": 1024, "kindString": "Property", @@ -42313,7 +44642,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 22, + "line": 23, "character": 8 } ], @@ -42332,7 +44661,7 @@ } }, { - "id": 77, + "id": 78, "name": "order", "kind": 1024, "kindString": "Property", @@ -42343,7 +44672,7 @@ "sources": [ { "fileName": "lib/types.ts", - "line": 23, + "line": 24, "character": 7 } ], @@ -42366,13 +44695,16 @@ { "title": "Properties", "kind": 1024, - "children": [76, 77] + "children": [ + 77, + 78 + ] } ], "sources": [ { "fileName": "lib/types.ts", - "line": 21, + "line": 22, "character": 23 } ] @@ -42382,7 +44714,14 @@ { "title": "Interfaces", "kind": 256, - "children": [58, 64, 78, 84, 80, 75] + "children": [ + 58, + 65, + 79, + 85, + 81, + 76 + ] } ], "sources": [ @@ -42398,7 +44737,16 @@ { "title": "Modules", "kind": 1, - "children": [231, 281, 86, 136, 1, 133, 222, 57] + "children": [ + 255, + 319, + 87, + 151, + 1, + 148, + 246, + 57 + ] } ] } diff --git a/web/spec/gotrue.json b/web/spec/gotrue.json index 75750108fed..3d240595b68 100644 --- a/web/spec/gotrue.json +++ b/web/spec/gotrue.json @@ -1,10770 +1,11183 @@ { - "id": 0, - "name": "@supabase/gotrue-js", - "kind": 0, - "flags": {}, - "originalName": "", - "children": [ - { - "id": 196, - "name": "\"GoTrueApi\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts", - "children": [ - { - "id": 197, - "name": "GoTrueApi", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 204, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 205, - "name": "new GoTrueApi", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 206, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "originalName": "__0", - "type": { - "type": "reflection", - "declaration": { - "id": 207, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 213, - "name": "cookieOptions", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 17, - "character": 17 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "id": 92, - "name": "CookieOptions" - } - ] - } - }, - { - "id": 209, - "name": "headers", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 16, - "character": 11 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 210, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 211, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 212, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - }, - { - "id": 208, - "name": "url", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 15, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"\"" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [213, 209, 208] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 14, - "character": 14 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 197, - "name": "GoTrueApi" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 12, - "character": 40 - } - ] - }, - { - "id": 203, - "name": "cookieOptions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 12, - "character": 25 - } - ], - "type": { - "type": "reference", - "id": 92, - "name": "CookieOptions" - } - }, - { - "id": 199, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 9, - "character": 19 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 200, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 201, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 202, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 9, - "character": 20 - } - ] - } - } - }, - { - "id": 198, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 8, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 264, - "name": "_createRequestHeaders", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 265, - "name": "_createRequestHeaders", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods" - }, - "parameters": [ - { - "id": 266, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A valid, logged-in JWT.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 267, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - } - } - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 165, - "character": 31 - } - ] - }, - { - "id": 295, - "name": "deleteUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 296, - "name": "deleteUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Delete an user." - }, - "parameters": [ - { - "id": 297, - "name": "uid", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The user uid you want to remove." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 298, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A valid JWT. Must be a full-access API key (e.g. service_role key).\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 299, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 301, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 253, - "character": 38 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 302, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 253, - "character": 58 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 300, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 253, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [301, 302, 300] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 253, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 250, - "character": 18 - } - ] - }, - { - "id": 273, - "name": "getUrlForProvider", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 274, - "name": "getUrlForProvider", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Generates the relevant login URL for a third-party provider." - }, - "parameters": [ - { - "id": 275, - "name": "provider", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "One of the providers supported by GoTrue." - }, - "type": { - "type": "reference", - "id": 102, - "name": "Provider" - } - }, - { - "id": 276, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 277, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 278, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 197, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 279, - "name": "scopes", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 198, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [278, 279] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 196, - "character": 12 - } - ] - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 194, - "character": 19 - } - ] - }, - { - "id": 280, - "name": "getUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 281, - "name": "getUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Gets the user details." - }, - "parameters": [ - { - "id": 282, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A valid, logged-in JWT.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 283, - "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": 217, - "character": 38 - } - ], - "type": { - "type": "union", - "types": [ - { - "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": 217, - "character": 58 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 284, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 217, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [285, 286, 284] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 217, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 215, - "character": 15 - } - ] - }, - { - "id": 313, - "name": "getUserByCookie", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 314, - "name": "getUserByCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)." - }, - "parameters": [ - { - "id": 315, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 316, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 318, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 321, - "character": 38 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 319, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 321, - "character": 58 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 317, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 321, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [318, 319, 317] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 321, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 319, - "character": 23 - } - ] - }, - { - "id": 244, - "name": "inviteUserByEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 245, - "name": "inviteUserByEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Sends an invite link to an email address." - }, - "parameters": [ - { - "id": 246, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 247, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 248, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 249, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 122, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [249] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 121, - "character": 12 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "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": 124, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 252, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 124, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 253, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 124, - "character": 37 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [251, 253] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 124, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 119, - "character": 25 - } - ] - }, - { - "id": 303, - "name": "refreshAccessToken", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 304, - "name": "refreshAccessToken", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Generates a new JWT." - }, - "parameters": [ - { - "id": 305, - "name": "refreshToken", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A valid refresh token that was returned on login.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 306, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 307, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 274, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 308, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 274, - "character": 42 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [307, 308] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 274, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 272, - "character": 26 - } - ] - }, - { - "id": 254, - "name": "resetPasswordForEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 255, - "name": "resetPasswordForEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Sends a reset request to an email address." - }, - "parameters": [ - { - "id": 256, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 257, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 258, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 259, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 145, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [259] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 144, - "character": 12 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 260, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 261, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 147, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 262, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 147, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 263, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 147, - "character": 37 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [261, 263] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 147, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 142, - "character": 29 - } - ] - }, - { - "id": 234, - "name": "sendMagicLinkEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 235, - "name": "sendMagicLinkEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Sends a magic login link to an email address." - }, - "parameters": [ - { - "id": 236, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 237, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 238, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 239, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 99, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [239] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 98, - "character": 12 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 240, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 241, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 101, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 242, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 101, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 243, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 101, - "character": 37 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [241, 243] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 101, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 96, - "character": 26 - } - ] - }, - { - "id": 309, - "name": "setAuthCookie", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 310, - "name": "setAuthCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)." - }, - "parameters": [ - { - "id": 311, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 312, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 293, - "character": 15 - } - ] - }, - { - "id": 224, - "name": "signInWithEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 225, - "name": "signInWithEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Logs in an existing user using their email address." - }, - "parameters": [ - { - "id": 226, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 227, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The password of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 228, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 229, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 230, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 70, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [230] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 69, - "character": 12 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 231, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 232, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 72, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 233, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 72, - "character": 42 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [232, 233] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 72, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 66, - "character": 23 - } - ] - }, - { - "id": 268, - "name": "signOut", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 269, - "name": "signOut", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Removes a logged-in session." - }, - "parameters": [ - { - "id": 270, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A valid, logged-in JWT.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 271, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 272, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 175, - "character": 45 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [272] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 175, - "character": 38 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 175, - "character": 15 - } - ] - }, - { - "id": 214, - "name": "signUpWithEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 215, - "name": "signUpWithEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Creates a new user using their email address.", - "returns": "A logged-in session if the server has \"autoconfirm\" ON" - }, - "parameters": [ - { - "id": 216, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 217, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The password of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 218, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 219, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 220, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 43, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [220] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 42, - "character": 12 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 221, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 222, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 45, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 223, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 45, - "character": 49 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [222, 223] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 45, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 39, - "character": 23 - } - ] - }, - { - "id": 287, - "name": "updateUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 288, - "name": "updateUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Updates the user data." - }, - "parameters": [ - { - "id": 289, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A valid, logged-in JWT." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 290, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The data you want to update.\n" - }, - "type": { - "type": "reference", - "id": 77, - "name": "UserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 291, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 293, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 234, - "character": 38 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 294, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 234, - "character": 58 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 292, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 234, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [293, 294, 292] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 234, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 231, - "character": 18 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [204] - }, - { - "title": "Properties", - "kind": 1024, - "children": [203, 199, 198] - }, - { - "title": "Methods", - "kind": 2048, - "children": [264, 295, 273, 280, 313, 244, 303, 254, 234, 309, 224, 268, 214, 287] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 7, - "character": 30 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [197] - } - ], - "sources": [ - { - "fileName": "GoTrueApi.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 323, - "name": "\"GoTrueClient\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts", - "children": [ - { - "id": 324, - "name": "GoTrueClient", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 333, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Create a new client for use in the browser." - }, - "signatures": [ - { - "id": 334, - "name": "new GoTrueClient", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Create a new client for use in the browser." - }, - "parameters": [ - { - "id": 335, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 336, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 343, - "name": "autoRefreshToken", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "Set to \"true\" if you want to automatically refresh the token before expiring." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 60, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 346, - "name": "cookieOptions", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 63, - "character": 17 - } - ], - "type": { - "type": "reference", - "id": 92, - "name": "CookieOptions" - } - }, - { - "id": 342, - "name": "detectSessionInUrl", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 59, - "character": 22 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 338, - "name": "headers", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "Any additional headers to send to the GoTrue server." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 58, - "character": 11 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 339, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 340, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 341, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 345, - "name": "localStorage", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "\n" - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 62, - "character": 16 - } - ], - "type": { - "type": "reference", - "name": "Storage" - } - }, - { - "id": 344, - "name": "persistSession", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "Set to \"true\" if you want to automatically save the user session into local storage." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 61, - "character": 18 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 337, - "name": "url", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "The URL of the GoTrue server." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 57, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [343, 346, 342, 338, 345, 344, 337] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 56, - "character": 22 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 324, - "name": "GoTrueClient" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 45, - "character": 61 - } - ] - }, - { - "id": 325, - "name": "api", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 31, - "character": 5 - } - ], - "type": { - "type": "reference", - "id": 197, - "name": "GoTrueApi" - } - }, - { - "id": 328, - "name": "autoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 41, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 327, - "name": "currentSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "comment": { - "shortText": "The session object for the currently logged in user or null." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 39, - "character": 26 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 326, - "name": "currentUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "comment": { - "shortText": "The currently logged in user or null." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 35, - "character": 23 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 330, - "name": "localStorage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 43, - "character": 24 - } - ], - "type": { - "type": "reference", - "name": "Storage" - } - }, - { - "id": 329, - "name": "persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 42, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 332, - "name": "refreshTokenTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 45, - "character": 29 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "query", - "queryType": { - "type": "reference", - "name": "setTimeout" - } - } - ], - "name": "ReturnType" - } - }, - { - "id": 331, - "name": "stateChangeEmitters", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 44, - "character": 31 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "id": 82, - "name": "Subscription" - } - ], - "name": "Map" - }, - "defaultValue": "new Map()" - }, - { - "id": 467, - "name": "_callRefreshToken", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 468, - "name": "_callRefreshToken", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 469, - "name": "refresh_token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - }, - "defaultValue": "this.currentSession?.refresh_token" - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 470, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 471, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 519, - "character": 19 - } - ], - "type": { - "type": "reference", - "id": 50, - "name": "Session" - } - }, - { - "id": 472, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 519, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [471, 472] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 473, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 474, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 521, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - }, - { - "id": 475, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 521, - "character": 32 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [474, 475] - } - ] - } - } - ] - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 507, - "character": 33 - } - ] - }, - { - "id": 427, - "name": "_handleEmailSignIn", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 428, - "name": "_handleEmailSignIn", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 429, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 430, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 431, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 432, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 433, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 398, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [433] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 397, - "character": 12 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 434, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 435, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 412, - "character": 19 - } - ], - "type": { - "type": "reference", - "id": 50, - "name": "Session" - } - }, - { - "id": 438, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 412, - "character": 58 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - }, - { - "id": 437, - "name": "session", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 412, - "character": 45 - } - ], - "type": { - "type": "reference", - "id": 50, - "name": "Session" - }, - "defaultValue": "data" - }, - { - "id": 436, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 412, - "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": [435, 438, 437, 436] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 439, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 440, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 414, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - }, - { - "id": 443, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 414, - "character": 59 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 442, - "name": "session", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 414, - "character": 46 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - }, - { - "id": 441, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 414, - "character": 31 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [440, 443, 442, 441] - } - ] - } - } - ] - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 394, - "character": 34 - } - ] - }, - { - "id": 444, - "name": "_handleProviderSignIn", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 445, - "name": "_handleProviderSignIn", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 446, - "name": "provider", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 102, - "name": "Provider" - } - }, - { - "id": 447, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 448, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 449, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 421, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 450, - "name": "scopes", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 422, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [449, 450] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 420, - "character": 12 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 451, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 454, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 435, - "character": 34 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - }, - { - "id": 457, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 435, - "character": 74 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - }, - { - "id": 452, - "name": "provider", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 435, - "character": 23 - } - ], - "type": { - "type": "reference", - "id": 102, - "name": "Provider" - } - }, - { - "id": 455, - "name": "session", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 435, - "character": 49 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - }, - { - "id": 453, - "name": "url", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 435, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 456, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 435, - "character": 61 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [454, 457, 452, 455, 453, 456] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 458, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 459, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 439, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - }, - { - "id": 462, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 439, - "character": 59 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 461, - "name": "session", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 439, - "character": 46 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - }, - { - "id": 460, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 439, - "character": 31 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - }, - "defaultValue": "null" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [459, 462, 461, 460] - } - ] - } - } - ] - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 418, - "character": 31 - } - ] - }, - { - "id": 476, - "name": "_notifyAllSubscribers", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 477, - "name": "_notifyAllSubscribers", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 478, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 103, - "name": "AuthChangeEvent" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 525, - "character": 31 - } - ] - }, - { - "id": 482, - "name": "_persistSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 483, - "name": "_persistSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 484, - "name": "currentSession", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 50, - "name": "Session" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 548, - "character": 25 - } - ] - }, - { - "id": 465, - "name": "_recoverAndRefresh", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 466, - "name": "_recoverAndRefresh", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 471, - "character": 34 - } - ] - }, - { - "id": 463, - "name": "_recoverSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 464, - "name": "_recoverSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor." - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 447, - "character": 25 - } - ] - }, - { - "id": 485, - "name": "_removeSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 486, - "name": "_removeSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 553, - "character": 30 - } - ] - }, - { - "id": 479, - "name": "_saveSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 480, - "name": "_saveSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible" - }, - "parameters": [ - { - "id": 481, - "name": "session", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 50, - "name": "Session" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 533, - "character": 22 - } - ] - }, - { - "id": 487, - "name": "_startAutoRefreshToken", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 488, - "name": "_startAutoRefreshToken", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Clear and re-create refresh token timer" - }, - "parameters": [ - { - "id": 489, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "time intervals in milliseconds\n" - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 564, - "character": 32 - } - ] - }, - { - "id": 405, - "name": "getSessionFromUrl", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 406, - "name": "getSessionFromUrl", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Gets the session data from a URL string" - }, - "parameters": [ - { - "id": 407, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 408, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 409, - "name": "storeSession", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "Optionally store the session in the browser\n" - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 304, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [409] - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 410, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 411, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 305, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 412, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 305, - "character": 43 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [411, 412] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 305, - "character": 14 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 303, - "character": 25 - } - ] - }, - { - "id": 417, - "name": "onAuthStateChange", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 418, - "name": "onAuthStateChange", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Receive a notification every time an auth event happens.", - "returns": "A subscription object which can be used to unsubscribe itself.\n" - }, - "parameters": [ - { - "id": 419, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 420, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 421, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 422, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 103, - "name": "AuthChangeEvent" - } - }, - { - "id": 423, - "name": "session", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 375, - "character": 13 - } - ] - } - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 424, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 425, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 376, - "character": 11 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 82, - "name": "Subscription" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 426, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 376, - "character": 39 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [425, 426] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 376, - "character": 4 - } - ] - } - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 374, - "character": 19 - } - ] - }, - { - "id": 383, - "name": "refreshSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 384, - "name": "refreshSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Force refreshes the session including the user data in case it was updated in a different session." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 385, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 386, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 211, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 388, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 213, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 387, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 212, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [386, 388, 387] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 210, - "character": 34 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 210, - "character": 22 - } - ] - }, - { - "id": 381, - "name": "session", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 382, - "name": "session", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Returns the session data, if there is an active session." - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 203, - "character": 9 - } - ] - }, - { - "id": 402, - "name": "setAuth", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 403, - "name": "setAuth", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests." - }, - "parameters": [ - { - "id": 404, - "name": "access_token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "a jwt access token\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 50, - "name": "Session" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 288, - "character": 9 - } - ] - }, - { - "id": 396, - "name": "setSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 397, - "name": "setSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Sets the session data from refresh_token and returns current Session and Error" - }, - "parameters": [ - { - "id": 398, - "name": "refresh_token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "a JWT token\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 399, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 401, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 260, - "character": 45 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 400, - "name": "session", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 260, - "character": 22 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [401, 400] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 260, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 258, - "character": 18 - } - ] - }, - { - "id": 361, - "name": "signIn", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 362, - "name": "signIn", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Log in an existing user, or login via a third-party provider." - }, - "parameters": [ - { - "id": 363, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "originalName": "__0", - "type": { - "type": "reflection", - "declaration": { - "id": 364, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 365, - "name": "email", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "The user's email address." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 152, - "character": 11 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 366, - "name": "password", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "The user's password." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 152, - "character": 21 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 367, - "name": "provider", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "One of the providers supported by GoTrue." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 152, - "character": 31 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "stringLiteral", - "value": "azure" - }, - { - "type": "stringLiteral", - "value": "bitbucket" - }, - { - "type": "stringLiteral", - "value": "facebook" - }, - { - "type": "stringLiteral", - "value": "github" - }, - { - "type": "stringLiteral", - "value": "gitlab" - }, - { - "type": "stringLiteral", - "value": "google" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [365, 366, 367] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 151, - "character": 15 - } - ] - } - } - }, - { - "id": 368, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 369, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 370, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 154, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 371, - "name": "scopes", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 155, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [370, 371] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 153, - "character": 12 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 372, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 378, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 163, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 377, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 162, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 375, - "name": "provider", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 160, - "character": 12 - } - ], - "type": { - "type": "reference", - "id": 102, - "name": "Provider" - } - }, - { - "id": 373, - "name": "session", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 158, - "character": 11 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 376, - "name": "url", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 161, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 374, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 159, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [378, 377, 375, 373, 376, 374] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 157, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 151, - "character": 14 - } - ] - }, - { - "id": 413, - "name": "signOut", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 414, - "name": "signOut", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", - "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 415, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 416, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 359, - "character": 34 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [416] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 359, - "character": 27 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 359, - "character": 15 - } - ] - }, - { - "id": 347, - "name": "signUp", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 348, - "name": "signUp", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Creates a new user." - }, - "parameters": [ - { - "id": 349, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "originalName": "__0", - "type": { - "type": "reflection", - "declaration": { - "id": 350, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 351, - "name": "email", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "The user's email address." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 97, - "character": 11 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 352, - "name": "password", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "The user's password." - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 97, - "character": 21 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [351, 352] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 96, - "character": 15 - } - ] - } - } - }, - { - "id": 353, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 354, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 355, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 99, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [355] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 98, - "character": 12 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 356, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 360, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 105, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 359, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 104, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 358, - "name": "session", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 103, - "character": 11 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 357, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 102, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [360, 359, 358, 357] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 101, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 96, - "character": 14 - } - ] - }, - { - "id": 389, - "name": "update", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 390, - "name": "update", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Updates user data, if there is a logged in user." - }, - "parameters": [ - { - "id": 391, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 77, - "name": "UserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 392, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 393, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 233, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 395, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 233, - "character": 58 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 394, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 233, - "character": 38 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [393, 395, 394] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 233, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 231, - "character": 14 - } - ] - }, - { - "id": 379, - "name": "user", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 380, - "name": "user", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.", - "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 196, - "character": 6 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [333] - }, - { - "title": "Properties", - "kind": 1024, - "children": [325, 328, 327, 326, 330, 329, 332, 331] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 467, 427, 444, 476, 482, 465, 463, 485, 479, 487, 405, 417, 383, 381, 402, 396, 361, - 413, 347, 389, 379 - ] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 26, - "character": 33 - } - ] - }, - { - "id": 490, - "name": "DEFAULT_OPTIONS", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isConst": true - }, - "children": [ - { - "id": 492, - "name": "autoRefreshToken", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 20, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "true" - }, - { - "id": 495, - "name": "detectSessionInUrl", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 23, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "true" - }, - { - "id": 496, - "name": "headers", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 24, - "character": 9 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 497, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - }, - "defaultValue": "DEFAULT_HEADERS" - }, - { - "id": 494, - "name": "localStorage", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 22, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "Storage" - }, - "defaultValue": "globalThis.localStorage" - }, - { - "id": 493, - "name": "persistSession", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 21, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "true" - }, - { - "id": 491, - "name": "url", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 19, - "character": 5 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "GOTRUE_URL" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [492, 495, 496, 494, 493, 491] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 18, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [324] - }, - { - "title": "Object literals", - "kind": 2097152, - "children": [490] - } - ], - "sources": [ - { - "fileName": "GoTrueClient.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 498, - "name": "\"index\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts", - "children": [ - { - "id": 500, - "name": "AuthChangeEvent", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 103 - }, - { - "id": 505, - "name": "CookieOptions", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 92 - }, - { - "id": 499, - "name": "Provider", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 102 - }, - { - "id": 501, - "name": "Session", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 50 - }, - { - "id": 504, - "name": "Subscription", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 82 - }, - { - "id": 502, - "name": "User", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 58 - }, - { - "id": 503, - "name": "UserAttributes", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 77 - }, - { - "id": 506, - "name": "UserCredentials", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 98 - } - ], - "groups": [ - { - "title": "References", - "kind": 16777216, - "children": [500, 505, 499, 501, 504, 502, 503, 506] - } - ], - "sources": [ - { - "fileName": "index.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 104, - "name": "\"lib/constants\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts", - "children": [ - { - "id": 106, - "name": "AUDIENCE", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isConst": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 2, - "character": 21 - } - ], - "type": { - "type": "stringLiteral", - "value": "" - }, - "defaultValue": "\"\"" - }, - { - "id": 107, - "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": 108, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - } - } - } - }, - { - "id": 109, - "name": "EXPIRY_MARGIN", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isConst": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 4, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "60 * 1000" - }, - { - "id": 105, - "name": "GOTRUE_URL", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isConst": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 1, - "character": 23 - } - ], - "type": { - "type": "stringLiteral", - "value": "http://localhost:9999" - }, - "defaultValue": "\"http://localhost:9999\"" - }, - { - "id": 110, - "name": "STORAGE_KEY", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isConst": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 5, - "character": 24 - } - ], - "type": { - "type": "stringLiteral", - "value": "supabase.auth.token" - }, - "defaultValue": "\"supabase.auth.token\"" - }, - { - "id": 111, - "name": "COOKIE_OPTIONS", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isExported": true, - "isConst": true - }, - "children": [ - { - "id": 114, - "name": "domain", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 9, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"\"" - }, - { - "id": 113, - "name": "lifetime", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 8, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "60 * 60 * 8" - }, - { - "id": 112, - "name": "name", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 7, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"sb:token\"" - }, - { - "id": 115, - "name": "path", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 10, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"/\"" - }, - { - "id": 116, - "name": "sameSite", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 11, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"lax\"" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [114, 113, 112, 115, 116] - } - ], - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 6, - "character": 27 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [106, 107, 109, 105, 110] - }, - { - "title": "Object literals", - "kind": 2097152, - "children": [111] - } - ], - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 117, - "name": "\"lib/cookies\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts", - "children": [ - { - "id": 118, - "name": "Cookie", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 1, - "character": 11 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 119, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 123, - "name": "domain", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 5, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 122, - "name": "maxAge", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 4, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 120, - "name": "name", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 2, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 124, - "name": "path", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 6, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 125, - "name": "sameSite", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 7, - "character": 10 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 121, - "name": "value", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 3, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [123, 122, 120, 124, 125, 121] - } - ], - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 1, - "character": 13 - } - ] - } - } - }, - { - "id": 156, - "name": "deleteCookie", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 157, - "name": "deleteCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 158, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 159, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 160, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 164, - "character": 28 - } - ] - }, - { - "id": 139, - "name": "isSecureEnvironment", - "kind": 64, - "kindString": "Function", - "flags": {}, - "signatures": [ - { - "id": 140, - "name": "isSecureEnvironment", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Based on the environment and the request we know if a secure cookie can be set." - }, - "parameters": [ - { - "id": 141, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 112, - "character": 28 - } - ] - }, - { - "id": 126, - "name": "serialize", - "kind": 64, - "kindString": "Function", - "flags": {}, - "signatures": [ - { - "id": 127, - "name": "serialize", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Serialize data into a cookie header." - }, - "parameters": [ - { - "id": 128, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 129, - "name": "val", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 130, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 131, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 133, - "name": "domain", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 18, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 135, - "name": "expires", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 20, - "character": 11 - } - ], - "type": { - "type": "reference", - "name": "Date" - } - }, - { - "id": 136, - "name": "httpOnly", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 21, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 132, - "name": "maxAge", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 17, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 134, - "name": "path", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 19, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 138, - "name": "sameSite", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 23, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 137, - "name": "secure", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 22, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [133, 135, 136, 132, 134, 138, 137] - } - ], - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 16, - "character": 10 - } - ] - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 13, - "character": 18 - } - ] - }, - { - "id": 142, - "name": "serializeCookie", - "kind": 64, - "kindString": "Function", - "flags": {}, - "signatures": [ - { - "id": 143, - "name": "serializeCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Serialize a cookie to a string." - }, - "parameters": [ - { - "id": 144, - "name": "cookie", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 118, - "name": "Cookie" - } - }, - { - "id": 145, - "name": "secure", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 129, - "character": 24 - } - ] - }, - { - "id": 151, - "name": "setCookie", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 152, - "name": "setCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Set one or more cookies." - }, - "parameters": [ - { - "id": 153, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 154, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 155, - "name": "cookie", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 118, - "name": "Cookie" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 160, - "character": 25 - } - ] - }, - { - "id": 146, - "name": "setCookies", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 147, - "name": "setCookies", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Set one or more cookies." - }, - "parameters": [ - { - "id": 148, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 149, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 150, - "name": "cookies", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 118, - "name": "Cookie" - } - ], - "name": "Array" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 144, - "character": 26 - } - ] - } - ], - "groups": [ - { - "title": "Type aliases", - "kind": 4194304, - "children": [118] - }, - { - "title": "Functions", - "kind": 64, - "children": [156, 139, 126, 142, 151, 146] - } - ], - "sources": [ - { - "fileName": "lib/cookies.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1, - "name": "\"lib/fetch\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/fetch.ts", - "children": [ - { - "id": 2, - "name": "FetchOptions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 3, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 4, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 4, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 5, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 6, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 7, - "name": "noResolveJson", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 7, - "character": 15 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [3, 7] - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 3, - "character": 29 - } - ] - }, - { - "id": 8, - "name": "RequestMethodType", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 10, - "character": 29 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "GET" - }, - { - "type": "stringLiteral", - "value": "POST" - }, - { - "type": "stringLiteral", - "value": "PUT" - }, - { - "type": "stringLiteral", - "value": "PATCH" - }, - { - "type": "stringLiteral", - "value": "DELETE" - } - ] - } - }, - { - "id": 9, - "name": "_getErrorMessage", - "kind": 64, - "kindString": "Function", - "flags": { - "isConst": true - }, - "signatures": [ - { - "id": 10, - "name": "_getErrorMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 11, - "name": "err", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 12, - "character": 22 - } - ] - }, - { - "id": 16, - "name": "_getRequestParams", - "kind": 64, - "kindString": "Function", - "flags": { - "isConst": true - }, - "signatures": [ - { - "id": 17, - "name": "_getRequestParams", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 18, - "name": "method", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 8, - "name": "RequestMethodType" - } - }, - { - "id": 19, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - }, - { - "id": 20, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "object" - } - ] - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 21, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": [ - { - "id": 22, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 23, - "name": "k", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - } - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 27, - "character": 23 - } - ] - }, - { - "id": 24, - "name": "_handleRequest", - "kind": 64, - "kindString": "Function", - "flags": {}, - "signatures": [ - { - "id": 25, - "name": "_handleRequest", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 26, - "name": "method", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 8, - "name": "RequestMethodType" - } - }, - { - "id": 27, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 28, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - }, - { - "id": 29, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "object" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 40, - "character": 29 - } - ] - }, - { - "id": 30, - "name": "get", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 31, - "name": "get", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 32, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 33, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 58, - "character": 25 - } - ] - }, - { - "id": 12, - "name": "handleError", - "kind": 64, - "kindString": "Function", - "flags": { - "isConst": true - }, - "signatures": [ - { - "id": 13, - "name": "handleError", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 14, - "name": "error", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 15, - "name": "reject", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 15, - "character": 17 - } - ] - }, - { - "id": 34, - "name": "post", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 35, - "name": "post", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 36, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 37, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 38, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 62, - "character": 26 - } - ] - }, - { - "id": 39, - "name": "put", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 40, - "name": "put", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 41, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 42, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 43, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 66, - "character": 25 - } - ] - }, - { - "id": 44, - "name": "remove", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 45, - "name": "remove", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 46, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 47, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 48, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 70, - "character": 28 - } - ] - } - ], - "groups": [ - { - "title": "Interfaces", - "kind": 256, - "children": [2] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [8] - }, - { - "title": "Functions", - "kind": 64, - "children": [9, 16, 24, 30, 12, 34, 39, 44] - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 161, - "name": "\"lib/helpers\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts", - "children": [ - { - "id": 162, - "name": "LocalStorage", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 164, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 165, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "children": [ - { - "id": 167, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 168, - "name": "new LocalStorage", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 169, - "name": "localStorage", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "Storage" - } - } - ], - "type": { - "type": "reference", - "id": 162, - "name": "LocalStorage" - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 29, - "character": 17 - } - ] - }, - { - "id": 166, - "name": "length", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 29, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 163, - "name": "localStorage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 27, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "Storage" - } - }, - { - "id": 170, - "name": "clear", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 171, - "name": "clear", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 33, - "character": 7 - } - ] - }, - { - "id": 179, - "name": "getItem", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 180, - "name": "getItem", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 181, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 42, - "character": 9 - } - ] - }, - { - "id": 172, - "name": "key", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 173, - "name": "key", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 174, - "name": "index", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 36, - "character": 5 - } - ] - }, - { - "id": 182, - "name": "removeItem", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 183, - "name": "removeItem", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 184, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 45, - "character": 12 - } - ] - }, - { - "id": 175, - "name": "setItem", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 176, - "name": "setItem", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 177, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 178, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 39, - "character": 9 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [167] - }, - { - "title": "Properties", - "kind": 1024, - "children": [166, 163] - }, - { - "title": "Methods", - "kind": 2048, - "children": [170, 179, 172, 182, 175] - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 26, - "character": 25 - } - ], - "implementedTypes": [ - { - "type": "reference", - "name": "Storage" - } - ] - }, - { - "id": 185, - "name": "expiresAt", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 186, - "name": "expiresAt", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 187, - "name": "expiresIn", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 1, - "character": 25 - } - ] - }, - { - "id": 192, - "name": "getParameterByName", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 193, - "name": "getParameterByName", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 194, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 195, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "null" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 16, - "character": 34 - } - ] - }, - { - "id": 190, - "name": "isBrowser", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "signatures": [ - { - "id": 191, - "name": "isBrowser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 14, - "character": 22 - } - ] - }, - { - "id": 188, - "name": "uuid", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 189, - "name": "uuid", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 6, - "character": 20 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [162] - }, - { - "title": "Functions", - "kind": 64, - "children": [185, 192, 190, 188] - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 320, - "name": "\"lib/polyfills\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts", - "children": [ - { - "id": 321, - "name": "polyfillGlobalThis", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 322, - "name": "polyfillGlobalThis", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "https://mathiasbynens.be/notes/globalthis" - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/polyfills.ts", - "line": 6, - "character": 34 - } - ] - } - ], - "groups": [ - { - "title": "Functions", - "kind": 64, - "children": [321] - } - ], - "sources": [ - { - "fileName": "lib/polyfills.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 49, - "name": "\"lib/types\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts", - "children": [ - { - "id": 92, - "name": "CookieOptions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 95, - "name": "domain", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 85, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 94, - "name": "lifetime", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 83, - "character": 10 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 93, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 81, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 96, - "name": "path", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 86, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 97, - "name": "sameSite", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 88, - "character": 10 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [95, 94, 93, 96, 97] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 79, - "character": 30 - } - ] - }, - { - "id": 50, - "name": "Session", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 52, - "name": "access_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 12, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 54, - "name": "expires_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 20, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 53, - "name": "expires_in", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 16, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 51, - "name": "provider_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 11, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 55, - "name": "refresh_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 21, - "character": 15 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 56, - "name": "token_type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 22, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 57, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 23, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [52, 54, 53, 51, 55, 56, 57] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 10, - "character": 24 - } - ] - }, - { - "id": 82, - "name": "Subscription", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 84, - "name": "callback", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The function to call every time there is an event. eg: (eventName) => {}" - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 72, - "character": 10 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 85, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 86, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 87, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 103, - "name": "AuthChangeEvent" - } - }, - { - "id": 88, - "name": "session", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 50, - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 72, - "character": 11 - } - ] - } - } - }, - { - "id": 83, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The subscriber UUID. This will be set by the client." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 68, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 89, - "name": "unsubscribe", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Call this to remove the listener." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 76, - "character": 13 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 90, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 91, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 76, - "character": 14 - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [84, 83, 89] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 64, - "character": 29 - } - ] - }, - { - "id": 58, - "name": "User", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 60, - "name": "app_metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 27, - "character": 14 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 61, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 63, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 64, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "children": [ - { - "id": 62, - "name": "provider", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 28, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [62] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 27, - "character": 15 - } - ] - } - } - }, - { - "id": 69, - "name": "aud", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 34, - "character": 5 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 70, - "name": "confirmation_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 35, - "character": 22 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 73, - "name": "confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 38, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 72, - "name": "created_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 37, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 71, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 36, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 59, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 26, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 74, - "name": "last_sign_in_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 39, - "character": 17 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 75, - "name": "role", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 40, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 76, - "name": "updated_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 41, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 65, - "name": "user_metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 31, - "character": 15 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 66, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 67, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 68, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 31, - "character": 16 - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [60, 69, 70, 73, 72, 71, 59, 74, 75, 76, 65] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 25, - "character": 21 - } - ] - }, - { - "id": 77, - "name": "UserAttributes", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 81, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom data object. Can be any JSON." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 61, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "object" - } - ] - } - }, - { - "id": 78, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's email." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 48, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 80, - "name": "email_change_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "An email change token." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 56, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 79, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 52, - "character": 10 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [81, 78, 80, 79] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 44, - "character": 31 - } - ] - }, - { - "id": 98, - "name": "UserCredentials", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 99, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 92, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 100, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 93, - "character": 10 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 101, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 95, - "character": 10 - } - ], - "type": { - "type": "reference", - "id": 102, - "name": "Provider" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [99, 100, 101] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 91, - "character": 32 - } - ] - }, - { - "id": 103, - "name": "AuthChangeEvent", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 3, - "character": 27 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "SIGNED_IN" - }, - { - "type": "stringLiteral", - "value": "SIGNED_OUT" - }, - { - "type": "stringLiteral", - "value": "USER_UPDATED" - }, - { - "type": "stringLiteral", - "value": "USER_DELETED" - }, - { - "type": "stringLiteral", - "value": "PASSWORD_RECOVERY" - } - ] - } - }, - { - "id": 102, - "name": "Provider", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 1, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "azure" - }, - { - "type": "stringLiteral", - "value": "bitbucket" - }, - { - "type": "stringLiteral", - "value": "facebook" - }, - { - "type": "stringLiteral", - "value": "github" - }, - { - "type": "stringLiteral", - "value": "gitlab" - }, - { - "type": "stringLiteral", - "value": "google" - } - ] - } - } - ], - "groups": [ - { - "title": "Interfaces", - "kind": 256, - "children": [92, 50, 82, 58, 77, 98] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [103, 102] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 1, - "character": 0 - } - ] - } - ], - "groups": [ - { - "title": "Modules", - "kind": 1, - "children": [196, 323, 498, 104, 117, 1, 161, 320, 49] - } - ] -} + "id": 0, + "name": "@supabase/gotrue-js", + "kind": 0, + "flags": {}, + "originalName": "", + "children": [ + { + "id": 197, + "name": "\"GoTrueApi\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts", + "children": [ + { + "id": 198, + "name": "GoTrueApi", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 205, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 206, + "name": "new GoTrueApi", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 207, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 208, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 214, + "name": "cookieOptions", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 17, + "character": 17 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "id": 92, + "name": "CookieOptions" + } + ] + } + }, + { + "id": 210, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 16, + "character": 11 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 211, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 212, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 213, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 209, + "name": "url", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 15, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 214, + 210, + 209 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 14, + "character": 14 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "id": 198, + "name": "GoTrueApi" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 12, + "character": 40 + } + ] + }, + { + "id": 204, + "name": "cookieOptions", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 12, + "character": 25 + } + ], + "type": { + "type": "reference", + "id": 92, + "name": "CookieOptions" + } + }, + { + "id": 200, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 9, + "character": 19 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 201, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 202, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 203, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 9, + "character": 20 + } + ] + } + } + }, + { + "id": 199, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 8, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 264, + "name": "_createRequestHeaders", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 265, + "name": "_createRequestHeaders", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods" + }, + "parameters": [ + { + "id": 266, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A valid, logged-in JWT.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 267, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + } + } + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 166, + "character": 31 + } + ] + }, + { + "id": 295, + "name": "deleteUser", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 296, + "name": "deleteUser", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Delete an user." + }, + "parameters": [ + { + "id": 297, + "name": "uid", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user uid you want to remove." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 298, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A valid JWT. Must be a full-access API key (e.g. service_role key).\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 299, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 301, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 254, + "character": 38 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 302, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 254, + "character": 58 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 300, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 254, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 301, + 302, + 300 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 254, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 251, + "character": 18 + } + ] + }, + { + "id": 273, + "name": "getUrlForProvider", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 274, + "name": "getUrlForProvider", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Generates the relevant login URL for a third-party provider." + }, + "parameters": [ + { + "id": 275, + "name": "provider", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "One of the providers supported by GoTrue." + }, + "type": { + "type": "reference", + "id": 103, + "name": "Provider" + } + }, + { + "id": 276, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 277, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 278, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 198, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 279, + "name": "scopes", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 199, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 278, + 279 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 197, + "character": 12 + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 195, + "character": 19 + } + ] + }, + { + "id": 280, + "name": "getUser", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 281, + "name": "getUser", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Gets the user details." + }, + "parameters": [ + { + "id": 282, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A valid, logged-in JWT.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 283, + "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": 218, + "character": 38 + } + ], + "type": { + "type": "union", + "types": [ + { + "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": 218, + "character": 58 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 284, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 218, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 285, + 286, + 284 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 218, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 216, + "character": 15 + } + ] + }, + { + "id": 313, + "name": "getUserByCookie", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 314, + "name": "getUserByCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)." + }, + "parameters": [ + { + "id": 315, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 316, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 318, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 322, + "character": 38 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 319, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 322, + "character": 58 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 317, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 322, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 318, + 319, + 317 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 322, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 320, + "character": 23 + } + ] + }, + { + "id": 245, + "name": "inviteUserByEmail", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 246, + "name": "inviteUserByEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Sends an invite link to an email address." + }, + "parameters": [ + { + "id": 247, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 248, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 249, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 250, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 121, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 250 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 120, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 251, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 252, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 123, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 253, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 123, + "character": 39 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 252, + 253 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 123, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 118, + "character": 25 + } + ] + }, + { + "id": 303, + "name": "refreshAccessToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 304, + "name": "refreshAccessToken", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Generates a new JWT." + }, + "parameters": [ + { + "id": 305, + "name": "refreshToken", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A valid refresh token that was returned on login.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 306, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 307, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 275, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 308, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 275, + "character": 42 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 307, + 308 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 275, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 273, + "character": 26 + } + ] + }, + { + "id": 254, + "name": "resetPasswordForEmail", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 255, + "name": "resetPasswordForEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Sends a reset request to an email address." + }, + "parameters": [ + { + "id": 256, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 257, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 258, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 259, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 145, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 259 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 144, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 260, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 261, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 147, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 262, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 147, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 263, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 147, + "character": 37 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 261, + 263 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 147, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 142, + "character": 29 + } + ] + }, + { + "id": 235, + "name": "sendMagicLinkEmail", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 236, + "name": "sendMagicLinkEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Sends a magic login link to an email address." + }, + "parameters": [ + { + "id": 237, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 238, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 239, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 240, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 97, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 240 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 96, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 241, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 242, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 99, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 243, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 99, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 244, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 99, + "character": 37 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 242, + 244 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 99, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 94, + "character": 26 + } + ] + }, + { + "id": 309, + "name": "setAuthCookie", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 310, + "name": "setAuthCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)." + }, + "parameters": [ + { + "id": 311, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 312, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 294, + "character": 15 + } + ] + }, + { + "id": 225, + "name": "signInWithEmail", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 226, + "name": "signInWithEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Logs in an existing user using their email address." + }, + "parameters": [ + { + "id": 227, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 228, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The password of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 229, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 230, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 231, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 71, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 231 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 70, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 232, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 233, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 73, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 234, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 73, + "character": 42 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 233, + 234 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 73, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 67, + "character": 23 + } + ] + }, + { + "id": 268, + "name": "signOut", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 269, + "name": "signOut", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Removes a logged-in session." + }, + "parameters": [ + { + "id": 270, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A valid, logged-in JWT.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 271, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 272, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 176, + "character": 45 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 272 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 176, + "character": 38 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 176, + "character": 15 + } + ] + }, + { + "id": 215, + "name": "signUpWithEmail", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 216, + "name": "signUpWithEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Creates a new user using their email address.", + "returns": "A logged-in session if the server has \"autoconfirm\" ON" + }, + "parameters": [ + { + "id": 217, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 218, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The password of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 219, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 220, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 221, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 43, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 221 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 42, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 222, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 223, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 45, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 224, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 45, + "character": 49 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 223, + 224 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 45, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 39, + "character": 23 + } + ] + }, + { + "id": 287, + "name": "updateUser", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 288, + "name": "updateUser", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Updates the user data." + }, + "parameters": [ + { + "id": 289, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A valid, logged-in JWT." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 290, + "name": "attributes", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The data you want to update.\n" + }, + "type": { + "type": "reference", + "id": 77, + "name": "UserAttributes" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 291, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 293, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 235, + "character": 38 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 294, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 235, + "character": 58 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 292, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 235, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 293, + 294, + 292 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 235, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 232, + "character": 18 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 205 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 204, + 200, + 199 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 264, + 295, + 273, + 280, + 313, + 245, + 303, + 254, + 235, + 309, + 225, + 268, + 215, + 287 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 7, + "character": 30 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 198 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueApi.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 323, + "name": "\"GoTrueClient\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts", + "children": [ + { + "id": 324, + "name": "GoTrueClient", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 333, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Create a new client for use in the browser." + }, + "signatures": [ + { + "id": 334, + "name": "new GoTrueClient", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Create a new client for use in the browser." + }, + "parameters": [ + { + "id": 335, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 336, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 343, + "name": "autoRefreshToken", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "Set to \"true\" if you want to automatically refresh the token before expiring." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 60, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 346, + "name": "cookieOptions", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 63, + "character": 17 + } + ], + "type": { + "type": "reference", + "id": 92, + "name": "CookieOptions" + } + }, + { + "id": 342, + "name": "detectSessionInUrl", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 59, + "character": 22 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 338, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "Any additional headers to send to the GoTrue server." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 58, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 339, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 340, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 341, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 345, + "name": "localStorage", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "\n" + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 62, + "character": 16 + } + ], + "type": { + "type": "reference", + "name": "Storage" + } + }, + { + "id": 344, + "name": "persistSession", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "Set to \"true\" if you want to automatically save the user session into local storage." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 61, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 337, + "name": "url", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "The URL of the GoTrue server." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 57, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 343, + 346, + 342, + 338, + 345, + 344, + 337 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 56, + "character": 22 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "id": 324, + "name": "GoTrueClient" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 45, + "character": 61 + } + ] + }, + { + "id": 325, + "name": "api", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 31, + "character": 5 + } + ], + "type": { + "type": "reference", + "id": 198, + "name": "GoTrueApi" + } + }, + { + "id": 328, + "name": "autoRefreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 41, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 327, + "name": "currentSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "comment": { + "shortText": "The session object for the currently logged in user or null." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 39, + "character": 26 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 326, + "name": "currentUser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "comment": { + "shortText": "The currently logged in user or null." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 35, + "character": 23 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 330, + "name": "localStorage", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 43, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "Storage" + } + }, + { + "id": 329, + "name": "persistSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 42, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 332, + "name": "refreshTokenTimer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 45, + "character": 29 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "query", + "queryType": { + "type": "reference", + "name": "setTimeout" + } + } + ], + "name": "ReturnType" + } + }, + { + "id": 331, + "name": "stateChangeEmitters", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 44, + "character": 31 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "id": 82, + "name": "Subscription" + } + ], + "name": "Map" + }, + "defaultValue": "new Map()" + }, + { + "id": 468, + "name": "_callRefreshToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 469, + "name": "_callRefreshToken", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 470, + "name": "refresh_token", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "this.currentSession?.refresh_token" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 471, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 472, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 532, + "character": 19 + } + ], + "type": { + "type": "reference", + "id": 50, + "name": "Session" + } + }, + { + "id": 473, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 532, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 472, + 473 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 474, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 475, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 534, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 476, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 534, + "character": 32 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 475, + 476 + ] + } + ] + } + } + ] + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 520, + "character": 33 + } + ] + }, + { + "id": 428, + "name": "_handleEmailSignIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 429, + "name": "_handleEmailSignIn", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 430, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 431, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 432, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 433, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 434, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 411, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 434 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 410, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 435, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 436, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 425, + "character": 19 + } + ], + "type": { + "type": "reference", + "id": 50, + "name": "Session" + } + }, + { + "id": 439, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 425, + "character": 58 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 438, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 425, + "character": 45 + } + ], + "type": { + "type": "reference", + "id": 50, + "name": "Session" + }, + "defaultValue": "data" + }, + { + "id": 437, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 425, + "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": [ + 436, + 439, + 438, + 437 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 440, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 441, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 427, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 444, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 427, + "character": 59 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 443, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 427, + "character": 46 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 442, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 427, + "character": 31 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 441, + 444, + 443, + 442 + ] + } + ] + } + } + ] + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 407, + "character": 34 + } + ] + }, + { + "id": 445, + "name": "_handleProviderSignIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 446, + "name": "_handleProviderSignIn", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 447, + "name": "provider", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 103, + "name": "Provider" + } + }, + { + "id": 448, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 449, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 450, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 434, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 451, + "name": "scopes", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 435, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 450, + 451 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 433, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 452, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 455, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 448, + "character": 34 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 458, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 448, + "character": 74 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 453, + "name": "provider", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 448, + "character": 23 + } + ], + "type": { + "type": "reference", + "id": 103, + "name": "Provider" + } + }, + { + "id": 456, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 448, + "character": 49 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 454, + "name": "url", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 448, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 457, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 448, + "character": 61 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 455, + 458, + 453, + 456, + 454, + 457 + ] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 459, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 460, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 452, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 463, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 452, + "character": 59 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 462, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 452, + "character": 46 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + }, + { + "id": 461, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 452, + "character": 31 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 460, + 463, + 462, + 461 + ] + } + ] + } + } + ] + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 431, + "character": 31 + } + ] + }, + { + "id": 477, + "name": "_notifyAllSubscribers", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 478, + "name": "_notifyAllSubscribers", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 479, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 104, + "name": "AuthChangeEvent" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 538, + "character": 31 + } + ] + }, + { + "id": 483, + "name": "_persistSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 484, + "name": "_persistSession", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 485, + "name": "currentSession", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 50, + "name": "Session" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 561, + "character": 25 + } + ] + }, + { + "id": 466, + "name": "_recoverAndRefresh", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 467, + "name": "_recoverAndRefresh", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 484, + "character": 34 + } + ] + }, + { + "id": 464, + "name": "_recoverSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 465, + "name": "_recoverSession", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 460, + "character": 25 + } + ] + }, + { + "id": 486, + "name": "_removeSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 487, + "name": "_removeSession", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 566, + "character": 30 + } + ] + }, + { + "id": 480, + "name": "_saveSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 481, + "name": "_saveSession", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible" + }, + "parameters": [ + { + "id": 482, + "name": "session", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 50, + "name": "Session" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 546, + "character": 22 + } + ] + }, + { + "id": 488, + "name": "_startAutoRefreshToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 489, + "name": "_startAutoRefreshToken", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Clear and re-create refresh token timer" + }, + "parameters": [ + { + "id": 490, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "time intervals in milliseconds\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 577, + "character": 32 + } + ] + }, + { + "id": 406, + "name": "getSessionFromUrl", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 407, + "name": "getSessionFromUrl", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Gets the session data from a URL string" + }, + "parameters": [ + { + "id": 408, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 409, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 410, + "name": "storeSession", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "Optionally store the session in the browser\n" + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 317, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 410 + ] + } + ] + } + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 411, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 412, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 318, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 413, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 318, + "character": 43 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 412, + 413 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 318, + "character": 14 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 316, + "character": 25 + } + ] + }, + { + "id": 418, + "name": "onAuthStateChange", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 419, + "name": "onAuthStateChange", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Receive a notification every time an auth event happens.", + "returns": "A subscription object which can be used to unsubscribe itself.\n" + }, + "parameters": [ + { + "id": 420, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 421, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 422, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 423, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 104, + "name": "AuthChangeEvent" + } + }, + { + "id": 424, + "name": "session", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 388, + "character": 13 + } + ] + } + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 425, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 426, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 389, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 82, + "name": "Subscription" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 427, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 389, + "character": 39 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 426, + 427 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 389, + "character": 4 + } + ] + } + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 387, + "character": 19 + } + ] + }, + { + "id": 384, + "name": "refreshSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 385, + "name": "refreshSession", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Force refreshes the session including the user data in case it was updated in a different session." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 386, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 387, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 224, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 389, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 226, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 388, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 225, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 387, + 389, + 388 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 223, + "character": 34 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 223, + "character": 22 + } + ] + }, + { + "id": 382, + "name": "session", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 383, + "name": "session", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Returns the session data, if there is an active session." + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 216, + "character": 9 + } + ] + }, + { + "id": 403, + "name": "setAuth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 404, + "name": "setAuth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests." + }, + "parameters": [ + { + "id": 405, + "name": "access_token", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "a jwt access token\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 50, + "name": "Session" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 301, + "character": 9 + } + ] + }, + { + "id": 397, + "name": "setSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 398, + "name": "setSession", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Sets the session data from refresh_token and returns current Session and Error" + }, + "parameters": [ + { + "id": 399, + "name": "refresh_token", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "a JWT token\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 400, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 402, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 273, + "character": 45 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 401, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 273, + "character": 22 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 402, + 401 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 273, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 271, + "character": 18 + } + ] + }, + { + "id": 361, + "name": "signIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 362, + "name": "signIn", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Log in an existing user, or login via a third-party provider." + }, + "parameters": [ + { + "id": 363, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 364, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 365, + "name": "email", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's email address." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 153, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 366, + "name": "password", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's password." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 153, + "character": 21 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 368, + "name": "provider", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "One of the providers supported by GoTrue." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 153, + "character": 45 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "stringLiteral", + "value": "azure" + }, + { + "type": "stringLiteral", + "value": "bitbucket" + }, + { + "type": "stringLiteral", + "value": "facebook" + }, + { + "type": "stringLiteral", + "value": "github" + }, + { + "type": "stringLiteral", + "value": "gitlab" + }, + { + "type": "stringLiteral", + "value": "google" + }, + { + "type": "stringLiteral", + "value": "twitter" + }, + { + "type": "stringLiteral", + "value": "apple" + } + ] + } + }, + { + "id": 367, + "name": "refreshToken", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "A valid refresh token that was returned on login." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 153, + "character": 35 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 365, + 366, + 368, + 367 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 152, + "character": 15 + } + ] + } + } + }, + { + "id": 369, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 370, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 371, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 155, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 372, + "name": "scopes", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 156, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 371, + 372 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 154, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 373, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 379, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 164, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 378, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 163, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 376, + "name": "provider", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 161, + "character": 12 + } + ], + "type": { + "type": "reference", + "id": 103, + "name": "Provider" + } + }, + { + "id": 374, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 159, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 377, + "name": "url", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 162, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 375, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 160, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 379, + 378, + 376, + 374, + 377, + 375 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 158, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 152, + "character": 14 + } + ] + }, + { + "id": 414, + "name": "signOut", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 415, + "name": "signOut", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "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.", + "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n" + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 416, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 417, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 372, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 417 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 372, + "character": 27 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 372, + "character": 15 + } + ] + }, + { + "id": 347, + "name": "signUp", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 348, + "name": "signUp", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Creates a new user." + }, + "parameters": [ + { + "id": 349, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 350, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 351, + "name": "email", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's email address." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 97, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 352, + "name": "password", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's password." + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 97, + "character": 21 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 351, + 352 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 96, + "character": 15 + } + ] + } + } + }, + { + "id": 353, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 354, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 355, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 99, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 355 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 98, + "character": 12 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 356, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 360, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 105, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 359, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 104, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 358, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 103, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 357, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 102, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 360, + 359, + 358, + 357 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 101, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 96, + "character": 14 + } + ] + }, + { + "id": 390, + "name": "update", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 391, + "name": "update", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Updates user data, if there is a logged in user." + }, + "parameters": [ + { + "id": 392, + "name": "attributes", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 77, + "name": "UserAttributes" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 393, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 394, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 246, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 396, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 246, + "character": 58 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 395, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 246, + "character": 38 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 394, + 396, + 395 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 246, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 244, + "character": 14 + } + ] + }, + { + "id": 380, + "name": "user", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 381, + "name": "user", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.", + "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 209, + "character": 6 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 333 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 325, + 328, + 327, + 326, + 330, + 329, + 332, + 331 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 468, + 428, + 445, + 477, + 483, + 466, + 464, + 486, + 480, + 488, + 406, + 418, + 384, + 382, + 403, + 397, + 361, + 414, + 347, + 390, + 380 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 26, + "character": 33 + } + ] + }, + { + "id": 491, + "name": "DEFAULT_OPTIONS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isConst": true + }, + "children": [ + { + "id": 493, + "name": "autoRefreshToken", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 20, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + }, + { + "id": 496, + "name": "detectSessionInUrl", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 23, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + }, + { + "id": 497, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 24, + "character": 9 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 498, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + }, + "defaultValue": "DEFAULT_HEADERS" + }, + { + "id": 495, + "name": "localStorage", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 22, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "Storage" + }, + "defaultValue": "globalThis.localStorage" + }, + { + "id": 494, + "name": "persistSession", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 21, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + }, + { + "id": 492, + "name": "url", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 19, + "character": 5 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "GOTRUE_URL" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 493, + 496, + 497, + 495, + 494, + 492 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 18, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 324 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 491 + ] + } + ], + "sources": [ + { + "fileName": "GoTrueClient.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 499, + "name": "\"index\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts", + "children": [ + { + "id": 501, + "name": "AuthChangeEvent", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 104 + }, + { + "id": 506, + "name": "CookieOptions", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 92 + }, + { + "id": 500, + "name": "Provider", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 103 + }, + { + "id": 502, + "name": "Session", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 50 + }, + { + "id": 505, + "name": "Subscription", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 82 + }, + { + "id": 503, + "name": "User", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 58 + }, + { + "id": 504, + "name": "UserAttributes", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 77 + }, + { + "id": 507, + "name": "UserCredentials", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 98 + } + ], + "groups": [ + { + "title": "References", + "kind": 16777216, + "children": [ + 501, + 506, + 500, + 502, + 505, + 503, + 504, + 507 + ] + } + ], + "sources": [ + { + "fileName": "index.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 105, + "name": "\"lib/constants\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts", + "children": [ + { + "id": 107, + "name": "AUDIENCE", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 2, + "character": 21 + } + ], + "type": { + "type": "stringLiteral", + "value": "" + }, + "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, + "name": "EXPIRY_MARGIN", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 4, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "60 * 1000" + }, + { + "id": 106, + "name": "GOTRUE_URL", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 1, + "character": 23 + } + ], + "type": { + "type": "stringLiteral", + "value": "http://localhost:9999" + }, + "defaultValue": "\"http://localhost:9999\"" + }, + { + "id": 111, + "name": "STORAGE_KEY", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 5, + "character": 24 + } + ], + "type": { + "type": "stringLiteral", + "value": "supabase.auth.token" + }, + "defaultValue": "\"supabase.auth.token\"" + }, + { + "id": 112, + "name": "COOKIE_OPTIONS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isExported": true, + "isConst": true + }, + "children": [ + { + "id": 115, + "name": "domain", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 9, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"\"" + }, + { + "id": 114, + "name": "lifetime", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 8, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "60 * 60 * 8" + }, + { + "id": 113, + "name": "name", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 7, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"sb:token\"" + }, + { + "id": 116, + "name": "path", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 10, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"/\"" + }, + { + "id": 117, + "name": "sameSite", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 11, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"lax\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 115, + 114, + 113, + 116, + 117 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 6, + "character": 27 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 107, + 108, + 110, + 106, + 111 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 112 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 118, + "name": "\"lib/cookies\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts", + "children": [ + { + "id": 119, + "name": "Cookie", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 1, + "character": 11 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 120, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 124, + "name": "domain", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 5, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 123, + "name": "maxAge", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 4, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 121, + "name": "name", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 2, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 125, + "name": "path", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 6, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 126, + "name": "sameSite", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 7, + "character": 10 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 122, + "name": "value", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 3, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 124, + 123, + 121, + 125, + 126, + 122 + ] + } + ], + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 1, + "character": 13 + } + ] + } + } + }, + { + "id": 157, + "name": "deleteCookie", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 158, + "name": "deleteCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 159, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 160, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 161, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 164, + "character": 28 + } + ] + }, + { + "id": 140, + "name": "isSecureEnvironment", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 141, + "name": "isSecureEnvironment", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Based on the environment and the request we know if a secure cookie can be set." + }, + "parameters": [ + { + "id": 142, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 112, + "character": 28 + } + ] + }, + { + "id": 127, + "name": "serialize", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 128, + "name": "serialize", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Serialize data into a cookie header." + }, + "parameters": [ + { + "id": 129, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 130, + "name": "val", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 131, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 132, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 134, + "name": "domain", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 18, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 136, + "name": "expires", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 20, + "character": 11 + } + ], + "type": { + "type": "reference", + "name": "Date" + } + }, + { + "id": 137, + "name": "httpOnly", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 21, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 133, + "name": "maxAge", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 17, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 135, + "name": "path", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 19, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 139, + "name": "sameSite", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 23, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 138, + "name": "secure", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 22, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 134, + 136, + 137, + 133, + 135, + 139, + 138 + ] + } + ], + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 16, + "character": 10 + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 13, + "character": 18 + } + ] + }, + { + "id": 143, + "name": "serializeCookie", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 144, + "name": "serializeCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Serialize a cookie to a string." + }, + "parameters": [ + { + "id": 145, + "name": "cookie", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 119, + "name": "Cookie" + } + }, + { + "id": 146, + "name": "secure", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 129, + "character": 24 + } + ] + }, + { + "id": 152, + "name": "setCookie", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 153, + "name": "setCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set one or more cookies." + }, + "parameters": [ + { + "id": 154, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 155, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 156, + "name": "cookie", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 119, + "name": "Cookie" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 160, + "character": 25 + } + ] + }, + { + "id": 147, + "name": "setCookies", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 148, + "name": "setCookies", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set one or more cookies." + }, + "parameters": [ + { + "id": 149, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 150, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 151, + "name": "cookies", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 119, + "name": "Cookie" + } + ], + "name": "Array" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 144, + "character": 26 + } + ] + } + ], + "groups": [ + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 119 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 157, + 140, + 127, + 143, + 152, + 147 + ] + } + ], + "sources": [ + { + "fileName": "lib/cookies.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1, + "name": "\"lib/fetch\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/fetch.ts", + "children": [ + { + "id": 2, + "name": "FetchOptions", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 3, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 4, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 4, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 5, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 6, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 7, + "name": "noResolveJson", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 7, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 3, + 7 + ] + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 3, + "character": 29 + } + ] + }, + { + "id": 8, + "name": "RequestMethodType", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 10, + "character": 29 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "GET" + }, + { + "type": "stringLiteral", + "value": "POST" + }, + { + "type": "stringLiteral", + "value": "PUT" + }, + { + "type": "stringLiteral", + "value": "PATCH" + }, + { + "type": "stringLiteral", + "value": "DELETE" + } + ] + } + }, + { + "id": 9, + "name": "_getErrorMessage", + "kind": 64, + "kindString": "Function", + "flags": { + "isConst": true + }, + "signatures": [ + { + "id": 10, + "name": "_getErrorMessage", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 11, + "name": "err", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 12, + "character": 22 + } + ] + }, + { + "id": 16, + "name": "_getRequestParams", + "kind": 64, + "kindString": "Function", + "flags": { + "isConst": true + }, + "signatures": [ + { + "id": 17, + "name": "_getRequestParams", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 18, + "name": "method", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 8, + "name": "RequestMethodType" + } + }, + { + "id": 19, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + }, + { + "id": 20, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "object" + } + ] + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 21, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 22, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 23, + "name": "k", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 27, + "character": 23 + } + ] + }, + { + "id": 24, + "name": "_handleRequest", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 25, + "name": "_handleRequest", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 26, + "name": "method", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 8, + "name": "RequestMethodType" + } + }, + { + "id": 27, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 28, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + }, + { + "id": 29, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "object" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 40, + "character": 29 + } + ] + }, + { + "id": 30, + "name": "get", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 31, + "name": "get", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 32, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 33, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 58, + "character": 25 + } + ] + }, + { + "id": 12, + "name": "handleError", + "kind": 64, + "kindString": "Function", + "flags": { + "isConst": true + }, + "signatures": [ + { + "id": 13, + "name": "handleError", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 14, + "name": "error", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 15, + "name": "reject", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 15, + "character": 17 + } + ] + }, + { + "id": 34, + "name": "post", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 35, + "name": "post", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 36, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 37, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 38, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 62, + "character": 26 + } + ] + }, + { + "id": 39, + "name": "put", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 40, + "name": "put", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 41, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 42, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 43, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 66, + "character": 25 + } + ] + }, + { + "id": 44, + "name": "remove", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 45, + "name": "remove", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 46, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 47, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 48, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 70, + "character": 28 + } + ] + } + ], + "groups": [ + { + "title": "Interfaces", + "kind": 256, + "children": [ + 2 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 8 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 9, + 16, + 24, + 30, + 12, + 34, + 39, + 44 + ] + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 162, + "name": "\"lib/helpers\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts", + "children": [ + { + "id": 163, + "name": "LocalStorage", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 165, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 166, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "children": [ + { + "id": 168, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 169, + "name": "new LocalStorage", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 170, + "name": "localStorage", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "Storage" + } + } + ], + "type": { + "type": "reference", + "id": 163, + "name": "LocalStorage" + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 29, + "character": 17 + } + ] + }, + { + "id": 167, + "name": "length", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 29, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 164, + "name": "localStorage", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 27, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "Storage" + } + }, + { + "id": 171, + "name": "clear", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 172, + "name": "clear", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 33, + "character": 7 + } + ] + }, + { + "id": 180, + "name": "getItem", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 181, + "name": "getItem", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 182, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 42, + "character": 9 + } + ] + }, + { + "id": 173, + "name": "key", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 174, + "name": "key", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 175, + "name": "index", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 36, + "character": 5 + } + ] + }, + { + "id": 183, + "name": "removeItem", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 184, + "name": "removeItem", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 185, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 45, + "character": 12 + } + ] + }, + { + "id": 176, + "name": "setItem", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 177, + "name": "setItem", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 178, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 179, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 39, + "character": 9 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 168 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 167, + 164 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 171, + 180, + 173, + 183, + 176 + ] + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 26, + "character": 25 + } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "Storage" + } + ] + }, + { + "id": 186, + "name": "expiresAt", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 187, + "name": "expiresAt", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 188, + "name": "expiresIn", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 1, + "character": 25 + } + ] + }, + { + "id": 193, + "name": "getParameterByName", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 194, + "name": "getParameterByName", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 195, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 196, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 16, + "character": 34 + } + ] + }, + { + "id": 191, + "name": "isBrowser", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "signatures": [ + { + "id": 192, + "name": "isBrowser", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 14, + "character": 22 + } + ] + }, + { + "id": 189, + "name": "uuid", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 190, + "name": "uuid", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 6, + "character": 20 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 163 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 186, + 193, + 191, + 189 + ] + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 320, + "name": "\"lib/polyfills\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts", + "children": [ + { + "id": 321, + "name": "polyfillGlobalThis", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 322, + "name": "polyfillGlobalThis", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "https://mathiasbynens.be/notes/globalthis" + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/polyfills.ts", + "line": 6, + "character": 34 + } + ] + } + ], + "groups": [ + { + "title": "Functions", + "kind": 64, + "children": [ + 321 + ] + } + ], + "sources": [ + { + "fileName": "lib/polyfills.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 49, + "name": "\"lib/types\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts", + "children": [ + { + "id": 92, + "name": "CookieOptions", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 95, + "name": "domain", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 85, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 94, + "name": "lifetime", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 83, + "character": 10 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 93, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 81, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 96, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 86, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 97, + "name": "sameSite", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 88, + "character": 10 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 95, + 94, + 93, + 96, + 97 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 79, + "character": 30 + } + ] + }, + { + "id": 50, + "name": "Session", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 52, + "name": "access_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 12, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 54, + "name": "expires_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 20, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 53, + "name": "expires_in", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 16, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 51, + "name": "provider_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 11, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 55, + "name": "refresh_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 21, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 56, + "name": "token_type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 22, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 57, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 23, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 52, + 54, + 53, + 51, + 55, + 56, + 57 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 10, + "character": 24 + } + ] + }, + { + "id": 82, + "name": "Subscription", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 84, + "name": "callback", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The function to call every time there is an event. eg: (eventName) => {}" + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 72, + "character": 10 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 85, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 86, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 87, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 104, + "name": "AuthChangeEvent" + } + }, + { + "id": 88, + "name": "session", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 50, + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 72, + "character": 11 + } + ] + } + } + }, + { + "id": 83, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The subscriber UUID. This will be set by the client." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 68, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 89, + "name": "unsubscribe", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Call this to remove the listener." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 76, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 90, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 91, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 76, + "character": 14 + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 84, + 83, + 89 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 64, + "character": 29 + } + ] + }, + { + "id": 58, + "name": "User", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 60, + "name": "app_metadata", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 27, + "character": 14 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 61, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 63, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 64, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "children": [ + { + "id": 62, + "name": "provider", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 28, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 62 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 27, + "character": 15 + } + ] + } + } + }, + { + "id": 69, + "name": "aud", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 34, + "character": 5 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 70, + "name": "confirmation_sent_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 35, + "character": 22 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 73, + "name": "confirmed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 38, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 72, + "name": "created_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 37, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 71, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 36, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 59, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 26, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 74, + "name": "last_sign_in_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 39, + "character": 17 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 75, + "name": "role", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 40, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 76, + "name": "updated_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 41, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 65, + "name": "user_metadata", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 31, + "character": 15 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 66, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 67, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 68, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 31, + "character": 16 + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 60, + 69, + 70, + 73, + 72, + 71, + 59, + 74, + 75, + 76, + 65 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 25, + "character": 21 + } + ] + }, + { + "id": 77, + "name": "UserAttributes", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 81, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "A custom data object. Can be any JSON." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 61, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "object" + } + ] + } + }, + { + "id": 78, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The user's email." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 48, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 80, + "name": "email_change_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "An email change token." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 56, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 79, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The user's password." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 52, + "character": 10 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 81, + 78, + 80, + 79 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 44, + "character": 31 + } + ] + }, + { + "id": 98, + "name": "UserCredentials", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 99, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 92, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 100, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 93, + "character": 10 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 102, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 96, + "character": 10 + } + ], + "type": { + "type": "reference", + "id": 103, + "name": "Provider" + } + }, + { + "id": 101, + "name": "refreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 94, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 99, + 100, + 102, + 101 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 91, + "character": 32 + } + ] + }, + { + "id": 104, + "name": "AuthChangeEvent", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 3, + "character": 27 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "SIGNED_IN" + }, + { + "type": "stringLiteral", + "value": "SIGNED_OUT" + }, + { + "type": "stringLiteral", + "value": "USER_UPDATED" + }, + { + "type": "stringLiteral", + "value": "USER_DELETED" + }, + { + "type": "stringLiteral", + "value": "PASSWORD_RECOVERY" + } + ] + } + }, + { + "id": 103, + "name": "Provider", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 1, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "azure" + }, + { + "type": "stringLiteral", + "value": "bitbucket" + }, + { + "type": "stringLiteral", + "value": "facebook" + }, + { + "type": "stringLiteral", + "value": "github" + }, + { + "type": "stringLiteral", + "value": "gitlab" + }, + { + "type": "stringLiteral", + "value": "google" + }, + { + "type": "stringLiteral", + "value": "twitter" + }, + { + "type": "stringLiteral", + "value": "apple" + } + ] + } + } + ], + "groups": [ + { + "title": "Interfaces", + "kind": 256, + "children": [ + 92, + 50, + 82, + 58, + 77, + 98 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 104, + 103 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 1, + "character": 0 + } + ] + } + ], + "groups": [ + { + "title": "Modules", + "kind": 1, + "children": [ + 197, + 323, + 499, + 105, + 118, + 1, + 162, + 320, + 49 + ] + } + ] +} \ No newline at end of file diff --git a/web/spec/postgrest.json b/web/spec/postgrest.json index aa04b72a039..84493481e65 100644 --- a/web/spec/postgrest.json +++ b/web/spec/postgrest.json @@ -6,7 +6,7 @@ "originalName": "", "children": [ { - "id": 420, + "id": 424, "name": "\"PostgrestClient\"", "kind": 1, "kindString": "Module", @@ -16,7 +16,7 @@ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/PostgrestClient.ts", "children": [ { - "id": 421, + "id": 425, "name": "PostgrestClient", "kind": 128, "kindString": "Class", @@ -25,7 +25,7 @@ }, "children": [ { - "id": 428, + "id": 432, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -37,7 +37,7 @@ }, "signatures": [ { - "id": 429, + "id": 433, "name": "new PostgrestClient", "kind": 16384, "kindString": "Constructor signature", @@ -49,7 +49,7 @@ }, "parameters": [ { - "id": 430, + "id": 434, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -65,7 +65,7 @@ } }, { - "id": 431, + "id": 435, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -76,7 +76,7 @@ "type": { "type": "reflection", "declaration": { - "id": 432, + "id": 436, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -85,7 +85,7 @@ }, "children": [ { - "id": 433, + "id": 437, "name": "headers", "kind": 32, "kindString": "Variable", @@ -105,7 +105,7 @@ "type": { "type": "reflection", "declaration": { - "id": 434, + "id": 438, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -114,7 +114,7 @@ }, "indexSignature": [ { - "id": 435, + "id": 439, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -123,7 +123,7 @@ }, "parameters": [ { - "id": 436, + "id": 440, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -146,7 +146,7 @@ } }, { - "id": 437, + "id": 441, "name": "schema", "kind": 32, "kindString": "Variable", @@ -182,7 +182,7 @@ { "title": "Variables", "kind": 32, - "children": [433, 437] + "children": [437, 441] } ], "sources": [ @@ -199,7 +199,7 @@ ], "type": { "type": "reference", - "id": 421, + "id": 425, "name": "PostgrestClient" } } @@ -213,7 +213,7 @@ ] }, { - "id": 423, + "id": 427, "name": "headers", "kind": 1024, "kindString": "Property", @@ -230,7 +230,7 @@ "type": { "type": "reflection", "declaration": { - "id": 424, + "id": 428, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -239,7 +239,7 @@ }, "indexSignature": [ { - "id": 425, + "id": 429, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -248,7 +248,7 @@ }, "parameters": [ { - "id": 426, + "id": 430, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -278,7 +278,7 @@ } }, { - "id": 427, + "id": 431, "name": "schema", "kind": 1024, "kindString": "Property", @@ -308,7 +308,7 @@ } }, { - "id": 422, + "id": 426, "name": "url", "kind": 1024, "kindString": "Property", @@ -328,7 +328,7 @@ } }, { - "id": 438, + "id": 442, "name": "auth", "kind": 2048, "kindString": "Method", @@ -337,7 +337,7 @@ }, "signatures": [ { - "id": 439, + "id": 443, "name": "auth", "kind": 4096, "kindString": "Call signature", @@ -349,7 +349,7 @@ }, "parameters": [ { - "id": 440, + "id": 444, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -380,7 +380,7 @@ ] }, { - "id": 441, + "id": 445, "name": "from", "kind": 2048, "kindString": "Method", @@ -389,7 +389,7 @@ }, "signatures": [ { - "id": 442, + "id": 446, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -401,7 +401,7 @@ }, "typeParameter": [ { - "id": 443, + "id": 447, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -412,7 +412,7 @@ ], "parameters": [ { - "id": 444, + "id": 448, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -430,7 +430,7 @@ ], "type": { "type": "reference", - "id": 306, + "id": 310, "typeArguments": [ { "type": "typeParameter", @@ -454,7 +454,7 @@ ] }, { - "id": 445, + "id": 449, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -463,7 +463,7 @@ }, "signatures": [ { - "id": 446, + "id": 450, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -475,7 +475,7 @@ }, "typeParameter": [ { - "id": 447, + "id": 451, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -486,7 +486,7 @@ ], "parameters": [ { - "id": 448, + "id": 452, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -502,7 +502,7 @@ } }, { - "id": 449, + "id": 453, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -528,7 +528,7 @@ } }, { - "id": 450, + "id": 454, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -539,7 +539,7 @@ "type": { "type": "reflection", "declaration": { - "id": 451, + "id": 455, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -548,7 +548,7 @@ }, "children": [ { - "id": 452, + "id": 456, "name": "count", "kind": 32, "kindString": "Variable", @@ -593,7 +593,7 @@ { "title": "Variables", "kind": 32, - "children": [452] + "children": [456] } ], "sources": [ @@ -610,7 +610,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -638,17 +638,17 @@ { "title": "Constructors", "kind": 512, - "children": [428] + "children": [432] }, { "title": "Properties", "kind": 1024, - "children": [423, 427, 422] + "children": [427, 431, 426] }, { "title": "Methods", "kind": 2048, - "children": [438, 441, 445] + "children": [442, 445, 449] } ], "sources": [ @@ -664,7 +664,7 @@ { "title": "Classes", "kind": 128, - "children": [421] + "children": [425] } ], "sources": [ @@ -676,7 +676,7 @@ ] }, { - "id": 453, + "id": 457, "name": "\"index\"", "kind": 1, "kindString": "Module", @@ -693,7 +693,7 @@ ] }, { - "id": 114, + "id": 116, "name": "\"lib/PostgrestFilterBuilder\"", "kind": 1, "kindString": "Module", @@ -703,7 +703,7 @@ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestFilterBuilder.ts", "children": [ { - "id": 115, + "id": 117, "name": "PostgrestFilterBuilder", "kind": 128, "kindString": "Class", @@ -712,7 +712,7 @@ }, "typeParameter": [ { - "id": 116, + "id": 118, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -723,7 +723,7 @@ ], "children": [ { - "id": 289, + "id": 293, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -732,7 +732,7 @@ }, "signatures": [ { - "id": 290, + "id": 294, "name": "new PostgrestFilterBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -741,7 +741,7 @@ }, "parameters": [ { - "id": 291, + "id": 295, "name": "builder", "kind": 32768, "kindString": "Parameter", @@ -763,7 +763,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "name": "PostgrestFilterBuilder" }, "inheritedFrom": { @@ -787,7 +787,7 @@ } }, { - "id": 202, + "id": 204, "name": "adj", "kind": 1024, "kindString": "Property", @@ -811,13 +811,13 @@ ], "type": { "type": "reference", - "id": 198, + "id": 200, "name": "rangeAdjacent" }, "defaultValue": "this.rangeAdjacent" }, { - "id": 288, + "id": 292, "name": "body", "kind": 1024, "kindString": "Property", @@ -868,7 +868,7 @@ } }, { - "id": 177, + "id": 179, "name": "cd", "kind": 1024, "kindString": "Property", @@ -892,13 +892,13 @@ ], "type": { "type": "reference", - "id": 173, + "id": 175, "name": "containedBy" }, "defaultValue": "this.containedBy" }, { - "id": 172, + "id": 174, "name": "cs", "kind": 1024, "kindString": "Property", @@ -922,13 +922,13 @@ ], "type": { "type": "reference", - "id": 168, + "id": 170, "name": "contains" }, "defaultValue": "this.contains" }, { - "id": 283, + "id": 287, "name": "headers", "kind": 1024, "kindString": "Property", @@ -946,7 +946,7 @@ "type": { "type": "reflection", "declaration": { - "id": 284, + "id": 288, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -955,7 +955,7 @@ }, "indexSignature": [ { - "id": 285, + "id": 289, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -964,7 +964,7 @@ }, "parameters": [ { - "id": 286, + "id": 290, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -999,7 +999,7 @@ } }, { - "id": 281, + "id": 285, "name": "method", "kind": 1024, "kindString": "Property", @@ -1046,7 +1046,7 @@ } }, { - "id": 192, + "id": 194, "name": "nxl", "kind": 1024, "kindString": "Property", @@ -1070,13 +1070,13 @@ ], "type": { "type": "reference", - "id": 188, + "id": 190, "name": "rangeGte" }, "defaultValue": "this.rangeGte" }, { - "id": 197, + "id": 199, "name": "nxr", "kind": 1024, "kindString": "Property", @@ -1100,13 +1100,13 @@ ], "type": { "type": "reference", - "id": 193, + "id": 195, "name": "rangeLte" }, "defaultValue": "this.rangeLte" }, { - "id": 207, + "id": 209, "name": "ov", "kind": 1024, "kindString": "Property", @@ -1130,13 +1130,13 @@ ], "type": { "type": "reference", - "id": 203, + "id": 205, "name": "overlaps" }, "defaultValue": "this.overlaps" }, { - "id": 287, + "id": 291, "name": "schema", "kind": 1024, "kindString": "Property", @@ -1172,7 +1172,7 @@ } }, { - "id": 182, + "id": 184, "name": "sl", "kind": 1024, "kindString": "Property", @@ -1196,13 +1196,13 @@ ], "type": { "type": "reference", - "id": 178, + "id": 180, "name": "rangeLt" }, "defaultValue": "this.rangeLt" }, { - "id": 187, + "id": 189, "name": "sr", "kind": 1024, "kindString": "Property", @@ -1226,13 +1226,13 @@ ], "type": { "type": "reference", - "id": 183, + "id": 185, "name": "rangeGt" }, "defaultValue": "this.rangeGt" }, { - "id": 282, + "id": 286, "name": "url", "kind": 1024, "kindString": "Property", @@ -1258,7 +1258,7 @@ } }, { - "id": 173, + "id": 175, "name": "containedBy", "kind": 2048, "kindString": "Method", @@ -1267,7 +1267,7 @@ }, "signatures": [ { - "id": 174, + "id": 176, "name": "containedBy", "kind": 4096, "kindString": "Call signature", @@ -1279,7 +1279,7 @@ }, "parameters": [ { - "id": 175, + "id": 177, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -1299,7 +1299,7 @@ } }, { - "id": 176, + "id": 178, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -1357,7 +1357,7 @@ ] }, { - "id": 168, + "id": 170, "name": "contains", "kind": 2048, "kindString": "Method", @@ -1366,7 +1366,7 @@ }, "signatures": [ { - "id": 169, + "id": 171, "name": "contains", "kind": 4096, "kindString": "Call signature", @@ -1378,7 +1378,7 @@ }, "parameters": [ { - "id": 170, + "id": 172, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -1398,7 +1398,7 @@ } }, { - "id": 171, + "id": 173, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -1456,7 +1456,51 @@ ] }, { - "id": 128, + "id": 283, + "name": "csv", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 284, + "name": "csv", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set the response type to CSV." + }, + "type": { + "type": "intrinsic", + "name": "this" + }, + "inheritedFrom": { + "type": "reference", + "id": 91, + "name": "PostgrestTransformBuilder.csv" + } + } + ], + "sources": [ + { + "fileName": "lib/PostgrestTransformBuilder.ts", + "line": 100, + "character": 6 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 91, + "name": "PostgrestTransformBuilder.csv" + } + }, + { + "id": 130, "name": "eq", "kind": 2048, "kindString": "Method", @@ -1465,7 +1509,7 @@ }, "signatures": [ { - "id": 129, + "id": 131, "name": "eq", "kind": 4096, "kindString": "Call signature", @@ -1477,7 +1521,7 @@ }, "parameters": [ { - "id": 130, + "id": 132, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -1497,7 +1541,7 @@ } }, { - "id": 131, + "id": 133, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -1539,7 +1583,7 @@ ] }, { - "id": 244, + "id": 246, "name": "filter", "kind": 2048, "kindString": "Method", @@ -1548,7 +1592,7 @@ }, "signatures": [ { - "id": 245, + "id": 247, "name": "filter", "kind": 4096, "kindString": "Call signature", @@ -1560,7 +1604,7 @@ }, "parameters": [ { - "id": 246, + "id": 248, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -1580,7 +1624,7 @@ } }, { - "id": 247, + "id": 249, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -1592,12 +1636,12 @@ }, "type": { "type": "reference", - "id": 304, + "id": 308, "name": "FilterOperator" } }, { - "id": 248, + "id": 250, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -1628,7 +1672,7 @@ ] }, { - "id": 216, + "id": 218, "name": "fts", "kind": 2048, "kindString": "Method", @@ -1637,7 +1681,7 @@ }, "signatures": [ { - "id": 217, + "id": 219, "name": "fts", "kind": 4096, "kindString": "Call signature", @@ -1655,7 +1699,7 @@ }, "parameters": [ { - "id": 218, + "id": 220, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -1675,7 +1719,7 @@ } }, { - "id": 219, + "id": 221, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -1691,7 +1735,7 @@ } }, { - "id": 220, + "id": 222, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -1702,7 +1746,7 @@ "type": { "type": "reflection", "declaration": { - "id": 221, + "id": 223, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -1711,7 +1755,7 @@ }, "children": [ { - "id": 222, + "id": 224, "name": "config", "kind": 32, "kindString": "Variable", @@ -1747,7 +1791,7 @@ { "title": "Variables", "kind": 32, - "children": [222] + "children": [224] } ], "sources": [ @@ -1777,7 +1821,7 @@ ] }, { - "id": 136, + "id": 138, "name": "gt", "kind": 2048, "kindString": "Method", @@ -1786,7 +1830,7 @@ }, "signatures": [ { - "id": 137, + "id": 139, "name": "gt", "kind": 4096, "kindString": "Call signature", @@ -1798,7 +1842,7 @@ }, "parameters": [ { - "id": 138, + "id": 140, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -1818,7 +1862,7 @@ } }, { - "id": 139, + "id": 141, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -1860,7 +1904,7 @@ ] }, { - "id": 140, + "id": 142, "name": "gte", "kind": 2048, "kindString": "Method", @@ -1869,7 +1913,7 @@ }, "signatures": [ { - "id": 141, + "id": 143, "name": "gte", "kind": 4096, "kindString": "Call signature", @@ -1881,7 +1925,7 @@ }, "parameters": [ { - "id": 142, + "id": 144, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -1901,7 +1945,7 @@ } }, { - "id": 143, + "id": 145, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -1943,7 +1987,7 @@ ] }, { - "id": 156, + "id": 158, "name": "ilike", "kind": 2048, "kindString": "Method", @@ -1952,7 +1996,7 @@ }, "signatures": [ { - "id": 157, + "id": 159, "name": "ilike", "kind": 4096, "kindString": "Call signature", @@ -1964,7 +2008,7 @@ }, "parameters": [ { - "id": 158, + "id": 160, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -1984,7 +2028,7 @@ } }, { - "id": 159, + "id": 161, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -2015,7 +2059,7 @@ ] }, { - "id": 164, + "id": 166, "name": "in", "kind": 2048, "kindString": "Method", @@ -2024,7 +2068,7 @@ }, "signatures": [ { - "id": 165, + "id": 167, "name": "in", "kind": 4096, "kindString": "Call signature", @@ -2036,7 +2080,7 @@ }, "parameters": [ { - "id": 166, + "id": 168, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -2056,7 +2100,7 @@ } }, { - "id": 167, + "id": 169, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -2101,7 +2145,7 @@ ] }, { - "id": 160, + "id": 162, "name": "is", "kind": 2048, "kindString": "Method", @@ -2110,7 +2154,7 @@ }, "signatures": [ { - "id": 161, + "id": 163, "name": "is", "kind": 4096, "kindString": "Call signature", @@ -2122,7 +2166,7 @@ }, "parameters": [ { - "id": 162, + "id": 164, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -2142,7 +2186,7 @@ } }, { - "id": 163, + "id": 165, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -2182,7 +2226,7 @@ ] }, { - "id": 152, + "id": 154, "name": "like", "kind": 2048, "kindString": "Method", @@ -2191,7 +2235,7 @@ }, "signatures": [ { - "id": 153, + "id": 155, "name": "like", "kind": 4096, "kindString": "Call signature", @@ -2203,7 +2247,7 @@ }, "parameters": [ { - "id": 154, + "id": 156, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -2223,7 +2267,7 @@ } }, { - "id": 155, + "id": 157, "name": "pattern", "kind": 32768, "kindString": "Parameter", @@ -2254,7 +2298,7 @@ ] }, { - "id": 266, + "id": 268, "name": "limit", "kind": 2048, "kindString": "Method", @@ -2263,7 +2307,7 @@ }, "signatures": [ { - "id": 267, + "id": 269, "name": "limit", "kind": 4096, "kindString": "Call signature", @@ -2275,7 +2319,7 @@ }, "parameters": [ { - "id": 268, + "id": 270, "name": "count", "kind": 32768, "kindString": "Parameter", @@ -2291,7 +2335,7 @@ } }, { - "id": 269, + "id": 271, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -2302,7 +2346,7 @@ "type": { "type": "reflection", "declaration": { - "id": 270, + "id": 272, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2311,7 +2355,7 @@ }, "children": [ { - "id": 271, + "id": 273, "name": "foreignTable", "kind": 32, "kindString": "Variable", @@ -2347,7 +2391,7 @@ { "title": "Variables", "kind": 32, - "children": [271] + "children": [273] } ], "sources": [ @@ -2387,7 +2431,7 @@ } }, { - "id": 144, + "id": 146, "name": "lt", "kind": 2048, "kindString": "Method", @@ -2396,7 +2440,7 @@ }, "signatures": [ { - "id": 145, + "id": 147, "name": "lt", "kind": 4096, "kindString": "Call signature", @@ -2408,7 +2452,7 @@ }, "parameters": [ { - "id": 146, + "id": 148, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -2428,7 +2472,7 @@ } }, { - "id": 147, + "id": 149, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -2470,7 +2514,7 @@ ] }, { - "id": 148, + "id": 150, "name": "lte", "kind": 2048, "kindString": "Method", @@ -2479,7 +2523,7 @@ }, "signatures": [ { - "id": 149, + "id": 151, "name": "lte", "kind": 4096, "kindString": "Call signature", @@ -2491,7 +2535,7 @@ }, "parameters": [ { - "id": 150, + "id": 152, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -2511,7 +2555,7 @@ } }, { - "id": 151, + "id": 153, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -2553,7 +2597,7 @@ ] }, { - "id": 249, + "id": 251, "name": "match", "kind": 2048, "kindString": "Method", @@ -2562,7 +2606,7 @@ }, "signatures": [ { - "id": 250, + "id": 252, "name": "match", "kind": 4096, "kindString": "Call signature", @@ -2574,7 +2618,7 @@ }, "parameters": [ { - "id": 251, + "id": 253, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -2587,7 +2631,7 @@ "type": { "type": "reflection", "declaration": { - "id": 252, + "id": 254, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2596,7 +2640,7 @@ }, "indexSignature": [ { - "id": 253, + "id": 255, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -2605,7 +2649,7 @@ }, "parameters": [ { - "id": 254, + "id": 256, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -2650,7 +2694,7 @@ ] }, { - "id": 132, + "id": 134, "name": "neq", "kind": 2048, "kindString": "Method", @@ -2659,7 +2703,7 @@ }, "signatures": [ { - "id": 133, + "id": 135, "name": "neq", "kind": 4096, "kindString": "Call signature", @@ -2671,7 +2715,7 @@ }, "parameters": [ { - "id": 134, + "id": 136, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -2691,7 +2735,7 @@ } }, { - "id": 135, + "id": 137, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -2733,7 +2777,7 @@ ] }, { - "id": 117, + "id": 119, "name": "not", "kind": 2048, "kindString": "Method", @@ -2742,7 +2786,7 @@ }, "signatures": [ { - "id": 118, + "id": 120, "name": "not", "kind": 4096, "kindString": "Call signature", @@ -2754,7 +2798,7 @@ }, "parameters": [ { - "id": 119, + "id": 121, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -2774,7 +2818,7 @@ } }, { - "id": 120, + "id": 122, "name": "operator", "kind": 32768, "kindString": "Parameter", @@ -2786,12 +2830,12 @@ }, "type": { "type": "reference", - "id": 304, + "id": 308, "name": "FilterOperator" } }, { - "id": 121, + "id": 123, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -2822,7 +2866,7 @@ ] }, { - "id": 122, + "id": 124, "name": "or", "kind": 2048, "kindString": "Method", @@ -2831,7 +2875,7 @@ }, "signatures": [ { - "id": 123, + "id": 125, "name": "or", "kind": 4096, "kindString": "Call signature", @@ -2843,7 +2887,7 @@ }, "parameters": [ { - "id": 124, + "id": 126, "name": "filters", "kind": 32768, "kindString": "Parameter", @@ -2859,7 +2903,7 @@ } }, { - "id": 125, + "id": 127, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -2870,7 +2914,7 @@ "type": { "type": "reflection", "declaration": { - "id": 126, + "id": 128, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -2879,7 +2923,7 @@ }, "children": [ { - "id": 127, + "id": 129, "name": "foreignTable", "kind": 32, "kindString": "Variable", @@ -2915,7 +2959,7 @@ { "title": "Variables", "kind": 32, - "children": [127] + "children": [129] } ], "sources": [ @@ -2945,7 +2989,7 @@ ] }, { - "id": 258, + "id": 260, "name": "order", "kind": 2048, "kindString": "Method", @@ -2954,7 +2998,7 @@ }, "signatures": [ { - "id": 259, + "id": 261, "name": "order", "kind": 4096, "kindString": "Call signature", @@ -2966,7 +3010,7 @@ }, "parameters": [ { - "id": 260, + "id": 262, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -2986,7 +3030,7 @@ } }, { - "id": 261, + "id": 263, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -2997,7 +3041,7 @@ "type": { "type": "reflection", "declaration": { - "id": 262, + "id": 264, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3006,7 +3050,7 @@ }, "children": [ { - "id": 263, + "id": 265, "name": "ascending", "kind": 32, "kindString": "Variable", @@ -3030,7 +3074,7 @@ "defaultValue": "true" }, { - "id": 265, + "id": 267, "name": "foreignTable", "kind": 32, "kindString": "Variable", @@ -3062,7 +3106,7 @@ } }, { - "id": 264, + "id": 266, "name": "nullsFirst", "kind": 32, "kindString": "Variable", @@ -3090,7 +3134,7 @@ { "title": "Variables", "kind": 32, - "children": [263, 265, 264] + "children": [265, 267, 266] } ], "sources": [ @@ -3130,7 +3174,7 @@ } }, { - "id": 203, + "id": 205, "name": "overlaps", "kind": 2048, "kindString": "Method", @@ -3139,7 +3183,7 @@ }, "signatures": [ { - "id": 204, + "id": 206, "name": "overlaps", "kind": 4096, "kindString": "Call signature", @@ -3151,7 +3195,7 @@ }, "parameters": [ { - "id": 205, + "id": 207, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3171,7 +3215,7 @@ } }, { - "id": 206, + "id": 208, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -3225,7 +3269,7 @@ ] }, { - "id": 230, + "id": 232, "name": "phfts", "kind": 2048, "kindString": "Method", @@ -3234,7 +3278,7 @@ }, "signatures": [ { - "id": 231, + "id": 233, "name": "phfts", "kind": 4096, "kindString": "Call signature", @@ -3252,7 +3296,7 @@ }, "parameters": [ { - "id": 232, + "id": 234, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3272,7 +3316,7 @@ } }, { - "id": 233, + "id": 235, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -3288,7 +3332,7 @@ } }, { - "id": 234, + "id": 236, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -3299,7 +3343,7 @@ "type": { "type": "reflection", "declaration": { - "id": 235, + "id": 237, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3308,7 +3352,7 @@ }, "children": [ { - "id": 236, + "id": 238, "name": "config", "kind": 32, "kindString": "Variable", @@ -3344,7 +3388,7 @@ { "title": "Variables", "kind": 32, - "children": [236] + "children": [238] } ], "sources": [ @@ -3374,7 +3418,7 @@ ] }, { - "id": 223, + "id": 225, "name": "plfts", "kind": 2048, "kindString": "Method", @@ -3383,7 +3427,7 @@ }, "signatures": [ { - "id": 224, + "id": 226, "name": "plfts", "kind": 4096, "kindString": "Call signature", @@ -3401,7 +3445,7 @@ }, "parameters": [ { - "id": 225, + "id": 227, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3421,7 +3465,7 @@ } }, { - "id": 226, + "id": 228, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -3437,7 +3481,7 @@ } }, { - "id": 227, + "id": 229, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -3448,7 +3492,7 @@ "type": { "type": "reflection", "declaration": { - "id": 228, + "id": 230, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3457,7 +3501,7 @@ }, "children": [ { - "id": 229, + "id": 231, "name": "config", "kind": 32, "kindString": "Variable", @@ -3493,7 +3537,7 @@ { "title": "Variables", "kind": 32, - "children": [229] + "children": [231] } ], "sources": [ @@ -3523,7 +3567,7 @@ ] }, { - "id": 272, + "id": 274, "name": "range", "kind": 2048, "kindString": "Method", @@ -3532,7 +3576,7 @@ }, "signatures": [ { - "id": 273, + "id": 275, "name": "range", "kind": 4096, "kindString": "Call signature", @@ -3544,7 +3588,7 @@ }, "parameters": [ { - "id": 274, + "id": 276, "name": "from", "kind": 32768, "kindString": "Parameter", @@ -3560,7 +3604,7 @@ } }, { - "id": 275, + "id": 277, "name": "to", "kind": 32768, "kindString": "Parameter", @@ -3576,7 +3620,7 @@ } }, { - "id": 276, + "id": 278, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -3587,7 +3631,7 @@ "type": { "type": "reflection", "declaration": { - "id": 277, + "id": 279, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -3596,7 +3640,7 @@ }, "children": [ { - "id": 278, + "id": 280, "name": "foreignTable", "kind": 32, "kindString": "Variable", @@ -3632,7 +3676,7 @@ { "title": "Variables", "kind": 32, - "children": [278] + "children": [280] } ], "sources": [ @@ -3672,7 +3716,7 @@ } }, { - "id": 198, + "id": 200, "name": "rangeAdjacent", "kind": 2048, "kindString": "Method", @@ -3681,7 +3725,7 @@ }, "signatures": [ { - "id": 199, + "id": 201, "name": "rangeAdjacent", "kind": 4096, "kindString": "Call signature", @@ -3693,7 +3737,7 @@ }, "parameters": [ { - "id": 200, + "id": 202, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3713,7 +3757,7 @@ } }, { - "id": 201, + "id": 203, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -3744,7 +3788,7 @@ ] }, { - "id": 183, + "id": 185, "name": "rangeGt", "kind": 2048, "kindString": "Method", @@ -3753,7 +3797,7 @@ }, "signatures": [ { - "id": 184, + "id": 186, "name": "rangeGt", "kind": 4096, "kindString": "Call signature", @@ -3765,7 +3809,7 @@ }, "parameters": [ { - "id": 185, + "id": 187, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3785,7 +3829,7 @@ } }, { - "id": 186, + "id": 188, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -3816,7 +3860,7 @@ ] }, { - "id": 188, + "id": 190, "name": "rangeGte", "kind": 2048, "kindString": "Method", @@ -3825,7 +3869,7 @@ }, "signatures": [ { - "id": 189, + "id": 191, "name": "rangeGte", "kind": 4096, "kindString": "Call signature", @@ -3837,7 +3881,7 @@ }, "parameters": [ { - "id": 190, + "id": 192, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3857,7 +3901,7 @@ } }, { - "id": 191, + "id": 193, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -3888,7 +3932,7 @@ ] }, { - "id": 178, + "id": 180, "name": "rangeLt", "kind": 2048, "kindString": "Method", @@ -3897,7 +3941,7 @@ }, "signatures": [ { - "id": 179, + "id": 181, "name": "rangeLt", "kind": 4096, "kindString": "Call signature", @@ -3909,7 +3953,7 @@ }, "parameters": [ { - "id": 180, + "id": 182, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -3929,7 +3973,7 @@ } }, { - "id": 181, + "id": 183, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -3960,7 +4004,7 @@ ] }, { - "id": 193, + "id": 195, "name": "rangeLte", "kind": 2048, "kindString": "Method", @@ -3969,7 +4013,7 @@ }, "signatures": [ { - "id": 194, + "id": 196, "name": "rangeLte", "kind": 4096, "kindString": "Call signature", @@ -3981,7 +4025,7 @@ }, "parameters": [ { - "id": 195, + "id": 197, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4001,7 +4045,7 @@ } }, { - "id": 196, + "id": 198, "name": "range", "kind": 32768, "kindString": "Parameter", @@ -4032,7 +4076,7 @@ ] }, { - "id": 255, + "id": 257, "name": "select", "kind": 2048, "kindString": "Method", @@ -4041,7 +4085,7 @@ }, "signatures": [ { - "id": 256, + "id": 258, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -4053,7 +4097,7 @@ }, "parameters": [ { - "id": 257, + "id": 259, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -4095,7 +4139,7 @@ } }, { - "id": 279, + "id": 281, "name": "single", "kind": 2048, "kindString": "Method", @@ -4104,7 +4148,7 @@ }, "signatures": [ { - "id": 280, + "id": 282, "name": "single", "kind": 4096, "kindString": "Call signature", @@ -4152,7 +4196,7 @@ } }, { - "id": 208, + "id": 210, "name": "textSearch", "kind": 2048, "kindString": "Method", @@ -4161,7 +4205,7 @@ }, "signatures": [ { - "id": 209, + "id": 211, "name": "textSearch", "kind": 4096, "kindString": "Call signature", @@ -4173,7 +4217,7 @@ }, "parameters": [ { - "id": 210, + "id": 212, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4193,7 +4237,7 @@ } }, { - "id": 211, + "id": 213, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -4209,7 +4253,7 @@ } }, { - "id": 212, + "id": 214, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -4220,7 +4264,7 @@ "type": { "type": "reflection", "declaration": { - "id": 213, + "id": 215, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4229,7 +4273,7 @@ }, "children": [ { - "id": 214, + "id": 216, "name": "config", "kind": 32, "kindString": "Variable", @@ -4261,7 +4305,7 @@ } }, { - "id": 215, + "id": 217, "name": "type", "kind": 32, "kindString": "Variable", @@ -4306,7 +4350,7 @@ { "title": "Variables", "kind": 32, - "children": [214, 215] + "children": [216, 217] } ], "sources": [ @@ -4336,7 +4380,7 @@ ] }, { - "id": 292, + "id": 296, "name": "then", "kind": 2048, "kindString": "Method", @@ -4345,7 +4389,7 @@ }, "signatures": [ { - "id": 293, + "id": 297, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -4354,7 +4398,7 @@ }, "typeParameter": [ { - "id": 294, + "id": 298, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -4363,7 +4407,7 @@ } }, { - "id": 295, + "id": 299, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -4374,7 +4418,7 @@ ], "parameters": [ { - "id": 296, + "id": 300, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -4388,7 +4432,7 @@ { "type": "reflection", "declaration": { - "id": 297, + "id": 301, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4397,7 +4441,7 @@ }, "signatures": [ { - "id": 298, + "id": 302, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -4406,7 +4450,7 @@ }, "parameters": [ { - "id": 299, + "id": 303, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -4488,7 +4532,7 @@ } }, { - "id": 300, + "id": 304, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -4502,7 +4546,7 @@ { "type": "reflection", "declaration": { - "id": 301, + "id": 305, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4511,7 +4555,7 @@ }, "signatures": [ { - "id": 302, + "id": 306, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -4520,7 +4564,7 @@ }, "parameters": [ { - "id": 303, + "id": 307, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -4637,7 +4681,7 @@ } }, { - "id": 237, + "id": 239, "name": "wfts", "kind": 2048, "kindString": "Method", @@ -4646,7 +4690,7 @@ }, "signatures": [ { - "id": 238, + "id": 240, "name": "wfts", "kind": 4096, "kindString": "Call signature", @@ -4664,7 +4708,7 @@ }, "parameters": [ { - "id": 239, + "id": 241, "name": "column", "kind": 32768, "kindString": "Parameter", @@ -4684,7 +4728,7 @@ } }, { - "id": 240, + "id": 242, "name": "query", "kind": 32768, "kindString": "Parameter", @@ -4700,7 +4744,7 @@ } }, { - "id": 241, + "id": 243, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -4711,7 +4755,7 @@ "type": { "type": "reflection", "declaration": { - "id": 242, + "id": 244, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -4720,7 +4764,7 @@ }, "children": [ { - "id": 243, + "id": 245, "name": "config", "kind": 32, "kindString": "Variable", @@ -4756,7 +4800,7 @@ { "title": "Variables", "kind": 32, - "children": [243] + "children": [245] } ], "sources": [ @@ -4790,19 +4834,19 @@ { "title": "Constructors", "kind": 512, - "children": [289] + "children": [293] }, { "title": "Properties", "kind": 1024, - "children": [202, 288, 177, 172, 283, 281, 192, 197, 207, 287, 182, 187, 282] + "children": [204, 292, 179, 174, 287, 285, 194, 199, 209, 291, 184, 189, 286] }, { "title": "Methods", "kind": 2048, "children": [ - 173, 168, 128, 244, 216, 136, 140, 156, 164, 160, 152, 266, 144, 148, 249, 132, 117, - 122, 258, 203, 230, 223, 272, 198, 183, 188, 178, 193, 255, 279, 208, 292, 237 + 175, 170, 283, 130, 246, 218, 138, 142, 158, 166, 162, 154, 268, 146, 150, 251, 134, + 119, 124, 260, 205, 232, 225, 274, 200, 185, 190, 180, 195, 257, 281, 210, 296, 239 ] } ], @@ -4847,7 +4891,7 @@ ] }, { - "id": 304, + "id": 308, "name": "FilterOperator", "kind": 4194304, "kindString": "Type alias", @@ -4961,12 +5005,12 @@ { "title": "Classes", "kind": 128, - "children": [115] + "children": [117] }, { "title": "Type aliases", "kind": 4194304, - "children": [304] + "children": [308] } ], "sources": [ @@ -4978,7 +5022,7 @@ ] }, { - "id": 305, + "id": 309, "name": "\"lib/PostgrestQueryBuilder\"", "kind": 1, "kindString": "Module", @@ -4988,7 +5032,7 @@ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestQueryBuilder.ts", "children": [ { - "id": 306, + "id": 310, "name": "PostgrestQueryBuilder", "kind": 128, "kindString": "Class", @@ -4997,7 +5041,7 @@ }, "typeParameter": [ { - "id": 307, + "id": 311, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -5008,7 +5052,7 @@ ], "children": [ { - "id": 308, + "id": 312, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -5017,7 +5061,7 @@ }, "signatures": [ { - "id": 309, + "id": 313, "name": "new PostgrestQueryBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -5026,7 +5070,7 @@ }, "parameters": [ { - "id": 310, + "id": 314, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -5039,7 +5083,7 @@ } }, { - "id": 311, + "id": 315, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -5050,7 +5094,7 @@ "type": { "type": "reflection", "declaration": { - "id": 312, + "id": 316, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5059,7 +5103,7 @@ }, "children": [ { - "id": 313, + "id": 317, "name": "headers", "kind": 32, "kindString": "Variable", @@ -5076,7 +5120,7 @@ "type": { "type": "reflection", "declaration": { - "id": 314, + "id": 318, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5085,7 +5129,7 @@ }, "indexSignature": [ { - "id": 315, + "id": 319, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -5094,7 +5138,7 @@ }, "parameters": [ { - "id": 316, + "id": 320, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -5117,7 +5161,7 @@ } }, { - "id": 317, + "id": 321, "name": "schema", "kind": 32, "kindString": "Variable", @@ -5150,7 +5194,7 @@ { "title": "Variables", "kind": 32, - "children": [313, 317] + "children": [317, 321] } ], "sources": [ @@ -5167,7 +5211,7 @@ ], "type": { "type": "reference", - "id": 306, + "id": 310, "name": "PostgrestQueryBuilder" }, "overwrites": { @@ -5191,7 +5235,7 @@ } }, { - "id": 368, + "id": 372, "name": "body", "kind": 1024, "kindString": "Property", @@ -5242,7 +5286,7 @@ } }, { - "id": 363, + "id": 367, "name": "headers", "kind": 1024, "kindString": "Property", @@ -5260,7 +5304,7 @@ "type": { "type": "reflection", "declaration": { - "id": 364, + "id": 368, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5269,7 +5313,7 @@ }, "indexSignature": [ { - "id": 365, + "id": 369, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -5278,7 +5322,7 @@ }, "parameters": [ { - "id": 366, + "id": 370, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -5313,7 +5357,7 @@ } }, { - "id": 361, + "id": 365, "name": "method", "kind": 1024, "kindString": "Property", @@ -5360,7 +5404,7 @@ } }, { - "id": 367, + "id": 371, "name": "schema", "kind": 1024, "kindString": "Property", @@ -5396,7 +5440,7 @@ } }, { - "id": 362, + "id": 366, "name": "url", "kind": 1024, "kindString": "Property", @@ -5422,7 +5466,7 @@ } }, { - "id": 355, + "id": 359, "name": "delete", "kind": 2048, "kindString": "Method", @@ -5431,7 +5475,7 @@ }, "signatures": [ { - "id": 356, + "id": 360, "name": "delete", "kind": 4096, "kindString": "Call signature", @@ -5443,7 +5487,7 @@ }, "parameters": [ { - "id": 357, + "id": 361, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -5454,7 +5498,7 @@ "type": { "type": "reflection", "declaration": { - "id": 358, + "id": 362, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5463,7 +5507,7 @@ }, "children": [ { - "id": 360, + "id": 364, "name": "count", "kind": 32, "kindString": "Variable", @@ -5504,7 +5548,7 @@ "defaultValue": "null" }, { - "id": 359, + "id": 363, "name": "returning", "kind": 32, "kindString": "Variable", @@ -5541,7 +5585,7 @@ { "title": "Variables", "kind": 32, - "children": [360, 359] + "children": [364, 363] } ], "sources": [ @@ -5558,7 +5602,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -5578,7 +5622,7 @@ ] }, { - "id": 325, + "id": 329, "name": "insert", "kind": 2048, "kindString": "Method", @@ -5587,7 +5631,7 @@ }, "signatures": [ { - "id": 326, + "id": 330, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -5599,7 +5643,7 @@ }, "parameters": [ { - "id": 327, + "id": 331, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -5639,7 +5683,7 @@ } }, { - "id": 328, + "id": 332, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5657,7 +5701,7 @@ { "type": "reflection", "declaration": { - "id": 329, + "id": 333, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5666,7 +5710,7 @@ }, "children": [ { - "id": 331, + "id": 335, "name": "count", "kind": 32, "kindString": "Variable", @@ -5704,7 +5748,7 @@ } }, { - "id": 330, + "id": 334, "name": "returning", "kind": 32, "kindString": "Variable", @@ -5738,7 +5782,7 @@ { "title": "Variables", "kind": 32, - "children": [331, 330] + "children": [335, 334] } ] } @@ -5749,7 +5793,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -5760,7 +5804,7 @@ } }, { - "id": 332, + "id": 336, "name": "insert", "kind": 4096, "kindString": "Call signature", @@ -5777,7 +5821,7 @@ }, "parameters": [ { - "id": 333, + "id": 337, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -5814,7 +5858,7 @@ } }, { - "id": 334, + "id": 338, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -5832,7 +5876,7 @@ { "type": "reflection", "declaration": { - "id": 335, + "id": 339, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -5841,7 +5885,7 @@ }, "children": [ { - "id": 339, + "id": 343, "name": "count", "kind": 32, "kindString": "Variable", @@ -5879,7 +5923,7 @@ } }, { - "id": 337, + "id": 341, "name": "onConflict", "kind": 32, "kindString": "Variable", @@ -5909,7 +5953,7 @@ } }, { - "id": 338, + "id": 342, "name": "returning", "kind": 32, "kindString": "Variable", @@ -5939,7 +5983,7 @@ } }, { - "id": 336, + "id": 340, "name": "upsert", "kind": 32, "kindString": "Variable", @@ -5977,7 +6021,7 @@ { "title": "Variables", "kind": 32, - "children": [339, 337, 338, 336] + "children": [343, 341, 342, 340] } ] } @@ -5988,7 +6032,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -6018,7 +6062,7 @@ ] }, { - "id": 318, + "id": 322, "name": "select", "kind": 2048, "kindString": "Method", @@ -6027,7 +6071,7 @@ }, "signatures": [ { - "id": 319, + "id": 323, "name": "select", "kind": 4096, "kindString": "Call signature", @@ -6039,7 +6083,7 @@ }, "parameters": [ { - "id": 320, + "id": 324, "name": "columns", "kind": 32768, "kindString": "Parameter", @@ -6056,7 +6100,7 @@ "defaultValue": "\"*\"" }, { - "id": 321, + "id": 325, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -6067,7 +6111,7 @@ "type": { "type": "reflection", "declaration": { - "id": 322, + "id": 326, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6076,7 +6120,7 @@ }, "children": [ { - "id": 324, + "id": 328, "name": "count", "kind": 32, "kindString": "Variable", @@ -6117,7 +6161,7 @@ "defaultValue": "null" }, { - "id": 323, + "id": 327, "name": "head", "kind": 32, "kindString": "Variable", @@ -6145,7 +6189,7 @@ { "title": "Variables", "kind": 32, - "children": [324, 323] + "children": [328, 327] } ], "sources": [ @@ -6162,7 +6206,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -6182,7 +6226,7 @@ ] }, { - "id": 369, + "id": 373, "name": "then", "kind": 2048, "kindString": "Method", @@ -6191,7 +6235,7 @@ }, "signatures": [ { - "id": 370, + "id": 374, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -6200,7 +6244,7 @@ }, "typeParameter": [ { - "id": 371, + "id": 375, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -6209,7 +6253,7 @@ } }, { - "id": 372, + "id": 376, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -6220,7 +6264,7 @@ ], "parameters": [ { - "id": 373, + "id": 377, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -6234,7 +6278,7 @@ { "type": "reflection", "declaration": { - "id": 374, + "id": 378, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6243,7 +6287,7 @@ }, "signatures": [ { - "id": 375, + "id": 379, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -6252,7 +6296,7 @@ }, "parameters": [ { - "id": 376, + "id": 380, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -6334,7 +6378,7 @@ } }, { - "id": 377, + "id": 381, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -6348,7 +6392,7 @@ { "type": "reflection", "declaration": { - "id": 378, + "id": 382, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6357,7 +6401,7 @@ }, "signatures": [ { - "id": 379, + "id": 383, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -6366,7 +6410,7 @@ }, "parameters": [ { - "id": 380, + "id": 384, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -6483,7 +6527,7 @@ } }, { - "id": 348, + "id": 352, "name": "update", "kind": 2048, "kindString": "Method", @@ -6492,7 +6536,7 @@ }, "signatures": [ { - "id": 349, + "id": 353, "name": "update", "kind": 4096, "kindString": "Call signature", @@ -6504,7 +6548,7 @@ }, "parameters": [ { - "id": 350, + "id": 354, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -6526,7 +6570,7 @@ } }, { - "id": 351, + "id": 355, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -6537,7 +6581,7 @@ "type": { "type": "reflection", "declaration": { - "id": 352, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6546,7 +6590,7 @@ }, "children": [ { - "id": 354, + "id": 358, "name": "count", "kind": 32, "kindString": "Variable", @@ -6587,7 +6631,7 @@ "defaultValue": "null" }, { - "id": 353, + "id": 357, "name": "returning", "kind": 32, "kindString": "Variable", @@ -6624,7 +6668,7 @@ { "title": "Variables", "kind": 32, - "children": [354, 353] + "children": [358, 357] } ], "sources": [ @@ -6641,7 +6685,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -6661,7 +6705,7 @@ ] }, { - "id": 340, + "id": 344, "name": "upsert", "kind": 2048, "kindString": "Method", @@ -6670,7 +6714,7 @@ }, "signatures": [ { - "id": 341, + "id": 345, "name": "upsert", "kind": 4096, "kindString": "Call signature", @@ -6682,7 +6726,7 @@ }, "parameters": [ { - "id": 342, + "id": 346, "name": "values", "kind": 32768, "kindString": "Parameter", @@ -6722,7 +6766,7 @@ } }, { - "id": 343, + "id": 347, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -6733,7 +6777,7 @@ "type": { "type": "reflection", "declaration": { - "id": 344, + "id": 348, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -6742,7 +6786,7 @@ }, "children": [ { - "id": 347, + "id": 351, "name": "count", "kind": 32, "kindString": "Variable", @@ -6783,7 +6827,7 @@ "defaultValue": "null" }, { - "id": 345, + "id": 349, "name": "onConflict", "kind": 32, "kindString": "Variable", @@ -6815,7 +6859,7 @@ } }, { - "id": 346, + "id": 350, "name": "returning", "kind": 32, "kindString": "Variable", @@ -6852,7 +6896,7 @@ { "title": "Variables", "kind": 32, - "children": [347, 345, 346] + "children": [351, 349, 350] } ], "sources": [ @@ -6869,7 +6913,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -6893,17 +6937,17 @@ { "title": "Constructors", "kind": 512, - "children": [308] + "children": [312] }, { "title": "Properties", "kind": 1024, - "children": [368, 363, 361, 367, 362] + "children": [372, 367, 365, 371, 366] }, { "title": "Methods", "kind": 2048, - "children": [355, 325, 318, 369, 348, 340] + "children": [359, 329, 322, 373, 352, 344] } ], "sources": [ @@ -6951,7 +6995,7 @@ { "title": "Classes", "kind": 128, - "children": [306] + "children": [310] } ], "sources": [ @@ -6963,7 +7007,7 @@ ] }, { - "id": 381, + "id": 385, "name": "\"lib/PostgrestRpcBuilder\"", "kind": 1, "kindString": "Module", @@ -6973,7 +7017,7 @@ "originalName": "/home/runner/work/postgrest-js/postgrest-js/src/lib/PostgrestRpcBuilder.ts", "children": [ { - "id": 382, + "id": 386, "name": "PostgrestRpcBuilder", "kind": 128, "kindString": "Class", @@ -6982,7 +7026,7 @@ }, "typeParameter": [ { - "id": 383, + "id": 387, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -6993,7 +7037,7 @@ ], "children": [ { - "id": 384, + "id": 388, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -7002,7 +7046,7 @@ }, "signatures": [ { - "id": 385, + "id": 389, "name": "new PostgrestRpcBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -7011,7 +7055,7 @@ }, "parameters": [ { - "id": 386, + "id": 390, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -7024,7 +7068,7 @@ } }, { - "id": 387, + "id": 391, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -7035,7 +7079,7 @@ "type": { "type": "reflection", "declaration": { - "id": 388, + "id": 392, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7044,7 +7088,7 @@ }, "children": [ { - "id": 389, + "id": 393, "name": "headers", "kind": 32, "kindString": "Variable", @@ -7061,7 +7105,7 @@ "type": { "type": "reflection", "declaration": { - "id": 390, + "id": 394, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7070,7 +7114,7 @@ }, "indexSignature": [ { - "id": 391, + "id": 395, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -7079,7 +7123,7 @@ }, "parameters": [ { - "id": 392, + "id": 396, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7102,7 +7146,7 @@ } }, { - "id": 393, + "id": 397, "name": "schema", "kind": 32, "kindString": "Variable", @@ -7135,7 +7179,7 @@ { "title": "Variables", "kind": 32, - "children": [389, 393] + "children": [393, 397] } ], "sources": [ @@ -7152,7 +7196,7 @@ ], "type": { "type": "reference", - "id": 382, + "id": 386, "name": "PostgrestRpcBuilder" }, "overwrites": { @@ -7176,7 +7220,7 @@ } }, { - "id": 407, + "id": 411, "name": "body", "kind": 1024, "kindString": "Property", @@ -7227,7 +7271,7 @@ } }, { - "id": 402, + "id": 406, "name": "headers", "kind": 1024, "kindString": "Property", @@ -7245,7 +7289,7 @@ "type": { "type": "reflection", "declaration": { - "id": 403, + "id": 407, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7254,7 +7298,7 @@ }, "indexSignature": [ { - "id": 404, + "id": 408, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -7263,7 +7307,7 @@ }, "parameters": [ { - "id": 405, + "id": 409, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -7298,7 +7342,7 @@ } }, { - "id": 400, + "id": 404, "name": "method", "kind": 1024, "kindString": "Property", @@ -7345,7 +7389,7 @@ } }, { - "id": 406, + "id": 410, "name": "schema", "kind": 1024, "kindString": "Property", @@ -7381,7 +7425,7 @@ } }, { - "id": 401, + "id": 405, "name": "url", "kind": 1024, "kindString": "Property", @@ -7407,7 +7451,7 @@ } }, { - "id": 394, + "id": 398, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -7416,7 +7460,7 @@ }, "signatures": [ { - "id": 395, + "id": 399, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -7428,7 +7472,7 @@ }, "parameters": [ { - "id": 396, + "id": 400, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -7451,7 +7495,7 @@ } }, { - "id": 397, + "id": 401, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -7462,7 +7506,7 @@ "type": { "type": "reflection", "declaration": { - "id": 398, + "id": 402, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7471,7 +7515,7 @@ }, "children": [ { - "id": 399, + "id": 403, "name": "count", "kind": 32, "kindString": "Variable", @@ -7513,7 +7557,7 @@ { "title": "Variables", "kind": 32, - "children": [399] + "children": [403] } ], "sources": [ @@ -7530,7 +7574,7 @@ ], "type": { "type": "reference", - "id": 115, + "id": 117, "typeArguments": [ { "type": "typeParameter", @@ -7550,7 +7594,7 @@ ] }, { - "id": 408, + "id": 412, "name": "then", "kind": 2048, "kindString": "Method", @@ -7559,7 +7603,7 @@ }, "signatures": [ { - "id": 409, + "id": 413, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -7568,7 +7612,7 @@ }, "typeParameter": [ { - "id": 410, + "id": 414, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -7577,7 +7621,7 @@ } }, { - "id": 411, + "id": 415, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -7588,7 +7632,7 @@ ], "parameters": [ { - "id": 412, + "id": 416, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -7602,7 +7646,7 @@ { "type": "reflection", "declaration": { - "id": 413, + "id": 417, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7611,7 +7655,7 @@ }, "signatures": [ { - "id": 414, + "id": 418, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -7620,7 +7664,7 @@ }, "parameters": [ { - "id": 415, + "id": 419, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -7702,7 +7746,7 @@ } }, { - "id": 416, + "id": 420, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -7716,7 +7760,7 @@ { "type": "reflection", "declaration": { - "id": 417, + "id": 421, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -7725,7 +7769,7 @@ }, "signatures": [ { - "id": 418, + "id": 422, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -7734,7 +7778,7 @@ }, "parameters": [ { - "id": 419, + "id": 423, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -7855,17 +7899,17 @@ { "title": "Constructors", "kind": 512, - "children": [384] + "children": [388] }, { "title": "Properties", "kind": 1024, - "children": [407, 402, 400, 406, 401] + "children": [411, 406, 404, 410, 405] }, { "title": "Methods", "kind": 2048, - "children": [394, 408] + "children": [398, 412] } ], "sources": [ @@ -7913,7 +7957,7 @@ { "title": "Classes", "kind": 128, - "children": [382] + "children": [386] } ], "sources": [ @@ -7958,7 +8002,7 @@ ], "children": [ { - "id": 99, + "id": 101, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -7967,7 +8011,7 @@ }, "signatures": [ { - "id": 100, + "id": 102, "name": "new PostgrestTransformBuilder", "kind": 16384, "kindString": "Constructor signature", @@ -7976,7 +8020,7 @@ }, "parameters": [ { - "id": 101, + "id": 103, "name": "builder", "kind": 32768, "kindString": "Parameter", @@ -8022,7 +8066,7 @@ } }, { - "id": 98, + "id": 100, "name": "body", "kind": 1024, "kindString": "Property", @@ -8073,7 +8117,7 @@ } }, { - "id": 93, + "id": 95, "name": "headers", "kind": 1024, "kindString": "Property", @@ -8091,7 +8135,7 @@ "type": { "type": "reflection", "declaration": { - "id": 94, + "id": 96, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8100,7 +8144,7 @@ }, "indexSignature": [ { - "id": 95, + "id": 97, "name": "__index", "kind": 8192, "kindString": "Index signature", @@ -8109,7 +8153,7 @@ }, "parameters": [ { - "id": 96, + "id": 98, "name": "key", "kind": 32768, "kindString": "Parameter", @@ -8144,7 +8188,7 @@ } }, { - "id": 91, + "id": 93, "name": "method", "kind": 1024, "kindString": "Property", @@ -8191,7 +8235,7 @@ } }, { - "id": 97, + "id": 99, "name": "schema", "kind": 1024, "kindString": "Property", @@ -8227,7 +8271,7 @@ } }, { - "id": 92, + "id": 94, "name": "url", "kind": 1024, "kindString": "Property", @@ -8252,6 +8296,40 @@ "name": "PostgrestBuilder.url" } }, + { + "id": 91, + "name": "csv", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 92, + "name": "csv", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Set the response type to CSV." + }, + "type": { + "type": "intrinsic", + "name": "this" + } + } + ], + "sources": [ + { + "fileName": "lib/PostgrestTransformBuilder.ts", + "line": 100, + "character": 6 + } + ] + }, { "id": 76, "name": "limit", @@ -8790,7 +8868,7 @@ ] }, { - "id": 102, + "id": 104, "name": "then", "kind": 2048, "kindString": "Method", @@ -8799,7 +8877,7 @@ }, "signatures": [ { - "id": 103, + "id": 105, "name": "then", "kind": 4096, "kindString": "Call signature", @@ -8808,7 +8886,7 @@ }, "typeParameter": [ { - "id": 104, + "id": 106, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", @@ -8817,7 +8895,7 @@ } }, { - "id": 105, + "id": 107, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -8828,7 +8906,7 @@ ], "parameters": [ { - "id": 106, + "id": 108, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -8842,7 +8920,7 @@ { "type": "reflection", "declaration": { - "id": 107, + "id": 109, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8851,7 +8929,7 @@ }, "signatures": [ { - "id": 108, + "id": 110, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -8860,7 +8938,7 @@ }, "parameters": [ { - "id": 109, + "id": 111, "name": "value", "kind": 32768, "kindString": "Parameter", @@ -8942,7 +9020,7 @@ } }, { - "id": 110, + "id": 112, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -8956,7 +9034,7 @@ { "type": "reflection", "declaration": { - "id": 111, + "id": 113, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -8965,7 +9043,7 @@ }, "signatures": [ { - "id": 112, + "id": 114, "name": "__call", "kind": 4096, "kindString": "Call signature", @@ -8974,7 +9052,7 @@ }, "parameters": [ { - "id": 113, + "id": 115, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -9095,17 +9173,17 @@ { "title": "Constructors", "kind": 512, - "children": [99] + "children": [101] }, { "title": "Properties", "kind": 1024, - "children": [98, 93, 91, 97, 92] + "children": [100, 95, 93, 99, 94] }, { "title": "Methods", "kind": 2048, - "children": [76, 68, 82, 65, 89, 102] + "children": [91, 76, 68, 82, 65, 89, 104] } ], "sources": [ @@ -9131,7 +9209,7 @@ "extendedBy": [ { "type": "reference", - "id": 115, + "id": 117, "name": "PostgrestFilterBuilder" } ], @@ -9786,12 +9864,12 @@ }, { "type": "reference", - "id": 306, + "id": 310, "name": "PostgrestQueryBuilder" }, { "type": "reference", - "id": 382, + "id": 386, "name": "PostgrestRpcBuilder" } ], @@ -10598,7 +10676,7 @@ { "title": "Modules", "kind": 1, - "children": [420, 453, 114, 305, 381, 62, 1] + "children": [424, 457, 116, 309, 385, 62, 1] } ] } diff --git a/web/spec/realtime.json b/web/spec/realtime.json index 50f4b31cc73..b1ba76707aa 100644 --- a/web/spec/realtime.json +++ b/web/spec/realtime.json @@ -1,7717 +1,7972 @@ { - "id": 0, - "name": "@supabase/realtime-js", - "kind": 0, - "flags": {}, - "originalName": "", - "children": [ - { - "id": 194, - "name": "\"RealtimeClient\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts", - "children": [ - { - "id": 195, - "name": "RealtimeClient", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 226, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Initializes the Socket" - }, - "signatures": [ - { - "id": 227, - "name": "new RealtimeClient", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Initializes the Socket" - }, - "parameters": [ - { - "id": 228, - "name": "endPoint", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 229, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 301, - "name": "Options" - } - } - ], - "type": { - "type": "reference", - "id": 195, - "name": "RealtimeClient" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 65, - "character": 3 - } - ] - }, - { - "id": 196, - "name": "channels", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 36, - "character": 10 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 91, - "name": "RealtimeSubscription" - } - }, - "defaultValue": "[]" - }, - { - "id": 218, - "name": "conn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 52, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "WebSocket" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - }, - "defaultValue": "null" - }, - { - "id": 216, - "name": "decode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 50, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "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, - "name": "endPoint", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 37, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"\"" - }, - { - "id": 198, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 38, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 199, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 200, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 201, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 208, - "name": "heartbeatIntervalMs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 42, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "30000" - }, - { - "id": 210, - "name": "heartbeatTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 44, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "query", - "queryType": { - "type": "reference", - "name": "setInterval" - } - } - ], - "name": "ReturnType" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "defaultValue": "undefined" - }, - { - "id": 214, - "name": "logger", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 48, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - }, - "defaultValue": "noop" - }, - { - "id": 209, - "name": "longpollerTimeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 43, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "20000" - }, - { - "id": 202, - "name": "params", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 39, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 203, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 204, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 205, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 211, - "name": "pendingHeartbeatRef", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 45, - "character": 21 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - }, - "defaultValue": "null" - }, - { - "id": 217, - "name": "reconnectAfterMs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 51, - "character": 18 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 213, - "name": "reconnectTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 47, - "character": 16 - } - ], - "type": { - "type": "reference", - "id": 25, - "name": "Timer" - } - }, - { - "id": 212, - "name": "ref", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 46, - "character": 5 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "0" - }, - { - "id": 219, - "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", - "line": 54, - "character": 12 - } - ], - "type": { - "type": "reference", - "id": 170, - "name": "Serializer" - }, - "defaultValue": "new Serializer()" - }, - { - "id": 206, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 40, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "DEFAULT_TIMEOUT" - }, - { - "id": 207, - "name": "transport", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 41, - "character": 11 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": "WebSocket" - }, - { - "id": 288, - "name": "_appendParams", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 289, - "name": "_appendParams", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 290, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 291, - "name": "params", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 292, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 293, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 294, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 344, - "character": 44 - } - ] - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 344, - "character": 23 - } - ] - }, - { - "id": 295, - "name": "_flushSendBuffer", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 296, - "name": "_flushSendBuffer", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 354, - "character": 26 - } - ] - }, - { - "id": 280, - "name": "_onConnClose", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 281, - "name": "_onConnClose", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 282, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 324, - "character": 22 - } - ] - }, - { - "id": 283, - "name": "_onConnError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 284, - "name": "_onConnError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 285, - "name": "error", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "Error" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 332, - "character": 22 - } - ] - }, - { - "id": 278, - "name": "_onConnOpen", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 279, - "name": "_onConnOpen", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 316, - "character": 21 - } - ] - }, - { - "id": 297, - "name": "_resetHeartbeat", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 298, - "name": "_resetHeartbeat", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 361, - "character": 25 - } - ] - }, - { - "id": 299, - "name": "_sendHeartbeat", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 300, - "name": "_sendHeartbeat", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 370, - "character": 24 - } - ] - }, - { - "id": 286, - "name": "_triggerChanError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 287, - "name": "_triggerChanError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 338, - "character": 27 - } - ] - }, - { - "id": 263, - "name": "channel", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 264, - "name": "channel", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 265, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 266, - "name": "chanParams", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 267, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - } - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 91, - "name": "RealtimeSubscription" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 246, - "character": 9 - } - ] - }, - { - "id": 230, - "name": "connect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 231, - "name": "connect", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Connects the socket." - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 117, - "character": 9 - } - ] - }, - { - "id": 256, - "name": "connectionState", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 257, - "name": "connectionState", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Returns the current state of the socket." - }, - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "connecting" - }, - { - "type": "stringLiteral", - "value": "open" - }, - { - "type": "stringLiteral", - "value": "closing" - }, - { - "type": "stringLiteral", - "value": "closed" - } - ] - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 215, - "character": 17 - } - ] - }, - { - "id": 232, - "name": "disconnect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 233, - "name": "disconnect", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Disconnects the socket." - }, - "parameters": [ - { - "id": 234, - "name": "code", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "A numeric status code to send on disconnect." - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 235, - "name": "reason", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "A custom reason for the disconnect.\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 236, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 238, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 142, - "character": 40 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 237, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 142, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [238, 237] - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 142, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 139, - "character": 12 - } - ] - }, - { - "id": 274, - "name": "endPointURL", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 275, - "name": "endPointURL", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Returns the URL of the websocket." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 295, - "character": 13 - } - ] - }, - { - "id": 258, - "name": "isConnected", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 259, - "name": "isConnected", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Retuns `true` is the connection is open." - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 231, - "character": 13 - } - ] - }, - { - "id": 239, - "name": "log", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 240, - "name": "log", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Logs the message. Override `this.logger` for specialized logging." - }, - "parameters": [ - { - "id": 241, - "name": "kind", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 242, - "name": "msg", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 243, - "name": "data", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 164, - "character": 5 - } - ] - }, - { - "id": 276, - "name": "makeRef", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 277, - "name": "makeRef", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Return the next message ref, accounting for overflows" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 305, - "character": 9 - } - ] - }, - { - "id": 247, - "name": "onClose", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 248, - "name": "onClose", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Registers a callbacks for connection state change events.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen(() => console.log(\"Socket closed.\"))\n" - } - ] - }, - "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, - "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": 208, - "character": 11 - } - ] - }, - { - "id": 244, - "name": "onOpen", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 245, - "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": 246, - "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": 175, - "character": 8 - } - ] - }, - { - "id": 268, - "name": "push", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 269, - "name": "push", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 270, - "name": "data", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 319, - "name": "Message" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 252, - "character": 6 - } - ] - }, - { - "id": 260, - "name": "remove", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 261, - "name": "remove", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Removes a subscription from the socket." - }, - "parameters": [ - { - "id": 262, - "name": "channel", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "An open subscription.\n" - }, - "type": { - "type": "reference", - "id": 91, - "name": "RealtimeSubscription" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 240, - "character": 8 - } - ] - }, - { - "id": 221, - "name": "stateChangeCallbacks", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 223, - "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", - "line": 63, - "character": 9 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "never" - } - }, - "defaultValue": "[]" - }, - { - "id": 225, - "name": "message", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 64, - "character": 11 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "never" - } - }, - "defaultValue": "[]" - }, - { - "id": 222, - "name": "open", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 61, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "never" - } - }, - "defaultValue": "[]" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [223, 224, 225, 222] - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 55, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [226] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 196, 218, 216, 215, 197, 198, 208, 210, 214, 209, 202, 211, 217, 213, 212, 219, 220, - 206, 207 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 288, 295, 280, 283, 278, 297, 299, 286, 263, 230, 256, 232, 274, 258, 239, 276, 247, - 271, 250, 253, 244, 268, 260 - ] - }, - { - "title": "Object literals", - "kind": 2097152, - "children": [221] - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 35, - "character": 35 - } - ] - }, - { - "id": 319, - "name": "Message", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 26, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 320, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 322, - "name": "event", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 28, - "character": 7 - } - ], - "type": { - "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": [ - { - "title": "Variables", - "kind": 32, - "children": [322, 323, 324, 321] - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 26, - "character": 14 - } - ] - } - } - }, - { - "id": 301, - "name": "Options", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 14, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 302, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 309, - "name": "decode", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 21, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 308, - "name": "encode", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 20, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 311, - "name": "headers", - "kind": 32, - "kindString": "Variable", - "flags": { - "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": {}, - "indexSignature": [ - { - "id": 313, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 314, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 305, - "name": "heartbeatIntervalMs", - "kind": 32, - "kindString": "Variable", - "flags": { - "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": { - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 19, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 306, - "name": "longpollerTimeout", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 18, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 315, - "name": "params", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 24, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 316, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": [ - { - "id": 317, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 318, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 310, - "name": "reconnectAfterMs", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 22, - "character": 18 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 304, - "name": "timeout", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 16, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 303, - "name": "transport", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 15, - "character": 11 - } - ], - "type": { - "type": "reference", - "name": "WebSocket" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [309, 308, 311, 305, 307, 306, 315, 310, 304, 303] - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 14, - "character": 14 - } - ] - } - } - }, - { - "id": 325, - "name": "noop", - "kind": 64, - "kindString": "Function", - "flags": { - "isConst": true - }, - "signatures": [ - { - "id": 326, - "name": "noop", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 33, - "character": 10 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [195] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [319, 301] - }, - { - "title": "Functions", - "kind": 64, - "children": [325] - } - ], - "sources": [ - { - "fileName": "RealtimeClient.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 90, - "name": "\"RealtimeSubscription\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts", - "children": [ - { - "id": 91, - "name": "RealtimeSubscription", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 99, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 103, - "name": "new RealtimeSubscription", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 104, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 105, - "name": "params", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": "{}" - }, - { - "id": 106, - "name": "socket", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 195, - "name": "RealtimeClient" - } - } - ], - "type": { - "type": "reference", - "id": 91, - "name": "RealtimeSubscription" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 13, - "character": 25 - } - ] - }, - { - "id": 92, - "name": "bindings", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 7, - "character": 10 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "defaultValue": "[]" - }, - { - "id": 96, - "name": "joinPush", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 11, - "character": 10 - } - ], - "type": { - "type": "reference", - "id": 39, - "name": "Push" - } - }, - { - "id": 95, - "name": "joinedOnce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 10, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false" - }, - { - "id": 101, - "name": "params", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isConstructorProperty": true - }, - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 17, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 98, - "name": "pushBuffer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 13, - "character": 12 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 39, - "name": "Push" - } - }, - "defaultValue": "[]" - }, - { - "id": 97, - "name": "rejoinTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 12, - "character": 13 - } - ], - "type": { - "type": "reference", - "id": 25, - "name": "Timer" - } - }, - { - "id": 102, - "name": "socket", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isConstructorProperty": true - }, - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 18, - "character": 17 - } - ], - "type": { - "type": "reference", - "id": 195, - "name": "RealtimeClient" - } - }, - { - "id": 94, - "name": "state", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 9, - "character": 7 - } - ], - "type": { - "type": "reference", - "id": 7, - "name": "CHANNEL_STATES" - }, - "defaultValue": "CHANNEL_STATES.closed" - }, - { - "id": 93, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 8, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 100, - "name": "topic", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isConstructorProperty": true - }, - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 16, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 125, - "name": "canPush", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 126, - "name": "canPush", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 97, - "character": 9 - } - ] - }, - { - "id": 159, - "name": "isClosed", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 160, - "name": "isClosed", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 198, - "character": 10 - } - ] - }, - { - "id": 161, - "name": "isErrored", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 162, - "name": "isErrored", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 201, - "character": 11 - } - ] - }, - { - "id": 163, - "name": "isJoined", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 164, - "name": "isJoined", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 204, - "character": 10 - } - ] - }, - { - "id": 165, - "name": "isJoining", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 166, - "name": "isJoining", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "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", - "line": 210, - "character": 11 - } - ] - }, - { - "id": 140, - "name": "isMember", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 141, - "name": "isMember", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 142, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 151, - "character": 10 - } - ] - }, - { - "id": 143, - "name": "joinRef", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 144, - "name": "joinRef", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 155, - "character": 9 - } - ] - }, - { - "id": 122, - "name": "off", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 123, - "name": "off", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 124, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 93, - "character": 5 - } - ] - }, - { - "id": 118, - "name": "on", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 119, - "name": "on", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 120, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 121, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 89, - "character": 4 - } - ] - }, - { - "id": 112, - "name": "onClose", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 113, - "name": "onClose", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 114, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 81, - "character": 9 - } - ] - }, - { - "id": 115, - "name": "onError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 116, - "name": "onError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 117, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 85, - "character": 9 - } - ] - }, - { - "id": 135, - "name": "onMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 136, - "name": "onMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Overridable message hook", - "text": "Receives all events for specialized message handling before dispatching to the channel callbacks.\nMust return the payload, modified or unmodified.\n" - }, - "parameters": [ - { - "id": 137, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 138, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 139, - "name": "ref", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 147, - "character": 11 - } - ] - }, - { - "id": 127, - "name": "push", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 128, - "name": "push", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 129, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 13, - "name": "CHANNEL_EVENTS" - } - }, - { - "id": 130, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 131, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "this.timeout" - } - ], - "type": { - "type": "reference", - "id": 39, - "name": "Push" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 101, - "character": 6 - } - ] - }, - { - "id": 148, - "name": "rejoin", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 149, - "name": "rejoin", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 150, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "this.timeout" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 164, - "character": 8 - } - ] - }, - { - "id": 107, - "name": "rejoinUntilConnected", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 108, - "name": "rejoinUntilConnected", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 64, - "character": 22 - } - ] - }, - { - "id": 156, - "name": "replyEventName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 157, - "name": "replyEventName", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 158, - "name": "ref", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 194, - "character": 16 - } - ] - }, - { - "id": 145, - "name": "sendJoin", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 146, - "name": "sendJoin", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 147, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 159, - "character": 10 - } - ] - }, - { - "id": 109, - "name": "subscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 110, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 111, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "this.timeout" - } - ], - "type": { - "type": "reference", - "id": 39, - "name": "Push" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 71, - "character": 11 - } - ] - }, - { - "id": 151, - "name": "trigger", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 152, - "name": "trigger", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 153, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 154, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 155, - "name": "ref", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 171, - "character": 9 - } - ] - }, - { - "id": 132, - "name": "unsubscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 133, - "name": "unsubscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Leaves the channel", - "text": "Unsubscribes from server events, and instructs channel to terminate on server.\nTriggers onClose() hooks.\n\nTo receive leave acknowledgements, use the a `receive` hook to bind to the server ack, ie:\nchannel.unsubscribe().receive(\"ok\", () => alert(\"left!\") )\n" - }, - "parameters": [ - { - "id": 134, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "this.timeout" - } - ], - "type": { - "type": "reference", - "id": 39, - "name": "Push" - } - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 125, - "character": 13 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [99] - }, - { - "title": "Properties", - "kind": 1024, - "children": [92, 96, 95, 101, 98, 97, 102, 94, 93, 100] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 125, 159, 161, 163, 165, 167, 140, 143, 122, 118, 112, 115, 135, 127, 148, 107, 156, - 145, 109, 151, 132 - ] - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 6, - "character": 41 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [91] - } - ], - "sources": [ - { - "fileName": "RealtimeSubscription.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 413, - "name": "\"index\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/realtime-js/realtime-js/src/index.ts", - "sources": [ - { - "fileName": "index.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1, - "name": "\"lib/constants\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/constants.ts", - "children": [ - { - "id": 13, - "name": "CHANNEL_EVENTS", - "kind": 4, - "kindString": "Enumeration", - "flags": { - "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", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 27, - "character": 7 - } - ], - "defaultValue": "\"phx_leave\"" - }, - { - "id": 17, - "name": "reply", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 26, - "character": 7 - } - ], - "defaultValue": "\"phx_reply\"" - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [14, 15, 16, 18, 17] - } - ], - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 22, - "character": 26 - } - ] - }, - { - "id": 7, - "name": "CHANNEL_STATES", - "kind": 4, - "kindString": "Enumeration", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 8, - "name": "closed", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 15, - "character": 8 - } - ], - "defaultValue": "\"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, - "name": "closing", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 10, - "character": 9 - } - ], - "defaultValue": "2" - }, - { - "id": 3, - "name": "connecting", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 8, - "character": 12 - } - ], - "defaultValue": "0" - }, - { - "id": 4, - "name": "open", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 9, - "character": 6 - } - ], - "defaultValue": "1" - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [6, 5, 3, 4] - } - ], - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 7, - "character": 25 - } - ] - }, - { - "id": 19, - "name": "TRANSPORTS", - "kind": 4, - "kindString": "Enumeration", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 20, - "name": "websocket", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 31, - "character": 11 - } - ], - "defaultValue": "\"websocket\"" - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [20] - } - ], - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 30, - "character": 22 - } - ] - }, - { - "id": 22, - "name": "DEFAULT_TIMEOUT", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isConst": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 3, - "character": 28 - } - ], - "type": { - "type": "unknown", - "name": "10000" - }, - "defaultValue": "10000" - }, - { - "id": 21, - "name": "VSN", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isConst": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 1, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"1.0.0\"" - }, - { - "id": 23, - "name": "WS_CLOSE_NORMAL", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isConst": true - }, - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 5, - "character": 28 - } - ], - "type": { - "type": "unknown", - "name": "1000" - }, - "defaultValue": "1000" - } - ], - "groups": [ - { - "title": "Enumerations", - "kind": 4, - "children": [13, 7, 2, 19] - }, - { - "title": "Variables", - "kind": 32, - "children": [22, 21, 23] - } - ], - "sources": [ - { - "fileName": "lib/constants.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 38, - "name": "\"lib/push\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/push.ts", - "children": [ - { - "id": 39, - "name": "Push", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 52, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Initializes the Push" - }, - "signatures": [ - { - "id": 57, - "name": "new Push", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Initializes the Push" - }, - "parameters": [ - { - "id": 58, - "name": "channel", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The Channel" - }, - "type": { - "type": "reference", - "id": 91, - "name": "RealtimeSubscription" - } - }, - { - "id": 59, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The event, for example `\"phx_join\"`" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 60, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The payload, for example `{user_id: 123}`" - }, - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": "{}" - }, - { - "id": 61, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The push timeout in milliseconds\n" - }, - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "DEFAULT_TIMEOUT" - } - ], - "type": { - "type": "reference", - "id": 39, - "name": "Push" - } - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 16, - "character": 32 - } - ] - }, - { - "id": 53, - "name": "channel", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isConstructorProperty": true - }, - "comment": { - "shortText": "The Channel" - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 27, - "character": 18 - } - ], - "type": { - "type": "reference", - "id": 91, - "name": "RealtimeSubscription" - } - }, - { - "id": 54, - "name": "event", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isConstructorProperty": true - }, - "comment": { - "shortText": "The event, for example `\"phx_join\"`" - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 28, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 55, - "name": "payload", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isConstructorProperty": true - }, - "comment": { - "shortText": "The payload, for example `{user_id: 123}`" - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 29, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 47, - "name": "recHooks", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 12, - "character": 10 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reflection", - "declaration": { - "id": 48, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 50, - "name": "callback", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 14, - "character": 12 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 49, - "name": "status", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 13, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [50, 49] - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 12, - "character": 11 - } - ] - } - } - }, - "defaultValue": "[]" - }, - { - "id": 43, - "name": "receivedResp", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 8, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 44, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 46, - "name": "response", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 10, - "character": 12 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 45, - "name": "status", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 9, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [46, 45] - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 8, - "character": 15 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - }, - "defaultValue": "null" - }, - { - "id": 42, - "name": "ref", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 7, - "character": 5 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"\"" - }, - { - "id": 51, - "name": "refEvent", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 16, - "character": 10 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - }, - "defaultValue": "null" - }, - { - "id": 40, - "name": "sent", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 5, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false" - }, - { - "id": 56, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isConstructorProperty": true - }, - "comment": { - "shortText": "The push timeout in milliseconds\n" - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 30, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 41, - "name": "timeoutTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 6, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "defaultValue": "undefined" - }, - { - "id": 77, - "name": "_cancelRefEvent", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 78, - "name": "_cancelRefEvent", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 89, - "character": 25 - } - ] - }, - { - "id": 79, - "name": "_cancelTimeout", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 80, - "name": "_cancelTimeout", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 96, - "character": 24 - } - ] - }, - { - "id": 87, - "name": "_hasReceived", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 88, - "name": "_hasReceived", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 89, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "null" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 113, - "character": 22 - } - ] - }, - { - "id": 81, - "name": "_matchReceive", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 82, - "name": "_matchReceive", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 83, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "originalName": "__0", - "type": { - "type": "reflection", - "declaration": { - "id": 84, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 86, - "name": "response", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 103, - "character": 12 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 85, - "name": "status", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/push.ts", - "line": 102, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [86, 85] - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 101, - "character": 24 - } - ] - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 101, - "character": 23 - } - ] - }, - { - "id": 67, - "name": "receive", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 68, - "name": "receive", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 69, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 70, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "unknown", - "name": "this" - } - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 57, - "character": 9 - } - ] - }, - { - "id": 62, - "name": "resend", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 63, - "name": "resend", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 64, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 33, - "character": 8 - } - ] - }, - { - "id": 65, - "name": "send", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 66, - "name": "send", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 43, - "character": 6 - } - ] - }, - { - "id": 71, - "name": "startTimeout", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 72, - "name": "startTimeout", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 66, - "character": 14 - } - ] - }, - { - "id": 73, - "name": "trigger", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 74, - "name": "trigger", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 75, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 76, - "name": "response", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 85, - "character": 9 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [52] - }, - { - "title": "Properties", - "kind": 1024, - "children": [53, 54, 55, 47, 43, 42, 51, 40, 56, 41] - }, - { - "title": "Methods", - "kind": 2048, - "children": [77, 79, 87, 81, 67, 62, 65, 71, 73] - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 4, - "character": 25 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [39] - } - ], - "sources": [ - { - "fileName": "lib/push.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 169, - "name": "\"lib/serializer\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts", - "children": [ - { - "id": 170, - "name": "Serializer", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 171, - "name": "HEADER_LENGTH", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 5, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "1" - }, - { - "id": 176, - "name": "_binaryDecode", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 177, - "name": "_binaryDecode", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 178, - "name": "buffer", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "ArrayBuffer" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 179, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 182, - "name": "event", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 33, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 183, - "name": "payload", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 34, - "character": 11 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 180, - "name": "ref", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 31, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - } - }, - { - "id": 181, - "name": "topic", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 32, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [182, 183, 180, 181] - } - ] - } - } - } - ], - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 19, - "character": 23 - } - ] - }, - { - "id": 184, - "name": "_decodeBroadcast", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 185, - "name": "_decodeBroadcast", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 186, - "name": "buffer", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "ArrayBuffer" - } - }, - { - "id": 187, - "name": "view", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "DataView" - } - }, - { - "id": 188, - "name": "decoder", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "TextDecoder" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 189, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 192, - "name": "event", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 33, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 193, - "name": "payload", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 34, - "character": 11 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 190, - "name": "ref", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 31, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "null" - } - }, - { - "id": 191, - "name": "topic", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 32, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [192, 193, 190, 191] - } - ], - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 30, - "character": 4 - } - ] - } - } - } - ], - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 26, - "character": 26 - } - ] - }, - { - "id": 172, - "name": "decode", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 173, - "name": "decode", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 174, - "name": "rawPayload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "ArrayBuffer" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 175, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 7, - "character": 8 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [171] - }, - { - "title": "Methods", - "kind": 2048, - "children": [176, 184, 172] - } - ], - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 4, - "character": 31 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [170] - } - ], - "sources": [ - { - "fileName": "lib/serializer.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 24, - "name": "\"lib/timer\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/timer.ts", - "children": [ - { - "id": 25, - "name": "Timer", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Creates a timer that accepts a `timerCalc` function to perform calculated timeout retries, such as exponential backoff.", - "tags": [ - { - "tag": "example", - "text": "\n let reconnectTimer = new Timer(() => this.connect(), function(tries){\n return [1000, 5000, 10000][tries - 1] || 10000\n })\n reconnectTimer.scheduleTimeout() // fires after 1000\n reconnectTimer.scheduleTimeout() // fires after 5000\n reconnectTimer.reset()\n reconnectTimer.scheduleTimeout() // fires after 1000\n" - } - ] - }, - "children": [ - { - "id": 28, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 31, - "name": "new Timer", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 32, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 33, - "name": "timerCalc", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "reference", - "id": 25, - "name": "Timer" - } - } - ], - "sources": [ - { - "fileName": "lib/timer.ts", - "line": 15, - "character": 19 - } - ] - }, - { - "id": 29, - "name": "callback", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isConstructorProperty": true - }, - "sources": [ - { - "fileName": "lib/timer.ts", - "line": 17, - "character": 29 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 26, - "name": "timer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/timer.ts", - "line": 14, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "number" - }, - { - "type": "intrinsic", - "name": "undefined" - } - ] - }, - "defaultValue": "undefined" - }, - { - "id": 30, - "name": "timerCalc", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isConstructorProperty": true - }, - "sources": [ - { - "fileName": "lib/timer.ts", - "line": 17, - "character": 57 - } - ], - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 27, - "name": "tries", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/timer.ts", - "line": 15, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "0" - }, - { - "id": 34, - "name": "reset", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 35, - "name": "reset", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/timer.ts", - "line": 22, - "character": 7 - } - ] - }, - { - "id": 36, - "name": "scheduleTimeout", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 37, - "name": "scheduleTimeout", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "lib/timer.ts", - "line": 28, - "character": 17 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [28] - }, - { - "title": "Properties", - "kind": 1024, - "children": [29, 26, 30, 27] - }, - { - "title": "Methods", - "kind": 2048, - "children": [34, 36] - } - ], - "sources": [ - { - "fileName": "lib/timer.ts", - "line": 13, - "character": 26 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [25] - } - ], - "sources": [ - { - "fileName": "lib/timer.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 327, - "name": "\"lib/transformers\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts", - "children": [ - { - "id": 328, - "name": "PostgresTypes", - "kind": 4, - "kindString": "Enumeration", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Helpers to convert the change Payload into native JS types." - }, - "children": [ - { - "id": 329, - "name": "abstime", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 9, - "character": 9 - } - ], - "defaultValue": "\"abstime\"" - }, - { - "id": 330, - "name": "bool", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 10, - "character": 6 - } - ], - "defaultValue": "\"bool\"" - }, - { - "id": 331, - "name": "date", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 11, - "character": 6 - } - ], - "defaultValue": "\"date\"" - }, - { - "id": 332, - "name": "daterange", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 12, - "character": 11 - } - ], - "defaultValue": "\"daterange\"" - }, - { - "id": 333, - "name": "float4", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 13, - "character": 8 - } - ], - "defaultValue": "\"float4\"" - }, - { - "id": 334, - "name": "float8", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 14, - "character": 8 - } - ], - "defaultValue": "\"float8\"" - }, - { - "id": 335, - "name": "int2", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 15, - "character": 6 - } - ], - "defaultValue": "\"int2\"" - }, - { - "id": 336, - "name": "int4", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 16, - "character": 6 - } - ], - "defaultValue": "\"int4\"" - }, - { - "id": 337, - "name": "int4range", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 17, - "character": 11 - } - ], - "defaultValue": "\"int4range\"" - }, - { - "id": 338, - "name": "int8", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 18, - "character": 6 - } - ], - "defaultValue": "\"int8\"" - }, - { - "id": 339, - "name": "int8range", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 19, - "character": 11 - } - ], - "defaultValue": "\"int8range\"" - }, - { - "id": 340, - "name": "json", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 20, - "character": 6 - } - ], - "defaultValue": "\"json\"" - }, - { - "id": 341, - "name": "jsonb", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 21, - "character": 7 - } - ], - "defaultValue": "\"jsonb\"" - }, - { - "id": 342, - "name": "money", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 22, - "character": 7 - } - ], - "defaultValue": "\"money\"" - }, - { - "id": 343, - "name": "numeric", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 23, - "character": 9 - } - ], - "defaultValue": "\"numeric\"" - }, - { - "id": 344, - "name": "oid", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 24, - "character": 5 - } - ], - "defaultValue": "\"oid\"" - }, - { - "id": 345, - "name": "reltime", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 25, - "character": 9 - } - ], - "defaultValue": "\"reltime\"" - }, - { - "id": 346, - "name": "time", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 26, - "character": 6 - } - ], - "defaultValue": "\"time\"" - }, - { - "id": 347, - "name": "timestamp", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 27, - "character": 11 - } - ], - "defaultValue": "\"timestamp\"" - }, - { - "id": 348, - "name": "timestamptz", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 28, - "character": 13 - } - ], - "defaultValue": "\"timestamptz\"" - }, - { - "id": 349, - "name": "timetz", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 29, - "character": 8 - } - ], - "defaultValue": "\"timetz\"" - }, - { - "id": 350, - "name": "tsrange", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 30, - "character": 9 - } - ], - "defaultValue": "\"tsrange\"" - }, - { - "id": 351, - "name": "tstzrange", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 31, - "character": 11 - } - ], - "defaultValue": "\"tstzrange\"" - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [ - 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, - 346, 347, 348, 349, 350, 351 - ] - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 8, - "character": 25 - } - ] - }, - { - "id": 352, - "name": "Column", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 34, - "character": 11 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 353, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 354, - "name": "flags", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 35, - "character": 7 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - }, - { - "id": 355, - "name": "name", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 36, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 356, - "name": "type", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 37, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 357, - "name": "type_modifier", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 38, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [354, 355, 356, 357] - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 34, - "character": 13 - } - ] - } - } - }, - { - "id": 358, - "name": "Records", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 41, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 359, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": [ - { - "id": 360, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 361, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 41, - "character": 14 - } - ] - } - } - }, - { - "id": 378, - "name": "convertCell", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "comment": { - "shortText": "If the value of the cell is `null`, returns null.\nOtherwise converts the string value to the correct type.", - "tags": [ - { - "tag": "example", - "text": "convertCell('bool', 'true')\n//=> true" - }, - { - "tag": "example", - "text": "convertCell('int8', '10')\n//=> 10" - }, - { - "tag": "example", - "text": "convertCell('_int4', '{1,2,3,4}')\n//=> [1,2,3,4]\n" - } - ] - }, - "signatures": [ - { - "id": 379, - "name": "convertCell", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "If the value of the cell is `null`, returns null.\nOtherwise converts the string value to the correct type.", - "tags": [ - { - "tag": "example", - "text": "convertCell('bool', 'true')\n//=> true" - }, - { - "tag": "example", - "text": "convertCell('int8', '10')\n//=> 10" - }, - { - "tag": "example", - "text": "convertCell('_int4', '{1,2,3,4}')\n//=> [1,2,3,4]\n" - } - ] - }, - "parameters": [ - { - "id": 380, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A postgres column type" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 381, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The cell value\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 112, - "character": 24 - } - ] - }, - { - "id": 362, - "name": "convertChangeData", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "comment": { - "shortText": "Takes an array of columns and an object of string values then converts each string value\nto its mapped type.", - "tags": [ - { - "tag": "example", - "text": "convertChangeData([{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age:'33'}, {})\n//=>{ first_name: 'Paul', age: 33 }\n" - } - ] - }, - "signatures": [ - { - "id": 363, - "name": "convertChangeData", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Takes an array of columns and an object of string values then converts each string value\nto its mapped type.", - "tags": [ - { - "tag": "example", - "text": "convertChangeData([{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age:'33'}, {})\n//=>{ first_name: 'Paul', age: 33 }\n" - } - ] - }, - "parameters": [ - { - "id": 364, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 352, - "name": "Column" - } - } - }, - { - "id": 365, - "name": "records", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": {}, - "type": { - "type": "reference", - "id": 358, - "name": "Records" - } - }, - { - "id": 366, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The map of various options that can be applied to the mapper" - }, - "type": { - "type": "reflection", - "declaration": { - "id": 367, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 368, - "name": "skipTypes", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 60, - "character": 22 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [368] - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 60, - "character": 10 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 369, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 370, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 371, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - } - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 57, - "character": 30 - } - ] - }, - { - "id": 372, - "name": "convertColumn", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "comment": { - "shortText": "Converts the value of an individual column.", - "returns": "Useless information\n", - "tags": [ - { - "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33" - }, - { - "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n" - } - ] - }, - "signatures": [ - { - "id": 373, - "name": "convertColumn", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Converts the value of an individual column.", - "returns": "Useless information\n", - "tags": [ - { - "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33" - }, - { - "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n" - } - ] - }, - "parameters": [ - { - "id": 374, - "name": "columnName", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The column that you want to convert" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 375, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 352, - "name": "Column" - } - } - }, - { - "id": 376, - "name": "records", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The map of string values" - }, - "type": { - "type": "reference", - "id": 358, - "name": "Records" - } - }, - { - "id": 377, - "name": "skipTypes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "An array of types that should not be converted" - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 85, - "character": 26 - } - ] - }, - { - "id": 382, - "name": "noop", - "kind": 64, - "kindString": "Function", - "flags": { - "isConst": true - }, - "signatures": [ - { - "id": 383, - "name": "noop", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 384, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 183, - "character": 10 - } - ] - }, - { - "id": 406, - "name": "toArray", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "comment": { - "shortText": "Converts a Postgres Array into a native JS array", - "tags": [ - { - "tag": "example", - "text": "toArray('{1,2,3,4}', 'int4')\n//=> [1,2,3,4]" - }, - { - "tag": "example", - "text": "toArray('{}', 'int4')\n//=> []\n" - } - ] - }, - "signatures": [ - { - "id": 407, - "name": "toArray", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Converts a Postgres Array into a native JS array", - "tags": [ - { - "tag": "example", - "text": "toArray('{1,2,3,4}', 'int4')\n//=> [1,2,3,4]" - }, - { - "tag": "example", - "text": "toArray('{}', 'int4')\n//=> []\n" - } - ] - }, - "parameters": [ - { - "id": 408, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 409, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 225, - "character": 20 - } - ] - }, - { - "id": 385, - "name": "toBoolean", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "signatures": [ - { - "id": 386, - "name": "toBoolean", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 387, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "null" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 186, - "character": 22 - } - ] - }, - { - "id": 388, - "name": "toDate", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "signatures": [ - { - "id": 389, - "name": "toDate", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 390, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Date" - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 196, - "character": 19 - } - ] - }, - { - "id": 391, - "name": "toDateRange", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "signatures": [ - { - "id": 392, - "name": "toDateRange", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 393, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Date" - } - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 199, - "character": 24 - } - ] - }, - { - "id": 394, - "name": "toFloat", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "signatures": [ - { - "id": 395, - "name": "toFloat", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 396, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 203, - "character": 20 - } - ] - }, - { - "id": 397, - "name": "toInt", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "signatures": [ - { - "id": 398, - "name": "toInt", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 399, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 206, - "character": 18 - } - ] - }, - { - "id": 400, - "name": "toIntRange", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "signatures": [ - { - "id": 401, - "name": "toIntRange", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 402, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 209, - "character": 23 - } - ] - }, - { - "id": 403, - "name": "toJson", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "signatures": [ - { - "id": 404, - "name": "toJson", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 405, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 213, - "character": 19 - } - ] - }, - { - "id": 410, - "name": "toTimestampString", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "comment": { - "shortText": "Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\nSee https://github.com/supabase/supabase/issues/18", - "tags": [ - { - "tag": "example", - "text": "toTimestampString('2019-09-10 00:00:00')\n//=> '2019-09-10T00:00:00'\n" - } - ] - }, - "signatures": [ - { - "id": 411, - "name": "toTimestampString", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\nSee https://github.com/supabase/supabase/issues/18", - "tags": [ - { - "tag": "example", - "text": "toTimestampString('2019-09-10 00:00:00')\n//=> '2019-09-10T00:00:00'\n" - } - ] - }, - "parameters": [ - { - "id": 412, - "name": "stringValue", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 246, - "character": 30 - } - ] - } - ], - "groups": [ - { - "title": "Enumerations", - "kind": 4, - "children": [328] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [352, 358] - }, - { - "title": "Functions", - "kind": 64, - "children": [378, 362, 372, 382, 406, 385, 388, 391, 394, 397, 400, 403, 410] - } - ], - "sources": [ - { - "fileName": "lib/transformers.ts", - "line": 1, - "character": 0 - } - ] - } - ], - "groups": [ - { - "title": "Modules", - "kind": 1, - "children": [194, 90, 413, 1, 38, 169, 24, 327] - } - ] -} + "id": 0, + "name": "@supabase/realtime-js", + "kind": 0, + "flags": {}, + "originalName": "", + "children": [ + { + "id": 194, + "name": "\"RealtimeClient\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts", + "children": [ + { + "id": 195, + "name": "RealtimeClient", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 226, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Initializes the Socket" + }, + "signatures": [ + { + "id": 227, + "name": "new RealtimeClient", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Initializes the Socket" + }, + "parameters": [ + { + "id": 228, + "name": "endPoint", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 229, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 301, + "name": "Options" + } + } + ], + "type": { + "type": "reference", + "id": 195, + "name": "RealtimeClient" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 65, + "character": 3 + } + ] + }, + { + "id": 196, + "name": "channels", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 36, + "character": 10 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 91, + "name": "RealtimeSubscription" + } + }, + "defaultValue": "[]" + }, + { + "id": 218, + "name": "conn", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 52, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "WebSocket" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 216, + "name": "decode", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 50, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "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, + "name": "endPoint", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 37, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"\"" + }, + { + "id": 198, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 38, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 199, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 200, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 201, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 208, + "name": "heartbeatIntervalMs", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 42, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "30000" + }, + { + "id": 210, + "name": "heartbeatTimer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 44, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "query", + "queryType": { + "type": "reference", + "name": "setInterval" + } + } + ], + "name": "ReturnType" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "defaultValue": "undefined" + }, + { + "id": 214, + "name": "logger", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 48, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + }, + "defaultValue": "noop" + }, + { + "id": 209, + "name": "longpollerTimeout", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 43, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "20000" + }, + { + "id": 202, + "name": "params", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 39, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 203, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 204, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 205, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 211, + "name": "pendingHeartbeatRef", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 45, + "character": 21 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 217, + "name": "reconnectAfterMs", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 51, + "character": 18 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 213, + "name": "reconnectTimer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 47, + "character": 16 + } + ], + "type": { + "type": "reference", + "id": 25, + "name": "Timer" + } + }, + { + "id": 212, + "name": "ref", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 46, + "character": 5 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + }, + { + "id": 219, + "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", + "line": 54, + "character": 12 + } + ], + "type": { + "type": "reference", + "id": 170, + "name": "Serializer" + }, + "defaultValue": "new Serializer()" + }, + { + "id": 206, + "name": "timeout", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 40, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "DEFAULT_TIMEOUT" + }, + { + "id": 207, + "name": "transport", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 41, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": "WebSocket" + }, + { + "id": 288, + "name": "_appendParams", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 289, + "name": "_appendParams", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 290, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 291, + "name": "params", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 292, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 293, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 294, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 344, + "character": 44 + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 344, + "character": 23 + } + ] + }, + { + "id": 295, + "name": "_flushSendBuffer", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 296, + "name": "_flushSendBuffer", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 354, + "character": 26 + } + ] + }, + { + "id": 280, + "name": "_onConnClose", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 281, + "name": "_onConnClose", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 282, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 324, + "character": 22 + } + ] + }, + { + "id": 283, + "name": "_onConnError", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 284, + "name": "_onConnError", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 285, + "name": "error", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "Error" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 332, + "character": 22 + } + ] + }, + { + "id": 278, + "name": "_onConnOpen", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 279, + "name": "_onConnOpen", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 316, + "character": 21 + } + ] + }, + { + "id": 297, + "name": "_resetHeartbeat", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 298, + "name": "_resetHeartbeat", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 361, + "character": 25 + } + ] + }, + { + "id": 299, + "name": "_sendHeartbeat", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 300, + "name": "_sendHeartbeat", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 370, + "character": 24 + } + ] + }, + { + "id": 286, + "name": "_triggerChanError", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 287, + "name": "_triggerChanError", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 338, + "character": 27 + } + ] + }, + { + "id": 263, + "name": "channel", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 264, + "name": "channel", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 265, + "name": "topic", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 266, + "name": "chanParams", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 267, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + } + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 91, + "name": "RealtimeSubscription" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 246, + "character": 9 + } + ] + }, + { + "id": 230, + "name": "connect", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 231, + "name": "connect", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Connects the socket." + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 117, + "character": 9 + } + ] + }, + { + "id": 256, + "name": "connectionState", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 257, + "name": "connectionState", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Returns the current state of the socket." + }, + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "connecting" + }, + { + "type": "stringLiteral", + "value": "open" + }, + { + "type": "stringLiteral", + "value": "closing" + }, + { + "type": "stringLiteral", + "value": "closed" + } + ] + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 215, + "character": 17 + } + ] + }, + { + "id": 232, + "name": "disconnect", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 233, + "name": "disconnect", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Disconnects the socket." + }, + "parameters": [ + { + "id": 234, + "name": "code", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "A numeric status code to send on disconnect." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 235, + "name": "reason", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "A custom reason for the disconnect.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 236, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 238, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 142, + "character": 40 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 237, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 142, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 238, + 237 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 142, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 139, + "character": 12 + } + ] + }, + { + "id": 274, + "name": "endPointURL", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 275, + "name": "endPointURL", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Returns the URL of the websocket." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 295, + "character": 13 + } + ] + }, + { + "id": 258, + "name": "isConnected", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 259, + "name": "isConnected", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Retuns `true` is the connection is open." + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 231, + "character": 13 + } + ] + }, + { + "id": 239, + "name": "log", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 240, + "name": "log", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Logs the message. Override `this.logger` for specialized logging." + }, + "parameters": [ + { + "id": 241, + "name": "kind", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 242, + "name": "msg", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 243, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 164, + "character": 5 + } + ] + }, + { + "id": 276, + "name": "makeRef", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 277, + "name": "makeRef", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Return the next message ref, accounting for overflows" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 305, + "character": 9 + } + ] + }, + { + "id": 247, + "name": "onClose", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 248, + "name": "onClose", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Registers a callbacks for connection state change events.", + "tags": [ + { + "tag": "example", + "text": "\n socket.onOpen(() => console.log(\"Socket closed.\"))\n" + } + ] + }, + "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, + "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": 208, + "character": 11 + } + ] + }, + { + "id": 244, + "name": "onOpen", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 245, + "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": 246, + "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": 175, + "character": 8 + } + ] + }, + { + "id": 268, + "name": "push", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 269, + "name": "push", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 270, + "name": "data", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 319, + "name": "Message" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 252, + "character": 6 + } + ] + }, + { + "id": 260, + "name": "remove", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 261, + "name": "remove", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Removes a subscription from the socket." + }, + "parameters": [ + { + "id": 262, + "name": "channel", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "An open subscription.\n" + }, + "type": { + "type": "reference", + "id": 91, + "name": "RealtimeSubscription" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 240, + "character": 8 + } + ] + }, + { + "id": 221, + "name": "stateChangeCallbacks", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 223, + "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", + "line": 63, + "character": 9 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + }, + "defaultValue": "[]" + }, + { + "id": 225, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 64, + "character": 11 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + }, + "defaultValue": "[]" + }, + { + "id": 222, + "name": "open", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 61, + "character": 8 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "never" + } + }, + "defaultValue": "[]" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 223, + 224, + 225, + 222 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 55, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 226 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 196, + 218, + 216, + 215, + 197, + 198, + 208, + 210, + 214, + 209, + 202, + 211, + 217, + 213, + 212, + 219, + 220, + 206, + 207 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 288, + 295, + 280, + 283, + 278, + 297, + 299, + 286, + 263, + 230, + 256, + 232, + 274, + 258, + 239, + 276, + 247, + 271, + 250, + 253, + 244, + 268, + 260 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 221 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 35, + "character": 35 + } + ] + }, + { + "id": 319, + "name": "Message", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 26, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 320, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 322, + "name": "event", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 28, + "character": 7 + } + ], + "type": { + "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": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 322, + 323, + 324, + 321 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 26, + "character": 14 + } + ] + } + } + }, + { + "id": 301, + "name": "Options", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 14, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 302, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 309, + "name": "decode", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 21, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 308, + "name": "encode", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 20, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 311, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": { + "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": {}, + "indexSignature": [ + { + "id": 313, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 314, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 305, + "name": "heartbeatIntervalMs", + "kind": 32, + "kindString": "Variable", + "flags": { + "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": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 19, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 306, + "name": "longpollerTimeout", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 18, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 315, + "name": "params", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 24, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 316, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 317, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 318, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 310, + "name": "reconnectAfterMs", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 22, + "character": 18 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 304, + "name": "timeout", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 16, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 303, + "name": "transport", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 15, + "character": 11 + } + ], + "type": { + "type": "reference", + "name": "WebSocket" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 309, + 308, + 311, + 305, + 307, + 306, + 315, + 310, + 304, + 303 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 14, + "character": 14 + } + ] + } + } + }, + { + "id": 325, + "name": "noop", + "kind": 64, + "kindString": "Function", + "flags": { + "isConst": true + }, + "signatures": [ + { + "id": 326, + "name": "noop", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 33, + "character": 10 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 195 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 319, + 301 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 325 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeClient.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 90, + "name": "\"RealtimeSubscription\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeSubscription.ts", + "children": [ + { + "id": 91, + "name": "RealtimeSubscription", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 99, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 103, + "name": "new RealtimeSubscription", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 104, + "name": "topic", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 105, + "name": "params", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": "{}" + }, + { + "id": 106, + "name": "socket", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 195, + "name": "RealtimeClient" + } + } + ], + "type": { + "type": "reference", + "id": 91, + "name": "RealtimeSubscription" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 13, + "character": 25 + } + ] + }, + { + "id": 92, + "name": "bindings", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 7, + "character": 10 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + "defaultValue": "[]" + }, + { + "id": 96, + "name": "joinPush", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 11, + "character": 10 + } + ], + "type": { + "type": "reference", + "id": 39, + "name": "Push" + } + }, + { + "id": 95, + "name": "joinedOnce", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 10, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + }, + { + "id": 101, + "name": "params", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isConstructorProperty": true + }, + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 17, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 98, + "name": "pushBuffer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 13, + "character": 12 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 39, + "name": "Push" + } + }, + "defaultValue": "[]" + }, + { + "id": 97, + "name": "rejoinTimer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 12, + "character": 13 + } + ], + "type": { + "type": "reference", + "id": 25, + "name": "Timer" + } + }, + { + "id": 102, + "name": "socket", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isConstructorProperty": true + }, + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 18, + "character": 17 + } + ], + "type": { + "type": "reference", + "id": 195, + "name": "RealtimeClient" + } + }, + { + "id": 94, + "name": "state", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 9, + "character": 7 + } + ], + "type": { + "type": "reference", + "id": 7, + "name": "CHANNEL_STATES" + }, + "defaultValue": "CHANNEL_STATES.closed" + }, + { + "id": 93, + "name": "timeout", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 8, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 100, + "name": "topic", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isConstructorProperty": true + }, + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 16, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 125, + "name": "canPush", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 126, + "name": "canPush", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 97, + "character": 9 + } + ] + }, + { + "id": 159, + "name": "isClosed", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 160, + "name": "isClosed", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 198, + "character": 10 + } + ] + }, + { + "id": 161, + "name": "isErrored", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 162, + "name": "isErrored", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 201, + "character": 11 + } + ] + }, + { + "id": 163, + "name": "isJoined", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 164, + "name": "isJoined", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 204, + "character": 10 + } + ] + }, + { + "id": 165, + "name": "isJoining", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 166, + "name": "isJoining", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "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", + "line": 210, + "character": 11 + } + ] + }, + { + "id": 140, + "name": "isMember", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 141, + "name": "isMember", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 142, + "name": "topic", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 151, + "character": 10 + } + ] + }, + { + "id": 143, + "name": "joinRef", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 144, + "name": "joinRef", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 155, + "character": 9 + } + ] + }, + { + "id": 122, + "name": "off", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 123, + "name": "off", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 124, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 93, + "character": 5 + } + ] + }, + { + "id": 118, + "name": "on", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 119, + "name": "on", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 120, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 121, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 89, + "character": 4 + } + ] + }, + { + "id": 112, + "name": "onClose", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 113, + "name": "onClose", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 114, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 81, + "character": 9 + } + ] + }, + { + "id": 115, + "name": "onError", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 116, + "name": "onError", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 117, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 85, + "character": 9 + } + ] + }, + { + "id": 135, + "name": "onMessage", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 136, + "name": "onMessage", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Overridable message hook", + "text": "Receives all events for specialized message handling before dispatching to the channel callbacks.\nMust return the payload, modified or unmodified.\n" + }, + "parameters": [ + { + "id": 137, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 138, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 139, + "name": "ref", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 147, + "character": 11 + } + ] + }, + { + "id": 127, + "name": "push", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 128, + "name": "push", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 129, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 13, + "name": "CHANNEL_EVENTS" + } + }, + { + "id": 130, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 131, + "name": "timeout", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "this.timeout" + } + ], + "type": { + "type": "reference", + "id": 39, + "name": "Push" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 101, + "character": 6 + } + ] + }, + { + "id": 148, + "name": "rejoin", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 149, + "name": "rejoin", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 150, + "name": "timeout", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "this.timeout" + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 164, + "character": 8 + } + ] + }, + { + "id": 107, + "name": "rejoinUntilConnected", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 108, + "name": "rejoinUntilConnected", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 64, + "character": 22 + } + ] + }, + { + "id": 156, + "name": "replyEventName", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 157, + "name": "replyEventName", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 158, + "name": "ref", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 194, + "character": 16 + } + ] + }, + { + "id": 145, + "name": "sendJoin", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 146, + "name": "sendJoin", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 147, + "name": "timeout", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 159, + "character": 10 + } + ] + }, + { + "id": 109, + "name": "subscribe", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 110, + "name": "subscribe", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 111, + "name": "timeout", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "this.timeout" + } + ], + "type": { + "type": "reference", + "id": 39, + "name": "Push" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 71, + "character": 11 + } + ] + }, + { + "id": 151, + "name": "trigger", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 152, + "name": "trigger", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 153, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 154, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 155, + "name": "ref", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 171, + "character": 9 + } + ] + }, + { + "id": 132, + "name": "unsubscribe", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 133, + "name": "unsubscribe", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Leaves the channel", + "text": "Unsubscribes from server events, and instructs channel to terminate on server.\nTriggers onClose() hooks.\n\nTo receive leave acknowledgements, use the a `receive` hook to bind to the server ack, ie:\nchannel.unsubscribe().receive(\"ok\", () => alert(\"left!\") )\n" + }, + "parameters": [ + { + "id": 134, + "name": "timeout", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "this.timeout" + } + ], + "type": { + "type": "reference", + "id": 39, + "name": "Push" + } + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 125, + "character": 13 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 99 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 92, + 96, + 95, + 101, + 98, + 97, + 102, + 94, + 93, + 100 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 125, + 159, + 161, + 163, + 165, + 167, + 140, + 143, + 122, + 118, + 112, + 115, + 135, + 127, + 148, + 107, + 156, + 145, + 109, + 151, + 132 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 6, + "character": 41 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 91 + ] + } + ], + "sources": [ + { + "fileName": "RealtimeSubscription.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 413, + "name": "\"index\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/realtime-js/realtime-js/src/index.ts", + "sources": [ + { + "fileName": "index.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1, + "name": "\"lib/constants\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/constants.ts", + "children": [ + { + "id": 13, + "name": "CHANNEL_EVENTS", + "kind": 4, + "kindString": "Enumeration", + "flags": { + "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", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 27, + "character": 7 + } + ], + "defaultValue": "\"phx_leave\"" + }, + { + "id": 17, + "name": "reply", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 26, + "character": 7 + } + ], + "defaultValue": "\"phx_reply\"" + } + ], + "groups": [ + { + "title": "Enumeration members", + "kind": 16, + "children": [ + 14, + 15, + 16, + 18, + 17 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 22, + "character": 26 + } + ] + }, + { + "id": 7, + "name": "CHANNEL_STATES", + "kind": 4, + "kindString": "Enumeration", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 8, + "name": "closed", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 15, + "character": 8 + } + ], + "defaultValue": "\"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, + "name": "closing", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 10, + "character": 9 + } + ], + "defaultValue": "2" + }, + { + "id": 3, + "name": "connecting", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 8, + "character": 12 + } + ], + "defaultValue": "0" + }, + { + "id": 4, + "name": "open", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 9, + "character": 6 + } + ], + "defaultValue": "1" + } + ], + "groups": [ + { + "title": "Enumeration members", + "kind": 16, + "children": [ + 6, + 5, + 3, + 4 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 7, + "character": 25 + } + ] + }, + { + "id": 19, + "name": "TRANSPORTS", + "kind": 4, + "kindString": "Enumeration", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 20, + "name": "websocket", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 31, + "character": 11 + } + ], + "defaultValue": "\"websocket\"" + } + ], + "groups": [ + { + "title": "Enumeration members", + "kind": 16, + "children": [ + 20 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 30, + "character": 22 + } + ] + }, + { + "id": 22, + "name": "DEFAULT_TIMEOUT", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 3, + "character": 28 + } + ], + "type": { + "type": "unknown", + "name": "10000" + }, + "defaultValue": "10000" + }, + { + "id": 21, + "name": "VSN", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 1, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"1.0.0\"" + }, + { + "id": 23, + "name": "WS_CLOSE_NORMAL", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 5, + "character": 28 + } + ], + "type": { + "type": "unknown", + "name": "1000" + }, + "defaultValue": "1000" + } + ], + "groups": [ + { + "title": "Enumerations", + "kind": 4, + "children": [ + 13, + 7, + 2, + 19 + ] + }, + { + "title": "Variables", + "kind": 32, + "children": [ + 22, + 21, + 23 + ] + } + ], + "sources": [ + { + "fileName": "lib/constants.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 38, + "name": "\"lib/push\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/push.ts", + "children": [ + { + "id": 39, + "name": "Push", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 52, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Initializes the Push" + }, + "signatures": [ + { + "id": 57, + "name": "new Push", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Initializes the Push" + }, + "parameters": [ + { + "id": 58, + "name": "channel", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The Channel" + }, + "type": { + "type": "reference", + "id": 91, + "name": "RealtimeSubscription" + } + }, + { + "id": 59, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The event, for example `\"phx_join\"`" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 60, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The payload, for example `{user_id: 123}`" + }, + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": "{}" + }, + { + "id": 61, + "name": "timeout", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The push timeout in milliseconds\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "DEFAULT_TIMEOUT" + } + ], + "type": { + "type": "reference", + "id": 39, + "name": "Push" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 16, + "character": 32 + } + ] + }, + { + "id": 53, + "name": "channel", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isConstructorProperty": true + }, + "comment": { + "shortText": "The Channel" + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 27, + "character": 18 + } + ], + "type": { + "type": "reference", + "id": 91, + "name": "RealtimeSubscription" + } + }, + { + "id": 54, + "name": "event", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isConstructorProperty": true + }, + "comment": { + "shortText": "The event, for example `\"phx_join\"`" + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 28, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 55, + "name": "payload", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isConstructorProperty": true + }, + "comment": { + "shortText": "The payload, for example `{user_id: 123}`" + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 29, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 47, + "name": "recHooks", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 12, + "character": 10 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reflection", + "declaration": { + "id": 48, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 50, + "name": "callback", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 14, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 49, + "name": "status", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 13, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 50, + 49 + ] + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 12, + "character": 11 + } + ] + } + } + }, + "defaultValue": "[]" + }, + { + "id": 43, + "name": "receivedResp", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 8, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 44, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 46, + "name": "response", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 10, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 45, + "name": "status", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 9, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 46, + 45 + ] + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 8, + "character": 15 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 42, + "name": "ref", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 7, + "character": 5 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"\"" + }, + { + "id": 51, + "name": "refEvent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 16, + "character": 10 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + }, + "defaultValue": "null" + }, + { + "id": 40, + "name": "sent", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 5, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + }, + { + "id": 56, + "name": "timeout", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isConstructorProperty": true + }, + "comment": { + "shortText": "The push timeout in milliseconds\n" + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 30, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 41, + "name": "timeoutTimer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 6, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "defaultValue": "undefined" + }, + { + "id": 77, + "name": "_cancelRefEvent", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 78, + "name": "_cancelRefEvent", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 89, + "character": 25 + } + ] + }, + { + "id": 79, + "name": "_cancelTimeout", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 80, + "name": "_cancelTimeout", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 96, + "character": 24 + } + ] + }, + { + "id": 87, + "name": "_hasReceived", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 88, + "name": "_hasReceived", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 89, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 113, + "character": 22 + } + ] + }, + { + "id": 81, + "name": "_matchReceive", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 82, + "name": "_matchReceive", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 83, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 84, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 86, + "name": "response", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 103, + "character": 12 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 85, + "name": "status", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/push.ts", + "line": 102, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 86, + 85 + ] + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 101, + "character": 24 + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 101, + "character": 23 + } + ] + }, + { + "id": 67, + "name": "receive", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 68, + "name": "receive", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 69, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 70, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "unknown", + "name": "this" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 57, + "character": 9 + } + ] + }, + { + "id": 62, + "name": "resend", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 63, + "name": "resend", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 64, + "name": "timeout", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 33, + "character": 8 + } + ] + }, + { + "id": 65, + "name": "send", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 66, + "name": "send", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 43, + "character": 6 + } + ] + }, + { + "id": 71, + "name": "startTimeout", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 72, + "name": "startTimeout", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 66, + "character": 14 + } + ] + }, + { + "id": 73, + "name": "trigger", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 74, + "name": "trigger", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 75, + "name": "status", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 76, + "name": "response", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 85, + "character": 9 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 52 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 53, + 54, + 55, + 47, + 43, + 42, + 51, + 40, + 56, + 41 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 77, + 79, + 87, + 81, + 67, + 62, + 65, + 71, + 73 + ] + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 4, + "character": 25 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 39 + ] + } + ], + "sources": [ + { + "fileName": "lib/push.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 169, + "name": "\"lib/serializer\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts", + "children": [ + { + "id": 170, + "name": "Serializer", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 171, + "name": "HEADER_LENGTH", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 5, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "1" + }, + { + "id": 176, + "name": "_binaryDecode", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 177, + "name": "_binaryDecode", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 178, + "name": "buffer", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "ArrayBuffer" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 179, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 182, + "name": "event", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 33, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 183, + "name": "payload", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 34, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 180, + "name": "ref", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 31, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + } + }, + { + "id": 181, + "name": "topic", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 32, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 182, + 183, + 180, + 181 + ] + } + ] + } + } + } + ], + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 19, + "character": 23 + } + ] + }, + { + "id": 184, + "name": "_decodeBroadcast", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 185, + "name": "_decodeBroadcast", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 186, + "name": "buffer", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "ArrayBuffer" + } + }, + { + "id": 187, + "name": "view", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "DataView" + } + }, + { + "id": 188, + "name": "decoder", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "TextDecoder" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 189, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 192, + "name": "event", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 33, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 193, + "name": "payload", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 34, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 190, + "name": "ref", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 31, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "null" + } + }, + { + "id": 191, + "name": "topic", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 32, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 192, + 193, + 190, + 191 + ] + } + ], + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 30, + "character": 4 + } + ] + } + } + } + ], + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 26, + "character": 26 + } + ] + }, + { + "id": 172, + "name": "decode", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 173, + "name": "decode", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 174, + "name": "rawPayload", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "ArrayBuffer" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 175, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 7, + "character": 8 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 171 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 176, + 184, + 172 + ] + } + ], + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 4, + "character": 31 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 170 + ] + } + ], + "sources": [ + { + "fileName": "lib/serializer.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 24, + "name": "\"lib/timer\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/timer.ts", + "children": [ + { + "id": 25, + "name": "Timer", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Creates a timer that accepts a `timerCalc` function to perform calculated timeout retries, such as exponential backoff.", + "tags": [ + { + "tag": "example", + "text": "\n let reconnectTimer = new Timer(() => this.connect(), function(tries){\n return [1000, 5000, 10000][tries - 1] || 10000\n })\n reconnectTimer.scheduleTimeout() // fires after 1000\n reconnectTimer.scheduleTimeout() // fires after 5000\n reconnectTimer.reset()\n reconnectTimer.scheduleTimeout() // fires after 1000\n" + } + ] + }, + "children": [ + { + "id": 28, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 31, + "name": "new Timer", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 32, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 33, + "name": "timerCalc", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "Function" + } + } + ], + "type": { + "type": "reference", + "id": 25, + "name": "Timer" + } + } + ], + "sources": [ + { + "fileName": "lib/timer.ts", + "line": 15, + "character": 19 + } + ] + }, + { + "id": 29, + "name": "callback", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isConstructorProperty": true + }, + "sources": [ + { + "fileName": "lib/timer.ts", + "line": 17, + "character": 29 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 26, + "name": "timer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/timer.ts", + "line": 14, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + "defaultValue": "undefined" + }, + { + "id": 30, + "name": "timerCalc", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isConstructorProperty": true + }, + "sources": [ + { + "fileName": "lib/timer.ts", + "line": 17, + "character": 57 + } + ], + "type": { + "type": "reference", + "name": "Function" + } + }, + { + "id": 27, + "name": "tries", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/timer.ts", + "line": 15, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + }, + { + "id": 34, + "name": "reset", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 35, + "name": "reset", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/timer.ts", + "line": 22, + "character": 7 + } + ] + }, + { + "id": 36, + "name": "scheduleTimeout", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 37, + "name": "scheduleTimeout", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "lib/timer.ts", + "line": 28, + "character": 17 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 28 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 29, + 26, + 30, + 27 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 34, + 36 + ] + } + ], + "sources": [ + { + "fileName": "lib/timer.ts", + "line": 13, + "character": 26 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 25 + ] + } + ], + "sources": [ + { + "fileName": "lib/timer.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 327, + "name": "\"lib/transformers\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts", + "children": [ + { + "id": 328, + "name": "PostgresTypes", + "kind": 4, + "kindString": "Enumeration", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Helpers to convert the change Payload into native JS types." + }, + "children": [ + { + "id": 329, + "name": "abstime", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 9, + "character": 9 + } + ], + "defaultValue": "\"abstime\"" + }, + { + "id": 330, + "name": "bool", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 10, + "character": 6 + } + ], + "defaultValue": "\"bool\"" + }, + { + "id": 331, + "name": "date", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 11, + "character": 6 + } + ], + "defaultValue": "\"date\"" + }, + { + "id": 332, + "name": "daterange", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 12, + "character": 11 + } + ], + "defaultValue": "\"daterange\"" + }, + { + "id": 333, + "name": "float4", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 13, + "character": 8 + } + ], + "defaultValue": "\"float4\"" + }, + { + "id": 334, + "name": "float8", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 14, + "character": 8 + } + ], + "defaultValue": "\"float8\"" + }, + { + "id": 335, + "name": "int2", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 15, + "character": 6 + } + ], + "defaultValue": "\"int2\"" + }, + { + "id": 336, + "name": "int4", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 16, + "character": 6 + } + ], + "defaultValue": "\"int4\"" + }, + { + "id": 337, + "name": "int4range", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 17, + "character": 11 + } + ], + "defaultValue": "\"int4range\"" + }, + { + "id": 338, + "name": "int8", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 18, + "character": 6 + } + ], + "defaultValue": "\"int8\"" + }, + { + "id": 339, + "name": "int8range", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 19, + "character": 11 + } + ], + "defaultValue": "\"int8range\"" + }, + { + "id": 340, + "name": "json", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 20, + "character": 6 + } + ], + "defaultValue": "\"json\"" + }, + { + "id": 341, + "name": "jsonb", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 21, + "character": 7 + } + ], + "defaultValue": "\"jsonb\"" + }, + { + "id": 342, + "name": "money", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 22, + "character": 7 + } + ], + "defaultValue": "\"money\"" + }, + { + "id": 343, + "name": "numeric", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 23, + "character": 9 + } + ], + "defaultValue": "\"numeric\"" + }, + { + "id": 344, + "name": "oid", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 24, + "character": 5 + } + ], + "defaultValue": "\"oid\"" + }, + { + "id": 345, + "name": "reltime", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 25, + "character": 9 + } + ], + "defaultValue": "\"reltime\"" + }, + { + "id": 346, + "name": "time", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 26, + "character": 6 + } + ], + "defaultValue": "\"time\"" + }, + { + "id": 347, + "name": "timestamp", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 27, + "character": 11 + } + ], + "defaultValue": "\"timestamp\"" + }, + { + "id": 348, + "name": "timestamptz", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 28, + "character": 13 + } + ], + "defaultValue": "\"timestamptz\"" + }, + { + "id": 349, + "name": "timetz", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 29, + "character": 8 + } + ], + "defaultValue": "\"timetz\"" + }, + { + "id": 350, + "name": "tsrange", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 30, + "character": 9 + } + ], + "defaultValue": "\"tsrange\"" + }, + { + "id": 351, + "name": "tstzrange", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 31, + "character": 11 + } + ], + "defaultValue": "\"tstzrange\"" + } + ], + "groups": [ + { + "title": "Enumeration members", + "kind": 16, + "children": [ + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351 + ] + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 8, + "character": 25 + } + ] + }, + { + "id": 352, + "name": "Column", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 34, + "character": 11 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 353, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 354, + "name": "flags", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 35, + "character": 7 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 355, + "name": "name", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 36, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 356, + "name": "type", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 37, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 357, + "name": "type_modifier", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 38, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 354, + 355, + 356, + 357 + ] + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 34, + "character": 13 + } + ] + } + } + }, + { + "id": 358, + "name": "Records", + "kind": 4194304, + "kindString": "Type alias", + "flags": {}, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 41, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 359, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 360, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 361, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 41, + "character": 14 + } + ] + } + } + }, + { + "id": 378, + "name": "convertCell", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "comment": { + "shortText": "If the value of the cell is `null`, returns null.\nOtherwise converts the string value to the correct type.", + "tags": [ + { + "tag": "example", + "text": "convertCell('bool', 'true')\n//=> true" + }, + { + "tag": "example", + "text": "convertCell('int8', '10')\n//=> 10" + }, + { + "tag": "example", + "text": "convertCell('_int4', '{1,2,3,4}')\n//=> [1,2,3,4]\n" + } + ] + }, + "signatures": [ + { + "id": 379, + "name": "convertCell", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "If the value of the cell is `null`, returns null.\nOtherwise converts the string value to the correct type.", + "tags": [ + { + "tag": "example", + "text": "convertCell('bool', 'true')\n//=> true" + }, + { + "tag": "example", + "text": "convertCell('int8', '10')\n//=> 10" + }, + { + "tag": "example", + "text": "convertCell('_int4', '{1,2,3,4}')\n//=> [1,2,3,4]\n" + } + ] + }, + "parameters": [ + { + "id": 380, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "A postgres column type" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 381, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The cell value\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 112, + "character": 24 + } + ] + }, + { + "id": 362, + "name": "convertChangeData", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "comment": { + "shortText": "Takes an array of columns and an object of string values then converts each string value\nto its mapped type.", + "tags": [ + { + "tag": "example", + "text": "convertChangeData([{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age:'33'}, {})\n//=>{ first_name: 'Paul', age: 33 }\n" + } + ] + }, + "signatures": [ + { + "id": 363, + "name": "convertChangeData", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Takes an array of columns and an object of string values then converts each string value\nto its mapped type.", + "tags": [ + { + "tag": "example", + "text": "convertChangeData([{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age:'33'}, {})\n//=>{ first_name: 'Paul', age: 33 }\n" + } + ] + }, + "parameters": [ + { + "id": 364, + "name": "columns", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 352, + "name": "Column" + } + } + }, + { + "id": 365, + "name": "records", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": {}, + "type": { + "type": "reference", + "id": 358, + "name": "Records" + } + }, + { + "id": 366, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The map of various options that can be applied to the mapper" + }, + "type": { + "type": "reflection", + "declaration": { + "id": 367, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 368, + "name": "skipTypes", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 60, + "character": 22 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 368 + ] + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 60, + "character": 10 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 369, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 370, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 371, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 57, + "character": 30 + } + ] + }, + { + "id": 372, + "name": "convertColumn", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "comment": { + "shortText": "Converts the value of an individual column.", + "returns": "Useless information\n", + "tags": [ + { + "tag": "example", + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33" + }, + { + "tag": "example", + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n" + } + ] + }, + "signatures": [ + { + "id": 373, + "name": "convertColumn", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Converts the value of an individual column.", + "returns": "Useless information\n", + "tags": [ + { + "tag": "example", + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], [])\n//=> 33" + }, + { + "tag": "example", + "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], ['Paul', '33'], ['int4'])\n//=> \"33\"\n" + } + ] + }, + "parameters": [ + { + "id": 374, + "name": "columnName", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The column that you want to convert" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 375, + "name": "columns", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 352, + "name": "Column" + } + } + }, + { + "id": 376, + "name": "records", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The map of string values" + }, + "type": { + "type": "reference", + "id": 358, + "name": "Records" + } + }, + { + "id": 377, + "name": "skipTypes", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "An array of types that should not be converted" + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 85, + "character": 26 + } + ] + }, + { + "id": 382, + "name": "noop", + "kind": 64, + "kindString": "Function", + "flags": { + "isConst": true + }, + "signatures": [ + { + "id": 383, + "name": "noop", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 384, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 183, + "character": 10 + } + ] + }, + { + "id": 406, + "name": "toArray", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "comment": { + "shortText": "Converts a Postgres Array into a native JS array", + "tags": [ + { + "tag": "example", + "text": "toArray('{1,2,3,4}', 'int4')\n//=> [1,2,3,4]" + }, + { + "tag": "example", + "text": "toArray('{}', 'int4')\n//=> []\n" + } + ] + }, + "signatures": [ + { + "id": 407, + "name": "toArray", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Converts a Postgres Array into a native JS array", + "tags": [ + { + "tag": "example", + "text": "toArray('{1,2,3,4}', 'int4')\n//=> [1,2,3,4]" + }, + { + "tag": "example", + "text": "toArray('{}', 'int4')\n//=> []\n" + } + ] + }, + "parameters": [ + { + "id": 408, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 409, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 225, + "character": 20 + } + ] + }, + { + "id": 385, + "name": "toBoolean", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "signatures": [ + { + "id": 386, + "name": "toBoolean", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 387, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 186, + "character": 22 + } + ] + }, + { + "id": 388, + "name": "toDate", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "signatures": [ + { + "id": 389, + "name": "toDate", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 390, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Date" + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 196, + "character": 19 + } + ] + }, + { + "id": 391, + "name": "toDateRange", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "signatures": [ + { + "id": 392, + "name": "toDateRange", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 393, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Date" + } + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 199, + "character": 24 + } + ] + }, + { + "id": 394, + "name": "toFloat", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "signatures": [ + { + "id": 395, + "name": "toFloat", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 396, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 203, + "character": 20 + } + ] + }, + { + "id": 397, + "name": "toInt", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "signatures": [ + { + "id": 398, + "name": "toInt", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 399, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 206, + "character": 18 + } + ] + }, + { + "id": 400, + "name": "toIntRange", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "signatures": [ + { + "id": 401, + "name": "toIntRange", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 402, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 209, + "character": 23 + } + ] + }, + { + "id": 403, + "name": "toJson", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "signatures": [ + { + "id": 404, + "name": "toJson", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 405, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 213, + "character": 19 + } + ] + }, + { + "id": 410, + "name": "toTimestampString", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "comment": { + "shortText": "Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\nSee https://github.com/supabase/supabase/issues/18", + "tags": [ + { + "tag": "example", + "text": "toTimestampString('2019-09-10 00:00:00')\n//=> '2019-09-10T00:00:00'\n" + } + ] + }, + "signatures": [ + { + "id": 411, + "name": "toTimestampString", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\nSee https://github.com/supabase/supabase/issues/18", + "tags": [ + { + "tag": "example", + "text": "toTimestampString('2019-09-10 00:00:00')\n//=> '2019-09-10T00:00:00'\n" + } + ] + }, + "parameters": [ + { + "id": 412, + "name": "stringValue", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 246, + "character": 30 + } + ] + } + ], + "groups": [ + { + "title": "Enumerations", + "kind": 4, + "children": [ + 328 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 352, + 358 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 378, + 362, + 372, + 382, + 406, + 385, + 388, + 391, + 394, + 397, + 400, + 403, + 410 + ] + } + ], + "sources": [ + { + "fileName": "lib/transformers.ts", + "line": 1, + "character": 0 + } + ] + } + ], + "groups": [ + { + "title": "Modules", + "kind": 1, + "children": [ + 194, + 90, + 413, + 1, + 38, + 169, + 24, + 327 + ] + } + ] +} \ No newline at end of file diff --git a/web/spec/storage.json b/web/spec/storage.json index 05a6226a5b4..620c6e099eb 100644 --- a/web/spec/storage.json +++ b/web/spec/storage.json @@ -1,5953 +1,7021 @@ { - "id": 0, - "name": "@supabase/storage-js", - "kind": 0, - "flags": {}, - "originalName": "", - "children": [ - { - "id": 231, - "name": "\"SupabaseStorageClient\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/storage-js/storage-js/src/SupabaseStorageClient.ts", - "children": [ - { - "id": 232, - "name": "SupabaseStorageClient", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 233, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 234, - "name": "new SupabaseStorageClient", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 235, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 236, - "name": "headers", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 237, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 238, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 239, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "SupabaseStorageClient.ts", - "line": 4, - "character": 35 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 232, - "name": "SupabaseStorageClient" - }, - "overwrites": { - "type": "reference", - "id": 93, - "name": "StorageBucketApi.__constructor" - } - } - ], - "sources": [ - { - "fileName": "SupabaseStorageClient.ts", - "line": 3, - "character": 61 - } - ], - "overwrites": { - "type": "reference", - "id": 93, - "name": "StorageBucketApi.__constructor" - } - }, - { - "id": 244, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 6, - "character": 19 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 245, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 246, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 247, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 6, - "character": 20 - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 89, - "name": "StorageBucketApi.headers" - } - }, - { - "id": 243, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 5, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 88, - "name": "StorageBucketApi.url" - } - }, - { - "id": 259, - "name": "createBucket", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 260, - "name": "createBucket", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Creates a new Storage bucket", - "returns": "newly created bucket id\n" - }, - "parameters": [ - { - "id": 261, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A unique identifier for the bucket you are creating." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 262, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 263, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 48 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 264, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 70 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [263, 264] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 42 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 111, - "name": "StorageBucketApi.createBucket" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 20 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 111, - "name": "StorageBucketApi.createBucket" - } - }, - { - "id": 273, - "name": "deleteBucket", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 274, - "name": "deleteBucket", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket." - }, - "parameters": [ - { - "id": 275, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The unique identifier of the bucket you would like to delete.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 276, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 277, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 78, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 278, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 279, - "name": "message", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 78, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [279] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 78, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 280, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 78, - "character": 54 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [277, 280] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 78, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 125, - "name": "StorageBucketApi.deleteBucket" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 76, - "character": 20 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 125, - "name": "StorageBucketApi.deleteBucket" - } - }, - { - "id": 265, - "name": "emptyBucket", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 266, - "name": "emptyBucket", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Removes all objects inside a single bucket." - }, - "parameters": [ - { - "id": 267, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The unique identifier of the bucket you would like to empty.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 268, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 269, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 61, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 270, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 271, - "name": "message", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 61, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [271] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 61, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 272, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 61, - "character": 54 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [269, 272] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 61, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 117, - "name": "StorageBucketApi.emptyBucket" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 59, - "character": 19 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 117, - "name": "StorageBucketApi.emptyBucket" - } - }, - { - "id": 240, - "name": "from", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 241, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Perform file operation in a bucket." - }, - "parameters": [ - { - "id": 242, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The bucket id to operate on.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 137, - "name": "StorageFileApi" - } - } - ], - "sources": [ - { - "fileName": "SupabaseStorageClient.ts", - "line": 13, - "character": 6 - } - ] - }, - { - "id": 253, - "name": "getBucket", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 254, - "name": "getBucket", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Retrieves the details of an existing Storage bucket." - }, - "parameters": [ - { - "id": 255, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The unique identifier of the bucket you would like to retrieve.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 256, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 257, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 45 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "Bucket" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 258, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 67 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [257, 258] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 39 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 105, - "name": "StorageBucketApi.getBucket" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 17 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 105, - "name": "StorageBucketApi.getBucket" - } - }, - { - "id": 248, - "name": "listBuckets", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 249, - "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": 250, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 251, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, - "character": 37 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "array", - "elementType": { - "type": "reference", - "id": 58, - "name": "Bucket" - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 252, - "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": [251, 252] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, - "character": 31 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 100, - "name": "StorageBucketApi.listBuckets" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, - "character": 19 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 100, - "name": "StorageBucketApi.listBuckets" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [233] - }, - { - "title": "Properties", - "kind": 1024, - "children": [244, 243] - }, - { - "title": "Methods", - "kind": 2048, - "children": [259, 273, 265, 240, 253, 248] - } - ], - "sources": [ - { - "fileName": "SupabaseStorageClient.ts", - "line": 3, - "character": 34 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 87, - "name": "StorageBucketApi" - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [232] - } - ], - "sources": [ - { - "fileName": "SupabaseStorageClient.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 281, - "name": "\"index\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/storage-js/storage-js/src/index.ts", - "children": [ - { - "id": 282, - "name": "Bucket", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 58 - }, - { - "id": 283, - "name": "FileObject", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 64 - }, - { - "id": 285, - "name": "FileOptions", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 78 - }, - { - "id": 287, - "name": "Metadata", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 84 - }, - { - "id": 286, - "name": "SearchOptions", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 80 - }, - { - "id": 284, - "name": "SortBy", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 75 - } - ], - "groups": [ - { - "title": "References", - "kind": 16777216, - "children": [282, 283, 285, 287, 286, 284] - } - ], - "sources": [ - { - "fileName": "index.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 86, - "name": "\"lib/StorageBucketApi\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageBucketApi.ts", - "children": [ - { - "id": 87, - "name": "StorageBucketApi", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 93, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 94, - "name": "new StorageBucketApi", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 95, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 96, - "name": "headers", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 97, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 98, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 99, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 8, - "character": 35 - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 87, - "name": "StorageBucketApi" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 6, - "character": 46 - } - ] - }, - { - "id": 89, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 6, - "character": 19 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 90, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 91, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 92, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 6, - "character": 20 - } - ] - } - } - }, - { - "id": 88, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 5, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 111, - "name": "createBucket", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 112, - "name": "createBucket", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Creates a new Storage bucket", - "returns": "newly created bucket id\n" - }, - "parameters": [ - { - "id": 113, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A unique identifier for the bucket you are creating." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 114, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 115, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 48 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 116, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 70 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [115, 116] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 42 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 45, - "character": 20 - } - ] - }, - { - "id": 125, - "name": "deleteBucket", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 126, - "name": "deleteBucket", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket." - }, - "parameters": [ - { - "id": 127, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The unique identifier of the bucket you would like to delete.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 128, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 129, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 78, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 130, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 131, - "name": "message", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 78, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [131] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 78, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 132, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 78, - "character": 54 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [129, 132] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 78, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 76, - "character": 20 - } - ] - }, - { - "id": 117, - "name": "emptyBucket", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 118, - "name": "emptyBucket", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Removes all objects inside a single bucket." - }, - "parameters": [ - { - "id": 119, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The unique identifier of the bucket you would like to empty.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 120, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 121, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 61, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 122, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 123, - "name": "message", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 61, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [123] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 61, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 124, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 61, - "character": 54 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [121, 124] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 61, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 59, - "character": 19 - } - ] - }, - { - "id": 105, - "name": "getBucket", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 106, - "name": "getBucket", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Retrieves the details of an existing Storage bucket." - }, - "parameters": [ - { - "id": 107, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The unique identifier of the bucket you would like to retrieve.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 108, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 109, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 45 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 58, - "name": "Bucket" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 110, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 67 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [109, 110] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 39 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 30, - "character": 17 - } - ] - }, - { - "id": 100, - "name": "listBuckets", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 101, - "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": 102, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 103, - "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": 104, - "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": [103, 104] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, - "character": 31 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 16, - "character": 19 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [93] - }, - { - "title": "Properties", - "kind": 1024, - "children": [89, 88] - }, - { - "title": "Methods", - "kind": 2048, - "children": [111, 125, 117, 105, 100] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 4, - "character": 29 - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 232, - "name": "SupabaseStorageClient" - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [87] - } - ], - "sources": [ - { - "fileName": "lib/StorageBucketApi.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 136, - "name": "\"lib/StorageFileApi\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageFileApi.ts", - "children": [ - { - "id": 137, - "name": "StorageFileApi", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 144, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 145, - "name": "new StorageFileApi", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 146, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 147, - "name": "headers", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 148, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 149, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 150, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 23, - "character": 35 - } - ] - } - }, - "defaultValue": "{}" - }, - { - "id": 151, - "name": "bucketId", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "reference", - "id": 137, - "name": "StorageFileApi" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 21, - "character": 29 - } - ] - }, - { - "id": 143, - "name": "bucketId", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 21, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 139, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 20, - "character": 19 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 140, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 141, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 142, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 20, - "character": 20 - } - ] - } - } - }, - { - "id": 138, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 19, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 211, - "name": "_getFinalPath", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 212, - "name": "_getFinalPath", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 213, - "name": "path", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 254, - "character": 15 - } - ] - }, - { - "id": 181, - "name": "createSignedUrl", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 182, - "name": "createSignedUrl", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds." - }, - "parameters": [ - { - "id": 183, - "name": "path", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The file path to be downloaded, including the current file name. For example `folder/image.png`." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 184, - "name": "expiresIn", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The number of seconds until the signed URL expires. For example, `60` for a URL which is valid for one minute.\n" - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 185, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 186, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 143, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 187, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 188, - "name": "signedURL", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 143, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [188] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 143, - "character": 9 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 189, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 144, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 190, - "name": "signedURL", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 145, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [186, 189, 190] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 142, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 139, - "character": 23 - } - ] - }, - { - "id": 191, - "name": "download", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 192, - "name": "download", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Downloads a file." - }, - "parameters": [ - { - "id": 193, - "name": "path", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 194, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 195, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 167, - "character": 46 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Blob" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 196, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 167, - "character": 66 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [195, 196] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 167, - "character": 40 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 167, - "character": 16 - } - ] - }, - { - "id": 203, - "name": "list", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 204, - "name": "list", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Lists all the files within a bucket." - }, - "parameters": [ - { - "id": 205, - "name": "path", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "The folder path." - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 206, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "Search options, including `limit`, `offset`, and `sortBy`." - }, - "type": { - "type": "reference", - "id": 80, - "name": "SearchOptions" - } - }, - { - "id": 207, - "name": "parameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "Fetch parameters, currently only supports `signal`, which is an AbortController's signal\n" - }, - "type": { - "type": "reference", - "id": 8, - "name": "FetchParameters" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 208, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 209, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 239, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "array", - "elementType": { - "type": "reference", - "id": 64, - "name": "FileObject" - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 210, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 239, - "character": 47 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [209, 210] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 239, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 235, - "character": 12 - } - ] - }, - { - "id": 172, - "name": "move", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 173, - "name": "move", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Moves an existing file, optionally renaming it at the same time." - }, - "parameters": [ - { - "id": 174, - "name": "fromPath", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The original file path, including the current file name. For example `folder/image.png`." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 175, - "name": "toPath", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The new file path, including the new file name. For example `folder/image-copy.png`.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 176, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 177, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 120, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 178, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 179, - "name": "message", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 120, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [179] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 120, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 180, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 120, - "character": 54 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [177, 180] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 120, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 117, - "character": 12 - } - ] - }, - { - "id": 197, - "name": "remove", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 198, - "name": "remove", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Deletes files within the same bucket" - }, - "parameters": [ - { - "id": 199, - "name": "paths", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "An array of files to be deletes, including the path and file name. For example [`folder/image.png`].\n" - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 200, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 201, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 186, - "character": 47 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "array", - "elementType": { - "type": "reference", - "id": 64, - "name": "FileObject" - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 202, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 186, - "character": 75 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [201, 202] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 186, - "character": 41 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 186, - "character": 14 - } - ] - }, - { - "id": 162, - "name": "update", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 163, - "name": "update", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Replaces an existing file at the specified path with a new one." - }, - "parameters": [ - { - "id": 164, - "name": "path", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The relative file path. Should be of the format `folder/subfolder`. The bucket already exist before attempting to upload." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 165, - "name": "file", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The file object to be stored in the bucket." - }, - "type": { - "type": "reference", - "name": "File" - } - }, - { - "id": 166, - "name": "fileOptions", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "HTTP headers. For example `cacheControl`\n" - }, - "type": { - "type": "reference", - "id": 78, - "name": "FileOptions" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 167, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 168, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 81, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 169, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 170, - "name": "Key", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 81, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [170] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 81, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 171, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 81, - "character": 50 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [168, 171] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 81, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 77, - "character": 14 - } - ] - }, - { - "id": 152, - "name": "upload", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 153, - "name": "upload", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Uploads a file to an existing bucket." - }, - "parameters": [ - { - "id": 154, - "name": "path", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 155, - "name": "file", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The File object to be stored in the bucket." - }, - "type": { - "type": "reference", - "name": "File" - } - }, - { - "id": 156, - "name": "fileOptions", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "HTTP headers. For example `cacheControl`\n" - }, - "type": { - "type": "reference", - "id": 78, - "name": "FileOptions" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 157, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 158, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 40, - "character": 19 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 159, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 160, - "name": "Key", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 40, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [160] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 40, - "character": 20 - } - ] - } - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 161, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 40, - "character": 50 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [158, 161] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 40, - "character": 13 - } - ] - } - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 36, - "character": 14 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [144] - }, - { - "title": "Properties", - "kind": 1024, - "children": [143, 139, 138] - }, - { - "title": "Methods", - "kind": 2048, - "children": [211, 181, 191, 203, 172, 197, 162, 152] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 18, - "character": 27 - } - ] - }, - { - "id": 220, - "name": "DEFAULT_FILE_OPTIONS", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isConst": true - }, - "children": [ - { - "id": 221, - "name": "cacheControl", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 15, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"3600\"" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [221] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 14, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 214, - "name": "DEFAULT_SEARCH_OPTIONS", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isConst": true - }, - "children": [ - { - "id": 215, - "name": "limit", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 6, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "100" - }, - { - "id": 216, - "name": "offset", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 7, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "0" - }, - { - "id": 217, - "name": "sortBy", - "kind": 2097152, - "kindString": "Object literal", - "flags": {}, - "children": [ - { - "id": 218, - "name": "column", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 9, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"name\"" - }, - { - "id": 219, - "name": "order", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 10, - "character": 9 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"asc\"" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [218, 219] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 8, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [215, 216] - }, - { - "title": "Object literals", - "kind": 2097152, - "children": [217] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 5, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [137] - }, - { - "title": "Object literals", - "kind": 2097152, - "children": [220, 214] - } - ], - "sources": [ - { - "fileName": "lib/StorageFileApi.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1, - "name": "\"lib/fetch\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/storage-js/storage-js/src/lib/fetch.ts", - "children": [ - { - "id": 2, - "name": "FetchOptions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 3, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 4, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 4, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 5, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 6, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 7, - "name": "noResolveJson", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 7, - "character": 15 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [3, 7] - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 3, - "character": 29 - } - ] - }, - { - "id": 8, - "name": "FetchParameters", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 9, - "name": "signal", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 11, - "character": 8 - } - ], - "type": { - "type": "reference", - "name": "AbortSignal" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [9] - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 10, - "character": 32 - } - ] - }, - { - "id": 10, - "name": "RequestMethodType", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 14, - "character": 29 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "GET" - }, - { - "type": "stringLiteral", - "value": "POST" - }, - { - "type": "stringLiteral", - "value": "PUT" - }, - { - "type": "stringLiteral", - "value": "DELETE" - } - ] - } - }, - { - "id": 11, - "name": "_getErrorMessage", - "kind": 64, - "kindString": "Function", - "flags": { - "isConst": true - }, - "signatures": [ - { - "id": 12, - "name": "_getErrorMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 13, - "name": "err", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 16, - "character": 22 - } - ] - }, - { - "id": 18, - "name": "_getRequestParams", - "kind": 64, - "kindString": "Function", - "flags": { - "isConst": true - }, - "signatures": [ - { - "id": 19, - "name": "_getRequestParams", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 20, - "name": "method", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 10, - "name": "RequestMethodType" - } - }, - { - "id": 21, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - }, - { - "id": 22, - "name": "parameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "id": 8, - "name": "FetchParameters" - } - }, - { - "id": 23, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "object" - } - ] - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 24, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": [ - { - "id": 25, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 26, - "name": "k", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - } - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 31, - "character": 23 - } - ] - }, - { - "id": 27, - "name": "_handleRequest", - "kind": 64, - "kindString": "Function", - "flags": {}, - "signatures": [ - { - "id": 28, - "name": "_handleRequest", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 29, - "name": "method", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 10, - "name": "RequestMethodType" - } - }, - { - "id": 30, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 31, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - }, - { - "id": 32, - "name": "parameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "id": 8, - "name": "FetchParameters" - } - }, - { - "id": 33, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "object" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 48, - "character": 29 - } - ] - }, - { - "id": 34, - "name": "get", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 35, - "name": "get", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 36, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 37, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - }, - { - "id": 38, - "name": "parameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 8, - "name": "FetchParameters" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 67, - "character": 25 - } - ] - }, - { - "id": 14, - "name": "handleError", - "kind": 64, - "kindString": "Function", - "flags": { - "isConst": true - }, - "signatures": [ - { - "id": 15, - "name": "handleError", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 16, - "name": "error", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 17, - "name": "reject", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 19, - "character": 17 - } - ] - }, - { - "id": 39, - "name": "post", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 40, - "name": "post", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 41, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 42, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 43, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - }, - { - "id": 44, - "name": "parameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 8, - "name": "FetchParameters" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 75, - "character": 26 - } - ] - }, - { - "id": 45, - "name": "put", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 46, - "name": "put", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 47, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 48, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 49, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - }, - { - "id": 50, - "name": "parameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 8, - "name": "FetchParameters" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 84, - "character": 25 - } - ] - }, - { - "id": 51, - "name": "remove", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 52, - "name": "remove", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 53, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 54, - "name": "body", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 55, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 2, - "name": "FetchOptions" - } - }, - { - "id": 56, - "name": "parameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 8, - "name": "FetchParameters" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 93, - "character": 28 - } - ] - } - ], - "groups": [ - { - "title": "Interfaces", - "kind": 256, - "children": [2, 8] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [10] - }, - { - "title": "Functions", - "kind": 64, - "children": [11, 18, 27, 34, 14, 39, 45, 51] - } - ], - "sources": [ - { - "fileName": "lib/fetch.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 133, - "name": "\"lib/helpers\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/storage-js/storage-js/src/lib/helpers.ts", - "children": [ - { - "id": 134, - "name": "isBrowser", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "signatures": [ - { - "id": 135, - "name": "isBrowser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 1, - "character": 22 - } - ] - } - ], - "groups": [ - { - "title": "Functions", - "kind": 64, - "children": [134] - } - ], - "sources": [ - { - "fileName": "lib/helpers.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 222, - "name": "\"lib/index\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/storage-js/storage-js/src/lib/index.ts", - "children": [ - { - "id": 225, - "name": "Bucket", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 58 - }, - { - "id": 226, - "name": "FileObject", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 64 - }, - { - "id": 228, - "name": "FileOptions", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 78 - }, - { - "id": 230, - "name": "Metadata", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 84 - }, - { - "id": 229, - "name": "SearchOptions", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 80 - }, - { - "id": 227, - "name": "SortBy", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 75 - }, - { - "id": 223, - "name": "StorageBucketApi", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 87 - }, - { - "id": 224, - "name": "StorageFileApi", - "kind": 16777216, - "kindString": "Reference", - "flags": { - "isExported": true - }, - "target": 137 - } - ], - "groups": [ - { - "title": "References", - "kind": 16777216, - "children": [225, 226, 228, 230, 229, 227, 223, 224] - } - ], - "sources": [ - { - "fileName": "lib/index.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 57, - "name": "\"lib/types\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/storage-js/storage-js/src/lib/types.ts", - "children": [ - { - "id": 58, - "name": "Bucket", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 62, - "name": "created_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 5, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 59, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 2, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 60, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 3, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 61, - "name": "owner", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 4, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 63, - "name": "updated_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 6, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [62, 59, 60, 61, 63] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 1, - "character": 23 - } - ] - }, - { - "id": 64, - "name": "FileObject", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 66, - "name": "bucket_id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 11, - "character": 11 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 74, - "name": "buckets", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 18, - "character": 9 - } - ], - "type": { - "type": "reference", - "id": 58, - "name": "Bucket" - } - }, - { - "id": 70, - "name": "created_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 15, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 68, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 13, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 71, - "name": "last_accessed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 16, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 72, - "name": "metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 17, - "character": 10 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 73, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 17, - "character": 11 - } - ] - } - } - }, - { - "id": 65, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 10, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 67, - "name": "owner", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 12, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 69, - "name": "updated_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 14, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [66, 74, 70, 68, 71, 72, 65, 67, 69] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 9, - "character": 27 - } - ] - }, - { - "id": 78, - "name": "FileOptions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 79, - "name": "cacheControl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 27, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [79] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 26, - "character": 28 - } - ] - }, - { - "id": 84, - "name": "Metadata", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 85, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 43, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [85] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 42, - "character": 25 - } - ] - }, - { - "id": 80, - "name": "SearchOptions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 81, - "name": "limit", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The number of files you want to be returned." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 32, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 82, - "name": "offset", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The starting position." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 35, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 83, - "name": "sortBy", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The column to sort by. Can be any column inside a FileObject." - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 38, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 75, - "name": "SortBy" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [81, 82, 83] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 30, - "character": 30 - } - ] - }, - { - "id": 75, - "name": "SortBy", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 76, - "name": "column", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 22, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 77, - "name": "order", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/types.ts", - "line": 23, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [76, 77] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 21, - "character": 23 - } - ] - } - ], - "groups": [ - { - "title": "Interfaces", - "kind": 256, - "children": [58, 64, 78, 84, 80, 75] - } - ], - "sources": [ - { - "fileName": "lib/types.ts", - "line": 1, - "character": 0 - } - ] - } - ], - "groups": [ - { - "title": "Modules", - "kind": 1, - "children": [231, 281, 86, 136, 1, 133, 222, 57] - } - ] -} + "id": 0, + "name": "@supabase/storage-js", + "kind": 0, + "flags": {}, + "originalName": "", + "children": [ + { + "id": 255, + "name": "\"SupabaseStorageClient\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/SupabaseStorageClient.ts", + "children": [ + { + "id": 256, + "name": "SupabaseStorageClient", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 257, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 258, + "name": "new SupabaseStorageClient", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 259, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 260, + "name": "headers", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 261, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 262, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 263, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "SupabaseStorageClient.ts", + "line": 4, + "character": 35 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 256, + "name": "SupabaseStorageClient" + }, + "overwrites": { + "type": "reference", + "id": 94, + "name": "StorageBucketApi.__constructor" + } + } + ], + "sources": [ + { + "fileName": "SupabaseStorageClient.ts", + "line": 3, + "character": 61 + } + ], + "overwrites": { + "type": "reference", + "id": 94, + "name": "StorageBucketApi.__constructor" + } + }, + { + "id": 268, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 6, + "character": 19 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 269, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 270, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 271, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 6, + "character": 20 + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 90, + "name": "StorageBucketApi.headers" + } + }, + { + "id": 267, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 5, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 89, + "name": "StorageBucketApi.url" + } + }, + { + "id": 283, + "name": "createBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 284, + "name": "createBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Creates a new Storage bucket", + "returns": "newly created bucket id\n" + }, + "parameters": [ + { + "id": 285, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A unique identifier for the bucket you are creating." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 286, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 287, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 288, + "name": "public", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 47, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 288 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 47, + "character": 12 + } + ] + } + }, + "defaultValue": "{ public: false }" + } + ], + "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": 48, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 291, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 48, + "character": 41 + } + ], + "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": 48, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 112, + "name": "StorageBucketApi.createBucket" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 45, + "character": 20 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 112, + "name": "StorageBucketApi.createBucket" + } + }, + { + "id": 311, + "name": "deleteBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 312, + "name": "deleteBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket." + }, + "parameters": [ + { + "id": 313, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The unique identifier of the bucket you would like to delete.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 314, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 315, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 106, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 316, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 317, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 106, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 317 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 106, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 318, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 106, + "character": 54 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 315, + 318 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 106, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 140, + "name": "StorageBucketApi.deleteBucket" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 104, + "character": 20 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 140, + "name": "StorageBucketApi.deleteBucket" + } + }, + { + "id": 303, + "name": "emptyBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 304, + "name": "emptyBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Removes all objects inside a single bucket." + }, + "parameters": [ + { + "id": 305, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The unique identifier of the bucket you would like to empty.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 306, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 307, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 89, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 308, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 309, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 89, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 309 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 89, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 310, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 89, + "character": 54 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 307, + 310 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 89, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 132, + "name": "StorageBucketApi.emptyBucket" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 87, + "character": 19 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 132, + "name": "StorageBucketApi.emptyBucket" + } + }, + { + "id": 264, + "name": "from", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 265, + "name": "from", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Perform file operation in a bucket." + }, + "parameters": [ + { + "id": 266, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The bucket id to operate on.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 152, + "name": "StorageFileApi" + } + } + ], + "sources": [ + { + "fileName": "SupabaseStorageClient.ts", + "line": 13, + "character": 6 + } + ] + }, + { + "id": 277, + "name": "getBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 278, + "name": "getBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Retrieves the details of an existing Storage bucket." + }, + "parameters": [ + { + "id": 279, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The unique identifier of the bucket you would like to retrieve.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 280, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 281, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 30, + "character": 45 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "Bucket" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 282, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 30, + "character": 67 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 281, + 282 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 30, + "character": 39 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 106, + "name": "StorageBucketApi.getBucket" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 30, + "character": 17 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 106, + "name": "StorageBucketApi.getBucket" + } + }, + { + "id": 272, + "name": "listBuckets", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 273, + "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": 274, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 275, + "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": 276, + "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": [ + 275, + 276 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 16, + "character": 31 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 101, + "name": "StorageBucketApi.listBuckets" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 16, + "character": 19 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 101, + "name": "StorageBucketApi.listBuckets" + } + }, + { + "id": 292, + "name": "updateBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 293, + "name": "updateBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Updates a new Storage bucket" + }, + "parameters": [ + { + "id": 294, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A unique identifier for the bucket you are creating.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 295, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 296, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 297, + "name": "public", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 68, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 297 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 68, + "character": 12 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 298, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 299, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 300, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 301, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 301 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 302, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 54 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 299, + 302 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 121, + "name": "StorageBucketApi.updateBucket" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 66, + "character": 20 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 121, + "name": "StorageBucketApi.updateBucket" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 257 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 268, + 267 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 283, + 311, + 303, + 264, + 277, + 272, + 292 + ] + } + ], + "sources": [ + { + "fileName": "SupabaseStorageClient.ts", + "line": 3, + "character": 34 + } + ], + "extendedTypes": [ + { + "type": "reference", + "id": 88, + "name": "StorageBucketApi" + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 256 + ] + } + ], + "sources": [ + { + "fileName": "SupabaseStorageClient.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 319, + "name": "\"index\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/index.ts", + "children": [ + { + "id": 320, + "name": "Bucket", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 58 + }, + { + "id": 321, + "name": "FileObject", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 65 + }, + { + "id": 323, + "name": "FileOptions", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 79 + }, + { + "id": 325, + "name": "Metadata", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 85 + }, + { + "id": 324, + "name": "SearchOptions", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 81 + }, + { + "id": 322, + "name": "SortBy", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 76 + } + ], + "groups": [ + { + "title": "References", + "kind": 16777216, + "children": [ + 320, + 321, + 323, + 325, + 324, + 322 + ] + } + ], + "sources": [ + { + "fileName": "index.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 87, + "name": "\"lib/StorageBucketApi\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageBucketApi.ts", + "children": [ + { + "id": 88, + "name": "StorageBucketApi", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 94, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 95, + "name": "new StorageBucketApi", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 96, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 97, + "name": "headers", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 98, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 99, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 100, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 8, + "character": 35 + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 88, + "name": "StorageBucketApi" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 6, + "character": 46 + } + ] + }, + { + "id": 90, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 6, + "character": 19 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 91, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 92, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 93, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 6, + "character": 20 + } + ] + } + } + }, + { + "id": 89, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 5, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 112, + "name": "createBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 113, + "name": "createBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Creates a new Storage bucket", + "returns": "newly created bucket id\n" + }, + "parameters": [ + { + "id": 114, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A unique identifier for the bucket you are creating." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 115, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 116, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 117, + "name": "public", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 47, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 117 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 47, + "character": 12 + } + ] + } + }, + "defaultValue": "{ public: false }" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 118, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 119, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 48, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 120, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 48, + "character": 41 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 119, + 120 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 48, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 45, + "character": 20 + } + ] + }, + { + "id": 140, + "name": "deleteBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 141, + "name": "deleteBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket." + }, + "parameters": [ + { + "id": 142, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The unique identifier of the bucket you would like to delete.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 143, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 144, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 106, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 145, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 146, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 106, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 146 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 106, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 147, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 106, + "character": 54 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 144, + 147 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 106, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 104, + "character": 20 + } + ] + }, + { + "id": 132, + "name": "emptyBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 133, + "name": "emptyBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Removes all objects inside a single bucket." + }, + "parameters": [ + { + "id": 134, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The unique identifier of the bucket you would like to empty.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 135, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 136, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 89, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 137, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 138, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 89, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 138 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 89, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 139, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 89, + "character": 54 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 136, + 139 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 89, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 87, + "character": 19 + } + ] + }, + { + "id": 106, + "name": "getBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 107, + "name": "getBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Retrieves the details of an existing Storage bucket." + }, + "parameters": [ + { + "id": 108, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The unique identifier of the bucket you would like to retrieve.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 109, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 110, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 30, + "character": 45 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "id": 58, + "name": "Bucket" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 111, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 30, + "character": 67 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 110, + 111 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 30, + "character": 39 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 30, + "character": 17 + } + ] + }, + { + "id": 101, + "name": "listBuckets", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 102, + "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": 103, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 104, + "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": 105, + "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": [ + 104, + 105 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 16, + "character": 31 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 16, + "character": 19 + } + ] + }, + { + "id": 121, + "name": "updateBucket", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 122, + "name": "updateBucket", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Updates a new Storage bucket" + }, + "parameters": [ + { + "id": 123, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A unique identifier for the bucket you are creating.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 124, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 125, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 126, + "name": "public", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 68, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 126 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 68, + "character": 12 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 127, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 128, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 129, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 130, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 130 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 131, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 54 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 128, + 131 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 69, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 66, + "character": 20 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 94 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 90, + 89 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 112, + 140, + 132, + 106, + 101, + 121 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 4, + "character": 29 + } + ], + "extendedBy": [ + { + "type": "reference", + "id": 256, + "name": "SupabaseStorageClient" + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 88 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageBucketApi.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 151, + "name": "\"lib/StorageFileApi\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/lib/StorageFileApi.ts", + "children": [ + { + "id": 152, + "name": "StorageFileApi", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 159, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 160, + "name": "new StorageFileApi", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 161, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 162, + "name": "headers", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 163, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 164, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 165, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 23, + "character": 35 + } + ] + } + }, + "defaultValue": "{}" + }, + { + "id": 166, + "name": "bucketId", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "type": { + "type": "reference", + "id": 152, + "name": "StorageFileApi" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 21, + "character": 29 + } + ] + }, + { + "id": 158, + "name": "bucketId", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 21, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 154, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 20, + "character": 19 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 155, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 156, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 157, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 20, + "character": 20 + } + ] + } + } + }, + { + "id": 153, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 19, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 235, + "name": "_getFinalPath", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 236, + "name": "_getFinalPath", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 237, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 276, + "character": 15 + } + ] + }, + { + "id": 196, + "name": "createSignedUrl", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 197, + "name": "createSignedUrl", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds." + }, + "parameters": [ + { + "id": 198, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The file path to be downloaded, including the current file name. For example `folder/image.png`." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 199, + "name": "expiresIn", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The number of seconds until the signed URL expires. For example, `60` for a URL which is valid for one minute.\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 200, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 201, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 143, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 202, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 203, + "name": "signedURL", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 143, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 203 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 143, + "character": 9 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 204, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 144, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 205, + "name": "signedURL", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 145, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 201, + 204, + 205 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 142, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 139, + "character": 23 + } + ] + }, + { + "id": 206, + "name": "download", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 207, + "name": "download", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Downloads a file." + }, + "parameters": [ + { + "id": 208, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 209, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 210, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 167, + "character": 46 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Blob" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 211, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 167, + "character": 66 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 210, + 211 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 167, + "character": 40 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 167, + "character": 16 + } + ] + }, + { + "id": 212, + "name": "getPublicUrl", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 213, + "name": "getPublicUrl", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Retrieve URLs for assets in public buckets" + }, + "parameters": [ + { + "id": 214, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 215, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 216, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 189, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 217, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 218, + "name": "publicURL", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 189, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 218 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 189, + "character": 9 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 219, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 190, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 220, + "name": "publicURL", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 191, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 216, + 219, + 220 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 188, + "character": 4 + } + ] + } + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 186, + "character": 14 + } + ] + }, + { + "id": 227, + "name": "list", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 228, + "name": "list", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Lists all the files within a bucket." + }, + "parameters": [ + { + "id": 229, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "The folder path." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 230, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "Search options, including `limit`, `offset`, and `sortBy`." + }, + "type": { + "type": "reference", + "id": 81, + "name": "SearchOptions" + } + }, + { + "id": 231, + "name": "parameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "Fetch parameters, currently only supports `signal`, which is an AbortController's signal\n" + }, + "type": { + "type": "reference", + "id": 8, + "name": "FetchParameters" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 232, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 233, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 261, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "array", + "elementType": { + "type": "reference", + "id": 65, + "name": "FileObject" + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 234, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 261, + "character": 47 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 233, + 234 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 261, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 257, + "character": 12 + } + ] + }, + { + "id": 187, + "name": "move", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 188, + "name": "move", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Moves an existing file, optionally renaming it at the same time." + }, + "parameters": [ + { + "id": 189, + "name": "fromPath", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The original file path, including the current file name. For example `folder/image.png`." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 190, + "name": "toPath", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The new file path, including the new file name. For example `folder/image-copy.png`.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 191, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 192, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 120, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 193, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 194, + "name": "message", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 120, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 194 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 120, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 195, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 120, + "character": 54 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 192, + 195 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 120, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 117, + "character": 12 + } + ] + }, + { + "id": 221, + "name": "remove", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 222, + "name": "remove", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Deletes files within the same bucket" + }, + "parameters": [ + { + "id": 223, + "name": "paths", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "An array of files to be deletes, including the path and file name. For example [`folder/image.png`].\n" + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 224, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 225, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 208, + "character": 47 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "array", + "elementType": { + "type": "reference", + "id": 65, + "name": "FileObject" + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 226, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 208, + "character": 75 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 225, + 226 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 208, + "character": 41 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 208, + "character": 14 + } + ] + }, + { + "id": 177, + "name": "update", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 178, + "name": "update", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Replaces an existing file at the specified path with a new one." + }, + "parameters": [ + { + "id": 179, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The relative file path. Should be of the format `folder/subfolder`. The bucket already exist before attempting to upload." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 180, + "name": "file", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The file object to be stored in the bucket." + }, + "type": { + "type": "reference", + "name": "File" + } + }, + { + "id": 181, + "name": "fileOptions", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "HTTP headers. For example `cacheControl`\n" + }, + "type": { + "type": "reference", + "id": 79, + "name": "FileOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 182, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 183, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 81, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 184, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 185, + "name": "Key", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 81, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 185 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 81, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 186, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 81, + "character": 50 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 183, + 186 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 81, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 77, + "character": 14 + } + ] + }, + { + "id": 167, + "name": "upload", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 168, + "name": "upload", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Uploads a file to an existing bucket." + }, + "parameters": [ + { + "id": 169, + "name": "path", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 170, + "name": "file", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The File object to be stored in the bucket." + }, + "type": { + "type": "reference", + "name": "File" + } + }, + { + "id": 171, + "name": "fileOptions", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "HTTP headers. For example `cacheControl`\n" + }, + "type": { + "type": "reference", + "id": 79, + "name": "FileOptions" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 172, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 173, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 40, + "character": 19 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 174, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 175, + "name": "Key", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 40, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 175 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 40, + "character": 20 + } + ] + } + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 176, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 40, + "character": 50 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 173, + 176 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 40, + "character": 13 + } + ] + } + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 36, + "character": 14 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 159 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 158, + 154, + 153 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 235, + 196, + 206, + 212, + 227, + 187, + 221, + 177, + 167 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 18, + "character": 27 + } + ] + }, + { + "id": 244, + "name": "DEFAULT_FILE_OPTIONS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isConst": true + }, + "children": [ + { + "id": 245, + "name": "cacheControl", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 15, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"3600\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 245 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 14, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 238, + "name": "DEFAULT_SEARCH_OPTIONS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isConst": true + }, + "children": [ + { + "id": 239, + "name": "limit", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 6, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "100" + }, + { + "id": 240, + "name": "offset", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 7, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + }, + { + "id": 241, + "name": "sortBy", + "kind": 2097152, + "kindString": "Object literal", + "flags": {}, + "children": [ + { + "id": 242, + "name": "column", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 9, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"name\"" + }, + { + "id": 243, + "name": "order", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 10, + "character": 9 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"asc\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 242, + 243 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 8, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 239, + 240 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 241 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 5, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 152 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 244, + 238 + ] + } + ], + "sources": [ + { + "fileName": "lib/StorageFileApi.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1, + "name": "\"lib/fetch\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/lib/fetch.ts", + "children": [ + { + "id": 2, + "name": "FetchOptions", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 3, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 4, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 4, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 5, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 6, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 7, + "name": "noResolveJson", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 7, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 3, + 7 + ] + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 3, + "character": 29 + } + ] + }, + { + "id": 8, + "name": "FetchParameters", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 9, + "name": "signal", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 11, + "character": 8 + } + ], + "type": { + "type": "reference", + "name": "AbortSignal" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 9 + ] + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 10, + "character": 32 + } + ] + }, + { + "id": 10, + "name": "RequestMethodType", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 14, + "character": 29 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "GET" + }, + { + "type": "stringLiteral", + "value": "POST" + }, + { + "type": "stringLiteral", + "value": "PUT" + }, + { + "type": "stringLiteral", + "value": "DELETE" + } + ] + } + }, + { + "id": 11, + "name": "_getErrorMessage", + "kind": 64, + "kindString": "Function", + "flags": { + "isConst": true + }, + "signatures": [ + { + "id": 12, + "name": "_getErrorMessage", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 13, + "name": "err", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 16, + "character": 22 + } + ] + }, + { + "id": 18, + "name": "_getRequestParams", + "kind": 64, + "kindString": "Function", + "flags": { + "isConst": true + }, + "signatures": [ + { + "id": 19, + "name": "_getRequestParams", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 20, + "name": "method", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 10, + "name": "RequestMethodType" + } + }, + { + "id": 21, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + }, + { + "id": 22, + "name": "parameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "id": 8, + "name": "FetchParameters" + } + }, + { + "id": 23, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "object" + } + ] + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 24, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": [ + { + "id": 25, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 26, + "name": "k", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 31, + "character": 23 + } + ] + }, + { + "id": 27, + "name": "_handleRequest", + "kind": 64, + "kindString": "Function", + "flags": {}, + "signatures": [ + { + "id": 28, + "name": "_handleRequest", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 29, + "name": "method", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 10, + "name": "RequestMethodType" + } + }, + { + "id": 30, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 31, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + }, + { + "id": 32, + "name": "parameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "id": 8, + "name": "FetchParameters" + } + }, + { + "id": 33, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "object" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 48, + "character": 29 + } + ] + }, + { + "id": 34, + "name": "get", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 35, + "name": "get", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 36, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 37, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + }, + { + "id": 38, + "name": "parameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 8, + "name": "FetchParameters" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 67, + "character": 25 + } + ] + }, + { + "id": 14, + "name": "handleError", + "kind": 64, + "kindString": "Function", + "flags": { + "isConst": true + }, + "signatures": [ + { + "id": 15, + "name": "handleError", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 16, + "name": "error", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 17, + "name": "reject", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 19, + "character": 17 + } + ] + }, + { + "id": 39, + "name": "post", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 40, + "name": "post", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 41, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 42, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 43, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + }, + { + "id": 44, + "name": "parameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 8, + "name": "FetchParameters" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 75, + "character": 26 + } + ] + }, + { + "id": 45, + "name": "put", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 46, + "name": "put", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 47, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 48, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 49, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + }, + { + "id": 50, + "name": "parameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 8, + "name": "FetchParameters" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 84, + "character": 25 + } + ] + }, + { + "id": 51, + "name": "remove", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 52, + "name": "remove", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 53, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 54, + "name": "body", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 55, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 2, + "name": "FetchOptions" + } + }, + { + "id": 56, + "name": "parameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 8, + "name": "FetchParameters" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 93, + "character": 28 + } + ] + } + ], + "groups": [ + { + "title": "Interfaces", + "kind": 256, + "children": [ + 2, + 8 + ] + }, + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 10 + ] + }, + { + "title": "Functions", + "kind": 64, + "children": [ + 11, + 18, + 27, + 34, + 14, + 39, + 45, + 51 + ] + } + ], + "sources": [ + { + "fileName": "lib/fetch.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 148, + "name": "\"lib/helpers\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/lib/helpers.ts", + "children": [ + { + "id": 149, + "name": "isBrowser", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "signatures": [ + { + "id": 150, + "name": "isBrowser", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 1, + "character": 22 + } + ] + } + ], + "groups": [ + { + "title": "Functions", + "kind": 64, + "children": [ + 149 + ] + } + ], + "sources": [ + { + "fileName": "lib/helpers.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 246, + "name": "\"lib/index\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/lib/index.ts", + "children": [ + { + "id": 249, + "name": "Bucket", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 58 + }, + { + "id": 250, + "name": "FileObject", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 65 + }, + { + "id": 252, + "name": "FileOptions", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 79 + }, + { + "id": 254, + "name": "Metadata", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 85 + }, + { + "id": 253, + "name": "SearchOptions", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 81 + }, + { + "id": 251, + "name": "SortBy", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 76 + }, + { + "id": 247, + "name": "StorageBucketApi", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 88 + }, + { + "id": 248, + "name": "StorageFileApi", + "kind": 16777216, + "kindString": "Reference", + "flags": { + "isExported": true + }, + "target": 152 + } + ], + "groups": [ + { + "title": "References", + "kind": 16777216, + "children": [ + 249, + 250, + 252, + 254, + 253, + 251, + 247, + 248 + ] + } + ], + "sources": [ + { + "fileName": "lib/index.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 57, + "name": "\"lib/types\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/storage-js/storage-js/src/lib/types.ts", + "children": [ + { + "id": 58, + "name": "Bucket", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 62, + "name": "created_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 5, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 59, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 2, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 60, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 3, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 61, + "name": "owner", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 4, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 64, + "name": "public", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 7, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 63, + "name": "updated_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 6, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 62, + 59, + 60, + 61, + 64, + 63 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 1, + "character": 23 + } + ] + }, + { + "id": 65, + "name": "FileObject", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 67, + "name": "bucket_id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 12, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 75, + "name": "buckets", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 19, + "character": 9 + } + ], + "type": { + "type": "reference", + "id": 58, + "name": "Bucket" + } + }, + { + "id": 71, + "name": "created_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 16, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 69, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 14, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 72, + "name": "last_accessed_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 17, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 73, + "name": "metadata", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 18, + "character": 10 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 74, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 18, + "character": 11 + } + ] + } + } + }, + { + "id": 66, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 11, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 68, + "name": "owner", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 13, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 70, + "name": "updated_at", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 15, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 67, + 75, + 71, + 69, + 72, + 73, + 66, + 68, + 70 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 10, + "character": 27 + } + ] + }, + { + "id": 79, + "name": "FileOptions", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 80, + "name": "cacheControl", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 28, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 80 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 27, + "character": 28 + } + ] + }, + { + "id": 85, + "name": "Metadata", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 86, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 44, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 86 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 43, + "character": 25 + } + ] + }, + { + "id": 81, + "name": "SearchOptions", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 82, + "name": "limit", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The number of files you want to be returned." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 33, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 83, + "name": "offset", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The starting position." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 36, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 84, + "name": "sortBy", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The column to sort by. Can be any column inside a FileObject." + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 39, + "character": 8 + } + ], + "type": { + "type": "reference", + "id": 76, + "name": "SortBy" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 82, + 83, + 84 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 31, + "character": 30 + } + ] + }, + { + "id": 76, + "name": "SortBy", + "kind": 256, + "kindString": "Interface", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 77, + "name": "column", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 23, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 78, + "name": "order", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "lib/types.ts", + "line": 24, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 77, + 78 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 22, + "character": 23 + } + ] + } + ], + "groups": [ + { + "title": "Interfaces", + "kind": 256, + "children": [ + 58, + 65, + 79, + 85, + 81, + 76 + ] + } + ], + "sources": [ + { + "fileName": "lib/types.ts", + "line": 1, + "character": 0 + } + ] + } + ], + "groups": [ + { + "title": "Modules", + "kind": 1, + "children": [ + 255, + 319, + 87, + 151, + 1, + 148, + 246, + 57 + ] + } + ] +} \ No newline at end of file diff --git a/web/spec/supabase.json b/web/spec/supabase.json index 09f62ca202b..ae9647409f3 100644 --- a/web/spec/supabase.json +++ b/web/spec/supabase.json @@ -1,7356 +1,7659 @@ { - "id": 0, - "name": "@supabase/supabase-js", - "kind": 0, - "flags": {}, - "originalName": "", - "children": [ - { - "id": 239, - "name": "\"SupabaseClient\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts", - "children": [ - { - "id": 240, - "name": "SupabaseClient", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Supabase Client.", - "text": "An isomorphic Javascript client for interacting with Postgres.\n" - }, - "children": [ - { - "id": 248, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Create a new client for use in the browser." - }, - "signatures": [ - { - "id": 251, - "name": "new SupabaseClient", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Create a new client for use in the browser." - }, - "parameters": [ - { - "id": 252, - "name": "supabaseUrl", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The unique Supabase URL which is supplied when you create a new project in your project dashboard." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 253, - "name": "supabaseKey", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The unique Supabase Key which is supplied when you create a new project in your project dashboard." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 254, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 5, - "name": "SupabaseClientOptions" - } - } - ], - "type": { - "type": "reference", - "id": 240, - "name": "SupabaseClient" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 34, - "character": 36 - } - ] - }, - { - "id": 241, - "name": "auth", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Supabase Auth allows you to create and manage user sessions for access to data that is secured by access policies." - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 27, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 27, - "name": "SupabaseAuthClient" - } - }, - { - "id": 245, - "name": "authUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 32, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 247, - "name": "realtime", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 34, - "character": 20 - } - ], - "type": { - "type": "reference", - "name": "RealtimeClient" - } - }, - { - "id": 244, - "name": "realtimeUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 31, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 243, - "name": "restUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 30, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 242, - "name": "schema", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 29, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 246, - "name": "storageUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 33, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 250, - "name": "supabaseKey", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true, - "isConstructorProperty": true - }, - "comment": { - "shortText": "The unique Supabase Key which is supplied when you create a new project in your project dashboard." - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 48, - "character": 25 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 249, - "name": "supabaseUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true, - "isConstructorProperty": true - }, - "comment": { - "shortText": "The unique Supabase URL which is supplied when you create a new project in your project dashboard." - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 47, - "character": 25 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 255, - "name": "storage", - "kind": 262144, - "kindString": "Accessor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Supabase Storage allows you to manage user-generated content, such as photos or videos." - }, - "getSignature": [ - { - "id": 256, - "name": "__get", - "kind": 524288, - "kindString": "Get signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Supabase Storage allows you to manage user-generated content, such as photos or videos." - }, - "type": { - "type": "reference", - "name": "SupabaseStorageClient" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 73, - "character": 13 - } - ] - }, - { - "id": 291, - "name": "_closeChannel", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 292, - "name": "_closeChannel", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 293, - "name": "subscription", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "RealtimeSubscription" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 178, - "character": 23 - } - ] - }, - { - "id": 269, - "name": "_closeSubscription", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 270, - "name": "_closeSubscription", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 271, - "name": "subscription", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "RealtimeSubscription" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 125, - "character": 34 - } - ] - }, - { - "id": 286, - "name": "_getAuthHeaders", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 287, - "name": "_getAuthHeaders", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 288, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 289, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 290, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 170, - "character": 28 - } - ] - } - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 170, - "character": 25 - } - ] - }, - { - "id": 284, - "name": "_initPostgRESTClient", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 285, - "name": "_initPostgRESTClient", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "PostgrestClient" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 163, - "character": 30 - } - ] - }, - { - "id": 282, - "name": "_initRealtimeClient", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 283, - "name": "_initRealtimeClient", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "RealtimeClient" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 157, - "character": 29 - } - ] - }, - { - "id": 274, - "name": "_initSupabaseAuthClient", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 275, - "name": "_initSupabaseAuthClient", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 276, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "originalName": "__0", - "type": { - "type": "reflection", - "declaration": { - "id": 277, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 278, - "name": "autoRefreshToken", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 139, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 280, - "name": "detectSessionInUrl", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 141, - "character": 22 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 281, - "name": "localStorage", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 142, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "name": "Storage" - } - ] - } - }, - { - "id": 279, - "name": "persistSession", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 140, - "character": 18 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [278, 280, 281, 279] - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 138, - "character": 34 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 27, - "name": "SupabaseAuthClient" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 138, - "character": 33 - } - ] - }, - { - "id": 257, - "name": "from", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 258, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Perform a table operation." - }, - "typeParameter": [ - { - "id": 259, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExported": true - } - } - ], - "parameters": [ - { - "id": 260, - "name": "table", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The table name to operate on.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 153, - "typeArguments": [ - { - "type": "typeParameter", - "name": "T", - "default": { - "type": "intrinsic", - "name": "any" - } - } - ], - "name": "SupabaseQueryBuilder" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 82, - "character": 6 - } - ] - }, - { - "id": 272, - "name": "getSubscriptions", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 273, - "name": "getSubscriptions", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Returns an array of all your subscriptions." - }, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "RealtimeSubscription" - } - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 134, - "character": 18 - } - ] - }, - { - "id": 266, - "name": "removeSubscription", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 267, - "name": "removeSubscription", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Removes an active subscription and returns the number of open connections." - }, - "parameters": [ - { - "id": 268, - "name": "subscription", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The subscription you want to remove.\n" - }, - "type": { - "type": "reference", - "name": "RealtimeSubscription" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 108, - "character": 20 - } - ] - }, - { - "id": 261, - "name": "rpc", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 262, - "name": "rpc", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Perform a stored procedure call." - }, - "typeParameter": [ - { - "id": 263, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExported": true - } - } - ], - "parameters": [ - { - "id": 264, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The function name to call." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 265, - "name": "params", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "The parameters to pass to the function call.\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "object" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "unknown", - "name": "T" - } - ], - "name": "PostgrestFilterBuilder" - } - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 98, - "character": 5 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [248] - }, - { - "title": "Properties", - "kind": 1024, - "children": [241, 245, 247, 244, 243, 242, 246, 250, 249] - }, - { - "title": "Accessors", - "kind": 262144, - "children": [255] - }, - { - "title": "Methods", - "kind": 2048, - "children": [291, 269, 286, 284, 282, 274, 257, 272, 266, 261] - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 23, - "character": 35 - } - ] - }, - { - "id": 294, - "name": "DEFAULT_OPTIONS", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isConst": true - }, - "children": [ - { - "id": 296, - "name": "autoRefreshToken", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 11, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "true" - }, - { - "id": 298, - "name": "detectSessionInUrl", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 13, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "true" - }, - { - "id": 300, - "name": "headers", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 15, - "character": 9 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 301, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - }, - "defaultValue": "DEFAULT_HEADERS" - }, - { - "id": 299, - "name": "localStorage", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 14, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "Storage" - }, - "defaultValue": "globalThis.localStorage" - }, - { - "id": 297, - "name": "persistSession", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 12, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "true" - }, - { - "id": 295, - "name": "schema", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 10, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"public\"" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [296, 298, 300, 299, 297, 295] - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 9, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [240] - }, - { - "title": "Object literals", - "kind": 2097152, - "children": [294] - } - ], - "sources": [ - { - "fileName": "src/SupabaseClient.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 302, - "name": "\"index\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts", - "children": [ - { - "id": 303, - "name": "createClient", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true, - "isConst": true - }, - "comment": { - "shortText": "Creates a new Supabase Client." - }, - "signatures": [ - { - "id": 304, - "name": "createClient", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Creates a new Supabase Client." - }, - "parameters": [ - { - "id": 305, - "name": "supabaseUrl", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 306, - "name": "supabaseKey", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 307, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 5, - "name": "SupabaseClientOptions" - } - } - ], - "type": { - "type": "reference", - "id": 240, - "name": "SupabaseClient" - } - } - ], - "sources": [ - { - "fileName": "src/index.ts", - "line": 10, - "character": 18 - } - ] - } - ], - "groups": [ - { - "title": "Functions", - "kind": 64, - "children": [303] - } - ], - "sources": [ - { - "fileName": "src/index.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 26, - "name": "\"lib/SupabaseAuthClient\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseAuthClient.ts", - "children": [ - { - "id": 27, - "name": "SupabaseAuthClient", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 28, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 29, - "name": "new SupabaseAuthClient", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 30, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 31, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 38, - "name": "autoRefreshToken", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseAuthClient.ts", - "line": 8, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 37, - "name": "detectSessionInUrl", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseAuthClient.ts", - "line": 7, - "character": 22 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 33, - "name": "headers", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseAuthClient.ts", - "line": 6, - "character": 11 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 34, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 35, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 36, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 40, - "name": "localStorage", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseAuthClient.ts", - "line": 10, - "character": 16 - } - ], - "type": { - "type": "reference", - "name": "Storage" - } - }, - { - "id": 39, - "name": "persistSession", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseAuthClient.ts", - "line": 9, - "character": 18 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 32, - "name": "url", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseAuthClient.ts", - "line": 5, - "character": 7 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [38, 37, 33, 40, 39, 32] - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseAuthClient.ts", - "line": 4, - "character": 22 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 27, - "name": "SupabaseAuthClient" - }, - "overwrites": { - "type": "reference", - "name": "GoTrueClient.__constructor" - } - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseAuthClient.ts", - "line": 3, - "character": 54 - } - ], - "overwrites": { - "type": "reference", - "name": "GoTrueClient.__constructor" - } - }, - { - "id": 41, - "name": "api", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 8, - "character": 7 - } - ], - "type": { - "type": "reference", - "name": "GoTrueApi" - }, - "inheritedFrom": { - "type": "reference", - "id": 41, - "name": "GoTrueClient.api" - } - }, - { - "id": 44, - "name": "autoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 17, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "id": 44, - "name": "GoTrueClient.autoRefreshToken" - } - }, - { - "id": 43, - "name": "currentSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "comment": { - "shortText": "The session object for the currently logged in user or null." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 16, - "character": 28 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "id": 43, - "name": "GoTrueClient.currentSession" - } - }, - { - "id": 42, - "name": "currentUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "comment": { - "shortText": "The currently logged in user or null." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 12, - "character": 25 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "id": 42, - "name": "GoTrueClient.currentUser" - } - }, - { - "id": 46, - "name": "localStorage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 19, - "character": 26 - } - ], - "type": { - "type": "reference", - "name": "Storage" - }, - "inheritedFrom": { - "type": "reference", - "id": 46, - "name": "GoTrueClient.localStorage" - } - }, - { - "id": 45, - "name": "persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 18, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "id": 45, - "name": "GoTrueClient.persistSession" - } - }, - { - "id": 48, - "name": "refreshTokenTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 21, - "character": 31 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "query", - "queryType": { - "type": "reference", - "name": "setTimeout" - } - } - ], - "name": "ReturnType" - }, - "inheritedFrom": { - "type": "reference", - "id": 48, - "name": "GoTrueClient.refreshTokenTimer" - } - }, - { - "id": 47, - "name": "stateChangeEmitters", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 20, - "character": 33 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "name": "Subscription" - } - ], - "name": "Map" - }, - "inheritedFrom": { - "type": "reference", - "id": 47, - "name": "GoTrueClient.stateChangeEmitters" - } - }, - { - "id": 107, - "name": "getSessionFromUrl", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 108, - "name": "getSessionFromUrl", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Gets the session data from a URL string" - }, - "parameters": [ - { - "id": 109, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 110, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 111, - "name": "storeSession", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "Optionally store the session in the browser\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 121, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [111] - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 112, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 113, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 123, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 114, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 124, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [113, 114] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 122, - "character": 16 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 107, - "name": "GoTrueClient.getSessionFromUrl" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 120, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 107, - "name": "GoTrueClient.getSessionFromUrl" - } - }, - { - "id": 119, - "name": "onAuthStateChange", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 120, - "name": "onAuthStateChange", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Receive a notification every time an auth event happens.", - "returns": "A subscription object which can be used to unsubscribe itself.\n" - }, - "parameters": [ - { - "id": 121, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 122, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 123, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 124, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "AuthChangeEvent" - } - }, - { - "id": 125, - "name": "session", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 139, - "character": 31 - } - ] - } - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 126, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 127, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 140, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Subscription" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 128, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 141, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [127, 128] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 139, - "character": 91 - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 119, - "name": "GoTrueClient.onAuthStateChange" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 139, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 119, - "name": "GoTrueClient.onAuthStateChange" - } - }, - { - "id": 85, - "name": "refreshSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 86, - "name": "refreshSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Force refreshes the session including the user data in case it was updated in a different session." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 87, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 88, - "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": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 90, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 93, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 89, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 92, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [88, 90, 89] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 90, - "character": 30 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 85, - "name": "GoTrueClient.refreshSession" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 90, - "character": 18 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 85, - "name": "GoTrueClient.refreshSession" - } - }, - { - "id": 83, - "name": "session", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 84, - "name": "session", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Returns the session data, if there is an active session." - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "id": 83, - "name": "GoTrueClient.session" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 86, - "character": 11 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 83, - "name": "GoTrueClient.session" - } - }, - { - "id": 104, - "name": "setAuth", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 105, - "name": "setAuth", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests." - }, - "parameters": [ - { - "id": 106, - "name": "access_token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "a jwt access token\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Session" - }, - "inheritedFrom": { - "type": "reference", - "id": 104, - "name": "GoTrueClient.setAuth" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 115, - "character": 11 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 104, - "name": "GoTrueClient.setAuth" - } - }, - { - "id": 98, - "name": "setSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 99, - "name": "setSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Sets the session data from refresh_token and returns current Session and Error" - }, - "parameters": [ - { - "id": 100, - "name": "refresh_token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "a JWT token\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 101, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 103, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 109, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 102, - "name": "session", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 108, - "character": 15 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [103, 102] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 107, - "character": 47 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 98, - "name": "GoTrueClient.setSession" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 107, - "character": 14 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 98, - "name": "GoTrueClient.setSession" - } - }, - { - "id": 63, - "name": "signIn", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 64, - "name": "signIn", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Log in an existing user, or login via a third-party provider." - }, - "parameters": [ - { - "id": 65, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "originalName": "__0", - "type": { - "type": "reflection", - "declaration": { - "id": 66, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 67, - "name": "email", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "The user's email address." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 66, - "character": 18 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 68, - "name": "password", - "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": 66, - "character": 28 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 69, - "name": "provider", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "One of the providers supported by GoTrue." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 66, - "character": 38 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "stringLiteral", - "value": "azure" - }, - { - "type": "stringLiteral", - "value": "bitbucket" - }, - { - "type": "stringLiteral", - "value": "facebook" - }, - { - "type": "stringLiteral", - "value": "github" - }, - { - "type": "stringLiteral", - "value": "gitlab" - }, - { - "type": "stringLiteral", - "value": "google" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [67, 68, 69] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 66, - "character": 11 - } - ] - } - } - }, - { - "id": 70, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 71, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 72, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 67, - "character": 18 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 73, - "name": "scopes", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 68, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [72, 73] - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 74, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 80, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 75, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 79, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 74, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 77, - "name": "provider", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 72, - "character": 16 - } - ], - "type": { - "type": "reference", - "name": "Provider" - } - }, - { - "id": 75, - "name": "session", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 70, - "character": 15 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 78, - "name": "url", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 73, - "character": 11 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 76, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 71, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [80, 79, 77, 75, 78, 76] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 69, - "character": 16 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 63, - "name": "GoTrueClient.signIn" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 66, - "character": 10 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 63, - "name": "GoTrueClient.signIn" - } - }, - { - "id": 115, - "name": "signOut", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 116, - "name": "signOut", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", - "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 117, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 118, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 133, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [118] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 132, - "character": 23 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 115, - "name": "GoTrueClient.signOut" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 132, - "character": 11 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 115, - "name": "GoTrueClient.signOut" - } - }, - { - "id": 49, - "name": "signUp", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 50, - "name": "signUp", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Creates a new user." - }, - "parameters": [ - { - "id": 51, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "originalName": "__0", - "type": { - "type": "reflection", - "declaration": { - "id": 52, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 53, - "name": "email", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "The user's email address." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, - "character": 18 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 54, - "name": "password", - "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": 49, - "character": 28 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [53, 54] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, - "character": 11 - } - ] - } - } - }, - { - "id": 55, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 56, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 57, - "name": "redirectTo", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 50, - "character": 18 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [57] - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 58, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 62, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 55, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Session" - }, - { - "type": "reference", - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 61, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 54, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 60, - "name": "session", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 53, - "character": 15 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Session" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 59, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 52, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [62, 61, 60, 59] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 51, - "character": 16 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 49, - "name": "GoTrueClient.signUp" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 49, - "character": 10 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 49, - "name": "GoTrueClient.signUp" - } - }, - { - "id": 91, - "name": "update", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 92, - "name": "update", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Updates user data, if there is a logged in user." - }, - "parameters": [ - { - "id": 93, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "UserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 94, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 95, - "name": "data", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 99, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 97, - "name": "error", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 101, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Error" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 96, - "name": "user", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 100, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [95, 97, 96] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 98, - "character": 48 - } - ] - } - } - ], - "name": "Promise" - }, - "inheritedFrom": { - "type": "reference", - "id": 91, - "name": "GoTrueClient.update" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 98, - "character": 10 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 91, - "name": "GoTrueClient.update" - } - }, - { - "id": 81, - "name": "user", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 82, - "name": "user", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.", - "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "User" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "id": 81, - "name": "GoTrueClient.user" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", - "line": 82, - "character": 8 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 81, - "name": "GoTrueClient.user" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [28] - }, - { - "title": "Properties", - "kind": 1024, - "children": [41, 44, 43, 42, 46, 45, 48, 47] - }, - { - "title": "Methods", - "kind": 2048, - "children": [107, 119, 85, 83, 104, 98, 63, 115, 49, 91, 81] - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseAuthClient.ts", - "line": 3, - "character": 31 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "GoTrueClient" - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [27] - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseAuthClient.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 152, - "name": "\"lib/SupabaseQueryBuilder\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts", - "children": [ - { - "id": 153, - "name": "SupabaseQueryBuilder", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "typeParameter": [ - { - "id": 154, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExported": true - } - } - ], - "children": [ - { - "id": 157, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 158, - "name": "new SupabaseQueryBuilder", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 159, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 160, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "originalName": "__1", - "type": { - "type": "reflection", - "declaration": { - "id": 161, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 162, - "name": "headers", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 13, - "character": 13 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 163, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 164, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 165, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - }, - { - "id": 167, - "name": "realtime", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 15, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "RealtimeClient" - } - }, - { - "id": 166, - "name": "schema", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 14, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 168, - "name": "table", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 16, - "character": 11 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [162, 167, 166, 168] - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 11, - "character": 16 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 153, - "name": "SupabaseQueryBuilder" - }, - "overwrites": { - "type": "reference", - "name": "PostgrestQueryBuilder.__constructor" - } - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 8, - "character": 35 - } - ], - "overwrites": { - "type": "reference", - "name": "PostgrestQueryBuilder.__constructor" - } - }, - { - "id": 156, - "name": "_realtime", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 8, - "character": 19 - } - ], - "type": { - "type": "reference", - "name": "RealtimeClient" - } - }, - { - "id": 155, - "name": "_subscription", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 7, - "character": 23 - } - ], - "type": { - "type": "reference", - "id": 130, - "name": "SupabaseRealtimeClient" - } - }, - { - "id": 226, - "name": "body", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", - "line": 47, - "character": 18 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "Partial" - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "id": 226, - "name": "PostgrestBuilder.body" - } - }, - { - "id": 221, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", - "line": 43, - "character": 21 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 222, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 223, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 224, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", - "line": 43, - "character": 22 - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 221, - "name": "PostgrestBuilder.headers" - } - }, - { - "id": 219, - "name": "method", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", - "line": 41, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "GET" - }, - { - "type": "stringLiteral", - "value": "HEAD" - }, - { - "type": "stringLiteral", - "value": "POST" - }, - { - "type": "stringLiteral", - "value": "PATCH" - }, - { - "type": "stringLiteral", - "value": "DELETE" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "id": 219, - "name": "PostgrestBuilder.method" - } - }, - { - "id": 225, - "name": "schema", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", - "line": 46, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "id": 225, - "name": "PostgrestBuilder.schema" - } - }, - { - "id": 220, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", - "line": 42, - "character": 17 - } - ], - "type": { - "type": "reference", - "name": "URL" - }, - "inheritedFrom": { - "type": "reference", - "id": 220, - "name": "PostgrestBuilder.url" - } - }, - { - "id": 213, - "name": "delete", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 214, - "name": "delete", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Performs a DELETE on the table." - }, - "parameters": [ - { - "id": 215, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "originalName": "__0", - "type": { - "type": "reflection", - "declaration": { - "id": 216, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 218, - "name": "count", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "Count algorithm to use to count rows in a table.\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 71, - "character": 29 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "null" - }, - { - "type": "stringLiteral", - "value": "exact" - }, - { - "type": "stringLiteral", - "value": "planned" - }, - { - "type": "stringLiteral", - "value": "estimated" - } - ] - } - }, - { - "id": 217, - "name": "returning", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "If `true`, return the deleted row(s) in the response." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 71, - "character": 22 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "stringLiteral", - "value": "minimal" - }, - { - "type": "stringLiteral", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [218, 217] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 71, - "character": 11 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestFilterBuilder" - }, - "inheritedFrom": { - "type": "reference", - "id": 213, - "name": "PostgrestQueryBuilder.delete" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 71, - "character": 10 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 213, - "name": "PostgrestQueryBuilder.delete" - } - }, - { - "id": 183, - "name": "insert", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 184, - "name": "insert", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Performs an INSERT into the table." - }, - "parameters": [ - { - "id": 185, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The values to insert." - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "Partial" - } - } - ] - } - }, - { - "id": 186, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 187, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 189, - "name": "count", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 30, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "null" - }, - { - "type": "stringLiteral", - "value": "exact" - }, - { - "type": "stringLiteral", - "value": "planned" - }, - { - "type": "stringLiteral", - "value": "estimated" - } - ] - } - }, - { - "id": 188, - "name": "returning", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 29, - "character": 17 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "minimal" - }, - { - "type": "stringLiteral", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [189, 188] - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestFilterBuilder" - }, - "inheritedFrom": { - "type": "reference", - "id": 183, - "name": "PostgrestQueryBuilder.insert" - } - }, - { - "id": 190, - "name": "insert", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "tags": [ - { - "tag": "deprecated", - "text": "Use `upsert()` instead.\n" - } - ] - }, - "parameters": [ - { - "id": 191, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "Partial" - } - } - ] - } - }, - { - "id": 192, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 193, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 197, - "name": "count", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 39, - "character": 13 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "null" - }, - { - "type": "stringLiteral", - "value": "exact" - }, - { - "type": "stringLiteral", - "value": "planned" - }, - { - "type": "stringLiteral", - "value": "estimated" - } - ] - } - }, - { - "id": 195, - "name": "onConflict", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 37, - "character": 18 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 196, - "name": "returning", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 38, - "character": 17 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "minimal" - }, - { - "type": "stringLiteral", - "value": "representation" - } - ] - } - }, - { - "id": 194, - "name": "upsert", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 36, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [197, 195, 196, 194] - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestFilterBuilder" - }, - "inheritedFrom": { - "type": "reference", - "id": 183, - "name": "PostgrestQueryBuilder.insert" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 28, - "character": 10 - }, - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 35, - "character": 10 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 183, - "name": "PostgrestQueryBuilder.insert" - } - }, - { - "id": 169, - "name": "on", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 170, - "name": "on", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Subscribe to realtime changes in your databse." - }, - "parameters": [ - { - "id": 171, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The database event which you would like to receive updates for, or you can use the special wildcard `*` to listen to all changes." - }, - "type": { - "type": "reference", - "id": 25, - "name": "SupabaseEventTypes" - } - }, - { - "id": 172, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A callback that will handle the payload that is sent whenever your database changes.\n" - }, - "type": { - "type": "reflection", - "declaration": { - "id": 173, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 174, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 175, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "id": 16, - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "SupabaseRealtimePayload" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 37, - "character": 13 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 130, - "name": "SupabaseRealtimeClient" - } - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 35, - "character": 4 - } - ] - }, - { - "id": 176, - "name": "select", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 177, - "name": "select", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Performs vertical filtering with SELECT." - }, - "parameters": [ - { - "id": 178, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "text": "The columns to retrieve, separated by commas." - }, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 179, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "originalName": "__1", - "type": { - "type": "reflection", - "declaration": { - "id": 180, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 182, - "name": "count", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "Count algorithm to use to count rows in a table.\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 17, - "character": 42 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "null" - }, - { - "type": "stringLiteral", - "value": "exact" - }, - { - "type": "stringLiteral", - "value": "planned" - }, - { - "type": "stringLiteral", - "value": "estimated" - } - ] - } - }, - { - "id": 181, - "name": "head", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "When set to true, select will void data." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 17, - "character": 35 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [182, 181] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 17, - "character": 28 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestFilterBuilder" - }, - "inheritedFrom": { - "type": "reference", - "id": 176, - "name": "PostgrestQueryBuilder.select" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 17, - "character": 10 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 176, - "name": "PostgrestQueryBuilder.select" - } - }, - { - "id": 227, - "name": "then", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 228, - "name": "then", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "typeParameter": [ - { - "id": 229, - "name": "TResult1", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExported": true - } - }, - { - "id": 230, - "name": "TResult2", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExported": true - } - } - ], - "parameters": [ - { - "id": 231, - "name": "onfulfilled", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 232, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 233, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 234, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestResponse" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "typeParameter", - "name": "TResult1", - "default": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestResponse" - } - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "TResult1", - "default": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestResponse" - } - } - ], - "name": "PromiseLike" - } - ] - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", - "line": 49, - "character": 75 - } - ] - } - }, - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - }, - { - "id": 235, - "name": "onrejected", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 236, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 237, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 238, - "name": "reason", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "typeParameter", - "name": "TResult2", - "default": { - "type": "intrinsic", - "name": "never" - } - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "TResult2", - "default": { - "type": "intrinsic", - "name": "never" - } - } - ], - "name": "PromiseLike" - } - ] - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", - "line": 49, - "character": 176 - } - ] - } - }, - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "null" - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "typeParameter", - "name": "TResult1", - "default": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestResponse" - } - }, - { - "type": "typeParameter", - "name": "TResult2", - "default": { - "type": "intrinsic", - "name": "never" - } - } - ] - } - ], - "name": "PromiseLike" - }, - "inheritedFrom": { - "type": "reference", - "id": 227, - "name": "PostgrestBuilder.then" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", - "line": 49, - "character": 8 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 227, - "name": "PostgrestBuilder.then" - } - }, - { - "id": 206, - "name": "update", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 207, - "name": "update", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Performs an UPDATE on the table." - }, - "parameters": [ - { - "id": 208, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The values to update." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "Partial" - } - }, - { - "id": 209, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "originalName": "__1", - "type": { - "type": "reflection", - "declaration": { - "id": 210, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 212, - "name": "count", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "Count algorithm to use to count rows in a table.\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 61, - "character": 49 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "null" - }, - { - "type": "stringLiteral", - "value": "exact" - }, - { - "type": "stringLiteral", - "value": "planned" - }, - { - "type": "stringLiteral", - "value": "estimated" - } - ] - } - }, - { - "id": 211, - "name": "returning", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "By default the updated record is returned. Set this to 'minimal' if you don't need this value." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 61, - "character": 42 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "stringLiteral", - "value": "minimal" - }, - { - "type": "stringLiteral", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [212, 211] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 61, - "character": 30 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestFilterBuilder" - }, - "inheritedFrom": { - "type": "reference", - "id": 206, - "name": "PostgrestQueryBuilder.update" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 61, - "character": 10 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 206, - "name": "PostgrestQueryBuilder.update" - } - }, - { - "id": 198, - "name": "upsert", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 199, - "name": "upsert", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Performs an UPSERT into the table." - }, - "parameters": [ - { - "id": 200, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The values to insert." - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "Partial" - } - } - ] - } - }, - { - "id": 201, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true, - "isOptional": true - }, - "originalName": "__1", - "type": { - "type": "reflection", - "declaration": { - "id": 202, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 205, - "name": "count", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "Count algorithm to use to count rows in a table.\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 49, - "character": 76 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "null" - }, - { - "type": "stringLiteral", - "value": "exact" - }, - { - "type": "stringLiteral", - "value": "planned" - }, - { - "type": "stringLiteral", - "value": "estimated" - } - ] - } - }, - { - "id": 203, - "name": "onConflict", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 49, - "character": 58 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 204, - "name": "returning", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "text": "By default the new record is returned. Set this to 'minimal' if you don't need this value." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 49, - "character": 69 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "stringLiteral", - "value": "minimal" - }, - { - "type": "stringLiteral", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [205, 203, 204] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 49, - "character": 45 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestFilterBuilder" - }, - "inheritedFrom": { - "type": "reference", - "id": 198, - "name": "PostgrestQueryBuilder.upsert" - } - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", - "line": 49, - "character": 10 - } - ], - "inheritedFrom": { - "type": "reference", - "id": 198, - "name": "PostgrestQueryBuilder.upsert" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [157] - }, - { - "title": "Properties", - "kind": 1024, - "children": [156, 155, 226, 221, 219, 225, 220] - }, - { - "title": "Methods", - "kind": 2048, - "children": [213, 183, 169, 176, 227, 206, 198] - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 6, - "character": 33 - } - ], - "extendedTypes": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestQueryBuilder" - } - ], - "implementedTypes": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "typeParameter", - "name": "T" - } - ], - "name": "PostgrestResponse" - } - ], - "name": "PromiseLike" - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [153] - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseQueryBuilder.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 129, - "name": "\"lib/SupabaseRealtimeClient\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts", - "children": [ - { - "id": 130, - "name": "SupabaseRealtimeClient", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 132, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 133, - "name": "new SupabaseRealtimeClient", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 134, - "name": "socket", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "RealtimeClient" - } - }, - { - "id": 135, - "name": "schema", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 136, - "name": "tableName", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 130, - "name": "SupabaseRealtimeClient" - } - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseRealtimeClient.ts", - "line": 5, - "character": 36 - } - ] - }, - { - "id": 131, - "name": "subscription", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseRealtimeClient.ts", - "line": 5, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "RealtimeSubscription" - } - }, - { - "id": 137, - "name": "getPayloadRecords", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 138, - "name": "getPayloadRecords", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 139, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 140, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 141, - "name": "new", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseRealtimeClient.ts", - "line": 14, - "character": 9 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 142, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - } - } - } - }, - { - "id": 143, - "name": "old", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/SupabaseRealtimeClient.ts", - "line": 15, - "character": 9 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 144, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - } - } - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [141, 143] - } - ] - } - } - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseRealtimeClient.ts", - "line": 12, - "character": 27 - } - ] - }, - { - "id": 145, - "name": "on", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 146, - "name": "on", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The event you want to listen to." - }, - "parameters": [ - { - "id": 147, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "The event" - }, - "type": { - "type": "reference", - "id": 25, - "name": "SupabaseEventTypes" - } - }, - { - "id": 148, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "comment": { - "text": "A callback function that is called whenever the event occurs.\n" - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "unknown", - "name": "this" - } - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseRealtimeClient.ts", - "line": 35, - "character": 4 - } - ] - }, - { - "id": 149, - "name": "subscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 150, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Enables the subscription." - }, - "parameters": [ - { - "id": 151, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "Function" - }, - "defaultValue": "() => {}" - } - ], - "type": { - "type": "reference", - "name": "RealtimeSubscription" - } - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseRealtimeClient.ts", - "line": 56, - "character": 11 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [132] - }, - { - "title": "Properties", - "kind": 1024, - "children": [131] - }, - { - "title": "Methods", - "kind": 2048, - "children": [137, 145, 149] - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseRealtimeClient.ts", - "line": 4, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [130] - } - ], - "sources": [ - { - "fileName": "src/lib/SupabaseRealtimeClient.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1, - "name": "\"lib/constants\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/constants.ts", - "children": [ - { - "id": 2, - "name": "DEFAULT_HEADERS", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isConst": true - }, - "sources": [ - { - "fileName": "src/lib/constants.ts", - "line": 3, - "character": 28 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 3, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - } - } - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [2] - } - ], - "sources": [ - { - "fileName": "src/lib/constants.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 308, - "name": "\"lib/helpers\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts", - "children": [ - { - "id": 309, - "name": "uuid", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 310, - "name": "uuid", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "src/lib/helpers.ts", - "line": 3, - "character": 20 - } - ] - } - ], - "groups": [ - { - "title": "Functions", - "kind": 64, - "children": [309] - } - ], - "sources": [ - { - "fileName": "src/lib/helpers.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 4, - "name": "\"lib/types\"", - "kind": 1, - "kindString": "Module", - "flags": { - "isExported": true - }, - "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/types.ts", - "children": [ - { - "id": 5, - "name": "SupabaseClientOptions", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1, - "character": 33 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 6, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 12, - "name": "autoRefreshToken", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Automatically refreshes the token for logged in users." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 13, - "character": 18 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 14, - "name": "detectSessionInUrl", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Detect a session from the URL. Used for OAuth login callbacks." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 21, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 8, - "name": "headers", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Optional headers for initializing the client." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 9, - "character": 9 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 9, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "indexSignature": [ - { - "id": 10, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExported": true - }, - "parameters": [ - { - "id": 11, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExported": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - }, - { - "id": 15, - "name": "localStorage", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "A storage provider. Used to store the logged in session." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 25, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "Storage" - } - }, - { - "id": 13, - "name": "persistSession", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Whether to persist a logged in session to storage." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 17, - "character": 16 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "false" - }, - { - "type": "intrinsic", - "name": "true" - } - ] - } - }, - { - "id": 7, - "name": "schema", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 5, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [12, 14, 8, 15, 13, 7] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1, - "character": 35 - } - ] - } - } - }, - { - "id": 25, - "name": "SupabaseEventTypes", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 39, - "character": 30 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "INSERT" - }, - { - "type": "stringLiteral", - "value": "UPDATE" - }, - { - "type": "stringLiteral", - "value": "DELETE" - }, - { - "type": "stringLiteral", - "value": "*" - } - ] - } - }, - { - "id": 16, - "name": "SupabaseRealtimePayload", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExported": true - }, - "typeParameter": [ - { - "id": 17, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExported": true - } - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 28, - "character": 35 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 18, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 19, - "name": "commit_timestamp", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 29, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 20, - "name": "eventType", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 30, - "character": 11 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "INSERT" - }, - { - "type": "stringLiteral", - "value": "UPDATE" - }, - { - "type": "stringLiteral", - "value": "DELETE" - } - ] - } - }, - { - "id": 23, - "name": "new", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The new record. Present for 'INSERT' and 'UPDATE' events." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 34, - "character": 5 - } - ], - "type": { - "type": "typeParameter", - "name": "T" - } - }, - { - "id": 24, - "name": "old", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The previous record. Present for 'UPDATE' and 'DELETE' events." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 36, - "character": 5 - } - ], - "type": { - "type": "typeParameter", - "name": "T" - } - }, - { - "id": 21, - "name": "schema", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 31, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 22, - "name": "table", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 32, - "character": 7 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [19, 20, 23, 24, 21, 22] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 28, - "character": 40 - } - ] - } - } - } - ], - "groups": [ - { - "title": "Type aliases", - "kind": 4194304, - "children": [5, 25, 16] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 1, - "character": 0 - } - ] - } - ], - "groups": [ - { - "title": "Modules", - "kind": 1, - "children": [239, 302, 26, 152, 129, 1, 308, 4] - } - ] -} + "id": 0, + "name": "@supabase/supabase-js", + "kind": 0, + "flags": {}, + "originalName": "", + "children": [ + { + "id": 243, + "name": "\"SupabaseClient\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts", + "children": [ + { + "id": 244, + "name": "SupabaseClient", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Supabase Client.", + "text": "An isomorphic Javascript client for interacting with Postgres.\n" + }, + "children": [ + { + "id": 252, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Create a new client for use in the browser." + }, + "signatures": [ + { + "id": 255, + "name": "new SupabaseClient", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Create a new client for use in the browser." + }, + "parameters": [ + { + "id": 256, + "name": "supabaseUrl", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The unique Supabase URL which is supplied when you create a new project in your project dashboard." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 257, + "name": "supabaseKey", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The unique Supabase Key which is supplied when you create a new project in your project dashboard." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 258, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 5, + "name": "SupabaseClientOptions" + } + } + ], + "type": { + "type": "reference", + "id": 244, + "name": "SupabaseClient" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 34, + "character": 36 + } + ] + }, + { + "id": 245, + "name": "auth", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Supabase Auth allows you to create and manage user sessions for access to data that is secured by access policies." + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 27, + "character": 6 + } + ], + "type": { + "type": "reference", + "id": 27, + "name": "SupabaseAuthClient" + } + }, + { + "id": 249, + "name": "authUrl", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 32, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 251, + "name": "realtime", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 34, + "character": 20 + } + ], + "type": { + "type": "reference", + "name": "RealtimeClient" + } + }, + { + "id": 248, + "name": "realtimeUrl", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 31, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 247, + "name": "restUrl", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 30, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 246, + "name": "schema", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 29, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 250, + "name": "storageUrl", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 33, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 254, + "name": "supabaseKey", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true, + "isConstructorProperty": true + }, + "comment": { + "shortText": "The unique Supabase Key which is supplied when you create a new project in your project dashboard." + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 48, + "character": 25 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 253, + "name": "supabaseUrl", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true, + "isConstructorProperty": true + }, + "comment": { + "shortText": "The unique Supabase URL which is supplied when you create a new project in your project dashboard." + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 47, + "character": 25 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 259, + "name": "storage", + "kind": 262144, + "kindString": "Accessor", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Supabase Storage allows you to manage user-generated content, such as photos or videos." + }, + "getSignature": [ + { + "id": 260, + "name": "__get", + "kind": 524288, + "kindString": "Get signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Supabase Storage allows you to manage user-generated content, such as photos or videos." + }, + "type": { + "type": "reference", + "name": "SupabaseStorageClient" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 73, + "character": 13 + } + ] + }, + { + "id": 295, + "name": "_closeChannel", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 296, + "name": "_closeChannel", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 297, + "name": "subscription", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "RealtimeSubscription" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 178, + "character": 23 + } + ] + }, + { + "id": 273, + "name": "_closeSubscription", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 274, + "name": "_closeSubscription", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 275, + "name": "subscription", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "RealtimeSubscription" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 125, + "character": 34 + } + ] + }, + { + "id": 290, + "name": "_getAuthHeaders", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 291, + "name": "_getAuthHeaders", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 292, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 293, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 294, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 170, + "character": 28 + } + ] + } + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 170, + "character": 25 + } + ] + }, + { + "id": 288, + "name": "_initPostgRESTClient", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 289, + "name": "_initPostgRESTClient", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "PostgrestClient" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 163, + "character": 30 + } + ] + }, + { + "id": 286, + "name": "_initRealtimeClient", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 287, + "name": "_initRealtimeClient", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "RealtimeClient" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 157, + "character": 29 + } + ] + }, + { + "id": 278, + "name": "_initSupabaseAuthClient", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 279, + "name": "_initSupabaseAuthClient", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 280, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 281, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 282, + "name": "autoRefreshToken", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 139, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 284, + "name": "detectSessionInUrl", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 141, + "character": 22 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 285, + "name": "localStorage", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 142, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "name": "Storage" + } + ] + } + }, + { + "id": 283, + "name": "persistSession", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 140, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 282, + 284, + 285, + 283 + ] + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 138, + "character": 34 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "id": 27, + "name": "SupabaseAuthClient" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 138, + "character": 33 + } + ] + }, + { + "id": 261, + "name": "from", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 262, + "name": "from", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Perform a table operation." + }, + "typeParameter": [ + { + "id": 263, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": { + "isExported": true + } + } + ], + "parameters": [ + { + "id": 264, + "name": "table", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The table name to operate on.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 157, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T", + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "name": "SupabaseQueryBuilder" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 82, + "character": 6 + } + ] + }, + { + "id": 276, + "name": "getSubscriptions", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 277, + "name": "getSubscriptions", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Returns an array of all your subscriptions." + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "RealtimeSubscription" + } + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 134, + "character": 18 + } + ] + }, + { + "id": 270, + "name": "removeSubscription", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 271, + "name": "removeSubscription", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Removes an active subscription and returns the number of open connections." + }, + "parameters": [ + { + "id": 272, + "name": "subscription", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The subscription you want to remove.\n" + }, + "type": { + "type": "reference", + "name": "RealtimeSubscription" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Promise" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 108, + "character": 20 + } + ] + }, + { + "id": 265, + "name": "rpc", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 266, + "name": "rpc", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Perform a stored procedure call." + }, + "typeParameter": [ + { + "id": 267, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": { + "isExported": true + } + } + ], + "parameters": [ + { + "id": 268, + "name": "fn", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The function name to call." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 269, + "name": "params", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "The parameters to pass to the function call.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "object" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "unknown", + "name": "T" + } + ], + "name": "PostgrestFilterBuilder" + } + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 98, + "character": 5 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 252 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 245, + 249, + 251, + 248, + 247, + 246, + 250, + 254, + 253 + ] + }, + { + "title": "Accessors", + "kind": 262144, + "children": [ + 259 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 295, + 273, + 290, + 288, + 286, + 278, + 261, + 276, + 270, + 265 + ] + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 23, + "character": 35 + } + ] + }, + { + "id": 298, + "name": "DEFAULT_OPTIONS", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isConst": true + }, + "children": [ + { + "id": 300, + "name": "autoRefreshToken", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 11, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + }, + { + "id": 302, + "name": "detectSessionInUrl", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 13, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + }, + { + "id": 304, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 15, + "character": 9 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 305, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + }, + "defaultValue": "DEFAULT_HEADERS" + }, + { + "id": 303, + "name": "localStorage", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 14, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "Storage" + }, + "defaultValue": "globalThis.localStorage" + }, + { + "id": 301, + "name": "persistSession", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 12, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + }, + { + "id": 299, + "name": "schema", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 10, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"public\"" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 300, + 302, + 304, + 303, + 301, + 299 + ] + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 9, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 244 + ] + }, + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 298 + ] + } + ], + "sources": [ + { + "fileName": "src/SupabaseClient.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 306, + "name": "\"index\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts", + "children": [ + { + "id": 307, + "name": "createClient", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true, + "isConst": true + }, + "comment": { + "shortText": "Creates a new Supabase Client." + }, + "signatures": [ + { + "id": 308, + "name": "createClient", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Creates a new Supabase Client." + }, + "parameters": [ + { + "id": 309, + "name": "supabaseUrl", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 310, + "name": "supabaseKey", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 311, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "reference", + "id": 5, + "name": "SupabaseClientOptions" + } + } + ], + "type": { + "type": "reference", + "id": 244, + "name": "SupabaseClient" + } + } + ], + "sources": [ + { + "fileName": "src/index.ts", + "line": 10, + "character": 18 + } + ] + } + ], + "groups": [ + { + "title": "Functions", + "kind": 64, + "children": [ + 307 + ] + } + ], + "sources": [ + { + "fileName": "src/index.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 26, + "name": "\"lib/SupabaseAuthClient\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseAuthClient.ts", + "children": [ + { + "id": 27, + "name": "SupabaseAuthClient", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 28, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 29, + "name": "new SupabaseAuthClient", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 30, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 31, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 38, + "name": "autoRefreshToken", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseAuthClient.ts", + "line": 8, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 37, + "name": "detectSessionInUrl", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseAuthClient.ts", + "line": 7, + "character": 22 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 33, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseAuthClient.ts", + "line": 6, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 34, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 35, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 36, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 40, + "name": "localStorage", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseAuthClient.ts", + "line": 10, + "character": 16 + } + ], + "type": { + "type": "reference", + "name": "Storage" + } + }, + { + "id": 39, + "name": "persistSession", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseAuthClient.ts", + "line": 9, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 32, + "name": "url", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseAuthClient.ts", + "line": 5, + "character": 7 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 38, + 37, + 33, + 40, + 39, + 32 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseAuthClient.ts", + "line": 4, + "character": 22 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "id": 27, + "name": "SupabaseAuthClient" + }, + "overwrites": { + "type": "reference", + "name": "GoTrueClient.__constructor" + } + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseAuthClient.ts", + "line": 3, + "character": 54 + } + ], + "overwrites": { + "type": "reference", + "name": "GoTrueClient.__constructor" + } + }, + { + "id": 41, + "name": "api", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 8, + "character": 7 + } + ], + "type": { + "type": "reference", + "name": "GoTrueApi" + }, + "inheritedFrom": { + "type": "reference", + "id": 41, + "name": "GoTrueClient.api" + } + }, + { + "id": 44, + "name": "autoRefreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 17, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "id": 44, + "name": "GoTrueClient.autoRefreshToken" + } + }, + { + "id": 43, + "name": "currentSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "comment": { + "shortText": "The session object for the currently logged in user or null." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 16, + "character": 28 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "id": 43, + "name": "GoTrueClient.currentSession" + } + }, + { + "id": 42, + "name": "currentUser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "comment": { + "shortText": "The currently logged in user or null." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 12, + "character": 25 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "id": 42, + "name": "GoTrueClient.currentUser" + } + }, + { + "id": 46, + "name": "localStorage", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 19, + "character": 26 + } + ], + "type": { + "type": "reference", + "name": "Storage" + }, + "inheritedFrom": { + "type": "reference", + "id": 46, + "name": "GoTrueClient.localStorage" + } + }, + { + "id": 45, + "name": "persistSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 18, + "character": 28 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "id": 45, + "name": "GoTrueClient.persistSession" + } + }, + { + "id": 48, + "name": "refreshTokenTimer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 21, + "character": 31 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "query", + "queryType": { + "type": "reference", + "name": "setTimeout" + } + } + ], + "name": "ReturnType" + }, + "inheritedFrom": { + "type": "reference", + "id": 48, + "name": "GoTrueClient.refreshTokenTimer" + } + }, + { + "id": 47, + "name": "stateChangeEmitters", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 20, + "character": 33 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "Subscription" + } + ], + "name": "Map" + }, + "inheritedFrom": { + "type": "reference", + "id": 47, + "name": "GoTrueClient.stateChangeEmitters" + } + }, + { + "id": 108, + "name": "getSessionFromUrl", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 109, + "name": "getSessionFromUrl", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Gets the session data from a URL string" + }, + "parameters": [ + { + "id": 110, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 111, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 112, + "name": "storeSession", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "Optionally store the session in the browser\n" + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 122, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 112 + ] + } + ] + } + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 113, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 114, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 124, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 115, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 125, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 114, + 115 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 123, + "character": 16 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 108, + "name": "GoTrueClient.getSessionFromUrl" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 121, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 108, + "name": "GoTrueClient.getSessionFromUrl" + } + }, + { + "id": 120, + "name": "onAuthStateChange", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 121, + "name": "onAuthStateChange", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Receive a notification every time an auth event happens.", + "returns": "A subscription object which can be used to unsubscribe itself.\n" + }, + "parameters": [ + { + "id": 122, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 123, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 124, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 125, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "AuthChangeEvent" + } + }, + { + "id": 126, + "name": "session", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 140, + "character": 31 + } + ] + } + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 127, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 128, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 141, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Subscription" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 129, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 142, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 128, + 129 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 140, + "character": 91 + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 120, + "name": "GoTrueClient.onAuthStateChange" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 140, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 120, + "name": "GoTrueClient.onAuthStateChange" + } + }, + { + "id": 86, + "name": "refreshSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 87, + "name": "refreshSession", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Force refreshes the session including the user data in case it was updated in a different session." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 88, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 89, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 92, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 91, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 94, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 90, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 93, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 89, + 91, + 90 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 91, + "character": 30 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 86, + "name": "GoTrueClient.refreshSession" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 91, + "character": 18 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 86, + "name": "GoTrueClient.refreshSession" + } + }, + { + "id": 84, + "name": "session", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 85, + "name": "session", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Returns the session data, if there is an active session." + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "id": 84, + "name": "GoTrueClient.session" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 87, + "character": 11 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 84, + "name": "GoTrueClient.session" + } + }, + { + "id": 105, + "name": "setAuth", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 106, + "name": "setAuth", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests." + }, + "parameters": [ + { + "id": 107, + "name": "access_token", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "a jwt access token\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Session" + }, + "inheritedFrom": { + "type": "reference", + "id": 105, + "name": "GoTrueClient.setAuth" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 116, + "character": 11 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 105, + "name": "GoTrueClient.setAuth" + } + }, + { + "id": 99, + "name": "setSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 100, + "name": "setSession", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Sets the session data from refresh_token and returns current Session and Error" + }, + "parameters": [ + { + "id": 101, + "name": "refresh_token", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "a JWT token\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 102, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 104, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 110, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 103, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 109, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 104, + 103 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 108, + "character": 47 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 99, + "name": "GoTrueClient.setSession" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 108, + "character": 14 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 99, + "name": "GoTrueClient.setSession" + } + }, + { + "id": 63, + "name": "signIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 64, + "name": "signIn", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Log in an existing user, or login via a third-party provider." + }, + "parameters": [ + { + "id": 65, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 66, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 67, + "name": "email", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's email address." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 67, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 68, + "name": "password", + "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": 67, + "character": 28 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 70, + "name": "provider", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "One of the providers supported by GoTrue." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 67, + "character": 52 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "stringLiteral", + "value": "azure" + }, + { + "type": "stringLiteral", + "value": "bitbucket" + }, + { + "type": "stringLiteral", + "value": "facebook" + }, + { + "type": "stringLiteral", + "value": "github" + }, + { + "type": "stringLiteral", + "value": "gitlab" + }, + { + "type": "stringLiteral", + "value": "google" + }, + { + "type": "stringLiteral", + "value": "twitter" + }, + { + "type": "stringLiteral", + "value": "apple" + } + ] + } + }, + { + "id": 69, + "name": "refreshToken", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "A valid refresh token that was returned on login." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 67, + "character": 42 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 67, + 68, + 70, + 69 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 67, + "character": 11 + } + ] + } + } + }, + { + "id": 71, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 72, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 73, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 68, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 74, + "name": "scopes", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 69, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 73, + 74 + ] + } + ] + } + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 75, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 81, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 76, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 80, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 75, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 78, + "name": "provider", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 73, + "character": 16 + } + ], + "type": { + "type": "reference", + "name": "Provider" + } + }, + { + "id": 76, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 71, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 79, + "name": "url", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 74, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 77, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 72, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 81, + 80, + 78, + 76, + 79, + 77 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 70, + "character": 16 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 63, + "name": "GoTrueClient.signIn" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 67, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 63, + "name": "GoTrueClient.signIn" + } + }, + { + "id": 116, + "name": "signOut", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 117, + "name": "signOut", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "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.", + "text": "For server-side management, you can disable sessions by passing a JWT through to `auth.api.signOut(JWT: string)`\n" + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 118, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 119, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 134, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 119 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 133, + "character": 23 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 116, + "name": "GoTrueClient.signOut" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 133, + "character": 11 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 116, + "name": "GoTrueClient.signOut" + } + }, + { + "id": 49, + "name": "signUp", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 50, + "name": "signUp", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Creates a new user." + }, + "parameters": [ + { + "id": 51, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 52, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 53, + "name": "email", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "The user's email address." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 49, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 54, + "name": "password", + "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": 49, + "character": 28 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 53, + 54 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 49, + "character": 11 + } + ] + } + } + }, + { + "id": 55, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 56, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 57, + "name": "redirectTo", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 50, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 57 + ] + } + ] + } + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 58, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 62, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 55, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 61, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 54, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 60, + "name": "session", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 53, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Session" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 59, + "name": "user", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 52, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 62, + 61, + 60, + 59 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 51, + "character": 16 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 49, + "name": "GoTrueClient.signUp" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 49, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 49, + "name": "GoTrueClient.signUp" + } + }, + { + "id": 92, + "name": "update", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 93, + "name": "update", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Updates user data, if there is a logged in user." + }, + "parameters": [ + { + "id": 94, + "name": "attributes", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "UserAttributes" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 95, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 96, + "name": "data", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 100, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 98, + "name": "error", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 102, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "Error" + }, + { + "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": 101, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 96, + 98, + 97 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 99, + "character": 48 + } + ] + } + } + ], + "name": "Promise" + }, + "inheritedFrom": { + "type": "reference", + "id": 92, + "name": "GoTrueClient.update" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 99, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 92, + "name": "GoTrueClient.update" + } + }, + { + "id": 82, + "name": "user", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 83, + "name": "user", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.", + "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "name": "User" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "id": 82, + "name": "GoTrueClient.user" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts", + "line": 83, + "character": 8 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 82, + "name": "GoTrueClient.user" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 28 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 41, + 44, + 43, + 42, + 46, + 45, + 48, + 47 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 108, + 120, + 86, + 84, + 105, + 99, + 63, + 116, + 49, + 92, + 82 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseAuthClient.ts", + "line": 3, + "character": 31 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "GoTrueClient" + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 27 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseAuthClient.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 156, + "name": "\"lib/SupabaseQueryBuilder\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts", + "children": [ + { + "id": 157, + "name": "SupabaseQueryBuilder", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 158, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": { + "isExported": true + } + } + ], + "children": [ + { + "id": 161, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 162, + "name": "new SupabaseQueryBuilder", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 163, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 164, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "originalName": "__1", + "type": { + "type": "reflection", + "declaration": { + "id": 165, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 166, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 13, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 167, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 168, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 169, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 171, + "name": "realtime", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 15, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "RealtimeClient" + } + }, + { + "id": 170, + "name": "schema", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 14, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 172, + "name": "table", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 16, + "character": 11 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 166, + 171, + 170, + 172 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 11, + "character": 16 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "id": 157, + "name": "SupabaseQueryBuilder" + }, + "overwrites": { + "type": "reference", + "name": "PostgrestQueryBuilder.__constructor" + } + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 8, + "character": 35 + } + ], + "overwrites": { + "type": "reference", + "name": "PostgrestQueryBuilder.__constructor" + } + }, + { + "id": 160, + "name": "_realtime", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 8, + "character": 19 + } + ], + "type": { + "type": "reference", + "name": "RealtimeClient" + } + }, + { + "id": 159, + "name": "_subscription", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 7, + "character": 23 + } + ], + "type": { + "type": "reference", + "id": 131, + "name": "SupabaseRealtimeClient" + } + }, + { + "id": 230, + "name": "body", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", + "line": 47, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "Partial" + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "id": 230, + "name": "PostgrestBuilder.body" + } + }, + { + "id": 225, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", + "line": 43, + "character": 21 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 226, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 227, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 228, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", + "line": 43, + "character": 22 + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "id": 225, + "name": "PostgrestBuilder.headers" + } + }, + { + "id": 223, + "name": "method", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", + "line": 41, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "GET" + }, + { + "type": "stringLiteral", + "value": "HEAD" + }, + { + "type": "stringLiteral", + "value": "POST" + }, + { + "type": "stringLiteral", + "value": "PATCH" + }, + { + "type": "stringLiteral", + "value": "DELETE" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "id": 223, + "name": "PostgrestBuilder.method" + } + }, + { + "id": 229, + "name": "schema", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", + "line": 46, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "id": 229, + "name": "PostgrestBuilder.schema" + } + }, + { + "id": 224, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", + "line": 42, + "character": 17 + } + ], + "type": { + "type": "reference", + "name": "URL" + }, + "inheritedFrom": { + "type": "reference", + "id": 224, + "name": "PostgrestBuilder.url" + } + }, + { + "id": 217, + "name": "delete", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 218, + "name": "delete", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Performs a DELETE on the table." + }, + "parameters": [ + { + "id": 219, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "originalName": "__0", + "type": { + "type": "reflection", + "declaration": { + "id": 220, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 222, + "name": "count", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "Count algorithm to use to count rows in a table.\n" + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 71, + "character": 29 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "stringLiteral", + "value": "exact" + }, + { + "type": "stringLiteral", + "value": "planned" + }, + { + "type": "stringLiteral", + "value": "estimated" + } + ] + } + }, + { + "id": 221, + "name": "returning", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "If `true`, return the deleted row(s) in the response." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 71, + "character": 22 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "stringLiteral", + "value": "minimal" + }, + { + "type": "stringLiteral", + "value": "representation" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 222, + 221 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 71, + "character": 11 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestFilterBuilder" + }, + "inheritedFrom": { + "type": "reference", + "id": 217, + "name": "PostgrestQueryBuilder.delete" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 71, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 217, + "name": "PostgrestQueryBuilder.delete" + } + }, + { + "id": 187, + "name": "insert", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 188, + "name": "insert", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Performs an INSERT into the table." + }, + "parameters": [ + { + "id": 189, + "name": "values", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The values to insert." + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "Partial" + } + } + ] + } + }, + { + "id": 190, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 191, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 193, + "name": "count", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 30, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "stringLiteral", + "value": "exact" + }, + { + "type": "stringLiteral", + "value": "planned" + }, + { + "type": "stringLiteral", + "value": "estimated" + } + ] + } + }, + { + "id": 192, + "name": "returning", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 29, + "character": 17 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "minimal" + }, + { + "type": "stringLiteral", + "value": "representation" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 193, + 192 + ] + } + ] + } + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestFilterBuilder" + }, + "inheritedFrom": { + "type": "reference", + "id": 187, + "name": "PostgrestQueryBuilder.insert" + } + }, + { + "id": 194, + "name": "insert", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "tags": [ + { + "tag": "deprecated", + "text": "Use `upsert()` instead.\n" + } + ] + }, + "parameters": [ + { + "id": 195, + "name": "values", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "Partial" + } + } + ] + } + }, + { + "id": 196, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 197, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 201, + "name": "count", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 39, + "character": 13 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "stringLiteral", + "value": "exact" + }, + { + "type": "stringLiteral", + "value": "planned" + }, + { + "type": "stringLiteral", + "value": "estimated" + } + ] + } + }, + { + "id": 199, + "name": "onConflict", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 37, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 200, + "name": "returning", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 38, + "character": 17 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "minimal" + }, + { + "type": "stringLiteral", + "value": "representation" + } + ] + } + }, + { + "id": 198, + "name": "upsert", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 36, + "character": 14 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 201, + 199, + 200, + 198 + ] + } + ] + } + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestFilterBuilder" + }, + "inheritedFrom": { + "type": "reference", + "id": 187, + "name": "PostgrestQueryBuilder.insert" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 28, + "character": 10 + }, + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 35, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 187, + "name": "PostgrestQueryBuilder.insert" + } + }, + { + "id": 173, + "name": "on", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 174, + "name": "on", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Subscribe to realtime changes in your databse." + }, + "parameters": [ + { + "id": 175, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The database event which you would like to receive updates for, or you can use the special wildcard `*` to listen to all changes." + }, + "type": { + "type": "reference", + "id": 25, + "name": "SupabaseEventTypes" + } + }, + { + "id": 176, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A callback that will handle the payload that is sent whenever your database changes.\n" + }, + "type": { + "type": "reflection", + "declaration": { + "id": 177, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 178, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 179, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 16, + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "SupabaseRealtimePayload" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 37, + "character": 13 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "id": 131, + "name": "SupabaseRealtimeClient" + } + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 35, + "character": 4 + } + ] + }, + { + "id": 180, + "name": "select", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 181, + "name": "select", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Performs vertical filtering with SELECT." + }, + "parameters": [ + { + "id": 182, + "name": "columns", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "text": "The columns to retrieve, separated by commas." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 183, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "originalName": "__1", + "type": { + "type": "reflection", + "declaration": { + "id": 184, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 186, + "name": "count", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "Count algorithm to use to count rows in a table.\n" + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 17, + "character": 42 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "stringLiteral", + "value": "exact" + }, + { + "type": "stringLiteral", + "value": "planned" + }, + { + "type": "stringLiteral", + "value": "estimated" + } + ] + } + }, + { + "id": 185, + "name": "head", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "When set to true, select will void data." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 17, + "character": 35 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 186, + 185 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 17, + "character": 28 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestFilterBuilder" + }, + "inheritedFrom": { + "type": "reference", + "id": 180, + "name": "PostgrestQueryBuilder.select" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 17, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 180, + "name": "PostgrestQueryBuilder.select" + } + }, + { + "id": 231, + "name": "then", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 232, + "name": "then", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 233, + "name": "TResult1", + "kind": 131072, + "kindString": "Type parameter", + "flags": { + "isExported": true + } + }, + { + "id": 234, + "name": "TResult2", + "kind": 131072, + "kindString": "Type parameter", + "flags": { + "isExported": true + } + } + ], + "parameters": [ + { + "id": 235, + "name": "onfulfilled", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 236, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 237, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 238, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestResponse" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "TResult1", + "default": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestResponse" + } + }, + { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "TResult1", + "default": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestResponse" + } + } + ], + "name": "PromiseLike" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", + "line": 49, + "character": 75 + } + ] + } + }, + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + }, + { + "id": 239, + "name": "onrejected", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 240, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 241, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 242, + "name": "reason", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "TResult2", + "default": { + "type": "intrinsic", + "name": "never" + } + }, + { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "TResult2", + "default": { + "type": "intrinsic", + "name": "never" + } + } + ], + "name": "PromiseLike" + } + ] + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", + "line": 49, + "character": 176 + } + ] + } + }, + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + } + ] + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "typeParameter", + "name": "TResult1", + "default": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestResponse" + } + }, + { + "type": "typeParameter", + "name": "TResult2", + "default": { + "type": "intrinsic", + "name": "never" + } + } + ] + } + ], + "name": "PromiseLike" + }, + "inheritedFrom": { + "type": "reference", + "id": 231, + "name": "PostgrestBuilder.then" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/types.d.ts", + "line": 49, + "character": 8 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 231, + "name": "PostgrestBuilder.then" + } + }, + { + "id": 210, + "name": "update", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 211, + "name": "update", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Performs an UPDATE on the table." + }, + "parameters": [ + { + "id": 212, + "name": "values", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The values to update." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "Partial" + } + }, + { + "id": 213, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "originalName": "__1", + "type": { + "type": "reflection", + "declaration": { + "id": 214, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 216, + "name": "count", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "Count algorithm to use to count rows in a table.\n" + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 61, + "character": 49 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "stringLiteral", + "value": "exact" + }, + { + "type": "stringLiteral", + "value": "planned" + }, + { + "type": "stringLiteral", + "value": "estimated" + } + ] + } + }, + { + "id": 215, + "name": "returning", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "By default the updated record is returned. Set this to 'minimal' if you don't need this value." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 61, + "character": 42 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "stringLiteral", + "value": "minimal" + }, + { + "type": "stringLiteral", + "value": "representation" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 216, + 215 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 61, + "character": 30 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestFilterBuilder" + }, + "inheritedFrom": { + "type": "reference", + "id": 210, + "name": "PostgrestQueryBuilder.update" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 61, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 210, + "name": "PostgrestQueryBuilder.update" + } + }, + { + "id": 202, + "name": "upsert", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 203, + "name": "upsert", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Performs an UPSERT into the table." + }, + "parameters": [ + { + "id": 204, + "name": "values", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The values to insert." + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "Partial" + } + } + ] + } + }, + { + "id": 205, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true, + "isOptional": true + }, + "originalName": "__1", + "type": { + "type": "reflection", + "declaration": { + "id": 206, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 209, + "name": "count", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "Count algorithm to use to count rows in a table.\n" + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 49, + "character": 76 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "null" + }, + { + "type": "stringLiteral", + "value": "exact" + }, + { + "type": "stringLiteral", + "value": "planned" + }, + { + "type": "stringLiteral", + "value": "estimated" + } + ] + } + }, + { + "id": 207, + "name": "onConflict", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 49, + "character": 58 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 208, + "name": "returning", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "text": "By default the new record is returned. Set this to 'minimal' if you don't need this value." + }, + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 49, + "character": 69 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "stringLiteral", + "value": "minimal" + }, + { + "type": "stringLiteral", + "value": "representation" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 209, + 207, + 208 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 49, + "character": 45 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestFilterBuilder" + }, + "inheritedFrom": { + "type": "reference", + "id": 202, + "name": "PostgrestQueryBuilder.upsert" + } + } + ], + "sources": [ + { + "fileName": "node_modules/@supabase/postgrest-js/dist/main/lib/PostgrestQueryBuilder.d.ts", + "line": 49, + "character": 10 + } + ], + "inheritedFrom": { + "type": "reference", + "id": 202, + "name": "PostgrestQueryBuilder.upsert" + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 161 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 160, + 159, + 230, + 225, + 223, + 229, + 224 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 217, + 187, + 173, + 180, + 231, + 210, + 202 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 6, + "character": 33 + } + ], + "extendedTypes": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestQueryBuilder" + } + ], + "implementedTypes": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "typeParameter", + "name": "T" + } + ], + "name": "PostgrestResponse" + } + ], + "name": "PromiseLike" + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 157 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseQueryBuilder.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 130, + "name": "\"lib/SupabaseRealtimeClient\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts", + "children": [ + { + "id": 131, + "name": "SupabaseRealtimeClient", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 133, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 134, + "name": "new SupabaseRealtimeClient", + "kind": 16384, + "kindString": "Constructor signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 135, + "name": "socket", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "RealtimeClient" + } + }, + { + "id": 136, + "name": "schema", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 137, + "name": "tableName", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 131, + "name": "SupabaseRealtimeClient" + } + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 5, + "character": 36 + } + ] + }, + { + "id": 132, + "name": "subscription", + "kind": 1024, + "kindString": "Property", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 5, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "RealtimeSubscription" + } + }, + { + "id": 138, + "name": "getPayloadRecords", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 139, + "name": "getPayloadRecords", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 140, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 141, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 142, + "name": "new", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 14, + "character": 9 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 143, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + } + } + } + }, + { + "id": 144, + "name": "old", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 15, + "character": 9 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 145, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + } + } + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 142, + 144 + ] + } + ] + } + } + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 12, + "character": 27 + } + ] + }, + { + "id": 146, + "name": "on", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 147, + "name": "on", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The event you want to listen to." + }, + "parameters": [ + { + "id": 148, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "The event" + }, + "type": { + "type": "reference", + "id": 25, + "name": "SupabaseEventTypes" + } + }, + { + "id": 149, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "comment": { + "text": "A callback function that is called whenever the event occurs.\n" + }, + "type": { + "type": "reflection", + "declaration": { + "id": 150, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 151, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 152, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "id": 16, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "SupabaseRealtimePayload" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 35, + "character": 41 + } + ] + } + } + } + ], + "type": { + "type": "unknown", + "name": "this" + } + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 35, + "character": 4 + } + ] + }, + { + "id": 153, + "name": "subscribe", + "kind": 2048, + "kindString": "Method", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 154, + "name": "subscribe", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Enables the subscription." + }, + "parameters": [ + { + "id": 155, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "reference", + "name": "Function" + }, + "defaultValue": "() => {}" + } + ], + "type": { + "type": "reference", + "name": "RealtimeSubscription" + } + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 56, + "character": 11 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 133 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 132 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 138, + 146, + 153 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 4, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 131 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1, + "name": "\"lib/constants\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/constants.ts", + "children": [ + { + "id": 2, + "name": "DEFAULT_HEADERS", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isConst": true + }, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 3, + "character": 28 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 3, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + } + } + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 2 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 312, + "name": "\"lib/helpers\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts", + "children": [ + { + "id": 313, + "name": "uuid", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 314, + "name": "uuid", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "src/lib/helpers.ts", + "line": 3, + "character": 20 + } + ] + } + ], + "groups": [ + { + "title": "Functions", + "kind": 64, + "children": [ + 313 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/helpers.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 4, + "name": "\"lib/types\"", + "kind": 1, + "kindString": "Module", + "flags": { + "isExported": true + }, + "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/types.ts", + "children": [ + { + "id": 5, + "name": "SupabaseClientOptions", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1, + "character": 33 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 6, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 12, + "name": "autoRefreshToken", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "Automatically refreshes the token for logged in users." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 13, + "character": 18 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 14, + "name": "detectSessionInUrl", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "Detect a session from the URL. Used for OAuth login callbacks." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 21, + "character": 20 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 8, + "name": "headers", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "Optional headers for initializing the client." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 9, + "character": 9 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reflection", + "declaration": { + "id": 9, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "indexSignature": [ + { + "id": 10, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": { + "isExported": true + }, + "parameters": [ + { + "id": 11, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isExported": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 15, + "name": "localStorage", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "A storage provider. Used to store the logged in session." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 25, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "Storage" + } + }, + { + "id": 13, + "name": "persistSession", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "Whether to persist a logged in session to storage." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 17, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "false" + }, + { + "type": "intrinsic", + "name": "true" + } + ] + } + }, + { + "id": 7, + "name": "schema", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 5, + "character": 8 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 12, + 14, + 8, + 15, + 13, + 7 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1, + "character": 35 + } + ] + } + } + }, + { + "id": 25, + "name": "SupabaseEventTypes", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 39, + "character": 30 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "INSERT" + }, + { + "type": "stringLiteral", + "value": "UPDATE" + }, + { + "type": "stringLiteral", + "value": "DELETE" + }, + { + "type": "stringLiteral", + "value": "*" + } + ] + } + }, + { + "id": 16, + "name": "SupabaseRealtimePayload", + "kind": 4194304, + "kindString": "Type alias", + "flags": { + "isExported": true + }, + "typeParameter": [ + { + "id": 17, + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": { + "isExported": true + } + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 28, + "character": 35 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 18, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 19, + "name": "commit_timestamp", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 29, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 20, + "name": "eventType", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 30, + "character": 11 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "INSERT" + }, + { + "type": "stringLiteral", + "value": "UPDATE" + }, + { + "type": "stringLiteral", + "value": "DELETE" + } + ] + } + }, + { + "id": 23, + "name": "new", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The new record. Present for 'INSERT' and 'UPDATE' events." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 34, + "character": 5 + } + ], + "type": { + "type": "typeParameter", + "name": "T" + } + }, + { + "id": 24, + "name": "old", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "The previous record. Present for 'UPDATE' and 'DELETE' events." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 36, + "character": 5 + } + ], + "type": { + "type": "typeParameter", + "name": "T" + } + }, + { + "id": 21, + "name": "schema", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 31, + "character": 8 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 22, + "name": "table", + "kind": 32, + "kindString": "Variable", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 32, + "character": 7 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 19, + 20, + 23, + 24, + 21, + 22 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 28, + "character": 40 + } + ] + } + } + } + ], + "groups": [ + { + "title": "Type aliases", + "kind": 4194304, + "children": [ + 5, + 25, + 16 + ] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 1, + "character": 0 + } + ] + } + ], + "groups": [ + { + "title": "Modules", + "kind": 1, + "children": [ + 243, + 306, + 26, + 156, + 130, + 1, + 312, + 4 + ] + } + ] +} \ No newline at end of file