Skip to content

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

Adds the delete user method

Paul Copplestoneec08544dce8d
diff --git a/web/sidebar_spec_supabase.js b/web/sidebar_spec_supabase.js
index bb0181ed6b3..a3e2e2f5e07 100644
--- a/web/sidebar_spec_supabase.js
+++ b/web/sidebar_spec_supabase.js
@@ -9,7 +9,7 @@ module.exports = {
{
type: 'category',
label: 'Auth',
- items: ['reference/javascript/auth-signup', 'reference/javascript/auth-signin', 'reference/javascript/auth-signout', 'reference/javascript/auth-session', 'reference/javascript/auth-user', 'reference/javascript/auth-update', 'reference/javascript/auth-onauthstatechange', 'reference/javascript/reset-password-email'],
+ items: ['reference/javascript/auth-signup', 'reference/javascript/auth-signin', 'reference/javascript/auth-signout', 'reference/javascript/auth-session', 'reference/javascript/auth-user', 'reference/javascript/auth-update', 'reference/javascript/auth-onauthstatechange', 'reference/javascript/reset-password-email', 'reference/javascript/delete-user'],
collapsed: true,
},
{
diff --git a/web/spec/combined.json b/web/spec/combined.json
index 76afd4b4f3f..b40dcc4bae4 100644
--- a/web/spec/combined.json
+++ b/web/spec/combined.json
@@ -9,7 +9,7 @@
"originalName": "",
"children": [
{
- "id": 499,
+ "id": 248,
"name": "\"SupabaseClient\"",
"kind": 1,
"kindString": "Module",
@@ -19,7 +19,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts",
"children": [
{
- "id": 500,
+ "id": 249,
"name": "SupabaseClient",
"kind": 128,
"kindString": "Class",
@@ -32,7 +32,7 @@
},
"children": [
{
- "id": 508,
+ "id": 257,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -44,7 +44,7 @@
},
"signatures": [
{
- "id": 511,
+ "id": 260,
"name": "new SupabaseClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -56,7 +56,7 @@
},
"parameters": [
{
- "id": 512,
+ "id": 261,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -72,7 +72,7 @@
}
},
{
- "id": 513,
+ "id": 262,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -88,7 +88,7 @@
}
},
{
- "id": 514,
+ "id": 263,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -105,7 +105,7 @@
],
"type": {
"type": "reference",
- "id": 500,
+ "id": 249,
"name": "SupabaseClient"
}
}
@@ -119,7 +119,7 @@
]
},
{
- "id": 501,
+ "id": 250,
"name": "auth",
"kind": 1024,
"kindString": "Property",
@@ -143,7 +143,7 @@
}
},
{
- "id": 505,
+ "id": 254,
"name": "authUrl",
"kind": 1024,
"kindString": "Property",
@@ -164,7 +164,7 @@
}
},
{
- "id": 507,
+ "id": 256,
"name": "realtime",
"kind": 1024,
"kindString": "Property",
@@ -185,7 +185,7 @@
}
},
{
- "id": 504,
+ "id": 253,
"name": "realtimeUrl",
"kind": 1024,
"kindString": "Property",
@@ -206,7 +206,7 @@
}
},
{
- "id": 503,
+ "id": 252,
"name": "restUrl",
"kind": 1024,
"kindString": "Property",
@@ -227,7 +227,7 @@
}
},
{
- "id": 502,
+ "id": 251,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -248,7 +248,7 @@
}
},
{
- "id": 506,
+ "id": 255,
"name": "storageUrl",
"kind": 1024,
"kindString": "Property",
@@ -269,7 +269,7 @@
}
},
{
- "id": 510,
+ "id": 259,
"name": "supabaseKey",
"kind": 1024,
"kindString": "Property",
@@ -294,7 +294,7 @@
}
},
{
- "id": 509,
+ "id": 258,
"name": "supabaseUrl",
"kind": 1024,
"kindString": "Property",
@@ -319,7 +319,7 @@
}
},
{
- "id": 515,
+ "id": 264,
"name": "storage",
"kind": 262144,
"kindString": "Accessor",
@@ -331,7 +331,7 @@
},
"getSignature": [
{
- "id": 516,
+ "id": 265,
"name": "__get",
"kind": 524288,
"kindString": "Get signature",
@@ -343,7 +343,6 @@
},
"type": {
"type": "reference",
- "id": 450,
"name": "SupabaseStorageClient"
}
}
@@ -357,7 +356,7 @@
]
},
{
- "id": 551,
+ "id": 300,
"name": "_closeChannel",
"kind": 2048,
"kindString": "Method",
@@ -367,7 +366,7 @@
},
"signatures": [
{
- "id": 552,
+ "id": 301,
"name": "_closeChannel",
"kind": 4096,
"kindString": "Call signature",
@@ -376,7 +375,7 @@
},
"parameters": [
{
- "id": 553,
+ "id": 302,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -410,7 +409,7 @@
]
},
{
- "id": 529,
+ "id": 278,
"name": "_closeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -420,7 +419,7 @@
},
"signatures": [
{
- "id": 530,
+ "id": 279,
"name": "_closeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -429,7 +428,7 @@
},
"parameters": [
{
- "id": 531,
+ "id": 280,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -463,7 +462,7 @@
]
},
{
- "id": 546,
+ "id": 295,
"name": "_getAuthHeaders",
"kind": 2048,
"kindString": "Method",
@@ -473,7 +472,7 @@
},
"signatures": [
{
- "id": 547,
+ "id": 296,
"name": "_getAuthHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -483,7 +482,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 548,
+ "id": 297,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -492,7 +491,7 @@
},
"indexSignature": [
{
- "id": 549,
+ "id": 298,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -501,7 +500,7 @@
},
"parameters": [
{
- "id": 550,
+ "id": 299,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -540,7 +539,7 @@
]
},
{
- "id": 544,
+ "id": 293,
"name": "_initPostgRESTClient",
"kind": 2048,
"kindString": "Method",
@@ -550,7 +549,7 @@
},
"signatures": [
{
- "id": 545,
+ "id": 294,
"name": "_initPostgRESTClient",
"kind": 4096,
"kindString": "Call signature",
@@ -572,7 +571,7 @@
]
},
{
- "id": 542,
+ "id": 291,
"name": "_initRealtimeClient",
"kind": 2048,
"kindString": "Method",
@@ -582,7 +581,7 @@
},
"signatures": [
{
- "id": 543,
+ "id": 292,
"name": "_initRealtimeClient",
"kind": 4096,
"kindString": "Call signature",
@@ -604,7 +603,7 @@
]
},
{
- "id": 534,
+ "id": 283,
"name": "_initSupabaseAuthClient",
"kind": 2048,
"kindString": "Method",
@@ -614,7 +613,7 @@
},
"signatures": [
{
- "id": 535,
+ "id": 284,
"name": "_initSupabaseAuthClient",
"kind": 4096,
"kindString": "Call signature",
@@ -623,7 +622,7 @@
},
"parameters": [
{
- "id": 536,
+ "id": 285,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -634,7 +633,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 537,
+ "id": 286,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -643,7 +642,7 @@
},
"children": [
{
- "id": 538,
+ "id": 287,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -676,7 +675,7 @@
}
},
{
- "id": 540,
+ "id": 289,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -709,7 +708,7 @@
}
},
{
- "id": 541,
+ "id": 290,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -738,7 +737,7 @@
}
},
{
- "id": 539,
+ "id": 288,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -776,10 +775,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 538,
- 540,
- 541,
- 539
+ 287,
+ 289,
+ 290,
+ 288
]
}
],
@@ -810,7 +809,7 @@
]
},
{
- "id": 517,
+ "id": 266,
"name": "from",
"kind": 2048,
"kindString": "Method",
@@ -819,7 +818,7 @@
},
"signatures": [
{
- "id": 518,
+ "id": 267,
"name": "from",
"kind": 4096,
"kindString": "Call signature",
@@ -831,7 +830,7 @@
},
"typeParameter": [
{
- "id": 519,
+ "id": 268,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -842,7 +841,7 @@
],
"parameters": [
{
- "id": 520,
+ "id": 269,
"name": "table",
"kind": 32768,
"kindString": "Parameter",
@@ -860,7 +859,7 @@
],
"type": {
"type": "reference",
- "id": 143,
+ "id": 162,
"typeArguments": [
{
"type": "typeParameter",
@@ -884,7 +883,7 @@
]
},
{
- "id": 532,
+ "id": 281,
"name": "getSubscriptions",
"kind": 2048,
"kindString": "Method",
@@ -893,7 +892,7 @@
},
"signatures": [
{
- "id": 533,
+ "id": 282,
"name": "getSubscriptions",
"kind": 4096,
"kindString": "Call signature",
@@ -921,7 +920,7 @@
]
},
{
- "id": 526,
+ "id": 275,
"name": "removeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -930,7 +929,7 @@
},
"signatures": [
{
- "id": 527,
+ "id": 276,
"name": "removeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -942,7 +941,7 @@
},
"parameters": [
{
- "id": 528,
+ "id": 277,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -979,7 +978,7 @@
]
},
{
- "id": 521,
+ "id": 270,
"name": "rpc",
"kind": 2048,
"kindString": "Method",
@@ -988,7 +987,7 @@
},
"signatures": [
{
- "id": 522,
+ "id": 271,
"name": "rpc",
"kind": 4096,
"kindString": "Call signature",
@@ -1000,7 +999,7 @@
},
"typeParameter": [
{
- "id": 523,
+ "id": 272,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -1011,7 +1010,7 @@
],
"parameters": [
{
- "id": 524,
+ "id": 273,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
@@ -1027,7 +1026,7 @@
}
},
{
- "id": 525,
+ "id": 274,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -1079,45 +1078,45 @@
"title": "Constructors",
"kind": 512,
"children": [
- 508
+ 257
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 501,
- 505,
- 507,
- 504,
- 503,
- 502,
- 506,
- 510,
- 509
+ 250,
+ 254,
+ 256,
+ 253,
+ 252,
+ 251,
+ 255,
+ 259,
+ 258
]
},
{
"title": "Accessors",
"kind": 262144,
"children": [
- 515
+ 264
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 551,
- 529,
- 546,
- 544,
- 542,
- 534,
- 517,
- 532,
- 526,
- 521
+ 300,
+ 278,
+ 295,
+ 293,
+ 291,
+ 283,
+ 266,
+ 281,
+ 275,
+ 270
]
}
],
@@ -1130,7 +1129,7 @@
]
},
{
- "id": 554,
+ "id": 303,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -1139,7 +1138,7 @@
},
"children": [
{
- "id": 556,
+ "id": 305,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -1158,7 +1157,7 @@
"defaultValue": "true"
},
{
- "id": 558,
+ "id": 307,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -1177,7 +1176,7 @@
"defaultValue": "true"
},
{
- "id": 560,
+ "id": 309,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -1192,7 +1191,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 561,
+ "id": 310,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1202,7 +1201,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 559,
+ "id": 308,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -1221,7 +1220,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 557,
+ "id": 306,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -1240,7 +1239,7 @@
"defaultValue": "true"
},
{
- "id": 555,
+ "id": 304,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -1264,12 +1263,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 556,
- 558,
- 560,
- 559,
- 557,
- 555
+ 305,
+ 307,
+ 309,
+ 308,
+ 306,
+ 304
]
}
],
@@ -1291,14 +1290,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 500
+ 249
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 554
+ 303
]
}
],
@@ -1311,7 +1310,7 @@
]
},
{
- "id": 562,
+ "id": 311,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -1321,7 +1320,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts",
"children": [
{
- "id": 563,
+ "id": 312,
"name": "createClient",
"kind": 64,
"kindString": "Function",
@@ -1334,7 +1333,7 @@
},
"signatures": [
{
- "id": 564,
+ "id": 313,
"name": "createClient",
"kind": 4096,
"kindString": "Call signature",
@@ -1346,7 +1345,7 @@
},
"parameters": [
{
- "id": 565,
+ "id": 314,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -1359,7 +1358,7 @@
}
},
{
- "id": 566,
+ "id": 315,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -1372,7 +1371,7 @@
}
},
{
- "id": 567,
+ "id": 316,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1389,7 +1388,7 @@
],
"type": {
"type": "reference",
- "id": 500,
+ "id": 249,
"name": "SupabaseClient"
}
}
@@ -1408,7 +1407,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 563
+ 312
]
}
],
@@ -1928,6 +1927,42 @@
"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",
@@ -1965,7 +2000,234 @@
}
},
{
- "id": 97,
+ "id": 98,
+ "name": "deleteUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 99,
+ "name": "deleteUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Delete an user."
+ },
+ "parameters": [
+ {
+ "id": 100,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__0",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 101,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 102,
+ "name": "userUID",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 106,
+ "character": 24
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 102
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 106,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "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": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 109,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 106,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 111,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 105,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 110,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 104,
+ 106,
+ 105
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 108,
+ "character": 16
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 98,
+ "name": "GoTrueClient.deleteUser"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 106,
+ "character": 14
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 98,
+ "name": "GoTrueClient.deleteUser"
+ }
+ },
+ {
+ "id": 116,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -1974,7 +2236,7 @@
},
"signatures": [
{
- "id": 98,
+ "id": 117,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -1986,7 +2248,7 @@
},
"parameters": [
{
- "id": 99,
+ "id": 118,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2004,7 +2266,7 @@
{
"type": "reflection",
"declaration": {
- "id": 100,
+ "id": 119,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2013,7 +2275,7 @@
},
"children": [
{
- "id": 101,
+ "id": 120,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -2027,7 +2289,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 107,
+ "line": 131,
"character": 20
}
],
@@ -2055,7 +2317,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 101
+ 120
]
}
]
@@ -2071,7 +2333,7 @@
{
"type": "reflection",
"declaration": {
- "id": 102,
+ "id": 121,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2080,7 +2342,7 @@
},
"children": [
{
- "id": 103,
+ "id": 122,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2090,7 +2352,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 109,
+ "line": 133,
"character": 12
}
],
@@ -2109,7 +2371,7 @@
}
},
{
- "id": 104,
+ "id": 123,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2119,7 +2381,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 110,
+ "line": 134,
"character": 13
}
],
@@ -2143,15 +2405,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 103,
- 104
+ 122,
+ 123
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 108,
+ "line": 132,
"character": 16
}
]
@@ -2162,7 +2424,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 97,
+ "id": 116,
"name": "GoTrueClient.getSessionFromUrl"
}
}
@@ -2170,18 +2432,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 106,
+ "line": 130,
"character": 21
}
],
"inheritedFrom": {
"type": "reference",
- "id": 97,
+ "id": 116,
"name": "GoTrueClient.getSessionFromUrl"
}
},
{
- "id": 109,
+ "id": 128,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -2190,7 +2452,7 @@
},
"signatures": [
{
- "id": 110,
+ "id": 129,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -2203,7 +2465,7 @@
},
"parameters": [
{
- "id": 111,
+ "id": 130,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -2213,7 +2475,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 112,
+ "id": 131,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2222,7 +2484,7 @@
},
"signatures": [
{
- "id": 113,
+ "id": 132,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -2231,7 +2493,7 @@
},
"parameters": [
{
- "id": 114,
+ "id": 133,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -2244,7 +2506,7 @@
}
},
{
- "id": 115,
+ "id": 134,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -2275,7 +2537,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 125,
+ "line": 149,
"character": 31
}
]
@@ -2286,7 +2548,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 116,
+ "id": 135,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2295,7 +2557,7 @@
},
"children": [
{
- "id": 117,
+ "id": 136,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2305,7 +2567,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 126,
+ "line": 150,
"character": 12
}
],
@@ -2324,7 +2586,7 @@
}
},
{
- "id": 118,
+ "id": 137,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2334,7 +2596,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 127,
+ "line": 151,
"character": 13
}
],
@@ -2358,15 +2620,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 117,
- 118
+ 136,
+ 137
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 125,
+ "line": 149,
"character": 91
}
]
@@ -2374,7 +2636,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 109,
+ "id": 128,
"name": "GoTrueClient.onAuthStateChange"
}
}
@@ -2382,18 +2644,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 125,
+ "line": 149,
"character": 21
}
],
"inheritedFrom": {
"type": "reference",
- "id": 109,
+ "id": 128,
"name": "GoTrueClient.onAuthStateChange"
}
},
{
- "id": 84,
+ "id": 85,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -2402,7 +2664,7 @@
},
"signatures": [
{
- "id": 85,
+ "id": 86,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -2418,7 +2680,7 @@
{
"type": "reflection",
"declaration": {
- "id": 86,
+ "id": 87,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2427,7 +2689,7 @@
},
"children": [
{
- "id": 87,
+ "id": 88,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2437,7 +2699,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 90,
+ "line": 91,
"character": 12
}
],
@@ -2456,7 +2718,7 @@
}
},
{
- "id": 89,
+ "id": 90,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2466,7 +2728,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 92,
+ "line": 93,
"character": 13
}
],
@@ -2485,7 +2747,7 @@
}
},
{
- "id": 88,
+ "id": 89,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2495,7 +2757,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 91,
+ "line": 92,
"character": 12
}
],
@@ -2519,16 +2781,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 87,
- 89,
- 88
+ 88,
+ 90,
+ 89
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 89,
+ "line": 90,
"character": 30
}
]
@@ -2539,7 +2801,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 84,
+ "id": 85,
"name": "GoTrueClient.refreshSession"
}
}
@@ -2547,18 +2809,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 89,
+ "line": 90,
"character": 18
}
],
"inheritedFrom": {
"type": "reference",
- "id": 84,
+ "id": 85,
"name": "GoTrueClient.refreshSession"
}
},
{
- "id": 82,
+ "id": 83,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -2567,7 +2829,7 @@
},
"signatures": [
{
- "id": 83,
+ "id": 84,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -2592,7 +2854,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 82,
+ "id": 83,
"name": "GoTrueClient.session"
}
}
@@ -2600,18 +2862,233 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 85,
+ "line": 86,
"character": 11
}
],
"inheritedFrom": {
"type": "reference",
- "id": 82,
+ "id": 83,
"name": "GoTrueClient.session"
}
},
{
- "id": 62,
+ "id": 113,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 114,
+ "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": 115,
+ "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": 113,
+ "name": "GoTrueClient.setAuth"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 125,
+ "character": 11
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 113,
+ "name": "GoTrueClient.setAuth"
+ }
+ },
+ {
+ "id": 107,
+ "name": "setSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 108,
+ "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": 109,
+ "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": 110,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 112,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 119,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 111,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 118,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 112,
+ 111
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 117,
+ "character": 47
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 107,
+ "name": "GoTrueClient.setSession"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 117,
+ "character": 14
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 107,
+ "name": "GoTrueClient.setSession"
+ }
+ },
+ {
+ "id": 63,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -2620,7 +3097,7 @@
},
"signatures": [
{
- "id": 63,
+ "id": 64,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -2632,7 +3109,7 @@
},
"parameters": [
{
- "id": 64,
+ "id": 65,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -2643,7 +3120,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 65,
+ "id": 66,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2652,7 +3129,7 @@
},
"children": [
{
- "id": 66,
+ "id": 67,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -2665,7 +3142,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 65,
+ "line": 66,
"character": 18
}
],
@@ -2684,7 +3161,7 @@
}
},
{
- "id": 67,
+ "id": 68,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -2697,7 +3174,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 65,
+ "line": 66,
"character": 28
}
],
@@ -2716,7 +3193,7 @@
}
},
{
- "id": 68,
+ "id": 69,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -2729,7 +3206,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 65,
+ "line": 66,
"character": 38
}
],
@@ -2773,16 +3250,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 66,
67,
- 68
+ 68,
+ 69
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 65,
+ "line": 66,
"character": 11
}
]
@@ -2790,7 +3267,7 @@
}
},
{
- "id": 69,
+ "id": 70,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2808,7 +3285,7 @@
{
"type": "reflection",
"declaration": {
- "id": 70,
+ "id": 71,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2817,7 +3294,7 @@
},
"children": [
{
- "id": 71,
+ "id": 72,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -2828,7 +3305,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 66,
+ "line": 67,
"character": 18
}
],
@@ -2847,7 +3324,7 @@
}
},
{
- "id": 72,
+ "id": 73,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -2858,7 +3335,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
+ "line": 68,
"character": 14
}
],
@@ -2882,8 +3359,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 71,
- 72
+ 72,
+ 73
]
}
]
@@ -2899,7 +3376,7 @@
{
"type": "reflection",
"declaration": {
- "id": 73,
+ "id": 74,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2908,7 +3385,7 @@
},
"children": [
{
- "id": 79,
+ "id": 80,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2918,7 +3395,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 74,
+ "line": 75,
"character": 12
}
],
@@ -2937,7 +3414,7 @@
}
},
{
- "id": 78,
+ "id": 79,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2947,7 +3424,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 73,
+ "line": 74,
"character": 13
}
],
@@ -2966,7 +3443,7 @@
}
},
{
- "id": 76,
+ "id": 77,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -2977,7 +3454,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 71,
+ "line": 72,
"character": 16
}
],
@@ -2987,7 +3464,7 @@
}
},
{
- "id": 74,
+ "id": 75,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -2997,7 +3474,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 69,
+ "line": 70,
"character": 15
}
],
@@ -3016,7 +3493,7 @@
}
},
{
- "id": 77,
+ "id": 78,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -3027,7 +3504,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 72,
+ "line": 73,
"character": 11
}
],
@@ -3046,7 +3523,7 @@
}
},
{
- "id": 75,
+ "id": 76,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3056,7 +3533,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 70,
+ "line": 71,
"character": 12
}
],
@@ -3080,19 +3557,19 @@
"title": "Variables",
"kind": 32,
"children": [
+ 80,
79,
- 78,
- 76,
- 74,
77,
- 75
+ 75,
+ 78,
+ 76
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 68,
+ "line": 69,
"character": 16
}
]
@@ -3103,7 +3580,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 62,
+ "id": 63,
"name": "GoTrueClient.signIn"
}
}
@@ -3111,18 +3588,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 65,
+ "line": 66,
"character": 10
}
],
"inheritedFrom": {
"type": "reference",
- "id": 62,
+ "id": 63,
"name": "GoTrueClient.signIn"
}
},
{
- "id": 105,
+ "id": 124,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -3131,7 +3608,7 @@
},
"signatures": [
{
- "id": 106,
+ "id": 125,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -3148,7 +3625,7 @@
{
"type": "reflection",
"declaration": {
- "id": 107,
+ "id": 126,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3157,7 +3634,7 @@
},
"children": [
{
- "id": 108,
+ "id": 127,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3167,7 +3644,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 119,
+ "line": 143,
"character": 13
}
],
@@ -3191,14 +3668,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 108
+ 127
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 118,
+ "line": 142,
"character": 23
}
]
@@ -3209,7 +3686,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 105,
+ "id": 124,
"name": "GoTrueClient.signOut"
}
}
@@ -3217,18 +3694,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 118,
+ "line": 142,
"character": 11
}
],
"inheritedFrom": {
"type": "reference",
- "id": 105,
+ "id": 124,
"name": "GoTrueClient.signOut"
}
},
{
- "id": 48,
+ "id": 49,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -3237,7 +3714,7 @@
},
"signatures": [
{
- "id": 49,
+ "id": 50,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -3249,7 +3726,7 @@
},
"parameters": [
{
- "id": 50,
+ "id": 51,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -3260,7 +3737,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 51,
+ "id": 52,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3269,7 +3746,7 @@
},
"children": [
{
- "id": 52,
+ "id": 53,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -3282,7 +3759,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 48,
+ "line": 49,
"character": 18
}
],
@@ -3301,7 +3778,7 @@
}
},
{
- "id": 53,
+ "id": 54,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -3314,7 +3791,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 48,
+ "line": 49,
"character": 28
}
],
@@ -3338,15 +3815,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 52,
- 53
+ 53,
+ 54
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 48,
+ "line": 49,
"character": 11
}
]
@@ -3354,7 +3831,7 @@
}
},
{
- "id": 54,
+ "id": 55,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3372,7 +3849,7 @@
{
"type": "reflection",
"declaration": {
- "id": 55,
+ "id": 56,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3381,7 +3858,7 @@
},
"children": [
{
- "id": 56,
+ "id": 57,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -3392,7 +3869,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 49,
+ "line": 50,
"character": 18
}
],
@@ -3416,7 +3893,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 56
+ 57
]
}
]
@@ -3432,7 +3909,7 @@
{
"type": "reflection",
"declaration": {
- "id": 57,
+ "id": 58,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3441,7 +3918,7 @@
},
"children": [
{
- "id": 61,
+ "id": 62,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3451,7 +3928,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 54,
+ "line": 55,
"character": 12
}
],
@@ -3474,7 +3951,7 @@
}
},
{
- "id": 60,
+ "id": 61,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3484,7 +3961,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 53,
+ "line": 54,
"character": 13
}
],
@@ -3503,7 +3980,7 @@
}
},
{
- "id": 59,
+ "id": 60,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3513,7 +3990,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 52,
+ "line": 53,
"character": 15
}
],
@@ -3532,7 +4009,7 @@
}
},
{
- "id": 58,
+ "id": 59,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3542,7 +4019,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 51,
+ "line": 52,
"character": 12
}
],
@@ -3566,17 +4043,17 @@
"title": "Variables",
"kind": 32,
"children": [
+ 62,
61,
60,
- 59,
- 58
+ 59
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 50,
+ "line": 51,
"character": 16
}
]
@@ -3587,7 +4064,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 48,
+ "id": 49,
"name": "GoTrueClient.signUp"
}
}
@@ -3595,18 +4072,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 48,
+ "line": 49,
"character": 10
}
],
"inheritedFrom": {
"type": "reference",
- "id": 48,
+ "id": 49,
"name": "GoTrueClient.signUp"
}
},
{
- "id": 90,
+ "id": 91,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -3615,7 +4092,7 @@
},
"signatures": [
{
- "id": 91,
+ "id": 92,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -3627,7 +4104,7 @@
},
"parameters": [
{
- "id": 92,
+ "id": 93,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -3646,7 +4123,7 @@
{
"type": "reflection",
"declaration": {
- "id": 93,
+ "id": 94,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3655,7 +4132,7 @@
},
"children": [
{
- "id": 94,
+ "id": 95,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3665,7 +4142,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 98,
+ "line": 99,
"character": 12
}
],
@@ -3684,7 +4161,7 @@
}
},
{
- "id": 96,
+ "id": 97,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3694,7 +4171,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 100,
+ "line": 101,
"character": 13
}
],
@@ -3713,7 +4190,7 @@
}
},
{
- "id": 95,
+ "id": 96,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3723,7 +4200,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 99,
+ "line": 100,
"character": 12
}
],
@@ -3747,16 +4224,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 94,
- 96,
- 95
+ 95,
+ 97,
+ 96
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 97,
+ "line": 98,
"character": 48
}
]
@@ -3767,7 +4244,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 90,
+ "id": 91,
"name": "GoTrueClient.update"
}
}
@@ -3775,18 +4252,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 97,
+ "line": 98,
"character": 10
}
],
"inheritedFrom": {
"type": "reference",
- "id": 90,
+ "id": 91,
"name": "GoTrueClient.update"
}
},
{
- "id": 80,
+ "id": 81,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -3795,7 +4272,7 @@
},
"signatures": [
{
- "id": 81,
+ "id": 82,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -3821,7 +4298,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 80,
+ "id": 81,
"name": "GoTrueClient.user"
}
}
@@ -3829,13 +4306,13 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 81,
+ "line": 82,
"character": 8
}
],
"inheritedFrom": {
"type": "reference",
- "id": 80,
+ "id": 81,
"name": "GoTrueClient.user"
}
}
@@ -3858,6 +4335,7 @@
42,
46,
45,
+ 48,
47
]
},
@@ -3865,15 +4343,18 @@
"title": "Methods",
"kind": 2048,
"children": [
- 97,
- 109,
- 84,
- 82,
- 62,
- 105,
- 48,
- 90,
- 80
+ 98,
+ 116,
+ 128,
+ 85,
+ 83,
+ 113,
+ 107,
+ 63,
+ 124,
+ 49,
+ 91,
+ 81
]
}
],
@@ -3910,7 +4391,7 @@
]
},
{
- "id": 142,
+ "id": 161,
"name": "\"lib/SupabaseQueryBuilder\"",
"kind": 1,
"kindString": "Module",
@@ -3920,7 +4401,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts",
"children": [
{
- "id": 143,
+ "id": 162,
"name": "SupabaseQueryBuilder",
"kind": 128,
"kindString": "Class",
@@ -3929,7 +4410,7 @@
},
"typeParameter": [
{
- "id": 144,
+ "id": 163,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -3940,7 +4421,7 @@
],
"children": [
{
- "id": 147,
+ "id": 166,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -3949,7 +4430,7 @@
},
"signatures": [
{
- "id": 148,
+ "id": 167,
"name": "new SupabaseQueryBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -3958,7 +4439,7 @@
},
"parameters": [
{
- "id": 149,
+ "id": 168,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -3971,7 +4452,7 @@
}
},
{
- "id": 150,
+ "id": 169,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -3982,7 +4463,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 151,
+ "id": 170,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3991,7 +4472,7 @@
},
"children": [
{
- "id": 152,
+ "id": 171,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -4008,7 +4489,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 153,
+ "id": 172,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4017,7 +4498,7 @@
},
"indexSignature": [
{
- "id": 154,
+ "id": 173,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -4026,7 +4507,7 @@
},
"parameters": [
{
- "id": 155,
+ "id": 174,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -4049,7 +4530,7 @@
}
},
{
- "id": 157,
+ "id": 176,
"name": "realtime",
"kind": 32,
"kindString": "Variable",
@@ -4069,7 +4550,7 @@
}
},
{
- "id": 156,
+ "id": 175,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -4089,7 +4570,7 @@
}
},
{
- "id": 158,
+ "id": 177,
"name": "table",
"kind": 32,
"kindString": "Variable",
@@ -4114,10 +4595,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 152,
- 157,
- 156,
- 158
+ 171,
+ 176,
+ 175,
+ 177
]
}
],
@@ -4134,7 +4615,7 @@
],
"type": {
"type": "reference",
- "id": 143,
+ "id": 162,
"name": "SupabaseQueryBuilder"
},
"overwrites": {
@@ -4156,7 +4637,7 @@
}
},
{
- "id": 146,
+ "id": 165,
"name": "_realtime",
"kind": 1024,
"kindString": "Property",
@@ -4177,7 +4658,7 @@
}
},
{
- "id": 145,
+ "id": 164,
"name": "_subscription",
"kind": 1024,
"kindString": "Property",
@@ -4194,12 +4675,12 @@
],
"type": {
"type": "reference",
- "id": 120,
+ "id": 139,
"name": "SupabaseRealtimeClient"
}
},
{
- "id": 216,
+ "id": 235,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -4245,12 +4726,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 216,
+ "id": 235,
"name": "PostgrestBuilder.body"
}
},
{
- "id": 211,
+ "id": 230,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -4268,7 +4749,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 212,
+ "id": 231,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4277,7 +4758,7 @@
},
"indexSignature": [
{
- "id": 213,
+ "id": 232,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -4286,7 +4767,7 @@
},
"parameters": [
{
- "id": 214,
+ "id": 233,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -4316,12 +4797,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 211,
+ "id": 230,
"name": "PostgrestBuilder.headers"
}
},
{
- "id": 209,
+ "id": 228,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -4363,12 +4844,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 209,
+ "id": 228,
"name": "PostgrestBuilder.method"
}
},
{
- "id": 215,
+ "id": 234,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -4399,12 +4880,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 215,
+ "id": 234,
"name": "PostgrestBuilder.schema"
}
},
{
- "id": 210,
+ "id": 229,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -4425,12 +4906,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 210,
+ "id": 229,
"name": "PostgrestBuilder.url"
}
},
{
- "id": 203,
+ "id": 222,
"name": "delete",
"kind": 2048,
"kindString": "Method",
@@ -4439,7 +4920,7 @@
},
"signatures": [
{
- "id": 204,
+ "id": 223,
"name": "delete",
"kind": 4096,
"kindString": "Call signature",
@@ -4451,7 +4932,7 @@
},
"parameters": [
{
- "id": 205,
+ "id": 224,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -4463,7 +4944,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 206,
+ "id": 225,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4472,7 +4953,7 @@
},
"children": [
{
- "id": 208,
+ "id": 227,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -4516,7 +4997,7 @@
}
},
{
- "id": 207,
+ "id": 226,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -4557,8 +5038,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 208,
- 207
+ 227,
+ 226
]
}
],
@@ -4585,7 +5066,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 203,
+ "id": 222,
"name": "PostgrestQueryBuilder.delete"
}
}
@@ -4599,12 +5080,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 203,
+ "id": 222,
"name": "PostgrestQueryBuilder.delete"
}
},
{
- "id": 173,
+ "id": 192,
"name": "insert",
"kind": 2048,
"kindString": "Method",
@@ -4613,7 +5094,7 @@
},
"signatures": [
{
- "id": 174,
+ "id": 193,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
@@ -4625,7 +5106,7 @@
},
"parameters": [
{
- "id": 175,
+ "id": 194,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -4665,7 +5146,7 @@
}
},
{
- "id": 176,
+ "id": 195,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -4683,7 +5164,7 @@
{
"type": "reflection",
"declaration": {
- "id": 177,
+ "id": 196,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4692,7 +5173,7 @@
},
"children": [
{
- "id": 179,
+ "id": 198,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -4730,7 +5211,7 @@
}
},
{
- "id": 178,
+ "id": 197,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -4765,8 +5246,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 179,
- 178
+ 198,
+ 197
]
}
]
@@ -4788,12 +5269,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 173,
+ "id": 192,
"name": "PostgrestQueryBuilder.insert"
}
},
{
- "id": 180,
+ "id": 199,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
@@ -4810,7 +5291,7 @@
},
"parameters": [
{
- "id": 181,
+ "id": 200,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -4847,7 +5328,7 @@
}
},
{
- "id": 182,
+ "id": 201,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -4865,7 +5346,7 @@
{
"type": "reflection",
"declaration": {
- "id": 183,
+ "id": 202,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4874,7 +5355,7 @@
},
"children": [
{
- "id": 187,
+ "id": 206,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -4912,7 +5393,7 @@
}
},
{
- "id": 185,
+ "id": 204,
"name": "onConflict",
"kind": 32,
"kindString": "Variable",
@@ -4942,7 +5423,7 @@
}
},
{
- "id": 186,
+ "id": 205,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -4972,7 +5453,7 @@
}
},
{
- "id": 184,
+ "id": 203,
"name": "upsert",
"kind": 32,
"kindString": "Variable",
@@ -5011,10 +5492,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 187,
- 185,
- 186,
- 184
+ 206,
+ 204,
+ 205,
+ 203
]
}
]
@@ -5036,7 +5517,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 173,
+ "id": 192,
"name": "PostgrestQueryBuilder.insert"
}
}
@@ -5055,12 +5536,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 173,
+ "id": 192,
"name": "PostgrestQueryBuilder.insert"
}
},
{
- "id": 159,
+ "id": 178,
"name": "on",
"kind": 2048,
"kindString": "Method",
@@ -5069,7 +5550,7 @@
},
"signatures": [
{
- "id": 160,
+ "id": 179,
"name": "on",
"kind": 4096,
"kindString": "Call signature",
@@ -5081,7 +5562,7 @@
},
"parameters": [
{
- "id": 161,
+ "id": 180,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -5098,7 +5579,7 @@
}
},
{
- "id": 162,
+ "id": 181,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -5111,7 +5592,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 163,
+ "id": 182,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5120,7 +5601,7 @@
},
"signatures": [
{
- "id": 164,
+ "id": 183,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5129,7 +5610,7 @@
},
"parameters": [
{
- "id": 165,
+ "id": 184,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -5168,7 +5649,7 @@
],
"type": {
"type": "reference",
- "id": 120,
+ "id": 139,
"name": "SupabaseRealtimeClient"
}
}
@@ -5182,7 +5663,7 @@
]
},
{
- "id": 166,
+ "id": 185,
"name": "select",
"kind": 2048,
"kindString": "Method",
@@ -5191,7 +5672,7 @@
},
"signatures": [
{
- "id": 167,
+ "id": 186,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
@@ -5203,7 +5684,7 @@
},
"parameters": [
{
- "id": 168,
+ "id": 187,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -5229,7 +5710,7 @@
}
},
{
- "id": 169,
+ "id": 188,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5241,7 +5722,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 170,
+ "id": 189,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5250,7 +5731,7 @@
},
"children": [
{
- "id": 172,
+ "id": 191,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -5294,7 +5775,7 @@
}
},
{
- "id": 171,
+ "id": 190,
"name": "head",
"kind": 32,
"kindString": "Variable",
@@ -5335,8 +5816,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 172,
- 171
+ 191,
+ 190
]
}
],
@@ -5363,7 +5844,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 166,
+ "id": 185,
"name": "PostgrestQueryBuilder.select"
}
}
@@ -5377,12 +5858,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 166,
+ "id": 185,
"name": "PostgrestQueryBuilder.select"
}
},
{
- "id": 217,
+ "id": 236,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -5391,7 +5872,7 @@
},
"signatures": [
{
- "id": 218,
+ "id": 237,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -5400,7 +5881,7 @@
},
"typeParameter": [
{
- "id": 219,
+ "id": 238,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -5409,7 +5890,7 @@
}
},
{
- "id": 220,
+ "id": 239,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -5420,7 +5901,7 @@
],
"parameters": [
{
- "id": 221,
+ "id": 240,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -5434,7 +5915,7 @@
{
"type": "reflection",
"declaration": {
- "id": 222,
+ "id": 241,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5443,7 +5924,7 @@
},
"signatures": [
{
- "id": 223,
+ "id": 242,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5452,7 +5933,7 @@
},
"parameters": [
{
- "id": 224,
+ "id": 243,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -5533,7 +6014,7 @@
}
},
{
- "id": 225,
+ "id": 244,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -5547,7 +6028,7 @@
{
"type": "reflection",
"declaration": {
- "id": 226,
+ "id": 245,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5556,7 +6037,7 @@
},
"signatures": [
{
- "id": 227,
+ "id": 246,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5565,7 +6046,7 @@
},
"parameters": [
{
- "id": 228,
+ "id": 247,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -5663,7 +6144,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 217,
+ "id": 236,
"name": "PostgrestBuilder.then"
}
}
@@ -5677,12 +6158,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 217,
+ "id": 236,
"name": "PostgrestBuilder.then"
}
},
{
- "id": 196,
+ "id": 215,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -5691,7 +6172,7 @@
},
"signatures": [
{
- "id": 197,
+ "id": 216,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -5703,7 +6184,7 @@
},
"parameters": [
{
- "id": 198,
+ "id": 217,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -5725,7 +6206,7 @@
}
},
{
- "id": 199,
+ "id": 218,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5737,7 +6218,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 200,
+ "id": 219,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5746,7 +6227,7 @@
},
"children": [
{
- "id": 202,
+ "id": 221,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -5790,7 +6271,7 @@
}
},
{
- "id": 201,
+ "id": 220,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -5831,8 +6312,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 202,
- 201
+ 221,
+ 220
]
}
],
@@ -5859,7 +6340,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 196,
+ "id": 215,
"name": "PostgrestQueryBuilder.update"
}
}
@@ -5873,12 +6354,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 196,
+ "id": 215,
"name": "PostgrestQueryBuilder.update"
}
},
{
- "id": 188,
+ "id": 207,
"name": "upsert",
"kind": 2048,
"kindString": "Method",
@@ -5887,7 +6368,7 @@
},
"signatures": [
{
- "id": 189,
+ "id": 208,
"name": "upsert",
"kind": 4096,
"kindString": "Call signature",
@@ -5899,7 +6380,7 @@
},
"parameters": [
{
- "id": 190,
+ "id": 209,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -5939,7 +6420,7 @@
}
},
{
- "id": 191,
+ "id": 210,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5951,7 +6432,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 192,
+ "id": 211,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5960,7 +6441,7 @@
},
"children": [
{
- "id": 195,
+ "id": 214,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -6004,7 +6485,7 @@
}
},
{
- "id": 193,
+ "id": 212,
"name": "onConflict",
"kind": 32,
"kindString": "Variable",
@@ -6036,7 +6517,7 @@
}
},
{
- "id": 194,
+ "id": 213,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -6077,9 +6558,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 195,
- 193,
- 194
+ 214,
+ 212,
+ 213
]
}
],
@@ -6106,7 +6587,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 188,
+ "id": 207,
"name": "PostgrestQueryBuilder.upsert"
}
}
@@ -6120,7 +6601,7 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 188,
+ "id": 207,
"name": "PostgrestQueryBuilder.upsert"
}
}
@@ -6130,33 +6611,33 @@
"title": "Constructors",
"kind": 512,
"children": [
- 147
+ 166
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 146,
- 145,
- 216,
- 211,
- 209,
- 215,
- 210
+ 165,
+ 164,
+ 235,
+ 230,
+ 228,
+ 234,
+ 229
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 203,
- 173,
- 159,
- 166,
- 217,
- 196,
- 188
+ 222,
+ 192,
+ 178,
+ 185,
+ 236,
+ 215,
+ 207
]
}
],
@@ -6204,7 +6685,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 143
+ 162
]
}
],
@@ -6217,7 +6698,7 @@
]
},
{
- "id": 119,
+ "id": 138,
"name": "\"lib/SupabaseRealtimeClient\"",
"kind": 1,
"kindString": "Module",
@@ -6227,7 +6708,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts",
"children": [
{
- "id": 120,
+ "id": 139,
"name": "SupabaseRealtimeClient",
"kind": 128,
"kindString": "Class",
@@ -6236,7 +6717,7 @@
},
"children": [
{
- "id": 122,
+ "id": 141,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -6245,7 +6726,7 @@
},
"signatures": [
{
- "id": 123,
+ "id": 142,
"name": "new SupabaseRealtimeClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -6254,7 +6735,7 @@
},
"parameters": [
{
- "id": 124,
+ "id": 143,
"name": "socket",
"kind": 32768,
"kindString": "Parameter",
@@ -6267,7 +6748,7 @@
}
},
{
- "id": 125,
+ "id": 144,
"name": "schema",
"kind": 32768,
"kindString": "Parameter",
@@ -6280,7 +6761,7 @@
}
},
{
- "id": 126,
+ "id": 145,
"name": "tableName",
"kind": 32768,
"kindString": "Parameter",
@@ -6295,7 +6776,7 @@
],
"type": {
"type": "reference",
- "id": 120,
+ "id": 139,
"name": "SupabaseRealtimeClient"
}
}
@@ -6309,7 +6790,7 @@
]
},
{
- "id": 121,
+ "id": 140,
"name": "subscription",
"kind": 1024,
"kindString": "Property",
@@ -6329,7 +6810,7 @@
}
},
{
- "id": 127,
+ "id": 146,
"name": "getPayloadRecords",
"kind": 2048,
"kindString": "Method",
@@ -6339,7 +6820,7 @@
},
"signatures": [
{
- "id": 128,
+ "id": 147,
"name": "getPayloadRecords",
"kind": 4096,
"kindString": "Call signature",
@@ -6348,7 +6829,7 @@
},
"parameters": [
{
- "id": 129,
+ "id": 148,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -6364,7 +6845,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 130,
+ "id": 149,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6373,7 +6854,7 @@
},
"children": [
{
- "id": 131,
+ "id": 150,
"name": "new",
"kind": 32,
"kindString": "Variable",
@@ -6390,7 +6871,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 132,
+ "id": 151,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6401,7 +6882,7 @@
}
},
{
- "id": 133,
+ "id": 152,
"name": "old",
"kind": 32,
"kindString": "Variable",
@@ -6418,7 +6899,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 134,
+ "id": 153,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6434,8 +6915,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 131,
- 133
+ 150,
+ 152
]
}
]
@@ -6452,7 +6933,7 @@
]
},
{
- "id": 135,
+ "id": 154,
"name": "on",
"kind": 2048,
"kindString": "Method",
@@ -6461,7 +6942,7 @@
},
"signatures": [
{
- "id": 136,
+ "id": 155,
"name": "on",
"kind": 4096,
"kindString": "Call signature",
@@ -6473,7 +6954,7 @@
},
"parameters": [
{
- "id": 137,
+ "id": 156,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -6490,7 +6971,7 @@
}
},
{
- "id": 138,
+ "id": 157,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -6521,7 +7002,7 @@
]
},
{
- "id": 139,
+ "id": 158,
"name": "subscribe",
"kind": 2048,
"kindString": "Method",
@@ -6530,7 +7011,7 @@
},
"signatures": [
{
- "id": 140,
+ "id": 159,
"name": "subscribe",
"kind": 4096,
"kindString": "Call signature",
@@ -6542,7 +7023,7 @@
},
"parameters": [
{
- "id": 141,
+ "id": 160,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -6576,23 +7057,23 @@
"title": "Constructors",
"kind": 512,
"children": [
- 122
+ 141
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 121
+ 140
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 127,
- 135,
- 139
+ 146,
+ 154,
+ 158
]
}
],
@@ -6610,7 +7091,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 120
+ 139
]
}
],
@@ -6623,5971 +7104,116 @@
]
},
{
- "id": 449,
- "name": "\"lib/SupabaseStorageClient\"",
+ "id": 1,
+ "name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseStorageClient.ts",
+ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/constants.ts",
"children": [
{
- "id": 450,
- "name": "SupabaseStorageClient",
- "kind": 128,
- "kindString": "Class",
+ "id": 2,
+ "name": "DEFAULT_HEADERS",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isConst": true
},
- "children": [
- {
- "id": 451,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 452,
- "name": "new SupabaseStorageClient",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 453,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 454,
- "name": "headers",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 455,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 456,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 457,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.ts",
- "line": 4,
- "character": 35
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "id": 450,
- "name": "SupabaseStorageClient"
- },
- "overwrites": {
- "type": "reference",
- "id": 313,
- "name": "StorageBucketApi.__constructor"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.ts",
- "line": 3,
- "character": 61
- }
- ],
- "overwrites": {
- "type": "reference",
- "id": 313,
- "name": "StorageBucketApi.__constructor"
- }
- },
+ "sources": [
{
- "id": 462,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
+ "fileName": "src/lib/constants.ts",
+ "line": 3,
+ "character": 28
+ }
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 3,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {
- "isProtected": true,
"isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 6,
- "character": 19
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 463,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 464,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 465,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 6,
- "character": 20
- }
- ]
- }
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 309,
- "name": "StorageBucketApi.headers"
}
- },
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 2
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/constants.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 317,
+ "name": "\"lib/helpers\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts",
+ "children": [
+ {
+ "id": 318,
+ "name": "uuid",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
{
- "id": 461,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
+ "id": 319,
+ "name": "uuid",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {
- "isProtected": true,
"isExported": true
},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 5,
- "character": 15
- }
- ],
"type": {
"type": "intrinsic",
"name": "string"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 308,
- "name": "StorageBucketApi.url"
}
- },
+ }
+ ],
+ "sources": [
{
- "id": 477,
- "name": "createBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 478,
- "name": "createBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Creates a new Storage bucket"
- },
- "parameters": [
- {
- "id": 479,
- "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"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 480,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 481,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 48
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 482,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 70
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 481,
- 482
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 42
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 331,
- "name": "StorageBucketApi.createBucket"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 20
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 331,
- "name": "StorageBucketApi.createBucket"
- }
- },
- {
- "id": 491,
- "name": "deleteBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 492,
- "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": 493,
- "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": 494,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 495,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 496,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 497,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 497
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 498,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 495,
- 498
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 345,
- "name": "StorageBucketApi.deleteBucket"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 75,
- "character": 20
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 345,
- "name": "StorageBucketApi.deleteBucket"
- }
- },
- {
- "id": 483,
- "name": "emptyBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 484,
- "name": "emptyBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Removes all objects inside a single bucket."
- },
- "parameters": [
- {
- "id": 485,
- "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": 486,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 487,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 488,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 489,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 489
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 490,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 487,
- 490
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 337,
- "name": "StorageBucketApi.emptyBucket"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 58,
- "character": 19
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 337,
- "name": "StorageBucketApi.emptyBucket"
- }
- },
- {
- "id": 458,
- "name": "from",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 459,
- "name": "from",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Perform file operation in a bucket."
- },
- "parameters": [
- {
- "id": 460,
- "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": 357,
- "name": "StorageFileApi"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.ts",
- "line": 13,
- "character": 6
- }
- ]
- },
- {
- "id": 471,
- "name": "getBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 472,
- "name": "getBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Retrieves the details of an existing Storage bucket."
- },
- "parameters": [
- {
- "id": 473,
- "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": 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": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 45
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 476,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 67
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 475,
- 476
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 39
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 325,
- "name": "StorageBucketApi.getBucket"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 17
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 325,
- "name": "StorageBucketApi.getBucket"
- }
- },
- {
- "id": 466,
- "name": "listBuckets",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 467,
- "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": 468,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 469,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 37
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 470,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 61
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 469,
- 470
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 31
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 320,
- "name": "StorageBucketApi.listBuckets"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 19
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 320,
- "name": "StorageBucketApi.listBuckets"
- }
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 451
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 462,
- 461
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 477,
- 491,
- 483,
- 458,
- 471,
- 466
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.ts",
- "line": 3,
- "character": 34
- }
- ],
- "extendedTypes": [
- {
- "type": "reference",
- "id": 307,
- "name": "StorageBucketApi"
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 450
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.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": 568,
- "name": "\"lib/helpers\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts",
- "children": [
- {
- "id": 569,
- "name": "uuid",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 570,
- "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": [
- 569
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/helpers.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 306,
- "name": "\"lib/storage/StorageBucketApi\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/StorageBucketApi.ts",
- "children": [
- {
- "id": 307,
- "name": "StorageBucketApi",
- "kind": 128,
- "kindString": "Class",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 313,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 314,
- "name": "new StorageBucketApi",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 315,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 316,
- "name": "headers",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 317,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 318,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 319,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 8,
- "character": 35
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "id": 307,
- "name": "StorageBucketApi"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 6,
- "character": 46
- }
- ]
- },
- {
- "id": 309,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 6,
- "character": 19
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 310,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 311,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 312,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 6,
- "character": 20
- }
- ]
- }
- }
- },
- {
- "id": 308,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 5,
- "character": 15
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 331,
- "name": "createBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 332,
- "name": "createBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Creates a new Storage bucket"
- },
- "parameters": [
- {
- "id": 333,
- "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"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 334,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 335,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 48
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 336,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 70
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 335,
- 336
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 42
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 20
- }
- ]
- },
- {
- "id": 345,
- "name": "deleteBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 346,
- "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": 347,
- "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": 348,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 349,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 350,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 351,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 351
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 352,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 349,
- 352
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 75,
- "character": 20
- }
- ]
- },
- {
- "id": 337,
- "name": "emptyBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 338,
- "name": "emptyBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Removes all objects inside a single bucket."
- },
- "parameters": [
- {
- "id": 339,
- "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": 340,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 341,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 342,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 343,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 343
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 344,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 341,
- 344
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 58,
- "character": 19
- }
- ]
- },
- {
- "id": 325,
- "name": "getBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 326,
- "name": "getBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Retrieves the details of an existing Storage bucket."
- },
- "parameters": [
- {
- "id": 327,
- "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": 328,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 329,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 45
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 330,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 67
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 329,
- 330
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 39
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 17
- }
- ]
- },
- {
- "id": 320,
- "name": "listBuckets",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 321,
- "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": 322,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 323,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 37
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 324,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 61
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 323,
- 324
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 31
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 19
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 313
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 309,
- 308
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 331,
- 345,
- 337,
- 325,
- 320
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 4,
- "character": 29
- }
- ],
- "extendedBy": [
- {
- "type": "reference",
- "id": 450,
- "name": "SupabaseStorageClient"
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 307
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 356,
- "name": "\"lib/storage/StorageFileApi\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/StorageFileApi.ts",
- "children": [
- {
- "id": 357,
- "name": "StorageFileApi",
- "kind": 128,
- "kindString": "Class",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 364,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 365,
- "name": "new StorageFileApi",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 366,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 367,
- "name": "headers",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 368,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 369,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 370,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 23,
- "character": 35
- }
- ]
- }
- },
- "defaultValue": "{}"
- },
- {
- "id": 371,
- "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": 357,
- "name": "StorageFileApi"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 21,
- "character": 29
- }
- ]
- },
- {
- "id": 363,
- "name": "bucketId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 21,
- "character": 20
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- },
- {
- "id": 359,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 20,
- "character": 19
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 360,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 361,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 362,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 20,
- "character": 20
- }
- ]
- }
- }
- },
- {
- "id": 358,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 19,
- "character": 15
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 429,
- "name": "_getFinalPath",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 430,
- "name": "_getFinalPath",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 431,
- "name": "path",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 243,
- "character": 15
- }
- ]
- },
- {
- "id": 401,
- "name": "createSignedUrl",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 402,
- "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": 403,
- "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": 404,
- "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": 405,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 406,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 140,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 407,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 408,
- "name": "signedUrl",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 140,
- "character": 32
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 408
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 140,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 409,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 140,
- "character": 56
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 406,
- 409
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 140,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 137,
- "character": 23
- }
- ]
- },
- {
- "id": 410,
- "name": "download",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 411,
- "name": "download",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Downloads a file."
- },
- "parameters": [
- {
- "id": 412,
- "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": 413,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 414,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 161,
- "character": 46
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Blob"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 415,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 161,
- "character": 66
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 414,
- 415
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 161,
- "character": 40
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 161,
- "character": 16
- }
- ]
- },
- {
- "id": 422,
- "name": "list",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 423,
- "name": "list",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Lists all the files within a bucket."
- },
- "parameters": [
- {
- "id": 424,
- "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": 425,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "Search options, including `limit`, `offset`, and `sortBy`.\n"
- },
- "type": {
- "type": "reference",
- "id": 300,
- "name": "SearchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 426,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 427,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 231,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 284,
- "name": "FileObject"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 428,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 231,
- "character": 47
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 427,
- 428
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 231,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 228,
- "character": 12
- }
- ]
- },
- {
- "id": 392,
- "name": "move",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 393,
- "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": 394,
- "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": 395,
- "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": 396,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 397,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 118,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 398,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 399,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 118,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 399
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 118,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 400,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 118,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 397,
- 400
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 118,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 115,
- "character": 12
- }
- ]
- },
- {
- "id": 416,
- "name": "remove",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 417,
- "name": "remove",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Deletes files within the same bucket"
- },
- "parameters": [
- {
- "id": 418,
- "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": 419,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 420,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 180,
- "character": 47
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 284,
- "name": "FileObject"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 421,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 180,
- "character": 75
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 420,
- 421
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 180,
- "character": 41
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 180,
- "character": 14
- }
- ]
- },
- {
- "id": 382,
- "name": "update",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 383,
- "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": 384,
- "name": "path",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The relative file path including the bucket ID. Should be of the format `bucket/folder/subfolder`. The bucket already exist before attempting to upload."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 385,
- "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": 386,
- "name": "fileOptions",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "HTTP headers. For example `cacheControl`\n"
- },
- "type": {
- "type": "reference",
- "id": 298,
- "name": "FileOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 387,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 388,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 80,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 389,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 390,
- "name": "Key",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 80,
- "character": 26
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 390
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 80,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 391,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 80,
- "character": 50
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 388,
- 391
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 80,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 76,
- "character": 14
- }
- ]
- },
- {
- "id": 372,
- "name": "upload",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 373,
- "name": "upload",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Uploads a file to an existing bucket."
- },
- "parameters": [
- {
- "id": 374,
- "name": "path",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The relative file path including the bucket ID. Should be of the format `bucket/folder/subfolder/filename.png`. The bucket must already exist before attempting to upload."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 375,
- "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": 376,
- "name": "fileOptions",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "HTTP headers. For example `cacheControl`\n"
- },
- "type": {
- "type": "reference",
- "id": 298,
- "name": "FileOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 377,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 378,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 40,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 379,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 380,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 40,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 380
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 40,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 381,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 40,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 378,
- 381
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 40,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 36,
- "character": 14
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 364
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 363,
- 359,
- 358
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 429,
- 401,
- 410,
- 422,
- 392,
- 416,
- 382,
- 372
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 18,
- "character": 27
- }
- ]
- },
- {
- "id": 438,
- "name": "DEFAULT_FILE_OPTIONS",
- "kind": 2097152,
- "kindString": "Object literal",
- "flags": {
- "isConst": true
- },
- "children": [
- {
- "id": 439,
- "name": "cacheControl",
- "kind": 32,
- "kindString": "Variable",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 15,
- "character": 14
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "\"3600\""
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 439
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 14,
- "character": 26
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 432,
- "name": "DEFAULT_SEARCH_OPTIONS",
- "kind": 2097152,
- "kindString": "Object literal",
- "flags": {
- "isConst": true
- },
- "children": [
- {
- "id": 433,
- "name": "limit",
- "kind": 32,
- "kindString": "Variable",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 6,
- "character": 7
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "0"
- },
- {
- "id": 434,
- "name": "offset",
- "kind": 32,
- "kindString": "Variable",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 7,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "0"
- },
- {
- "id": 435,
- "name": "sortBy",
- "kind": 2097152,
- "kindString": "Object literal",
- "flags": {},
- "children": [
- {
- "id": 436,
- "name": "column",
- "kind": 32,
- "kindString": "Variable",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 9,
- "character": 10
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "\"name\""
- },
- {
- "id": 437,
- "name": "order",
- "kind": 32,
- "kindString": "Variable",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 10,
- "character": 9
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "\"asc\""
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 436,
- 437
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 8,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 433,
- 434
- ]
- },
- {
- "title": "Object literals",
- "kind": 2097152,
- "children": [
- 435
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 5,
- "character": 28
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 357
- ]
- },
- {
- "title": "Object literals",
- "kind": 2097152,
- "children": [
- 438,
- 432
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 229,
- "name": "\"lib/storage/fetch\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/fetch.ts",
- "children": [
- {
- "id": 230,
- "name": "FetchOptions",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 231,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 4,
- "character": 9
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 232,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 233,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 234,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ]
- }
- }
- ]
- }
- },
- {
- "id": 235,
- "name": "noResolveJson",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/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": [
- 231,
- 235
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 3,
- "character": 29
- }
- ]
- },
- {
- "id": 236,
- "name": "RequestMethodType",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/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": "DELETE"
- }
- ]
- }
- },
- {
- "id": 237,
- "name": "_getErrorMessage",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isConst": true
- },
- "signatures": [
- {
- "id": 238,
- "name": "_getErrorMessage",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 239,
- "name": "err",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 12,
- "character": 22
- }
- ]
- },
- {
- "id": 244,
- "name": "_getRequestParams",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isConst": true
- },
- "signatures": [
- {
- "id": 245,
- "name": "_getRequestParams",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 246,
- "name": "method",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 236,
- "name": "RequestMethodType"
- }
- },
- {
- "id": 247,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- },
- {
- "id": 248,
- "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": 249,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": [
- {
- "id": 250,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 251,
- "name": "k",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ]
- }
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 27,
- "character": 23
- }
- ]
- },
- {
- "id": 252,
- "name": "_handleRequest",
- "kind": 64,
- "kindString": "Function",
- "flags": {},
- "signatures": [
- {
- "id": 253,
- "name": "_handleRequest",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 254,
- "name": "method",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 236,
- "name": "RequestMethodType"
- }
- },
- {
- "id": 255,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 256,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- },
- {
- "id": 257,
- "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": "src/lib/storage/fetch.ts",
- "line": 40,
- "character": 29
- }
- ]
- },
- {
- "id": 258,
- "name": "get",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 259,
- "name": "get",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 260,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 261,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "any"
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 58,
- "character": 25
- }
- ]
- },
- {
- "id": 240,
- "name": "handleError",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isConst": true
- },
- "signatures": [
- {
- "id": 241,
- "name": "handleError",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 242,
- "name": "error",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- },
- {
- "id": 243,
- "name": "reject",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 15,
- "character": 17
- }
- ]
- },
- {
- "id": 262,
- "name": "post",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 263,
- "name": "post",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 264,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 265,
- "name": "body",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 266,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "any"
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 62,
- "character": 26
- }
- ]
- },
- {
- "id": 267,
- "name": "put",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 268,
- "name": "put",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 269,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 270,
- "name": "body",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 271,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "any"
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 66,
- "character": 25
- }
- ]
- },
- {
- "id": 272,
- "name": "remove",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 273,
- "name": "remove",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 274,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 275,
- "name": "body",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 276,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "any"
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 70,
- "character": 28
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Interfaces",
- "kind": 256,
- "children": [
- 230
- ]
- },
- {
- "title": "Type aliases",
- "kind": 4194304,
- "children": [
- 236
- ]
- },
- {
- "title": "Functions",
- "kind": 64,
- "children": [
- 237,
- 244,
- 252,
- 258,
- 240,
- 262,
- 267,
- 272
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 353,
- "name": "\"lib/storage/helpers\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/helpers.ts",
- "children": [
- {
- "id": 354,
- "name": "isBrowser",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true,
- "isConst": true
- },
- "signatures": [
- {
- "id": 355,
- "name": "isBrowser",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/helpers.ts",
- "line": 1,
- "character": 22
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Functions",
- "kind": 64,
- "children": [
- 354
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/helpers.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 440,
- "name": "\"lib/storage/index\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/index.ts",
- "children": [
- {
- "id": 443,
- "name": "Bucket",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 278
- },
- {
- "id": 444,
- "name": "FileObject",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 284
- },
- {
- "id": 446,
- "name": "FileOptions",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 298
- },
- {
- "id": 448,
- "name": "Metadata",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 304
- },
- {
- "id": 447,
- "name": "SearchOptions",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 300
- },
- {
- "id": 445,
- "name": "SortBy",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 295
- },
- {
- "id": 441,
- "name": "StorageBucketApi",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 307
- },
- {
- "id": 442,
- "name": "StorageFileApi",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 357
- }
- ],
- "groups": [
- {
- "title": "References",
- "kind": 16777216,
- "children": [
- 443,
- 444,
- 446,
- 448,
- 447,
- 445,
- 441,
- 442
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/index.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 277,
- "name": "\"lib/storage/types\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/types.ts",
- "children": [
- {
- "id": 278,
- "name": "Bucket",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 282,
- "name": "created_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 5,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 279,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 2,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 280,
- "name": "name",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 3,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 281,
- "name": "owner",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 4,
- "character": 7
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 283,
- "name": "updated_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 6,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 282,
- 279,
- 280,
- 281,
- 283
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 1,
- "character": 23
- }
- ]
- },
- {
- "id": 284,
- "name": "FileObject",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 286,
- "name": "bucket_id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 11,
- "character": 11
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 294,
- "name": "buckets",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 18,
- "character": 9
- }
- ],
- "type": {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- }
- },
- {
- "id": 290,
- "name": "created_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 15,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 288,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 13,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 291,
- "name": "last_accessed_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 16,
- "character": 18
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 292,
- "name": "metadata",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 17,
- "character": 10
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 293,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 17,
- "character": 11
- }
- ]
- }
- }
- },
- {
- "id": 285,
- "name": "name",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 10,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 287,
- "name": "owner",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 12,
- "character": 7
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 289,
- "name": "updated_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 14,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 286,
- 294,
- 290,
- 288,
- 291,
- 292,
- 285,
- 287,
- 289
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 9,
- "character": 27
- }
- ]
- },
- {
- "id": 298,
- "name": "FileOptions",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 299,
- "name": "cacheControl",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 27,
- "character": 14
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 299
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 26,
- "character": 28
- }
- ]
- },
- {
- "id": 304,
- "name": "Metadata",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 305,
- "name": "name",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 43,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 305
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 42,
- "character": 25
- }
- ]
- },
- {
- "id": 300,
- "name": "SearchOptions",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 301,
- "name": "limit",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "shortText": "The number of files you want to be returned."
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 32,
- "character": 7
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "number"
- }
- ]
- }
- },
- {
- "id": 302,
- "name": "offset",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "shortText": "The starting position."
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 35,
- "character": 8
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "number"
- }
- ]
- }
- },
- {
- "id": 303,
- "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": "src/lib/storage/types.ts",
- "line": 38,
- "character": 8
- }
- ],
- "type": {
- "type": "reference",
- "id": 295,
- "name": "SortBy"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 301,
- 302,
- 303
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 30,
- "character": 30
- }
- ]
- },
- {
- "id": 295,
- "name": "SortBy",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 296,
- "name": "column",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 22,
- "character": 8
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- },
- {
- "id": 297,
- "name": "order",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 23,
- "character": 7
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 296,
- 297
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 21,
- "character": 23
+ "fileName": "src/lib/helpers.ts",
+ "line": 3,
+ "character": 20
}
]
}
],
"groups": [
{
- "title": "Interfaces",
- "kind": 256,
+ "title": "Functions",
+ "kind": 64,
"children": [
- 278,
- 284,
- 298,
- 304,
- 300,
- 295
+ 318
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/types.ts",
+ "fileName": "src/lib/helpers.ts",
"line": 1,
"character": 0
}
@@ -13157,20 +7783,13 @@
"title": "Modules",
"kind": 1,
"children": [
- 499,
- 562,
+ 248,
+ 311,
26,
- 142,
- 119,
- 449,
+ 161,
+ 138,
1,
- 568,
- 306,
- 356,
- 229,
- 353,
- 440,
- 277,
+ 317,
4
]
}
@@ -13184,7 +7803,7 @@
"originalName": "",
"children": [
{
- "id": 191,
+ "id": 196,
"name": "\"GoTrueApi\"",
"kind": 1,
"kindString": "Module",
@@ -13194,7 +7813,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",
"children": [
{
- "id": 192,
+ "id": 197,
"name": "GoTrueApi",
"kind": 128,
"kindString": "Class",
@@ -13203,7 +7822,7 @@
},
"children": [
{
- "id": 199,
+ "id": 204,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -13212,7 +7831,7 @@
},
"signatures": [
{
- "id": 200,
+ "id": 205,
"name": "new GoTrueApi",
"kind": 16384,
"kindString": "Constructor signature",
@@ -13221,7 +7840,7 @@
},
"parameters": [
{
- "id": 201,
+ "id": 206,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -13232,7 +7851,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 202,
+ "id": 207,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13241,7 +7860,7 @@
},
"children": [
{
- "id": 208,
+ "id": 213,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -13264,14 +7883,14 @@
},
{
"type": "reference",
- "id": 87,
+ "id": 92,
"name": "CookieOptions"
}
]
}
},
{
- "id": 204,
+ "id": 209,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -13288,7 +7907,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 205,
+ "id": 210,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13297,7 +7916,7 @@
},
"indexSignature": [
{
- "id": 206,
+ "id": 211,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -13306,7 +7925,7 @@
},
"parameters": [
{
- "id": 207,
+ "id": 212,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -13329,7 +7948,7 @@
}
},
{
- "id": 203,
+ "id": 208,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -13355,9 +7974,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 208,
- 204,
- 203
+ 213,
+ 209,
+ 208
]
}
],
@@ -13374,7 +7993,7 @@
],
"type": {
"type": "reference",
- "id": 192,
+ "id": 197,
"name": "GoTrueApi"
}
}
@@ -13388,7 +8007,7 @@
]
},
{
- "id": 198,
+ "id": 203,
"name": "cookieOptions",
"kind": 1024,
"kindString": "Property",
@@ -13405,12 +8024,12 @@
],
"type": {
"type": "reference",
- "id": 87,
+ "id": 92,
"name": "CookieOptions"
}
},
{
- "id": 194,
+ "id": 199,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -13428,7 +8047,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 195,
+ "id": 200,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13437,7 +8056,7 @@
},
"indexSignature": [
{
- "id": 196,
+ "id": 201,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -13446,7 +8065,7 @@
},
"parameters": [
{
- "id": 197,
+ "id": 202,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -13476,7 +8095,7 @@
}
},
{
- "id": 193,
+ "id": 198,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -13497,7 +8116,7 @@
}
},
{
- "id": 259,
+ "id": 264,
"name": "_createRequestHeaders",
"kind": 2048,
"kindString": "Method",
@@ -13507,7 +8126,7 @@
},
"signatures": [
{
- "id": 260,
+ "id": 265,
"name": "_createRequestHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -13519,7 +8138,7 @@
},
"parameters": [
{
- "id": 261,
+ "id": 266,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -13538,7 +8157,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 262,
+ "id": 267,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13558,7 +8177,198 @@
]
},
{
- "id": 268,
+ "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, logged-in JWT.\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",
@@ -13567,7 +8377,7 @@
},
"signatures": [
{
- "id": 269,
+ "id": 274,
"name": "getUrlForProvider",
"kind": 4096,
"kindString": "Call signature",
@@ -13579,7 +8389,7 @@
},
"parameters": [
{
- "id": 270,
+ "id": 275,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -13591,12 +8401,12 @@
},
"type": {
"type": "reference",
- "id": 97,
+ "id": 102,
"name": "Provider"
}
},
{
- "id": 271,
+ "id": 276,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -13606,7 +8416,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 272,
+ "id": 277,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13615,7 +8425,7 @@
},
"children": [
{
- "id": 273,
+ "id": 278,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -13645,7 +8455,7 @@
}
},
{
- "id": 274,
+ "id": 279,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -13680,8 +8490,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 273,
- 274
+ 278,
+ 279
]
}
],
@@ -13711,7 +8521,7 @@
]
},
{
- "id": 275,
+ "id": 280,
"name": "getUser",
"kind": 2048,
"kindString": "Method",
@@ -13720,7 +8530,7 @@
},
"signatures": [
{
- "id": 276,
+ "id": 281,
"name": "getUser",
"kind": 4096,
"kindString": "Call signature",
@@ -13732,7 +8542,7 @@
},
"parameters": [
{
- "id": 277,
+ "id": 282,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -13754,7 +8564,7 @@
{
"type": "reflection",
"declaration": {
- "id": 278,
+ "id": 283,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13763,7 +8573,7 @@
},
"children": [
{
- "id": 280,
+ "id": 285,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -13782,7 +8592,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -13793,7 +8603,7 @@
}
},
{
- "id": 281,
+ "id": 286,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -13822,7 +8632,7 @@
}
},
{
- "id": 279,
+ "id": 284,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -13841,7 +8651,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -13857,9 +8667,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 280,
- 281,
- 279
+ 285,
+ 286,
+ 284
]
}
],
@@ -13886,7 +8696,7 @@
]
},
{
- "id": 300,
+ "id": 313,
"name": "getUserByCookie",
"kind": 2048,
"kindString": "Method",
@@ -13895,7 +8705,7 @@
},
"signatures": [
{
- "id": 301,
+ "id": 314,
"name": "getUserByCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -13907,7 +8717,7 @@
},
"parameters": [
{
- "id": 302,
+ "id": 315,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -13926,7 +8736,7 @@
{
"type": "reflection",
"declaration": {
- "id": 303,
+ "id": 316,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13935,7 +8745,7 @@
},
"children": [
{
- "id": 305,
+ "id": 318,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -13945,7 +8755,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 298,
+ "line": 321,
"character": 38
}
],
@@ -13954,7 +8764,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -13965,7 +8775,7 @@
}
},
{
- "id": 306,
+ "id": 319,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -13975,7 +8785,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 298,
+ "line": 321,
"character": 58
}
],
@@ -13994,7 +8804,7 @@
}
},
{
- "id": 304,
+ "id": 317,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -14004,7 +8814,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 298,
+ "line": 321,
"character": 19
}
],
@@ -14013,7 +8823,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -14029,16 +8839,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 305,
- 306,
- 304
+ 318,
+ 319,
+ 317
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 298,
+ "line": 321,
"character": 13
}
]
@@ -14052,13 +8862,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 296,
+ "line": 319,
"character": 23
}
]
},
{
- "id": 239,
+ "id": 244,
"name": "inviteUserByEmail",
"kind": 2048,
"kindString": "Method",
@@ -14067,7 +8877,7 @@
},
"signatures": [
{
- "id": 240,
+ "id": 245,
"name": "inviteUserByEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -14079,7 +8889,7 @@
},
"parameters": [
{
- "id": 241,
+ "id": 246,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -14095,7 +8905,7 @@
}
},
{
- "id": 242,
+ "id": 247,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -14105,7 +8915,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 243,
+ "id": 248,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14114,7 +8924,7 @@
},
"children": [
{
- "id": 244,
+ "id": 249,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -14149,7 +8959,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 244
+ 249
]
}
],
@@ -14171,7 +8981,7 @@
{
"type": "reflection",
"declaration": {
- "id": 245,
+ "id": 250,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14180,7 +8990,7 @@
},
"children": [
{
- "id": 246,
+ "id": 251,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -14200,7 +9010,7 @@
{
"type": "reflection",
"declaration": {
- "id": 247,
+ "id": 252,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14224,7 +9034,7 @@
}
},
{
- "id": 248,
+ "id": 253,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -14258,8 +9068,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 246,
- 248
+ 251,
+ 253
]
}
],
@@ -14286,7 +9096,7 @@
]
},
{
- "id": 290,
+ "id": 303,
"name": "refreshAccessToken",
"kind": 2048,
"kindString": "Method",
@@ -14295,7 +9105,7 @@
},
"signatures": [
{
- "id": 291,
+ "id": 304,
"name": "refreshAccessToken",
"kind": 4096,
"kindString": "Call signature",
@@ -14307,7 +9117,7 @@
},
"parameters": [
{
- "id": 292,
+ "id": 305,
"name": "refreshToken",
"kind": 32768,
"kindString": "Parameter",
@@ -14329,7 +9139,7 @@
{
"type": "reflection",
"declaration": {
- "id": 293,
+ "id": 306,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14338,7 +9148,7 @@
},
"children": [
{
- "id": 294,
+ "id": 307,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -14348,7 +9158,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 251,
+ "line": 274,
"character": 19
}
],
@@ -14357,7 +9167,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -14368,7 +9178,7 @@
}
},
{
- "id": 295,
+ "id": 308,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -14378,7 +9188,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 251,
+ "line": 274,
"character": 42
}
],
@@ -14402,15 +9212,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 294,
- 295
+ 307,
+ 308
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 251,
+ "line": 274,
"character": 13
}
]
@@ -14424,13 +9234,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 249,
+ "line": 272,
"character": 26
}
]
},
{
- "id": 249,
+ "id": 254,
"name": "resetPasswordForEmail",
"kind": 2048,
"kindString": "Method",
@@ -14439,7 +9249,7 @@
},
"signatures": [
{
- "id": 250,
+ "id": 255,
"name": "resetPasswordForEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -14451,7 +9261,7 @@
},
"parameters": [
{
- "id": 251,
+ "id": 256,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -14467,7 +9277,7 @@
}
},
{
- "id": 252,
+ "id": 257,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -14477,7 +9287,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 253,
+ "id": 258,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14486,7 +9296,7 @@
},
"children": [
{
- "id": 254,
+ "id": 259,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -14521,7 +9331,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 254
+ 259
]
}
],
@@ -14543,7 +9353,7 @@
{
"type": "reflection",
"declaration": {
- "id": 255,
+ "id": 260,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14552,7 +9362,7 @@
},
"children": [
{
- "id": 256,
+ "id": 261,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -14572,7 +9382,7 @@
{
"type": "reflection",
"declaration": {
- "id": 257,
+ "id": 262,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14596,7 +9406,7 @@
}
},
{
- "id": 258,
+ "id": 263,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -14630,8 +9440,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 256,
- 258
+ 261,
+ 263
]
}
],
@@ -14658,7 +9468,7 @@
]
},
{
- "id": 229,
+ "id": 234,
"name": "sendMagicLinkEmail",
"kind": 2048,
"kindString": "Method",
@@ -14667,7 +9477,7 @@
},
"signatures": [
{
- "id": 230,
+ "id": 235,
"name": "sendMagicLinkEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -14679,7 +9489,7 @@
},
"parameters": [
{
- "id": 231,
+ "id": 236,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -14695,7 +9505,7 @@
}
},
{
- "id": 232,
+ "id": 237,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -14705,7 +9515,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 233,
+ "id": 238,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14714,7 +9524,7 @@
},
"children": [
{
- "id": 234,
+ "id": 239,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -14749,7 +9559,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 234
+ 239
]
}
],
@@ -14771,7 +9581,7 @@
{
"type": "reflection",
"declaration": {
- "id": 235,
+ "id": 240,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14780,7 +9590,7 @@
},
"children": [
{
- "id": 236,
+ "id": 241,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -14800,7 +9610,7 @@
{
"type": "reflection",
"declaration": {
- "id": 237,
+ "id": 242,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -14824,7 +9634,7 @@
}
},
{
- "id": 238,
+ "id": 243,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -14858,8 +9668,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 236,
- 238
+ 241,
+ 243
]
}
],
@@ -14886,7 +9696,7 @@
]
},
{
- "id": 296,
+ "id": 309,
"name": "setAuthCookie",
"kind": 2048,
"kindString": "Method",
@@ -14895,7 +9705,7 @@
},
"signatures": [
{
- "id": 297,
+ "id": 310,
"name": "setAuthCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -14907,7 +9717,7 @@
},
"parameters": [
{
- "id": 298,
+ "id": 311,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -14920,7 +9730,7 @@
}
},
{
- "id": 299,
+ "id": 312,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -14942,13 +9752,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 270,
+ "line": 293,
"character": 15
}
]
},
{
- "id": 219,
+ "id": 224,
"name": "signInWithEmail",
"kind": 2048,
"kindString": "Method",
@@ -14957,7 +9767,7 @@
},
"signatures": [
{
- "id": 220,
+ "id": 225,
"name": "signInWithEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -14969,7 +9779,7 @@
},
"parameters": [
{
- "id": 221,
+ "id": 226,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -14985,7 +9795,7 @@
}
},
{
- "id": 222,
+ "id": 227,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -15001,7 +9811,7 @@
}
},
{
- "id": 223,
+ "id": 228,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -15011,7 +9821,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 224,
+ "id": 229,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -15020,7 +9830,7 @@
},
"children": [
{
- "id": 225,
+ "id": 230,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -15055,7 +9865,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 225
+ 230
]
}
],
@@ -15077,7 +9887,7 @@
{
"type": "reflection",
"declaration": {
- "id": 226,
+ "id": 231,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -15086,7 +9896,7 @@
},
"children": [
{
- "id": 227,
+ "id": 232,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -15105,7 +9915,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -15116,7 +9926,7 @@
}
},
{
- "id": 228,
+ "id": 233,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -15150,8 +9960,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 227,
- 228
+ 232,
+ 233
]
}
],
@@ -15178,7 +9988,7 @@
]
},
{
- "id": 263,
+ "id": 268,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -15187,7 +9997,7 @@
},
"signatures": [
{
- "id": 264,
+ "id": 269,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -15199,7 +10009,7 @@
},
"parameters": [
{
- "id": 265,
+ "id": 270,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -15221,7 +10031,7 @@
{
"type": "reflection",
"declaration": {
- "id": 266,
+ "id": 271,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -15230,7 +10040,7 @@
},
"children": [
{
- "id": 267,
+ "id": 272,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -15264,7 +10074,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 267
+ 272
]
}
],
@@ -15291,7 +10101,7 @@
]
},
{
- "id": 209,
+ "id": 214,
"name": "signUpWithEmail",
"kind": 2048,
"kindString": "Method",
@@ -15300,7 +10110,7 @@
},
"signatures": [
{
- "id": 210,
+ "id": 215,
"name": "signUpWithEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -15313,7 +10123,7 @@
},
"parameters": [
{
- "id": 211,
+ "id": 216,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -15329,7 +10139,7 @@
}
},
{
- "id": 212,
+ "id": 217,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -15345,7 +10155,7 @@
}
},
{
- "id": 213,
+ "id": 218,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -15355,7 +10165,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 214,
+ "id": 219,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -15364,7 +10174,7 @@
},
"children": [
{
- "id": 215,
+ "id": 220,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -15399,7 +10209,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 215
+ 220
]
}
],
@@ -15421,7 +10231,7 @@
{
"type": "reflection",
"declaration": {
- "id": 216,
+ "id": 221,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -15430,7 +10240,7 @@
},
"children": [
{
- "id": 217,
+ "id": 222,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -15449,12 +10259,12 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -15465,7 +10275,7 @@
}
},
{
- "id": 218,
+ "id": 223,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -15499,8 +10309,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 217,
- 218
+ 222,
+ 223
]
}
],
@@ -15527,7 +10337,7 @@
]
},
{
- "id": 282,
+ "id": 287,
"name": "updateUser",
"kind": 2048,
"kindString": "Method",
@@ -15536,7 +10346,7 @@
},
"signatures": [
{
- "id": 283,
+ "id": 288,
"name": "updateUser",
"kind": 4096,
"kindString": "Call signature",
@@ -15548,7 +10358,7 @@
},
"parameters": [
{
- "id": 284,
+ "id": 289,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -15564,7 +10374,7 @@
}
},
{
- "id": 285,
+ "id": 290,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -15576,7 +10386,7 @@
},
"type": {
"type": "reference",
- "id": 72,
+ "id": 77,
"name": "UserAttributes"
}
}
@@ -15587,7 +10397,7 @@
{
"type": "reflection",
"declaration": {
- "id": 286,
+ "id": 291,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -15596,7 +10406,7 @@
},
"children": [
{
- "id": 288,
+ "id": 293,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -15615,7 +10425,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -15626,7 +10436,7 @@
}
},
{
- "id": 289,
+ "id": 294,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -15655,7 +10465,7 @@
}
},
{
- "id": 287,
+ "id": 292,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -15674,7 +10484,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -15690,9 +10500,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 288,
- 289,
- 287
+ 293,
+ 294,
+ 292
]
}
],
@@ -15724,35 +10534,36 @@
"title": "Constructors",
"kind": 512,
"children": [
- 199
+ 204
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 198,
- 194,
- 193
+ 203,
+ 199,
+ 198
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 259,
+ 264,
+ 295,
+ 273,
+ 280,
+ 313,
+ 244,
+ 303,
+ 254,
+ 234,
+ 309,
+ 224,
268,
- 275,
- 300,
- 239,
- 290,
- 249,
- 229,
- 296,
- 219,
- 263,
- 209,
- 282
+ 214,
+ 287
]
}
],
@@ -15770,7 +10581,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 192
+ 197
]
}
],
@@ -15783,7 +10594,7 @@
]
},
{
- "id": 310,
+ "id": 323,
"name": "\"GoTrueClient\"",
"kind": 1,
"kindString": "Module",
@@ -15793,7 +10604,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
"children": [
{
- "id": 311,
+ "id": 324,
"name": "GoTrueClient",
"kind": 128,
"kindString": "Class",
@@ -15802,7 +10613,7 @@
},
"children": [
{
- "id": 319,
+ "id": 333,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -15814,7 +10625,7 @@
},
"signatures": [
{
- "id": 320,
+ "id": 334,
"name": "new GoTrueClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -15826,7 +10637,7 @@
},
"parameters": [
{
- "id": 321,
+ "id": 335,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -15836,7 +10647,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 322,
+ "id": 336,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -15845,7 +10656,7 @@
},
"children": [
{
- "id": 329,
+ "id": 343,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -15859,7 +10670,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 58,
+ "line": 60,
"character": 20
}
],
@@ -15882,7 +10693,7 @@
}
},
{
- "id": 332,
+ "id": 346,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -15893,18 +10704,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 61,
+ "line": 63,
"character": 17
}
],
"type": {
"type": "reference",
- "id": 87,
+ "id": 92,
"name": "CookieOptions"
}
},
{
- "id": 328,
+ "id": 342,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -15918,7 +10729,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 57,
+ "line": 59,
"character": 22
}
],
@@ -15941,7 +10752,7 @@
}
},
{
- "id": 324,
+ "id": 338,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -15955,7 +10766,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 56,
+ "line": 58,
"character": 11
}
],
@@ -15969,7 +10780,7 @@
{
"type": "reflection",
"declaration": {
- "id": 325,
+ "id": 339,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -15978,7 +10789,7 @@
},
"indexSignature": [
{
- "id": 326,
+ "id": 340,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -15987,7 +10798,7 @@
},
"parameters": [
{
- "id": 327,
+ "id": 341,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -16012,7 +10823,7 @@
}
},
{
- "id": 331,
+ "id": 345,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -16026,7 +10837,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 60,
+ "line": 62,
"character": 16
}
],
@@ -16036,7 +10847,7 @@
}
},
{
- "id": 330,
+ "id": 344,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -16050,7 +10861,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 59,
+ "line": 61,
"character": 18
}
],
@@ -16073,7 +10884,7 @@
}
},
{
- "id": 323,
+ "id": 337,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -16087,7 +10898,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 55,
+ "line": 57,
"character": 7
}
],
@@ -16111,20 +10922,20 @@
"title": "Variables",
"kind": 32,
"children": [
- 329,
- 332,
- 328,
- 324,
- 331,
- 330,
- 323
+ 343,
+ 346,
+ 342,
+ 338,
+ 345,
+ 344,
+ 337
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 54,
+ "line": 56,
"character": 22
}
]
@@ -16134,7 +10945,7 @@
],
"type": {
"type": "reference",
- "id": 311,
+ "id": 324,
"name": "GoTrueClient"
}
}
@@ -16142,13 +10953,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 43,
- "character": 70
+ "line": 45,
+ "character": 61
}
]
},
{
- "id": 312,
+ "id": 325,
"name": "api",
"kind": 1024,
"kindString": "Property",
@@ -16167,12 +10978,12 @@
],
"type": {
"type": "reference",
- "id": 192,
+ "id": 197,
"name": "GoTrueApi"
}
},
{
- "id": 315,
+ "id": 328,
"name": "autoRefreshToken",
"kind": 1024,
"kindString": "Property",
@@ -16183,7 +10994,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 40,
+ "line": 41,
"character": 28
}
],
@@ -16193,7 +11004,7 @@
}
},
{
- "id": 314,
+ "id": 327,
"name": "currentSession",
"kind": 1024,
"kindString": "Property",
@@ -16216,7 +11027,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -16227,7 +11038,7 @@
}
},
{
- "id": 313,
+ "id": 326,
"name": "currentUser",
"kind": 1024,
"kindString": "Property",
@@ -16250,7 +11061,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -16261,7 +11072,7 @@
}
},
{
- "id": 317,
+ "id": 330,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -16272,7 +11083,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 42,
+ "line": 43,
"character": 24
}
],
@@ -16282,7 +11093,7 @@
}
},
{
- "id": 316,
+ "id": 329,
"name": "persistSession",
"kind": 1024,
"kindString": "Property",
@@ -16293,7 +11104,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 41,
+ "line": 42,
"character": 26
}
],
@@ -16303,7 +11114,38 @@
}
},
{
- "id": 318,
+ "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",
@@ -16314,7 +11156,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 43,
+ "line": 44,
"character": 31
}
],
@@ -16327,7 +11169,7 @@
},
{
"type": "reference",
- "id": 77,
+ "id": 82,
"name": "Subscription"
}
],
@@ -16336,7 +11178,7 @@
"defaultValue": "new Map()"
},
{
- "id": 452,
+ "id": 467,
"name": "_callRefreshToken",
"kind": 2048,
"kindString": "Method",
@@ -16346,7 +11188,7 @@
},
"signatures": [
{
- "id": 453,
+ "id": 468,
"name": "_callRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -16355,7 +11197,7 @@
},
"parameters": [
{
- "id": 454,
+ "id": 469,
"name": "refresh_token",
"kind": 32768,
"kindString": "Parameter",
@@ -16387,7 +11229,7 @@
{
"type": "reflection",
"declaration": {
- "id": 455,
+ "id": 470,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -16396,7 +11238,7 @@
},
"children": [
{
- "id": 456,
+ "id": 471,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -16406,18 +11248,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 505,
+ "line": 518,
"character": 19
}
],
"type": {
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
}
},
{
- "id": 457,
+ "id": 472,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -16427,7 +11269,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 505,
+ "line": 518,
"character": 26
}
],
@@ -16443,8 +11285,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 456,
- 457
+ 471,
+ 472
]
}
]
@@ -16453,7 +11295,7 @@
{
"type": "reflection",
"declaration": {
- "id": 458,
+ "id": 473,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -16462,7 +11304,7 @@
},
"children": [
{
- "id": 459,
+ "id": 474,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -16472,7 +11314,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 507,
+ "line": 520,
"character": 19
}
],
@@ -16483,7 +11325,7 @@
"defaultValue": "null"
},
{
- "id": 460,
+ "id": 475,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -16493,7 +11335,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 507,
+ "line": 520,
"character": 32
}
],
@@ -16508,8 +11350,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 459,
- 460
+ 474,
+ 475
]
}
]
@@ -16525,13 +11367,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 482,
+ "line": 506,
"character": 33
}
]
},
{
- "id": 404,
+ "id": 427,
"name": "_handleEmailSignIn",
"kind": 2048,
"kindString": "Method",
@@ -16541,7 +11383,7 @@
},
"signatures": [
{
- "id": 405,
+ "id": 428,
"name": "_handleEmailSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -16550,7 +11392,7 @@
},
"parameters": [
{
- "id": 406,
+ "id": 429,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -16563,7 +11405,7 @@
}
},
{
- "id": 407,
+ "id": 430,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -16576,7 +11418,7 @@
}
},
{
- "id": 408,
+ "id": 431,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -16586,7 +11428,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 409,
+ "id": 432,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -16595,7 +11437,7 @@
},
"children": [
{
- "id": 410,
+ "id": 433,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -16606,7 +11448,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 353,
+ "line": 397,
"character": 16
}
],
@@ -16630,14 +11472,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 410
+ 433
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 352,
+ "line": 396,
"character": 12
}
]
@@ -16655,7 +11497,7 @@
{
"type": "reflection",
"declaration": {
- "id": 411,
+ "id": 434,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -16664,7 +11506,7 @@
},
"children": [
{
- "id": 412,
+ "id": 435,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -16674,18 +11516,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 367,
+ "line": 411,
"character": 19
}
],
"type": {
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
}
},
{
- "id": 415,
+ "id": 438,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -16695,7 +11537,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 367,
+ "line": 411,
"character": 58
}
],
@@ -16706,7 +11548,7 @@
"defaultValue": "null"
},
{
- "id": 414,
+ "id": 437,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -16716,19 +11558,19 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 367,
+ "line": 411,
"character": 45
}
],
"type": {
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
"defaultValue": "data"
},
{
- "id": 413,
+ "id": 436,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -16738,14 +11580,23 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 367,
+ "line": 411,
"character": 25
}
],
"type": {
- "type": "reference",
- "id": 53,
- "name": "User"
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ }
+ ]
},
"defaultValue": "data.user"
}
@@ -16755,10 +11606,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 412,
- 415,
- 414,
- 413
+ 435,
+ 438,
+ 437,
+ 436
]
}
]
@@ -16767,7 +11618,7 @@
{
"type": "reflection",
"declaration": {
- "id": 416,
+ "id": 439,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -16776,7 +11627,7 @@
},
"children": [
{
- "id": 417,
+ "id": 440,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -16786,7 +11637,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 369,
+ "line": 413,
"character": 19
}
],
@@ -16797,7 +11648,7 @@
"defaultValue": "null"
},
{
- "id": 420,
+ "id": 443,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -16807,7 +11658,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 369,
+ "line": 413,
"character": 59
}
],
@@ -16817,7 +11668,7 @@
}
},
{
- "id": 419,
+ "id": 442,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -16827,7 +11678,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 369,
+ "line": 413,
"character": 46
}
],
@@ -16838,7 +11689,7 @@
"defaultValue": "null"
},
{
- "id": 418,
+ "id": 441,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -16848,7 +11699,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 369,
+ "line": 413,
"character": 31
}
],
@@ -16864,10 +11715,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 417,
- 420,
- 419,
- 418
+ 440,
+ 443,
+ 442,
+ 441
]
}
]
@@ -16883,13 +11734,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 349,
+ "line": 393,
"character": 34
}
]
},
{
- "id": 421,
+ "id": 444,
"name": "_handleProviderSignIn",
"kind": 2048,
"kindString": "Method",
@@ -16899,7 +11750,7 @@
},
"signatures": [
{
- "id": 422,
+ "id": 445,
"name": "_handleProviderSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -16908,7 +11759,7 @@
},
"parameters": [
{
- "id": 423,
+ "id": 446,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -16917,12 +11768,12 @@
},
"type": {
"type": "reference",
- "id": 97,
+ "id": 102,
"name": "Provider"
}
},
{
- "id": 424,
+ "id": 447,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -16932,7 +11783,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 425,
+ "id": 448,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -16941,7 +11792,7 @@
},
"children": [
{
- "id": 426,
+ "id": 449,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -16952,7 +11803,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 376,
+ "line": 420,
"character": 16
}
],
@@ -16971,7 +11822,7 @@
}
},
{
- "id": 427,
+ "id": 450,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -16982,7 +11833,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 377,
+ "line": 421,
"character": 12
}
],
@@ -17006,15 +11857,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 426,
- 427
+ 449,
+ 450
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 375,
+ "line": 419,
"character": 12
}
]
@@ -17029,7 +11880,7 @@
{
"type": "reflection",
"declaration": {
- "id": 428,
+ "id": 451,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17038,7 +11889,7 @@
},
"children": [
{
- "id": 431,
+ "id": 454,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -17048,7 +11899,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 34
}
],
@@ -17059,7 +11910,7 @@
"defaultValue": "null"
},
{
- "id": 434,
+ "id": 457,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -17069,7 +11920,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 74
}
],
@@ -17080,7 +11931,7 @@
"defaultValue": "null"
},
{
- "id": 429,
+ "id": 452,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -17090,18 +11941,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 23
}
],
"type": {
"type": "reference",
- "id": 97,
+ "id": 102,
"name": "Provider"
}
},
{
- "id": 432,
+ "id": 455,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -17111,7 +11962,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 49
}
],
@@ -17122,7 +11973,7 @@
"defaultValue": "null"
},
{
- "id": 430,
+ "id": 453,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -17132,7 +11983,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 28
}
],
@@ -17142,7 +11993,7 @@
}
},
{
- "id": 433,
+ "id": 456,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -17152,7 +12003,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 61
}
],
@@ -17168,12 +12019,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 431,
- 434,
- 429,
- 432,
- 430,
- 433
+ 454,
+ 457,
+ 452,
+ 455,
+ 453,
+ 456
]
}
]
@@ -17182,7 +12033,7 @@
{
"type": "reflection",
"declaration": {
- "id": 435,
+ "id": 458,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17191,7 +12042,7 @@
},
"children": [
{
- "id": 436,
+ "id": 459,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -17201,7 +12052,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 394,
+ "line": 438,
"character": 19
}
],
@@ -17212,7 +12063,7 @@
"defaultValue": "null"
},
{
- "id": 439,
+ "id": 462,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -17222,7 +12073,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 394,
+ "line": 438,
"character": 59
}
],
@@ -17232,7 +12083,7 @@
}
},
{
- "id": 438,
+ "id": 461,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -17242,7 +12093,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 394,
+ "line": 438,
"character": 46
}
],
@@ -17253,7 +12104,7 @@
"defaultValue": "null"
},
{
- "id": 437,
+ "id": 460,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -17263,7 +12114,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 394,
+ "line": 438,
"character": 31
}
],
@@ -17279,10 +12130,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 436,
- 439,
- 438,
- 437
+ 459,
+ 462,
+ 461,
+ 460
]
}
]
@@ -17295,13 +12146,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 373,
+ "line": 417,
"character": 31
}
]
},
{
- "id": 461,
+ "id": 476,
"name": "_notifyAllSubscribers",
"kind": 2048,
"kindString": "Method",
@@ -17311,7 +12162,7 @@
},
"signatures": [
{
- "id": 462,
+ "id": 477,
"name": "_notifyAllSubscribers",
"kind": 4096,
"kindString": "Call signature",
@@ -17320,7 +12171,7 @@
},
"parameters": [
{
- "id": 463,
+ "id": 478,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -17329,7 +12180,7 @@
},
"type": {
"type": "reference",
- "id": 98,
+ "id": 103,
"name": "AuthChangeEvent"
}
}
@@ -17343,13 +12194,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 511,
+ "line": 524,
"character": 31
}
]
},
{
- "id": 443,
+ "id": 482,
"name": "_persistSession",
"kind": 2048,
"kindString": "Method",
@@ -17359,7 +12210,7 @@
},
"signatures": [
{
- "id": 444,
+ "id": 483,
"name": "_persistSession",
"kind": 4096,
"kindString": "Call signature",
@@ -17368,7 +12219,7 @@
},
"parameters": [
{
- "id": 445,
+ "id": 484,
"name": "currentSession",
"kind": 32768,
"kindString": "Parameter",
@@ -17377,7 +12228,7 @@
},
"type": {
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
}
}
@@ -17391,13 +12242,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 407,
+ "line": 547,
"character": 25
}
]
},
{
- "id": 450,
+ "id": 465,
"name": "_recoverAndRefresh",
"kind": 2048,
"kindString": "Method",
@@ -17407,7 +12258,7 @@
},
"signatures": [
{
- "id": 451,
+ "id": 466,
"name": "_recoverAndRefresh",
"kind": 4096,
"kindString": "Call signature",
@@ -17415,7 +12266,7 @@
"isExported": true
},
"comment": {
- "shortText": "Recovers the session from LocalStorage and refreshes"
+ "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",
@@ -17441,13 +12292,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 445,
+ "line": 470,
"character": 34
}
]
},
{
- "id": 448,
+ "id": 463,
"name": "_recoverSession",
"kind": 2048,
"kindString": "Method",
@@ -17457,7 +12308,7 @@
},
"signatures": [
{
- "id": 449,
+ "id": 464,
"name": "_recoverSession",
"kind": 4096,
"kindString": "Call signature",
@@ -17485,13 +12336,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 422,
+ "line": 446,
"character": 25
}
]
},
{
- "id": 446,
+ "id": 485,
"name": "_removeSession",
"kind": 2048,
"kindString": "Method",
@@ -17501,7 +12352,7 @@
},
"signatures": [
{
- "id": 447,
+ "id": 486,
"name": "_removeSession",
"kind": 4096,
"kindString": "Call signature",
@@ -17523,13 +12374,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 412,
+ "line": 552,
"character": 30
}
]
},
{
- "id": 440,
+ "id": 479,
"name": "_saveSession",
"kind": 2048,
"kindString": "Method",
@@ -17539,16 +12390,19 @@
},
"signatures": [
{
- "id": 441,
+ "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": 442,
+ "id": 481,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -17557,7 +12411,7 @@
},
"type": {
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
}
}
@@ -17571,13 +12425,66 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 398,
+ "line": 532,
"character": 22
}
]
},
{
- "id": 382,
+ "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": 563,
+ "character": 32
+ }
+ ]
+ },
+ {
+ "id": 405,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -17586,7 +12493,7 @@
},
"signatures": [
{
- "id": 383,
+ "id": 406,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -17598,7 +12505,7 @@
},
"parameters": [
{
- "id": 384,
+ "id": 407,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -17616,7 +12523,7 @@
{
"type": "reflection",
"declaration": {
- "id": 385,
+ "id": 408,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17625,7 +12532,7 @@
},
"children": [
{
- "id": 386,
+ "id": 409,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -17639,7 +12546,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 260,
+ "line": 303,
"character": 16
}
],
@@ -17667,7 +12574,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 386
+ 409
]
}
]
@@ -17683,7 +12590,7 @@
{
"type": "reflection",
"declaration": {
- "id": 387,
+ "id": 410,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17692,7 +12599,7 @@
},
"children": [
{
- "id": 388,
+ "id": 411,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -17702,7 +12609,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 261,
+ "line": 304,
"character": 20
}
],
@@ -17711,7 +12618,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -17722,7 +12629,7 @@
}
},
{
- "id": 389,
+ "id": 412,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -17732,7 +12639,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 261,
+ "line": 304,
"character": 43
}
],
@@ -17756,15 +12663,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 388,
- 389
+ 411,
+ 412
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 261,
+ "line": 304,
"character": 14
}
]
@@ -17778,13 +12685,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 259,
+ "line": 302,
"character": 25
}
]
},
{
- "id": 394,
+ "id": 417,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -17793,7 +12700,7 @@
},
"signatures": [
{
- "id": 395,
+ "id": 418,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -17806,7 +12713,7 @@
},
"parameters": [
{
- "id": 396,
+ "id": 419,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -17816,7 +12723,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 397,
+ "id": 420,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17825,7 +12732,7 @@
},
"signatures": [
{
- "id": 398,
+ "id": 421,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -17834,7 +12741,7 @@
},
"parameters": [
{
- "id": 399,
+ "id": 422,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -17843,12 +12750,12 @@
},
"type": {
"type": "reference",
- "id": 98,
+ "id": 103,
"name": "AuthChangeEvent"
}
},
{
- "id": 400,
+ "id": 423,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -17860,7 +12767,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -17880,7 +12787,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 330,
+ "line": 374,
"character": 13
}
]
@@ -17891,7 +12798,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 401,
+ "id": 424,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -17900,7 +12807,7 @@
},
"children": [
{
- "id": 402,
+ "id": 425,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -17910,7 +12817,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 331,
+ "line": 375,
"character": 11
}
],
@@ -17919,7 +12826,7 @@
"types": [
{
"type": "reference",
- "id": 77,
+ "id": 82,
"name": "Subscription"
},
{
@@ -17930,7 +12837,7 @@
}
},
{
- "id": 403,
+ "id": 426,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -17940,7 +12847,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 331,
+ "line": 375,
"character": 39
}
],
@@ -17964,15 +12871,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 402,
- 403
+ 425,
+ 426
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 331,
+ "line": 375,
"character": 4
}
]
@@ -17983,13 +12890,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 329,
+ "line": 373,
"character": 19
}
]
},
{
- "id": 369,
+ "id": 383,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -17998,7 +12905,7 @@
},
"signatures": [
{
- "id": 370,
+ "id": 384,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -18014,7 +12921,7 @@
{
"type": "reflection",
"declaration": {
- "id": 371,
+ "id": 385,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18023,7 +12930,7 @@
},
"children": [
{
- "id": 372,
+ "id": 386,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -18033,7 +12940,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 209,
+ "line": 211,
"character": 8
}
],
@@ -18042,7 +12949,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -18053,7 +12960,7 @@
}
},
{
- "id": 374,
+ "id": 388,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -18063,7 +12970,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 211,
+ "line": 213,
"character": 9
}
],
@@ -18082,7 +12989,7 @@
}
},
{
- "id": 373,
+ "id": 387,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -18092,7 +12999,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 210,
+ "line": 212,
"character": 8
}
],
@@ -18101,7 +13008,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -18117,16 +13024,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 372,
- 374,
- 373
+ 386,
+ 388,
+ 387
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 208,
+ "line": 210,
"character": 34
}
]
@@ -18140,13 +13047,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 208,
+ "line": 210,
"character": 22
}
]
},
{
- "id": 367,
+ "id": 381,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -18155,7 +13062,7 @@
},
"signatures": [
{
- "id": 368,
+ "id": 382,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -18170,7 +13077,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -18184,13 +13091,210 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 201,
+ "line": 203,
"character": 9
}
]
},
{
- "id": 347,
+ "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": 287,
+ "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",
@@ -18199,7 +13303,7 @@
},
"signatures": [
{
- "id": 348,
+ "id": 362,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -18211,7 +13315,7 @@
},
"parameters": [
{
- "id": 349,
+ "id": 363,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -18222,7 +13326,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 350,
+ "id": 364,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18231,7 +13335,7 @@
},
"children": [
{
- "id": 351,
+ "id": 365,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -18244,7 +13348,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 150,
+ "line": 152,
"character": 11
}
],
@@ -18263,7 +13367,7 @@
}
},
{
- "id": 352,
+ "id": 366,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -18276,7 +13380,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 150,
+ "line": 152,
"character": 21
}
],
@@ -18295,7 +13399,7 @@
}
},
{
- "id": 353,
+ "id": 367,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -18308,7 +13412,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 150,
+ "line": 152,
"character": 31
}
],
@@ -18352,16 +13456,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 351,
- 352,
- 353
+ 365,
+ 366,
+ 367
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 149,
+ "line": 151,
"character": 15
}
]
@@ -18369,7 +13473,7 @@
}
},
{
- "id": 354,
+ "id": 368,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -18379,7 +13483,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 355,
+ "id": 369,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18388,7 +13492,7 @@
},
"children": [
{
- "id": 356,
+ "id": 370,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -18399,7 +13503,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 152,
+ "line": 154,
"character": 16
}
],
@@ -18418,7 +13522,7 @@
}
},
{
- "id": 357,
+ "id": 371,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -18429,7 +13533,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 153,
+ "line": 155,
"character": 12
}
],
@@ -18453,15 +13557,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 356,
- 357
+ 370,
+ 371
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 151,
+ "line": 153,
"character": 12
}
]
@@ -18476,7 +13580,7 @@
{
"type": "reflection",
"declaration": {
- "id": 358,
+ "id": 372,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18485,7 +13589,7 @@
},
"children": [
{
- "id": 364,
+ "id": 378,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -18495,7 +13599,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 161,
+ "line": 163,
"character": 8
}
],
@@ -18504,7 +13608,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -18515,7 +13619,7 @@
}
},
{
- "id": 363,
+ "id": 377,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -18525,7 +13629,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 160,
+ "line": 162,
"character": 9
}
],
@@ -18544,7 +13648,7 @@
}
},
{
- "id": 361,
+ "id": 375,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -18555,18 +13659,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 158,
+ "line": 160,
"character": 12
}
],
"type": {
"type": "reference",
- "id": 97,
+ "id": 102,
"name": "Provider"
}
},
{
- "id": 359,
+ "id": 373,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -18576,7 +13680,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 156,
+ "line": 158,
"character": 11
}
],
@@ -18585,7 +13689,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -18596,7 +13700,7 @@
}
},
{
- "id": 362,
+ "id": 376,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -18607,7 +13711,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 159,
+ "line": 161,
"character": 7
}
],
@@ -18626,7 +13730,7 @@
}
},
{
- "id": 360,
+ "id": 374,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -18636,7 +13740,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 157,
+ "line": 159,
"character": 8
}
],
@@ -18645,7 +13749,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -18661,19 +13765,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 364,
- 363,
- 361,
- 359,
- 362,
- 360
+ 378,
+ 377,
+ 375,
+ 373,
+ 376,
+ 374
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 155,
+ "line": 157,
"character": 13
}
]
@@ -18687,13 +13791,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 149,
+ "line": 151,
"character": 14
}
]
},
{
- "id": 390,
+ "id": 413,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -18702,7 +13806,7 @@
},
"signatures": [
{
- "id": 391,
+ "id": 414,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -18719,7 +13823,7 @@
{
"type": "reflection",
"declaration": {
- "id": 392,
+ "id": 415,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18728,7 +13832,7 @@
},
"children": [
{
- "id": 393,
+ "id": 416,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -18738,7 +13842,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 315,
+ "line": 358,
"character": 34
}
],
@@ -18762,14 +13866,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 393
+ 416
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 315,
+ "line": 358,
"character": 27
}
]
@@ -18783,13 +13887,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 315,
+ "line": 358,
"character": 15
}
]
},
{
- "id": 333,
+ "id": 347,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -18798,7 +13902,7 @@
},
"signatures": [
{
- "id": 334,
+ "id": 348,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -18810,7 +13914,7 @@
},
"parameters": [
{
- "id": 335,
+ "id": 349,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -18821,7 +13925,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 336,
+ "id": 350,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18830,7 +13934,7 @@
},
"children": [
{
- "id": 337,
+ "id": 351,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -18843,7 +13947,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 95,
+ "line": 97,
"character": 11
}
],
@@ -18862,7 +13966,7 @@
}
},
{
- "id": 338,
+ "id": 352,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -18875,7 +13979,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 95,
+ "line": 97,
"character": 21
}
],
@@ -18899,15 +14003,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 337,
- 338
+ 351,
+ 352
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 94,
+ "line": 96,
"character": 15
}
]
@@ -18915,7 +14019,7 @@
}
},
{
- "id": 339,
+ "id": 353,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -18925,7 +14029,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 340,
+ "id": 354,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -18934,7 +14038,7 @@
},
"children": [
{
- "id": 341,
+ "id": 355,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -18945,7 +14049,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 97,
+ "line": 99,
"character": 16
}
],
@@ -18969,14 +14073,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 341
+ 355
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 96,
+ "line": 98,
"character": 12
}
]
@@ -18991,7 +14095,7 @@
{
"type": "reflection",
"declaration": {
- "id": 342,
+ "id": 356,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -19000,7 +14104,7 @@
},
"children": [
{
- "id": 346,
+ "id": 360,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -19010,7 +14114,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 103,
+ "line": 105,
"character": 8
}
],
@@ -19019,12 +14123,12 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -19035,7 +14139,7 @@
}
},
{
- "id": 345,
+ "id": 359,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -19045,7 +14149,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 102,
+ "line": 104,
"character": 9
}
],
@@ -19064,7 +14168,7 @@
}
},
{
- "id": 344,
+ "id": 358,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -19074,7 +14178,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 101,
+ "line": 103,
"character": 11
}
],
@@ -19083,7 +14187,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -19094,7 +14198,7 @@
}
},
{
- "id": 343,
+ "id": 357,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -19104,7 +14208,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 100,
+ "line": 102,
"character": 8
}
],
@@ -19113,7 +14217,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -19129,17 +14233,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 346,
- 345,
- 344,
- 343
+ 360,
+ 359,
+ 358,
+ 357
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 99,
+ "line": 101,
"character": 13
}
]
@@ -19153,13 +14257,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 94,
+ "line": 96,
"character": 14
}
]
},
{
- "id": 375,
+ "id": 389,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -19168,7 +14272,7 @@
},
"signatures": [
{
- "id": 376,
+ "id": 390,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -19180,7 +14284,7 @@
},
"parameters": [
{
- "id": 377,
+ "id": 391,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -19189,7 +14293,7 @@
},
"type": {
"type": "reference",
- "id": 72,
+ "id": 77,
"name": "UserAttributes"
}
}
@@ -19200,7 +14304,7 @@
{
"type": "reflection",
"declaration": {
- "id": 378,
+ "id": 392,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -19209,7 +14313,7 @@
},
"children": [
{
- "id": 379,
+ "id": 393,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -19228,7 +14332,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -19239,7 +14343,7 @@
}
},
{
- "id": 381,
+ "id": 395,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -19268,7 +14372,7 @@
}
},
{
- "id": 380,
+ "id": 394,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -19287,7 +14391,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -19303,9 +14407,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 379,
- 381,
- 380
+ 393,
+ 395,
+ 394
]
}
],
@@ -19332,7 +14436,7 @@
]
},
{
- "id": 365,
+ "id": 379,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -19341,7 +14445,7 @@
},
"signatures": [
{
- "id": 366,
+ "id": 380,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -19357,7 +14461,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -19371,7 +14475,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 194,
+ "line": 196,
"character": 6
}
]
@@ -19382,44 +14486,48 @@
"title": "Constructors",
"kind": 512,
"children": [
- 319
+ 333
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 312,
- 315,
- 314,
- 313,
- 317,
- 316,
- 318
+ 325,
+ 328,
+ 327,
+ 326,
+ 330,
+ 329,
+ 332,
+ 331
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 452,
- 404,
- 421,
- 461,
- 443,
- 450,
- 448,
- 446,
- 440,
- 382,
- 394,
- 369,
- 367,
+ 467,
+ 427,
+ 444,
+ 476,
+ 482,
+ 465,
+ 463,
+ 485,
+ 479,
+ 487,
+ 405,
+ 417,
+ 383,
+ 381,
+ 402,
+ 396,
+ 361,
+ 413,
347,
- 390,
- 333,
- 375,
- 365
+ 389,
+ 379
]
}
],
@@ -19432,7 +14540,7 @@
]
},
{
- "id": 464,
+ "id": 490,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -19441,7 +14549,7 @@
},
"children": [
{
- "id": 466,
+ "id": 492,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -19460,7 +14568,7 @@
"defaultValue": "true"
},
{
- "id": 469,
+ "id": 495,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -19479,7 +14587,7 @@
"defaultValue": "true"
},
{
- "id": 470,
+ "id": 496,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -19494,7 +14602,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 471,
+ "id": 497,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -19504,7 +14612,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 468,
+ "id": 494,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -19523,7 +14631,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 467,
+ "id": 493,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -19542,7 +14650,7 @@
"defaultValue": "true"
},
{
- "id": 465,
+ "id": 491,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -19566,12 +14674,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 466,
- 469,
- 470,
- 468,
- 467,
- 465
+ 492,
+ 495,
+ 496,
+ 494,
+ 493,
+ 491
]
}
],
@@ -19593,14 +14701,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 311
+ 324
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 464
+ 490
]
}
],
@@ -19613,7 +14721,7 @@
]
},
{
- "id": 472,
+ "id": 498,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -19623,84 +14731,84 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",
"children": [
{
- "id": 474,
+ "id": 500,
"name": "AuthChangeEvent",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 98
+ "target": 103
},
{
- "id": 479,
+ "id": 505,
"name": "CookieOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 87
+ "target": 92
},
{
- "id": 473,
+ "id": 499,
"name": "Provider",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 97
+ "target": 102
},
{
- "id": 475,
+ "id": 501,
"name": "Session",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 45
+ "target": 50
},
{
- "id": 478,
+ "id": 504,
"name": "Subscription",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 77
+ "target": 82
},
{
- "id": 476,
+ "id": 502,
"name": "User",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 53
+ "target": 58
},
{
- "id": 477,
+ "id": 503,
"name": "UserAttributes",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 72
+ "target": 77
},
{
- "id": 480,
+ "id": 506,
"name": "UserCredentials",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 93
+ "target": 98
}
],
"groups": [
@@ -19708,14 +14816,14 @@
"title": "References",
"kind": 16777216,
"children": [
- 474,
- 479,
- 473,
- 475,
- 478,
- 476,
- 477,
- 480
+ 500,
+ 505,
+ 499,
+ 501,
+ 504,
+ 502,
+ 503,
+ 506
]
}
],
@@ -19728,7 +14836,7 @@
]
},
{
- "id": 99,
+ "id": 104,
"name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
@@ -19738,7 +14846,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",
"children": [
{
- "id": 101,
+ "id": 106,
"name": "AUDIENCE",
"kind": 32,
"kindString": "Variable",
@@ -19760,7 +14868,7 @@
"defaultValue": "\"\""
},
{
- "id": 102,
+ "id": 107,
"name": "DEFAULT_HEADERS",
"kind": 32,
"kindString": "Variable",
@@ -19778,7 +14886,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 103,
+ "id": 108,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -19789,7 +14897,7 @@
}
},
{
- "id": 104,
+ "id": 109,
"name": "EXPIRY_MARGIN",
"kind": 32,
"kindString": "Variable",
@@ -19811,7 +14919,7 @@
"defaultValue": "60 * 1000"
},
{
- "id": 100,
+ "id": 105,
"name": "GOTRUE_URL",
"kind": 32,
"kindString": "Variable",
@@ -19833,7 +14941,7 @@
"defaultValue": "\"http://localhost:9999\""
},
{
- "id": 105,
+ "id": 110,
"name": "STORAGE_KEY",
"kind": 32,
"kindString": "Variable",
@@ -19855,7 +14963,7 @@
"defaultValue": "\"supabase.auth.token\""
},
{
- "id": 106,
+ "id": 111,
"name": "COOKIE_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -19865,7 +14973,7 @@
},
"children": [
{
- "id": 109,
+ "id": 114,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -19886,7 +14994,7 @@
"defaultValue": "\"\""
},
{
- "id": 108,
+ "id": 113,
"name": "lifetime",
"kind": 32,
"kindString": "Variable",
@@ -19907,7 +15015,7 @@
"defaultValue": "60 * 60 * 8"
},
{
- "id": 107,
+ "id": 112,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -19928,7 +15036,7 @@
"defaultValue": "\"sb:token\""
},
{
- "id": 110,
+ "id": 115,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -19949,7 +15057,7 @@
"defaultValue": "\"/\""
},
{
- "id": 111,
+ "id": 116,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -19975,11 +15083,11 @@
"title": "Variables",
"kind": 32,
"children": [
- 109,
- 108,
- 107,
- 110,
- 111
+ 114,
+ 113,
+ 112,
+ 115,
+ 116
]
}
],
@@ -20001,18 +15109,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 101,
- 102,
- 104,
- 100,
- 105
+ 106,
+ 107,
+ 109,
+ 105,
+ 110
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 106
+ 111
]
}
],
@@ -20025,7 +15133,7 @@
]
},
{
- "id": 112,
+ "id": 117,
"name": "\"lib/cookies\"",
"kind": 1,
"kindString": "Module",
@@ -20035,7 +15143,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts",
"children": [
{
- "id": 113,
+ "id": 118,
"name": "Cookie",
"kind": 4194304,
"kindString": "Type alias",
@@ -20050,14 +15158,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 114,
+ "id": 119,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 118,
+ "id": 123,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -20086,7 +15194,7 @@
}
},
{
- "id": 117,
+ "id": 122,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -20104,7 +15212,7 @@
}
},
{
- "id": 115,
+ "id": 120,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -20122,7 +15230,7 @@
}
},
{
- "id": 119,
+ "id": 124,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -20151,7 +15259,7 @@
}
},
{
- "id": 120,
+ "id": 125,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -20180,7 +15288,7 @@
}
},
{
- "id": 116,
+ "id": 121,
"name": "value",
"kind": 32,
"kindString": "Variable",
@@ -20203,12 +15311,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 118,
- 117,
- 115,
- 119,
+ 123,
+ 122,
120,
- 116
+ 124,
+ 125,
+ 121
]
}
],
@@ -20223,7 +15331,7 @@
}
},
{
- "id": 151,
+ "id": 156,
"name": "deleteCookie",
"kind": 64,
"kindString": "Function",
@@ -20232,7 +15340,7 @@
},
"signatures": [
{
- "id": 152,
+ "id": 157,
"name": "deleteCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -20241,7 +15349,7 @@
},
"parameters": [
{
- "id": 153,
+ "id": 158,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -20254,7 +15362,7 @@
}
},
{
- "id": 154,
+ "id": 159,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -20267,7 +15375,7 @@
}
},
{
- "id": 155,
+ "id": 160,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -20295,14 +15403,14 @@
]
},
{
- "id": 134,
+ "id": 139,
"name": "isSecureEnvironment",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 135,
+ "id": 140,
"name": "isSecureEnvironment",
"kind": 4096,
"kindString": "Call signature",
@@ -20312,7 +15420,7 @@
},
"parameters": [
{
- "id": 136,
+ "id": 141,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -20338,14 +15446,14 @@
]
},
{
- "id": 121,
+ "id": 126,
"name": "serialize",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 122,
+ "id": 127,
"name": "serialize",
"kind": 4096,
"kindString": "Call signature",
@@ -20355,7 +15463,7 @@
},
"parameters": [
{
- "id": 123,
+ "id": 128,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -20366,7 +15474,7 @@
}
},
{
- "id": 124,
+ "id": 129,
"name": "val",
"kind": 32768,
"kindString": "Parameter",
@@ -20377,7 +15485,7 @@
}
},
{
- "id": 125,
+ "id": 130,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -20385,14 +15493,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 126,
+ "id": 131,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 128,
+ "id": 133,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -20410,7 +15518,7 @@
}
},
{
- "id": 130,
+ "id": 135,
"name": "expires",
"kind": 32,
"kindString": "Variable",
@@ -20428,7 +15536,7 @@
}
},
{
- "id": 131,
+ "id": 136,
"name": "httpOnly",
"kind": 32,
"kindString": "Variable",
@@ -20446,7 +15554,7 @@
}
},
{
- "id": 127,
+ "id": 132,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -20464,7 +15572,7 @@
}
},
{
- "id": 129,
+ "id": 134,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -20482,7 +15590,7 @@
}
},
{
- "id": 133,
+ "id": 138,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -20500,7 +15608,7 @@
}
},
{
- "id": 132,
+ "id": 137,
"name": "secure",
"kind": 32,
"kindString": "Variable",
@@ -20523,13 +15631,13 @@
"title": "Variables",
"kind": 32,
"children": [
- 128,
- 130,
- 131,
- 127,
- 129,
133,
- 132
+ 135,
+ 136,
+ 132,
+ 134,
+ 138,
+ 137
]
}
],
@@ -20559,14 +15667,14 @@
]
},
{
- "id": 137,
+ "id": 142,
"name": "serializeCookie",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 138,
+ "id": 143,
"name": "serializeCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -20576,19 +15684,19 @@
},
"parameters": [
{
- "id": 139,
+ "id": 144,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 113,
+ "id": 118,
"name": "Cookie"
}
},
{
- "id": 140,
+ "id": 145,
"name": "secure",
"kind": 32768,
"kindString": "Parameter",
@@ -20614,7 +15722,7 @@
]
},
{
- "id": 146,
+ "id": 151,
"name": "setCookie",
"kind": 64,
"kindString": "Function",
@@ -20623,7 +15731,7 @@
},
"signatures": [
{
- "id": 147,
+ "id": 152,
"name": "setCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -20635,7 +15743,7 @@
},
"parameters": [
{
- "id": 148,
+ "id": 153,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -20648,7 +15756,7 @@
}
},
{
- "id": 149,
+ "id": 154,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -20661,7 +15769,7 @@
}
},
{
- "id": 150,
+ "id": 155,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
@@ -20670,7 +15778,7 @@
},
"type": {
"type": "reference",
- "id": 113,
+ "id": 118,
"name": "Cookie"
}
}
@@ -20690,7 +15798,7 @@
]
},
{
- "id": 141,
+ "id": 146,
"name": "setCookies",
"kind": 64,
"kindString": "Function",
@@ -20699,7 +15807,7 @@
},
"signatures": [
{
- "id": 142,
+ "id": 147,
"name": "setCookies",
"kind": 4096,
"kindString": "Call signature",
@@ -20711,7 +15819,7 @@
},
"parameters": [
{
- "id": 143,
+ "id": 148,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -20724,7 +15832,7 @@
}
},
{
- "id": 144,
+ "id": 149,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -20737,7 +15845,7 @@
}
},
{
- "id": 145,
+ "id": 150,
"name": "cookies",
"kind": 32768,
"kindString": "Parameter",
@@ -20749,7 +15857,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 113,
+ "id": 118,
"name": "Cookie"
}
],
@@ -20777,19 +15885,19 @@
"title": "Type aliases",
"kind": 4194304,
"children": [
- 113
+ 118
]
},
{
"title": "Functions",
"kind": 64,
"children": [
+ 156,
+ 139,
+ 126,
+ 142,
151,
- 134,
- 121,
- 137,
- 146,
- 141
+ 146
]
}
],
@@ -20970,6 +16078,14 @@
{
"type": "stringLiteral",
"value": "PUT"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PATCH"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "DELETE"
}
]
}
@@ -21500,6 +16616,86 @@
"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": [
@@ -21527,7 +16723,8 @@
30,
12,
34,
- 39
+ 39,
+ 44
]
}
],
@@ -21540,7 +16737,7 @@
]
},
{
- "id": 156,
+ "id": 161,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -21550,7 +16747,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",
"children": [
{
- "id": 157,
+ "id": 162,
"name": "LocalStorage",
"kind": 128,
"kindString": "Class",
@@ -21559,7 +16756,7 @@
},
"indexSignature": [
{
- "id": 159,
+ "id": 164,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -21568,7 +16765,7 @@
},
"parameters": [
{
- "id": 160,
+ "id": 165,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -21589,7 +16786,7 @@
],
"children": [
{
- "id": 162,
+ "id": 167,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -21598,7 +16795,7 @@
},
"signatures": [
{
- "id": 163,
+ "id": 168,
"name": "new LocalStorage",
"kind": 16384,
"kindString": "Constructor signature",
@@ -21607,7 +16804,7 @@
},
"parameters": [
{
- "id": 164,
+ "id": 169,
"name": "localStorage",
"kind": 32768,
"kindString": "Parameter",
@@ -21622,7 +16819,7 @@
],
"type": {
"type": "reference",
- "id": 157,
+ "id": 162,
"name": "LocalStorage"
}
}
@@ -21636,7 +16833,7 @@
]
},
{
- "id": 161,
+ "id": 166,
"name": "length",
"kind": 1024,
"kindString": "Property",
@@ -21656,7 +16853,7 @@
}
},
{
- "id": 158,
+ "id": 163,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -21676,7 +16873,7 @@
}
},
{
- "id": 165,
+ "id": 170,
"name": "clear",
"kind": 2048,
"kindString": "Method",
@@ -21685,7 +16882,7 @@
},
"signatures": [
{
- "id": 166,
+ "id": 171,
"name": "clear",
"kind": 4096,
"kindString": "Call signature",
@@ -21707,7 +16904,7 @@
]
},
{
- "id": 174,
+ "id": 179,
"name": "getItem",
"kind": 2048,
"kindString": "Method",
@@ -21716,7 +16913,7 @@
},
"signatures": [
{
- "id": 175,
+ "id": 180,
"name": "getItem",
"kind": 4096,
"kindString": "Call signature",
@@ -21725,7 +16922,7 @@
},
"parameters": [
{
- "id": 176,
+ "id": 181,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -21762,7 +16959,7 @@
]
},
{
- "id": 167,
+ "id": 172,
"name": "key",
"kind": 2048,
"kindString": "Method",
@@ -21771,7 +16968,7 @@
},
"signatures": [
{
- "id": 168,
+ "id": 173,
"name": "key",
"kind": 4096,
"kindString": "Call signature",
@@ -21780,7 +16977,7 @@
},
"parameters": [
{
- "id": 169,
+ "id": 174,
"name": "index",
"kind": 32768,
"kindString": "Parameter",
@@ -21817,7 +17014,7 @@
]
},
{
- "id": 177,
+ "id": 182,
"name": "removeItem",
"kind": 2048,
"kindString": "Method",
@@ -21826,7 +17023,7 @@
},
"signatures": [
{
- "id": 178,
+ "id": 183,
"name": "removeItem",
"kind": 4096,
"kindString": "Call signature",
@@ -21835,7 +17032,7 @@
},
"parameters": [
{
- "id": 179,
+ "id": 184,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -21863,7 +17060,7 @@
]
},
{
- "id": 170,
+ "id": 175,
"name": "setItem",
"kind": 2048,
"kindString": "Method",
@@ -21872,7 +17069,7 @@
},
"signatures": [
{
- "id": 171,
+ "id": 176,
"name": "setItem",
"kind": 4096,
"kindString": "Call signature",
@@ -21881,7 +17078,7 @@
},
"parameters": [
{
- "id": 172,
+ "id": 177,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -21894,7 +17091,7 @@
}
},
{
- "id": 173,
+ "id": 178,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -21927,26 +17124,26 @@
"title": "Constructors",
"kind": 512,
"children": [
- 162
+ 167
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 161,
- 158
+ 166,
+ 163
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 165,
- 174,
- 167,
- 177,
- 170
+ 170,
+ 179,
+ 172,
+ 182,
+ 175
]
}
],
@@ -21965,7 +17162,7 @@
]
},
{
- "id": 180,
+ "id": 185,
"name": "expiresAt",
"kind": 64,
"kindString": "Function",
@@ -21974,7 +17171,7 @@
},
"signatures": [
{
- "id": 181,
+ "id": 186,
"name": "expiresAt",
"kind": 4096,
"kindString": "Call signature",
@@ -21983,7 +17180,7 @@
},
"parameters": [
{
- "id": 182,
+ "id": 187,
"name": "expiresIn",
"kind": 32768,
"kindString": "Parameter",
@@ -22011,7 +17208,7 @@
]
},
{
- "id": 187,
+ "id": 192,
"name": "getParameterByName",
"kind": 64,
"kindString": "Function",
@@ -22020,7 +17217,7 @@
},
"signatures": [
{
- "id": 188,
+ "id": 193,
"name": "getParameterByName",
"kind": 4096,
"kindString": "Call signature",
@@ -22029,7 +17226,7 @@
},
"parameters": [
{
- "id": 189,
+ "id": 194,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -22042,7 +17239,7 @@
}
},
{
- "id": 190,
+ "id": 195,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -22089,7 +17286,7 @@
]
},
{
- "id": 185,
+ "id": 190,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -22099,7 +17296,7 @@
},
"signatures": [
{
- "id": 186,
+ "id": 191,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -22121,7 +17318,7 @@
]
},
{
- "id": 183,
+ "id": 188,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -22130,7 +17327,7 @@
},
"signatures": [
{
- "id": 184,
+ "id": 189,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -22157,17 +17354,17 @@
"title": "Classes",
"kind": 128,
"children": [
- 157
+ 162
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 180,
- 187,
185,
- 183
+ 192,
+ 190,
+ 188
]
}
],
@@ -22180,7 +17377,7 @@
]
},
{
- "id": 307,
+ "id": 320,
"name": "\"lib/polyfills\"",
"kind": 1,
"kindString": "Module",
@@ -22190,7 +17387,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts",
"children": [
{
- "id": 308,
+ "id": 321,
"name": "polyfillGlobalThis",
"kind": 64,
"kindString": "Function",
@@ -22199,7 +17396,7 @@
},
"signatures": [
{
- "id": 309,
+ "id": 322,
"name": "polyfillGlobalThis",
"kind": 4096,
"kindString": "Call signature",
@@ -22229,7 +17426,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 308
+ 321
]
}
],
@@ -22242,7 +17439,7 @@
]
},
{
- "id": 44,
+ "id": 49,
"name": "\"lib/types\"",
"kind": 1,
"kindString": "Module",
@@ -22252,7 +17449,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
"children": [
{
- "id": 87,
+ "id": 92,
"name": "CookieOptions",
"kind": 256,
"kindString": "Interface",
@@ -22261,7 +17458,7 @@
},
"children": [
{
- "id": 90,
+ "id": 95,
"name": "domain",
"kind": 1024,
"kindString": "Property",
@@ -22272,7 +17469,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 80,
+ "line": 85,
"character": 8
}
],
@@ -22291,7 +17488,7 @@
}
},
{
- "id": 89,
+ "id": 94,
"name": "lifetime",
"kind": 1024,
"kindString": "Property",
@@ -22302,7 +17499,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 78,
+ "line": 83,
"character": 10
}
],
@@ -22321,7 +17518,7 @@
}
},
{
- "id": 88,
+ "id": 93,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -22332,7 +17529,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 76,
+ "line": 81,
"character": 6
}
],
@@ -22351,7 +17548,7 @@
}
},
{
- "id": 91,
+ "id": 96,
"name": "path",
"kind": 1024,
"kindString": "Property",
@@ -22362,7 +17559,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 81,
+ "line": 86,
"character": 6
}
],
@@ -22381,7 +17578,7 @@
}
},
{
- "id": 92,
+ "id": 97,
"name": "sameSite",
"kind": 1024,
"kindString": "Property",
@@ -22392,7 +17589,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 83,
+ "line": 88,
"character": 10
}
],
@@ -22416,24 +17613,24 @@
"title": "Properties",
"kind": 1024,
"children": [
- 90,
- 89,
- 88,
- 91,
- 92
+ 95,
+ 94,
+ 93,
+ 96,
+ 97
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 74,
+ "line": 79,
"character": 30
}
]
},
{
- "id": 45,
+ "id": 50,
"name": "Session",
"kind": 256,
"kindString": "Interface",
@@ -22442,7 +17639,7 @@
},
"children": [
{
- "id": 47,
+ "id": 52,
"name": "access_token",
"kind": 1024,
"kindString": "Property",
@@ -22452,7 +17649,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 7,
+ "line": 12,
"character": 14
}
],
@@ -22462,7 +17659,7 @@
}
},
{
- "id": 49,
+ "id": 54,
"name": "expires_at",
"kind": 1024,
"kindString": "Property",
@@ -22476,7 +17673,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 15,
+ "line": 20,
"character": 12
}
],
@@ -22495,7 +17692,7 @@
}
},
{
- "id": 48,
+ "id": 53,
"name": "expires_in",
"kind": 1024,
"kindString": "Property",
@@ -22509,7 +17706,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 11,
+ "line": 16,
"character": 12
}
],
@@ -22528,7 +17725,7 @@
}
},
{
- "id": 46,
+ "id": 51,
"name": "provider_token",
"kind": 1024,
"kindString": "Property",
@@ -22539,7 +17736,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 6,
+ "line": 11,
"character": 16
}
],
@@ -22558,27 +17755,37 @@
}
},
{
- "id": 50,
+ "id": 55,
"name": "refresh_token",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
"sources": [
{
"fileName": "lib/types.ts",
- "line": 16,
+ "line": 21,
"character": 15
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
}
},
{
- "id": 51,
+ "id": 56,
"name": "token_type",
"kind": 1024,
"kindString": "Property",
@@ -22588,7 +17795,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 17,
+ "line": 22,
"character": 12
}
],
@@ -22598,7 +17805,7 @@
}
},
{
- "id": 52,
+ "id": 57,
"name": "user",
"kind": 1024,
"kindString": "Property",
@@ -22608,14 +17815,23 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 18,
+ "line": 23,
"character": 6
}
],
"type": {
- "type": "reference",
- "id": 53,
- "name": "User"
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
}
}
],
@@ -22624,26 +17840,26 @@
"title": "Properties",
"kind": 1024,
"children": [
- 47,
- 49,
- 48,
- 46,
- 50,
+ 52,
+ 54,
+ 53,
51,
- 52
+ 55,
+ 56,
+ 57
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 5,
+ "line": 10,
"character": 24
}
]
},
{
- "id": 77,
+ "id": 82,
"name": "Subscription",
"kind": 256,
"kindString": "Interface",
@@ -22652,7 +17868,7 @@
},
"children": [
{
- "id": 79,
+ "id": 84,
"name": "callback",
"kind": 1024,
"kindString": "Property",
@@ -22665,14 +17881,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 67,
+ "line": 72,
"character": 10
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 80,
+ "id": 85,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -22681,7 +17897,7 @@
},
"signatures": [
{
- "id": 81,
+ "id": 86,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -22690,7 +17906,7 @@
},
"parameters": [
{
- "id": 82,
+ "id": 87,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -22699,12 +17915,12 @@
},
"type": {
"type": "reference",
- "id": 98,
+ "id": 103,
"name": "AuthChangeEvent"
}
},
{
- "id": 83,
+ "id": 88,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -22716,7 +17932,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -22736,7 +17952,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 67,
+ "line": 72,
"character": 11
}
]
@@ -22744,7 +17960,7 @@
}
},
{
- "id": 78,
+ "id": 83,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -22757,7 +17973,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 63,
+ "line": 68,
"character": 4
}
],
@@ -22767,7 +17983,7 @@
}
},
{
- "id": 84,
+ "id": 89,
"name": "unsubscribe",
"kind": 1024,
"kindString": "Property",
@@ -22780,14 +17996,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 71,
+ "line": 76,
"character": 13
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 85,
+ "id": 90,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -22796,7 +18012,7 @@
},
"signatures": [
{
- "id": 86,
+ "id": 91,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -22812,7 +18028,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 71,
+ "line": 76,
"character": 14
}
]
@@ -22825,22 +18041,22 @@
"title": "Properties",
"kind": 1024,
"children": [
- 79,
- 78,
- 84
+ 84,
+ 83,
+ 89
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 59,
+ "line": 64,
"character": 29
}
]
},
{
- "id": 53,
+ "id": 58,
"name": "User",
"kind": 256,
"kindString": "Interface",
@@ -22849,7 +18065,7 @@
},
"children": [
{
- "id": 55,
+ "id": 60,
"name": "app_metadata",
"kind": 1024,
"kindString": "Property",
@@ -22859,14 +18075,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 22,
+ "line": 27,
"character": 14
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 56,
+ "id": 61,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -22875,7 +18091,7 @@
},
"indexSignature": [
{
- "id": 58,
+ "id": 63,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -22884,7 +18100,7 @@
},
"parameters": [
{
- "id": 59,
+ "id": 64,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -22905,7 +18121,7 @@
],
"children": [
{
- "id": 57,
+ "id": 62,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -22916,7 +18132,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 23,
+ "line": 28,
"character": 12
}
],
@@ -22940,14 +18156,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 57
+ 62
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 22,
+ "line": 27,
"character": 15
}
]
@@ -22955,7 +18171,7 @@
}
},
{
- "id": 64,
+ "id": 69,
"name": "aud",
"kind": 1024,
"kindString": "Property",
@@ -22965,7 +18181,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 29,
+ "line": 34,
"character": 5
}
],
@@ -22975,7 +18191,7 @@
}
},
{
- "id": 65,
+ "id": 70,
"name": "confirmation_sent_at",
"kind": 1024,
"kindString": "Property",
@@ -22986,7 +18202,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 30,
+ "line": 35,
"character": 22
}
],
@@ -23005,7 +18221,7 @@
}
},
{
- "id": 68,
+ "id": 73,
"name": "confirmed_at",
"kind": 1024,
"kindString": "Property",
@@ -23016,7 +18232,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 33,
+ "line": 38,
"character": 14
}
],
@@ -23035,7 +18251,7 @@
}
},
{
- "id": 67,
+ "id": 72,
"name": "created_at",
"kind": 1024,
"kindString": "Property",
@@ -23045,7 +18261,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 32,
+ "line": 37,
"character": 12
}
],
@@ -23055,7 +18271,7 @@
}
},
{
- "id": 66,
+ "id": 71,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -23066,7 +18282,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 31,
+ "line": 36,
"character": 7
}
],
@@ -23085,7 +18301,7 @@
}
},
{
- "id": 54,
+ "id": 59,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -23095,7 +18311,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 21,
+ "line": 26,
"character": 4
}
],
@@ -23105,7 +18321,7 @@
}
},
{
- "id": 69,
+ "id": 74,
"name": "last_sign_in_at",
"kind": 1024,
"kindString": "Property",
@@ -23116,7 +18332,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 34,
+ "line": 39,
"character": 17
}
],
@@ -23135,7 +18351,7 @@
}
},
{
- "id": 70,
+ "id": 75,
"name": "role",
"kind": 1024,
"kindString": "Property",
@@ -23146,7 +18362,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 35,
+ "line": 40,
"character": 6
}
],
@@ -23165,7 +18381,7 @@
}
},
{
- "id": 71,
+ "id": 76,
"name": "updated_at",
"kind": 1024,
"kindString": "Property",
@@ -23176,7 +18392,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 36,
+ "line": 41,
"character": 12
}
],
@@ -23195,7 +18411,7 @@
}
},
{
- "id": 60,
+ "id": 65,
"name": "user_metadata",
"kind": 1024,
"kindString": "Property",
@@ -23205,14 +18421,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 26,
+ "line": 31,
"character": 15
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 61,
+ "id": 66,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -23221,7 +18437,7 @@
},
"indexSignature": [
{
- "id": 62,
+ "id": 67,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -23230,7 +18446,7 @@
},
"parameters": [
{
- "id": 63,
+ "id": 68,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -23252,7 +18468,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 26,
+ "line": 31,
"character": 16
}
]
@@ -23265,30 +18481,30 @@
"title": "Properties",
"kind": 1024,
"children": [
- 55,
- 64,
- 65,
- 68,
- 67,
- 66,
- 54,
+ 60,
69,
70,
+ 73,
+ 72,
71,
- 60
+ 59,
+ 74,
+ 75,
+ 76,
+ 65
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 20,
+ "line": 25,
"character": 21
}
]
},
{
- "id": 72,
+ "id": 77,
"name": "UserAttributes",
"kind": 256,
"kindString": "Interface",
@@ -23297,7 +18513,7 @@
},
"children": [
{
- "id": 76,
+ "id": 81,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -23311,7 +18527,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 56,
+ "line": 61,
"character": 6
}
],
@@ -23330,7 +18546,7 @@
}
},
{
- "id": 73,
+ "id": 78,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -23344,7 +18560,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 43,
+ "line": 48,
"character": 7
}
],
@@ -23363,7 +18579,7 @@
}
},
{
- "id": 75,
+ "id": 80,
"name": "email_change_token",
"kind": 1024,
"kindString": "Property",
@@ -23377,7 +18593,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 51,
+ "line": 56,
"character": 20
}
],
@@ -23396,7 +18612,7 @@
}
},
{
- "id": 74,
+ "id": 79,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -23410,7 +18626,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 47,
+ "line": 52,
"character": 10
}
],
@@ -23434,23 +18650,23 @@
"title": "Properties",
"kind": 1024,
"children": [
- 76,
- 73,
- 75,
- 74
+ 81,
+ 78,
+ 80,
+ 79
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 39,
+ "line": 44,
"character": 31
}
]
},
{
- "id": 93,
+ "id": 98,
"name": "UserCredentials",
"kind": 256,
"kindString": "Interface",
@@ -23459,7 +18675,7 @@
},
"children": [
{
- "id": 94,
+ "id": 99,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -23470,7 +18686,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 87,
+ "line": 92,
"character": 7
}
],
@@ -23489,7 +18705,7 @@
}
},
{
- "id": 95,
+ "id": 100,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -23500,7 +18716,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 88,
+ "line": 93,
"character": 10
}
],
@@ -23519,7 +18735,7 @@
}
},
{
- "id": 96,
+ "id": 101,
"name": "provider",
"kind": 1024,
"kindString": "Property",
@@ -23530,13 +18746,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 90,
+ "line": 95,
"character": 10
}
],
"type": {
"type": "reference",
- "id": 97,
+ "id": 102,
"name": "Provider"
}
}
@@ -23546,22 +18762,22 @@
"title": "Properties",
"kind": 1024,
"children": [
- 94,
- 95,
- 96
+ 99,
+ 100,
+ 101
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 86,
+ "line": 91,
"character": 32
}
]
},
{
- "id": 98,
+ "id": 103,
"name": "AuthChangeEvent",
"kind": 4194304,
"kindString": "Type alias",
@@ -23590,6 +18806,10 @@
"type": "stringLiteral",
"value": "USER_UPDATED"
},
+ {
+ "type": "stringLiteral",
+ "value": "USER_DELETED"
+ },
{
"type": "stringLiteral",
"value": "PASSWORD_RECOVERY"
@@ -23598,7 +18818,7 @@
}
},
{
- "id": 97,
+ "id": 102,
"name": "Provider",
"kind": 4194304,
"kindString": "Type alias",
@@ -23648,20 +18868,20 @@
"title": "Interfaces",
"kind": 256,
"children": [
- 87,
- 45,
+ 92,
+ 50,
+ 82,
+ 58,
77,
- 53,
- 72,
- 93
+ 98
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 98,
- 97
+ 103,
+ 102
]
}
],
@@ -23679,15 +18899,15 @@
"title": "Modules",
"kind": 1,
"children": [
- 191,
- 310,
- 472,
- 99,
- 112,
+ 196,
+ 323,
+ 498,
+ 104,
+ 117,
1,
- 156,
- 307,
- 44
+ 161,
+ 320,
+ 49
]
}
]
@@ -29262,7 +24482,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 183,
+ "line": 189,
"character": 9
}
],
@@ -29303,7 +24523,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 182,
+ "line": 188,
"character": 13
}
],
@@ -29336,7 +24556,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 181,
+ "line": 187,
"character": 9
}
]
@@ -29361,7 +24581,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 181,
+ "line": 187,
"character": 8
}
]
@@ -30359,7 +25579,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 159,
+ "line": 165,
"character": 11
}
],
@@ -30400,7 +25620,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 158,
+ "line": 164,
"character": 15
}
],
@@ -30433,7 +25653,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 156,
+ "line": 162,
"character": 23
}
]
@@ -30458,7 +25678,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 155,
+ "line": 161,
"character": 8
}
]
@@ -30558,7 +25778,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 126,
+ "line": 132,
"character": 11
}
],
@@ -30599,7 +25819,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 124,
+ "line": 130,
"character": 16
}
],
@@ -30631,7 +25851,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 125,
+ "line": 131,
"character": 15
}
],
@@ -30665,7 +25885,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 122,
+ "line": 128,
"character": 38
}
]
@@ -30690,7 +25910,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 121,
+ "line": 127,
"character": 8
}
]
@@ -34534,7 +29754,7 @@
"originalName": "",
"children": [
{
- "id": 169,
+ "id": 194,
"name": "\"RealtimeClient\"",
"kind": 1,
"kindString": "Module",
@@ -34544,7 +29764,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts",
"children": [
{
- "id": 170,
+ "id": 195,
"name": "RealtimeClient",
"kind": 128,
"kindString": "Class",
@@ -34553,7 +29773,7 @@
},
"children": [
{
- "id": 200,
+ "id": 226,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -34565,7 +29785,7 @@
},
"signatures": [
{
- "id": 201,
+ "id": 227,
"name": "new RealtimeClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -34577,7 +29797,7 @@
},
"parameters": [
{
- "id": 202,
+ "id": 228,
"name": "endPoint",
"kind": 32768,
"kindString": "Parameter",
@@ -34593,7 +29813,7 @@
}
},
{
- "id": 203,
+ "id": 229,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -34603,14 +29823,14 @@
},
"type": {
"type": "reference",
- "id": 273,
+ "id": 301,
"name": "Options"
}
}
],
"type": {
"type": "reference",
- "id": 170,
+ "id": 195,
"name": "RealtimeClient"
}
}
@@ -34618,13 +29838,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 63,
+ "line": 65,
"character": 3
}
]
},
{
- "id": 171,
+ "id": 196,
"name": "channels",
"kind": 1024,
"kindString": "Property",
@@ -34634,7 +29854,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 35,
+ "line": 36,
"character": 10
}
],
@@ -34649,7 +29869,7 @@
"defaultValue": "[]"
},
{
- "id": 193,
+ "id": 218,
"name": "conn",
"kind": 1024,
"kindString": "Property",
@@ -34659,7 +29879,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 51,
+ "line": 52,
"character": 6
}
],
@@ -34679,7 +29899,7 @@
"defaultValue": "null"
},
{
- "id": 191,
+ "id": 216,
"name": "decode",
"kind": 1024,
"kindString": "Property",
@@ -34689,7 +29909,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 49,
+ "line": 50,
"character": 8
}
],
@@ -34699,7 +29919,7 @@
}
},
{
- "id": 190,
+ "id": 215,
"name": "encode",
"kind": 1024,
"kindString": "Property",
@@ -34709,7 +29929,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 48,
+ "line": 49,
"character": 8
}
],
@@ -34719,7 +29939,7 @@
}
},
{
- "id": 172,
+ "id": 197,
"name": "endPoint",
"kind": 1024,
"kindString": "Property",
@@ -34729,7 +29949,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 36,
+ "line": 37,
"character": 10
}
],
@@ -34740,7 +29960,7 @@
"defaultValue": "\"\""
},
{
- "id": 173,
+ "id": 198,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -34751,7 +29971,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 37,
+ "line": 38,
"character": 9
}
],
@@ -34765,7 +29985,7 @@
{
"type": "reflection",
"declaration": {
- "id": 174,
+ "id": 199,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -34774,7 +29994,7 @@
},
"indexSignature": [
{
- "id": 175,
+ "id": 200,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -34783,7 +30003,7 @@
},
"parameters": [
{
- "id": 176,
+ "id": 201,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -34808,7 +30028,7 @@
}
},
{
- "id": 183,
+ "id": 208,
"name": "heartbeatIntervalMs",
"kind": 1024,
"kindString": "Property",
@@ -34818,7 +30038,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 41,
+ "line": 42,
"character": 21
}
],
@@ -34829,7 +30049,7 @@
"defaultValue": "30000"
},
{
- "id": 185,
+ "id": 210,
"name": "heartbeatTimer",
"kind": 1024,
"kindString": "Property",
@@ -34839,7 +30059,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 43,
+ "line": 44,
"character": 16
}
],
@@ -34847,8 +30067,17 @@
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "number"
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "name": "setInterval"
+ }
+ }
+ ],
+ "name": "ReturnType"
},
{
"type": "intrinsic",
@@ -34859,7 +30088,7 @@
"defaultValue": "undefined"
},
{
- "id": 189,
+ "id": 214,
"name": "logger",
"kind": 1024,
"kindString": "Property",
@@ -34869,7 +30098,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 47,
+ "line": 48,
"character": 8
}
],
@@ -34880,7 +30109,7 @@
"defaultValue": "noop"
},
{
- "id": 184,
+ "id": 209,
"name": "longpollerTimeout",
"kind": 1024,
"kindString": "Property",
@@ -34890,7 +30119,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 42,
+ "line": 43,
"character": 19
}
],
@@ -34901,7 +30130,7 @@
"defaultValue": "20000"
},
{
- "id": 177,
+ "id": 202,
"name": "params",
"kind": 1024,
"kindString": "Property",
@@ -34912,7 +30141,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 38,
+ "line": 39,
"character": 8
}
],
@@ -34926,7 +30155,7 @@
{
"type": "reflection",
"declaration": {
- "id": 178,
+ "id": 203,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -34935,7 +30164,7 @@
},
"indexSignature": [
{
- "id": 179,
+ "id": 204,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -34944,7 +30173,7 @@
},
"parameters": [
{
- "id": 180,
+ "id": 205,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -34969,7 +30198,7 @@
}
},
{
- "id": 186,
+ "id": 211,
"name": "pendingHeartbeatRef",
"kind": 1024,
"kindString": "Property",
@@ -34979,7 +30208,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 44,
+ "line": 45,
"character": 21
}
],
@@ -34999,7 +30228,7 @@
"defaultValue": "null"
},
{
- "id": 192,
+ "id": 217,
"name": "reconnectAfterMs",
"kind": 1024,
"kindString": "Property",
@@ -35009,7 +30238,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 50,
+ "line": 51,
"character": 18
}
],
@@ -35019,7 +30248,7 @@
}
},
{
- "id": 188,
+ "id": 213,
"name": "reconnectTimer",
"kind": 1024,
"kindString": "Property",
@@ -35029,7 +30258,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 46,
+ "line": 47,
"character": 16
}
],
@@ -35040,7 +30269,7 @@
}
},
{
- "id": 187,
+ "id": 212,
"name": "ref",
"kind": 1024,
"kindString": "Property",
@@ -35050,7 +30279,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 45,
+ "line": 46,
"character": 5
}
],
@@ -35061,7 +30290,7 @@
"defaultValue": "0"
},
{
- "id": 194,
+ "id": 219,
"name": "sendBuffer",
"kind": 1024,
"kindString": "Property",
@@ -35071,7 +30300,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 52,
+ "line": 53,
"character": 12
}
],
@@ -35085,7 +30314,29 @@
"defaultValue": "[]"
},
{
- "id": 181,
+ "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",
@@ -35095,7 +30346,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 39,
+ "line": 40,
"character": 9
}
],
@@ -35106,7 +30357,7 @@
"defaultValue": "DEFAULT_TIMEOUT"
},
{
- "id": 182,
+ "id": 207,
"name": "transport",
"kind": 1024,
"kindString": "Property",
@@ -35116,7 +30367,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 40,
+ "line": 41,
"character": 11
}
],
@@ -35127,7 +30378,7 @@
"defaultValue": "WebSocket"
},
{
- "id": 262,
+ "id": 288,
"name": "_appendParams",
"kind": 2048,
"kindString": "Method",
@@ -35137,7 +30388,7 @@
},
"signatures": [
{
- "id": 263,
+ "id": 289,
"name": "_appendParams",
"kind": 4096,
"kindString": "Call signature",
@@ -35146,7 +30397,7 @@
},
"parameters": [
{
- "id": 264,
+ "id": 290,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -35159,7 +30410,7 @@
}
},
{
- "id": 265,
+ "id": 291,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -35169,7 +30420,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 266,
+ "id": 292,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -35178,7 +30429,7 @@
},
"indexSignature": [
{
- "id": 267,
+ "id": 293,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -35187,7 +30438,7 @@
},
"parameters": [
{
- "id": 268,
+ "id": 294,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -35209,7 +30460,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 346,
+ "line": 344,
"character": 44
}
]
@@ -35226,13 +30477,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 346,
+ "line": 344,
"character": 23
}
]
},
{
- "id": 269,
+ "id": 295,
"name": "_flushSendBuffer",
"kind": 2048,
"kindString": "Method",
@@ -35242,7 +30493,7 @@
},
"signatures": [
{
- "id": 270,
+ "id": 296,
"name": "_flushSendBuffer",
"kind": 4096,
"kindString": "Call signature",
@@ -35258,13 +30509,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 356,
+ "line": 354,
"character": 26
}
]
},
{
- "id": 254,
+ "id": 280,
"name": "_onConnClose",
"kind": 2048,
"kindString": "Method",
@@ -35274,7 +30525,7 @@
},
"signatures": [
{
- "id": 255,
+ "id": 281,
"name": "_onConnClose",
"kind": 4096,
"kindString": "Call signature",
@@ -35283,7 +30534,7 @@
},
"parameters": [
{
- "id": 256,
+ "id": 282,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -35305,13 +30556,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 326,
+ "line": 324,
"character": 22
}
]
},
{
- "id": 257,
+ "id": 283,
"name": "_onConnError",
"kind": 2048,
"kindString": "Method",
@@ -35321,7 +30572,7 @@
},
"signatures": [
{
- "id": 258,
+ "id": 284,
"name": "_onConnError",
"kind": 4096,
"kindString": "Call signature",
@@ -35330,7 +30581,7 @@
},
"parameters": [
{
- "id": 259,
+ "id": 285,
"name": "error",
"kind": 32768,
"kindString": "Parameter",
@@ -35352,13 +30603,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 334,
+ "line": 332,
"character": 22
}
]
},
{
- "id": 252,
+ "id": 278,
"name": "_onConnOpen",
"kind": 2048,
"kindString": "Method",
@@ -35368,7 +30619,7 @@
},
"signatures": [
{
- "id": 253,
+ "id": 279,
"name": "_onConnOpen",
"kind": 4096,
"kindString": "Call signature",
@@ -35384,13 +30635,45 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 313,
+ "line": 316,
"character": 21
}
]
},
{
- "id": 271,
+ "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",
@@ -35400,7 +30683,7 @@
},
"signatures": [
{
- "id": 272,
+ "id": 300,
"name": "_sendHeartbeat",
"kind": 4096,
"kindString": "Call signature",
@@ -35416,13 +30699,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 363,
+ "line": 370,
"character": 24
}
]
},
{
- "id": 260,
+ "id": 286,
"name": "_triggerChanError",
"kind": 2048,
"kindString": "Method",
@@ -35432,7 +30715,7 @@
},
"signatures": [
{
- "id": 261,
+ "id": 287,
"name": "_triggerChanError",
"kind": 4096,
"kindString": "Call signature",
@@ -35448,13 +30731,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 340,
+ "line": 338,
"character": 27
}
]
},
{
- "id": 237,
+ "id": 263,
"name": "channel",
"kind": 2048,
"kindString": "Method",
@@ -35463,7 +30746,7 @@
},
"signatures": [
{
- "id": 238,
+ "id": 264,
"name": "channel",
"kind": 4096,
"kindString": "Call signature",
@@ -35472,7 +30755,7 @@
},
"parameters": [
{
- "id": 239,
+ "id": 265,
"name": "topic",
"kind": 32768,
"kindString": "Parameter",
@@ -35485,7 +30768,7 @@
}
},
{
- "id": 240,
+ "id": 266,
"name": "chanParams",
"kind": 32768,
"kindString": "Parameter",
@@ -35495,7 +30778,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 241,
+ "id": 267,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -35517,13 +30800,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 245,
+ "line": 246,
"character": 9
}
]
},
{
- "id": 204,
+ "id": 230,
"name": "connect",
"kind": 2048,
"kindString": "Method",
@@ -35532,7 +30815,7 @@
},
"signatures": [
{
- "id": 205,
+ "id": 231,
"name": "connect",
"kind": 4096,
"kindString": "Call signature",
@@ -35557,7 +30840,7 @@
]
},
{
- "id": 230,
+ "id": 256,
"name": "connectionState",
"kind": 2048,
"kindString": "Method",
@@ -35566,7 +30849,7 @@
},
"signatures": [
{
- "id": 231,
+ "id": 257,
"name": "connectionState",
"kind": 4096,
"kindString": "Call signature",
@@ -35602,13 +30885,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 214,
+ "line": 215,
"character": 17
}
]
},
{
- "id": 206,
+ "id": 232,
"name": "disconnect",
"kind": 2048,
"kindString": "Method",
@@ -35617,7 +30900,7 @@
},
"signatures": [
{
- "id": 207,
+ "id": 233,
"name": "disconnect",
"kind": 4096,
"kindString": "Call signature",
@@ -35629,7 +30912,7 @@
},
"parameters": [
{
- "id": 208,
+ "id": 234,
"name": "code",
"kind": 32768,
"kindString": "Parameter",
@@ -35655,7 +30938,7 @@
}
},
{
- "id": 209,
+ "id": 235,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -35687,7 +30970,7 @@
{
"type": "reflection",
"declaration": {
- "id": 210,
+ "id": 236,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -35696,7 +30979,7 @@
},
"children": [
{
- "id": 212,
+ "id": 238,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -35706,7 +30989,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 141,
+ "line": 142,
"character": 40
}
],
@@ -35716,7 +30999,7 @@
}
},
{
- "id": 211,
+ "id": 237,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -35726,7 +31009,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 141,
+ "line": 142,
"character": 20
}
],
@@ -35750,15 +31033,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 212,
- 211
+ 238,
+ 237
]
}
],
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 141,
+ "line": 142,
"character": 13
}
]
@@ -35772,13 +31055,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 138,
+ "line": 139,
"character": 12
}
]
},
{
- "id": 248,
+ "id": 274,
"name": "endPointURL",
"kind": 2048,
"kindString": "Method",
@@ -35787,7 +31070,7 @@
},
"signatures": [
{
- "id": 249,
+ "id": 275,
"name": "endPointURL",
"kind": 4096,
"kindString": "Call signature",
@@ -35806,13 +31089,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 292,
+ "line": 295,
"character": 13
}
]
},
{
- "id": 232,
+ "id": 258,
"name": "isConnected",
"kind": 2048,
"kindString": "Method",
@@ -35821,7 +31104,7 @@
},
"signatures": [
{
- "id": 233,
+ "id": 259,
"name": "isConnected",
"kind": 4096,
"kindString": "Call signature",
@@ -35840,13 +31123,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 230,
+ "line": 231,
"character": 13
}
]
},
{
- "id": 213,
+ "id": 239,
"name": "log",
"kind": 2048,
"kindString": "Method",
@@ -35855,7 +31138,7 @@
},
"signatures": [
{
- "id": 214,
+ "id": 240,
"name": "log",
"kind": 4096,
"kindString": "Call signature",
@@ -35867,7 +31150,7 @@
},
"parameters": [
{
- "id": 215,
+ "id": 241,
"name": "kind",
"kind": 32768,
"kindString": "Parameter",
@@ -35880,7 +31163,7 @@
}
},
{
- "id": 216,
+ "id": 242,
"name": "msg",
"kind": 32768,
"kindString": "Parameter",
@@ -35893,7 +31176,7 @@
}
},
{
- "id": 217,
+ "id": 243,
"name": "data",
"kind": 32768,
"kindString": "Parameter",
@@ -35916,13 +31199,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 163,
+ "line": 164,
"character": 5
}
]
},
{
- "id": 250,
+ "id": 276,
"name": "makeRef",
"kind": 2048,
"kindString": "Method",
@@ -35931,7 +31214,7 @@
},
"signatures": [
{
- "id": 251,
+ "id": 277,
"name": "makeRef",
"kind": 4096,
"kindString": "Call signature",
@@ -35950,13 +31233,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 302,
+ "line": 305,
"character": 9
}
]
},
{
- "id": 221,
+ "id": 247,
"name": "onClose",
"kind": 2048,
"kindString": "Method",
@@ -35965,7 +31248,7 @@
},
"signatures": [
{
- "id": 222,
+ "id": 248,
"name": "onClose",
"kind": 4096,
"kindString": "Call signature",
@@ -35983,7 +31266,7 @@
},
"parameters": [
{
- "id": 223,
+ "id": 249,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -36008,13 +31291,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 185,
+ "line": 186,
"character": 9
}
]
},
{
- "id": 245,
+ "id": 271,
"name": "onConnMessage",
"kind": 2048,
"kindString": "Method",
@@ -36023,7 +31306,7 @@
},
"signatures": [
{
- "id": 246,
+ "id": 272,
"name": "onConnMessage",
"kind": 4096,
"kindString": "Call signature",
@@ -36032,7 +31315,7 @@
},
"parameters": [
{
- "id": 247,
+ "id": 273,
"name": "rawMessage",
"kind": 32768,
"kindString": "Parameter",
@@ -36054,13 +31337,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 266,
+ "line": 267,
"character": 15
}
]
},
{
- "id": 224,
+ "id": 250,
"name": "onError",
"kind": 2048,
"kindString": "Method",
@@ -36069,7 +31352,7 @@
},
"signatures": [
{
- "id": 225,
+ "id": 251,
"name": "onError",
"kind": 4096,
"kindString": "Call signature",
@@ -36087,7 +31370,7 @@
},
"parameters": [
{
- "id": 226,
+ "id": 252,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -36112,13 +31395,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 196,
+ "line": 197,
"character": 9
}
]
},
{
- "id": 227,
+ "id": 253,
"name": "onMessage",
"kind": 2048,
"kindString": "Method",
@@ -36127,7 +31410,7 @@
},
"signatures": [
{
- "id": 228,
+ "id": 254,
"name": "onMessage",
"kind": 4096,
"kindString": "Call signature",
@@ -36145,7 +31428,7 @@
},
"parameters": [
{
- "id": 229,
+ "id": 255,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -36170,13 +31453,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 207,
+ "line": 208,
"character": 11
}
]
},
{
- "id": 218,
+ "id": 244,
"name": "onOpen",
"kind": 2048,
"kindString": "Method",
@@ -36185,7 +31468,7 @@
},
"signatures": [
{
- "id": 219,
+ "id": 245,
"name": "onOpen",
"kind": 4096,
"kindString": "Call signature",
@@ -36203,7 +31486,7 @@
},
"parameters": [
{
- "id": 220,
+ "id": 246,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -36228,13 +31511,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 174,
+ "line": 175,
"character": 8
}
]
},
{
- "id": 242,
+ "id": 268,
"name": "push",
"kind": 2048,
"kindString": "Method",
@@ -36243,7 +31526,7 @@
},
"signatures": [
{
- "id": 243,
+ "id": 269,
"name": "push",
"kind": 4096,
"kindString": "Call signature",
@@ -36252,7 +31535,7 @@
},
"parameters": [
{
- "id": 244,
+ "id": 270,
"name": "data",
"kind": 32768,
"kindString": "Parameter",
@@ -36261,7 +31544,7 @@
},
"type": {
"type": "reference",
- "id": 291,
+ "id": 319,
"name": "Message"
}
}
@@ -36275,13 +31558,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 251,
+ "line": 252,
"character": 6
}
]
},
{
- "id": 234,
+ "id": 260,
"name": "remove",
"kind": 2048,
"kindString": "Method",
@@ -36290,7 +31573,7 @@
},
"signatures": [
{
- "id": 235,
+ "id": 261,
"name": "remove",
"kind": 4096,
"kindString": "Call signature",
@@ -36302,7 +31585,7 @@
},
"parameters": [
{
- "id": 236,
+ "id": 262,
"name": "channel",
"kind": 32768,
"kindString": "Parameter",
@@ -36328,13 +31611,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 239,
+ "line": 240,
"character": 8
}
]
},
{
- "id": 195,
+ "id": 221,
"name": "stateChangeCallbacks",
"kind": 2097152,
"kindString": "Object literal",
@@ -36343,7 +31626,7 @@
},
"children": [
{
- "id": 197,
+ "id": 223,
"name": "close",
"kind": 32,
"kindString": "Variable",
@@ -36353,7 +31636,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 60,
+ "line": 62,
"character": 9
}
],
@@ -36367,7 +31650,7 @@
"defaultValue": "[]"
},
{
- "id": 198,
+ "id": 224,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -36377,7 +31660,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 61,
+ "line": 63,
"character": 9
}
],
@@ -36391,7 +31674,7 @@
"defaultValue": "[]"
},
{
- "id": 199,
+ "id": 225,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -36401,7 +31684,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 62,
+ "line": 64,
"character": 11
}
],
@@ -36415,7 +31698,7 @@
"defaultValue": "[]"
},
{
- "id": 196,
+ "id": 222,
"name": "open",
"kind": 32,
"kindString": "Variable",
@@ -36425,7 +31708,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 59,
+ "line": 61,
"character": 8
}
],
@@ -36444,17 +31727,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 197,
- 198,
- 199,
- 196
+ 223,
+ 224,
+ 225,
+ 222
]
}
],
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 53,
+ "line": 55,
"character": 22
}
],
@@ -36469,79 +31752,81 @@
"title": "Constructors",
"kind": 512,
"children": [
- 200
+ 226
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 171,
- 193,
- 191,
- 190,
- 172,
- 173,
- 183,
- 185,
- 189,
- 184,
- 177,
- 186,
- 192,
- 188,
- 187,
- 194,
- 181,
- 182
+ 196,
+ 218,
+ 216,
+ 215,
+ 197,
+ 198,
+ 208,
+ 210,
+ 214,
+ 209,
+ 202,
+ 211,
+ 217,
+ 213,
+ 212,
+ 219,
+ 220,
+ 206,
+ 207
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 262,
- 269,
- 254,
- 257,
- 252,
- 271,
- 260,
- 237,
- 204,
+ 288,
+ 295,
+ 280,
+ 283,
+ 278,
+ 297,
+ 299,
+ 286,
+ 263,
230,
- 206,
- 248,
+ 256,
232,
- 213,
+ 274,
+ 258,
+ 239,
+ 276,
+ 247,
+ 271,
250,
- 221,
- 245,
- 224,
- 227,
- 218,
- 242,
- 234
+ 253,
+ 244,
+ 268,
+ 260
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 195
+ 221
]
}
],
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 34,
+ "line": 35,
"character": 35
}
]
},
{
- "id": 291,
+ "id": 319,
"name": "Message",
"kind": 4194304,
"kindString": "Type alias",
@@ -36549,21 +31834,21 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 25,
+ "line": 26,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 292,
+ "id": 320,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 294,
+ "id": 322,
"name": "event",
"kind": 32,
"kindString": "Variable",
@@ -36571,7 +31856,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 27,
+ "line": 28,
"character": 7
}
],
@@ -36581,7 +31866,7 @@
}
},
{
- "id": 295,
+ "id": 323,
"name": "payload",
"kind": 32,
"kindString": "Variable",
@@ -36589,7 +31874,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 28,
+ "line": 29,
"character": 9
}
],
@@ -36599,7 +31884,7 @@
}
},
{
- "id": 296,
+ "id": 324,
"name": "ref",
"kind": 32,
"kindString": "Variable",
@@ -36607,7 +31892,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 29,
+ "line": 30,
"character": 5
}
],
@@ -36617,7 +31902,7 @@
}
},
{
- "id": 293,
+ "id": 321,
"name": "topic",
"kind": 32,
"kindString": "Variable",
@@ -36625,7 +31910,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 26,
+ "line": 27,
"character": 7
}
],
@@ -36640,17 +31925,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 294,
- 295,
- 296,
- 293
+ 322,
+ 323,
+ 324,
+ 321
]
}
],
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 25,
+ "line": 26,
"character": 14
}
]
@@ -36658,7 +31943,7 @@
}
},
{
- "id": 273,
+ "id": 301,
"name": "Options",
"kind": 4194304,
"kindString": "Type alias",
@@ -36666,21 +31951,21 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 13,
+ "line": 14,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 274,
+ "id": 302,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 281,
+ "id": 309,
"name": "decode",
"kind": 32,
"kindString": "Variable",
@@ -36690,7 +31975,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 20,
+ "line": 21,
"character": 8
}
],
@@ -36700,7 +31985,7 @@
}
},
{
- "id": 280,
+ "id": 308,
"name": "encode",
"kind": 32,
"kindString": "Variable",
@@ -36710,7 +31995,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 19,
+ "line": 20,
"character": 8
}
],
@@ -36720,7 +32005,7 @@
}
},
{
- "id": 283,
+ "id": 311,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -36730,7 +32015,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 22,
+ "line": 23,
"character": 9
}
],
@@ -36744,21 +32029,21 @@
{
"type": "reflection",
"declaration": {
- "id": 284,
+ "id": 312,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"indexSignature": [
{
- "id": 285,
+ "id": 313,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
"flags": {},
"parameters": [
{
- "id": 286,
+ "id": 314,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -36781,7 +32066,7 @@
}
},
{
- "id": 277,
+ "id": 305,
"name": "heartbeatIntervalMs",
"kind": 32,
"kindString": "Variable",
@@ -36791,7 +32076,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 16,
+ "line": 17,
"character": 21
}
],
@@ -36810,7 +32095,7 @@
}
},
{
- "id": 279,
+ "id": 307,
"name": "logger",
"kind": 32,
"kindString": "Variable",
@@ -36820,7 +32105,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 18,
+ "line": 19,
"character": 8
}
],
@@ -36830,7 +32115,7 @@
}
},
{
- "id": 278,
+ "id": 306,
"name": "longpollerTimeout",
"kind": 32,
"kindString": "Variable",
@@ -36840,7 +32125,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 17,
+ "line": 18,
"character": 19
}
],
@@ -36859,7 +32144,7 @@
}
},
{
- "id": 287,
+ "id": 315,
"name": "params",
"kind": 32,
"kindString": "Variable",
@@ -36869,7 +32154,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 23,
+ "line": 24,
"character": 8
}
],
@@ -36883,21 +32168,21 @@
{
"type": "reflection",
"declaration": {
- "id": 288,
+ "id": 316,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"indexSignature": [
{
- "id": 289,
+ "id": 317,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
"flags": {},
"parameters": [
{
- "id": 290,
+ "id": 318,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -36920,7 +32205,7 @@
}
},
{
- "id": 282,
+ "id": 310,
"name": "reconnectAfterMs",
"kind": 32,
"kindString": "Variable",
@@ -36930,7 +32215,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 21,
+ "line": 22,
"character": 18
}
],
@@ -36940,7 +32225,7 @@
}
},
{
- "id": 276,
+ "id": 304,
"name": "timeout",
"kind": 32,
"kindString": "Variable",
@@ -36950,7 +32235,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 15,
+ "line": 16,
"character": 9
}
],
@@ -36969,7 +32254,7 @@
}
},
{
- "id": 275,
+ "id": 303,
"name": "transport",
"kind": 32,
"kindString": "Variable",
@@ -36979,7 +32264,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 14,
+ "line": 15,
"character": 11
}
],
@@ -36994,23 +32279,23 @@
"title": "Variables",
"kind": 32,
"children": [
- 281,
- 280,
- 283,
- 277,
- 279,
- 278,
- 287,
- 282,
- 276,
- 275
+ 309,
+ 308,
+ 311,
+ 305,
+ 307,
+ 306,
+ 315,
+ 310,
+ 304,
+ 303
]
}
],
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 13,
+ "line": 14,
"character": 14
}
]
@@ -37018,7 +32303,7 @@
}
},
{
- "id": 297,
+ "id": 325,
"name": "noop",
"kind": 64,
"kindString": "Function",
@@ -37027,7 +32312,7 @@
},
"signatures": [
{
- "id": 298,
+ "id": 326,
"name": "noop",
"kind": 4096,
"kindString": "Call signature",
@@ -37041,7 +32326,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 32,
+ "line": 33,
"character": 10
}
]
@@ -37052,22 +32337,22 @@
"title": "Classes",
"kind": 128,
"children": [
- 170
+ 195
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 291,
- 273
+ 319,
+ 301
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 297
+ 325
]
}
],
@@ -37153,7 +32438,7 @@
},
"type": {
"type": "reference",
- "id": 170,
+ "id": 195,
"name": "RealtimeClient"
}
}
@@ -37326,7 +32611,7 @@
],
"type": {
"type": "reference",
- "id": 170,
+ "id": 195,
"name": "RealtimeClient"
}
},
@@ -38448,7 +33733,7 @@
]
},
{
- "id": 385,
+ "id": 413,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -39993,6 +35278,490 @@
}
]
},
+ {
+ "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\"",
@@ -40293,7 +36062,7 @@
]
},
{
- "id": 299,
+ "id": 327,
"name": "\"lib/transformers\"",
"kind": 1,
"kindString": "Module",
@@ -40303,7 +36072,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts",
"children": [
{
- "id": 300,
+ "id": 328,
"name": "PostgresTypes",
"kind": 4,
"kindString": "Enumeration",
@@ -40315,7 +36084,7 @@
},
"children": [
{
- "id": 301,
+ "id": 329,
"name": "abstime",
"kind": 16,
"kindString": "Enumeration member",
@@ -40332,7 +36101,7 @@
"defaultValue": "\"abstime\""
},
{
- "id": 302,
+ "id": 330,
"name": "bool",
"kind": 16,
"kindString": "Enumeration member",
@@ -40349,7 +36118,7 @@
"defaultValue": "\"bool\""
},
{
- "id": 303,
+ "id": 331,
"name": "date",
"kind": 16,
"kindString": "Enumeration member",
@@ -40366,7 +36135,7 @@
"defaultValue": "\"date\""
},
{
- "id": 304,
+ "id": 332,
"name": "daterange",
"kind": 16,
"kindString": "Enumeration member",
@@ -40383,7 +36152,7 @@
"defaultValue": "\"daterange\""
},
{
- "id": 305,
+ "id": 333,
"name": "float4",
"kind": 16,
"kindString": "Enumeration member",
@@ -40400,7 +36169,7 @@
"defaultValue": "\"float4\""
},
{
- "id": 306,
+ "id": 334,
"name": "float8",
"kind": 16,
"kindString": "Enumeration member",
@@ -40417,7 +36186,7 @@
"defaultValue": "\"float8\""
},
{
- "id": 307,
+ "id": 335,
"name": "int2",
"kind": 16,
"kindString": "Enumeration member",
@@ -40434,7 +36203,7 @@
"defaultValue": "\"int2\""
},
{
- "id": 308,
+ "id": 336,
"name": "int4",
"kind": 16,
"kindString": "Enumeration member",
@@ -40451,7 +36220,7 @@
"defaultValue": "\"int4\""
},
{
- "id": 309,
+ "id": 337,
"name": "int4range",
"kind": 16,
"kindString": "Enumeration member",
@@ -40468,7 +36237,7 @@
"defaultValue": "\"int4range\""
},
{
- "id": 310,
+ "id": 338,
"name": "int8",
"kind": 16,
"kindString": "Enumeration member",
@@ -40485,7 +36254,7 @@
"defaultValue": "\"int8\""
},
{
- "id": 311,
+ "id": 339,
"name": "int8range",
"kind": 16,
"kindString": "Enumeration member",
@@ -40502,7 +36271,7 @@
"defaultValue": "\"int8range\""
},
{
- "id": 312,
+ "id": 340,
"name": "json",
"kind": 16,
"kindString": "Enumeration member",
@@ -40519,7 +36288,7 @@
"defaultValue": "\"json\""
},
{
- "id": 313,
+ "id": 341,
"name": "jsonb",
"kind": 16,
"kindString": "Enumeration member",
@@ -40536,7 +36305,7 @@
"defaultValue": "\"jsonb\""
},
{
- "id": 314,
+ "id": 342,
"name": "money",
"kind": 16,
"kindString": "Enumeration member",
@@ -40553,7 +36322,7 @@
"defaultValue": "\"money\""
},
{
- "id": 315,
+ "id": 343,
"name": "numeric",
"kind": 16,
"kindString": "Enumeration member",
@@ -40570,7 +36339,7 @@
"defaultValue": "\"numeric\""
},
{
- "id": 316,
+ "id": 344,
"name": "oid",
"kind": 16,
"kindString": "Enumeration member",
@@ -40587,7 +36356,7 @@
"defaultValue": "\"oid\""
},
{
- "id": 317,
+ "id": 345,
"name": "reltime",
"kind": 16,
"kindString": "Enumeration member",
@@ -40604,7 +36373,7 @@
"defaultValue": "\"reltime\""
},
{
- "id": 318,
+ "id": 346,
"name": "time",
"kind": 16,
"kindString": "Enumeration member",
@@ -40621,7 +36390,7 @@
"defaultValue": "\"time\""
},
{
- "id": 319,
+ "id": 347,
"name": "timestamp",
"kind": 16,
"kindString": "Enumeration member",
@@ -40638,7 +36407,7 @@
"defaultValue": "\"timestamp\""
},
{
- "id": 320,
+ "id": 348,
"name": "timestamptz",
"kind": 16,
"kindString": "Enumeration member",
@@ -40655,7 +36424,7 @@
"defaultValue": "\"timestamptz\""
},
{
- "id": 321,
+ "id": 349,
"name": "timetz",
"kind": 16,
"kindString": "Enumeration member",
@@ -40672,7 +36441,7 @@
"defaultValue": "\"timetz\""
},
{
- "id": 322,
+ "id": 350,
"name": "tsrange",
"kind": 16,
"kindString": "Enumeration member",
@@ -40689,7 +36458,7 @@
"defaultValue": "\"tsrange\""
},
{
- "id": 323,
+ "id": 351,
"name": "tstzrange",
"kind": 16,
"kindString": "Enumeration member",
@@ -40711,29 +36480,29 @@
"title": "Enumeration members",
"kind": 16,
"children": [
- 301,
- 302,
- 303,
- 304,
- 305,
- 306,
- 307,
- 308,
- 309,
- 310,
- 311,
- 312,
- 313,
- 314,
- 315,
- 316,
- 317,
- 318,
- 319,
- 320,
- 321,
- 322,
- 323
+ 329,
+ 330,
+ 331,
+ 332,
+ 333,
+ 334,
+ 335,
+ 336,
+ 337,
+ 338,
+ 339,
+ 340,
+ 341,
+ 342,
+ 343,
+ 344,
+ 345,
+ 346,
+ 347,
+ 348,
+ 349,
+ 350,
+ 351
]
}
],
@@ -40746,7 +36515,7 @@
]
},
{
- "id": 324,
+ "id": 352,
"name": "Column",
"kind": 4194304,
"kindString": "Type alias",
@@ -40761,14 +36530,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 325,
+ "id": 353,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 326,
+ "id": 354,
"name": "flags",
"kind": 32,
"kindString": "Variable",
@@ -40789,7 +36558,7 @@
}
},
{
- "id": 327,
+ "id": 355,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -40807,7 +36576,7 @@
}
},
{
- "id": 328,
+ "id": 356,
"name": "type",
"kind": 32,
"kindString": "Variable",
@@ -40825,7 +36594,7 @@
}
},
{
- "id": 329,
+ "id": 357,
"name": "type_modifier",
"kind": 32,
"kindString": "Variable",
@@ -40848,10 +36617,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 326,
- 327,
- 328,
- 329
+ 354,
+ 355,
+ 356,
+ 357
]
}
],
@@ -40866,7 +36635,7 @@
}
},
{
- "id": 330,
+ "id": 358,
"name": "Records",
"kind": 4194304,
"kindString": "Type alias",
@@ -40881,21 +36650,21 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 331,
+ "id": 359,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"indexSignature": [
{
- "id": 332,
+ "id": 360,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
"flags": {},
"parameters": [
{
- "id": 333,
+ "id": 361,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -40923,7 +36692,7 @@
}
},
{
- "id": 350,
+ "id": 378,
"name": "convertCell",
"kind": 64,
"kindString": "Function",
@@ -40950,7 +36719,7 @@
},
"signatures": [
{
- "id": 351,
+ "id": 379,
"name": "convertCell",
"kind": 4096,
"kindString": "Call signature",
@@ -40976,7 +36745,7 @@
},
"parameters": [
{
- "id": 352,
+ "id": 380,
"name": "type",
"kind": 32768,
"kindString": "Parameter",
@@ -40992,7 +36761,7 @@
}
},
{
- "id": 353,
+ "id": 381,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41023,7 +36792,7 @@
]
},
{
- "id": 334,
+ "id": 362,
"name": "convertChangeData",
"kind": 64,
"kindString": "Function",
@@ -41042,7 +36811,7 @@
},
"signatures": [
{
- "id": 335,
+ "id": 363,
"name": "convertChangeData",
"kind": 4096,
"kindString": "Call signature",
@@ -41060,7 +36829,7 @@
},
"parameters": [
{
- "id": 336,
+ "id": 364,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -41071,13 +36840,13 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 324,
+ "id": 352,
"name": "Column"
}
}
},
{
- "id": 337,
+ "id": 365,
"name": "records",
"kind": 32768,
"kindString": "Parameter",
@@ -41087,12 +36856,12 @@
"comment": {},
"type": {
"type": "reference",
- "id": 330,
+ "id": 358,
"name": "Records"
}
},
{
- "id": 338,
+ "id": 366,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -41105,7 +36874,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 339,
+ "id": 367,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -41114,7 +36883,7 @@
},
"children": [
{
- "id": 340,
+ "id": 368,
"name": "skipTypes",
"kind": 32,
"kindString": "Variable",
@@ -41143,7 +36912,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 340
+ 368
]
}
],
@@ -41162,7 +36931,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 341,
+ "id": 369,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -41171,7 +36940,7 @@
},
"indexSignature": [
{
- "id": 342,
+ "id": 370,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -41180,7 +36949,7 @@
},
"parameters": [
{
- "id": 343,
+ "id": 371,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -41212,7 +36981,7 @@
]
},
{
- "id": 344,
+ "id": 372,
"name": "convertColumn",
"kind": 64,
"kindString": "Function",
@@ -41236,7 +37005,7 @@
},
"signatures": [
{
- "id": 345,
+ "id": 373,
"name": "convertColumn",
"kind": 4096,
"kindString": "Call signature",
@@ -41259,7 +37028,7 @@
},
"parameters": [
{
- "id": 346,
+ "id": 374,
"name": "columnName",
"kind": 32768,
"kindString": "Parameter",
@@ -41275,7 +37044,7 @@
}
},
{
- "id": 347,
+ "id": 375,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -41286,13 +37055,13 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 324,
+ "id": 352,
"name": "Column"
}
}
},
{
- "id": 348,
+ "id": 376,
"name": "records",
"kind": 32768,
"kindString": "Parameter",
@@ -41304,12 +37073,12 @@
},
"type": {
"type": "reference",
- "id": 330,
+ "id": 358,
"name": "Records"
}
},
{
- "id": 349,
+ "id": 377,
"name": "skipTypes",
"kind": 32768,
"kindString": "Parameter",
@@ -41343,7 +37112,7 @@
]
},
{
- "id": 354,
+ "id": 382,
"name": "noop",
"kind": 64,
"kindString": "Function",
@@ -41352,14 +37121,14 @@
},
"signatures": [
{
- "id": 355,
+ "id": 383,
"name": "noop",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
- "id": 356,
+ "id": 384,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41385,7 +37154,7 @@
]
},
{
- "id": 378,
+ "id": 406,
"name": "toArray",
"kind": 64,
"kindString": "Function",
@@ -41408,7 +37177,7 @@
},
"signatures": [
{
- "id": 379,
+ "id": 407,
"name": "toArray",
"kind": 4096,
"kindString": "Call signature",
@@ -41430,7 +37199,7 @@
},
"parameters": [
{
- "id": 380,
+ "id": 408,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41443,7 +37212,7 @@
}
},
{
- "id": 381,
+ "id": 409,
"name": "type",
"kind": 32768,
"kindString": "Parameter",
@@ -41474,7 +37243,7 @@
]
},
{
- "id": 357,
+ "id": 385,
"name": "toBoolean",
"kind": 64,
"kindString": "Function",
@@ -41484,7 +37253,7 @@
},
"signatures": [
{
- "id": 358,
+ "id": 386,
"name": "toBoolean",
"kind": 4096,
"kindString": "Call signature",
@@ -41493,7 +37262,7 @@
},
"parameters": [
{
- "id": 359,
+ "id": 387,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41534,7 +37303,7 @@
]
},
{
- "id": 360,
+ "id": 388,
"name": "toDate",
"kind": 64,
"kindString": "Function",
@@ -41544,7 +37313,7 @@
},
"signatures": [
{
- "id": 361,
+ "id": 389,
"name": "toDate",
"kind": 4096,
"kindString": "Call signature",
@@ -41553,7 +37322,7 @@
},
"parameters": [
{
- "id": 362,
+ "id": 390,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41581,7 +37350,7 @@
]
},
{
- "id": 363,
+ "id": 391,
"name": "toDateRange",
"kind": 64,
"kindString": "Function",
@@ -41591,7 +37360,7 @@
},
"signatures": [
{
- "id": 364,
+ "id": 392,
"name": "toDateRange",
"kind": 4096,
"kindString": "Call signature",
@@ -41600,7 +37369,7 @@
},
"parameters": [
{
- "id": 365,
+ "id": 393,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41631,7 +37400,7 @@
]
},
{
- "id": 366,
+ "id": 394,
"name": "toFloat",
"kind": 64,
"kindString": "Function",
@@ -41641,7 +37410,7 @@
},
"signatures": [
{
- "id": 367,
+ "id": 395,
"name": "toFloat",
"kind": 4096,
"kindString": "Call signature",
@@ -41650,7 +37419,7 @@
},
"parameters": [
{
- "id": 368,
+ "id": 396,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41678,7 +37447,7 @@
]
},
{
- "id": 369,
+ "id": 397,
"name": "toInt",
"kind": 64,
"kindString": "Function",
@@ -41688,7 +37457,7 @@
},
"signatures": [
{
- "id": 370,
+ "id": 398,
"name": "toInt",
"kind": 4096,
"kindString": "Call signature",
@@ -41697,7 +37466,7 @@
},
"parameters": [
{
- "id": 371,
+ "id": 399,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41725,7 +37494,7 @@
]
},
{
- "id": 372,
+ "id": 400,
"name": "toIntRange",
"kind": 64,
"kindString": "Function",
@@ -41735,7 +37504,7 @@
},
"signatures": [
{
- "id": 373,
+ "id": 401,
"name": "toIntRange",
"kind": 4096,
"kindString": "Call signature",
@@ -41744,7 +37513,7 @@
},
"parameters": [
{
- "id": 374,
+ "id": 402,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41775,7 +37544,7 @@
]
},
{
- "id": 375,
+ "id": 403,
"name": "toJson",
"kind": 64,
"kindString": "Function",
@@ -41785,7 +37554,7 @@
},
"signatures": [
{
- "id": 376,
+ "id": 404,
"name": "toJson",
"kind": 4096,
"kindString": "Call signature",
@@ -41794,7 +37563,7 @@
},
"parameters": [
{
- "id": 377,
+ "id": 405,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41822,7 +37591,7 @@
]
},
{
- "id": 382,
+ "id": 410,
"name": "toTimestampString",
"kind": 64,
"kindString": "Function",
@@ -41841,7 +37610,7 @@
},
"signatures": [
{
- "id": 383,
+ "id": 411,
"name": "toTimestampString",
"kind": 4096,
"kindString": "Call signature",
@@ -41859,7 +37628,7 @@
},
"parameters": [
{
- "id": 384,
+ "id": 412,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -41892,34 +37661,34 @@
"title": "Enumerations",
"kind": 4,
"children": [
- 300
+ 328
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 324,
- 330
+ 352,
+ 358
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 350,
- 334,
- 344,
- 354,
378,
- 357,
- 360,
- 363,
- 366,
- 369,
+ 362,
372,
- 375,
- 382
+ 382,
+ 406,
+ 385,
+ 388,
+ 391,
+ 394,
+ 397,
+ 400,
+ 403,
+ 410
]
}
],
@@ -41937,13 +37706,14 @@
"title": "Modules",
"kind": 1,
"children": [
- 169,
+ 194,
90,
- 385,
+ 413,
1,
38,
+ 169,
24,
- 299
+ 327
]
}
]
diff --git a/web/spec/gotrue.json b/web/spec/gotrue.json
index 2aff33c5e2b..75b193f7eda 100644
--- a/web/spec/gotrue.json
+++ b/web/spec/gotrue.json
@@ -6,7 +6,7 @@
"originalName": "",
"children": [
{
- "id": 191,
+ "id": 196,
"name": "\"GoTrueApi\"",
"kind": 1,
"kindString": "Module",
@@ -16,7 +16,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",
"children": [
{
- "id": 192,
+ "id": 197,
"name": "GoTrueApi",
"kind": 128,
"kindString": "Class",
@@ -25,7 +25,7 @@
},
"children": [
{
- "id": 199,
+ "id": 204,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -34,7 +34,7 @@
},
"signatures": [
{
- "id": 200,
+ "id": 205,
"name": "new GoTrueApi",
"kind": 16384,
"kindString": "Constructor signature",
@@ -43,7 +43,7 @@
},
"parameters": [
{
- "id": 201,
+ "id": 206,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -54,7 +54,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 202,
+ "id": 207,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -63,7 +63,7 @@
},
"children": [
{
- "id": 208,
+ "id": 213,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -86,14 +86,14 @@
},
{
"type": "reference",
- "id": 87,
+ "id": 92,
"name": "CookieOptions"
}
]
}
},
{
- "id": 204,
+ "id": 209,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -110,7 +110,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 205,
+ "id": 210,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -119,7 +119,7 @@
},
"indexSignature": [
{
- "id": 206,
+ "id": 211,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -128,7 +128,7 @@
},
"parameters": [
{
- "id": 207,
+ "id": 212,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -151,7 +151,7 @@
}
},
{
- "id": 203,
+ "id": 208,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -177,9 +177,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 208,
- 204,
- 203
+ 213,
+ 209,
+ 208
]
}
],
@@ -196,7 +196,7 @@
],
"type": {
"type": "reference",
- "id": 192,
+ "id": 197,
"name": "GoTrueApi"
}
}
@@ -210,7 +210,7 @@
]
},
{
- "id": 198,
+ "id": 203,
"name": "cookieOptions",
"kind": 1024,
"kindString": "Property",
@@ -227,12 +227,12 @@
],
"type": {
"type": "reference",
- "id": 87,
+ "id": 92,
"name": "CookieOptions"
}
},
{
- "id": 194,
+ "id": 199,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -250,7 +250,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 195,
+ "id": 200,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -259,7 +259,7 @@
},
"indexSignature": [
{
- "id": 196,
+ "id": 201,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -268,7 +268,7 @@
},
"parameters": [
{
- "id": 197,
+ "id": 202,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -298,7 +298,7 @@
}
},
{
- "id": 193,
+ "id": 198,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -319,7 +319,7 @@
}
},
{
- "id": 259,
+ "id": 264,
"name": "_createRequestHeaders",
"kind": 2048,
"kindString": "Method",
@@ -329,7 +329,7 @@
},
"signatures": [
{
- "id": 260,
+ "id": 265,
"name": "_createRequestHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -341,7 +341,7 @@
},
"parameters": [
{
- "id": 261,
+ "id": 266,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -360,7 +360,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 262,
+ "id": 267,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -380,7 +380,198 @@
]
},
{
- "id": 268,
+ "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, logged-in JWT.\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",
@@ -389,7 +580,7 @@
},
"signatures": [
{
- "id": 269,
+ "id": 274,
"name": "getUrlForProvider",
"kind": 4096,
"kindString": "Call signature",
@@ -401,7 +592,7 @@
},
"parameters": [
{
- "id": 270,
+ "id": 275,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -413,12 +604,12 @@
},
"type": {
"type": "reference",
- "id": 97,
+ "id": 102,
"name": "Provider"
}
},
{
- "id": 271,
+ "id": 276,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -428,7 +619,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 272,
+ "id": 277,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -437,7 +628,7 @@
},
"children": [
{
- "id": 273,
+ "id": 278,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -467,7 +658,7 @@
}
},
{
- "id": 274,
+ "id": 279,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -502,8 +693,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 273,
- 274
+ 278,
+ 279
]
}
],
@@ -533,7 +724,7 @@
]
},
{
- "id": 275,
+ "id": 280,
"name": "getUser",
"kind": 2048,
"kindString": "Method",
@@ -542,7 +733,7 @@
},
"signatures": [
{
- "id": 276,
+ "id": 281,
"name": "getUser",
"kind": 4096,
"kindString": "Call signature",
@@ -554,7 +745,7 @@
},
"parameters": [
{
- "id": 277,
+ "id": 282,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -576,7 +767,7 @@
{
"type": "reflection",
"declaration": {
- "id": 278,
+ "id": 283,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -585,7 +776,7 @@
},
"children": [
{
- "id": 280,
+ "id": 285,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -604,7 +795,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -615,7 +806,7 @@
}
},
{
- "id": 281,
+ "id": 286,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -644,7 +835,7 @@
}
},
{
- "id": 279,
+ "id": 284,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -663,7 +854,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -679,9 +870,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 280,
- 281,
- 279
+ 285,
+ 286,
+ 284
]
}
],
@@ -708,7 +899,7 @@
]
},
{
- "id": 300,
+ "id": 313,
"name": "getUserByCookie",
"kind": 2048,
"kindString": "Method",
@@ -717,7 +908,7 @@
},
"signatures": [
{
- "id": 301,
+ "id": 314,
"name": "getUserByCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -729,7 +920,7 @@
},
"parameters": [
{
- "id": 302,
+ "id": 315,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -748,7 +939,7 @@
{
"type": "reflection",
"declaration": {
- "id": 303,
+ "id": 316,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -757,7 +948,7 @@
},
"children": [
{
- "id": 305,
+ "id": 318,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -767,7 +958,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 298,
+ "line": 321,
"character": 38
}
],
@@ -776,7 +967,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -787,7 +978,7 @@
}
},
{
- "id": 306,
+ "id": 319,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -797,7 +988,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 298,
+ "line": 321,
"character": 58
}
],
@@ -816,7 +1007,7 @@
}
},
{
- "id": 304,
+ "id": 317,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -826,7 +1017,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 298,
+ "line": 321,
"character": 19
}
],
@@ -835,7 +1026,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -851,16 +1042,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 305,
- 306,
- 304
+ 318,
+ 319,
+ 317
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 298,
+ "line": 321,
"character": 13
}
]
@@ -874,13 +1065,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 296,
+ "line": 319,
"character": 23
}
]
},
{
- "id": 239,
+ "id": 244,
"name": "inviteUserByEmail",
"kind": 2048,
"kindString": "Method",
@@ -889,7 +1080,7 @@
},
"signatures": [
{
- "id": 240,
+ "id": 245,
"name": "inviteUserByEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -901,7 +1092,7 @@
},
"parameters": [
{
- "id": 241,
+ "id": 246,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -917,7 +1108,7 @@
}
},
{
- "id": 242,
+ "id": 247,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -927,7 +1118,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 243,
+ "id": 248,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -936,7 +1127,7 @@
},
"children": [
{
- "id": 244,
+ "id": 249,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -971,7 +1162,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 244
+ 249
]
}
],
@@ -993,7 +1184,7 @@
{
"type": "reflection",
"declaration": {
- "id": 245,
+ "id": 250,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1002,7 +1193,7 @@
},
"children": [
{
- "id": 246,
+ "id": 251,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1022,7 +1213,7 @@
{
"type": "reflection",
"declaration": {
- "id": 247,
+ "id": 252,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1046,7 +1237,7 @@
}
},
{
- "id": 248,
+ "id": 253,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1080,8 +1271,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 246,
- 248
+ 251,
+ 253
]
}
],
@@ -1108,7 +1299,7 @@
]
},
{
- "id": 290,
+ "id": 303,
"name": "refreshAccessToken",
"kind": 2048,
"kindString": "Method",
@@ -1117,7 +1308,7 @@
},
"signatures": [
{
- "id": 291,
+ "id": 304,
"name": "refreshAccessToken",
"kind": 4096,
"kindString": "Call signature",
@@ -1129,7 +1320,7 @@
},
"parameters": [
{
- "id": 292,
+ "id": 305,
"name": "refreshToken",
"kind": 32768,
"kindString": "Parameter",
@@ -1151,7 +1342,7 @@
{
"type": "reflection",
"declaration": {
- "id": 293,
+ "id": 306,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1160,7 +1351,7 @@
},
"children": [
{
- "id": 294,
+ "id": 307,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1170,7 +1361,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 251,
+ "line": 274,
"character": 19
}
],
@@ -1179,7 +1370,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -1190,7 +1381,7 @@
}
},
{
- "id": 295,
+ "id": 308,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1200,7 +1391,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 251,
+ "line": 274,
"character": 42
}
],
@@ -1224,15 +1415,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 294,
- 295
+ 307,
+ 308
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 251,
+ "line": 274,
"character": 13
}
]
@@ -1246,13 +1437,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 249,
+ "line": 272,
"character": 26
}
]
},
{
- "id": 249,
+ "id": 254,
"name": "resetPasswordForEmail",
"kind": 2048,
"kindString": "Method",
@@ -1261,7 +1452,7 @@
},
"signatures": [
{
- "id": 250,
+ "id": 255,
"name": "resetPasswordForEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -1273,7 +1464,7 @@
},
"parameters": [
{
- "id": 251,
+ "id": 256,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1289,7 +1480,7 @@
}
},
{
- "id": 252,
+ "id": 257,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1299,7 +1490,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 253,
+ "id": 258,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1308,7 +1499,7 @@
},
"children": [
{
- "id": 254,
+ "id": 259,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -1343,7 +1534,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 254
+ 259
]
}
],
@@ -1365,7 +1556,7 @@
{
"type": "reflection",
"declaration": {
- "id": 255,
+ "id": 260,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1374,7 +1565,7 @@
},
"children": [
{
- "id": 256,
+ "id": 261,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1394,7 +1585,7 @@
{
"type": "reflection",
"declaration": {
- "id": 257,
+ "id": 262,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1418,7 +1609,7 @@
}
},
{
- "id": 258,
+ "id": 263,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1452,8 +1643,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 256,
- 258
+ 261,
+ 263
]
}
],
@@ -1480,7 +1671,7 @@
]
},
{
- "id": 229,
+ "id": 234,
"name": "sendMagicLinkEmail",
"kind": 2048,
"kindString": "Method",
@@ -1489,7 +1680,7 @@
},
"signatures": [
{
- "id": 230,
+ "id": 235,
"name": "sendMagicLinkEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -1501,7 +1692,7 @@
},
"parameters": [
{
- "id": 231,
+ "id": 236,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1517,7 +1708,7 @@
}
},
{
- "id": 232,
+ "id": 237,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1527,7 +1718,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 233,
+ "id": 238,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1536,7 +1727,7 @@
},
"children": [
{
- "id": 234,
+ "id": 239,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -1571,7 +1762,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 234
+ 239
]
}
],
@@ -1593,7 +1784,7 @@
{
"type": "reflection",
"declaration": {
- "id": 235,
+ "id": 240,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1602,7 +1793,7 @@
},
"children": [
{
- "id": 236,
+ "id": 241,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1622,7 +1813,7 @@
{
"type": "reflection",
"declaration": {
- "id": 237,
+ "id": 242,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1646,7 +1837,7 @@
}
},
{
- "id": 238,
+ "id": 243,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1680,8 +1871,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 236,
- 238
+ 241,
+ 243
]
}
],
@@ -1708,7 +1899,7 @@
]
},
{
- "id": 296,
+ "id": 309,
"name": "setAuthCookie",
"kind": 2048,
"kindString": "Method",
@@ -1717,7 +1908,7 @@
},
"signatures": [
{
- "id": 297,
+ "id": 310,
"name": "setAuthCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -1729,7 +1920,7 @@
},
"parameters": [
{
- "id": 298,
+ "id": 311,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -1742,7 +1933,7 @@
}
},
{
- "id": 299,
+ "id": 312,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -1764,13 +1955,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 270,
+ "line": 293,
"character": 15
}
]
},
{
- "id": 219,
+ "id": 224,
"name": "signInWithEmail",
"kind": 2048,
"kindString": "Method",
@@ -1779,7 +1970,7 @@
},
"signatures": [
{
- "id": 220,
+ "id": 225,
"name": "signInWithEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -1791,7 +1982,7 @@
},
"parameters": [
{
- "id": 221,
+ "id": 226,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -1807,7 +1998,7 @@
}
},
{
- "id": 222,
+ "id": 227,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -1823,7 +2014,7 @@
}
},
{
- "id": 223,
+ "id": 228,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1833,7 +2024,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 224,
+ "id": 229,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1842,7 +2033,7 @@
},
"children": [
{
- "id": 225,
+ "id": 230,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -1877,7 +2068,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 225
+ 230
]
}
],
@@ -1899,7 +2090,7 @@
{
"type": "reflection",
"declaration": {
- "id": 226,
+ "id": 231,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1908,7 +2099,7 @@
},
"children": [
{
- "id": 227,
+ "id": 232,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1927,7 +2118,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -1938,7 +2129,7 @@
}
},
{
- "id": 228,
+ "id": 233,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1972,8 +2163,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 227,
- 228
+ 232,
+ 233
]
}
],
@@ -2000,7 +2191,7 @@
]
},
{
- "id": 263,
+ "id": 268,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -2009,7 +2200,7 @@
},
"signatures": [
{
- "id": 264,
+ "id": 269,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -2021,7 +2212,7 @@
},
"parameters": [
{
- "id": 265,
+ "id": 270,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -2043,7 +2234,7 @@
{
"type": "reflection",
"declaration": {
- "id": 266,
+ "id": 271,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2052,7 +2243,7 @@
},
"children": [
{
- "id": 267,
+ "id": 272,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2086,7 +2277,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 267
+ 272
]
}
],
@@ -2113,7 +2304,7 @@
]
},
{
- "id": 209,
+ "id": 214,
"name": "signUpWithEmail",
"kind": 2048,
"kindString": "Method",
@@ -2122,7 +2313,7 @@
},
"signatures": [
{
- "id": 210,
+ "id": 215,
"name": "signUpWithEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -2135,7 +2326,7 @@
},
"parameters": [
{
- "id": 211,
+ "id": 216,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -2151,7 +2342,7 @@
}
},
{
- "id": 212,
+ "id": 217,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -2167,7 +2358,7 @@
}
},
{
- "id": 213,
+ "id": 218,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2177,7 +2368,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 214,
+ "id": 219,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2186,7 +2377,7 @@
},
"children": [
{
- "id": 215,
+ "id": 220,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -2221,7 +2412,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 215
+ 220
]
}
],
@@ -2243,7 +2434,7 @@
{
"type": "reflection",
"declaration": {
- "id": 216,
+ "id": 221,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2252,7 +2443,7 @@
},
"children": [
{
- "id": 217,
+ "id": 222,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2271,12 +2462,12 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -2287,7 +2478,7 @@
}
},
{
- "id": 218,
+ "id": 223,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2321,8 +2512,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 217,
- 218
+ 222,
+ 223
]
}
],
@@ -2349,7 +2540,7 @@
]
},
{
- "id": 282,
+ "id": 287,
"name": "updateUser",
"kind": 2048,
"kindString": "Method",
@@ -2358,7 +2549,7 @@
},
"signatures": [
{
- "id": 283,
+ "id": 288,
"name": "updateUser",
"kind": 4096,
"kindString": "Call signature",
@@ -2370,7 +2561,7 @@
},
"parameters": [
{
- "id": 284,
+ "id": 289,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -2386,7 +2577,7 @@
}
},
{
- "id": 285,
+ "id": 290,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -2398,7 +2589,7 @@
},
"type": {
"type": "reference",
- "id": 72,
+ "id": 77,
"name": "UserAttributes"
}
}
@@ -2409,7 +2600,7 @@
{
"type": "reflection",
"declaration": {
- "id": 286,
+ "id": 291,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2418,7 +2609,7 @@
},
"children": [
{
- "id": 288,
+ "id": 293,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2437,7 +2628,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -2448,7 +2639,7 @@
}
},
{
- "id": 289,
+ "id": 294,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2477,7 +2668,7 @@
}
},
{
- "id": 287,
+ "id": 292,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2496,7 +2687,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -2512,9 +2703,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 288,
- 289,
- 287
+ 293,
+ 294,
+ 292
]
}
],
@@ -2546,35 +2737,36 @@
"title": "Constructors",
"kind": 512,
"children": [
- 199
+ 204
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 198,
- 194,
- 193
+ 203,
+ 199,
+ 198
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 259,
+ 264,
+ 295,
+ 273,
+ 280,
+ 313,
+ 244,
+ 303,
+ 254,
+ 234,
+ 309,
+ 224,
268,
- 275,
- 300,
- 239,
- 290,
- 249,
- 229,
- 296,
- 219,
- 263,
- 209,
- 282
+ 214,
+ 287
]
}
],
@@ -2592,7 +2784,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 192
+ 197
]
}
],
@@ -2605,7 +2797,7 @@
]
},
{
- "id": 310,
+ "id": 323,
"name": "\"GoTrueClient\"",
"kind": 1,
"kindString": "Module",
@@ -2615,7 +2807,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
"children": [
{
- "id": 311,
+ "id": 324,
"name": "GoTrueClient",
"kind": 128,
"kindString": "Class",
@@ -2624,7 +2816,7 @@
},
"children": [
{
- "id": 319,
+ "id": 333,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -2636,7 +2828,7 @@
},
"signatures": [
{
- "id": 320,
+ "id": 334,
"name": "new GoTrueClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -2648,7 +2840,7 @@
},
"parameters": [
{
- "id": 321,
+ "id": 335,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2658,7 +2850,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 322,
+ "id": 336,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2667,7 +2859,7 @@
},
"children": [
{
- "id": 329,
+ "id": 343,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -2681,7 +2873,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 58,
+ "line": 60,
"character": 20
}
],
@@ -2704,7 +2896,7 @@
}
},
{
- "id": 332,
+ "id": 346,
"name": "cookieOptions",
"kind": 32,
"kindString": "Variable",
@@ -2715,18 +2907,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 61,
+ "line": 63,
"character": 17
}
],
"type": {
"type": "reference",
- "id": 87,
+ "id": 92,
"name": "CookieOptions"
}
},
{
- "id": 328,
+ "id": 342,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -2740,7 +2932,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 57,
+ "line": 59,
"character": 22
}
],
@@ -2763,7 +2955,7 @@
}
},
{
- "id": 324,
+ "id": 338,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -2777,7 +2969,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 56,
+ "line": 58,
"character": 11
}
],
@@ -2791,7 +2983,7 @@
{
"type": "reflection",
"declaration": {
- "id": 325,
+ "id": 339,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2800,7 +2992,7 @@
},
"indexSignature": [
{
- "id": 326,
+ "id": 340,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -2809,7 +3001,7 @@
},
"parameters": [
{
- "id": 327,
+ "id": 341,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -2834,7 +3026,7 @@
}
},
{
- "id": 331,
+ "id": 345,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -2848,7 +3040,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 60,
+ "line": 62,
"character": 16
}
],
@@ -2858,7 +3050,7 @@
}
},
{
- "id": 330,
+ "id": 344,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -2872,7 +3064,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 59,
+ "line": 61,
"character": 18
}
],
@@ -2895,7 +3087,7 @@
}
},
{
- "id": 323,
+ "id": 337,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -2909,7 +3101,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 55,
+ "line": 57,
"character": 7
}
],
@@ -2933,20 +3125,20 @@
"title": "Variables",
"kind": 32,
"children": [
- 329,
- 332,
- 328,
- 324,
- 331,
- 330,
- 323
+ 343,
+ 346,
+ 342,
+ 338,
+ 345,
+ 344,
+ 337
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 54,
+ "line": 56,
"character": 22
}
]
@@ -2956,7 +3148,7 @@
],
"type": {
"type": "reference",
- "id": 311,
+ "id": 324,
"name": "GoTrueClient"
}
}
@@ -2964,13 +3156,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 43,
- "character": 70
+ "line": 45,
+ "character": 61
}
]
},
{
- "id": 312,
+ "id": 325,
"name": "api",
"kind": 1024,
"kindString": "Property",
@@ -2989,12 +3181,12 @@
],
"type": {
"type": "reference",
- "id": 192,
+ "id": 197,
"name": "GoTrueApi"
}
},
{
- "id": 315,
+ "id": 328,
"name": "autoRefreshToken",
"kind": 1024,
"kindString": "Property",
@@ -3005,7 +3197,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 40,
+ "line": 41,
"character": 28
}
],
@@ -3015,7 +3207,7 @@
}
},
{
- "id": 314,
+ "id": 327,
"name": "currentSession",
"kind": 1024,
"kindString": "Property",
@@ -3038,7 +3230,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -3049,7 +3241,7 @@
}
},
{
- "id": 313,
+ "id": 326,
"name": "currentUser",
"kind": 1024,
"kindString": "Property",
@@ -3072,7 +3264,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -3083,7 +3275,7 @@
}
},
{
- "id": 317,
+ "id": 330,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -3094,7 +3286,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 42,
+ "line": 43,
"character": 24
}
],
@@ -3104,7 +3296,7 @@
}
},
{
- "id": 316,
+ "id": 329,
"name": "persistSession",
"kind": 1024,
"kindString": "Property",
@@ -3115,7 +3307,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 41,
+ "line": 42,
"character": 26
}
],
@@ -3125,50 +3317,81 @@
}
},
{
- "id": 318,
- "name": "stateChangeEmitters",
+ "id": 332,
+ "name": "refreshTokenTimer",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true,
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 43,
- "character": 31
+ "line": 45,
+ "character": 29
}
],
"type": {
"type": "reference",
"typeArguments": [
{
- "type": "intrinsic",
- "name": "string"
- },
- {
- "type": "reference",
- "id": 77,
- "name": "Subscription"
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "name": "setTimeout"
+ }
}
],
- "name": "Map"
- },
- "defaultValue": "new Map()"
+ "name": "ReturnType"
+ }
},
{
- "id": 452,
- "name": "_callRefreshToken",
- "kind": 2048,
- "kindString": "Method",
+ "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": 453,
+ "id": 468,
"name": "_callRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -3177,7 +3400,7 @@
},
"parameters": [
{
- "id": 454,
+ "id": 469,
"name": "refresh_token",
"kind": 32768,
"kindString": "Parameter",
@@ -3209,7 +3432,7 @@
{
"type": "reflection",
"declaration": {
- "id": 455,
+ "id": 470,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3218,7 +3441,7 @@
},
"children": [
{
- "id": 456,
+ "id": 471,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3228,18 +3451,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 505,
+ "line": 518,
"character": 19
}
],
"type": {
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
}
},
{
- "id": 457,
+ "id": 472,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3249,7 +3472,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 505,
+ "line": 518,
"character": 26
}
],
@@ -3265,8 +3488,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 456,
- 457
+ 471,
+ 472
]
}
]
@@ -3275,7 +3498,7 @@
{
"type": "reflection",
"declaration": {
- "id": 458,
+ "id": 473,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3284,7 +3507,7 @@
},
"children": [
{
- "id": 459,
+ "id": 474,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3294,7 +3517,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 507,
+ "line": 520,
"character": 19
}
],
@@ -3305,7 +3528,7 @@
"defaultValue": "null"
},
{
- "id": 460,
+ "id": 475,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3315,7 +3538,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 507,
+ "line": 520,
"character": 32
}
],
@@ -3330,8 +3553,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 459,
- 460
+ 474,
+ 475
]
}
]
@@ -3347,13 +3570,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 482,
+ "line": 506,
"character": 33
}
]
},
{
- "id": 404,
+ "id": 427,
"name": "_handleEmailSignIn",
"kind": 2048,
"kindString": "Method",
@@ -3363,7 +3586,7 @@
},
"signatures": [
{
- "id": 405,
+ "id": 428,
"name": "_handleEmailSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -3372,7 +3595,7 @@
},
"parameters": [
{
- "id": 406,
+ "id": 429,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -3385,7 +3608,7 @@
}
},
{
- "id": 407,
+ "id": 430,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -3398,7 +3621,7 @@
}
},
{
- "id": 408,
+ "id": 431,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3408,7 +3631,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 409,
+ "id": 432,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3417,7 +3640,7 @@
},
"children": [
{
- "id": 410,
+ "id": 433,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -3428,7 +3651,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 353,
+ "line": 397,
"character": 16
}
],
@@ -3452,14 +3675,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 410
+ 433
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 352,
+ "line": 396,
"character": 12
}
]
@@ -3477,7 +3700,7 @@
{
"type": "reflection",
"declaration": {
- "id": 411,
+ "id": 434,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3486,7 +3709,7 @@
},
"children": [
{
- "id": 412,
+ "id": 435,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3496,18 +3719,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 367,
+ "line": 411,
"character": 19
}
],
"type": {
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
}
},
{
- "id": 415,
+ "id": 438,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3517,7 +3740,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 367,
+ "line": 411,
"character": 58
}
],
@@ -3528,7 +3751,7 @@
"defaultValue": "null"
},
{
- "id": 414,
+ "id": 437,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3538,19 +3761,19 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 367,
+ "line": 411,
"character": 45
}
],
"type": {
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
"defaultValue": "data"
},
{
- "id": 413,
+ "id": 436,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3560,14 +3783,23 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 367,
+ "line": 411,
"character": 25
}
],
"type": {
- "type": "reference",
- "id": 53,
- "name": "User"
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "null"
+ },
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ }
+ ]
},
"defaultValue": "data.user"
}
@@ -3577,10 +3809,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 412,
- 415,
- 414,
- 413
+ 435,
+ 438,
+ 437,
+ 436
]
}
]
@@ -3589,7 +3821,7 @@
{
"type": "reflection",
"declaration": {
- "id": 416,
+ "id": 439,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3598,7 +3830,7 @@
},
"children": [
{
- "id": 417,
+ "id": 440,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3608,7 +3840,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 369,
+ "line": 413,
"character": 19
}
],
@@ -3619,7 +3851,7 @@
"defaultValue": "null"
},
{
- "id": 420,
+ "id": 443,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3629,7 +3861,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 369,
+ "line": 413,
"character": 59
}
],
@@ -3639,7 +3871,7 @@
}
},
{
- "id": 419,
+ "id": 442,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3649,7 +3881,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 369,
+ "line": 413,
"character": 46
}
],
@@ -3660,7 +3892,7 @@
"defaultValue": "null"
},
{
- "id": 418,
+ "id": 441,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3670,7 +3902,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 369,
+ "line": 413,
"character": 31
}
],
@@ -3686,10 +3918,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 417,
- 420,
- 419,
- 418
+ 440,
+ 443,
+ 442,
+ 441
]
}
]
@@ -3705,13 +3937,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 349,
+ "line": 393,
"character": 34
}
]
},
{
- "id": 421,
+ "id": 444,
"name": "_handleProviderSignIn",
"kind": 2048,
"kindString": "Method",
@@ -3721,7 +3953,7 @@
},
"signatures": [
{
- "id": 422,
+ "id": 445,
"name": "_handleProviderSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -3730,7 +3962,7 @@
},
"parameters": [
{
- "id": 423,
+ "id": 446,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -3739,12 +3971,12 @@
},
"type": {
"type": "reference",
- "id": 97,
+ "id": 102,
"name": "Provider"
}
},
{
- "id": 424,
+ "id": 447,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3754,7 +3986,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 425,
+ "id": 448,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3763,7 +3995,7 @@
},
"children": [
{
- "id": 426,
+ "id": 449,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -3774,7 +4006,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 376,
+ "line": 420,
"character": 16
}
],
@@ -3793,7 +4025,7 @@
}
},
{
- "id": 427,
+ "id": 450,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -3804,7 +4036,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 377,
+ "line": 421,
"character": 12
}
],
@@ -3828,15 +4060,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 426,
- 427
+ 449,
+ 450
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 375,
+ "line": 419,
"character": 12
}
]
@@ -3851,7 +4083,7 @@
{
"type": "reflection",
"declaration": {
- "id": 428,
+ "id": 451,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3860,7 +4092,7 @@
},
"children": [
{
- "id": 431,
+ "id": 454,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3870,7 +4102,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 34
}
],
@@ -3881,7 +4113,7 @@
"defaultValue": "null"
},
{
- "id": 434,
+ "id": 457,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3891,7 +4123,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 74
}
],
@@ -3902,7 +4134,7 @@
"defaultValue": "null"
},
{
- "id": 429,
+ "id": 452,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -3912,18 +4144,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 23
}
],
"type": {
"type": "reference",
- "id": 97,
+ "id": 102,
"name": "Provider"
}
},
{
- "id": 432,
+ "id": 455,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3933,7 +4165,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 49
}
],
@@ -3944,7 +4176,7 @@
"defaultValue": "null"
},
{
- "id": 430,
+ "id": 453,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -3954,7 +4186,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 28
}
],
@@ -3964,7 +4196,7 @@
}
},
{
- "id": 433,
+ "id": 456,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3974,7 +4206,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 390,
+ "line": 434,
"character": 61
}
],
@@ -3990,12 +4222,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 431,
- 434,
- 429,
- 432,
- 430,
- 433
+ 454,
+ 457,
+ 452,
+ 455,
+ 453,
+ 456
]
}
]
@@ -4004,7 +4236,7 @@
{
"type": "reflection",
"declaration": {
- "id": 435,
+ "id": 458,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4013,7 +4245,7 @@
},
"children": [
{
- "id": 436,
+ "id": 459,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4023,7 +4255,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 394,
+ "line": 438,
"character": 19
}
],
@@ -4034,7 +4266,7 @@
"defaultValue": "null"
},
{
- "id": 439,
+ "id": 462,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4044,7 +4276,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 394,
+ "line": 438,
"character": 59
}
],
@@ -4054,7 +4286,7 @@
}
},
{
- "id": 438,
+ "id": 461,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -4064,7 +4296,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 394,
+ "line": 438,
"character": 46
}
],
@@ -4075,7 +4307,7 @@
"defaultValue": "null"
},
{
- "id": 437,
+ "id": 460,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4085,7 +4317,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 394,
+ "line": 438,
"character": 31
}
],
@@ -4101,10 +4333,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 436,
- 439,
- 438,
- 437
+ 459,
+ 462,
+ 461,
+ 460
]
}
]
@@ -4117,13 +4349,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 373,
+ "line": 417,
"character": 31
}
]
},
{
- "id": 461,
+ "id": 476,
"name": "_notifyAllSubscribers",
"kind": 2048,
"kindString": "Method",
@@ -4133,7 +4365,7 @@
},
"signatures": [
{
- "id": 462,
+ "id": 477,
"name": "_notifyAllSubscribers",
"kind": 4096,
"kindString": "Call signature",
@@ -4142,7 +4374,7 @@
},
"parameters": [
{
- "id": 463,
+ "id": 478,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -4151,7 +4383,7 @@
},
"type": {
"type": "reference",
- "id": 98,
+ "id": 103,
"name": "AuthChangeEvent"
}
}
@@ -4165,13 +4397,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 511,
+ "line": 524,
"character": 31
}
]
},
{
- "id": 443,
+ "id": 482,
"name": "_persistSession",
"kind": 2048,
"kindString": "Method",
@@ -4181,7 +4413,7 @@
},
"signatures": [
{
- "id": 444,
+ "id": 483,
"name": "_persistSession",
"kind": 4096,
"kindString": "Call signature",
@@ -4190,7 +4422,7 @@
},
"parameters": [
{
- "id": 445,
+ "id": 484,
"name": "currentSession",
"kind": 32768,
"kindString": "Parameter",
@@ -4199,7 +4431,7 @@
},
"type": {
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
}
}
@@ -4213,13 +4445,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 407,
+ "line": 547,
"character": 25
}
]
},
{
- "id": 450,
+ "id": 465,
"name": "_recoverAndRefresh",
"kind": 2048,
"kindString": "Method",
@@ -4229,7 +4461,7 @@
},
"signatures": [
{
- "id": 451,
+ "id": 466,
"name": "_recoverAndRefresh",
"kind": 4096,
"kindString": "Call signature",
@@ -4237,7 +4469,7 @@
"isExported": true
},
"comment": {
- "shortText": "Recovers the session from LocalStorage and refreshes"
+ "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",
@@ -4263,13 +4495,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 445,
+ "line": 470,
"character": 34
}
]
},
{
- "id": 448,
+ "id": 463,
"name": "_recoverSession",
"kind": 2048,
"kindString": "Method",
@@ -4279,7 +4511,7 @@
},
"signatures": [
{
- "id": 449,
+ "id": 464,
"name": "_recoverSession",
"kind": 4096,
"kindString": "Call signature",
@@ -4307,13 +4539,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 422,
+ "line": 446,
"character": 25
}
]
},
{
- "id": 446,
+ "id": 485,
"name": "_removeSession",
"kind": 2048,
"kindString": "Method",
@@ -4323,7 +4555,7 @@
},
"signatures": [
{
- "id": 447,
+ "id": 486,
"name": "_removeSession",
"kind": 4096,
"kindString": "Call signature",
@@ -4345,13 +4577,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 412,
+ "line": 552,
"character": 30
}
]
},
{
- "id": 440,
+ "id": 479,
"name": "_saveSession",
"kind": 2048,
"kindString": "Method",
@@ -4361,16 +4593,19 @@
},
"signatures": [
{
- "id": 441,
+ "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": 442,
+ "id": 481,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -4379,7 +4614,7 @@
},
"type": {
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
}
}
@@ -4393,13 +4628,66 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 398,
+ "line": 532,
"character": 22
}
]
},
{
- "id": 382,
+ "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": 563,
+ "character": 32
+ }
+ ]
+ },
+ {
+ "id": 405,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -4408,7 +4696,7 @@
},
"signatures": [
{
- "id": 383,
+ "id": 406,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -4420,7 +4708,7 @@
},
"parameters": [
{
- "id": 384,
+ "id": 407,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -4438,7 +4726,7 @@
{
"type": "reflection",
"declaration": {
- "id": 385,
+ "id": 408,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4447,7 +4735,7 @@
},
"children": [
{
- "id": 386,
+ "id": 409,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -4461,7 +4749,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 260,
+ "line": 303,
"character": 16
}
],
@@ -4489,7 +4777,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 386
+ 409
]
}
]
@@ -4505,7 +4793,7 @@
{
"type": "reflection",
"declaration": {
- "id": 387,
+ "id": 410,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4514,7 +4802,7 @@
},
"children": [
{
- "id": 388,
+ "id": 411,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4524,7 +4812,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 261,
+ "line": 304,
"character": 20
}
],
@@ -4533,7 +4821,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -4544,7 +4832,7 @@
}
},
{
- "id": 389,
+ "id": 412,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4554,7 +4842,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 261,
+ "line": 304,
"character": 43
}
],
@@ -4578,15 +4866,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 388,
- 389
+ 411,
+ 412
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 261,
+ "line": 304,
"character": 14
}
]
@@ -4600,13 +4888,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 259,
+ "line": 302,
"character": 25
}
]
},
{
- "id": 394,
+ "id": 417,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -4615,7 +4903,7 @@
},
"signatures": [
{
- "id": 395,
+ "id": 418,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -4628,7 +4916,7 @@
},
"parameters": [
{
- "id": 396,
+ "id": 419,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -4638,7 +4926,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 397,
+ "id": 420,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4647,7 +4935,7 @@
},
"signatures": [
{
- "id": 398,
+ "id": 421,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -4656,7 +4944,7 @@
},
"parameters": [
{
- "id": 399,
+ "id": 422,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -4665,12 +4953,12 @@
},
"type": {
"type": "reference",
- "id": 98,
+ "id": 103,
"name": "AuthChangeEvent"
}
},
{
- "id": 400,
+ "id": 423,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -4682,7 +4970,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -4702,7 +4990,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 330,
+ "line": 374,
"character": 13
}
]
@@ -4713,7 +5001,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 401,
+ "id": 424,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4722,7 +5010,7 @@
},
"children": [
{
- "id": 402,
+ "id": 425,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4732,7 +5020,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 331,
+ "line": 375,
"character": 11
}
],
@@ -4741,7 +5029,7 @@
"types": [
{
"type": "reference",
- "id": 77,
+ "id": 82,
"name": "Subscription"
},
{
@@ -4752,7 +5040,7 @@
}
},
{
- "id": 403,
+ "id": 426,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4762,7 +5050,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 331,
+ "line": 375,
"character": 39
}
],
@@ -4786,15 +5074,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 402,
- 403
+ 425,
+ 426
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 331,
+ "line": 375,
"character": 4
}
]
@@ -4805,13 +5093,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 329,
+ "line": 373,
"character": 19
}
]
},
{
- "id": 369,
+ "id": 383,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -4820,7 +5108,7 @@
},
"signatures": [
{
- "id": 370,
+ "id": 384,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -4836,7 +5124,7 @@
{
"type": "reflection",
"declaration": {
- "id": 371,
+ "id": 385,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4845,7 +5133,7 @@
},
"children": [
{
- "id": 372,
+ "id": 386,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4855,7 +5143,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 209,
+ "line": 211,
"character": 8
}
],
@@ -4864,7 +5152,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -4875,7 +5163,7 @@
}
},
{
- "id": 374,
+ "id": 388,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4885,7 +5173,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 211,
+ "line": 213,
"character": 9
}
],
@@ -4904,7 +5192,7 @@
}
},
{
- "id": 373,
+ "id": 387,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4914,7 +5202,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 210,
+ "line": 212,
"character": 8
}
],
@@ -4923,7 +5211,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -4939,16 +5227,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 372,
- 374,
- 373
+ 386,
+ 388,
+ 387
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 208,
+ "line": 210,
"character": 34
}
]
@@ -4962,13 +5250,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 208,
+ "line": 210,
"character": 22
}
]
},
{
- "id": 367,
+ "id": 381,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -4977,7 +5265,7 @@
},
"signatures": [
{
- "id": 368,
+ "id": 382,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -4992,7 +5280,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -5006,13 +5294,210 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 201,
+ "line": 203,
"character": 9
}
]
},
{
- "id": 347,
+ "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": 287,
+ "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",
@@ -5021,7 +5506,7 @@
},
"signatures": [
{
- "id": 348,
+ "id": 362,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -5033,7 +5518,7 @@
},
"parameters": [
{
- "id": 349,
+ "id": 363,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5044,7 +5529,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 350,
+ "id": 364,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5053,7 +5538,7 @@
},
"children": [
{
- "id": 351,
+ "id": 365,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -5066,7 +5551,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 150,
+ "line": 152,
"character": 11
}
],
@@ -5085,7 +5570,7 @@
}
},
{
- "id": 352,
+ "id": 366,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -5098,7 +5583,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 150,
+ "line": 152,
"character": 21
}
],
@@ -5117,7 +5602,7 @@
}
},
{
- "id": 353,
+ "id": 367,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -5130,7 +5615,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 150,
+ "line": 152,
"character": 31
}
],
@@ -5174,16 +5659,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 351,
- 352,
- 353
+ 365,
+ 366,
+ 367
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 149,
+ "line": 151,
"character": 15
}
]
@@ -5191,7 +5676,7 @@
}
},
{
- "id": 354,
+ "id": 368,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -5201,7 +5686,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 355,
+ "id": 369,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5210,7 +5695,7 @@
},
"children": [
{
- "id": 356,
+ "id": 370,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -5221,7 +5706,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 152,
+ "line": 154,
"character": 16
}
],
@@ -5240,7 +5725,7 @@
}
},
{
- "id": 357,
+ "id": 371,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -5251,7 +5736,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 153,
+ "line": 155,
"character": 12
}
],
@@ -5275,15 +5760,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 356,
- 357
+ 370,
+ 371
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 151,
+ "line": 153,
"character": 12
}
]
@@ -5298,7 +5783,7 @@
{
"type": "reflection",
"declaration": {
- "id": 358,
+ "id": 372,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5307,7 +5792,7 @@
},
"children": [
{
- "id": 364,
+ "id": 378,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -5317,7 +5802,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 161,
+ "line": 163,
"character": 8
}
],
@@ -5326,7 +5811,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -5337,7 +5822,7 @@
}
},
{
- "id": 363,
+ "id": 377,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -5347,7 +5832,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 160,
+ "line": 162,
"character": 9
}
],
@@ -5366,7 +5851,7 @@
}
},
{
- "id": 361,
+ "id": 375,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -5377,18 +5862,18 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 158,
+ "line": 160,
"character": 12
}
],
"type": {
"type": "reference",
- "id": 97,
+ "id": 102,
"name": "Provider"
}
},
{
- "id": 359,
+ "id": 373,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -5398,7 +5883,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 156,
+ "line": 158,
"character": 11
}
],
@@ -5407,7 +5892,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -5418,7 +5903,7 @@
}
},
{
- "id": 362,
+ "id": 376,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -5429,7 +5914,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 159,
+ "line": 161,
"character": 7
}
],
@@ -5448,7 +5933,7 @@
}
},
{
- "id": 360,
+ "id": 374,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -5458,7 +5943,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 157,
+ "line": 159,
"character": 8
}
],
@@ -5467,7 +5952,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -5483,19 +5968,19 @@
"title": "Variables",
"kind": 32,
"children": [
- 364,
- 363,
- 361,
- 359,
- 362,
- 360
+ 378,
+ 377,
+ 375,
+ 373,
+ 376,
+ 374
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 155,
+ "line": 157,
"character": 13
}
]
@@ -5509,13 +5994,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 149,
+ "line": 151,
"character": 14
}
]
},
{
- "id": 390,
+ "id": 413,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -5524,7 +6009,7 @@
},
"signatures": [
{
- "id": 391,
+ "id": 414,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -5532,7 +6017,7 @@
"isExported": true
},
"comment": {
- "shortText": "Inside a browser context, `signOut()` will extract the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.",
+ "shortText": "Inside a browser context, `signOut()` will remove 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": {
@@ -5541,7 +6026,7 @@
{
"type": "reflection",
"declaration": {
- "id": 392,
+ "id": 415,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5550,7 +6035,7 @@
},
"children": [
{
- "id": 393,
+ "id": 416,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -5560,7 +6045,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 315,
+ "line": 358,
"character": 34
}
],
@@ -5584,14 +6069,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 393
+ 416
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 315,
+ "line": 358,
"character": 27
}
]
@@ -5605,13 +6090,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 315,
+ "line": 358,
"character": 15
}
]
},
{
- "id": 333,
+ "id": 347,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -5620,7 +6105,7 @@
},
"signatures": [
{
- "id": 334,
+ "id": 348,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -5632,7 +6117,7 @@
},
"parameters": [
{
- "id": 335,
+ "id": 349,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5643,7 +6128,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 336,
+ "id": 350,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5652,7 +6137,7 @@
},
"children": [
{
- "id": 337,
+ "id": 351,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -5665,7 +6150,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 95,
+ "line": 97,
"character": 11
}
],
@@ -5684,7 +6169,7 @@
}
},
{
- "id": 338,
+ "id": 352,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -5697,7 +6182,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 95,
+ "line": 97,
"character": 21
}
],
@@ -5721,15 +6206,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 337,
- 338
+ 351,
+ 352
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 94,
+ "line": 96,
"character": 15
}
]
@@ -5737,7 +6222,7 @@
}
},
{
- "id": 339,
+ "id": 353,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -5747,7 +6232,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 340,
+ "id": 354,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5756,7 +6241,7 @@
},
"children": [
{
- "id": 341,
+ "id": 355,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -5767,7 +6252,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 97,
+ "line": 99,
"character": 16
}
],
@@ -5791,14 +6276,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 341
+ 355
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 96,
+ "line": 98,
"character": 12
}
]
@@ -5813,7 +6298,7 @@
{
"type": "reflection",
"declaration": {
- "id": 342,
+ "id": 356,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5822,7 +6307,7 @@
},
"children": [
{
- "id": 346,
+ "id": 360,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -5832,7 +6317,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 103,
+ "line": 105,
"character": 8
}
],
@@ -5841,12 +6326,12 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -5857,7 +6342,7 @@
}
},
{
- "id": 345,
+ "id": 359,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -5867,7 +6352,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 102,
+ "line": 104,
"character": 9
}
],
@@ -5886,7 +6371,7 @@
}
},
{
- "id": 344,
+ "id": 358,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -5896,7 +6381,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 101,
+ "line": 103,
"character": 11
}
],
@@ -5905,7 +6390,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -5916,7 +6401,7 @@
}
},
{
- "id": 343,
+ "id": 357,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -5926,7 +6411,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 100,
+ "line": 102,
"character": 8
}
],
@@ -5935,7 +6420,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -5951,17 +6436,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 346,
- 345,
- 344,
- 343
+ 360,
+ 359,
+ 358,
+ 357
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 99,
+ "line": 101,
"character": 13
}
]
@@ -5975,13 +6460,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 94,
+ "line": 96,
"character": 14
}
]
},
{
- "id": 375,
+ "id": 389,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -5990,7 +6475,7 @@
},
"signatures": [
{
- "id": 376,
+ "id": 390,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -6002,7 +6487,7 @@
},
"parameters": [
{
- "id": 377,
+ "id": 391,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -6011,7 +6496,7 @@
},
"type": {
"type": "reference",
- "id": 72,
+ "id": 77,
"name": "UserAttributes"
}
}
@@ -6022,7 +6507,7 @@
{
"type": "reflection",
"declaration": {
- "id": 378,
+ "id": 392,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6031,7 +6516,7 @@
},
"children": [
{
- "id": 379,
+ "id": 393,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6050,7 +6535,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -6061,7 +6546,7 @@
}
},
{
- "id": 381,
+ "id": 395,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6090,7 +6575,7 @@
}
},
{
- "id": 380,
+ "id": 394,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -6109,7 +6594,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -6125,9 +6610,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 379,
- 381,
- 380
+ 393,
+ 395,
+ 394
]
}
],
@@ -6154,7 +6639,7 @@
]
},
{
- "id": 365,
+ "id": 379,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -6163,7 +6648,7 @@
},
"signatures": [
{
- "id": 366,
+ "id": 380,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -6179,7 +6664,7 @@
"types": [
{
"type": "reference",
- "id": 53,
+ "id": 58,
"name": "User"
},
{
@@ -6193,7 +6678,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 194,
+ "line": 196,
"character": 6
}
]
@@ -6204,44 +6689,48 @@
"title": "Constructors",
"kind": 512,
"children": [
- 319
+ 333
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 312,
- 315,
- 314,
- 313,
- 317,
- 316,
- 318
+ 325,
+ 328,
+ 327,
+ 326,
+ 330,
+ 329,
+ 332,
+ 331
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 452,
- 404,
- 421,
- 461,
- 443,
- 450,
- 448,
- 446,
- 440,
- 382,
- 394,
- 369,
- 367,
+ 467,
+ 427,
+ 444,
+ 476,
+ 482,
+ 465,
+ 463,
+ 485,
+ 479,
+ 487,
+ 405,
+ 417,
+ 383,
+ 381,
+ 402,
+ 396,
+ 361,
+ 413,
347,
- 390,
- 333,
- 375,
- 365
+ 389,
+ 379
]
}
],
@@ -6254,7 +6743,7 @@
]
},
{
- "id": 464,
+ "id": 490,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -6263,7 +6752,7 @@
},
"children": [
{
- "id": 466,
+ "id": 492,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -6282,7 +6771,7 @@
"defaultValue": "true"
},
{
- "id": 469,
+ "id": 495,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -6301,7 +6790,7 @@
"defaultValue": "true"
},
{
- "id": 470,
+ "id": 496,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -6316,7 +6805,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 471,
+ "id": 497,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6326,7 +6815,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 468,
+ "id": 494,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -6345,7 +6834,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 467,
+ "id": 493,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -6364,7 +6853,7 @@
"defaultValue": "true"
},
{
- "id": 465,
+ "id": 491,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -6388,12 +6877,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 466,
- 469,
- 470,
- 468,
- 467,
- 465
+ 492,
+ 495,
+ 496,
+ 494,
+ 493,
+ 491
]
}
],
@@ -6415,14 +6904,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 311
+ 324
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 464
+ 490
]
}
],
@@ -6435,7 +6924,7 @@
]
},
{
- "id": 472,
+ "id": 498,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -6445,84 +6934,84 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",
"children": [
{
- "id": 474,
+ "id": 500,
"name": "AuthChangeEvent",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 98
+ "target": 103
},
{
- "id": 479,
+ "id": 505,
"name": "CookieOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 87
+ "target": 92
},
{
- "id": 473,
+ "id": 499,
"name": "Provider",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 97
+ "target": 102
},
{
- "id": 475,
+ "id": 501,
"name": "Session",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 45
+ "target": 50
},
{
- "id": 478,
+ "id": 504,
"name": "Subscription",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 77
+ "target": 82
},
{
- "id": 476,
+ "id": 502,
"name": "User",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 53
+ "target": 58
},
{
- "id": 477,
+ "id": 503,
"name": "UserAttributes",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 72
+ "target": 77
},
{
- "id": 480,
+ "id": 506,
"name": "UserCredentials",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 93
+ "target": 98
}
],
"groups": [
@@ -6530,14 +7019,14 @@
"title": "References",
"kind": 16777216,
"children": [
- 474,
- 479,
- 473,
- 475,
- 478,
- 476,
- 477,
- 480
+ 500,
+ 505,
+ 499,
+ 501,
+ 504,
+ 502,
+ 503,
+ 506
]
}
],
@@ -6550,7 +7039,7 @@
]
},
{
- "id": 99,
+ "id": 104,
"name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
@@ -6560,7 +7049,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",
"children": [
{
- "id": 101,
+ "id": 106,
"name": "AUDIENCE",
"kind": 32,
"kindString": "Variable",
@@ -6582,7 +7071,7 @@
"defaultValue": "\"\""
},
{
- "id": 102,
+ "id": 107,
"name": "DEFAULT_HEADERS",
"kind": 32,
"kindString": "Variable",
@@ -6600,7 +7089,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 103,
+ "id": 108,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6611,7 +7100,7 @@
}
},
{
- "id": 104,
+ "id": 109,
"name": "EXPIRY_MARGIN",
"kind": 32,
"kindString": "Variable",
@@ -6633,7 +7122,7 @@
"defaultValue": "60 * 1000"
},
{
- "id": 100,
+ "id": 105,
"name": "GOTRUE_URL",
"kind": 32,
"kindString": "Variable",
@@ -6655,7 +7144,7 @@
"defaultValue": "\"http://localhost:9999\""
},
{
- "id": 105,
+ "id": 110,
"name": "STORAGE_KEY",
"kind": 32,
"kindString": "Variable",
@@ -6677,7 +7166,7 @@
"defaultValue": "\"supabase.auth.token\""
},
{
- "id": 106,
+ "id": 111,
"name": "COOKIE_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -6687,7 +7176,7 @@
},
"children": [
{
- "id": 109,
+ "id": 114,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -6708,7 +7197,7 @@
"defaultValue": "\"\""
},
{
- "id": 108,
+ "id": 113,
"name": "lifetime",
"kind": 32,
"kindString": "Variable",
@@ -6729,7 +7218,7 @@
"defaultValue": "60 * 60 * 8"
},
{
- "id": 107,
+ "id": 112,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -6750,7 +7239,7 @@
"defaultValue": "\"sb:token\""
},
{
- "id": 110,
+ "id": 115,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -6771,7 +7260,7 @@
"defaultValue": "\"/\""
},
{
- "id": 111,
+ "id": 116,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -6797,11 +7286,11 @@
"title": "Variables",
"kind": 32,
"children": [
- 109,
- 108,
- 107,
- 110,
- 111
+ 114,
+ 113,
+ 112,
+ 115,
+ 116
]
}
],
@@ -6823,18 +7312,18 @@
"title": "Variables",
"kind": 32,
"children": [
- 101,
- 102,
- 104,
- 100,
- 105
+ 106,
+ 107,
+ 109,
+ 105,
+ 110
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 106
+ 111
]
}
],
@@ -6847,7 +7336,7 @@
]
},
{
- "id": 112,
+ "id": 117,
"name": "\"lib/cookies\"",
"kind": 1,
"kindString": "Module",
@@ -6857,7 +7346,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/cookies.ts",
"children": [
{
- "id": 113,
+ "id": 118,
"name": "Cookie",
"kind": 4194304,
"kindString": "Type alias",
@@ -6872,14 +7361,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 114,
+ "id": 119,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 118,
+ "id": 123,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -6908,7 +7397,7 @@
}
},
{
- "id": 117,
+ "id": 122,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -6926,7 +7415,7 @@
}
},
{
- "id": 115,
+ "id": 120,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -6944,7 +7433,7 @@
}
},
{
- "id": 119,
+ "id": 124,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -6973,7 +7462,7 @@
}
},
{
- "id": 120,
+ "id": 125,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -7002,7 +7491,7 @@
}
},
{
- "id": 116,
+ "id": 121,
"name": "value",
"kind": 32,
"kindString": "Variable",
@@ -7025,12 +7514,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 118,
- 117,
- 115,
- 119,
+ 123,
+ 122,
120,
- 116
+ 124,
+ 125,
+ 121
]
}
],
@@ -7045,7 +7534,7 @@
}
},
{
- "id": 151,
+ "id": 156,
"name": "deleteCookie",
"kind": 64,
"kindString": "Function",
@@ -7054,7 +7543,7 @@
},
"signatures": [
{
- "id": 152,
+ "id": 157,
"name": "deleteCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -7063,7 +7552,7 @@
},
"parameters": [
{
- "id": 153,
+ "id": 158,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -7076,7 +7565,7 @@
}
},
{
- "id": 154,
+ "id": 159,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -7089,7 +7578,7 @@
}
},
{
- "id": 155,
+ "id": 160,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -7117,14 +7606,14 @@
]
},
{
- "id": 134,
+ "id": 139,
"name": "isSecureEnvironment",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 135,
+ "id": 140,
"name": "isSecureEnvironment",
"kind": 4096,
"kindString": "Call signature",
@@ -7134,7 +7623,7 @@
},
"parameters": [
{
- "id": 136,
+ "id": 141,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -7160,14 +7649,14 @@
]
},
{
- "id": 121,
+ "id": 126,
"name": "serialize",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 122,
+ "id": 127,
"name": "serialize",
"kind": 4096,
"kindString": "Call signature",
@@ -7177,7 +7666,7 @@
},
"parameters": [
{
- "id": 123,
+ "id": 128,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -7188,7 +7677,7 @@
}
},
{
- "id": 124,
+ "id": 129,
"name": "val",
"kind": 32768,
"kindString": "Parameter",
@@ -7199,7 +7688,7 @@
}
},
{
- "id": 125,
+ "id": 130,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -7207,14 +7696,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 126,
+ "id": 131,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 128,
+ "id": 133,
"name": "domain",
"kind": 32,
"kindString": "Variable",
@@ -7232,7 +7721,7 @@
}
},
{
- "id": 130,
+ "id": 135,
"name": "expires",
"kind": 32,
"kindString": "Variable",
@@ -7250,7 +7739,7 @@
}
},
{
- "id": 131,
+ "id": 136,
"name": "httpOnly",
"kind": 32,
"kindString": "Variable",
@@ -7268,7 +7757,7 @@
}
},
{
- "id": 127,
+ "id": 132,
"name": "maxAge",
"kind": 32,
"kindString": "Variable",
@@ -7286,7 +7775,7 @@
}
},
{
- "id": 129,
+ "id": 134,
"name": "path",
"kind": 32,
"kindString": "Variable",
@@ -7304,7 +7793,7 @@
}
},
{
- "id": 133,
+ "id": 138,
"name": "sameSite",
"kind": 32,
"kindString": "Variable",
@@ -7322,7 +7811,7 @@
}
},
{
- "id": 132,
+ "id": 137,
"name": "secure",
"kind": 32,
"kindString": "Variable",
@@ -7345,13 +7834,13 @@
"title": "Variables",
"kind": 32,
"children": [
- 128,
- 130,
- 131,
- 127,
- 129,
133,
- 132
+ 135,
+ 136,
+ 132,
+ 134,
+ 138,
+ 137
]
}
],
@@ -7381,14 +7870,14 @@
]
},
{
- "id": 137,
+ "id": 142,
"name": "serializeCookie",
"kind": 64,
"kindString": "Function",
"flags": {},
"signatures": [
{
- "id": 138,
+ "id": 143,
"name": "serializeCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -7398,19 +7887,19 @@
},
"parameters": [
{
- "id": 139,
+ "id": 144,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
- "id": 113,
+ "id": 118,
"name": "Cookie"
}
},
{
- "id": 140,
+ "id": 145,
"name": "secure",
"kind": 32768,
"kindString": "Parameter",
@@ -7436,7 +7925,7 @@
]
},
{
- "id": 146,
+ "id": 151,
"name": "setCookie",
"kind": 64,
"kindString": "Function",
@@ -7445,7 +7934,7 @@
},
"signatures": [
{
- "id": 147,
+ "id": 152,
"name": "setCookie",
"kind": 4096,
"kindString": "Call signature",
@@ -7457,7 +7946,7 @@
},
"parameters": [
{
- "id": 148,
+ "id": 153,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -7470,7 +7959,7 @@
}
},
{
- "id": 149,
+ "id": 154,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -7483,7 +7972,7 @@
}
},
{
- "id": 150,
+ "id": 155,
"name": "cookie",
"kind": 32768,
"kindString": "Parameter",
@@ -7492,7 +7981,7 @@
},
"type": {
"type": "reference",
- "id": 113,
+ "id": 118,
"name": "Cookie"
}
}
@@ -7512,7 +8001,7 @@
]
},
{
- "id": 141,
+ "id": 146,
"name": "setCookies",
"kind": 64,
"kindString": "Function",
@@ -7521,7 +8010,7 @@
},
"signatures": [
{
- "id": 142,
+ "id": 147,
"name": "setCookies",
"kind": 4096,
"kindString": "Call signature",
@@ -7533,7 +8022,7 @@
},
"parameters": [
{
- "id": 143,
+ "id": 148,
"name": "req",
"kind": 32768,
"kindString": "Parameter",
@@ -7546,7 +8035,7 @@
}
},
{
- "id": 144,
+ "id": 149,
"name": "res",
"kind": 32768,
"kindString": "Parameter",
@@ -7559,7 +8048,7 @@
}
},
{
- "id": 145,
+ "id": 150,
"name": "cookies",
"kind": 32768,
"kindString": "Parameter",
@@ -7571,7 +8060,7 @@
"typeArguments": [
{
"type": "reference",
- "id": 113,
+ "id": 118,
"name": "Cookie"
}
],
@@ -7599,19 +8088,19 @@
"title": "Type aliases",
"kind": 4194304,
"children": [
- 113
+ 118
]
},
{
"title": "Functions",
"kind": 64,
"children": [
+ 156,
+ 139,
+ 126,
+ 142,
151,
- 134,
- 121,
- 137,
- 146,
- 141
+ 146
]
}
],
@@ -7792,6 +8281,14 @@
{
"type": "stringLiteral",
"value": "PUT"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "PATCH"
+ },
+ {
+ "type": "stringLiteral",
+ "value": "DELETE"
}
]
}
@@ -8322,6 +8819,86 @@
"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": [
@@ -8349,7 +8926,8 @@
30,
12,
34,
- 39
+ 39,
+ 44
]
}
],
@@ -8362,7 +8940,7 @@
]
},
{
- "id": 156,
+ "id": 161,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -8372,7 +8950,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",
"children": [
{
- "id": 157,
+ "id": 162,
"name": "LocalStorage",
"kind": 128,
"kindString": "Class",
@@ -8381,7 +8959,7 @@
},
"indexSignature": [
{
- "id": 159,
+ "id": 164,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -8390,7 +8968,7 @@
},
"parameters": [
{
- "id": 160,
+ "id": 165,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -8411,7 +8989,7 @@
],
"children": [
{
- "id": 162,
+ "id": 167,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -8420,7 +8998,7 @@
},
"signatures": [
{
- "id": 163,
+ "id": 168,
"name": "new LocalStorage",
"kind": 16384,
"kindString": "Constructor signature",
@@ -8429,7 +9007,7 @@
},
"parameters": [
{
- "id": 164,
+ "id": 169,
"name": "localStorage",
"kind": 32768,
"kindString": "Parameter",
@@ -8444,7 +9022,7 @@
],
"type": {
"type": "reference",
- "id": 157,
+ "id": 162,
"name": "LocalStorage"
}
}
@@ -8458,7 +9036,7 @@
]
},
{
- "id": 161,
+ "id": 166,
"name": "length",
"kind": 1024,
"kindString": "Property",
@@ -8478,7 +9056,7 @@
}
},
{
- "id": 158,
+ "id": 163,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -8498,7 +9076,7 @@
}
},
{
- "id": 165,
+ "id": 170,
"name": "clear",
"kind": 2048,
"kindString": "Method",
@@ -8507,7 +9085,7 @@
},
"signatures": [
{
- "id": 166,
+ "id": 171,
"name": "clear",
"kind": 4096,
"kindString": "Call signature",
@@ -8529,7 +9107,7 @@
]
},
{
- "id": 174,
+ "id": 179,
"name": "getItem",
"kind": 2048,
"kindString": "Method",
@@ -8538,7 +9116,7 @@
},
"signatures": [
{
- "id": 175,
+ "id": 180,
"name": "getItem",
"kind": 4096,
"kindString": "Call signature",
@@ -8547,7 +9125,7 @@
},
"parameters": [
{
- "id": 176,
+ "id": 181,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -8584,7 +9162,7 @@
]
},
{
- "id": 167,
+ "id": 172,
"name": "key",
"kind": 2048,
"kindString": "Method",
@@ -8593,7 +9171,7 @@
},
"signatures": [
{
- "id": 168,
+ "id": 173,
"name": "key",
"kind": 4096,
"kindString": "Call signature",
@@ -8602,7 +9180,7 @@
},
"parameters": [
{
- "id": 169,
+ "id": 174,
"name": "index",
"kind": 32768,
"kindString": "Parameter",
@@ -8639,7 +9217,7 @@
]
},
{
- "id": 177,
+ "id": 182,
"name": "removeItem",
"kind": 2048,
"kindString": "Method",
@@ -8648,7 +9226,7 @@
},
"signatures": [
{
- "id": 178,
+ "id": 183,
"name": "removeItem",
"kind": 4096,
"kindString": "Call signature",
@@ -8657,7 +9235,7 @@
},
"parameters": [
{
- "id": 179,
+ "id": 184,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -8685,7 +9263,7 @@
]
},
{
- "id": 170,
+ "id": 175,
"name": "setItem",
"kind": 2048,
"kindString": "Method",
@@ -8694,7 +9272,7 @@
},
"signatures": [
{
- "id": 171,
+ "id": 176,
"name": "setItem",
"kind": 4096,
"kindString": "Call signature",
@@ -8703,7 +9281,7 @@
},
"parameters": [
{
- "id": 172,
+ "id": 177,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -8716,7 +9294,7 @@
}
},
{
- "id": 173,
+ "id": 178,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -8749,26 +9327,26 @@
"title": "Constructors",
"kind": 512,
"children": [
- 162
+ 167
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 161,
- 158
+ 166,
+ 163
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 165,
- 174,
- 167,
- 177,
- 170
+ 170,
+ 179,
+ 172,
+ 182,
+ 175
]
}
],
@@ -8787,7 +9365,7 @@
]
},
{
- "id": 180,
+ "id": 185,
"name": "expiresAt",
"kind": 64,
"kindString": "Function",
@@ -8796,7 +9374,7 @@
},
"signatures": [
{
- "id": 181,
+ "id": 186,
"name": "expiresAt",
"kind": 4096,
"kindString": "Call signature",
@@ -8805,7 +9383,7 @@
},
"parameters": [
{
- "id": 182,
+ "id": 187,
"name": "expiresIn",
"kind": 32768,
"kindString": "Parameter",
@@ -8833,7 +9411,7 @@
]
},
{
- "id": 187,
+ "id": 192,
"name": "getParameterByName",
"kind": 64,
"kindString": "Function",
@@ -8842,7 +9420,7 @@
},
"signatures": [
{
- "id": 188,
+ "id": 193,
"name": "getParameterByName",
"kind": 4096,
"kindString": "Call signature",
@@ -8851,7 +9429,7 @@
},
"parameters": [
{
- "id": 189,
+ "id": 194,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -8864,7 +9442,7 @@
}
},
{
- "id": 190,
+ "id": 195,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -8911,7 +9489,7 @@
]
},
{
- "id": 185,
+ "id": 190,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -8921,7 +9499,7 @@
},
"signatures": [
{
- "id": 186,
+ "id": 191,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -8943,7 +9521,7 @@
]
},
{
- "id": 183,
+ "id": 188,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -8952,7 +9530,7 @@
},
"signatures": [
{
- "id": 184,
+ "id": 189,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -8979,17 +9557,17 @@
"title": "Classes",
"kind": 128,
"children": [
- 157
+ 162
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 180,
- 187,
185,
- 183
+ 192,
+ 190,
+ 188
]
}
],
@@ -9002,7 +9580,7 @@
]
},
{
- "id": 307,
+ "id": 320,
"name": "\"lib/polyfills\"",
"kind": 1,
"kindString": "Module",
@@ -9012,7 +9590,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/polyfills.ts",
"children": [
{
- "id": 308,
+ "id": 321,
"name": "polyfillGlobalThis",
"kind": 64,
"kindString": "Function",
@@ -9021,7 +9599,7 @@
},
"signatures": [
{
- "id": 309,
+ "id": 322,
"name": "polyfillGlobalThis",
"kind": 4096,
"kindString": "Call signature",
@@ -9051,7 +9629,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 308
+ 321
]
}
],
@@ -9064,7 +9642,7 @@
]
},
{
- "id": 44,
+ "id": 49,
"name": "\"lib/types\"",
"kind": 1,
"kindString": "Module",
@@ -9074,7 +9652,7 @@
"originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
"children": [
{
- "id": 87,
+ "id": 92,
"name": "CookieOptions",
"kind": 256,
"kindString": "Interface",
@@ -9083,7 +9661,7 @@
},
"children": [
{
- "id": 90,
+ "id": 95,
"name": "domain",
"kind": 1024,
"kindString": "Property",
@@ -9094,7 +9672,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 80,
+ "line": 85,
"character": 8
}
],
@@ -9113,7 +9691,7 @@
}
},
{
- "id": 89,
+ "id": 94,
"name": "lifetime",
"kind": 1024,
"kindString": "Property",
@@ -9124,7 +9702,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 78,
+ "line": 83,
"character": 10
}
],
@@ -9143,7 +9721,7 @@
}
},
{
- "id": 88,
+ "id": 93,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -9154,7 +9732,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 76,
+ "line": 81,
"character": 6
}
],
@@ -9173,7 +9751,7 @@
}
},
{
- "id": 91,
+ "id": 96,
"name": "path",
"kind": 1024,
"kindString": "Property",
@@ -9184,7 +9762,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 81,
+ "line": 86,
"character": 6
}
],
@@ -9203,7 +9781,7 @@
}
},
{
- "id": 92,
+ "id": 97,
"name": "sameSite",
"kind": 1024,
"kindString": "Property",
@@ -9214,7 +9792,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 83,
+ "line": 88,
"character": 10
}
],
@@ -9238,24 +9816,24 @@
"title": "Properties",
"kind": 1024,
"children": [
- 90,
- 89,
- 88,
- 91,
- 92
+ 95,
+ 94,
+ 93,
+ 96,
+ 97
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 74,
+ "line": 79,
"character": 30
}
]
},
{
- "id": 45,
+ "id": 50,
"name": "Session",
"kind": 256,
"kindString": "Interface",
@@ -9264,7 +9842,7 @@
},
"children": [
{
- "id": 47,
+ "id": 52,
"name": "access_token",
"kind": 1024,
"kindString": "Property",
@@ -9274,7 +9852,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 7,
+ "line": 12,
"character": 14
}
],
@@ -9284,7 +9862,7 @@
}
},
{
- "id": 49,
+ "id": 54,
"name": "expires_at",
"kind": 1024,
"kindString": "Property",
@@ -9298,7 +9876,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 15,
+ "line": 20,
"character": 12
}
],
@@ -9317,7 +9895,7 @@
}
},
{
- "id": 48,
+ "id": 53,
"name": "expires_in",
"kind": 1024,
"kindString": "Property",
@@ -9331,7 +9909,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 11,
+ "line": 16,
"character": 12
}
],
@@ -9350,7 +9928,7 @@
}
},
{
- "id": 46,
+ "id": 51,
"name": "provider_token",
"kind": 1024,
"kindString": "Property",
@@ -9361,7 +9939,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 6,
+ "line": 11,
"character": 16
}
],
@@ -9380,27 +9958,37 @@
}
},
{
- "id": 50,
+ "id": 55,
"name": "refresh_token",
"kind": 1024,
"kindString": "Property",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isOptional": true
},
"sources": [
{
"fileName": "lib/types.ts",
- "line": 16,
+ "line": 21,
"character": 15
}
],
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
}
},
{
- "id": 51,
+ "id": 56,
"name": "token_type",
"kind": 1024,
"kindString": "Property",
@@ -9410,7 +9998,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 17,
+ "line": 22,
"character": 12
}
],
@@ -9420,7 +10008,7 @@
}
},
{
- "id": 52,
+ "id": 57,
"name": "user",
"kind": 1024,
"kindString": "Property",
@@ -9430,14 +10018,23 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 18,
+ "line": 23,
"character": 6
}
],
"type": {
- "type": "reference",
- "id": 53,
- "name": "User"
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 58,
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
}
}
],
@@ -9446,26 +10043,26 @@
"title": "Properties",
"kind": 1024,
"children": [
- 47,
- 49,
- 48,
- 46,
- 50,
+ 52,
+ 54,
+ 53,
51,
- 52
+ 55,
+ 56,
+ 57
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 5,
+ "line": 10,
"character": 24
}
]
},
{
- "id": 77,
+ "id": 82,
"name": "Subscription",
"kind": 256,
"kindString": "Interface",
@@ -9474,7 +10071,7 @@
},
"children": [
{
- "id": 79,
+ "id": 84,
"name": "callback",
"kind": 1024,
"kindString": "Property",
@@ -9487,14 +10084,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 67,
+ "line": 72,
"character": 10
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 80,
+ "id": 85,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9503,7 +10100,7 @@
},
"signatures": [
{
- "id": 81,
+ "id": 86,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -9512,7 +10109,7 @@
},
"parameters": [
{
- "id": 82,
+ "id": 87,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -9521,12 +10118,12 @@
},
"type": {
"type": "reference",
- "id": 98,
+ "id": 103,
"name": "AuthChangeEvent"
}
},
{
- "id": 83,
+ "id": 88,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -9538,7 +10135,7 @@
"types": [
{
"type": "reference",
- "id": 45,
+ "id": 50,
"name": "Session"
},
{
@@ -9558,7 +10155,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 67,
+ "line": 72,
"character": 11
}
]
@@ -9566,7 +10163,7 @@
}
},
{
- "id": 78,
+ "id": 83,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -9579,7 +10176,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 63,
+ "line": 68,
"character": 4
}
],
@@ -9589,7 +10186,7 @@
}
},
{
- "id": 84,
+ "id": 89,
"name": "unsubscribe",
"kind": 1024,
"kindString": "Property",
@@ -9602,14 +10199,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 71,
+ "line": 76,
"character": 13
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 85,
+ "id": 90,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9618,7 +10215,7 @@
},
"signatures": [
{
- "id": 86,
+ "id": 91,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -9634,7 +10231,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 71,
+ "line": 76,
"character": 14
}
]
@@ -9647,22 +10244,22 @@
"title": "Properties",
"kind": 1024,
"children": [
- 79,
- 78,
- 84
+ 84,
+ 83,
+ 89
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 59,
+ "line": 64,
"character": 29
}
]
},
{
- "id": 53,
+ "id": 58,
"name": "User",
"kind": 256,
"kindString": "Interface",
@@ -9671,7 +10268,7 @@
},
"children": [
{
- "id": 55,
+ "id": 60,
"name": "app_metadata",
"kind": 1024,
"kindString": "Property",
@@ -9681,14 +10278,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 22,
+ "line": 27,
"character": 14
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 56,
+ "id": 61,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9697,7 +10294,7 @@
},
"indexSignature": [
{
- "id": 58,
+ "id": 63,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -9706,7 +10303,7 @@
},
"parameters": [
{
- "id": 59,
+ "id": 64,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -9727,7 +10324,7 @@
],
"children": [
{
- "id": 57,
+ "id": 62,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -9738,7 +10335,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 23,
+ "line": 28,
"character": 12
}
],
@@ -9762,14 +10359,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 57
+ 62
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 22,
+ "line": 27,
"character": 15
}
]
@@ -9777,7 +10374,7 @@
}
},
{
- "id": 64,
+ "id": 69,
"name": "aud",
"kind": 1024,
"kindString": "Property",
@@ -9787,7 +10384,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 29,
+ "line": 34,
"character": 5
}
],
@@ -9797,7 +10394,7 @@
}
},
{
- "id": 65,
+ "id": 70,
"name": "confirmation_sent_at",
"kind": 1024,
"kindString": "Property",
@@ -9808,7 +10405,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 30,
+ "line": 35,
"character": 22
}
],
@@ -9827,7 +10424,7 @@
}
},
{
- "id": 68,
+ "id": 73,
"name": "confirmed_at",
"kind": 1024,
"kindString": "Property",
@@ -9838,7 +10435,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 33,
+ "line": 38,
"character": 14
}
],
@@ -9857,7 +10454,7 @@
}
},
{
- "id": 67,
+ "id": 72,
"name": "created_at",
"kind": 1024,
"kindString": "Property",
@@ -9867,7 +10464,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 32,
+ "line": 37,
"character": 12
}
],
@@ -9877,7 +10474,7 @@
}
},
{
- "id": 66,
+ "id": 71,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -9888,7 +10485,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 31,
+ "line": 36,
"character": 7
}
],
@@ -9907,7 +10504,7 @@
}
},
{
- "id": 54,
+ "id": 59,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -9917,7 +10514,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 21,
+ "line": 26,
"character": 4
}
],
@@ -9927,7 +10524,7 @@
}
},
{
- "id": 69,
+ "id": 74,
"name": "last_sign_in_at",
"kind": 1024,
"kindString": "Property",
@@ -9938,7 +10535,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 34,
+ "line": 39,
"character": 17
}
],
@@ -9957,7 +10554,7 @@
}
},
{
- "id": 70,
+ "id": 75,
"name": "role",
"kind": 1024,
"kindString": "Property",
@@ -9968,7 +10565,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 35,
+ "line": 40,
"character": 6
}
],
@@ -9987,7 +10584,7 @@
}
},
{
- "id": 71,
+ "id": 76,
"name": "updated_at",
"kind": 1024,
"kindString": "Property",
@@ -9998,7 +10595,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 36,
+ "line": 41,
"character": 12
}
],
@@ -10017,7 +10614,7 @@
}
},
{
- "id": 60,
+ "id": 65,
"name": "user_metadata",
"kind": 1024,
"kindString": "Property",
@@ -10027,14 +10624,14 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 26,
+ "line": 31,
"character": 15
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 61,
+ "id": 66,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10043,7 +10640,7 @@
},
"indexSignature": [
{
- "id": 62,
+ "id": 67,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -10052,7 +10649,7 @@
},
"parameters": [
{
- "id": 63,
+ "id": 68,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -10074,7 +10671,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 26,
+ "line": 31,
"character": 16
}
]
@@ -10087,30 +10684,30 @@
"title": "Properties",
"kind": 1024,
"children": [
- 55,
- 64,
- 65,
- 68,
- 67,
- 66,
- 54,
+ 60,
69,
70,
+ 73,
+ 72,
71,
- 60
+ 59,
+ 74,
+ 75,
+ 76,
+ 65
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 20,
+ "line": 25,
"character": 21
}
]
},
{
- "id": 72,
+ "id": 77,
"name": "UserAttributes",
"kind": 256,
"kindString": "Interface",
@@ -10119,7 +10716,7 @@
},
"children": [
{
- "id": 76,
+ "id": 81,
"name": "data",
"kind": 1024,
"kindString": "Property",
@@ -10133,7 +10730,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 56,
+ "line": 61,
"character": 6
}
],
@@ -10152,7 +10749,7 @@
}
},
{
- "id": 73,
+ "id": 78,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -10166,7 +10763,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 43,
+ "line": 48,
"character": 7
}
],
@@ -10185,7 +10782,7 @@
}
},
{
- "id": 75,
+ "id": 80,
"name": "email_change_token",
"kind": 1024,
"kindString": "Property",
@@ -10199,7 +10796,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 51,
+ "line": 56,
"character": 20
}
],
@@ -10218,7 +10815,7 @@
}
},
{
- "id": 74,
+ "id": 79,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -10232,7 +10829,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 47,
+ "line": 52,
"character": 10
}
],
@@ -10256,23 +10853,23 @@
"title": "Properties",
"kind": 1024,
"children": [
- 76,
- 73,
- 75,
- 74
+ 81,
+ 78,
+ 80,
+ 79
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 39,
+ "line": 44,
"character": 31
}
]
},
{
- "id": 93,
+ "id": 98,
"name": "UserCredentials",
"kind": 256,
"kindString": "Interface",
@@ -10281,7 +10878,7 @@
},
"children": [
{
- "id": 94,
+ "id": 99,
"name": "email",
"kind": 1024,
"kindString": "Property",
@@ -10292,7 +10889,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 87,
+ "line": 92,
"character": 7
}
],
@@ -10311,7 +10908,7 @@
}
},
{
- "id": 95,
+ "id": 100,
"name": "password",
"kind": 1024,
"kindString": "Property",
@@ -10322,7 +10919,7 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 88,
+ "line": 93,
"character": 10
}
],
@@ -10341,7 +10938,7 @@
}
},
{
- "id": 96,
+ "id": 101,
"name": "provider",
"kind": 1024,
"kindString": "Property",
@@ -10352,13 +10949,13 @@
"sources": [
{
"fileName": "lib/types.ts",
- "line": 90,
+ "line": 95,
"character": 10
}
],
"type": {
"type": "reference",
- "id": 97,
+ "id": 102,
"name": "Provider"
}
}
@@ -10368,22 +10965,22 @@
"title": "Properties",
"kind": 1024,
"children": [
- 94,
- 95,
- 96
+ 99,
+ 100,
+ 101
]
}
],
"sources": [
{
"fileName": "lib/types.ts",
- "line": 86,
+ "line": 91,
"character": 32
}
]
},
{
- "id": 98,
+ "id": 103,
"name": "AuthChangeEvent",
"kind": 4194304,
"kindString": "Type alias",
@@ -10412,6 +11009,10 @@
"type": "stringLiteral",
"value": "USER_UPDATED"
},
+ {
+ "type": "stringLiteral",
+ "value": "USER_DELETED"
+ },
{
"type": "stringLiteral",
"value": "PASSWORD_RECOVERY"
@@ -10420,7 +11021,7 @@
}
},
{
- "id": 97,
+ "id": 102,
"name": "Provider",
"kind": 4194304,
"kindString": "Type alias",
@@ -10470,20 +11071,20 @@
"title": "Interfaces",
"kind": 256,
"children": [
- 87,
- 45,
+ 92,
+ 50,
+ 82,
+ 58,
77,
- 53,
- 72,
- 93
+ 98
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 98,
- 97
+ 103,
+ 102
]
}
],
@@ -10501,16 +11102,16 @@
"title": "Modules",
"kind": 1,
"children": [
- 191,
- 310,
- 472,
- 99,
- 112,
+ 196,
+ 323,
+ 498,
+ 104,
+ 117,
1,
- 156,
- 307,
- 44
+ 161,
+ 320,
+ 49
]
}
]
-}
+}
\ No newline at end of file
diff --git a/web/spec/postgrest.json b/web/spec/postgrest.json
index 306fc093b35..dcb7f98989a 100644
--- a/web/spec/postgrest.json
+++ b/web/spec/postgrest.json
@@ -5568,7 +5568,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 183,
+ "line": 189,
"character": 9
}
],
@@ -5609,7 +5609,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 182,
+ "line": 188,
"character": 13
}
],
@@ -5642,7 +5642,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 181,
+ "line": 187,
"character": 9
}
]
@@ -5667,7 +5667,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 181,
+ "line": 187,
"character": 8
}
]
@@ -6665,7 +6665,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 159,
+ "line": 165,
"character": 11
}
],
@@ -6706,7 +6706,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 158,
+ "line": 164,
"character": 15
}
],
@@ -6739,7 +6739,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 156,
+ "line": 162,
"character": 23
}
]
@@ -6764,7 +6764,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 155,
+ "line": 161,
"character": 8
}
]
@@ -6864,7 +6864,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 126,
+ "line": 132,
"character": 11
}
],
@@ -6905,7 +6905,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 124,
+ "line": 130,
"character": 16
}
],
@@ -6937,7 +6937,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 125,
+ "line": 131,
"character": 15
}
],
@@ -6971,7 +6971,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 122,
+ "line": 128,
"character": 38
}
]
@@ -6996,7 +6996,7 @@
"sources": [
{
"fileName": "lib/PostgrestQueryBuilder.ts",
- "line": 121,
+ "line": 127,
"character": 8
}
]
diff --git a/web/spec/realtime.json b/web/spec/realtime.json
index fe303534ea6..b1ba76707aa 100644
--- a/web/spec/realtime.json
+++ b/web/spec/realtime.json
@@ -6,7 +6,7 @@
"originalName": "",
"children": [
{
- "id": 169,
+ "id": 194,
"name": "\"RealtimeClient\"",
"kind": 1,
"kindString": "Module",
@@ -16,7 +16,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/RealtimeClient.ts",
"children": [
{
- "id": 170,
+ "id": 195,
"name": "RealtimeClient",
"kind": 128,
"kindString": "Class",
@@ -25,7 +25,7 @@
},
"children": [
{
- "id": 200,
+ "id": 226,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -37,7 +37,7 @@
},
"signatures": [
{
- "id": 201,
+ "id": 227,
"name": "new RealtimeClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -49,7 +49,7 @@
},
"parameters": [
{
- "id": 202,
+ "id": 228,
"name": "endPoint",
"kind": 32768,
"kindString": "Parameter",
@@ -65,7 +65,7 @@
}
},
{
- "id": 203,
+ "id": 229,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -75,14 +75,14 @@
},
"type": {
"type": "reference",
- "id": 273,
+ "id": 301,
"name": "Options"
}
}
],
"type": {
"type": "reference",
- "id": 170,
+ "id": 195,
"name": "RealtimeClient"
}
}
@@ -90,13 +90,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 63,
+ "line": 65,
"character": 3
}
]
},
{
- "id": 171,
+ "id": 196,
"name": "channels",
"kind": 1024,
"kindString": "Property",
@@ -106,7 +106,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 35,
+ "line": 36,
"character": 10
}
],
@@ -121,7 +121,7 @@
"defaultValue": "[]"
},
{
- "id": 193,
+ "id": 218,
"name": "conn",
"kind": 1024,
"kindString": "Property",
@@ -131,7 +131,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 51,
+ "line": 52,
"character": 6
}
],
@@ -151,7 +151,7 @@
"defaultValue": "null"
},
{
- "id": 191,
+ "id": 216,
"name": "decode",
"kind": 1024,
"kindString": "Property",
@@ -161,7 +161,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 49,
+ "line": 50,
"character": 8
}
],
@@ -171,7 +171,7 @@
}
},
{
- "id": 190,
+ "id": 215,
"name": "encode",
"kind": 1024,
"kindString": "Property",
@@ -181,7 +181,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 48,
+ "line": 49,
"character": 8
}
],
@@ -191,7 +191,7 @@
}
},
{
- "id": 172,
+ "id": 197,
"name": "endPoint",
"kind": 1024,
"kindString": "Property",
@@ -201,7 +201,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 36,
+ "line": 37,
"character": 10
}
],
@@ -212,7 +212,7 @@
"defaultValue": "\"\""
},
{
- "id": 173,
+ "id": 198,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -223,7 +223,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 37,
+ "line": 38,
"character": 9
}
],
@@ -237,7 +237,7 @@
{
"type": "reflection",
"declaration": {
- "id": 174,
+ "id": 199,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -246,7 +246,7 @@
},
"indexSignature": [
{
- "id": 175,
+ "id": 200,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -255,7 +255,7 @@
},
"parameters": [
{
- "id": 176,
+ "id": 201,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -280,7 +280,7 @@
}
},
{
- "id": 183,
+ "id": 208,
"name": "heartbeatIntervalMs",
"kind": 1024,
"kindString": "Property",
@@ -290,7 +290,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 41,
+ "line": 42,
"character": 21
}
],
@@ -301,7 +301,7 @@
"defaultValue": "30000"
},
{
- "id": 185,
+ "id": 210,
"name": "heartbeatTimer",
"kind": 1024,
"kindString": "Property",
@@ -311,7 +311,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 43,
+ "line": 44,
"character": 16
}
],
@@ -319,8 +319,17 @@
"type": "union",
"types": [
{
- "type": "intrinsic",
- "name": "number"
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "query",
+ "queryType": {
+ "type": "reference",
+ "name": "setInterval"
+ }
+ }
+ ],
+ "name": "ReturnType"
},
{
"type": "intrinsic",
@@ -331,7 +340,7 @@
"defaultValue": "undefined"
},
{
- "id": 189,
+ "id": 214,
"name": "logger",
"kind": 1024,
"kindString": "Property",
@@ -341,7 +350,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 47,
+ "line": 48,
"character": 8
}
],
@@ -352,7 +361,7 @@
"defaultValue": "noop"
},
{
- "id": 184,
+ "id": 209,
"name": "longpollerTimeout",
"kind": 1024,
"kindString": "Property",
@@ -362,7 +371,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 42,
+ "line": 43,
"character": 19
}
],
@@ -373,7 +382,7 @@
"defaultValue": "20000"
},
{
- "id": 177,
+ "id": 202,
"name": "params",
"kind": 1024,
"kindString": "Property",
@@ -384,7 +393,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 38,
+ "line": 39,
"character": 8
}
],
@@ -398,7 +407,7 @@
{
"type": "reflection",
"declaration": {
- "id": 178,
+ "id": 203,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -407,7 +416,7 @@
},
"indexSignature": [
{
- "id": 179,
+ "id": 204,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -416,7 +425,7 @@
},
"parameters": [
{
- "id": 180,
+ "id": 205,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -441,7 +450,7 @@
}
},
{
- "id": 186,
+ "id": 211,
"name": "pendingHeartbeatRef",
"kind": 1024,
"kindString": "Property",
@@ -451,7 +460,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 44,
+ "line": 45,
"character": 21
}
],
@@ -471,7 +480,7 @@
"defaultValue": "null"
},
{
- "id": 192,
+ "id": 217,
"name": "reconnectAfterMs",
"kind": 1024,
"kindString": "Property",
@@ -481,7 +490,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 50,
+ "line": 51,
"character": 18
}
],
@@ -491,7 +500,7 @@
}
},
{
- "id": 188,
+ "id": 213,
"name": "reconnectTimer",
"kind": 1024,
"kindString": "Property",
@@ -501,7 +510,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 46,
+ "line": 47,
"character": 16
}
],
@@ -512,7 +521,7 @@
}
},
{
- "id": 187,
+ "id": 212,
"name": "ref",
"kind": 1024,
"kindString": "Property",
@@ -522,7 +531,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 45,
+ "line": 46,
"character": 5
}
],
@@ -533,7 +542,7 @@
"defaultValue": "0"
},
{
- "id": 194,
+ "id": 219,
"name": "sendBuffer",
"kind": 1024,
"kindString": "Property",
@@ -543,7 +552,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 52,
+ "line": 53,
"character": 12
}
],
@@ -557,7 +566,29 @@
"defaultValue": "[]"
},
{
- "id": 181,
+ "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",
@@ -567,7 +598,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 39,
+ "line": 40,
"character": 9
}
],
@@ -578,7 +609,7 @@
"defaultValue": "DEFAULT_TIMEOUT"
},
{
- "id": 182,
+ "id": 207,
"name": "transport",
"kind": 1024,
"kindString": "Property",
@@ -588,7 +619,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 40,
+ "line": 41,
"character": 11
}
],
@@ -599,7 +630,7 @@
"defaultValue": "WebSocket"
},
{
- "id": 262,
+ "id": 288,
"name": "_appendParams",
"kind": 2048,
"kindString": "Method",
@@ -609,7 +640,7 @@
},
"signatures": [
{
- "id": 263,
+ "id": 289,
"name": "_appendParams",
"kind": 4096,
"kindString": "Call signature",
@@ -618,7 +649,7 @@
},
"parameters": [
{
- "id": 264,
+ "id": 290,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -631,7 +662,7 @@
}
},
{
- "id": 265,
+ "id": 291,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -641,7 +672,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 266,
+ "id": 292,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -650,7 +681,7 @@
},
"indexSignature": [
{
- "id": 267,
+ "id": 293,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -659,7 +690,7 @@
},
"parameters": [
{
- "id": 268,
+ "id": 294,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -681,7 +712,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 346,
+ "line": 344,
"character": 44
}
]
@@ -698,13 +729,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 346,
+ "line": 344,
"character": 23
}
]
},
{
- "id": 269,
+ "id": 295,
"name": "_flushSendBuffer",
"kind": 2048,
"kindString": "Method",
@@ -714,7 +745,7 @@
},
"signatures": [
{
- "id": 270,
+ "id": 296,
"name": "_flushSendBuffer",
"kind": 4096,
"kindString": "Call signature",
@@ -730,13 +761,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 356,
+ "line": 354,
"character": 26
}
]
},
{
- "id": 254,
+ "id": 280,
"name": "_onConnClose",
"kind": 2048,
"kindString": "Method",
@@ -746,7 +777,7 @@
},
"signatures": [
{
- "id": 255,
+ "id": 281,
"name": "_onConnClose",
"kind": 4096,
"kindString": "Call signature",
@@ -755,7 +786,7 @@
},
"parameters": [
{
- "id": 256,
+ "id": 282,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -777,13 +808,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 326,
+ "line": 324,
"character": 22
}
]
},
{
- "id": 257,
+ "id": 283,
"name": "_onConnError",
"kind": 2048,
"kindString": "Method",
@@ -793,7 +824,7 @@
},
"signatures": [
{
- "id": 258,
+ "id": 284,
"name": "_onConnError",
"kind": 4096,
"kindString": "Call signature",
@@ -802,7 +833,7 @@
},
"parameters": [
{
- "id": 259,
+ "id": 285,
"name": "error",
"kind": 32768,
"kindString": "Parameter",
@@ -824,13 +855,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 334,
+ "line": 332,
"character": 22
}
]
},
{
- "id": 252,
+ "id": 278,
"name": "_onConnOpen",
"kind": 2048,
"kindString": "Method",
@@ -840,7 +871,7 @@
},
"signatures": [
{
- "id": 253,
+ "id": 279,
"name": "_onConnOpen",
"kind": 4096,
"kindString": "Call signature",
@@ -856,13 +887,45 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 313,
+ "line": 316,
"character": 21
}
]
},
{
- "id": 271,
+ "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",
@@ -872,7 +935,7 @@
},
"signatures": [
{
- "id": 272,
+ "id": 300,
"name": "_sendHeartbeat",
"kind": 4096,
"kindString": "Call signature",
@@ -888,13 +951,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 363,
+ "line": 370,
"character": 24
}
]
},
{
- "id": 260,
+ "id": 286,
"name": "_triggerChanError",
"kind": 2048,
"kindString": "Method",
@@ -904,7 +967,7 @@
},
"signatures": [
{
- "id": 261,
+ "id": 287,
"name": "_triggerChanError",
"kind": 4096,
"kindString": "Call signature",
@@ -920,13 +983,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 340,
+ "line": 338,
"character": 27
}
]
},
{
- "id": 237,
+ "id": 263,
"name": "channel",
"kind": 2048,
"kindString": "Method",
@@ -935,7 +998,7 @@
},
"signatures": [
{
- "id": 238,
+ "id": 264,
"name": "channel",
"kind": 4096,
"kindString": "Call signature",
@@ -944,7 +1007,7 @@
},
"parameters": [
{
- "id": 239,
+ "id": 265,
"name": "topic",
"kind": 32768,
"kindString": "Parameter",
@@ -957,7 +1020,7 @@
}
},
{
- "id": 240,
+ "id": 266,
"name": "chanParams",
"kind": 32768,
"kindString": "Parameter",
@@ -967,7 +1030,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 241,
+ "id": 267,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -989,13 +1052,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 245,
+ "line": 246,
"character": 9
}
]
},
{
- "id": 204,
+ "id": 230,
"name": "connect",
"kind": 2048,
"kindString": "Method",
@@ -1004,7 +1067,7 @@
},
"signatures": [
{
- "id": 205,
+ "id": 231,
"name": "connect",
"kind": 4096,
"kindString": "Call signature",
@@ -1029,7 +1092,7 @@
]
},
{
- "id": 230,
+ "id": 256,
"name": "connectionState",
"kind": 2048,
"kindString": "Method",
@@ -1038,7 +1101,7 @@
},
"signatures": [
{
- "id": 231,
+ "id": 257,
"name": "connectionState",
"kind": 4096,
"kindString": "Call signature",
@@ -1074,13 +1137,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 214,
+ "line": 215,
"character": 17
}
]
},
{
- "id": 206,
+ "id": 232,
"name": "disconnect",
"kind": 2048,
"kindString": "Method",
@@ -1089,7 +1152,7 @@
},
"signatures": [
{
- "id": 207,
+ "id": 233,
"name": "disconnect",
"kind": 4096,
"kindString": "Call signature",
@@ -1101,7 +1164,7 @@
},
"parameters": [
{
- "id": 208,
+ "id": 234,
"name": "code",
"kind": 32768,
"kindString": "Parameter",
@@ -1127,7 +1190,7 @@
}
},
{
- "id": 209,
+ "id": 235,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -1159,7 +1222,7 @@
{
"type": "reflection",
"declaration": {
- "id": 210,
+ "id": 236,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1168,7 +1231,7 @@
},
"children": [
{
- "id": 212,
+ "id": 238,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1178,7 +1241,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 141,
+ "line": 142,
"character": 40
}
],
@@ -1188,7 +1251,7 @@
}
},
{
- "id": 211,
+ "id": 237,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1198,7 +1261,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 141,
+ "line": 142,
"character": 20
}
],
@@ -1222,15 +1285,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 212,
- 211
+ 238,
+ 237
]
}
],
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 141,
+ "line": 142,
"character": 13
}
]
@@ -1244,13 +1307,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 138,
+ "line": 139,
"character": 12
}
]
},
{
- "id": 248,
+ "id": 274,
"name": "endPointURL",
"kind": 2048,
"kindString": "Method",
@@ -1259,7 +1322,7 @@
},
"signatures": [
{
- "id": 249,
+ "id": 275,
"name": "endPointURL",
"kind": 4096,
"kindString": "Call signature",
@@ -1278,13 +1341,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 292,
+ "line": 295,
"character": 13
}
]
},
{
- "id": 232,
+ "id": 258,
"name": "isConnected",
"kind": 2048,
"kindString": "Method",
@@ -1293,7 +1356,7 @@
},
"signatures": [
{
- "id": 233,
+ "id": 259,
"name": "isConnected",
"kind": 4096,
"kindString": "Call signature",
@@ -1312,13 +1375,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 230,
+ "line": 231,
"character": 13
}
]
},
{
- "id": 213,
+ "id": 239,
"name": "log",
"kind": 2048,
"kindString": "Method",
@@ -1327,7 +1390,7 @@
},
"signatures": [
{
- "id": 214,
+ "id": 240,
"name": "log",
"kind": 4096,
"kindString": "Call signature",
@@ -1339,7 +1402,7 @@
},
"parameters": [
{
- "id": 215,
+ "id": 241,
"name": "kind",
"kind": 32768,
"kindString": "Parameter",
@@ -1352,7 +1415,7 @@
}
},
{
- "id": 216,
+ "id": 242,
"name": "msg",
"kind": 32768,
"kindString": "Parameter",
@@ -1365,7 +1428,7 @@
}
},
{
- "id": 217,
+ "id": 243,
"name": "data",
"kind": 32768,
"kindString": "Parameter",
@@ -1388,13 +1451,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 163,
+ "line": 164,
"character": 5
}
]
},
{
- "id": 250,
+ "id": 276,
"name": "makeRef",
"kind": 2048,
"kindString": "Method",
@@ -1403,7 +1466,7 @@
},
"signatures": [
{
- "id": 251,
+ "id": 277,
"name": "makeRef",
"kind": 4096,
"kindString": "Call signature",
@@ -1422,13 +1485,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 302,
+ "line": 305,
"character": 9
}
]
},
{
- "id": 221,
+ "id": 247,
"name": "onClose",
"kind": 2048,
"kindString": "Method",
@@ -1437,7 +1500,7 @@
},
"signatures": [
{
- "id": 222,
+ "id": 248,
"name": "onClose",
"kind": 4096,
"kindString": "Call signature",
@@ -1455,7 +1518,7 @@
},
"parameters": [
{
- "id": 223,
+ "id": 249,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -1480,13 +1543,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 185,
+ "line": 186,
"character": 9
}
]
},
{
- "id": 245,
+ "id": 271,
"name": "onConnMessage",
"kind": 2048,
"kindString": "Method",
@@ -1495,7 +1558,7 @@
},
"signatures": [
{
- "id": 246,
+ "id": 272,
"name": "onConnMessage",
"kind": 4096,
"kindString": "Call signature",
@@ -1504,7 +1567,7 @@
},
"parameters": [
{
- "id": 247,
+ "id": 273,
"name": "rawMessage",
"kind": 32768,
"kindString": "Parameter",
@@ -1526,13 +1589,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 266,
+ "line": 267,
"character": 15
}
]
},
{
- "id": 224,
+ "id": 250,
"name": "onError",
"kind": 2048,
"kindString": "Method",
@@ -1541,7 +1604,7 @@
},
"signatures": [
{
- "id": 225,
+ "id": 251,
"name": "onError",
"kind": 4096,
"kindString": "Call signature",
@@ -1559,7 +1622,7 @@
},
"parameters": [
{
- "id": 226,
+ "id": 252,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -1584,13 +1647,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 196,
+ "line": 197,
"character": 9
}
]
},
{
- "id": 227,
+ "id": 253,
"name": "onMessage",
"kind": 2048,
"kindString": "Method",
@@ -1599,7 +1662,7 @@
},
"signatures": [
{
- "id": 228,
+ "id": 254,
"name": "onMessage",
"kind": 4096,
"kindString": "Call signature",
@@ -1617,7 +1680,7 @@
},
"parameters": [
{
- "id": 229,
+ "id": 255,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -1642,13 +1705,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 207,
+ "line": 208,
"character": 11
}
]
},
{
- "id": 218,
+ "id": 244,
"name": "onOpen",
"kind": 2048,
"kindString": "Method",
@@ -1657,7 +1720,7 @@
},
"signatures": [
{
- "id": 219,
+ "id": 245,
"name": "onOpen",
"kind": 4096,
"kindString": "Call signature",
@@ -1675,7 +1738,7 @@
},
"parameters": [
{
- "id": 220,
+ "id": 246,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -1700,13 +1763,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 174,
+ "line": 175,
"character": 8
}
]
},
{
- "id": 242,
+ "id": 268,
"name": "push",
"kind": 2048,
"kindString": "Method",
@@ -1715,7 +1778,7 @@
},
"signatures": [
{
- "id": 243,
+ "id": 269,
"name": "push",
"kind": 4096,
"kindString": "Call signature",
@@ -1724,7 +1787,7 @@
},
"parameters": [
{
- "id": 244,
+ "id": 270,
"name": "data",
"kind": 32768,
"kindString": "Parameter",
@@ -1733,7 +1796,7 @@
},
"type": {
"type": "reference",
- "id": 291,
+ "id": 319,
"name": "Message"
}
}
@@ -1747,13 +1810,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 251,
+ "line": 252,
"character": 6
}
]
},
{
- "id": 234,
+ "id": 260,
"name": "remove",
"kind": 2048,
"kindString": "Method",
@@ -1762,7 +1825,7 @@
},
"signatures": [
{
- "id": 235,
+ "id": 261,
"name": "remove",
"kind": 4096,
"kindString": "Call signature",
@@ -1774,7 +1837,7 @@
},
"parameters": [
{
- "id": 236,
+ "id": 262,
"name": "channel",
"kind": 32768,
"kindString": "Parameter",
@@ -1800,13 +1863,13 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 239,
+ "line": 240,
"character": 8
}
]
},
{
- "id": 195,
+ "id": 221,
"name": "stateChangeCallbacks",
"kind": 2097152,
"kindString": "Object literal",
@@ -1815,7 +1878,7 @@
},
"children": [
{
- "id": 197,
+ "id": 223,
"name": "close",
"kind": 32,
"kindString": "Variable",
@@ -1825,7 +1888,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 60,
+ "line": 62,
"character": 9
}
],
@@ -1839,7 +1902,7 @@
"defaultValue": "[]"
},
{
- "id": 198,
+ "id": 224,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1849,7 +1912,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 61,
+ "line": 63,
"character": 9
}
],
@@ -1863,7 +1926,7 @@
"defaultValue": "[]"
},
{
- "id": 199,
+ "id": 225,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -1873,7 +1936,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 62,
+ "line": 64,
"character": 11
}
],
@@ -1887,7 +1950,7 @@
"defaultValue": "[]"
},
{
- "id": 196,
+ "id": 222,
"name": "open",
"kind": 32,
"kindString": "Variable",
@@ -1897,7 +1960,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 59,
+ "line": 61,
"character": 8
}
],
@@ -1916,17 +1979,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 197,
- 198,
- 199,
- 196
+ 223,
+ 224,
+ 225,
+ 222
]
}
],
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 53,
+ "line": 55,
"character": 22
}
],
@@ -1941,79 +2004,81 @@
"title": "Constructors",
"kind": 512,
"children": [
- 200
+ 226
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 171,
- 193,
- 191,
- 190,
- 172,
- 173,
- 183,
- 185,
- 189,
- 184,
- 177,
- 186,
- 192,
- 188,
- 187,
- 194,
- 181,
- 182
+ 196,
+ 218,
+ 216,
+ 215,
+ 197,
+ 198,
+ 208,
+ 210,
+ 214,
+ 209,
+ 202,
+ 211,
+ 217,
+ 213,
+ 212,
+ 219,
+ 220,
+ 206,
+ 207
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 262,
- 269,
- 254,
- 257,
- 252,
- 271,
- 260,
- 237,
- 204,
+ 288,
+ 295,
+ 280,
+ 283,
+ 278,
+ 297,
+ 299,
+ 286,
+ 263,
230,
- 206,
- 248,
+ 256,
232,
- 213,
+ 274,
+ 258,
+ 239,
+ 276,
+ 247,
+ 271,
250,
- 221,
- 245,
- 224,
- 227,
- 218,
- 242,
- 234
+ 253,
+ 244,
+ 268,
+ 260
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 195
+ 221
]
}
],
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 34,
+ "line": 35,
"character": 35
}
]
},
{
- "id": 291,
+ "id": 319,
"name": "Message",
"kind": 4194304,
"kindString": "Type alias",
@@ -2021,21 +2086,21 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 25,
+ "line": 26,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 292,
+ "id": 320,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 294,
+ "id": 322,
"name": "event",
"kind": 32,
"kindString": "Variable",
@@ -2043,7 +2108,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 27,
+ "line": 28,
"character": 7
}
],
@@ -2053,7 +2118,7 @@
}
},
{
- "id": 295,
+ "id": 323,
"name": "payload",
"kind": 32,
"kindString": "Variable",
@@ -2061,7 +2126,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 28,
+ "line": 29,
"character": 9
}
],
@@ -2071,7 +2136,7 @@
}
},
{
- "id": 296,
+ "id": 324,
"name": "ref",
"kind": 32,
"kindString": "Variable",
@@ -2079,7 +2144,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 29,
+ "line": 30,
"character": 5
}
],
@@ -2089,7 +2154,7 @@
}
},
{
- "id": 293,
+ "id": 321,
"name": "topic",
"kind": 32,
"kindString": "Variable",
@@ -2097,7 +2162,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 26,
+ "line": 27,
"character": 7
}
],
@@ -2112,17 +2177,17 @@
"title": "Variables",
"kind": 32,
"children": [
- 294,
- 295,
- 296,
- 293
+ 322,
+ 323,
+ 324,
+ 321
]
}
],
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 25,
+ "line": 26,
"character": 14
}
]
@@ -2130,7 +2195,7 @@
}
},
{
- "id": 273,
+ "id": 301,
"name": "Options",
"kind": 4194304,
"kindString": "Type alias",
@@ -2138,21 +2203,21 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 13,
+ "line": 14,
"character": 12
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 274,
+ "id": 302,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 281,
+ "id": 309,
"name": "decode",
"kind": 32,
"kindString": "Variable",
@@ -2162,7 +2227,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 20,
+ "line": 21,
"character": 8
}
],
@@ -2172,7 +2237,7 @@
}
},
{
- "id": 280,
+ "id": 308,
"name": "encode",
"kind": 32,
"kindString": "Variable",
@@ -2182,7 +2247,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 19,
+ "line": 20,
"character": 8
}
],
@@ -2192,7 +2257,7 @@
}
},
{
- "id": 283,
+ "id": 311,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -2202,7 +2267,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 22,
+ "line": 23,
"character": 9
}
],
@@ -2216,21 +2281,21 @@
{
"type": "reflection",
"declaration": {
- "id": 284,
+ "id": 312,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"indexSignature": [
{
- "id": 285,
+ "id": 313,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
"flags": {},
"parameters": [
{
- "id": 286,
+ "id": 314,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -2253,7 +2318,7 @@
}
},
{
- "id": 277,
+ "id": 305,
"name": "heartbeatIntervalMs",
"kind": 32,
"kindString": "Variable",
@@ -2263,7 +2328,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 16,
+ "line": 17,
"character": 21
}
],
@@ -2282,7 +2347,7 @@
}
},
{
- "id": 279,
+ "id": 307,
"name": "logger",
"kind": 32,
"kindString": "Variable",
@@ -2292,7 +2357,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 18,
+ "line": 19,
"character": 8
}
],
@@ -2302,7 +2367,7 @@
}
},
{
- "id": 278,
+ "id": 306,
"name": "longpollerTimeout",
"kind": 32,
"kindString": "Variable",
@@ -2312,7 +2377,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 17,
+ "line": 18,
"character": 19
}
],
@@ -2331,7 +2396,7 @@
}
},
{
- "id": 287,
+ "id": 315,
"name": "params",
"kind": 32,
"kindString": "Variable",
@@ -2341,7 +2406,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 23,
+ "line": 24,
"character": 8
}
],
@@ -2355,21 +2420,21 @@
{
"type": "reflection",
"declaration": {
- "id": 288,
+ "id": 316,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"indexSignature": [
{
- "id": 289,
+ "id": 317,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
"flags": {},
"parameters": [
{
- "id": 290,
+ "id": 318,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -2392,7 +2457,7 @@
}
},
{
- "id": 282,
+ "id": 310,
"name": "reconnectAfterMs",
"kind": 32,
"kindString": "Variable",
@@ -2402,7 +2467,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 21,
+ "line": 22,
"character": 18
}
],
@@ -2412,7 +2477,7 @@
}
},
{
- "id": 276,
+ "id": 304,
"name": "timeout",
"kind": 32,
"kindString": "Variable",
@@ -2422,7 +2487,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 15,
+ "line": 16,
"character": 9
}
],
@@ -2441,7 +2506,7 @@
}
},
{
- "id": 275,
+ "id": 303,
"name": "transport",
"kind": 32,
"kindString": "Variable",
@@ -2451,7 +2516,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 14,
+ "line": 15,
"character": 11
}
],
@@ -2466,23 +2531,23 @@
"title": "Variables",
"kind": 32,
"children": [
- 281,
- 280,
- 283,
- 277,
- 279,
- 278,
- 287,
- 282,
- 276,
- 275
+ 309,
+ 308,
+ 311,
+ 305,
+ 307,
+ 306,
+ 315,
+ 310,
+ 304,
+ 303
]
}
],
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 13,
+ "line": 14,
"character": 14
}
]
@@ -2490,7 +2555,7 @@
}
},
{
- "id": 297,
+ "id": 325,
"name": "noop",
"kind": 64,
"kindString": "Function",
@@ -2499,7 +2564,7 @@
},
"signatures": [
{
- "id": 298,
+ "id": 326,
"name": "noop",
"kind": 4096,
"kindString": "Call signature",
@@ -2513,7 +2578,7 @@
"sources": [
{
"fileName": "RealtimeClient.ts",
- "line": 32,
+ "line": 33,
"character": 10
}
]
@@ -2524,22 +2589,22 @@
"title": "Classes",
"kind": 128,
"children": [
- 170
+ 195
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 291,
- 273
+ 319,
+ 301
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 297
+ 325
]
}
],
@@ -2625,7 +2690,7 @@
},
"type": {
"type": "reference",
- "id": 170,
+ "id": 195,
"name": "RealtimeClient"
}
}
@@ -2798,7 +2863,7 @@
],
"type": {
"type": "reference",
- "id": 170,
+ "id": 195,
"name": "RealtimeClient"
}
},
@@ -3920,7 +3985,7 @@
]
},
{
- "id": 385,
+ "id": 413,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -5466,54 +5531,67 @@
]
},
{
- "id": 24,
- "name": "\"lib/timer\"",
+ "id": 169,
+ "name": "\"lib/serializer\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/timer.ts",
+ "originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/serializer.ts",
"children": [
{
- "id": 25,
- "name": "Timer",
+ "id": 170,
+ "name": "Serializer",
"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",
+ "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": 31,
- "name": "new Timer",
- "kind": 16384,
- "kindString": "Constructor signature",
+ "id": 177,
+ "name": "_binaryDecode",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {
"isExported": true
},
"parameters": [
{
- "id": 32,
- "name": "callback",
+ "id": 178,
+ "name": "buffer",
"kind": 32768,
"kindString": "Parameter",
"flags": {
@@ -5521,14 +5599,485 @@
},
"type": {
"type": "reference",
- "name": "Function"
+ "name": "ArrayBuffer"
}
- },
- {
- "id": 33,
- "name": "timerCalc",
- "kind": 32768,
- "kindString": "Parameter",
+ }
+ ],
+ "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
},
@@ -5765,7 +6314,7 @@
]
},
{
- "id": 299,
+ "id": 327,
"name": "\"lib/transformers\"",
"kind": 1,
"kindString": "Module",
@@ -5775,7 +6324,7 @@
"originalName": "/home/runner/work/realtime-js/realtime-js/src/lib/transformers.ts",
"children": [
{
- "id": 300,
+ "id": 328,
"name": "PostgresTypes",
"kind": 4,
"kindString": "Enumeration",
@@ -5787,7 +6336,7 @@
},
"children": [
{
- "id": 301,
+ "id": 329,
"name": "abstime",
"kind": 16,
"kindString": "Enumeration member",
@@ -5804,7 +6353,7 @@
"defaultValue": "\"abstime\""
},
{
- "id": 302,
+ "id": 330,
"name": "bool",
"kind": 16,
"kindString": "Enumeration member",
@@ -5821,7 +6370,7 @@
"defaultValue": "\"bool\""
},
{
- "id": 303,
+ "id": 331,
"name": "date",
"kind": 16,
"kindString": "Enumeration member",
@@ -5838,7 +6387,7 @@
"defaultValue": "\"date\""
},
{
- "id": 304,
+ "id": 332,
"name": "daterange",
"kind": 16,
"kindString": "Enumeration member",
@@ -5855,7 +6404,7 @@
"defaultValue": "\"daterange\""
},
{
- "id": 305,
+ "id": 333,
"name": "float4",
"kind": 16,
"kindString": "Enumeration member",
@@ -5872,7 +6421,7 @@
"defaultValue": "\"float4\""
},
{
- "id": 306,
+ "id": 334,
"name": "float8",
"kind": 16,
"kindString": "Enumeration member",
@@ -5889,7 +6438,7 @@
"defaultValue": "\"float8\""
},
{
- "id": 307,
+ "id": 335,
"name": "int2",
"kind": 16,
"kindString": "Enumeration member",
@@ -5906,7 +6455,7 @@
"defaultValue": "\"int2\""
},
{
- "id": 308,
+ "id": 336,
"name": "int4",
"kind": 16,
"kindString": "Enumeration member",
@@ -5923,7 +6472,7 @@
"defaultValue": "\"int4\""
},
{
- "id": 309,
+ "id": 337,
"name": "int4range",
"kind": 16,
"kindString": "Enumeration member",
@@ -5940,7 +6489,7 @@
"defaultValue": "\"int4range\""
},
{
- "id": 310,
+ "id": 338,
"name": "int8",
"kind": 16,
"kindString": "Enumeration member",
@@ -5957,7 +6506,7 @@
"defaultValue": "\"int8\""
},
{
- "id": 311,
+ "id": 339,
"name": "int8range",
"kind": 16,
"kindString": "Enumeration member",
@@ -5974,7 +6523,7 @@
"defaultValue": "\"int8range\""
},
{
- "id": 312,
+ "id": 340,
"name": "json",
"kind": 16,
"kindString": "Enumeration member",
@@ -5991,7 +6540,7 @@
"defaultValue": "\"json\""
},
{
- "id": 313,
+ "id": 341,
"name": "jsonb",
"kind": 16,
"kindString": "Enumeration member",
@@ -6008,7 +6557,7 @@
"defaultValue": "\"jsonb\""
},
{
- "id": 314,
+ "id": 342,
"name": "money",
"kind": 16,
"kindString": "Enumeration member",
@@ -6025,7 +6574,7 @@
"defaultValue": "\"money\""
},
{
- "id": 315,
+ "id": 343,
"name": "numeric",
"kind": 16,
"kindString": "Enumeration member",
@@ -6042,7 +6591,7 @@
"defaultValue": "\"numeric\""
},
{
- "id": 316,
+ "id": 344,
"name": "oid",
"kind": 16,
"kindString": "Enumeration member",
@@ -6059,7 +6608,7 @@
"defaultValue": "\"oid\""
},
{
- "id": 317,
+ "id": 345,
"name": "reltime",
"kind": 16,
"kindString": "Enumeration member",
@@ -6076,7 +6625,7 @@
"defaultValue": "\"reltime\""
},
{
- "id": 318,
+ "id": 346,
"name": "time",
"kind": 16,
"kindString": "Enumeration member",
@@ -6093,7 +6642,7 @@
"defaultValue": "\"time\""
},
{
- "id": 319,
+ "id": 347,
"name": "timestamp",
"kind": 16,
"kindString": "Enumeration member",
@@ -6110,7 +6659,7 @@
"defaultValue": "\"timestamp\""
},
{
- "id": 320,
+ "id": 348,
"name": "timestamptz",
"kind": 16,
"kindString": "Enumeration member",
@@ -6127,7 +6676,7 @@
"defaultValue": "\"timestamptz\""
},
{
- "id": 321,
+ "id": 349,
"name": "timetz",
"kind": 16,
"kindString": "Enumeration member",
@@ -6144,7 +6693,7 @@
"defaultValue": "\"timetz\""
},
{
- "id": 322,
+ "id": 350,
"name": "tsrange",
"kind": 16,
"kindString": "Enumeration member",
@@ -6161,7 +6710,7 @@
"defaultValue": "\"tsrange\""
},
{
- "id": 323,
+ "id": 351,
"name": "tstzrange",
"kind": 16,
"kindString": "Enumeration member",
@@ -6183,29 +6732,29 @@
"title": "Enumeration members",
"kind": 16,
"children": [
- 301,
- 302,
- 303,
- 304,
- 305,
- 306,
- 307,
- 308,
- 309,
- 310,
- 311,
- 312,
- 313,
- 314,
- 315,
- 316,
- 317,
- 318,
- 319,
- 320,
- 321,
- 322,
- 323
+ 329,
+ 330,
+ 331,
+ 332,
+ 333,
+ 334,
+ 335,
+ 336,
+ 337,
+ 338,
+ 339,
+ 340,
+ 341,
+ 342,
+ 343,
+ 344,
+ 345,
+ 346,
+ 347,
+ 348,
+ 349,
+ 350,
+ 351
]
}
],
@@ -6218,7 +6767,7 @@
]
},
{
- "id": 324,
+ "id": 352,
"name": "Column",
"kind": 4194304,
"kindString": "Type alias",
@@ -6233,14 +6782,14 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 325,
+ "id": 353,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
- "id": 326,
+ "id": 354,
"name": "flags",
"kind": 32,
"kindString": "Variable",
@@ -6261,7 +6810,7 @@
}
},
{
- "id": 327,
+ "id": 355,
"name": "name",
"kind": 32,
"kindString": "Variable",
@@ -6279,7 +6828,7 @@
}
},
{
- "id": 328,
+ "id": 356,
"name": "type",
"kind": 32,
"kindString": "Variable",
@@ -6297,7 +6846,7 @@
}
},
{
- "id": 329,
+ "id": 357,
"name": "type_modifier",
"kind": 32,
"kindString": "Variable",
@@ -6320,10 +6869,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 326,
- 327,
- 328,
- 329
+ 354,
+ 355,
+ 356,
+ 357
]
}
],
@@ -6338,7 +6887,7 @@
}
},
{
- "id": 330,
+ "id": 358,
"name": "Records",
"kind": 4194304,
"kindString": "Type alias",
@@ -6353,21 +6902,21 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 331,
+ "id": 359,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"indexSignature": [
{
- "id": 332,
+ "id": 360,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
"flags": {},
"parameters": [
{
- "id": 333,
+ "id": 361,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6395,7 +6944,7 @@
}
},
{
- "id": 350,
+ "id": 378,
"name": "convertCell",
"kind": 64,
"kindString": "Function",
@@ -6422,7 +6971,7 @@
},
"signatures": [
{
- "id": 351,
+ "id": 379,
"name": "convertCell",
"kind": 4096,
"kindString": "Call signature",
@@ -6448,7 +6997,7 @@
},
"parameters": [
{
- "id": 352,
+ "id": 380,
"name": "type",
"kind": 32768,
"kindString": "Parameter",
@@ -6464,7 +7013,7 @@
}
},
{
- "id": 353,
+ "id": 381,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -6495,7 +7044,7 @@
]
},
{
- "id": 334,
+ "id": 362,
"name": "convertChangeData",
"kind": 64,
"kindString": "Function",
@@ -6514,7 +7063,7 @@
},
"signatures": [
{
- "id": 335,
+ "id": 363,
"name": "convertChangeData",
"kind": 4096,
"kindString": "Call signature",
@@ -6532,7 +7081,7 @@
},
"parameters": [
{
- "id": 336,
+ "id": 364,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -6543,13 +7092,13 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 324,
+ "id": 352,
"name": "Column"
}
}
},
{
- "id": 337,
+ "id": 365,
"name": "records",
"kind": 32768,
"kindString": "Parameter",
@@ -6559,12 +7108,12 @@
"comment": {},
"type": {
"type": "reference",
- "id": 330,
+ "id": 358,
"name": "Records"
}
},
{
- "id": 338,
+ "id": 366,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -6577,7 +7126,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 339,
+ "id": 367,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6586,7 +7135,7 @@
},
"children": [
{
- "id": 340,
+ "id": 368,
"name": "skipTypes",
"kind": 32,
"kindString": "Variable",
@@ -6615,7 +7164,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 340
+ 368
]
}
],
@@ -6634,7 +7183,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 341,
+ "id": 369,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6643,7 +7192,7 @@
},
"indexSignature": [
{
- "id": 342,
+ "id": 370,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -6652,7 +7201,7 @@
},
"parameters": [
{
- "id": 343,
+ "id": 371,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6684,7 +7233,7 @@
]
},
{
- "id": 344,
+ "id": 372,
"name": "convertColumn",
"kind": 64,
"kindString": "Function",
@@ -6708,7 +7257,7 @@
},
"signatures": [
{
- "id": 345,
+ "id": 373,
"name": "convertColumn",
"kind": 4096,
"kindString": "Call signature",
@@ -6731,7 +7280,7 @@
},
"parameters": [
{
- "id": 346,
+ "id": 374,
"name": "columnName",
"kind": 32768,
"kindString": "Parameter",
@@ -6747,7 +7296,7 @@
}
},
{
- "id": 347,
+ "id": 375,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -6758,13 +7307,13 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 324,
+ "id": 352,
"name": "Column"
}
}
},
{
- "id": 348,
+ "id": 376,
"name": "records",
"kind": 32768,
"kindString": "Parameter",
@@ -6776,12 +7325,12 @@
},
"type": {
"type": "reference",
- "id": 330,
+ "id": 358,
"name": "Records"
}
},
{
- "id": 349,
+ "id": 377,
"name": "skipTypes",
"kind": 32768,
"kindString": "Parameter",
@@ -6815,7 +7364,7 @@
]
},
{
- "id": 354,
+ "id": 382,
"name": "noop",
"kind": 64,
"kindString": "Function",
@@ -6824,14 +7373,14 @@
},
"signatures": [
{
- "id": 355,
+ "id": 383,
"name": "noop",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
- "id": 356,
+ "id": 384,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -6857,7 +7406,7 @@
]
},
{
- "id": 378,
+ "id": 406,
"name": "toArray",
"kind": 64,
"kindString": "Function",
@@ -6880,7 +7429,7 @@
},
"signatures": [
{
- "id": 379,
+ "id": 407,
"name": "toArray",
"kind": 4096,
"kindString": "Call signature",
@@ -6902,7 +7451,7 @@
},
"parameters": [
{
- "id": 380,
+ "id": 408,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -6915,7 +7464,7 @@
}
},
{
- "id": 381,
+ "id": 409,
"name": "type",
"kind": 32768,
"kindString": "Parameter",
@@ -6946,7 +7495,7 @@
]
},
{
- "id": 357,
+ "id": 385,
"name": "toBoolean",
"kind": 64,
"kindString": "Function",
@@ -6956,7 +7505,7 @@
},
"signatures": [
{
- "id": 358,
+ "id": 386,
"name": "toBoolean",
"kind": 4096,
"kindString": "Call signature",
@@ -6965,7 +7514,7 @@
},
"parameters": [
{
- "id": 359,
+ "id": 387,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7006,7 +7555,7 @@
]
},
{
- "id": 360,
+ "id": 388,
"name": "toDate",
"kind": 64,
"kindString": "Function",
@@ -7016,7 +7565,7 @@
},
"signatures": [
{
- "id": 361,
+ "id": 389,
"name": "toDate",
"kind": 4096,
"kindString": "Call signature",
@@ -7025,7 +7574,7 @@
},
"parameters": [
{
- "id": 362,
+ "id": 390,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7053,7 +7602,7 @@
]
},
{
- "id": 363,
+ "id": 391,
"name": "toDateRange",
"kind": 64,
"kindString": "Function",
@@ -7063,7 +7612,7 @@
},
"signatures": [
{
- "id": 364,
+ "id": 392,
"name": "toDateRange",
"kind": 4096,
"kindString": "Call signature",
@@ -7072,7 +7621,7 @@
},
"parameters": [
{
- "id": 365,
+ "id": 393,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7103,7 +7652,7 @@
]
},
{
- "id": 366,
+ "id": 394,
"name": "toFloat",
"kind": 64,
"kindString": "Function",
@@ -7113,7 +7662,7 @@
},
"signatures": [
{
- "id": 367,
+ "id": 395,
"name": "toFloat",
"kind": 4096,
"kindString": "Call signature",
@@ -7122,7 +7671,7 @@
},
"parameters": [
{
- "id": 368,
+ "id": 396,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7150,7 +7699,7 @@
]
},
{
- "id": 369,
+ "id": 397,
"name": "toInt",
"kind": 64,
"kindString": "Function",
@@ -7160,7 +7709,7 @@
},
"signatures": [
{
- "id": 370,
+ "id": 398,
"name": "toInt",
"kind": 4096,
"kindString": "Call signature",
@@ -7169,7 +7718,7 @@
},
"parameters": [
{
- "id": 371,
+ "id": 399,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7197,7 +7746,7 @@
]
},
{
- "id": 372,
+ "id": 400,
"name": "toIntRange",
"kind": 64,
"kindString": "Function",
@@ -7207,7 +7756,7 @@
},
"signatures": [
{
- "id": 373,
+ "id": 401,
"name": "toIntRange",
"kind": 4096,
"kindString": "Call signature",
@@ -7216,7 +7765,7 @@
},
"parameters": [
{
- "id": 374,
+ "id": 402,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7247,7 +7796,7 @@
]
},
{
- "id": 375,
+ "id": 403,
"name": "toJson",
"kind": 64,
"kindString": "Function",
@@ -7257,7 +7806,7 @@
},
"signatures": [
{
- "id": 376,
+ "id": 404,
"name": "toJson",
"kind": 4096,
"kindString": "Call signature",
@@ -7266,7 +7815,7 @@
},
"parameters": [
{
- "id": 377,
+ "id": 405,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7294,7 +7843,7 @@
]
},
{
- "id": 382,
+ "id": 410,
"name": "toTimestampString",
"kind": 64,
"kindString": "Function",
@@ -7313,7 +7862,7 @@
},
"signatures": [
{
- "id": 383,
+ "id": 411,
"name": "toTimestampString",
"kind": 4096,
"kindString": "Call signature",
@@ -7331,7 +7880,7 @@
},
"parameters": [
{
- "id": 384,
+ "id": 412,
"name": "stringValue",
"kind": 32768,
"kindString": "Parameter",
@@ -7364,34 +7913,34 @@
"title": "Enumerations",
"kind": 4,
"children": [
- 300
+ 328
]
},
{
"title": "Type aliases",
"kind": 4194304,
"children": [
- 324,
- 330
+ 352,
+ 358
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 350,
- 334,
- 344,
- 354,
378,
- 357,
- 360,
- 363,
- 366,
- 369,
+ 362,
372,
- 375,
- 382
+ 382,
+ 406,
+ 385,
+ 388,
+ 391,
+ 394,
+ 397,
+ 400,
+ 403,
+ 410
]
}
],
@@ -7409,13 +7958,14 @@
"title": "Modules",
"kind": 1,
"children": [
- 169,
+ 194,
90,
- 385,
+ 413,
1,
38,
+ 169,
24,
- 299
+ 327
]
}
]
diff --git a/web/spec/supabase.json b/web/spec/supabase.json
index 7e6ac8dcea7..86b107a95f0 100644
--- a/web/spec/supabase.json
+++ b/web/spec/supabase.json
@@ -6,7 +6,7 @@
"originalName": "",
"children": [
{
- "id": 499,
+ "id": 248,
"name": "\"SupabaseClient\"",
"kind": 1,
"kindString": "Module",
@@ -16,7 +16,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts",
"children": [
{
- "id": 500,
+ "id": 249,
"name": "SupabaseClient",
"kind": 128,
"kindString": "Class",
@@ -29,7 +29,7 @@
},
"children": [
{
- "id": 508,
+ "id": 257,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -41,7 +41,7 @@
},
"signatures": [
{
- "id": 511,
+ "id": 260,
"name": "new SupabaseClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -53,7 +53,7 @@
},
"parameters": [
{
- "id": 512,
+ "id": 261,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -69,7 +69,7 @@
}
},
{
- "id": 513,
+ "id": 262,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -85,7 +85,7 @@
}
},
{
- "id": 514,
+ "id": 263,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -102,7 +102,7 @@
],
"type": {
"type": "reference",
- "id": 500,
+ "id": 249,
"name": "SupabaseClient"
}
}
@@ -116,7 +116,7 @@
]
},
{
- "id": 501,
+ "id": 250,
"name": "auth",
"kind": 1024,
"kindString": "Property",
@@ -140,7 +140,7 @@
}
},
{
- "id": 505,
+ "id": 254,
"name": "authUrl",
"kind": 1024,
"kindString": "Property",
@@ -161,7 +161,7 @@
}
},
{
- "id": 507,
+ "id": 256,
"name": "realtime",
"kind": 1024,
"kindString": "Property",
@@ -182,7 +182,7 @@
}
},
{
- "id": 504,
+ "id": 253,
"name": "realtimeUrl",
"kind": 1024,
"kindString": "Property",
@@ -203,7 +203,7 @@
}
},
{
- "id": 503,
+ "id": 252,
"name": "restUrl",
"kind": 1024,
"kindString": "Property",
@@ -224,7 +224,7 @@
}
},
{
- "id": 502,
+ "id": 251,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -245,7 +245,7 @@
}
},
{
- "id": 506,
+ "id": 255,
"name": "storageUrl",
"kind": 1024,
"kindString": "Property",
@@ -266,7 +266,7 @@
}
},
{
- "id": 510,
+ "id": 259,
"name": "supabaseKey",
"kind": 1024,
"kindString": "Property",
@@ -291,7 +291,7 @@
}
},
{
- "id": 509,
+ "id": 258,
"name": "supabaseUrl",
"kind": 1024,
"kindString": "Property",
@@ -316,7 +316,7 @@
}
},
{
- "id": 515,
+ "id": 264,
"name": "storage",
"kind": 262144,
"kindString": "Accessor",
@@ -328,7 +328,7 @@
},
"getSignature": [
{
- "id": 516,
+ "id": 265,
"name": "__get",
"kind": 524288,
"kindString": "Get signature",
@@ -340,7 +340,6 @@
},
"type": {
"type": "reference",
- "id": 450,
"name": "SupabaseStorageClient"
}
}
@@ -354,7 +353,7 @@
]
},
{
- "id": 551,
+ "id": 300,
"name": "_closeChannel",
"kind": 2048,
"kindString": "Method",
@@ -364,7 +363,7 @@
},
"signatures": [
{
- "id": 552,
+ "id": 301,
"name": "_closeChannel",
"kind": 4096,
"kindString": "Call signature",
@@ -373,7 +372,7 @@
},
"parameters": [
{
- "id": 553,
+ "id": 302,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -407,7 +406,7 @@
]
},
{
- "id": 529,
+ "id": 278,
"name": "_closeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -417,7 +416,7 @@
},
"signatures": [
{
- "id": 530,
+ "id": 279,
"name": "_closeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -426,7 +425,7 @@
},
"parameters": [
{
- "id": 531,
+ "id": 280,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -460,7 +459,7 @@
]
},
{
- "id": 546,
+ "id": 295,
"name": "_getAuthHeaders",
"kind": 2048,
"kindString": "Method",
@@ -470,7 +469,7 @@
},
"signatures": [
{
- "id": 547,
+ "id": 296,
"name": "_getAuthHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -480,7 +479,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 548,
+ "id": 297,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -489,7 +488,7 @@
},
"indexSignature": [
{
- "id": 549,
+ "id": 298,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -498,7 +497,7 @@
},
"parameters": [
{
- "id": 550,
+ "id": 299,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -537,7 +536,7 @@
]
},
{
- "id": 544,
+ "id": 293,
"name": "_initPostgRESTClient",
"kind": 2048,
"kindString": "Method",
@@ -547,7 +546,7 @@
},
"signatures": [
{
- "id": 545,
+ "id": 294,
"name": "_initPostgRESTClient",
"kind": 4096,
"kindString": "Call signature",
@@ -569,7 +568,7 @@
]
},
{
- "id": 542,
+ "id": 291,
"name": "_initRealtimeClient",
"kind": 2048,
"kindString": "Method",
@@ -579,7 +578,7 @@
},
"signatures": [
{
- "id": 543,
+ "id": 292,
"name": "_initRealtimeClient",
"kind": 4096,
"kindString": "Call signature",
@@ -601,7 +600,7 @@
]
},
{
- "id": 534,
+ "id": 283,
"name": "_initSupabaseAuthClient",
"kind": 2048,
"kindString": "Method",
@@ -611,7 +610,7 @@
},
"signatures": [
{
- "id": 535,
+ "id": 284,
"name": "_initSupabaseAuthClient",
"kind": 4096,
"kindString": "Call signature",
@@ -620,7 +619,7 @@
},
"parameters": [
{
- "id": 536,
+ "id": 285,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -631,7 +630,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 537,
+ "id": 286,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -640,7 +639,7 @@
},
"children": [
{
- "id": 538,
+ "id": 287,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -673,7 +672,7 @@
}
},
{
- "id": 540,
+ "id": 289,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -706,7 +705,7 @@
}
},
{
- "id": 541,
+ "id": 290,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -735,7 +734,7 @@
}
},
{
- "id": 539,
+ "id": 288,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -773,10 +772,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 538,
- 540,
- 541,
- 539
+ 287,
+ 289,
+ 290,
+ 288
]
}
],
@@ -807,7 +806,7 @@
]
},
{
- "id": 517,
+ "id": 266,
"name": "from",
"kind": 2048,
"kindString": "Method",
@@ -816,7 +815,7 @@
},
"signatures": [
{
- "id": 518,
+ "id": 267,
"name": "from",
"kind": 4096,
"kindString": "Call signature",
@@ -828,7 +827,7 @@
},
"typeParameter": [
{
- "id": 519,
+ "id": 268,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -839,7 +838,7 @@
],
"parameters": [
{
- "id": 520,
+ "id": 269,
"name": "table",
"kind": 32768,
"kindString": "Parameter",
@@ -857,7 +856,7 @@
],
"type": {
"type": "reference",
- "id": 143,
+ "id": 162,
"typeArguments": [
{
"type": "typeParameter",
@@ -881,7 +880,7 @@
]
},
{
- "id": 532,
+ "id": 281,
"name": "getSubscriptions",
"kind": 2048,
"kindString": "Method",
@@ -890,7 +889,7 @@
},
"signatures": [
{
- "id": 533,
+ "id": 282,
"name": "getSubscriptions",
"kind": 4096,
"kindString": "Call signature",
@@ -918,7 +917,7 @@
]
},
{
- "id": 526,
+ "id": 275,
"name": "removeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -927,7 +926,7 @@
},
"signatures": [
{
- "id": 527,
+ "id": 276,
"name": "removeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -939,7 +938,7 @@
},
"parameters": [
{
- "id": 528,
+ "id": 277,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -976,7 +975,7 @@
]
},
{
- "id": 521,
+ "id": 270,
"name": "rpc",
"kind": 2048,
"kindString": "Method",
@@ -985,7 +984,7 @@
},
"signatures": [
{
- "id": 522,
+ "id": 271,
"name": "rpc",
"kind": 4096,
"kindString": "Call signature",
@@ -997,7 +996,7 @@
},
"typeParameter": [
{
- "id": 523,
+ "id": 272,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -1008,7 +1007,7 @@
],
"parameters": [
{
- "id": 524,
+ "id": 273,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
@@ -1024,7 +1023,7 @@
}
},
{
- "id": 525,
+ "id": 274,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -1076,45 +1075,45 @@
"title": "Constructors",
"kind": 512,
"children": [
- 508
+ 257
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 501,
- 505,
- 507,
- 504,
- 503,
- 502,
- 506,
- 510,
- 509
+ 250,
+ 254,
+ 256,
+ 253,
+ 252,
+ 251,
+ 255,
+ 259,
+ 258
]
},
{
"title": "Accessors",
"kind": 262144,
"children": [
- 515
+ 264
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 551,
- 529,
- 546,
- 544,
- 542,
- 534,
- 517,
- 532,
- 526,
- 521
+ 300,
+ 278,
+ 295,
+ 293,
+ 291,
+ 283,
+ 266,
+ 281,
+ 275,
+ 270
]
}
],
@@ -1127,7 +1126,7 @@
]
},
{
- "id": 554,
+ "id": 303,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -1136,7 +1135,7 @@
},
"children": [
{
- "id": 556,
+ "id": 305,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -1155,7 +1154,7 @@
"defaultValue": "true"
},
{
- "id": 558,
+ "id": 307,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -1174,7 +1173,7 @@
"defaultValue": "true"
},
{
- "id": 560,
+ "id": 309,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -1189,7 +1188,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 561,
+ "id": 310,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1199,7 +1198,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 559,
+ "id": 308,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -1218,7 +1217,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 557,
+ "id": 306,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -1237,7 +1236,7 @@
"defaultValue": "true"
},
{
- "id": 555,
+ "id": 304,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -1261,12 +1260,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 556,
- 558,
- 560,
- 559,
- 557,
- 555
+ 305,
+ 307,
+ 309,
+ 308,
+ 306,
+ 304
]
}
],
@@ -1288,14 +1287,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 500
+ 249
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 554
+ 303
]
}
],
@@ -1308,7 +1307,7 @@
]
},
{
- "id": 562,
+ "id": 311,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -1318,7 +1317,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts",
"children": [
{
- "id": 563,
+ "id": 312,
"name": "createClient",
"kind": 64,
"kindString": "Function",
@@ -1331,7 +1330,7 @@
},
"signatures": [
{
- "id": 564,
+ "id": 313,
"name": "createClient",
"kind": 4096,
"kindString": "Call signature",
@@ -1343,7 +1342,7 @@
},
"parameters": [
{
- "id": 565,
+ "id": 314,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -1356,7 +1355,7 @@
}
},
{
- "id": 566,
+ "id": 315,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -1369,7 +1368,7 @@
}
},
{
- "id": 567,
+ "id": 316,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1386,7 +1385,7 @@
],
"type": {
"type": "reference",
- "id": 500,
+ "id": 249,
"name": "SupabaseClient"
}
}
@@ -1405,7 +1404,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 563
+ 312
]
}
],
@@ -1925,6 +1924,42 @@
"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",
@@ -1962,7 +1997,234 @@
}
},
{
- "id": 97,
+ "id": 98,
+ "name": "deleteUser",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 99,
+ "name": "deleteUser",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Delete an user."
+ },
+ "parameters": [
+ {
+ "id": 100,
+ "name": "__namedParameters",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "__0",
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 101,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 102,
+ "name": "userUID",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 106,
+ "character": 24
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 102
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 106,
+ "character": 15
+ }
+ ]
+ }
+ }
+ }
+ ],
+ "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": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 109,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 106,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 111,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 105,
+ "name": "user",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 110,
+ "character": 12
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "User"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 104,
+ 106,
+ 105
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 108,
+ "character": 16
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 98,
+ "name": "GoTrueClient.deleteUser"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 106,
+ "character": 14
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 98,
+ "name": "GoTrueClient.deleteUser"
+ }
+ },
+ {
+ "id": 116,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -1971,7 +2233,7 @@
},
"signatures": [
{
- "id": 98,
+ "id": 117,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -1983,7 +2245,7 @@
},
"parameters": [
{
- "id": 99,
+ "id": 118,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2001,7 +2263,7 @@
{
"type": "reflection",
"declaration": {
- "id": 100,
+ "id": 119,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2010,7 +2272,7 @@
},
"children": [
{
- "id": 101,
+ "id": 120,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -2024,7 +2286,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 107,
+ "line": 131,
"character": 20
}
],
@@ -2052,7 +2314,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 101
+ 120
]
}
]
@@ -2068,7 +2330,7 @@
{
"type": "reflection",
"declaration": {
- "id": 102,
+ "id": 121,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2077,7 +2339,7 @@
},
"children": [
{
- "id": 103,
+ "id": 122,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2087,7 +2349,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 109,
+ "line": 133,
"character": 12
}
],
@@ -2106,7 +2368,7 @@
}
},
{
- "id": 104,
+ "id": 123,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2116,7 +2378,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 110,
+ "line": 134,
"character": 13
}
],
@@ -2140,15 +2402,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 103,
- 104
+ 122,
+ 123
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 108,
+ "line": 132,
"character": 16
}
]
@@ -2159,7 +2421,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 97,
+ "id": 116,
"name": "GoTrueClient.getSessionFromUrl"
}
}
@@ -2167,18 +2429,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 106,
+ "line": 130,
"character": 21
}
],
"inheritedFrom": {
"type": "reference",
- "id": 97,
+ "id": 116,
"name": "GoTrueClient.getSessionFromUrl"
}
},
{
- "id": 109,
+ "id": 128,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -2187,7 +2449,7 @@
},
"signatures": [
{
- "id": 110,
+ "id": 129,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -2200,7 +2462,7 @@
},
"parameters": [
{
- "id": 111,
+ "id": 130,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -2210,7 +2472,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 112,
+ "id": 131,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2219,7 +2481,7 @@
},
"signatures": [
{
- "id": 113,
+ "id": 132,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -2228,7 +2490,7 @@
},
"parameters": [
{
- "id": 114,
+ "id": 133,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -2241,7 +2503,7 @@
}
},
{
- "id": 115,
+ "id": 134,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -2272,7 +2534,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 125,
+ "line": 149,
"character": 31
}
]
@@ -2283,7 +2545,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 116,
+ "id": 135,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2292,7 +2554,7 @@
},
"children": [
{
- "id": 117,
+ "id": 136,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2302,7 +2564,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 126,
+ "line": 150,
"character": 12
}
],
@@ -2321,7 +2583,7 @@
}
},
{
- "id": 118,
+ "id": 137,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2331,7 +2593,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 127,
+ "line": 151,
"character": 13
}
],
@@ -2355,15 +2617,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 117,
- 118
+ 136,
+ 137
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 125,
+ "line": 149,
"character": 91
}
]
@@ -2371,7 +2633,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 109,
+ "id": 128,
"name": "GoTrueClient.onAuthStateChange"
}
}
@@ -2379,18 +2641,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 125,
+ "line": 149,
"character": 21
}
],
"inheritedFrom": {
"type": "reference",
- "id": 109,
+ "id": 128,
"name": "GoTrueClient.onAuthStateChange"
}
},
{
- "id": 84,
+ "id": 85,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -2399,7 +2661,7 @@
},
"signatures": [
{
- "id": 85,
+ "id": 86,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -2415,7 +2677,7 @@
{
"type": "reflection",
"declaration": {
- "id": 86,
+ "id": 87,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2424,7 +2686,7 @@
},
"children": [
{
- "id": 87,
+ "id": 88,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2434,7 +2696,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 90,
+ "line": 91,
"character": 12
}
],
@@ -2453,7 +2715,7 @@
}
},
{
- "id": 89,
+ "id": 90,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2463,7 +2725,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 92,
+ "line": 93,
"character": 13
}
],
@@ -2482,7 +2744,7 @@
}
},
{
- "id": 88,
+ "id": 89,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2492,7 +2754,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 91,
+ "line": 92,
"character": 12
}
],
@@ -2516,16 +2778,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 87,
- 89,
- 88
+ 88,
+ 90,
+ 89
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 89,
+ "line": 90,
"character": 30
}
]
@@ -2536,7 +2798,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 84,
+ "id": 85,
"name": "GoTrueClient.refreshSession"
}
}
@@ -2544,18 +2806,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 89,
+ "line": 90,
"character": 18
}
],
"inheritedFrom": {
"type": "reference",
- "id": 84,
+ "id": 85,
"name": "GoTrueClient.refreshSession"
}
},
{
- "id": 82,
+ "id": 83,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -2564,7 +2826,7 @@
},
"signatures": [
{
- "id": 83,
+ "id": 84,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -2589,7 +2851,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 82,
+ "id": 83,
"name": "GoTrueClient.session"
}
}
@@ -2597,18 +2859,233 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 85,
+ "line": 86,
"character": 11
}
],
"inheritedFrom": {
"type": "reference",
- "id": 82,
+ "id": 83,
"name": "GoTrueClient.session"
}
},
{
- "id": 62,
+ "id": 113,
+ "name": "setAuth",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 114,
+ "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": 115,
+ "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": 113,
+ "name": "GoTrueClient.setAuth"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 125,
+ "character": 11
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 113,
+ "name": "GoTrueClient.setAuth"
+ }
+ },
+ {
+ "id": 107,
+ "name": "setSession",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 108,
+ "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": 109,
+ "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": 110,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 112,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 119,
+ "character": 13
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 111,
+ "name": "session",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 118,
+ "character": 15
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Session"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 112,
+ 111
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 117,
+ "character": 47
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ },
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 107,
+ "name": "GoTrueClient.setSession"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
+ "line": 117,
+ "character": 14
+ }
+ ],
+ "inheritedFrom": {
+ "type": "reference",
+ "id": 107,
+ "name": "GoTrueClient.setSession"
+ }
+ },
+ {
+ "id": 63,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -2617,7 +3094,7 @@
},
"signatures": [
{
- "id": 63,
+ "id": 64,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -2629,7 +3106,7 @@
},
"parameters": [
{
- "id": 64,
+ "id": 65,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -2640,7 +3117,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 65,
+ "id": 66,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2649,7 +3126,7 @@
},
"children": [
{
- "id": 66,
+ "id": 67,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -2662,7 +3139,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 65,
+ "line": 66,
"character": 18
}
],
@@ -2681,7 +3158,7 @@
}
},
{
- "id": 67,
+ "id": 68,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -2694,7 +3171,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 65,
+ "line": 66,
"character": 28
}
],
@@ -2713,7 +3190,7 @@
}
},
{
- "id": 68,
+ "id": 69,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -2726,7 +3203,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 65,
+ "line": 66,
"character": 38
}
],
@@ -2770,16 +3247,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 66,
67,
- 68
+ 68,
+ 69
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 65,
+ "line": 66,
"character": 11
}
]
@@ -2787,7 +3264,7 @@
}
},
{
- "id": 69,
+ "id": 70,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -2805,7 +3282,7 @@
{
"type": "reflection",
"declaration": {
- "id": 70,
+ "id": 71,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2814,7 +3291,7 @@
},
"children": [
{
- "id": 71,
+ "id": 72,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -2825,7 +3302,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 66,
+ "line": 67,
"character": 18
}
],
@@ -2844,7 +3321,7 @@
}
},
{
- "id": 72,
+ "id": 73,
"name": "scopes",
"kind": 32,
"kindString": "Variable",
@@ -2855,7 +3332,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 67,
+ "line": 68,
"character": 14
}
],
@@ -2879,8 +3356,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 71,
- 72
+ 72,
+ 73
]
}
]
@@ -2896,7 +3373,7 @@
{
"type": "reflection",
"declaration": {
- "id": 73,
+ "id": 74,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2905,7 +3382,7 @@
},
"children": [
{
- "id": 79,
+ "id": 80,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2915,7 +3392,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 74,
+ "line": 75,
"character": 12
}
],
@@ -2934,7 +3411,7 @@
}
},
{
- "id": 78,
+ "id": 79,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2944,7 +3421,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 73,
+ "line": 74,
"character": 13
}
],
@@ -2963,7 +3440,7 @@
}
},
{
- "id": 76,
+ "id": 77,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -2974,7 +3451,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 71,
+ "line": 72,
"character": 16
}
],
@@ -2984,7 +3461,7 @@
}
},
{
- "id": 74,
+ "id": 75,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -2994,7 +3471,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 69,
+ "line": 70,
"character": 15
}
],
@@ -3013,7 +3490,7 @@
}
},
{
- "id": 77,
+ "id": 78,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -3024,7 +3501,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 72,
+ "line": 73,
"character": 11
}
],
@@ -3043,7 +3520,7 @@
}
},
{
- "id": 75,
+ "id": 76,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3053,7 +3530,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 70,
+ "line": 71,
"character": 12
}
],
@@ -3077,19 +3554,19 @@
"title": "Variables",
"kind": 32,
"children": [
+ 80,
79,
- 78,
- 76,
- 74,
77,
- 75
+ 75,
+ 78,
+ 76
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 68,
+ "line": 69,
"character": 16
}
]
@@ -3100,7 +3577,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 62,
+ "id": 63,
"name": "GoTrueClient.signIn"
}
}
@@ -3108,18 +3585,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 65,
+ "line": 66,
"character": 10
}
],
"inheritedFrom": {
"type": "reference",
- "id": 62,
+ "id": 63,
"name": "GoTrueClient.signIn"
}
},
{
- "id": 105,
+ "id": 124,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -3128,7 +3605,7 @@
},
"signatures": [
{
- "id": 106,
+ "id": 125,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -3145,7 +3622,7 @@
{
"type": "reflection",
"declaration": {
- "id": 107,
+ "id": 126,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3154,7 +3631,7 @@
},
"children": [
{
- "id": 108,
+ "id": 127,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3164,7 +3641,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 119,
+ "line": 143,
"character": 13
}
],
@@ -3188,14 +3665,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 108
+ 127
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 118,
+ "line": 142,
"character": 23
}
]
@@ -3206,7 +3683,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 105,
+ "id": 124,
"name": "GoTrueClient.signOut"
}
}
@@ -3214,18 +3691,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 118,
+ "line": 142,
"character": 11
}
],
"inheritedFrom": {
"type": "reference",
- "id": 105,
+ "id": 124,
"name": "GoTrueClient.signOut"
}
},
{
- "id": 48,
+ "id": 49,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -3234,7 +3711,7 @@
},
"signatures": [
{
- "id": 49,
+ "id": 50,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -3246,7 +3723,7 @@
},
"parameters": [
{
- "id": 50,
+ "id": 51,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -3257,7 +3734,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 51,
+ "id": 52,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3266,7 +3743,7 @@
},
"children": [
{
- "id": 52,
+ "id": 53,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -3279,7 +3756,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 48,
+ "line": 49,
"character": 18
}
],
@@ -3298,7 +3775,7 @@
}
},
{
- "id": 53,
+ "id": 54,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -3311,7 +3788,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 48,
+ "line": 49,
"character": 28
}
],
@@ -3335,15 +3812,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 52,
- 53
+ 53,
+ 54
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 48,
+ "line": 49,
"character": 11
}
]
@@ -3351,7 +3828,7 @@
}
},
{
- "id": 54,
+ "id": 55,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3369,7 +3846,7 @@
{
"type": "reflection",
"declaration": {
- "id": 55,
+ "id": 56,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3378,7 +3855,7 @@
},
"children": [
{
- "id": 56,
+ "id": 57,
"name": "redirectTo",
"kind": 32,
"kindString": "Variable",
@@ -3389,7 +3866,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 49,
+ "line": 50,
"character": 18
}
],
@@ -3413,7 +3890,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 56
+ 57
]
}
]
@@ -3429,7 +3906,7 @@
{
"type": "reflection",
"declaration": {
- "id": 57,
+ "id": 58,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3438,7 +3915,7 @@
},
"children": [
{
- "id": 61,
+ "id": 62,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3448,7 +3925,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 54,
+ "line": 55,
"character": 12
}
],
@@ -3471,7 +3948,7 @@
}
},
{
- "id": 60,
+ "id": 61,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3481,7 +3958,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 53,
+ "line": 54,
"character": 13
}
],
@@ -3500,7 +3977,7 @@
}
},
{
- "id": 59,
+ "id": 60,
"name": "session",
"kind": 32,
"kindString": "Variable",
@@ -3510,7 +3987,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 52,
+ "line": 53,
"character": 15
}
],
@@ -3529,7 +4006,7 @@
}
},
{
- "id": 58,
+ "id": 59,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3539,7 +4016,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 51,
+ "line": 52,
"character": 12
}
],
@@ -3563,17 +4040,17 @@
"title": "Variables",
"kind": 32,
"children": [
+ 62,
61,
60,
- 59,
- 58
+ 59
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 50,
+ "line": 51,
"character": 16
}
]
@@ -3584,7 +4061,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 48,
+ "id": 49,
"name": "GoTrueClient.signUp"
}
}
@@ -3592,18 +4069,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 48,
+ "line": 49,
"character": 10
}
],
"inheritedFrom": {
"type": "reference",
- "id": 48,
+ "id": 49,
"name": "GoTrueClient.signUp"
}
},
{
- "id": 90,
+ "id": 91,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -3612,7 +4089,7 @@
},
"signatures": [
{
- "id": 91,
+ "id": 92,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -3624,7 +4101,7 @@
},
"parameters": [
{
- "id": 92,
+ "id": 93,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -3643,7 +4120,7 @@
{
"type": "reflection",
"declaration": {
- "id": 93,
+ "id": 94,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3652,7 +4129,7 @@
},
"children": [
{
- "id": 94,
+ "id": 95,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3662,7 +4139,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 98,
+ "line": 99,
"character": 12
}
],
@@ -3681,7 +4158,7 @@
}
},
{
- "id": 96,
+ "id": 97,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3691,7 +4168,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 100,
+ "line": 101,
"character": 13
}
],
@@ -3710,7 +4187,7 @@
}
},
{
- "id": 95,
+ "id": 96,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3720,7 +4197,7 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 99,
+ "line": 100,
"character": 12
}
],
@@ -3744,16 +4221,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 94,
- 96,
- 95
+ 95,
+ 97,
+ 96
]
}
],
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 97,
+ "line": 98,
"character": 48
}
]
@@ -3764,7 +4241,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 90,
+ "id": 91,
"name": "GoTrueClient.update"
}
}
@@ -3772,18 +4249,18 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 97,
+ "line": 98,
"character": 10
}
],
"inheritedFrom": {
"type": "reference",
- "id": 90,
+ "id": 91,
"name": "GoTrueClient.update"
}
},
{
- "id": 80,
+ "id": 81,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -3792,7 +4269,7 @@
},
"signatures": [
{
- "id": 81,
+ "id": 82,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -3818,7 +4295,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 80,
+ "id": 81,
"name": "GoTrueClient.user"
}
}
@@ -3826,13 +4303,13 @@
"sources": [
{
"fileName": "node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.d.ts",
- "line": 81,
+ "line": 82,
"character": 8
}
],
"inheritedFrom": {
"type": "reference",
- "id": 80,
+ "id": 81,
"name": "GoTrueClient.user"
}
}
@@ -3855,6 +4332,7 @@
42,
46,
45,
+ 48,
47
]
},
@@ -3862,15 +4340,18 @@
"title": "Methods",
"kind": 2048,
"children": [
- 97,
- 109,
- 84,
- 82,
- 62,
- 105,
- 48,
- 90,
- 80
+ 98,
+ 116,
+ 128,
+ 85,
+ 83,
+ 113,
+ 107,
+ 63,
+ 124,
+ 49,
+ 91,
+ 81
]
}
],
@@ -3907,7 +4388,7 @@
]
},
{
- "id": 142,
+ "id": 161,
"name": "\"lib/SupabaseQueryBuilder\"",
"kind": 1,
"kindString": "Module",
@@ -3917,7 +4398,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseQueryBuilder.ts",
"children": [
{
- "id": 143,
+ "id": 162,
"name": "SupabaseQueryBuilder",
"kind": 128,
"kindString": "Class",
@@ -3926,7 +4407,7 @@
},
"typeParameter": [
{
- "id": 144,
+ "id": 163,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -3937,7 +4418,7 @@
],
"children": [
{
- "id": 147,
+ "id": 166,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -3946,7 +4427,7 @@
},
"signatures": [
{
- "id": 148,
+ "id": 167,
"name": "new SupabaseQueryBuilder",
"kind": 16384,
"kindString": "Constructor signature",
@@ -3955,7 +4436,7 @@
},
"parameters": [
{
- "id": 149,
+ "id": 168,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -3968,7 +4449,7 @@
}
},
{
- "id": 150,
+ "id": 169,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -3979,7 +4460,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 151,
+ "id": 170,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3988,7 +4469,7 @@
},
"children": [
{
- "id": 152,
+ "id": 171,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -4005,7 +4486,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 153,
+ "id": 172,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4014,7 +4495,7 @@
},
"indexSignature": [
{
- "id": 154,
+ "id": 173,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -4023,7 +4504,7 @@
},
"parameters": [
{
- "id": 155,
+ "id": 174,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -4046,7 +4527,7 @@
}
},
{
- "id": 157,
+ "id": 176,
"name": "realtime",
"kind": 32,
"kindString": "Variable",
@@ -4066,7 +4547,7 @@
}
},
{
- "id": 156,
+ "id": 175,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -4086,7 +4567,7 @@
}
},
{
- "id": 158,
+ "id": 177,
"name": "table",
"kind": 32,
"kindString": "Variable",
@@ -4111,10 +4592,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 152,
- 157,
- 156,
- 158
+ 171,
+ 176,
+ 175,
+ 177
]
}
],
@@ -4131,7 +4612,7 @@
],
"type": {
"type": "reference",
- "id": 143,
+ "id": 162,
"name": "SupabaseQueryBuilder"
},
"overwrites": {
@@ -4153,7 +4634,7 @@
}
},
{
- "id": 146,
+ "id": 165,
"name": "_realtime",
"kind": 1024,
"kindString": "Property",
@@ -4174,7 +4655,7 @@
}
},
{
- "id": 145,
+ "id": 164,
"name": "_subscription",
"kind": 1024,
"kindString": "Property",
@@ -4191,12 +4672,12 @@
],
"type": {
"type": "reference",
- "id": 120,
+ "id": 139,
"name": "SupabaseRealtimeClient"
}
},
{
- "id": 216,
+ "id": 235,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -4242,12 +4723,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 216,
+ "id": 235,
"name": "PostgrestBuilder.body"
}
},
{
- "id": 211,
+ "id": 230,
"name": "headers",
"kind": 1024,
"kindString": "Property",
@@ -4265,7 +4746,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 212,
+ "id": 231,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4274,7 +4755,7 @@
},
"indexSignature": [
{
- "id": 213,
+ "id": 232,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -4283,7 +4764,7 @@
},
"parameters": [
{
- "id": 214,
+ "id": 233,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -4313,12 +4794,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 211,
+ "id": 230,
"name": "PostgrestBuilder.headers"
}
},
{
- "id": 209,
+ "id": 228,
"name": "method",
"kind": 1024,
"kindString": "Property",
@@ -4360,12 +4841,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 209,
+ "id": 228,
"name": "PostgrestBuilder.method"
}
},
{
- "id": 215,
+ "id": 234,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -4396,12 +4877,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 215,
+ "id": 234,
"name": "PostgrestBuilder.schema"
}
},
{
- "id": 210,
+ "id": 229,
"name": "url",
"kind": 1024,
"kindString": "Property",
@@ -4422,12 +4903,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 210,
+ "id": 229,
"name": "PostgrestBuilder.url"
}
},
{
- "id": 203,
+ "id": 222,
"name": "delete",
"kind": 2048,
"kindString": "Method",
@@ -4436,7 +4917,7 @@
},
"signatures": [
{
- "id": 204,
+ "id": 223,
"name": "delete",
"kind": 4096,
"kindString": "Call signature",
@@ -4448,7 +4929,7 @@
},
"parameters": [
{
- "id": 205,
+ "id": 224,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -4460,7 +4941,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 206,
+ "id": 225,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4469,7 +4950,7 @@
},
"children": [
{
- "id": 208,
+ "id": 227,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -4513,7 +4994,7 @@
}
},
{
- "id": 207,
+ "id": 226,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -4554,8 +5035,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 208,
- 207
+ 227,
+ 226
]
}
],
@@ -4582,7 +5063,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 203,
+ "id": 222,
"name": "PostgrestQueryBuilder.delete"
}
}
@@ -4596,12 +5077,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 203,
+ "id": 222,
"name": "PostgrestQueryBuilder.delete"
}
},
{
- "id": 173,
+ "id": 192,
"name": "insert",
"kind": 2048,
"kindString": "Method",
@@ -4610,7 +5091,7 @@
},
"signatures": [
{
- "id": 174,
+ "id": 193,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
@@ -4622,7 +5103,7 @@
},
"parameters": [
{
- "id": 175,
+ "id": 194,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -4662,7 +5143,7 @@
}
},
{
- "id": 176,
+ "id": 195,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -4680,7 +5161,7 @@
{
"type": "reflection",
"declaration": {
- "id": 177,
+ "id": 196,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4689,7 +5170,7 @@
},
"children": [
{
- "id": 179,
+ "id": 198,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -4727,7 +5208,7 @@
}
},
{
- "id": 178,
+ "id": 197,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -4762,8 +5243,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 179,
- 178
+ 198,
+ 197
]
}
]
@@ -4785,12 +5266,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 173,
+ "id": 192,
"name": "PostgrestQueryBuilder.insert"
}
},
{
- "id": 180,
+ "id": 199,
"name": "insert",
"kind": 4096,
"kindString": "Call signature",
@@ -4807,7 +5288,7 @@
},
"parameters": [
{
- "id": 181,
+ "id": 200,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -4844,7 +5325,7 @@
}
},
{
- "id": 182,
+ "id": 201,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -4862,7 +5343,7 @@
{
"type": "reflection",
"declaration": {
- "id": 183,
+ "id": 202,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4871,7 +5352,7 @@
},
"children": [
{
- "id": 187,
+ "id": 206,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -4909,7 +5390,7 @@
}
},
{
- "id": 185,
+ "id": 204,
"name": "onConflict",
"kind": 32,
"kindString": "Variable",
@@ -4939,7 +5420,7 @@
}
},
{
- "id": 186,
+ "id": 205,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -4969,7 +5450,7 @@
}
},
{
- "id": 184,
+ "id": 203,
"name": "upsert",
"kind": 32,
"kindString": "Variable",
@@ -5008,10 +5489,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 187,
- 185,
- 186,
- 184
+ 206,
+ 204,
+ 205,
+ 203
]
}
]
@@ -5033,7 +5514,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 173,
+ "id": 192,
"name": "PostgrestQueryBuilder.insert"
}
}
@@ -5052,12 +5533,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 173,
+ "id": 192,
"name": "PostgrestQueryBuilder.insert"
}
},
{
- "id": 159,
+ "id": 178,
"name": "on",
"kind": 2048,
"kindString": "Method",
@@ -5066,7 +5547,7 @@
},
"signatures": [
{
- "id": 160,
+ "id": 179,
"name": "on",
"kind": 4096,
"kindString": "Call signature",
@@ -5074,11 +5555,11 @@
"isExported": true
},
"comment": {
- "shortText": "Subscribe to realtime changes in your database."
+ "shortText": "Subscribe to realtime changes in your databse."
},
"parameters": [
{
- "id": 161,
+ "id": 180,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -5095,7 +5576,7 @@
}
},
{
- "id": 162,
+ "id": 181,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -5108,7 +5589,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 163,
+ "id": 182,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5117,7 +5598,7 @@
},
"signatures": [
{
- "id": 164,
+ "id": 183,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5126,7 +5607,7 @@
},
"parameters": [
{
- "id": 165,
+ "id": 184,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -5165,7 +5646,7 @@
],
"type": {
"type": "reference",
- "id": 120,
+ "id": 139,
"name": "SupabaseRealtimeClient"
}
}
@@ -5179,7 +5660,7 @@
]
},
{
- "id": 166,
+ "id": 185,
"name": "select",
"kind": 2048,
"kindString": "Method",
@@ -5188,7 +5669,7 @@
},
"signatures": [
{
- "id": 167,
+ "id": 186,
"name": "select",
"kind": 4096,
"kindString": "Call signature",
@@ -5200,7 +5681,7 @@
},
"parameters": [
{
- "id": 168,
+ "id": 187,
"name": "columns",
"kind": 32768,
"kindString": "Parameter",
@@ -5226,7 +5707,7 @@
}
},
{
- "id": 169,
+ "id": 188,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5238,7 +5719,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 170,
+ "id": 189,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5247,7 +5728,7 @@
},
"children": [
{
- "id": 172,
+ "id": 191,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -5291,7 +5772,7 @@
}
},
{
- "id": 171,
+ "id": 190,
"name": "head",
"kind": 32,
"kindString": "Variable",
@@ -5332,8 +5813,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 172,
- 171
+ 191,
+ 190
]
}
],
@@ -5360,7 +5841,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 166,
+ "id": 185,
"name": "PostgrestQueryBuilder.select"
}
}
@@ -5374,12 +5855,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 166,
+ "id": 185,
"name": "PostgrestQueryBuilder.select"
}
},
{
- "id": 217,
+ "id": 236,
"name": "then",
"kind": 2048,
"kindString": "Method",
@@ -5388,7 +5869,7 @@
},
"signatures": [
{
- "id": 218,
+ "id": 237,
"name": "then",
"kind": 4096,
"kindString": "Call signature",
@@ -5397,7 +5878,7 @@
},
"typeParameter": [
{
- "id": 219,
+ "id": 238,
"name": "TResult1",
"kind": 131072,
"kindString": "Type parameter",
@@ -5406,7 +5887,7 @@
}
},
{
- "id": 220,
+ "id": 239,
"name": "TResult2",
"kind": 131072,
"kindString": "Type parameter",
@@ -5417,7 +5898,7 @@
],
"parameters": [
{
- "id": 221,
+ "id": 240,
"name": "onfulfilled",
"kind": 32768,
"kindString": "Parameter",
@@ -5431,7 +5912,7 @@
{
"type": "reflection",
"declaration": {
- "id": 222,
+ "id": 241,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5440,7 +5921,7 @@
},
"signatures": [
{
- "id": 223,
+ "id": 242,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5449,7 +5930,7 @@
},
"parameters": [
{
- "id": 224,
+ "id": 243,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -5530,7 +6011,7 @@
}
},
{
- "id": 225,
+ "id": 244,
"name": "onrejected",
"kind": 32768,
"kindString": "Parameter",
@@ -5544,7 +6025,7 @@
{
"type": "reflection",
"declaration": {
- "id": 226,
+ "id": 245,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5553,7 +6034,7 @@
},
"signatures": [
{
- "id": 227,
+ "id": 246,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -5562,7 +6043,7 @@
},
"parameters": [
{
- "id": 228,
+ "id": 247,
"name": "reason",
"kind": 32768,
"kindString": "Parameter",
@@ -5660,7 +6141,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 217,
+ "id": 236,
"name": "PostgrestBuilder.then"
}
}
@@ -5674,12 +6155,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 217,
+ "id": 236,
"name": "PostgrestBuilder.then"
}
},
{
- "id": 196,
+ "id": 215,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -5688,7 +6169,7 @@
},
"signatures": [
{
- "id": 197,
+ "id": 216,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -5700,7 +6181,7 @@
},
"parameters": [
{
- "id": 198,
+ "id": 217,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -5722,7 +6203,7 @@
}
},
{
- "id": 199,
+ "id": 218,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5734,7 +6215,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 200,
+ "id": 219,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5743,7 +6224,7 @@
},
"children": [
{
- "id": 202,
+ "id": 221,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -5787,7 +6268,7 @@
}
},
{
- "id": 201,
+ "id": 220,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -5828,8 +6309,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 202,
- 201
+ 221,
+ 220
]
}
],
@@ -5856,7 +6337,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 196,
+ "id": 215,
"name": "PostgrestQueryBuilder.update"
}
}
@@ -5870,12 +6351,12 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 196,
+ "id": 215,
"name": "PostgrestQueryBuilder.update"
}
},
{
- "id": 188,
+ "id": 207,
"name": "upsert",
"kind": 2048,
"kindString": "Method",
@@ -5884,7 +6365,7 @@
},
"signatures": [
{
- "id": 189,
+ "id": 208,
"name": "upsert",
"kind": 4096,
"kindString": "Call signature",
@@ -5896,7 +6377,7 @@
},
"parameters": [
{
- "id": 190,
+ "id": 209,
"name": "values",
"kind": 32768,
"kindString": "Parameter",
@@ -5936,7 +6417,7 @@
}
},
{
- "id": 191,
+ "id": 210,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -5948,7 +6429,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 192,
+ "id": 211,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5957,7 +6438,7 @@
},
"children": [
{
- "id": 195,
+ "id": 214,
"name": "count",
"kind": 32,
"kindString": "Variable",
@@ -6001,7 +6482,7 @@
}
},
{
- "id": 193,
+ "id": 212,
"name": "onConflict",
"kind": 32,
"kindString": "Variable",
@@ -6033,7 +6514,7 @@
}
},
{
- "id": 194,
+ "id": 213,
"name": "returning",
"kind": 32,
"kindString": "Variable",
@@ -6074,9 +6555,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 195,
- 193,
- 194
+ 214,
+ 212,
+ 213
]
}
],
@@ -6103,7 +6584,7 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 188,
+ "id": 207,
"name": "PostgrestQueryBuilder.upsert"
}
}
@@ -6117,7 +6598,7 @@
],
"inheritedFrom": {
"type": "reference",
- "id": 188,
+ "id": 207,
"name": "PostgrestQueryBuilder.upsert"
}
}
@@ -6127,33 +6608,33 @@
"title": "Constructors",
"kind": 512,
"children": [
- 147
+ 166
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 146,
- 145,
- 216,
- 211,
- 209,
- 215,
- 210
+ 165,
+ 164,
+ 235,
+ 230,
+ 228,
+ 234,
+ 229
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 203,
- 173,
- 159,
- 166,
- 217,
- 196,
- 188
+ 222,
+ 192,
+ 178,
+ 185,
+ 236,
+ 215,
+ 207
]
}
],
@@ -6201,7 +6682,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 143
+ 162
]
}
],
@@ -6214,7 +6695,7 @@
]
},
{
- "id": 119,
+ "id": 138,
"name": "\"lib/SupabaseRealtimeClient\"",
"kind": 1,
"kindString": "Module",
@@ -6224,7 +6705,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseRealtimeClient.ts",
"children": [
{
- "id": 120,
+ "id": 139,
"name": "SupabaseRealtimeClient",
"kind": 128,
"kindString": "Class",
@@ -6233,7 +6714,7 @@
},
"children": [
{
- "id": 122,
+ "id": 141,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -6242,7 +6723,7 @@
},
"signatures": [
{
- "id": 123,
+ "id": 142,
"name": "new SupabaseRealtimeClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -6251,7 +6732,7 @@
},
"parameters": [
{
- "id": 124,
+ "id": 143,
"name": "socket",
"kind": 32768,
"kindString": "Parameter",
@@ -6264,7 +6745,7 @@
}
},
{
- "id": 125,
+ "id": 144,
"name": "schema",
"kind": 32768,
"kindString": "Parameter",
@@ -6277,7 +6758,7 @@
}
},
{
- "id": 126,
+ "id": 145,
"name": "tableName",
"kind": 32768,
"kindString": "Parameter",
@@ -6292,7 +6773,7 @@
],
"type": {
"type": "reference",
- "id": 120,
+ "id": 139,
"name": "SupabaseRealtimeClient"
}
}
@@ -6306,7 +6787,7 @@
]
},
{
- "id": 121,
+ "id": 140,
"name": "subscription",
"kind": 1024,
"kindString": "Property",
@@ -6326,7 +6807,7 @@
}
},
{
- "id": 127,
+ "id": 146,
"name": "getPayloadRecords",
"kind": 2048,
"kindString": "Method",
@@ -6336,7 +6817,7 @@
},
"signatures": [
{
- "id": 128,
+ "id": 147,
"name": "getPayloadRecords",
"kind": 4096,
"kindString": "Call signature",
@@ -6345,7 +6826,7 @@
},
"parameters": [
{
- "id": 129,
+ "id": 148,
"name": "payload",
"kind": 32768,
"kindString": "Parameter",
@@ -6361,7 +6842,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 130,
+ "id": 149,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6370,7 +6851,7 @@
},
"children": [
{
- "id": 131,
+ "id": 150,
"name": "new",
"kind": 32,
"kindString": "Variable",
@@ -6387,7 +6868,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 132,
+ "id": 151,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6398,7 +6879,7 @@
}
},
{
- "id": 133,
+ "id": 152,
"name": "old",
"kind": 32,
"kindString": "Variable",
@@ -6415,7 +6896,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 134,
+ "id": 153,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6431,8 +6912,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 131,
- 133
+ 150,
+ 152
]
}
]
@@ -6449,7 +6930,7 @@
]
},
{
- "id": 135,
+ "id": 154,
"name": "on",
"kind": 2048,
"kindString": "Method",
@@ -6458,7 +6939,7 @@
},
"signatures": [
{
- "id": 136,
+ "id": 155,
"name": "on",
"kind": 4096,
"kindString": "Call signature",
@@ -6470,7 +6951,7 @@
},
"parameters": [
{
- "id": 137,
+ "id": 156,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -6487,7 +6968,7 @@
}
},
{
- "id": 138,
+ "id": 157,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -6518,7 +6999,7 @@
]
},
{
- "id": 139,
+ "id": 158,
"name": "subscribe",
"kind": 2048,
"kindString": "Method",
@@ -6527,7 +7008,7 @@
},
"signatures": [
{
- "id": 140,
+ "id": 159,
"name": "subscribe",
"kind": 4096,
"kindString": "Call signature",
@@ -6539,7 +7020,7 @@
},
"parameters": [
{
- "id": 141,
+ "id": 160,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -6573,23 +7054,23 @@
"title": "Constructors",
"kind": 512,
"children": [
- 122
+ 141
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 121
+ 140
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 127,
- 135,
- 139
+ 146,
+ 154,
+ 158
]
}
],
@@ -6607,7 +7088,7 @@
"title": "Classes",
"kind": 128,
"children": [
- 120
+ 139
]
}
],
@@ -6620,5971 +7101,116 @@
]
},
{
- "id": 449,
- "name": "\"lib/SupabaseStorageClient\"",
+ "id": 1,
+ "name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseStorageClient.ts",
+ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/constants.ts",
"children": [
{
- "id": 450,
- "name": "SupabaseStorageClient",
- "kind": 128,
- "kindString": "Class",
+ "id": 2,
+ "name": "DEFAULT_HEADERS",
+ "kind": 32,
+ "kindString": "Variable",
"flags": {
- "isExported": true
+ "isExported": true,
+ "isConst": true
},
- "children": [
+ "sources": [
{
- "id": 451,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
+ "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
- },
- "signatures": [
- {
- "id": 452,
- "name": "new SupabaseStorageClient",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 453,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 454,
- "name": "headers",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 455,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 456,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 457,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.ts",
- "line": 4,
- "character": 35
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "id": 450,
- "name": "SupabaseStorageClient"
- },
- "overwrites": {
- "type": "reference",
- "id": 313,
- "name": "StorageBucketApi.__constructor"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.ts",
- "line": 3,
- "character": 61
- }
- ],
- "overwrites": {
- "type": "reference",
- "id": 313,
- "name": "StorageBucketApi.__constructor"
}
- },
+ }
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 2
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "src/lib/constants.ts",
+ "line": 1,
+ "character": 0
+ }
+ ]
+ },
+ {
+ "id": 317,
+ "name": "\"lib/helpers\"",
+ "kind": 1,
+ "kindString": "Module",
+ "flags": {
+ "isExported": true
+ },
+ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts",
+ "children": [
+ {
+ "id": 318,
+ "name": "uuid",
+ "kind": 64,
+ "kindString": "Function",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
{
- "id": 462,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
+ "id": 319,
+ "name": "uuid",
+ "kind": 4096,
+ "kindString": "Call signature",
"flags": {
- "isProtected": true,
"isExported": true
},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 6,
- "character": 19
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 463,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 464,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 465,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 6,
- "character": 20
- }
- ]
- }
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 309,
- "name": "StorageBucketApi.headers"
- }
- },
- {
- "id": 461,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 5,
- "character": 15
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 308,
- "name": "StorageBucketApi.url"
- }
- },
- {
- "id": 477,
- "name": "createBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 478,
- "name": "createBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Creates a new Storage bucket"
- },
- "parameters": [
- {
- "id": 479,
- "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"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 480,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 481,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 48
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 482,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 70
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 481,
- 482
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 42
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 331,
- "name": "StorageBucketApi.createBucket"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 20
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 331,
- "name": "StorageBucketApi.createBucket"
- }
- },
- {
- "id": 491,
- "name": "deleteBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 492,
- "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": 493,
- "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": 494,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 495,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 496,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 497,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 497
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 498,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 495,
- 498
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 345,
- "name": "StorageBucketApi.deleteBucket"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 75,
- "character": 20
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 345,
- "name": "StorageBucketApi.deleteBucket"
- }
- },
- {
- "id": 483,
- "name": "emptyBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 484,
- "name": "emptyBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Removes all objects inside a single bucket."
- },
- "parameters": [
- {
- "id": 485,
- "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": 486,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 487,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 488,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 489,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 489
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 490,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 487,
- 490
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 337,
- "name": "StorageBucketApi.emptyBucket"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 58,
- "character": 19
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 337,
- "name": "StorageBucketApi.emptyBucket"
- }
- },
- {
- "id": 458,
- "name": "from",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 459,
- "name": "from",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Perform file operation in a bucket."
- },
- "parameters": [
- {
- "id": 460,
- "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": 357,
- "name": "StorageFileApi"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.ts",
- "line": 13,
- "character": 6
- }
- ]
- },
- {
- "id": 471,
- "name": "getBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 472,
- "name": "getBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Retrieves the details of an existing Storage bucket."
- },
- "parameters": [
- {
- "id": 473,
- "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": 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": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 45
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 476,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 67
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 475,
- 476
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 39
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 325,
- "name": "StorageBucketApi.getBucket"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 17
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 325,
- "name": "StorageBucketApi.getBucket"
- }
- },
- {
- "id": 466,
- "name": "listBuckets",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 467,
- "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": 468,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 469,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 37
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 470,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 61
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 469,
- 470
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 31
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 320,
- "name": "StorageBucketApi.listBuckets"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 19
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 320,
- "name": "StorageBucketApi.listBuckets"
- }
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 451
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 462,
- 461
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 477,
- 491,
- 483,
- 458,
- 471,
- 466
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.ts",
- "line": 3,
- "character": 34
- }
- ],
- "extendedTypes": [
- {
- "type": "reference",
- "id": 307,
- "name": "StorageBucketApi"
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 450
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.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": 568,
- "name": "\"lib/helpers\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts",
- "children": [
- {
- "id": 569,
- "name": "uuid",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 570,
- "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": [
- 569
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/helpers.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 306,
- "name": "\"lib/storage/StorageBucketApi\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/StorageBucketApi.ts",
- "children": [
- {
- "id": 307,
- "name": "StorageBucketApi",
- "kind": 128,
- "kindString": "Class",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 313,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 314,
- "name": "new StorageBucketApi",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 315,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 316,
- "name": "headers",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 317,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 318,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 319,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 8,
- "character": 35
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "id": 307,
- "name": "StorageBucketApi"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 6,
- "character": 46
- }
- ]
- },
- {
- "id": 309,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 6,
- "character": 19
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 310,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 311,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 312,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 6,
- "character": 20
- }
- ]
- }
- }
- },
- {
- "id": 308,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 5,
- "character": 15
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 331,
- "name": "createBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 332,
- "name": "createBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Creates a new Storage bucket"
- },
- "parameters": [
- {
- "id": 333,
- "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"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 334,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 335,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 48
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 336,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 70
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 335,
- 336
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 42
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 44,
- "character": 20
- }
- ]
- },
- {
- "id": 345,
- "name": "deleteBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 346,
- "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": 347,
- "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": 348,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 349,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 350,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 351,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 351
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 352,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 349,
- 352
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 77,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 75,
- "character": 20
- }
- ]
- },
- {
- "id": 337,
- "name": "emptyBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 338,
- "name": "emptyBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Removes all objects inside a single bucket."
- },
- "parameters": [
- {
- "id": 339,
- "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": 340,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 341,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 342,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 343,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 343
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 344,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 341,
- 344
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 60,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 58,
- "character": 19
- }
- ]
- },
- {
- "id": 325,
- "name": "getBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 326,
- "name": "getBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Retrieves the details of an existing Storage bucket."
- },
- "parameters": [
- {
- "id": 327,
- "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": 328,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 329,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 45
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 330,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 67
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 329,
- 330
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 39
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 30,
- "character": 17
- }
- ]
- },
- {
- "id": 320,
- "name": "listBuckets",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 321,
- "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": 322,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 323,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 37
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 324,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 61
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 323,
- 324
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 31
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 16,
- "character": 19
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 313
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 309,
- 308
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 331,
- 345,
- 337,
- 325,
- 320
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 4,
- "character": 29
- }
- ],
- "extendedBy": [
- {
- "type": "reference",
- "id": 450,
- "name": "SupabaseStorageClient"
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 307
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageBucketApi.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 356,
- "name": "\"lib/storage/StorageFileApi\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/StorageFileApi.ts",
- "children": [
- {
- "id": 357,
- "name": "StorageFileApi",
- "kind": 128,
- "kindString": "Class",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 364,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 365,
- "name": "new StorageFileApi",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 366,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 367,
- "name": "headers",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 368,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 369,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 370,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 23,
- "character": 35
- }
- ]
- }
- },
- "defaultValue": "{}"
- },
- {
- "id": 371,
- "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": 357,
- "name": "StorageFileApi"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 21,
- "character": 29
- }
- ]
- },
- {
- "id": 363,
- "name": "bucketId",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 21,
- "character": 20
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- },
- {
- "id": 359,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 20,
- "character": 19
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 360,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 361,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 362,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 20,
- "character": 20
- }
- ]
- }
- }
- },
- {
- "id": 358,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isProtected": true,
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 19,
- "character": 15
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 429,
- "name": "_getFinalPath",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 430,
- "name": "_getFinalPath",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 431,
- "name": "path",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 243,
- "character": 15
- }
- ]
- },
- {
- "id": 401,
- "name": "createSignedUrl",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 402,
- "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": 403,
- "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": 404,
- "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": 405,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 406,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 140,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 407,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 408,
- "name": "signedUrl",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 140,
- "character": 32
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 408
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 140,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 409,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 140,
- "character": 56
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 406,
- 409
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 140,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 137,
- "character": 23
- }
- ]
- },
- {
- "id": 410,
- "name": "download",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 411,
- "name": "download",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Downloads a file."
- },
- "parameters": [
- {
- "id": 412,
- "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": 413,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 414,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 161,
- "character": 46
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Blob"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 415,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 161,
- "character": 66
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 414,
- 415
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 161,
- "character": 40
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 161,
- "character": 16
- }
- ]
- },
- {
- "id": 422,
- "name": "list",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 423,
- "name": "list",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Lists all the files within a bucket."
- },
- "parameters": [
- {
- "id": 424,
- "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": 425,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "Search options, including `limit`, `offset`, and `sortBy`.\n"
- },
- "type": {
- "type": "reference",
- "id": 300,
- "name": "SearchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 426,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 427,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 231,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 284,
- "name": "FileObject"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 428,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 231,
- "character": 47
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 427,
- 428
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 231,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 228,
- "character": 12
- }
- ]
- },
- {
- "id": 392,
- "name": "move",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 393,
- "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": 394,
- "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": 395,
- "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": 396,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 397,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 118,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 398,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 399,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 118,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 399
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 118,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 400,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 118,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 397,
- 400
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 118,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 115,
- "character": 12
- }
- ]
- },
- {
- "id": 416,
- "name": "remove",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 417,
- "name": "remove",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Deletes files within the same bucket"
- },
- "parameters": [
- {
- "id": 418,
- "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": 419,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 420,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 180,
- "character": 47
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 284,
- "name": "FileObject"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 421,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 180,
- "character": 75
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 420,
- 421
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 180,
- "character": 41
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 180,
- "character": 14
- }
- ]
- },
- {
- "id": 382,
- "name": "update",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 383,
- "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": 384,
- "name": "path",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The relative file path including the bucket ID. Should be of the format `bucket/folder/subfolder`. The bucket already exist before attempting to upload."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 385,
- "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": 386,
- "name": "fileOptions",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "HTTP headers. For example `cacheControl`\n"
- },
- "type": {
- "type": "reference",
- "id": 298,
- "name": "FileOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 387,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 388,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 80,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 389,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 390,
- "name": "Key",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 80,
- "character": 26
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 390
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 80,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 391,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 80,
- "character": 50
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 388,
- 391
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 80,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 76,
- "character": 14
- }
- ]
- },
- {
- "id": 372,
- "name": "upload",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 373,
- "name": "upload",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Uploads a file to an existing bucket."
- },
- "parameters": [
- {
- "id": 374,
- "name": "path",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The relative file path including the bucket ID. Should be of the format `bucket/folder/subfolder/filename.png`. The bucket must already exist before attempting to upload."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 375,
- "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": 376,
- "name": "fileOptions",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "HTTP headers. For example `cacheControl`\n"
- },
- "type": {
- "type": "reference",
- "id": 298,
- "name": "FileOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 377,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 378,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 40,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 379,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 380,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 40,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 380
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 40,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 381,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 40,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 378,
- 381
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 40,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 36,
- "character": 14
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 364
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 363,
- 359,
- 358
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 429,
- 401,
- 410,
- 422,
- 392,
- 416,
- 382,
- 372
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 18,
- "character": 27
- }
- ]
- },
- {
- "id": 438,
- "name": "DEFAULT_FILE_OPTIONS",
- "kind": 2097152,
- "kindString": "Object literal",
- "flags": {
- "isConst": true
- },
- "children": [
- {
- "id": 439,
- "name": "cacheControl",
- "kind": 32,
- "kindString": "Variable",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 15,
- "character": 14
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "\"3600\""
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 439
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 14,
- "character": 26
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 432,
- "name": "DEFAULT_SEARCH_OPTIONS",
- "kind": 2097152,
- "kindString": "Object literal",
- "flags": {
- "isConst": true
- },
- "children": [
- {
- "id": 433,
- "name": "limit",
- "kind": 32,
- "kindString": "Variable",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 6,
- "character": 7
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "0"
- },
- {
- "id": 434,
- "name": "offset",
- "kind": 32,
- "kindString": "Variable",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 7,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "number"
- },
- "defaultValue": "0"
- },
- {
- "id": 435,
- "name": "sortBy",
- "kind": 2097152,
- "kindString": "Object literal",
- "flags": {},
- "children": [
- {
- "id": 436,
- "name": "column",
- "kind": 32,
- "kindString": "Variable",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 9,
- "character": 10
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "\"name\""
- },
- {
- "id": 437,
- "name": "order",
- "kind": 32,
- "kindString": "Variable",
- "flags": {},
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 10,
- "character": 9
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- },
- "defaultValue": "\"asc\""
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 436,
- 437
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 8,
- "character": 8
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 433,
- 434
- ]
- },
- {
- "title": "Object literals",
- "kind": 2097152,
- "children": [
- 435
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 5,
- "character": 28
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 357
- ]
- },
- {
- "title": "Object literals",
- "kind": 2097152,
- "children": [
- 438,
- 432
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageFileApi.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 229,
- "name": "\"lib/storage/fetch\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/fetch.ts",
- "children": [
- {
- "id": 230,
- "name": "FetchOptions",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 231,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 4,
- "character": 9
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "reflection",
- "declaration": {
- "id": 232,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 233,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 234,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ]
- }
- }
- ]
- }
- },
- {
- "id": 235,
- "name": "noResolveJson",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/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": [
- 231,
- 235
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 3,
- "character": 29
- }
- ]
- },
- {
- "id": 236,
- "name": "RequestMethodType",
- "kind": 4194304,
- "kindString": "Type alias",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/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": "DELETE"
- }
- ]
- }
- },
- {
- "id": 237,
- "name": "_getErrorMessage",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isConst": true
- },
- "signatures": [
- {
- "id": 238,
- "name": "_getErrorMessage",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 239,
- "name": "err",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 12,
- "character": 22
- }
- ]
- },
- {
- "id": 244,
- "name": "_getRequestParams",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isConst": true
- },
- "signatures": [
- {
- "id": 245,
- "name": "_getRequestParams",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 246,
- "name": "method",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 236,
- "name": "RequestMethodType"
- }
- },
- {
- "id": 247,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- },
- {
- "id": 248,
- "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": 249,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {},
- "indexSignature": [
- {
- "id": 250,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {},
- "parameters": [
- {
- "id": 251,
- "name": "k",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ]
- }
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 27,
- "character": 23
- }
- ]
- },
- {
- "id": 252,
- "name": "_handleRequest",
- "kind": 64,
- "kindString": "Function",
- "flags": {},
- "signatures": [
- {
- "id": 253,
- "name": "_handleRequest",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 254,
- "name": "method",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "reference",
- "id": 236,
- "name": "RequestMethodType"
- }
- },
- {
- "id": 255,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 256,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- },
- {
- "id": 257,
- "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": "src/lib/storage/fetch.ts",
- "line": 40,
- "character": 29
- }
- ]
- },
- {
- "id": 258,
- "name": "get",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 259,
- "name": "get",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 260,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 261,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "any"
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 58,
- "character": 25
- }
- ]
- },
- {
- "id": 240,
- "name": "handleError",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isConst": true
- },
- "signatures": [
- {
- "id": 241,
- "name": "handleError",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {},
- "parameters": [
- {
- "id": 242,
- "name": "error",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- },
- {
- "id": 243,
- "name": "reject",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {},
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "any"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 15,
- "character": 17
- }
- ]
- },
- {
- "id": 262,
- "name": "post",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 263,
- "name": "post",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 264,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 265,
- "name": "body",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 266,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "any"
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 62,
- "character": 26
- }
- ]
- },
- {
- "id": 267,
- "name": "put",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 268,
- "name": "put",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 269,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 270,
- "name": "body",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 271,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "any"
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 66,
- "character": 25
- }
- ]
- },
- {
- "id": 272,
- "name": "remove",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 273,
- "name": "remove",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 274,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 275,
- "name": "body",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "object"
- }
- },
- {
- "id": 276,
- "name": "options",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "type": {
- "type": "reference",
- "id": 230,
- "name": "FetchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "intrinsic",
- "name": "any"
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 70,
- "character": 28
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Interfaces",
- "kind": 256,
- "children": [
- 230
- ]
- },
- {
- "title": "Type aliases",
- "kind": 4194304,
- "children": [
- 236
- ]
- },
- {
- "title": "Functions",
- "kind": 64,
- "children": [
- 237,
- 244,
- 252,
- 258,
- 240,
- 262,
- 267,
- 272
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/fetch.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 353,
- "name": "\"lib/storage/helpers\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/helpers.ts",
- "children": [
- {
- "id": 354,
- "name": "isBrowser",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true,
- "isConst": true
- },
- "signatures": [
- {
- "id": 355,
- "name": "isBrowser",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "boolean"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/helpers.ts",
- "line": 1,
- "character": 22
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Functions",
- "kind": 64,
- "children": [
- 354
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/helpers.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 440,
- "name": "\"lib/storage/index\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/index.ts",
- "children": [
- {
- "id": 443,
- "name": "Bucket",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 278
- },
- {
- "id": 444,
- "name": "FileObject",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 284
- },
- {
- "id": 446,
- "name": "FileOptions",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 298
- },
- {
- "id": 448,
- "name": "Metadata",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 304
- },
- {
- "id": 447,
- "name": "SearchOptions",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 300
- },
- {
- "id": 445,
- "name": "SortBy",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 295
- },
- {
- "id": 441,
- "name": "StorageBucketApi",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 307
- },
- {
- "id": 442,
- "name": "StorageFileApi",
- "kind": 16777216,
- "kindString": "Reference",
- "flags": {
- "isExported": true
- },
- "target": 357
- }
- ],
- "groups": [
- {
- "title": "References",
- "kind": 16777216,
- "children": [
- 443,
- 444,
- 446,
- 448,
- 447,
- 445,
- 441,
- 442
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/index.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 277,
- "name": "\"lib/storage/types\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/types.ts",
- "children": [
- {
- "id": 278,
- "name": "Bucket",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 282,
- "name": "created_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 5,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 279,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 2,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 280,
- "name": "name",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 3,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 281,
- "name": "owner",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 4,
- "character": 7
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 283,
- "name": "updated_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 6,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 282,
- 279,
- 280,
- 281,
- 283
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 1,
- "character": 23
- }
- ]
- },
- {
- "id": 284,
- "name": "FileObject",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 286,
- "name": "bucket_id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 11,
- "character": 11
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 294,
- "name": "buckets",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 18,
- "character": 9
- }
- ],
- "type": {
- "type": "reference",
- "id": 278,
- "name": "Bucket"
- }
- },
- {
- "id": 290,
- "name": "created_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 15,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 288,
- "name": "id",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 13,
- "character": 4
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 291,
- "name": "last_accessed_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 16,
- "character": 18
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 292,
- "name": "metadata",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 17,
- "character": 10
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 293,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 17,
- "character": 11
- }
- ]
- }
- }
- },
- {
- "id": 285,
- "name": "name",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 10,
- "character": 6
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 287,
- "name": "owner",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 12,
- "character": 7
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 289,
- "name": "updated_at",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 14,
- "character": 12
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 286,
- 294,
- 290,
- 288,
- 291,
- 292,
- 285,
- 287,
- 289
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 9,
- "character": 27
- }
- ]
- },
- {
- "id": 298,
- "name": "FileOptions",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 299,
- "name": "cacheControl",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 27,
- "character": 14
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 299
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 26,
- "character": 28
- }
- ]
- },
- {
- "id": 304,
- "name": "Metadata",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 305,
- "name": "name",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 43,
- "character": 6
- }
- ],
"type": {
"type": "intrinsic",
"name": "string"
}
}
],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 305
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 42,
- "character": 25
- }
- ]
- },
- {
- "id": 300,
- "name": "SearchOptions",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 301,
- "name": "limit",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "shortText": "The number of files you want to be returned."
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 32,
- "character": 7
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "number"
- }
- ]
- }
- },
- {
- "id": 302,
- "name": "offset",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "shortText": "The starting position."
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 35,
- "character": 8
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "number"
- }
- ]
- }
- },
- {
- "id": 303,
- "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": "src/lib/storage/types.ts",
- "line": 38,
- "character": 8
- }
- ],
- "type": {
- "type": "reference",
- "id": 295,
- "name": "SortBy"
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 301,
- 302,
- 303
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 30,
- "character": 30
- }
- ]
- },
- {
- "id": 295,
- "name": "SortBy",
- "kind": 256,
- "kindString": "Interface",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 296,
- "name": "column",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 22,
- "character": 8
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- },
- {
- "id": 297,
- "name": "order",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/types.ts",
- "line": 23,
- "character": 7
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "intrinsic",
- "name": "undefined"
- },
- {
- "type": "intrinsic",
- "name": "string"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 296,
- 297
- ]
- }
- ],
"sources": [
{
- "fileName": "src/lib/storage/types.ts",
- "line": 21,
- "character": 23
+ "fileName": "src/lib/helpers.ts",
+ "line": 3,
+ "character": 20
}
]
}
],
"groups": [
{
- "title": "Interfaces",
- "kind": 256,
+ "title": "Functions",
+ "kind": 64,
"children": [
- 278,
- 284,
- 298,
- 304,
- 300,
- 295
+ 318
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/types.ts",
+ "fileName": "src/lib/helpers.ts",
"line": 1,
"character": 0
}
@@ -13154,22 +7780,15 @@
"title": "Modules",
"kind": 1,
"children": [
- 499,
- 562,
+ 248,
+ 311,
26,
- 142,
- 119,
- 449,
+ 161,
+ 138,
1,
- 568,
- 306,
- 356,
- 229,
- 353,
- 440,
- 277,
+ 317,
4
]
}
]
-}
+}
\ No newline at end of file
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index b8a2a416322..f7f0c51633b 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -39,6 +39,7 @@ info:
- auth.update()
- auth.onAuthStateChange()
- Reset Password (Email)
+ - Delete User
- name: 'Data'
items:
- select()
@@ -452,7 +453,7 @@ pages:
You should then use the access_token in the url and new password to update the user as follows:
```js
- const { error, data } = await auth.api
+ const { error, data } = await supabase.auth.api
.updateUser(access_token, { password : new_password })
```
examples:
@@ -463,6 +464,19 @@ pages:
const { data, error } = supabase.auth.api.resetPasswordForEmail('[email protected]')
```
+ Delete User:
+ $ref: '@supabase/gotrue-js."GoTrueApi".GoTrueApi.deleteUser'
+ examples:
+ - name: Remove a user completely.
+ isSpotlight: true
+ js: |
+ ```js
+ const { user, error } = await supabase.auth.api.delete(
+ '715ed5db-f090-4b8c-a067-640ecee36aa0',
+ 'YOUR_SERVICE_ROLE_KEY'
+ )
+ ```
+
select():
title: 'Fetch data: select()'
$ref: '@supabase/postgrest-js."lib/PostgrestQueryBuilder".PostgrestQueryBuilder.select'