Skip to content

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

UPdates to the new method definitions

Paul Copplestone9cab26cf9525
diff --git a/web/sidebar_spec_supabase.js b/web/sidebar_spec_supabase.js
index 29a3a6d7227..e7fb181c3fb 100644
--- a/web/sidebar_spec_supabase.js
+++ b/web/sidebar_spec_supabase.js
@@ -27,7 +27,7 @@ module.exports = {
{
type: 'category',
label: 'Storage',
- items: ['reference/javascript/storage-createbucket', 'reference/javascript/storage-getbucket', 'reference/javascript/storage-listbuckets', 'reference/javascript/storage-deletebucket', 'reference/javascript/storage-emptybucket', 'reference/javascript/storage-from-upload', 'reference/javascript/storage-from-download', 'reference/javascript/storage-from-list', 'reference/javascript/storage-from-update', 'reference/javascript/storage-from-move', 'reference/javascript/storage-from-delete', 'reference/javascript/storage-from-createsignedurl', 'reference/javascript/storage-from-deletefiles'],
+ items: ['reference/javascript/storage-createbucket', 'reference/javascript/storage-getbucket', 'reference/javascript/storage-listbuckets', 'reference/javascript/storage-deletebucket', 'reference/javascript/storage-emptybucket', 'reference/javascript/storage-from-upload', 'reference/javascript/storage-from-download', 'reference/javascript/storage-from-list', 'reference/javascript/storage-from-update', 'reference/javascript/storage-from-move', 'reference/javascript/storage-from-remove', 'reference/javascript/storage-from-createsignedurl', 'reference/javascript/storage-from-removefiles'],
collapsed: true,
},
{
diff --git a/web/spec/combined.json b/web/spec/combined.json
index f624e687d38..1b01dc90ecd 100644
--- a/web/spec/combined.json
+++ b/web/spec/combined.json
@@ -9,7 +9,7 @@
"originalName": "",
"children": [
{
- "id": 555,
+ "id": 499,
"name": "\"SupabaseClient\"",
"kind": 1,
"kindString": "Module",
@@ -19,7 +19,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts",
"children": [
{
- "id": 556,
+ "id": 500,
"name": "SupabaseClient",
"kind": 128,
"kindString": "Class",
@@ -32,7 +32,7 @@
},
"children": [
{
- "id": 564,
+ "id": 508,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -44,7 +44,7 @@
},
"signatures": [
{
- "id": 567,
+ "id": 511,
"name": "new SupabaseClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -56,7 +56,7 @@
},
"parameters": [
{
- "id": 568,
+ "id": 512,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -72,7 +72,7 @@
}
},
{
- "id": 569,
+ "id": 513,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -88,7 +88,7 @@
}
},
{
- "id": 570,
+ "id": 514,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -105,7 +105,7 @@
],
"type": {
"type": "reference",
- "id": 556,
+ "id": 500,
"name": "SupabaseClient"
}
}
@@ -119,7 +119,7 @@
]
},
{
- "id": 557,
+ "id": 501,
"name": "auth",
"kind": 1024,
"kindString": "Property",
@@ -143,7 +143,7 @@
}
},
{
- "id": 561,
+ "id": 505,
"name": "authUrl",
"kind": 1024,
"kindString": "Property",
@@ -164,7 +164,7 @@
}
},
{
- "id": 563,
+ "id": 507,
"name": "realtime",
"kind": 1024,
"kindString": "Property",
@@ -185,7 +185,7 @@
}
},
{
- "id": 560,
+ "id": 504,
"name": "realtimeUrl",
"kind": 1024,
"kindString": "Property",
@@ -206,7 +206,7 @@
}
},
{
- "id": 559,
+ "id": 503,
"name": "restUrl",
"kind": 1024,
"kindString": "Property",
@@ -227,7 +227,7 @@
}
},
{
- "id": 558,
+ "id": 502,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -248,7 +248,7 @@
}
},
{
- "id": 562,
+ "id": 506,
"name": "storageUrl",
"kind": 1024,
"kindString": "Property",
@@ -269,7 +269,7 @@
}
},
{
- "id": 566,
+ "id": 510,
"name": "supabaseKey",
"kind": 1024,
"kindString": "Property",
@@ -294,7 +294,7 @@
}
},
{
- "id": 565,
+ "id": 509,
"name": "supabaseUrl",
"kind": 1024,
"kindString": "Property",
@@ -319,7 +319,7 @@
}
},
{
- "id": 571,
+ "id": 515,
"name": "storage",
"kind": 262144,
"kindString": "Accessor",
@@ -331,7 +331,7 @@
},
"getSignature": [
{
- "id": 572,
+ "id": 516,
"name": "__get",
"kind": 524288,
"kindString": "Get signature",
@@ -343,7 +343,7 @@
},
"type": {
"type": "reference",
- "id": 441,
+ "id": 450,
"name": "SupabaseStorageClient"
}
}
@@ -357,7 +357,7 @@
]
},
{
- "id": 609,
+ "id": 551,
"name": "_closeChannel",
"kind": 2048,
"kindString": "Method",
@@ -367,7 +367,7 @@
},
"signatures": [
{
- "id": 610,
+ "id": 552,
"name": "_closeChannel",
"kind": 4096,
"kindString": "Call signature",
@@ -376,7 +376,7 @@
},
"parameters": [
{
- "id": 611,
+ "id": 553,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -404,13 +404,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 182,
+ "line": 178,
"character": 23
}
]
},
{
- "id": 585,
+ "id": 529,
"name": "_closeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -420,7 +420,7 @@
},
"signatures": [
{
- "id": 586,
+ "id": 530,
"name": "_closeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -429,7 +429,7 @@
},
"parameters": [
{
- "id": 587,
+ "id": 531,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -463,7 +463,7 @@
]
},
{
- "id": 604,
+ "id": 546,
"name": "_getAuthHeaders",
"kind": 2048,
"kindString": "Method",
@@ -473,7 +473,7 @@
},
"signatures": [
{
- "id": 605,
+ "id": 547,
"name": "_getAuthHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -483,7 +483,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 606,
+ "id": 548,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -492,7 +492,7 @@
},
"indexSignature": [
{
- "id": 607,
+ "id": 549,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -501,7 +501,7 @@
},
"parameters": [
{
- "id": 608,
+ "id": 550,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -523,7 +523,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 174,
+ "line": 170,
"character": 28
}
]
@@ -534,13 +534,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 174,
+ "line": 170,
"character": 25
}
]
},
{
- "id": 600,
+ "id": 544,
"name": "_initPostgRESTClient",
"kind": 2048,
"kindString": "Method",
@@ -550,7 +550,7 @@
},
"signatures": [
{
- "id": 601,
+ "id": 545,
"name": "_initPostgRESTClient",
"kind": 4096,
"kindString": "Call signature",
@@ -572,7 +572,7 @@
]
},
{
- "id": 598,
+ "id": 542,
"name": "_initRealtimeClient",
"kind": 2048,
"kindString": "Method",
@@ -582,7 +582,7 @@
},
"signatures": [
{
- "id": 599,
+ "id": 543,
"name": "_initRealtimeClient",
"kind": 4096,
"kindString": "Call signature",
@@ -604,40 +604,7 @@
]
},
{
- "id": 602,
- "name": "_initStorageClient",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isPrivate": true,
- "isExported": true
- },
- "signatures": [
- {
- "id": 603,
- "name": "_initStorageClient",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reference",
- "id": 441,
- "name": "SupabaseStorageClient"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/SupabaseClient.ts",
- "line": 170,
- "character": 28
- }
- ]
- },
- {
- "id": 590,
+ "id": 534,
"name": "_initSupabaseAuthClient",
"kind": 2048,
"kindString": "Method",
@@ -647,7 +614,7 @@
},
"signatures": [
{
- "id": 591,
+ "id": 535,
"name": "_initSupabaseAuthClient",
"kind": 4096,
"kindString": "Call signature",
@@ -656,7 +623,7 @@
},
"parameters": [
{
- "id": 592,
+ "id": 536,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -667,7 +634,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 593,
+ "id": 537,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -676,7 +643,7 @@
},
"children": [
{
- "id": 594,
+ "id": 538,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -709,7 +676,7 @@
}
},
{
- "id": 596,
+ "id": 540,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -742,7 +709,7 @@
}
},
{
- "id": 597,
+ "id": 541,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -771,7 +738,7 @@
}
},
{
- "id": 595,
+ "id": 539,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -809,10 +776,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 594,
- 596,
- 597,
- 595
+ 538,
+ 540,
+ 541,
+ 539
]
}
],
@@ -843,7 +810,7 @@
]
},
{
- "id": 573,
+ "id": 517,
"name": "from",
"kind": 2048,
"kindString": "Method",
@@ -852,7 +819,7 @@
},
"signatures": [
{
- "id": 574,
+ "id": 518,
"name": "from",
"kind": 4096,
"kindString": "Call signature",
@@ -864,7 +831,7 @@
},
"typeParameter": [
{
- "id": 575,
+ "id": 519,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -875,7 +842,7 @@
],
"parameters": [
{
- "id": 576,
+ "id": 520,
"name": "table",
"kind": 32768,
"kindString": "Parameter",
@@ -917,7 +884,7 @@
]
},
{
- "id": 588,
+ "id": 532,
"name": "getSubscriptions",
"kind": 2048,
"kindString": "Method",
@@ -926,7 +893,7 @@
},
"signatures": [
{
- "id": 589,
+ "id": 533,
"name": "getSubscriptions",
"kind": 4096,
"kindString": "Call signature",
@@ -954,7 +921,7 @@
]
},
{
- "id": 582,
+ "id": 526,
"name": "removeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -963,7 +930,7 @@
},
"signatures": [
{
- "id": 583,
+ "id": 527,
"name": "removeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -975,7 +942,7 @@
},
"parameters": [
{
- "id": 584,
+ "id": 528,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -1012,7 +979,7 @@
]
},
{
- "id": 577,
+ "id": 521,
"name": "rpc",
"kind": 2048,
"kindString": "Method",
@@ -1021,7 +988,7 @@
},
"signatures": [
{
- "id": 578,
+ "id": 522,
"name": "rpc",
"kind": 4096,
"kindString": "Call signature",
@@ -1033,7 +1000,7 @@
},
"typeParameter": [
{
- "id": 579,
+ "id": 523,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -1044,7 +1011,7 @@
],
"parameters": [
{
- "id": 580,
+ "id": 524,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
@@ -1060,7 +1027,7 @@
}
},
{
- "id": 581,
+ "id": 525,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -1112,46 +1079,45 @@
"title": "Constructors",
"kind": 512,
"children": [
- 564
+ 508
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 557,
- 561,
- 563,
- 560,
- 559,
- 558,
- 562,
- 566,
- 565
+ 501,
+ 505,
+ 507,
+ 504,
+ 503,
+ 502,
+ 506,
+ 510,
+ 509
]
},
{
"title": "Accessors",
"kind": 262144,
"children": [
- 571
+ 515
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 609,
- 585,
- 604,
- 600,
- 598,
- 602,
- 590,
- 573,
- 588,
- 582,
- 577
+ 551,
+ 529,
+ 546,
+ 544,
+ 542,
+ 534,
+ 517,
+ 532,
+ 526,
+ 521
]
}
],
@@ -1164,7 +1130,7 @@
]
},
{
- "id": 612,
+ "id": 554,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -1173,7 +1139,7 @@
},
"children": [
{
- "id": 614,
+ "id": 556,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -1192,7 +1158,7 @@
"defaultValue": "true"
},
{
- "id": 616,
+ "id": 558,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -1211,7 +1177,7 @@
"defaultValue": "true"
},
{
- "id": 618,
+ "id": 560,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -1226,7 +1192,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 619,
+ "id": 561,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1236,7 +1202,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 617,
+ "id": 559,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -1255,7 +1221,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 615,
+ "id": 557,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -1274,7 +1240,7 @@
"defaultValue": "true"
},
{
- "id": 613,
+ "id": 555,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -1298,12 +1264,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 614,
- 616,
- 618,
- 617,
- 615,
- 613
+ 556,
+ 558,
+ 560,
+ 559,
+ 557,
+ 555
]
}
],
@@ -1325,14 +1291,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 556
+ 500
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 612
+ 554
]
}
],
@@ -1345,7 +1311,7 @@
]
},
{
- "id": 620,
+ "id": 562,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -1355,7 +1321,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts",
"children": [
{
- "id": 621,
+ "id": 563,
"name": "createClient",
"kind": 64,
"kindString": "Function",
@@ -1368,7 +1334,7 @@
},
"signatures": [
{
- "id": 622,
+ "id": 564,
"name": "createClient",
"kind": 4096,
"kindString": "Call signature",
@@ -1380,7 +1346,7 @@
},
"parameters": [
{
- "id": 623,
+ "id": 565,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -1393,7 +1359,7 @@
}
},
{
- "id": 624,
+ "id": 566,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -1406,7 +1372,7 @@
}
},
{
- "id": 625,
+ "id": 567,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1423,7 +1389,7 @@
],
"type": {
"type": "reference",
- "id": 556,
+ "id": 500,
"name": "SupabaseClient"
}
}
@@ -1442,7 +1408,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 621
+ 563
]
}
],
@@ -6657,7 +6623,7 @@
]
},
{
- "id": 440,
+ "id": 449,
"name": "\"lib/SupabaseStorageClient\"",
"kind": 1,
"kindString": "Module",
@@ -6667,7 +6633,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseStorageClient.ts",
"children": [
{
- "id": 441,
+ "id": 450,
"name": "SupabaseStorageClient",
"kind": 128,
"kindString": "Class",
@@ -6676,7 +6642,7 @@
},
"children": [
{
- "id": 442,
+ "id": 451,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -6685,7 +6651,7 @@
},
"signatures": [
{
- "id": 443,
+ "id": 452,
"name": "new SupabaseStorageClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -6694,7 +6660,7 @@
},
"parameters": [
{
- "id": 444,
+ "id": 453,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -6707,7 +6673,7 @@
}
},
{
- "id": 445,
+ "id": 454,
"name": "headers",
"kind": 32768,
"kindString": "Parameter",
@@ -6717,7 +6683,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 446,
+ "id": 455,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6726,7 +6692,7 @@
},
"indexSignature": [
{
- "id": 447,
+ "id": 456,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -6735,7 +6701,7 @@
},
"parameters": [
{
- "id": 448,
+ "id": 457,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6768,13 +6734,13 @@
],
"type": {
"type": "reference",
- "id": 441,
+ "id": 450,
"name": "SupabaseStorageClient"
},
"overwrites": {
"type": "reference",
- "id": 316,
- "name": "StorageApi.__constructor"
+ "id": 313,
+ "name": "StorageBucketApi.__constructor"
}
}
],
@@ -6782,34 +6748,35 @@
{
"fileName": "src/lib/SupabaseStorageClient.ts",
"line": 3,
- "character": 55
+ "character": 61
}
],
"overwrites": {
"type": "reference",
- "id": 316,
- "name": "StorageApi.__constructor"
+ "id": 313,
+ "name": "StorageBucketApi.__constructor"
}
},
{
- "id": 450,
+ "id": 462,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {
+ "isProtected": true,
"isExported": true
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 20,
- "character": 9
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 6,
+ "character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 451,
+ "id": 463,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6818,7 +6785,7 @@
},
"indexSignature": [
{
- "id": 452,
+ "id": 464,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -6827,7 +6794,7 @@
},
"parameters": [
{
- "id": 453,
+ "id": 465,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6848,32 +6815,33 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 20,
- "character": 10
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 6,
+ "character": 20
}
]
}
},
"inheritedFrom": {
"type": "reference",
- "id": 312,
- "name": "StorageApi.headers"
+ "id": 309,
+ "name": "StorageBucketApi.headers"
}
},
{
- "id": 449,
+ "id": 461,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {
+ "isProtected": true,
"isExported": true
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 19,
- "character": 5
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 5,
+ "character": 15
}
],
"type": {
@@ -6882,12 +6850,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 311,
- "name": "StorageApi.url"
+ "id": 308,
+ "name": "StorageBucketApi.url"
}
},
{
- "id": 465,
+ "id": 477,
"name": "createBucket",
"kind": 2048,
"kindString": "Method",
@@ -6896,7 +6864,7 @@
},
"signatures": [
{
- "id": 466,
+ "id": 478,
"name": "createBucket",
"kind": 4096,
"kindString": "Call signature",
@@ -6908,7 +6876,7 @@
},
"parameters": [
{
- "id": 467,
+ "id": 479,
"name": "id",
"kind": 32768,
"kindString": "Parameter",
@@ -6930,7 +6898,7 @@
{
"type": "reflection",
"declaration": {
- "id": 468,
+ "id": 480,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6939,7 +6907,7 @@
},
"children": [
{
- "id": 469,
+ "id": 481,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6948,8 +6916,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 48
}
],
@@ -6958,7 +6926,7 @@
"types": [
{
"type": "reference",
- "id": 281,
+ "id": 278,
"name": "Bucket"
},
{
@@ -6969,7 +6937,7 @@
}
},
{
- "id": 470,
+ "id": 482,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6978,8 +6946,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 70
}
],
@@ -7003,15 +6971,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 469,
- 470
+ 481,
+ 482
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 42
}
]
@@ -7022,27 +6990,27 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 334,
- "name": "StorageApi.createBucket"
+ "id": 331,
+ "name": "StorageBucketApi.createBucket"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 20
}
],
"inheritedFrom": {
"type": "reference",
- "id": 334,
- "name": "StorageApi.createBucket"
+ "id": 331,
+ "name": "StorageBucketApi.createBucket"
}
},
{
- "id": 517,
- "name": "createSignedUrl",
+ "id": 491,
+ "name": "deleteBucket",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -7050,48 +7018,32 @@
},
"signatures": [
{
- "id": 518,
- "name": "createSignedUrl",
+ "id": 492,
+ "name": "deleteBucket",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Create signed url to download file."
+ "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket."
},
"parameters": [
{
- "id": 519,
- "name": "path",
+ "id": 493,
+ "name": "id",
"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`."
+ "text": "The unique identifier of the bucket you would like to delete.\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 520,
- "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": {
@@ -7100,7 +7052,7 @@
{
"type": "reflection",
"declaration": {
- "id": 521,
+ "id": 494,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7109,7 +7061,7 @@
},
"children": [
{
- "id": 522,
+ "id": 495,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7118,8 +7070,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 19
}
],
@@ -7129,7 +7081,7 @@
{
"type": "reflection",
"declaration": {
- "id": 523,
+ "id": 496,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7138,8 +7090,8 @@
},
"children": [
{
- "id": 524,
- "name": "signedUrl",
+ "id": 497,
+ "name": "message",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -7147,9 +7099,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 32
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
+ "character": 30
}
],
"type": {
@@ -7163,14 +7115,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 524
+ 497
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 20
}
]
@@ -7184,7 +7136,7 @@
}
},
{
- "id": 525,
+ "id": 498,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7193,9 +7145,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 56
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
+ "character": 54
}
],
"type": {
@@ -7218,15 +7170,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 522,
- 525
+ 495,
+ 498
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 13
}
]
@@ -7237,27 +7189,27 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 386,
- "name": "StorageApi.createSignedUrl"
+ "id": 345,
+ "name": "StorageBucketApi.deleteBucket"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 208,
- "character": 23
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 75,
+ "character": 20
}
],
"inheritedFrom": {
"type": "reference",
- "id": 386,
- "name": "StorageApi.createSignedUrl"
+ "id": 345,
+ "name": "StorageBucketApi.deleteBucket"
}
},
{
- "id": 479,
- "name": "deleteBucket",
+ "id": 483,
+ "name": "emptyBucket",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -7265,19 +7217,19 @@
},
"signatures": [
{
- "id": 480,
- "name": "deleteBucket",
+ "id": 484,
+ "name": "emptyBucket",
"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."
+ "shortText": "Removes all objects inside a single bucket."
},
"parameters": [
{
- "id": 481,
+ "id": 485,
"name": "id",
"kind": 32768,
"kindString": "Parameter",
@@ -7285,7 +7237,7 @@
"isExported": true
},
"comment": {
- "text": "The unique identifier of the bucket you would like to delete.\n"
+ "text": "The unique identifier of the bucket you would like to empty.\n"
},
"type": {
"type": "intrinsic",
@@ -7299,7 +7251,7 @@
{
"type": "reflection",
"declaration": {
- "id": 482,
+ "id": 486,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7308,7 +7260,7 @@
},
"children": [
{
- "id": 483,
+ "id": 487,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7317,8 +7269,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 19
}
],
@@ -7328,7 +7280,7 @@
{
"type": "reflection",
"declaration": {
- "id": 484,
+ "id": 488,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7337,7 +7289,7 @@
},
"children": [
{
- "id": 485,
+ "id": 489,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -7346,8 +7298,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 30
}
],
@@ -7362,14 +7314,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 485
+ 489
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 20
}
]
@@ -7383,7 +7335,7 @@
}
},
{
- "id": 486,
+ "id": 490,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7392,8 +7344,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 54
}
],
@@ -7417,15 +7369,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 483,
- 486
+ 487,
+ 490
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 13
}
]
@@ -7436,27 +7388,27 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 348,
- "name": "StorageApi.deleteBucket"
+ "id": 337,
+ "name": "StorageBucketApi.emptyBucket"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 89,
- "character": 20
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 58,
+ "character": 19
}
],
"inheritedFrom": {
"type": "reference",
- "id": 348,
- "name": "StorageApi.deleteBucket"
+ "id": 337,
+ "name": "StorageBucketApi.emptyBucket"
}
},
{
- "id": 532,
- "name": "deleteFile",
+ "id": 458,
+ "name": "from",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -7464,27 +7416,80 @@
},
"signatures": [
{
- "id": 533,
- "name": "deleteFile",
+ "id": 459,
+ "name": "from",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Deletes a file."
+ "shortText": "Perform file operation in a bucket."
},
"parameters": [
{
- "id": 534,
- "name": "path",
+ "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 file path to be deleted, including the path and file name. For example `folder/image.png`.\n"
+ "text": "The unique identifier of the bucket you would like to retrieve.\n"
},
"type": {
"type": "intrinsic",
@@ -7498,7 +7503,7 @@
{
"type": "reflection",
"declaration": {
- "id": 535,
+ "id": 474,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7507,7 +7512,7 @@
},
"children": [
{
- "id": 536,
+ "id": 475,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7516,63 +7521,18 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 19
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 45
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reflection",
- "declaration": {
- "id": 537,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 538,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 538
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 20
- }
- ]
- }
+ "type": "reference",
+ "id": 278,
+ "name": "Bucket"
},
{
"type": "intrinsic",
@@ -7582,7 +7542,7 @@
}
},
{
- "id": 539,
+ "id": 476,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7591,9 +7551,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 54
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 67
}
],
"type": {
@@ -7616,16 +7576,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 536,
- 539
+ 475,
+ 476
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 13
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 39
}
]
}
@@ -7635,27 +7595,27 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 401,
- "name": "StorageApi.deleteFile"
+ "id": 325,
+ "name": "StorageBucketApi.getBucket"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 249,
- "character": 18
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 17
}
],
"inheritedFrom": {
"type": "reference",
- "id": 401,
- "name": "StorageApi.deleteFile"
+ "id": 325,
+ "name": "StorageBucketApi.getBucket"
}
},
{
- "id": 540,
- "name": "deleteFiles",
+ "id": 466,
+ "name": "listBuckets",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -7663,60 +7623,23 @@
},
"signatures": [
{
- "id": 541,
- "name": "deleteFiles",
+ "id": 467,
+ "name": "listBuckets",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Deletes multiple files within the same bucket"
+ "shortText": "Retrieves the details of all Storage buckets within an existing product."
},
- "parameters": [
- {
- "id": 542,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the files."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 543,
- "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": 544,
+ "id": 468,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7725,7 +7648,7 @@
},
"children": [
{
- "id": 545,
+ "id": 469,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7734,9 +7657,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 269,
- "character": 19
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 37
}
],
"type": {
@@ -7746,8 +7669,8 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 287,
- "name": "FileObject"
+ "id": 278,
+ "name": "Bucket"
}
},
{
@@ -7758,7 +7681,7 @@
}
},
{
- "id": 546,
+ "id": 470,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7767,9 +7690,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 269,
- "character": 47
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 61
}
],
"type": {
@@ -7792,16 +7715,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 545,
- 546
+ 469,
+ 470
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 269,
- "character": 13
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 31
}
]
}
@@ -7811,1718 +7734,168 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 409,
- "name": "StorageApi.deleteFiles"
+ "id": 320,
+ "name": "StorageBucketApi.listBuckets"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 266,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
"character": 19
}
],
"inheritedFrom": {
"type": "reference",
- "id": 409,
- "name": "StorageApi.deleteFiles"
+ "id": 320,
+ "name": "StorageBucketApi.listBuckets"
}
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [
+ 451
+ ]
},
{
- "id": 526,
- "name": "downloadFile",
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 462,
+ 461
+ ]
+ },
+ {
+ "title": "Methods",
"kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 527,
- "name": "downloadFile",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Downloads a file."
- },
- "parameters": [
- {
- "id": 528,
- "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": 529,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 530,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 50
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Blob"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 531,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 70
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 530,
- 531
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 44
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 395,
- "name": "StorageApi.downloadFile"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 20
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 395,
- "name": "StorageApi.downloadFile"
- }
- },
- {
- "id": 471,
- "name": "emptyBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 472,
- "name": "emptyBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Removes all objects inside a single 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 empty.\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/StorageApi.ts",
- "line": 74,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 476,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 477,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 477
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 478,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 475,
- 478
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 340,
- "name": "StorageApi.emptyBucket"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 72,
- "character": 19
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 340,
- "name": "StorageApi.emptyBucket"
- }
- },
- {
- "id": 459,
- "name": "getBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 460,
- "name": "getBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Retrieves the details of an existing Storage bucket."
- },
- "parameters": [
- {
- "id": 461,
- "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": 462,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 463,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 45
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 281,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 464,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 67
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 463,
- 464
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 39
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 328,
- "name": "StorageApi.getBucket"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 17
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 328,
- "name": "StorageApi.getBucket"
- }
- },
- {
- "id": 454,
- "name": "listBuckets",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 455,
- "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": 456,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 457,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 37
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 281,
- "name": "Bucket"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 458,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 61
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 457,
- 458
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 31
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 323,
- "name": "StorageApi.listBuckets"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 19
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 323,
- "name": "StorageApi.listBuckets"
- }
- },
- {
- "id": 547,
- "name": "listFiles",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 548,
- "name": "listFiles",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Lists all the files within a bucket."
- },
- "parameters": [
- {
- "id": 549,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the files."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 550,
- "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": 551,
- "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": 303,
- "name": "SearchOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 552,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 553,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 287,
- "name": "FileObject"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 554,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
- "character": 47
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 553,
- 554
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 416,
- "name": "StorageApi.listFiles"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 318,
- "character": 17
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 416,
- "name": "StorageApi.listFiles"
- }
- },
- {
- "id": 507,
- "name": "moveFile",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 508,
- "name": "moveFile",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Moves an existing file, optionally renaming it at the same time."
- },
- "parameters": [
- {
- "id": 509,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the file."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 510,
- "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": 511,
- "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": 512,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 513,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 514,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 515,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 515
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 516,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 513,
- 516
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 376,
- "name": "StorageApi.moveFile"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 185,
- "character": 16
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 376,
- "name": "StorageApi.moveFile"
- }
- },
- {
- "id": 497,
- "name": "updateFile",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 498,
- "name": "updateFile",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Replaces an existing file at the specified path with a new one."
- },
- "parameters": [
- {
- "id": 499,
- "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": 500,
- "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": 501,
- "name": "fileOptions",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "HTTP headers. For example `cacheControl`\n"
- },
- "type": {
- "type": "reference",
- "id": 301,
- "name": "FileOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 502,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 503,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 504,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 505,
- "name": "Key",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
- "character": 26
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 505
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 506,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
- "character": 50
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 503,
- 506
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 366,
- "name": "StorageApi.updateFile"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 146,
- "character": 18
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 366,
- "name": "StorageApi.updateFile"
- }
- },
- {
- "id": 487,
- "name": "uploadFile",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 488,
- "name": "uploadFile",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Uploads a file to an existing bucket."
- },
- "parameters": [
- {
- "id": 489,
- "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": 490,
- "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": 491,
- "name": "fileOptions",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "HTTP headers. For example `cacheControl`\n"
- },
- "type": {
- "type": "reference",
- "id": 301,
- "name": "FileOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 492,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 493,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 494,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 495,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 495
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 496,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 493,
- 496
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 356,
- "name": "StorageApi.uploadFile"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 107,
- "character": 18
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 356,
- "name": "StorageApi.uploadFile"
- }
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 442
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 450,
- 449
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 465,
- 517,
- 479,
- 532,
- 540,
- 526,
- 471,
- 459,
- 454,
- 547,
- 507,
- 497,
- 487
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.ts",
- "line": 3,
- "character": 34
- }
- ],
- "extendedTypes": [
- {
- "type": "reference",
- "id": 310,
- "name": "StorageApi"
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 441
- ]
- }
- ],
- "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": 626,
- "name": "\"lib/helpers\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts",
- "children": [
- {
- "id": 627,
- "name": "uuid",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 628,
- "name": "uuid",
- "kind": 4096,
- "kindString": "Call signature",
+ "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
},
@@ -9546,7 +7919,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 627
+ 569
]
}
],
@@ -9559,18 +7932,18 @@
]
},
{
- "id": 309,
- "name": "\"lib/storage/StorageApi\"",
+ "id": 306,
+ "name": "\"lib/storage/StorageBucketApi\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/StorageApi.ts",
+ "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/StorageBucketApi.ts",
"children": [
{
- "id": 310,
- "name": "StorageApi",
+ "id": 307,
+ "name": "StorageBucketApi",
"kind": 128,
"kindString": "Class",
"flags": {
@@ -9578,7 +7951,7 @@
},
"children": [
{
- "id": 316,
+ "id": 313,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -9587,8 +7960,8 @@
},
"signatures": [
{
- "id": 317,
- "name": "new StorageApi",
+ "id": 314,
+ "name": "new StorageBucketApi",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {
@@ -9596,7 +7969,7 @@
},
"parameters": [
{
- "id": 318,
+ "id": 315,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -9609,7 +7982,7 @@
}
},
{
- "id": 319,
+ "id": 316,
"name": "headers",
"kind": 32768,
"kindString": "Parameter",
@@ -9619,7 +7992,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 320,
+ "id": 317,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9628,7 +8001,7 @@
},
"indexSignature": [
{
- "id": 321,
+ "id": 318,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -9637,7 +8010,7 @@
},
"parameters": [
{
- "id": 322,
+ "id": 319,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -9658,8 +8031,8 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 22,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 8,
"character": 35
}
]
@@ -9670,38 +8043,39 @@
],
"type": {
"type": "reference",
- "id": 310,
- "name": "StorageApi"
+ "id": 307,
+ "name": "StorageBucketApi"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 20,
- "character": 36
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 6,
+ "character": 46
}
]
},
{
- "id": 312,
+ "id": 309,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {
+ "isProtected": true,
"isExported": true
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 20,
- "character": 9
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 6,
+ "character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 313,
+ "id": 310,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9710,7 +8084,7 @@
},
"indexSignature": [
{
- "id": 314,
+ "id": 311,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -9719,7 +8093,7 @@
},
"parameters": [
{
- "id": 315,
+ "id": 312,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -9740,27 +8114,28 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 20,
- "character": 10
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 6,
+ "character": 20
}
]
}
}
},
{
- "id": 311,
+ "id": 308,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {
+ "isProtected": true,
"isExported": true
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 19,
- "character": 5
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 5,
+ "character": 15
}
],
"type": {
@@ -9769,7 +8144,7 @@
}
},
{
- "id": 334,
+ "id": 331,
"name": "createBucket",
"kind": 2048,
"kindString": "Method",
@@ -9778,7 +8153,7 @@
},
"signatures": [
{
- "id": 335,
+ "id": 332,
"name": "createBucket",
"kind": 4096,
"kindString": "Call signature",
@@ -9790,7 +8165,7 @@
},
"parameters": [
{
- "id": 336,
+ "id": 333,
"name": "id",
"kind": 32768,
"kindString": "Parameter",
@@ -9812,7 +8187,7 @@
{
"type": "reflection",
"declaration": {
- "id": 337,
+ "id": 334,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9821,7 +8196,7 @@
},
"children": [
{
- "id": 338,
+ "id": 335,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9830,8 +8205,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 48
}
],
@@ -9840,7 +8215,7 @@
"types": [
{
"type": "reference",
- "id": 281,
+ "id": 278,
"name": "Bucket"
},
{
@@ -9851,7 +8226,7 @@
}
},
{
- "id": 339,
+ "id": 336,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9860,8 +8235,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 70
}
],
@@ -9885,15 +8260,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 338,
- 339
+ 335,
+ 336
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 42
}
]
@@ -9906,15 +8281,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 20
}
]
},
{
- "id": 386,
- "name": "createSignedUrl",
+ "id": 345,
+ "name": "deleteBucket",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -9922,47 +8297,31 @@
},
"signatures": [
{
- "id": 387,
- "name": "createSignedUrl",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Create signed url to download file."
- },
- "parameters": [
- {
- "id": 388,
- "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": 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": 389,
- "name": "expiresIn",
+ "id": 347,
+ "name": "id",
"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"
+ "text": "The unique identifier of the bucket you would like to delete.\n"
},
"type": {
"type": "intrinsic",
- "name": "number"
+ "name": "string"
}
}
],
@@ -9972,7 +8331,7 @@
{
"type": "reflection",
"declaration": {
- "id": 390,
+ "id": 348,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9981,7 +8340,7 @@
},
"children": [
{
- "id": 391,
+ "id": 349,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9990,8 +8349,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 19
}
],
@@ -10001,7 +8360,7 @@
{
"type": "reflection",
"declaration": {
- "id": 392,
+ "id": 350,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10010,8 +8369,8 @@
},
"children": [
{
- "id": 393,
- "name": "signedUrl",
+ "id": 351,
+ "name": "message",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -10019,9 +8378,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 32
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
+ "character": 30
}
],
"type": {
@@ -10035,14 +8394,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 393
+ 351
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 20
}
]
@@ -10056,7 +8415,7 @@
}
},
{
- "id": 394,
+ "id": 352,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10065,9 +8424,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 56
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
+ "character": 54
}
],
"type": {
@@ -10090,15 +8449,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 391,
- 394
+ 349,
+ 352
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 13
}
]
@@ -10111,15 +8470,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 208,
- "character": 23
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 75,
+ "character": 20
}
]
},
{
- "id": 348,
- "name": "deleteBucket",
+ "id": 337,
+ "name": "emptyBucket",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -10127,19 +8486,19 @@
},
"signatures": [
{
- "id": 349,
- "name": "deleteBucket",
+ "id": 338,
+ "name": "emptyBucket",
"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."
+ "shortText": "Removes all objects inside a single bucket."
},
"parameters": [
{
- "id": 350,
+ "id": 339,
"name": "id",
"kind": 32768,
"kindString": "Parameter",
@@ -10147,7 +8506,7 @@
"isExported": true
},
"comment": {
- "text": "The unique identifier of the bucket you would like to delete.\n"
+ "text": "The unique identifier of the bucket you would like to empty.\n"
},
"type": {
"type": "intrinsic",
@@ -10161,7 +8520,7 @@
{
"type": "reflection",
"declaration": {
- "id": 351,
+ "id": 340,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10170,7 +8529,7 @@
},
"children": [
{
- "id": 352,
+ "id": 341,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10179,8 +8538,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 19
}
],
@@ -10190,7 +8549,7 @@
{
"type": "reflection",
"declaration": {
- "id": 353,
+ "id": 342,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10199,7 +8558,7 @@
},
"children": [
{
- "id": 354,
+ "id": 343,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -10208,8 +8567,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 30
}
],
@@ -10224,14 +8583,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 354
+ 343
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 20
}
]
@@ -10245,7 +8604,7 @@
}
},
{
- "id": 355,
+ "id": 344,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10254,8 +8613,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 54
}
],
@@ -10279,15 +8638,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 352,
- 355
+ 341,
+ 344
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 13
}
]
@@ -10300,15 +8659,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 89,
- "character": 20
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 58,
+ "character": 19
}
]
},
{
- "id": 401,
- "name": "deleteFile",
+ "id": 325,
+ "name": "getBucket",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -10316,27 +8675,27 @@
},
"signatures": [
{
- "id": 402,
- "name": "deleteFile",
+ "id": 326,
+ "name": "getBucket",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Deletes a file."
+ "shortText": "Retrieves the details of an existing Storage bucket."
},
"parameters": [
{
- "id": 403,
- "name": "path",
+ "id": 327,
+ "name": "id",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The file path to be deleted, including the path and file name. For example `folder/image.png`.\n"
+ "text": "The unique identifier of the bucket you would like to retrieve.\n"
},
"type": {
"type": "intrinsic",
@@ -10350,7 +8709,7 @@
{
"type": "reflection",
"declaration": {
- "id": 404,
+ "id": 328,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10359,7 +8718,7 @@
},
"children": [
{
- "id": 405,
+ "id": 329,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10368,63 +8727,18 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 19
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 45
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reflection",
- "declaration": {
- "id": 406,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 407,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 407
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 20
- }
- ]
- }
+ "type": "reference",
+ "id": 278,
+ "name": "Bucket"
},
{
"type": "intrinsic",
@@ -10434,7 +8748,7 @@
}
},
{
- "id": 408,
+ "id": 330,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10443,9 +8757,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 54
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 67
}
],
"type": {
@@ -10468,16 +8782,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 405,
- 408
+ 329,
+ 330
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 13
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 39
}
]
}
@@ -10489,15 +8803,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 249,
- "character": 18
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 17
}
]
},
{
- "id": 409,
- "name": "deleteFiles",
+ "id": 320,
+ "name": "listBuckets",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -10505,60 +8819,23 @@
},
"signatures": [
{
- "id": 410,
- "name": "deleteFiles",
+ "id": 321,
+ "name": "listBuckets",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Deletes multiple files within the same bucket"
+ "shortText": "Retrieves the details of all Storage buckets within an existing product."
},
- "parameters": [
- {
- "id": 411,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the files."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 412,
- "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": 413,
+ "id": 322,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10567,7 +8844,7 @@
},
"children": [
{
- "id": 414,
+ "id": 323,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10576,9 +8853,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 269,
- "character": 19
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 37
}
],
"type": {
@@ -10588,8 +8865,8 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 287,
- "name": "FileObject"
+ "id": 278,
+ "name": "Bucket"
}
},
{
@@ -10600,7 +8877,7 @@
}
},
{
- "id": 415,
+ "id": 324,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10609,9 +8886,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 269,
- "character": 47
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 61
}
],
"type": {
@@ -10634,16 +8911,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 414,
- 415
+ 323,
+ 324
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 269,
- "character": 13
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 31
}
]
}
@@ -10655,158 +8932,389 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 266,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
"character": 19
}
]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [
+ 313
+ ]
+ },
+ {
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 309,
+ 308
+ ]
},
{
- "id": 395,
- "name": "downloadFile",
- "kind": 2048,
- "kindString": "Method",
+ "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": 396,
- "name": "downloadFile",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 365,
+ "name": "new StorageFileApi",
+ "kind": 16384,
+ "kindString": "Constructor signature",
"flags": {
"isExported": true
},
- "comment": {
- "shortText": "Downloads a file."
- },
"parameters": [
{
- "id": 397,
- "name": "path",
+ "id": 366,
+ "name": "url",
"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": [
- {
+ },
+ {
+ "id": 367,
+ "name": "headers",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
"type": "reflection",
"declaration": {
- "id": 398,
+ "id": 368,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {
"isExported": true
},
- "children": [
+ "indexSignature": [
{
- "id": 399,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
+ "id": 369,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
"flags": {
"isExported": true
},
- "sources": [
+ "parameters": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 50
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Blob"
+ "id": 370,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
},
- {
+ "type": {
"type": "intrinsic",
- "name": "null"
+ "name": "string"
}
- ]
- }
- },
- {
- "id": 400,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 70
}
],
"type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
+ "type": "intrinsic",
+ "name": "string"
}
}
],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 399,
- 400
- ]
- }
- ],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 44
+ "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"
}
- ],
- "name": "Promise"
+ }
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 20
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 243,
+ "character": 15
}
]
},
{
- "id": 340,
- "name": "emptyBucket",
+ "id": 401,
+ "name": "createSignedUrl",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -10814,32 +9322,48 @@
},
"signatures": [
{
- "id": 341,
- "name": "emptyBucket",
+ "id": 402,
+ "name": "createSignedUrl",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Removes all objects inside a single bucket."
+ "shortText": "Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds."
},
"parameters": [
{
- "id": 342,
- "name": "id",
+ "id": 403,
+ "name": "path",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The unique identifier of the bucket you would like to empty.\n"
+ "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": {
@@ -10848,7 +9372,7 @@
{
"type": "reflection",
"declaration": {
- "id": 343,
+ "id": 405,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10857,7 +9381,7 @@
},
"children": [
{
- "id": 344,
+ "id": 406,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10866,8 +9390,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 140,
"character": 19
}
],
@@ -10877,7 +9401,7 @@
{
"type": "reflection",
"declaration": {
- "id": 345,
+ "id": 407,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10886,8 +9410,8 @@
},
"children": [
{
- "id": 346,
- "name": "message",
+ "id": 408,
+ "name": "signedUrl",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -10895,9 +9419,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
- "character": 30
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 140,
+ "character": 32
}
],
"type": {
@@ -10911,14 +9435,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 346
+ 408
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 140,
"character": 20
}
]
@@ -10932,7 +9456,7 @@
}
},
{
- "id": 347,
+ "id": 409,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10941,9 +9465,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
- "character": 54
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 140,
+ "character": 56
}
],
"type": {
@@ -10966,15 +9490,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 344,
- 347
+ 406,
+ 409
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 140,
"character": 13
}
]
@@ -10987,15 +9511,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 72,
- "character": 19
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 137,
+ "character": 23
}
]
},
{
- "id": 328,
- "name": "getBucket",
+ "id": 410,
+ "name": "download",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11003,27 +9527,27 @@
},
"signatures": [
{
- "id": 329,
- "name": "getBucket",
+ "id": 411,
+ "name": "download",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Retrieves the details of an existing Storage bucket."
+ "shortText": "Downloads a file."
},
"parameters": [
{
- "id": 330,
- "name": "id",
+ "id": 412,
+ "name": "path",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The unique identifier of the bucket you would like to retrieve.\n"
+ "text": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n"
},
"type": {
"type": "intrinsic",
@@ -11037,7 +9561,7 @@
{
"type": "reflection",
"declaration": {
- "id": 331,
+ "id": 413,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11046,7 +9570,7 @@
},
"children": [
{
- "id": 332,
+ "id": 414,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11055,9 +9579,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 45
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 161,
+ "character": 46
}
],
"type": {
@@ -11065,8 +9589,7 @@
"types": [
{
"type": "reference",
- "id": 281,
- "name": "Bucket"
+ "name": "Blob"
},
{
"type": "intrinsic",
@@ -11076,7 +9599,7 @@
}
},
{
- "id": 333,
+ "id": 415,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11085,9 +9608,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 67
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 161,
+ "character": 66
}
],
"type": {
@@ -11110,16 +9633,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 332,
- 333
+ 414,
+ 415
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 39
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 161,
+ "character": 40
}
]
}
@@ -11131,15 +9654,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 17
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 161,
+ "character": 16
}
]
},
{
- "id": 323,
- "name": "listBuckets",
+ "id": 422,
+ "name": "list",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11147,23 +9670,69 @@
},
"signatures": [
{
- "id": 324,
- "name": "listBuckets",
+ "id": 423,
+ "name": "list",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Retrieves the details of all Storage buckets within an existing product."
+ "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": 325,
+ "id": 426,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11172,7 +9741,7 @@
},
"children": [
{
- "id": 326,
+ "id": 427,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11181,9 +9750,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 37
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 231,
+ "character": 19
}
],
"type": {
@@ -11193,8 +9762,8 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 281,
- "name": "Bucket"
+ "id": 284,
+ "name": "FileObject"
}
},
{
@@ -11205,7 +9774,7 @@
}
},
{
- "id": 327,
+ "id": 428,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11214,9 +9783,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 61
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 231,
+ "character": 47
}
],
"type": {
@@ -11239,16 +9808,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 326,
- 327
+ 427,
+ 428
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 31
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 231,
+ "character": 13
}
]
}
@@ -11260,15 +9829,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 19
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 228,
+ "character": 12
}
]
},
{
- "id": 416,
- "name": "listFiles",
+ "id": 392,
+ "name": "move",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11276,27 +9845,27 @@
},
"signatures": [
{
- "id": 417,
- "name": "listFiles",
+ "id": 393,
+ "name": "move",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Lists all the files within a bucket."
+ "shortText": "Moves an existing file, optionally renaming it at the same time."
},
"parameters": [
{
- "id": 418,
- "name": "bucketId",
+ "id": 394,
+ "name": "fromPath",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The bucket which contains the files."
+ "text": "The original file path, including the current file name. For example `folder/image.png`."
},
"type": {
"type": "intrinsic",
@@ -11304,47 +9873,19 @@
}
},
{
- "id": 419,
- "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": 420,
- "name": "options",
+ "id": 395,
+ "name": "toPath",
"kind": 32768,
"kindString": "Parameter",
"flags": {
- "isExported": true,
- "isOptional": true
+ "isExported": true
},
"comment": {
- "text": "Search options, including `limit`, `offset`, and `sortBy`.\n"
+ "text": "The new file path, including the new file name. For example `folder/image-copy.png`.\n"
},
"type": {
- "type": "reference",
- "id": 303,
- "name": "SearchOptions"
+ "type": "intrinsic",
+ "name": "string"
}
}
],
@@ -11354,7 +9895,7 @@
{
"type": "reflection",
"declaration": {
- "id": 421,
+ "id": 396,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11363,7 +9904,7 @@
},
"children": [
{
- "id": 422,
+ "id": 397,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11372,8 +9913,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 118,
"character": 19
}
],
@@ -11381,11 +9922,53 @@
"type": "union",
"types": [
{
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 287,
- "name": "FileObject"
+ "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
+ }
+ ]
}
},
{
@@ -11396,7 +9979,7 @@
}
},
{
- "id": 423,
+ "id": 400,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11405,9 +9988,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
- "character": 47
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 118,
+ "character": 54
}
],
"type": {
@@ -11430,15 +10013,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 422,
- 423
+ 397,
+ 400
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 118,
"character": 13
}
]
@@ -11451,15 +10034,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 318,
- "character": 17
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 115,
+ "character": 12
}
]
},
{
- "id": 376,
- "name": "moveFile",
+ "id": 416,
+ "name": "remove",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11467,63 +10050,34 @@
},
"signatures": [
{
- "id": 377,
- "name": "moveFile",
+ "id": 417,
+ "name": "remove",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Moves an existing file, optionally renaming it at the same time."
+ "shortText": "Deletes files within the same bucket"
},
"parameters": [
{
- "id": 378,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the file."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 379,
- "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": 380,
- "name": "toPath",
+ "id": 418,
+ "name": "paths",
"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"
+ "text": "An array of files to be deletes, including the path and file name. For example [`folder/image.png`].\n"
},
"type": {
- "type": "intrinsic",
- "name": "string"
+ "type": "array",
+ "elementType": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
}
],
@@ -11533,7 +10087,7 @@
{
"type": "reflection",
"declaration": {
- "id": 381,
+ "id": 419,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11542,7 +10096,7 @@
},
"children": [
{
- "id": 382,
+ "id": 420,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11551,62 +10105,20 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 19
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 180,
+ "character": 47
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reflection",
- "declaration": {
- "id": 383,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 384,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 384
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 20
- }
- ]
+ "type": "array",
+ "elementType": {
+ "type": "reference",
+ "id": 284,
+ "name": "FileObject"
}
},
{
@@ -11617,7 +10129,7 @@
}
},
{
- "id": 385,
+ "id": 421,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11626,9 +10138,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 54
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 180,
+ "character": 75
}
],
"type": {
@@ -11651,16 +10163,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 382,
- 385
+ 420,
+ 421
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 13
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 180,
+ "character": 41
}
]
}
@@ -11672,15 +10184,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 185,
- "character": 16
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 180,
+ "character": 14
}
]
},
{
- "id": 366,
- "name": "updateFile",
+ "id": 382,
+ "name": "update",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11688,8 +10200,8 @@
},
"signatures": [
{
- "id": 367,
- "name": "updateFile",
+ "id": 383,
+ "name": "update",
"kind": 4096,
"kindString": "Call signature",
"flags": {
@@ -11700,7 +10212,7 @@
},
"parameters": [
{
- "id": 368,
+ "id": 384,
"name": "path",
"kind": 32768,
"kindString": "Parameter",
@@ -11716,7 +10228,7 @@
}
},
{
- "id": 369,
+ "id": 385,
"name": "file",
"kind": 32768,
"kindString": "Parameter",
@@ -11732,7 +10244,7 @@
}
},
{
- "id": 370,
+ "id": 386,
"name": "fileOptions",
"kind": 32768,
"kindString": "Parameter",
@@ -11745,7 +10257,7 @@
},
"type": {
"type": "reference",
- "id": 301,
+ "id": 298,
"name": "FileOptions"
}
}
@@ -11756,7 +10268,7 @@
{
"type": "reflection",
"declaration": {
- "id": 371,
+ "id": 387,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11765,7 +10277,7 @@
},
"children": [
{
- "id": 372,
+ "id": 388,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11774,8 +10286,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 80,
"character": 19
}
],
@@ -11785,7 +10297,7 @@
{
"type": "reflection",
"declaration": {
- "id": 373,
+ "id": 389,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11794,7 +10306,7 @@
},
"children": [
{
- "id": 374,
+ "id": 390,
"name": "Key",
"kind": 32,
"kindString": "Variable",
@@ -11803,8 +10315,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 80,
"character": 26
}
],
@@ -11819,14 +10331,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 374
+ 390
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 80,
"character": 20
}
]
@@ -11840,7 +10352,7 @@
}
},
{
- "id": 375,
+ "id": 391,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11849,8 +10361,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 80,
"character": 50
}
],
@@ -11874,15 +10386,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 372,
- 375
+ 388,
+ 391
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 80,
"character": 13
}
]
@@ -11895,15 +10407,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 146,
- "character": 18
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 76,
+ "character": 14
}
]
},
{
- "id": 356,
- "name": "uploadFile",
+ "id": 372,
+ "name": "upload",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11911,8 +10423,8 @@
},
"signatures": [
{
- "id": 357,
- "name": "uploadFile",
+ "id": 373,
+ "name": "upload",
"kind": 4096,
"kindString": "Call signature",
"flags": {
@@ -11923,7 +10435,7 @@
},
"parameters": [
{
- "id": 358,
+ "id": 374,
"name": "path",
"kind": 32768,
"kindString": "Parameter",
@@ -11939,7 +10451,7 @@
}
},
{
- "id": 359,
+ "id": 375,
"name": "file",
"kind": 32768,
"kindString": "Parameter",
@@ -11955,7 +10467,7 @@
}
},
{
- "id": 360,
+ "id": 376,
"name": "fileOptions",
"kind": 32768,
"kindString": "Parameter",
@@ -11968,7 +10480,7 @@
},
"type": {
"type": "reference",
- "id": 301,
+ "id": 298,
"name": "FileOptions"
}
}
@@ -11979,7 +10491,7 @@
{
"type": "reflection",
"declaration": {
- "id": 361,
+ "id": 377,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11988,7 +10500,7 @@
},
"children": [
{
- "id": 362,
+ "id": 378,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11997,8 +10509,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 40,
"character": 19
}
],
@@ -12008,7 +10520,7 @@
{
"type": "reflection",
"declaration": {
- "id": 363,
+ "id": 379,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -12017,7 +10529,7 @@
},
"children": [
{
- "id": 364,
+ "id": 380,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -12026,8 +10538,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 40,
"character": 30
}
],
@@ -12042,14 +10554,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 364
+ 380
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 40,
"character": 20
}
]
@@ -12063,7 +10575,7 @@
}
},
{
- "id": 365,
+ "id": 381,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -12072,8 +10584,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 40,
"character": 54
}
],
@@ -12097,15 +10609,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 362,
- 365
+ 378,
+ 381
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 40,
"character": 13
}
]
@@ -12118,9 +10630,9 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 107,
- "character": 18
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 36,
+ "character": 14
}
]
}
@@ -12130,54 +10642,43 @@
"title": "Constructors",
"kind": 512,
"children": [
- 316
+ 364
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 312,
- 311
+ 363,
+ 359,
+ 358
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 334,
- 386,
- 348,
+ 429,
401,
- 409,
- 395,
- 340,
- 328,
- 323,
+ 410,
+ 422,
+ 392,
416,
- 376,
- 366,
- 356
+ 382,
+ 372
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 18,
- "character": 23
- }
- ],
- "extendedBy": [
- {
- "type": "reference",
- "id": 441,
- "name": "SupabaseStorageClient"
+ "character": 27
}
]
},
{
- "id": 430,
+ "id": 438,
"name": "DEFAULT_FILE_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -12186,14 +10687,14 @@
},
"children": [
{
- "id": 431,
+ "id": 439,
"name": "cacheControl",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 15,
"character": 14
}
@@ -12210,13 +10711,13 @@
"title": "Variables",
"kind": 32,
"children": [
- 431
+ 439
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 14,
"character": 26
}
@@ -12227,7 +10728,7 @@
}
},
{
- "id": 424,
+ "id": 432,
"name": "DEFAULT_SEARCH_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -12236,14 +10737,14 @@
},
"children": [
{
- "id": 425,
+ "id": 433,
"name": "limit",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 6,
"character": 7
}
@@ -12255,14 +10756,14 @@
"defaultValue": "0"
},
{
- "id": 426,
+ "id": 434,
"name": "offset",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 7,
"character": 8
}
@@ -12274,21 +10775,21 @@
"defaultValue": "0"
},
{
- "id": 427,
+ "id": 435,
"name": "sortBy",
"kind": 2097152,
"kindString": "Object literal",
"flags": {},
"children": [
{
- "id": 428,
+ "id": 436,
"name": "column",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 9,
"character": 10
}
@@ -12300,14 +10801,14 @@
"defaultValue": "\"name\""
},
{
- "id": 429,
+ "id": 437,
"name": "order",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 10,
"character": 9
}
@@ -12324,14 +10825,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 428,
- 429
+ 436,
+ 437
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 8,
"character": 8
}
@@ -12347,21 +10848,21 @@
"title": "Variables",
"kind": 32,
"children": [
- 425,
- 426
+ 433,
+ 434
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 427
+ 435
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 5,
"character": 28
}
@@ -12377,21 +10878,21 @@
"title": "Classes",
"kind": 128,
"children": [
- 310
+ 357
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 430,
- 424
+ 438,
+ 432
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 1,
"character": 0
}
@@ -13221,7 +11722,7 @@
]
},
{
- "id": 277,
+ "id": 353,
"name": "\"lib/storage/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -13231,7 +11732,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/helpers.ts",
"children": [
{
- "id": 278,
+ "id": 354,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -13241,7 +11742,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 355,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -13268,7 +11769,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 278
+ 354
]
}
],
@@ -13281,7 +11782,7 @@
]
},
{
- "id": 432,
+ "id": 440,
"name": "\"lib/storage/index\"",
"kind": 1,
"kindString": "Module",
@@ -13291,74 +11792,84 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/index.ts",
"children": [
{
- "id": 434,
+ "id": 443,
"name": "Bucket",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 281
+ "target": 278
},
{
- "id": 435,
+ "id": 444,
"name": "FileObject",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 287
+ "target": 284
},
{
- "id": 437,
+ "id": 446,
"name": "FileOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 301
+ "target": 298
},
{
- "id": 439,
+ "id": 448,
"name": "Metadata",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 307
+ "target": 304
},
{
- "id": 438,
+ "id": 447,
"name": "SearchOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 303
+ "target": 300
},
{
- "id": 436,
+ "id": 445,
"name": "SortBy",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 298
+ "target": 295
+ },
+ {
+ "id": 441,
+ "name": "StorageBucketApi",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 307
},
{
- "id": 433,
- "name": "StorageApi",
+ "id": 442,
+ "name": "StorageFileApi",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 310
+ "target": 357
}
],
"groups": [
@@ -13366,13 +11877,14 @@
"title": "References",
"kind": 16777216,
"children": [
- 434,
- 435,
- 437,
- 439,
- 438,
- 436,
- 433
+ 443,
+ 444,
+ 446,
+ 448,
+ 447,
+ 445,
+ 441,
+ 442
]
}
],
@@ -13385,7 +11897,7 @@
]
},
{
- "id": 280,
+ "id": 277,
"name": "\"lib/storage/types\"",
"kind": 1,
"kindString": "Module",
@@ -13395,7 +11907,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/types.ts",
"children": [
{
- "id": 281,
+ "id": 278,
"name": "Bucket",
"kind": 256,
"kindString": "Interface",
@@ -13404,7 +11916,7 @@
},
"children": [
{
- "id": 285,
+ "id": 282,
"name": "created_at",
"kind": 1024,
"kindString": "Property",
@@ -13424,7 +11936,7 @@
}
},
{
- "id": 282,
+ "id": 279,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -13444,7 +11956,7 @@
}
},
{
- "id": 283,
+ "id": 280,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -13464,7 +11976,7 @@
}
},
{
- "id": 284,
+ "id": 281,
"name": "owner",
"kind": 1024,
"kindString": "Property",
@@ -13484,7 +11996,7 @@
}
},
{
- "id": 286,
+ "id": 283,
"name": "updated_at",
"kind": 1024,
"kindString": "Property",
@@ -13509,11 +12021,11 @@
"title": "Properties",
"kind": 1024,
"children": [
- 285,
282,
- 283,
- 284,
- 286
+ 279,
+ 280,
+ 281,
+ 283
]
}
],
@@ -13526,7 +12038,7 @@
]
},
{
- "id": 287,
+ "id": 284,
"name": "FileObject",
"kind": 256,
"kindString": "Interface",
@@ -13535,7 +12047,7 @@
},
"children": [
{
- "id": 289,
+ "id": 286,
"name": "bucket_id",
"kind": 1024,
"kindString": "Property",
@@ -13555,7 +12067,7 @@
}
},
{
- "id": 297,
+ "id": 294,
"name": "buckets",
"kind": 1024,
"kindString": "Property",
@@ -13571,12 +12083,12 @@
],
"type": {
"type": "reference",
- "id": 281,
+ "id": 278,
"name": "Bucket"
}
},
{
- "id": 293,
+ "id": 290,
"name": "created_at",
"kind": 1024,
"kindString": "Property",
@@ -13596,7 +12108,7 @@
}
},
{
- "id": 291,
+ "id": 288,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -13616,7 +12128,7 @@
}
},
{
- "id": 294,
+ "id": 291,
"name": "last_accessed_at",
"kind": 1024,
"kindString": "Property",
@@ -13636,7 +12148,7 @@
}
},
{
- "id": 295,
+ "id": 292,
"name": "metadata",
"kind": 1024,
"kindString": "Property",
@@ -13653,7 +12165,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 296,
+ "id": 293,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13671,7 +12183,7 @@
}
},
{
- "id": 288,
+ "id": 285,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -13691,7 +12203,7 @@
}
},
{
- "id": 290,
+ "id": 287,
"name": "owner",
"kind": 1024,
"kindString": "Property",
@@ -13711,7 +12223,7 @@
}
},
{
- "id": 292,
+ "id": 289,
"name": "updated_at",
"kind": 1024,
"kindString": "Property",
@@ -13736,15 +12248,15 @@
"title": "Properties",
"kind": 1024,
"children": [
- 289,
- 297,
- 293,
- 291,
+ 286,
294,
- 295,
- 288,
290,
- 292
+ 288,
+ 291,
+ 292,
+ 285,
+ 287,
+ 289
]
}
],
@@ -13757,7 +12269,7 @@
]
},
{
- "id": 301,
+ "id": 298,
"name": "FileOptions",
"kind": 256,
"kindString": "Interface",
@@ -13766,7 +12278,7 @@
},
"children": [
{
- "id": 302,
+ "id": 299,
"name": "cacheControl",
"kind": 1024,
"kindString": "Property",
@@ -13791,7 +12303,7 @@
"title": "Properties",
"kind": 1024,
"children": [
- 302
+ 299
]
}
],
@@ -13804,7 +12316,7 @@
]
},
{
- "id": 307,
+ "id": 304,
"name": "Metadata",
"kind": 256,
"kindString": "Interface",
@@ -13813,7 +12325,7 @@
},
"children": [
{
- "id": 308,
+ "id": 305,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -13838,7 +12350,7 @@
"title": "Properties",
"kind": 1024,
"children": [
- 308
+ 305
]
}
],
@@ -13851,7 +12363,7 @@
]
},
{
- "id": 303,
+ "id": 300,
"name": "SearchOptions",
"kind": 256,
"kindString": "Interface",
@@ -13860,7 +12372,7 @@
},
"children": [
{
- "id": 304,
+ "id": 301,
"name": "limit",
"kind": 1024,
"kindString": "Property",
@@ -13893,7 +12405,7 @@
}
},
{
- "id": 305,
+ "id": 302,
"name": "offset",
"kind": 1024,
"kindString": "Property",
@@ -13926,7 +12438,7 @@
}
},
{
- "id": 306,
+ "id": 303,
"name": "sortBy",
"kind": 1024,
"kindString": "Property",
@@ -13946,7 +12458,7 @@
],
"type": {
"type": "reference",
- "id": 298,
+ "id": 295,
"name": "SortBy"
}
}
@@ -13956,9 +12468,9 @@
"title": "Properties",
"kind": 1024,
"children": [
- 304,
- 305,
- 306
+ 301,
+ 302,
+ 303
]
}
],
@@ -13971,7 +12483,7 @@
]
},
{
- "id": 298,
+ "id": 295,
"name": "SortBy",
"kind": 256,
"kindString": "Interface",
@@ -13980,7 +12492,7 @@
},
"children": [
{
- "id": 299,
+ "id": 296,
"name": "column",
"kind": 1024,
"kindString": "Property",
@@ -14010,7 +12522,7 @@
}
},
{
- "id": 300,
+ "id": 297,
"name": "order",
"kind": 1024,
"kindString": "Property",
@@ -14045,8 +12557,8 @@
"title": "Properties",
"kind": 1024,
"children": [
- 299,
- 300
+ 296,
+ 297
]
}
],
@@ -14064,12 +12576,12 @@
"title": "Interfaces",
"kind": 256,
"children": [
- 281,
- 287,
- 301,
- 307,
- 303,
- 298
+ 278,
+ 284,
+ 298,
+ 304,
+ 300,
+ 295
]
}
],
@@ -14645,19 +13157,20 @@
"title": "Modules",
"kind": 1,
"children": [
- 555,
- 620,
+ 499,
+ 562,
26,
142,
119,
- 440,
+ 449,
1,
- 626,
- 309,
+ 568,
+ 306,
+ 356,
229,
+ 353,
+ 440,
277,
- 432,
- 280,
4
]
}
diff --git a/web/spec/supabase.json b/web/spec/supabase.json
index 3b1dbf8e5d0..e5f529aefe4 100644
--- a/web/spec/supabase.json
+++ b/web/spec/supabase.json
@@ -6,7 +6,7 @@
"originalName": "",
"children": [
{
- "id": 555,
+ "id": 499,
"name": "\"SupabaseClient\"",
"kind": 1,
"kindString": "Module",
@@ -16,7 +16,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/SupabaseClient.ts",
"children": [
{
- "id": 556,
+ "id": 500,
"name": "SupabaseClient",
"kind": 128,
"kindString": "Class",
@@ -29,7 +29,7 @@
},
"children": [
{
- "id": 564,
+ "id": 508,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -41,7 +41,7 @@
},
"signatures": [
{
- "id": 567,
+ "id": 511,
"name": "new SupabaseClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -53,7 +53,7 @@
},
"parameters": [
{
- "id": 568,
+ "id": 512,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -69,7 +69,7 @@
}
},
{
- "id": 569,
+ "id": 513,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -85,7 +85,7 @@
}
},
{
- "id": 570,
+ "id": 514,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -102,7 +102,7 @@
],
"type": {
"type": "reference",
- "id": 556,
+ "id": 500,
"name": "SupabaseClient"
}
}
@@ -116,7 +116,7 @@
]
},
{
- "id": 557,
+ "id": 501,
"name": "auth",
"kind": 1024,
"kindString": "Property",
@@ -140,7 +140,7 @@
}
},
{
- "id": 561,
+ "id": 505,
"name": "authUrl",
"kind": 1024,
"kindString": "Property",
@@ -161,7 +161,7 @@
}
},
{
- "id": 563,
+ "id": 507,
"name": "realtime",
"kind": 1024,
"kindString": "Property",
@@ -182,7 +182,7 @@
}
},
{
- "id": 560,
+ "id": 504,
"name": "realtimeUrl",
"kind": 1024,
"kindString": "Property",
@@ -203,7 +203,7 @@
}
},
{
- "id": 559,
+ "id": 503,
"name": "restUrl",
"kind": 1024,
"kindString": "Property",
@@ -224,7 +224,7 @@
}
},
{
- "id": 558,
+ "id": 502,
"name": "schema",
"kind": 1024,
"kindString": "Property",
@@ -245,7 +245,7 @@
}
},
{
- "id": 562,
+ "id": 506,
"name": "storageUrl",
"kind": 1024,
"kindString": "Property",
@@ -266,7 +266,7 @@
}
},
{
- "id": 566,
+ "id": 510,
"name": "supabaseKey",
"kind": 1024,
"kindString": "Property",
@@ -291,7 +291,7 @@
}
},
{
- "id": 565,
+ "id": 509,
"name": "supabaseUrl",
"kind": 1024,
"kindString": "Property",
@@ -316,7 +316,7 @@
}
},
{
- "id": 571,
+ "id": 515,
"name": "storage",
"kind": 262144,
"kindString": "Accessor",
@@ -328,7 +328,7 @@
},
"getSignature": [
{
- "id": 572,
+ "id": 516,
"name": "__get",
"kind": 524288,
"kindString": "Get signature",
@@ -340,7 +340,7 @@
},
"type": {
"type": "reference",
- "id": 441,
+ "id": 450,
"name": "SupabaseStorageClient"
}
}
@@ -354,7 +354,7 @@
]
},
{
- "id": 609,
+ "id": 551,
"name": "_closeChannel",
"kind": 2048,
"kindString": "Method",
@@ -364,7 +364,7 @@
},
"signatures": [
{
- "id": 610,
+ "id": 552,
"name": "_closeChannel",
"kind": 4096,
"kindString": "Call signature",
@@ -373,7 +373,7 @@
},
"parameters": [
{
- "id": 611,
+ "id": 553,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -401,13 +401,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 182,
+ "line": 178,
"character": 23
}
]
},
{
- "id": 585,
+ "id": 529,
"name": "_closeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -417,7 +417,7 @@
},
"signatures": [
{
- "id": 586,
+ "id": 530,
"name": "_closeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -426,7 +426,7 @@
},
"parameters": [
{
- "id": 587,
+ "id": 531,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -460,7 +460,7 @@
]
},
{
- "id": 604,
+ "id": 546,
"name": "_getAuthHeaders",
"kind": 2048,
"kindString": "Method",
@@ -470,7 +470,7 @@
},
"signatures": [
{
- "id": 605,
+ "id": 547,
"name": "_getAuthHeaders",
"kind": 4096,
"kindString": "Call signature",
@@ -480,7 +480,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 606,
+ "id": 548,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -489,7 +489,7 @@
},
"indexSignature": [
{
- "id": 607,
+ "id": 549,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -498,7 +498,7 @@
},
"parameters": [
{
- "id": 608,
+ "id": 550,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -520,7 +520,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 174,
+ "line": 170,
"character": 28
}
]
@@ -531,13 +531,13 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
- "line": 174,
+ "line": 170,
"character": 25
}
]
},
{
- "id": 600,
+ "id": 544,
"name": "_initPostgRESTClient",
"kind": 2048,
"kindString": "Method",
@@ -547,7 +547,7 @@
},
"signatures": [
{
- "id": 601,
+ "id": 545,
"name": "_initPostgRESTClient",
"kind": 4096,
"kindString": "Call signature",
@@ -569,7 +569,7 @@
]
},
{
- "id": 598,
+ "id": 542,
"name": "_initRealtimeClient",
"kind": 2048,
"kindString": "Method",
@@ -579,7 +579,7 @@
},
"signatures": [
{
- "id": 599,
+ "id": 543,
"name": "_initRealtimeClient",
"kind": 4096,
"kindString": "Call signature",
@@ -601,40 +601,7 @@
]
},
{
- "id": 602,
- "name": "_initStorageClient",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isPrivate": true,
- "isExported": true
- },
- "signatures": [
- {
- "id": 603,
- "name": "_initStorageClient",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reference",
- "id": 441,
- "name": "SupabaseStorageClient"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/SupabaseClient.ts",
- "line": 170,
- "character": 28
- }
- ]
- },
- {
- "id": 590,
+ "id": 534,
"name": "_initSupabaseAuthClient",
"kind": 2048,
"kindString": "Method",
@@ -644,7 +611,7 @@
},
"signatures": [
{
- "id": 591,
+ "id": 535,
"name": "_initSupabaseAuthClient",
"kind": 4096,
"kindString": "Call signature",
@@ -653,7 +620,7 @@
},
"parameters": [
{
- "id": 592,
+ "id": 536,
"name": "__namedParameters",
"kind": 32768,
"kindString": "Parameter",
@@ -664,7 +631,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 593,
+ "id": 537,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -673,7 +640,7 @@
},
"children": [
{
- "id": 594,
+ "id": 538,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -706,7 +673,7 @@
}
},
{
- "id": 596,
+ "id": 540,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -739,7 +706,7 @@
}
},
{
- "id": 597,
+ "id": 541,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -768,7 +735,7 @@
}
},
{
- "id": 595,
+ "id": 539,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -806,10 +773,10 @@
"title": "Variables",
"kind": 32,
"children": [
- 594,
- 596,
- 597,
- 595
+ 538,
+ 540,
+ 541,
+ 539
]
}
],
@@ -840,7 +807,7 @@
]
},
{
- "id": 573,
+ "id": 517,
"name": "from",
"kind": 2048,
"kindString": "Method",
@@ -849,7 +816,7 @@
},
"signatures": [
{
- "id": 574,
+ "id": 518,
"name": "from",
"kind": 4096,
"kindString": "Call signature",
@@ -861,7 +828,7 @@
},
"typeParameter": [
{
- "id": 575,
+ "id": 519,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -872,7 +839,7 @@
],
"parameters": [
{
- "id": 576,
+ "id": 520,
"name": "table",
"kind": 32768,
"kindString": "Parameter",
@@ -914,7 +881,7 @@
]
},
{
- "id": 588,
+ "id": 532,
"name": "getSubscriptions",
"kind": 2048,
"kindString": "Method",
@@ -923,7 +890,7 @@
},
"signatures": [
{
- "id": 589,
+ "id": 533,
"name": "getSubscriptions",
"kind": 4096,
"kindString": "Call signature",
@@ -951,7 +918,7 @@
]
},
{
- "id": 582,
+ "id": 526,
"name": "removeSubscription",
"kind": 2048,
"kindString": "Method",
@@ -960,7 +927,7 @@
},
"signatures": [
{
- "id": 583,
+ "id": 527,
"name": "removeSubscription",
"kind": 4096,
"kindString": "Call signature",
@@ -972,7 +939,7 @@
},
"parameters": [
{
- "id": 584,
+ "id": 528,
"name": "subscription",
"kind": 32768,
"kindString": "Parameter",
@@ -1009,7 +976,7 @@
]
},
{
- "id": 577,
+ "id": 521,
"name": "rpc",
"kind": 2048,
"kindString": "Method",
@@ -1018,7 +985,7 @@
},
"signatures": [
{
- "id": 578,
+ "id": 522,
"name": "rpc",
"kind": 4096,
"kindString": "Call signature",
@@ -1030,7 +997,7 @@
},
"typeParameter": [
{
- "id": 579,
+ "id": 523,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -1041,7 +1008,7 @@
],
"parameters": [
{
- "id": 580,
+ "id": 524,
"name": "fn",
"kind": 32768,
"kindString": "Parameter",
@@ -1057,7 +1024,7 @@
}
},
{
- "id": 581,
+ "id": 525,
"name": "params",
"kind": 32768,
"kindString": "Parameter",
@@ -1109,46 +1076,45 @@
"title": "Constructors",
"kind": 512,
"children": [
- 564
+ 508
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 557,
- 561,
- 563,
- 560,
- 559,
- 558,
- 562,
- 566,
- 565
+ 501,
+ 505,
+ 507,
+ 504,
+ 503,
+ 502,
+ 506,
+ 510,
+ 509
]
},
{
"title": "Accessors",
"kind": 262144,
"children": [
- 571
+ 515
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 609,
- 585,
- 604,
- 600,
- 598,
- 602,
- 590,
- 573,
- 588,
- 582,
- 577
+ 551,
+ 529,
+ 546,
+ 544,
+ 542,
+ 534,
+ 517,
+ 532,
+ 526,
+ 521
]
}
],
@@ -1161,7 +1127,7 @@
]
},
{
- "id": 612,
+ "id": 554,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -1170,7 +1136,7 @@
},
"children": [
{
- "id": 614,
+ "id": 556,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -1189,7 +1155,7 @@
"defaultValue": "true"
},
{
- "id": 616,
+ "id": 558,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -1208,7 +1174,7 @@
"defaultValue": "true"
},
{
- "id": 618,
+ "id": 560,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -1223,7 +1189,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 619,
+ "id": 561,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1233,7 +1199,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 617,
+ "id": 559,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -1252,7 +1218,7 @@
"defaultValue": "globalThis.localStorage"
},
{
- "id": 615,
+ "id": 557,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -1271,7 +1237,7 @@
"defaultValue": "true"
},
{
- "id": 613,
+ "id": 555,
"name": "schema",
"kind": 32,
"kindString": "Variable",
@@ -1295,12 +1261,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 614,
- 616,
- 618,
- 617,
- 615,
- 613
+ 556,
+ 558,
+ 560,
+ 559,
+ 557,
+ 555
]
}
],
@@ -1322,14 +1288,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 556
+ 500
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 612
+ 554
]
}
],
@@ -1342,7 +1308,7 @@
]
},
{
- "id": 620,
+ "id": 562,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
@@ -1352,7 +1318,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/index.ts",
"children": [
{
- "id": 621,
+ "id": 563,
"name": "createClient",
"kind": 64,
"kindString": "Function",
@@ -1365,7 +1331,7 @@
},
"signatures": [
{
- "id": 622,
+ "id": 564,
"name": "createClient",
"kind": 4096,
"kindString": "Call signature",
@@ -1377,7 +1343,7 @@
},
"parameters": [
{
- "id": 623,
+ "id": 565,
"name": "supabaseUrl",
"kind": 32768,
"kindString": "Parameter",
@@ -1390,7 +1356,7 @@
}
},
{
- "id": 624,
+ "id": 566,
"name": "supabaseKey",
"kind": 32768,
"kindString": "Parameter",
@@ -1403,7 +1369,7 @@
}
},
{
- "id": 625,
+ "id": 567,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1420,7 +1386,7 @@
],
"type": {
"type": "reference",
- "id": 556,
+ "id": 500,
"name": "SupabaseClient"
}
}
@@ -1439,7 +1405,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 621
+ 563
]
}
],
@@ -6654,7 +6620,7 @@
]
},
{
- "id": 440,
+ "id": 449,
"name": "\"lib/SupabaseStorageClient\"",
"kind": 1,
"kindString": "Module",
@@ -6664,7 +6630,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/SupabaseStorageClient.ts",
"children": [
{
- "id": 441,
+ "id": 450,
"name": "SupabaseStorageClient",
"kind": 128,
"kindString": "Class",
@@ -6673,7 +6639,7 @@
},
"children": [
{
- "id": 442,
+ "id": 451,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -6682,7 +6648,7 @@
},
"signatures": [
{
- "id": 443,
+ "id": 452,
"name": "new SupabaseStorageClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -6691,7 +6657,7 @@
},
"parameters": [
{
- "id": 444,
+ "id": 453,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -6704,7 +6670,7 @@
}
},
{
- "id": 445,
+ "id": 454,
"name": "headers",
"kind": 32768,
"kindString": "Parameter",
@@ -6714,7 +6680,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 446,
+ "id": 455,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6723,7 +6689,7 @@
},
"indexSignature": [
{
- "id": 447,
+ "id": 456,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -6732,7 +6698,7 @@
},
"parameters": [
{
- "id": 448,
+ "id": 457,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6765,13 +6731,13 @@
],
"type": {
"type": "reference",
- "id": 441,
+ "id": 450,
"name": "SupabaseStorageClient"
},
"overwrites": {
"type": "reference",
- "id": 316,
- "name": "StorageApi.__constructor"
+ "id": 313,
+ "name": "StorageBucketApi.__constructor"
}
}
],
@@ -6779,34 +6745,35 @@
{
"fileName": "src/lib/SupabaseStorageClient.ts",
"line": 3,
- "character": 55
+ "character": 61
}
],
"overwrites": {
"type": "reference",
- "id": 316,
- "name": "StorageApi.__constructor"
+ "id": 313,
+ "name": "StorageBucketApi.__constructor"
}
},
{
- "id": 450,
+ "id": 462,
"name": "headers",
"kind": 1024,
"kindString": "Property",
"flags": {
+ "isProtected": true,
"isExported": true
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 20,
- "character": 9
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 6,
+ "character": 19
}
],
"type": {
"type": "reflection",
"declaration": {
- "id": 451,
+ "id": 463,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6815,7 +6782,7 @@
},
"indexSignature": [
{
- "id": 452,
+ "id": 464,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -6824,7 +6791,7 @@
},
"parameters": [
{
- "id": 453,
+ "id": 465,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -6845,32 +6812,33 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 20,
- "character": 10
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 6,
+ "character": 20
}
]
}
},
"inheritedFrom": {
"type": "reference",
- "id": 312,
- "name": "StorageApi.headers"
+ "id": 309,
+ "name": "StorageBucketApi.headers"
}
},
{
- "id": 449,
+ "id": 461,
"name": "url",
"kind": 1024,
"kindString": "Property",
"flags": {
+ "isProtected": true,
"isExported": true
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 19,
- "character": 5
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 5,
+ "character": 15
}
],
"type": {
@@ -6879,12 +6847,12 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 311,
- "name": "StorageApi.url"
+ "id": 308,
+ "name": "StorageBucketApi.url"
}
},
{
- "id": 465,
+ "id": 477,
"name": "createBucket",
"kind": 2048,
"kindString": "Method",
@@ -6893,7 +6861,7 @@
},
"signatures": [
{
- "id": 466,
+ "id": 478,
"name": "createBucket",
"kind": 4096,
"kindString": "Call signature",
@@ -6905,7 +6873,7 @@
},
"parameters": [
{
- "id": 467,
+ "id": 479,
"name": "id",
"kind": 32768,
"kindString": "Parameter",
@@ -6927,7 +6895,7 @@
{
"type": "reflection",
"declaration": {
- "id": 468,
+ "id": 480,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6936,7 +6904,7 @@
},
"children": [
{
- "id": 469,
+ "id": 481,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6945,8 +6913,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 48
}
],
@@ -6955,7 +6923,7 @@
"types": [
{
"type": "reference",
- "id": 281,
+ "id": 278,
"name": "Bucket"
},
{
@@ -6966,7 +6934,7 @@
}
},
{
- "id": 470,
+ "id": 482,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6975,8 +6943,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 70
}
],
@@ -7000,15 +6968,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 469,
- 470
+ 481,
+ 482
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 42
}
]
@@ -7019,27 +6987,27 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 334,
- "name": "StorageApi.createBucket"
+ "id": 331,
+ "name": "StorageBucketApi.createBucket"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 20
}
],
"inheritedFrom": {
"type": "reference",
- "id": 334,
- "name": "StorageApi.createBucket"
+ "id": 331,
+ "name": "StorageBucketApi.createBucket"
}
},
{
- "id": 517,
- "name": "createSignedUrl",
+ "id": 491,
+ "name": "deleteBucket",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -7047,48 +7015,32 @@
},
"signatures": [
{
- "id": 518,
- "name": "createSignedUrl",
+ "id": 492,
+ "name": "deleteBucket",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Create signed url to download file."
+ "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket."
},
"parameters": [
{
- "id": 519,
- "name": "path",
+ "id": 493,
+ "name": "id",
"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`."
+ "text": "The unique identifier of the bucket you would like to delete.\n"
},
"type": {
"type": "intrinsic",
"name": "string"
}
- },
- {
- "id": 520,
- "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": {
@@ -7097,7 +7049,7 @@
{
"type": "reflection",
"declaration": {
- "id": 521,
+ "id": 494,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7106,7 +7058,7 @@
},
"children": [
{
- "id": 522,
+ "id": 495,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7115,8 +7067,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 19
}
],
@@ -7126,7 +7078,7 @@
{
"type": "reflection",
"declaration": {
- "id": 523,
+ "id": 496,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7135,8 +7087,8 @@
},
"children": [
{
- "id": 524,
- "name": "signedUrl",
+ "id": 497,
+ "name": "message",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -7144,9 +7096,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 32
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
+ "character": 30
}
],
"type": {
@@ -7160,14 +7112,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 524
+ 497
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 20
}
]
@@ -7181,7 +7133,7 @@
}
},
{
- "id": 525,
+ "id": 498,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7190,9 +7142,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 56
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
+ "character": 54
}
],
"type": {
@@ -7215,15 +7167,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 522,
- 525
+ 495,
+ 498
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 13
}
]
@@ -7234,27 +7186,27 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 386,
- "name": "StorageApi.createSignedUrl"
+ "id": 345,
+ "name": "StorageBucketApi.deleteBucket"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 208,
- "character": 23
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 75,
+ "character": 20
}
],
"inheritedFrom": {
"type": "reference",
- "id": 386,
- "name": "StorageApi.createSignedUrl"
+ "id": 345,
+ "name": "StorageBucketApi.deleteBucket"
}
},
{
- "id": 479,
- "name": "deleteBucket",
+ "id": 483,
+ "name": "emptyBucket",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -7262,19 +7214,19 @@
},
"signatures": [
{
- "id": 480,
- "name": "deleteBucket",
+ "id": 484,
+ "name": "emptyBucket",
"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."
+ "shortText": "Removes all objects inside a single bucket."
},
"parameters": [
{
- "id": 481,
+ "id": 485,
"name": "id",
"kind": 32768,
"kindString": "Parameter",
@@ -7282,7 +7234,7 @@
"isExported": true
},
"comment": {
- "text": "The unique identifier of the bucket you would like to delete.\n"
+ "text": "The unique identifier of the bucket you would like to empty.\n"
},
"type": {
"type": "intrinsic",
@@ -7296,7 +7248,7 @@
{
"type": "reflection",
"declaration": {
- "id": 482,
+ "id": 486,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7305,7 +7257,7 @@
},
"children": [
{
- "id": 483,
+ "id": 487,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7314,8 +7266,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 19
}
],
@@ -7325,7 +7277,7 @@
{
"type": "reflection",
"declaration": {
- "id": 484,
+ "id": 488,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7334,7 +7286,7 @@
},
"children": [
{
- "id": 485,
+ "id": 489,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -7343,8 +7295,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 30
}
],
@@ -7359,14 +7311,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 485
+ 489
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 20
}
]
@@ -7380,7 +7332,7 @@
}
},
{
- "id": 486,
+ "id": 490,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7389,8 +7341,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 54
}
],
@@ -7414,15 +7366,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 483,
- 486
+ 487,
+ 490
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
"character": 13
}
]
@@ -7433,27 +7385,27 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 348,
- "name": "StorageApi.deleteBucket"
+ "id": 337,
+ "name": "StorageBucketApi.emptyBucket"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 89,
- "character": 20
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 58,
+ "character": 19
}
],
"inheritedFrom": {
"type": "reference",
- "id": 348,
- "name": "StorageApi.deleteBucket"
+ "id": 337,
+ "name": "StorageBucketApi.emptyBucket"
}
},
{
- "id": 532,
- "name": "deleteFile",
+ "id": 458,
+ "name": "from",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -7461,27 +7413,80 @@
},
"signatures": [
{
- "id": 533,
- "name": "deleteFile",
+ "id": 459,
+ "name": "from",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Deletes a file."
+ "shortText": "Perform file operation in a bucket."
},
"parameters": [
{
- "id": 534,
- "name": "path",
+ "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 file path to be deleted, including the path and file name. For example `folder/image.png`.\n"
+ "text": "The unique identifier of the bucket you would like to retrieve.\n"
},
"type": {
"type": "intrinsic",
@@ -7495,7 +7500,7 @@
{
"type": "reflection",
"declaration": {
- "id": 535,
+ "id": 474,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7504,7 +7509,7 @@
},
"children": [
{
- "id": 536,
+ "id": 475,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7513,63 +7518,18 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 19
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 45
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reflection",
- "declaration": {
- "id": 537,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 538,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 538
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 20
- }
- ]
- }
+ "type": "reference",
+ "id": 278,
+ "name": "Bucket"
},
{
"type": "intrinsic",
@@ -7579,7 +7539,7 @@
}
},
{
- "id": 539,
+ "id": 476,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7588,9 +7548,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 54
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 67
}
],
"type": {
@@ -7613,16 +7573,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 536,
- 539
+ 475,
+ 476
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 13
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 39
}
]
}
@@ -7632,27 +7592,27 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 401,
- "name": "StorageApi.deleteFile"
+ "id": 325,
+ "name": "StorageBucketApi.getBucket"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 249,
- "character": 18
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 30,
+ "character": 17
}
],
"inheritedFrom": {
"type": "reference",
- "id": 401,
- "name": "StorageApi.deleteFile"
+ "id": 325,
+ "name": "StorageBucketApi.getBucket"
}
},
{
- "id": 540,
- "name": "deleteFiles",
+ "id": 466,
+ "name": "listBuckets",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -7660,60 +7620,23 @@
},
"signatures": [
{
- "id": 541,
- "name": "deleteFiles",
+ "id": 467,
+ "name": "listBuckets",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Deletes multiple files within the same bucket"
+ "shortText": "Retrieves the details of all Storage buckets within an existing product."
},
- "parameters": [
- {
- "id": 542,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the files."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 543,
- "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": 544,
+ "id": 468,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7722,7 +7645,7 @@
},
"children": [
{
- "id": 545,
+ "id": 469,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7731,9 +7654,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 269,
- "character": 19
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 37
}
],
"type": {
@@ -7743,8 +7666,8 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 287,
- "name": "FileObject"
+ "id": 278,
+ "name": "Bucket"
}
},
{
@@ -7755,7 +7678,7 @@
}
},
{
- "id": 546,
+ "id": 470,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7764,9 +7687,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 269,
- "character": 47
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 61
}
],
"type": {
@@ -7789,16 +7712,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 545,
- 546
+ 469,
+ 470
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 269,
- "character": 13
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 31
}
]
}
@@ -7808,69 +7731,460 @@
},
"inheritedFrom": {
"type": "reference",
- "id": 409,
- "name": "StorageApi.deleteFiles"
+ "id": 320,
+ "name": "StorageBucketApi.listBuckets"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 266,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
"character": 19
}
],
"inheritedFrom": {
"type": "reference",
- "id": 409,
- "name": "StorageApi.deleteFiles"
+ "id": 320,
+ "name": "StorageBucketApi.listBuckets"
}
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [
+ 451
+ ]
},
{
- "id": 526,
- "name": "downloadFile",
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 462,
+ 461
+ ]
+ },
+ {
+ "title": "Methods",
"kind": 2048,
- "kindString": "Method",
+ "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": 527,
- "name": "downloadFile",
- "kind": 4096,
- "kindString": "Call signature",
+ "id": 314,
+ "name": "new StorageBucketApi",
+ "kind": 16384,
+ "kindString": "Constructor signature",
"flags": {
"isExported": true
},
- "comment": {
- "shortText": "Downloads a file."
- },
"parameters": [
{
- "id": 528,
- "name": "path",
+ "id": 315,
+ "name": "url",
"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",
+ },
+ {
+ "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": "Retrieves the details of an existing 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": 529,
+ "id": 334,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7879,7 +8193,7 @@
},
"children": [
{
- "id": 530,
+ "id": 335,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7888,9 +8202,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 50
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
+ "character": 48
}
],
"type": {
@@ -7898,7 +8212,8 @@
"types": [
{
"type": "reference",
- "name": "Blob"
+ "id": 278,
+ "name": "Bucket"
},
{
"type": "intrinsic",
@@ -7908,7 +8223,7 @@
}
},
{
- "id": 531,
+ "id": 336,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7917,8 +8232,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 70
}
],
@@ -7942,46 +8257,36 @@
"title": "Variables",
"kind": 32,
"children": [
- 530,
- 531
+ 335,
+ 336
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 44
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
+ "character": 42
}
]
}
}
],
"name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 395,
- "name": "StorageApi.downloadFile"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 44,
"character": 20
}
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 395,
- "name": "StorageApi.downloadFile"
- }
+ ]
},
{
- "id": 471,
- "name": "emptyBucket",
+ "id": 345,
+ "name": "deleteBucket",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -7989,19 +8294,19 @@
},
"signatures": [
{
- "id": 472,
- "name": "emptyBucket",
+ "id": 346,
+ "name": "deleteBucket",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Removes all objects inside a single bucket."
+ "shortText": "Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.\nYou must first `empty()` the bucket."
},
"parameters": [
{
- "id": 473,
+ "id": 347,
"name": "id",
"kind": 32768,
"kindString": "Parameter",
@@ -8009,7 +8314,7 @@
"isExported": true
},
"comment": {
- "text": "The unique identifier of the bucket you would like to empty.\n"
+ "text": "The unique identifier of the bucket you would like to delete.\n"
},
"type": {
"type": "intrinsic",
@@ -8023,7 +8328,7 @@
{
"type": "reflection",
"declaration": {
- "id": 474,
+ "id": 348,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8032,7 +8337,7 @@
},
"children": [
{
- "id": 475,
+ "id": 349,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8041,8 +8346,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 19
}
],
@@ -8052,7 +8357,7 @@
{
"type": "reflection",
"declaration": {
- "id": 476,
+ "id": 350,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8061,7 +8366,7 @@
},
"children": [
{
- "id": 477,
+ "id": 351,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -8070,8 +8375,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 30
}
],
@@ -8086,14 +8391,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 477
+ 351
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 20
}
]
@@ -8107,7 +8412,7 @@
}
},
{
- "id": 478,
+ "id": 352,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8116,8 +8421,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 54
}
],
@@ -8141,15 +8446,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 475,
- 478
+ 349,
+ 352
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 77,
"character": 13
}
]
@@ -8157,30 +8462,20 @@
}
],
"name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 340,
- "name": "StorageApi.emptyBucket"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 72,
- "character": 19
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 75,
+ "character": 20
}
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 340,
- "name": "StorageApi.emptyBucket"
- }
+ ]
},
{
- "id": 459,
- "name": "getBucket",
+ "id": 337,
+ "name": "emptyBucket",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -8188,19 +8483,19 @@
},
"signatures": [
{
- "id": 460,
- "name": "getBucket",
+ "id": 338,
+ "name": "emptyBucket",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Retrieves the details of an existing Storage bucket."
+ "shortText": "Removes all objects inside a single bucket."
},
"parameters": [
{
- "id": 461,
+ "id": 339,
"name": "id",
"kind": 32768,
"kindString": "Parameter",
@@ -8208,7 +8503,7 @@
"isExported": true
},
"comment": {
- "text": "The unique identifier of the bucket you would like to retrieve.\n"
+ "text": "The unique identifier of the bucket you would like to empty.\n"
},
"type": {
"type": "intrinsic",
@@ -8222,7 +8517,7 @@
{
"type": "reflection",
"declaration": {
- "id": 462,
+ "id": 340,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8231,7 +8526,7 @@
},
"children": [
{
- "id": 463,
+ "id": 341,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8240,39 +8535,84 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 45
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
+ "character": 19
}
],
"type": {
"type": "union",
"types": [
{
- "type": "reference",
- "id": 281,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 464,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
+ "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/StorageApi.ts",
- "line": 44,
- "character": 67
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
+ "character": 54
}
],
"type": {
@@ -8295,46 +8635,36 @@
"title": "Variables",
"kind": 32,
"children": [
- 463,
- 464
+ 341,
+ 344
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 39
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 60,
+ "character": 13
}
]
}
}
],
"name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 328,
- "name": "StorageApi.getBucket"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 17
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 58,
+ "character": 19
}
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 328,
- "name": "StorageApi.getBucket"
- }
+ ]
},
{
- "id": 454,
- "name": "listBuckets",
+ "id": 325,
+ "name": "getBucket",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -8342,23 +8672,41 @@
},
"signatures": [
{
- "id": 455,
- "name": "listBuckets",
+ "id": 326,
+ "name": "getBucket",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Retrieves the details of all Storage buckets within an existing product."
+ "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": 456,
+ "id": 328,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8367,7 +8715,7 @@
},
"children": [
{
- "id": 457,
+ "id": 329,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8376,21 +8724,18 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
"line": 30,
- "character": 37
+ "character": 45
}
],
"type": {
"type": "union",
"types": [
{
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 281,
- "name": "Bucket"
- }
+ "type": "reference",
+ "id": 278,
+ "name": "Bucket"
},
{
"type": "intrinsic",
@@ -8400,7 +8745,7 @@
}
},
{
- "id": 458,
+ "id": 330,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8409,9 +8754,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
"line": 30,
- "character": 61
+ "character": 67
}
],
"type": {
@@ -8434,46 +8779,36 @@
"title": "Variables",
"kind": 32,
"children": [
- 457,
- 458
+ 329,
+ 330
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
"line": 30,
- "character": 31
+ "character": 39
}
]
}
}
],
"name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 323,
- "name": "StorageApi.listBuckets"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
"line": 30,
- "character": 19
+ "character": 17
}
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 323,
- "name": "StorageApi.listBuckets"
- }
+ ]
},
{
- "id": 547,
- "name": "listFiles",
+ "id": 320,
+ "name": "listBuckets",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -8481,85 +8816,23 @@
},
"signatures": [
{
- "id": 548,
- "name": "listFiles",
+ "id": 321,
+ "name": "listBuckets",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Lists all the files within a bucket."
+ "shortText": "Retrieves the details of all Storage buckets within an existing product."
},
- "parameters": [
- {
- "id": 549,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the files."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 550,
- "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": 551,
- "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": 303,
- "name": "SearchOptions"
- }
- }
- ],
"type": {
"type": "reference",
"typeArguments": [
{
"type": "reflection",
"declaration": {
- "id": 552,
+ "id": 322,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8568,7 +8841,7 @@
},
"children": [
{
- "id": 553,
+ "id": 323,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8577,9 +8850,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
- "character": 19
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 37
}
],
"type": {
@@ -8589,8 +8862,8 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 287,
- "name": "FileObject"
+ "id": 278,
+ "name": "Bucket"
}
},
{
@@ -8601,7 +8874,7 @@
}
},
{
- "id": 554,
+ "id": 324,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8610,9 +8883,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
- "character": 47
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 61
}
],
"type": {
@@ -8635,90 +8908,139 @@
"title": "Variables",
"kind": 32,
"children": [
- 553,
- 554
+ 323,
+ 324
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
- "character": 13
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 31
}
]
}
}
],
"name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 416,
- "name": "StorageApi.listFiles"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 318,
- "character": 17
+ "fileName": "src/lib/storage/StorageBucketApi.ts",
+ "line": 16,
+ "character": 19
}
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 416,
- "name": "StorageApi.listFiles"
- }
+ ]
+ }
+ ],
+ "groups": [
+ {
+ "title": "Constructors",
+ "kind": 512,
+ "children": [
+ 313
+ ]
},
{
- "id": 507,
- "name": "moveFile",
+ "title": "Properties",
+ "kind": 1024,
+ "children": [
+ 309,
+ 308
+ ]
+ },
+ {
+ "title": "Methods",
"kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 508,
- "name": "moveFile",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Moves an existing file, optionally renaming it at the same time."
- },
- "parameters": [
- {
- "id": 509,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the file."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 510,
- "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`."
+ "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",
@@ -8726,2084 +9048,270 @@
}
},
{
- "id": 511,
- "name": "toPath",
+ "id": 367,
+ "name": "headers",
"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": 512,
+ "id": 368,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {
"isExported": true
},
- "children": [
+ "indexSignature": [
{
- "id": 513,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
+ "id": 369,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
"flags": {
"isExported": true
},
- "sources": [
+ "parameters": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 514,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 515,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 515
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 20
- }
- ]
- }
+ "id": 370,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
},
- {
+ "type": {
"type": "intrinsic",
- "name": "null"
+ "name": "string"
}
- ]
- }
- },
- {
- "id": 516,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 54
}
],
"type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
+ "type": "intrinsic",
+ "name": "string"
}
}
],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 513,
- 516
- ]
- }
- ],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
- "character": 13
+ "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"
+ }
+ ]
}
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
+ }
+ ],
+ "type": {
"type": "reference",
- "id": 376,
- "name": "StorageApi.moveFile"
+ "id": 357,
+ "name": "StorageFileApi"
}
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 185,
- "character": 16
+ "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
}
],
- "inheritedFrom": {
- "type": "reference",
- "id": 376,
- "name": "StorageApi.moveFile"
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "intrinsic",
+ "name": "undefined"
+ },
+ {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ ]
}
},
{
- "id": 497,
- "name": "updateFile",
- "kind": 2048,
- "kindString": "Method",
+ "id": 359,
+ "name": "headers",
+ "kind": 1024,
+ "kindString": "Property",
"flags": {
+ "isProtected": true,
"isExported": true
},
- "signatures": [
+ "sources": [
{
- "id": 498,
- "name": "updateFile",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Replaces an existing file at the specified path with a new one."
- },
- "parameters": [
- {
- "id": 499,
- "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": 500,
- "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": 501,
- "name": "fileOptions",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "HTTP headers. For example `cacheControl`\n"
- },
- "type": {
- "type": "reference",
- "id": 301,
- "name": "FileOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 502,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 503,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 504,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 505,
- "name": "Key",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
- "character": 26
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 505
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 506,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
- "character": 50
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 503,
- 506
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 366,
- "name": "StorageApi.updateFile"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 146,
- "character": 18
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 366,
- "name": "StorageApi.updateFile"
- }
- },
- {
- "id": 487,
- "name": "uploadFile",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 488,
- "name": "uploadFile",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Uploads a file to an existing bucket."
- },
- "parameters": [
- {
- "id": 489,
- "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": 490,
- "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": 491,
- "name": "fileOptions",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true,
- "isOptional": true
- },
- "comment": {
- "text": "HTTP headers. For example `cacheControl`\n"
- },
- "type": {
- "type": "reference",
- "id": 301,
- "name": "FileOptions"
- }
- }
- ],
- "type": {
- "type": "reference",
- "typeArguments": [
- {
- "type": "reflection",
- "declaration": {
- "id": 492,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 493,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 494,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 495,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 495
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 496,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 493,
- 496
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- },
- "inheritedFrom": {
- "type": "reference",
- "id": 356,
- "name": "StorageApi.uploadFile"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 107,
- "character": 18
- }
- ],
- "inheritedFrom": {
- "type": "reference",
- "id": 356,
- "name": "StorageApi.uploadFile"
- }
- }
- ],
- "groups": [
- {
- "title": "Constructors",
- "kind": 512,
- "children": [
- 442
- ]
- },
- {
- "title": "Properties",
- "kind": 1024,
- "children": [
- 450,
- 449
- ]
- },
- {
- "title": "Methods",
- "kind": 2048,
- "children": [
- 465,
- 517,
- 479,
- 532,
- 540,
- 526,
- 471,
- 459,
- 454,
- 547,
- 507,
- 497,
- 487
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/SupabaseStorageClient.ts",
- "line": 3,
- "character": 34
- }
- ],
- "extendedTypes": [
- {
- "type": "reference",
- "id": 310,
- "name": "StorageApi"
- }
- ]
- }
- ],
- "groups": [
- {
- "title": "Classes",
- "kind": 128,
- "children": [
- 441
- ]
- }
- ],
- "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": 626,
- "name": "\"lib/helpers\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/helpers.ts",
- "children": [
- {
- "id": 627,
- "name": "uuid",
- "kind": 64,
- "kindString": "Function",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 628,
- "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": [
- 627
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/helpers.ts",
- "line": 1,
- "character": 0
- }
- ]
- },
- {
- "id": 309,
- "name": "\"lib/storage/StorageApi\"",
- "kind": 1,
- "kindString": "Module",
- "flags": {
- "isExported": true
- },
- "originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/StorageApi.ts",
- "children": [
- {
- "id": 310,
- "name": "StorageApi",
- "kind": 128,
- "kindString": "Class",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 316,
- "name": "constructor",
- "kind": 512,
- "kindString": "Constructor",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 317,
- "name": "new StorageApi",
- "kind": 16384,
- "kindString": "Constructor signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 318,
- "name": "url",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 319,
- "name": "headers",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 320,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 321,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 322,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 22,
- "character": 35
- }
- ]
- }
- },
- "defaultValue": "{}"
- }
- ],
- "type": {
- "type": "reference",
- "id": 310,
- "name": "StorageApi"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 20,
- "character": 36
- }
- ]
- },
- {
- "id": 312,
- "name": "headers",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 20,
- "character": 9
- }
- ],
- "type": {
- "type": "reflection",
- "declaration": {
- "id": 313,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "indexSignature": [
- {
- "id": 314,
- "name": "__index",
- "kind": 8192,
- "kindString": "Index signature",
- "flags": {
- "isExported": true
- },
- "parameters": [
- {
- "id": 315,
- "name": "key",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 20,
- "character": 10
- }
- ]
- }
- }
- },
- {
- "id": 311,
- "name": "url",
- "kind": 1024,
- "kindString": "Property",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 19,
- "character": 5
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 334,
- "name": "createBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 335,
- "name": "createBucket",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Retrieves the details of an existing Storage bucket."
- },
- "parameters": [
- {
- "id": 336,
- "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": 337,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 338,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
- "character": 48
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 281,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 339,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
- "character": 70
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 338,
- 339
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
- "character": 42
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 58,
- "character": 20
- }
- ]
- },
- {
- "id": 386,
- "name": "createSignedUrl",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 387,
- "name": "createSignedUrl",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Create signed url to download file."
- },
- "parameters": [
- {
- "id": 388,
- "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": 389,
- "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": 390,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 391,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 392,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 393,
- "name": "signedUrl",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 32
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 393
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 394,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 56
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 391,
- 394
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 211,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 208,
- "character": 23
- }
- ]
- },
- {
- "id": 348,
- "name": "deleteBucket",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 349,
- "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": 350,
- "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": 351,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 352,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 353,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 354,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 354
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 355,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 352,
- 355
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 91,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 89,
- "character": 20
- }
- ]
- },
- {
- "id": 401,
- "name": "deleteFile",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 402,
- "name": "deleteFile",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Deletes a file."
- },
- "parameters": [
- {
- "id": 403,
- "name": "path",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The file path to be deleted, 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": 404,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 405,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reflection",
- "declaration": {
- "id": 406,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 407,
- "name": "message",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 30
- }
- ],
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 407
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 20
- }
- ]
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 408,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 54
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 405,
- 408
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 251,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 249,
- "character": 18
- }
- ]
- },
- {
- "id": 409,
- "name": "deleteFiles",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 410,
- "name": "deleteFiles",
- "kind": 4096,
- "kindString": "Call signature",
- "flags": {
- "isExported": true
- },
- "comment": {
- "shortText": "Deletes multiple files within the same bucket"
- },
- "parameters": [
- {
- "id": 411,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the files."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 412,
- "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": 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/StorageApi.ts",
- "line": 269,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 287,
- "name": "FileObject"
- }
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 415,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 269,
- "character": 47
- }
- ],
- "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/StorageApi.ts",
- "line": 269,
- "character": 13
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 266,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 20,
"character": 19
}
- ]
- },
- {
- "id": 395,
- "name": "downloadFile",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 396,
- "name": "downloadFile",
- "kind": 4096,
- "kindString": "Call signature",
+ ],
+ "type": {
+ "type": "reflection",
+ "declaration": {
+ "id": 360,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
"flags": {
"isExported": true
},
- "comment": {
- "shortText": "Downloads a file."
- },
- "parameters": [
+ "indexSignature": [
{
- "id": 397,
- "name": "path",
- "kind": 32768,
- "kindString": "Parameter",
+ "id": 361,
+ "name": "__index",
+ "kind": 8192,
+ "kindString": "Index signature",
"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": 398,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 399,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 50
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Blob"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 400,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 70
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 399,
- 400
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 231,
- "character": 44
- }
- ]
+ "parameters": [
+ {
+ "id": 362,
+ "name": "key",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
}
+ ],
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
}
- ],
- "name": "Promise"
+ }
+ ],
+ "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/StorageApi.ts",
- "line": 231,
- "character": 20
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 243,
+ "character": 15
}
]
},
{
- "id": 340,
- "name": "emptyBucket",
+ "id": 401,
+ "name": "createSignedUrl",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -10811,32 +9319,48 @@
},
"signatures": [
{
- "id": 341,
- "name": "emptyBucket",
+ "id": 402,
+ "name": "createSignedUrl",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Removes all objects inside a single bucket."
+ "shortText": "Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds."
},
"parameters": [
{
- "id": 342,
- "name": "id",
+ "id": 403,
+ "name": "path",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The unique identifier of the bucket you would like to empty.\n"
+ "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": {
@@ -10845,7 +9369,7 @@
{
"type": "reflection",
"declaration": {
- "id": 343,
+ "id": 405,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10854,7 +9378,7 @@
},
"children": [
{
- "id": 344,
+ "id": 406,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10863,8 +9387,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 140,
"character": 19
}
],
@@ -10874,7 +9398,7 @@
{
"type": "reflection",
"declaration": {
- "id": 345,
+ "id": 407,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10883,8 +9407,8 @@
},
"children": [
{
- "id": 346,
- "name": "message",
+ "id": 408,
+ "name": "signedUrl",
"kind": 32,
"kindString": "Variable",
"flags": {
@@ -10892,9 +9416,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
- "character": 30
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 140,
+ "character": 32
}
],
"type": {
@@ -10908,14 +9432,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 346
+ 408
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 140,
"character": 20
}
]
@@ -10929,7 +9453,7 @@
}
},
{
- "id": 347,
+ "id": 409,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10938,9 +9462,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
- "character": 54
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 140,
+ "character": 56
}
],
"type": {
@@ -10963,15 +9487,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 344,
- 347
+ 406,
+ 409
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 74,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 140,
"character": 13
}
]
@@ -10984,15 +9508,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 72,
- "character": 19
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 137,
+ "character": 23
}
]
},
{
- "id": 328,
- "name": "getBucket",
+ "id": 410,
+ "name": "download",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11000,27 +9524,27 @@
},
"signatures": [
{
- "id": 329,
- "name": "getBucket",
+ "id": 411,
+ "name": "download",
"kind": 4096,
"kindString": "Call signature",
"flags": {
"isExported": true
},
"comment": {
- "shortText": "Retrieves the details of an existing Storage bucket."
+ "shortText": "Downloads a file."
},
"parameters": [
{
- "id": 330,
- "name": "id",
+ "id": 412,
+ "name": "path",
"kind": 32768,
"kindString": "Parameter",
"flags": {
"isExported": true
},
"comment": {
- "text": "The unique identifier of the bucket you would like to retrieve.\n"
+ "text": "The file path to be downloaded, including the path and file name. For example `folder/image.png`.\n"
},
"type": {
"type": "intrinsic",
@@ -11034,7 +9558,7 @@
{
"type": "reflection",
"declaration": {
- "id": 331,
+ "id": 413,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11043,7 +9567,7 @@
},
"children": [
{
- "id": 332,
+ "id": 414,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11052,39 +9576,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 45
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 281,
- "name": "Bucket"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 333,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 67
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 161,
+ "character": 46
}
],
"type": {
@@ -11092,107 +9586,7 @@
"types": [
{
"type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 332,
- 333
- ]
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 39
- }
- ]
- }
- }
- ],
- "name": "Promise"
- }
- }
- ],
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 44,
- "character": 17
- }
- ]
- },
- {
- "id": 323,
- "name": "listBuckets",
- "kind": 2048,
- "kindString": "Method",
- "flags": {
- "isExported": true
- },
- "signatures": [
- {
- "id": 324,
- "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": 325,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
- },
- "children": [
- {
- "id": 326,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 37
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "array",
- "elementType": {
- "type": "reference",
- "id": 281,
- "name": "Bucket"
- }
+ "name": "Blob"
},
{
"type": "intrinsic",
@@ -11202,7 +9596,7 @@
}
},
{
- "id": 327,
+ "id": 415,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11211,9 +9605,9 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 61
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 161,
+ "character": 66
}
],
"type": {
@@ -11236,16 +9630,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 326,
- 327
+ 414,
+ 415
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 31
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 161,
+ "character": 40
}
]
}
@@ -11257,15 +9651,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 30,
- "character": 19
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 161,
+ "character": 16
}
]
},
{
- "id": 416,
- "name": "listFiles",
+ "id": 422,
+ "name": "list",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11273,8 +9667,8 @@
},
"signatures": [
{
- "id": 417,
- "name": "listFiles",
+ "id": 423,
+ "name": "list",
"kind": 4096,
"kindString": "Call signature",
"flags": {
@@ -11285,23 +9679,7 @@
},
"parameters": [
{
- "id": 418,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the files."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 419,
+ "id": 424,
"name": "path",
"kind": 32768,
"kindString": "Parameter",
@@ -11327,7 +9705,7 @@
}
},
{
- "id": 420,
+ "id": 425,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -11340,7 +9718,7 @@
},
"type": {
"type": "reference",
- "id": 303,
+ "id": 300,
"name": "SearchOptions"
}
}
@@ -11351,7 +9729,7 @@
{
"type": "reflection",
"declaration": {
- "id": 421,
+ "id": 426,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11360,7 +9738,7 @@
},
"children": [
{
- "id": 422,
+ "id": 427,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11369,8 +9747,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 231,
"character": 19
}
],
@@ -11381,7 +9759,7 @@
"type": "array",
"elementType": {
"type": "reference",
- "id": 287,
+ "id": 284,
"name": "FileObject"
}
},
@@ -11393,7 +9771,7 @@
}
},
{
- "id": 423,
+ "id": 428,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11402,8 +9780,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 231,
"character": 47
}
],
@@ -11427,15 +9805,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 422,
- 423
+ 427,
+ 428
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 322,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 231,
"character": 13
}
]
@@ -11448,15 +9826,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 318,
- "character": 17
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 228,
+ "character": 12
}
]
},
{
- "id": 376,
- "name": "moveFile",
+ "id": 392,
+ "name": "move",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11464,8 +9842,8 @@
},
"signatures": [
{
- "id": 377,
- "name": "moveFile",
+ "id": 393,
+ "name": "move",
"kind": 4096,
"kindString": "Call signature",
"flags": {
@@ -11476,23 +9854,7 @@
},
"parameters": [
{
- "id": 378,
- "name": "bucketId",
- "kind": 32768,
- "kindString": "Parameter",
- "flags": {
- "isExported": true
- },
- "comment": {
- "text": "The bucket which contains the file."
- },
- "type": {
- "type": "intrinsic",
- "name": "string"
- }
- },
- {
- "id": 379,
+ "id": 394,
"name": "fromPath",
"kind": 32768,
"kindString": "Parameter",
@@ -11508,7 +9870,7 @@
}
},
{
- "id": 380,
+ "id": 395,
"name": "toPath",
"kind": 32768,
"kindString": "Parameter",
@@ -11530,7 +9892,7 @@
{
"type": "reflection",
"declaration": {
- "id": 381,
+ "id": 396,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11539,7 +9901,7 @@
},
"children": [
{
- "id": 382,
+ "id": 397,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11548,8 +9910,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 118,
"character": 19
}
],
@@ -11559,7 +9921,7 @@
{
"type": "reflection",
"declaration": {
- "id": 383,
+ "id": 398,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11568,7 +9930,7 @@
},
"children": [
{
- "id": 384,
+ "id": 399,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -11577,8 +9939,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 118,
"character": 30
}
],
@@ -11593,14 +9955,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 384
+ 399
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 118,
"character": 20
}
]
@@ -11614,7 +9976,7 @@
}
},
{
- "id": 385,
+ "id": 400,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11623,8 +9985,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 118,
"character": 54
}
],
@@ -11648,15 +10010,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 382,
- 385
+ 397,
+ 400
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 189,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 118,
"character": 13
}
]
@@ -11669,15 +10031,165 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 185,
- "character": 16
+ "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": 366,
- "name": "updateFile",
+ "id": 382,
+ "name": "update",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11685,8 +10197,8 @@
},
"signatures": [
{
- "id": 367,
- "name": "updateFile",
+ "id": 383,
+ "name": "update",
"kind": 4096,
"kindString": "Call signature",
"flags": {
@@ -11697,7 +10209,7 @@
},
"parameters": [
{
- "id": 368,
+ "id": 384,
"name": "path",
"kind": 32768,
"kindString": "Parameter",
@@ -11713,7 +10225,7 @@
}
},
{
- "id": 369,
+ "id": 385,
"name": "file",
"kind": 32768,
"kindString": "Parameter",
@@ -11729,7 +10241,7 @@
}
},
{
- "id": 370,
+ "id": 386,
"name": "fileOptions",
"kind": 32768,
"kindString": "Parameter",
@@ -11742,7 +10254,7 @@
},
"type": {
"type": "reference",
- "id": 301,
+ "id": 298,
"name": "FileOptions"
}
}
@@ -11753,7 +10265,7 @@
{
"type": "reflection",
"declaration": {
- "id": 371,
+ "id": 387,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11762,7 +10274,7 @@
},
"children": [
{
- "id": 372,
+ "id": 388,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11771,8 +10283,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 80,
"character": 19
}
],
@@ -11782,7 +10294,7 @@
{
"type": "reflection",
"declaration": {
- "id": 373,
+ "id": 389,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11791,7 +10303,7 @@
},
"children": [
{
- "id": 374,
+ "id": 390,
"name": "Key",
"kind": 32,
"kindString": "Variable",
@@ -11800,8 +10312,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 80,
"character": 26
}
],
@@ -11816,14 +10328,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 374
+ 390
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 80,
"character": 20
}
]
@@ -11837,7 +10349,7 @@
}
},
{
- "id": 375,
+ "id": 391,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -11846,8 +10358,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 80,
"character": 50
}
],
@@ -11871,15 +10383,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 372,
- 375
+ 388,
+ 391
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 150,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 80,
"character": 13
}
]
@@ -11892,15 +10404,15 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 146,
- "character": 18
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 76,
+ "character": 14
}
]
},
{
- "id": 356,
- "name": "uploadFile",
+ "id": 372,
+ "name": "upload",
"kind": 2048,
"kindString": "Method",
"flags": {
@@ -11908,8 +10420,8 @@
},
"signatures": [
{
- "id": 357,
- "name": "uploadFile",
+ "id": 373,
+ "name": "upload",
"kind": 4096,
"kindString": "Call signature",
"flags": {
@@ -11920,7 +10432,7 @@
},
"parameters": [
{
- "id": 358,
+ "id": 374,
"name": "path",
"kind": 32768,
"kindString": "Parameter",
@@ -11936,7 +10448,7 @@
}
},
{
- "id": 359,
+ "id": 375,
"name": "file",
"kind": 32768,
"kindString": "Parameter",
@@ -11952,7 +10464,7 @@
}
},
{
- "id": 360,
+ "id": 376,
"name": "fileOptions",
"kind": 32768,
"kindString": "Parameter",
@@ -11965,7 +10477,7 @@
},
"type": {
"type": "reference",
- "id": 301,
+ "id": 298,
"name": "FileOptions"
}
}
@@ -11976,7 +10488,7 @@
{
"type": "reflection",
"declaration": {
- "id": 361,
+ "id": 377,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -11985,7 +10497,7 @@
},
"children": [
{
- "id": 362,
+ "id": 378,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -11994,8 +10506,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 40,
"character": 19
}
],
@@ -12005,7 +10517,7 @@
{
"type": "reflection",
"declaration": {
- "id": 363,
+ "id": 379,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -12014,7 +10526,7 @@
},
"children": [
{
- "id": 364,
+ "id": 380,
"name": "message",
"kind": 32,
"kindString": "Variable",
@@ -12023,8 +10535,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 40,
"character": 30
}
],
@@ -12039,14 +10551,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 364
+ 380
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 40,
"character": 20
}
]
@@ -12060,7 +10572,7 @@
}
},
{
- "id": 365,
+ "id": 381,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -12069,8 +10581,8 @@
},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 40,
"character": 54
}
],
@@ -12094,15 +10606,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 362,
- 365
+ 378,
+ 381
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 111,
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 40,
"character": 13
}
]
@@ -12115,9 +10627,9 @@
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
- "line": 107,
- "character": 18
+ "fileName": "src/lib/storage/StorageFileApi.ts",
+ "line": 36,
+ "character": 14
}
]
}
@@ -12127,54 +10639,43 @@
"title": "Constructors",
"kind": 512,
"children": [
- 316
+ 364
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 312,
- 311
+ 363,
+ 359,
+ 358
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 334,
- 386,
- 348,
+ 429,
401,
- 409,
- 395,
- 340,
- 328,
- 323,
+ 410,
+ 422,
+ 392,
416,
- 376,
- 366,
- 356
+ 382,
+ 372
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 18,
- "character": 23
- }
- ],
- "extendedBy": [
- {
- "type": "reference",
- "id": 441,
- "name": "SupabaseStorageClient"
+ "character": 27
}
]
},
{
- "id": 430,
+ "id": 438,
"name": "DEFAULT_FILE_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -12183,14 +10684,14 @@
},
"children": [
{
- "id": 431,
+ "id": 439,
"name": "cacheControl",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 15,
"character": 14
}
@@ -12207,13 +10708,13 @@
"title": "Variables",
"kind": 32,
"children": [
- 431
+ 439
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 14,
"character": 26
}
@@ -12224,7 +10725,7 @@
}
},
{
- "id": 424,
+ "id": 432,
"name": "DEFAULT_SEARCH_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -12233,14 +10734,14 @@
},
"children": [
{
- "id": 425,
+ "id": 433,
"name": "limit",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 6,
"character": 7
}
@@ -12252,14 +10753,14 @@
"defaultValue": "0"
},
{
- "id": 426,
+ "id": 434,
"name": "offset",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 7,
"character": 8
}
@@ -12271,21 +10772,21 @@
"defaultValue": "0"
},
{
- "id": 427,
+ "id": 435,
"name": "sortBy",
"kind": 2097152,
"kindString": "Object literal",
"flags": {},
"children": [
{
- "id": 428,
+ "id": 436,
"name": "column",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 9,
"character": 10
}
@@ -12297,14 +10798,14 @@
"defaultValue": "\"name\""
},
{
- "id": 429,
+ "id": 437,
"name": "order",
"kind": 32,
"kindString": "Variable",
"flags": {},
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 10,
"character": 9
}
@@ -12321,14 +10822,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 428,
- 429
+ 436,
+ 437
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 8,
"character": 8
}
@@ -12344,21 +10845,21 @@
"title": "Variables",
"kind": 32,
"children": [
- 425,
- 426
+ 433,
+ 434
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 427
+ 435
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 5,
"character": 28
}
@@ -12374,21 +10875,21 @@
"title": "Classes",
"kind": 128,
"children": [
- 310
+ 357
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 430,
- 424
+ 438,
+ 432
]
}
],
"sources": [
{
- "fileName": "src/lib/storage/StorageApi.ts",
+ "fileName": "src/lib/storage/StorageFileApi.ts",
"line": 1,
"character": 0
}
@@ -13218,7 +11719,7 @@
]
},
{
- "id": 277,
+ "id": 353,
"name": "\"lib/storage/helpers\"",
"kind": 1,
"kindString": "Module",
@@ -13228,7 +11729,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/helpers.ts",
"children": [
{
- "id": 278,
+ "id": 354,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -13238,7 +11739,7 @@
},
"signatures": [
{
- "id": 279,
+ "id": 355,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -13265,7 +11766,7 @@
"title": "Functions",
"kind": 64,
"children": [
- 278
+ 354
]
}
],
@@ -13278,7 +11779,7 @@
]
},
{
- "id": 432,
+ "id": 440,
"name": "\"lib/storage/index\"",
"kind": 1,
"kindString": "Module",
@@ -13288,74 +11789,84 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/index.ts",
"children": [
{
- "id": 434,
+ "id": 443,
"name": "Bucket",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 281
+ "target": 278
},
{
- "id": 435,
+ "id": 444,
"name": "FileObject",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 287
+ "target": 284
},
{
- "id": 437,
+ "id": 446,
"name": "FileOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 301
+ "target": 298
},
{
- "id": 439,
+ "id": 448,
"name": "Metadata",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 307
+ "target": 304
},
{
- "id": 438,
+ "id": 447,
"name": "SearchOptions",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 303
+ "target": 300
},
{
- "id": 436,
+ "id": 445,
"name": "SortBy",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 298
+ "target": 295
+ },
+ {
+ "id": 441,
+ "name": "StorageBucketApi",
+ "kind": 16777216,
+ "kindString": "Reference",
+ "flags": {
+ "isExported": true
+ },
+ "target": 307
},
{
- "id": 433,
- "name": "StorageApi",
+ "id": 442,
+ "name": "StorageFileApi",
"kind": 16777216,
"kindString": "Reference",
"flags": {
"isExported": true
},
- "target": 310
+ "target": 357
}
],
"groups": [
@@ -13363,13 +11874,14 @@
"title": "References",
"kind": 16777216,
"children": [
- 434,
- 435,
- 437,
- 439,
- 438,
- 436,
- 433
+ 443,
+ 444,
+ 446,
+ 448,
+ 447,
+ 445,
+ 441,
+ 442
]
}
],
@@ -13382,7 +11894,7 @@
]
},
{
- "id": 280,
+ "id": 277,
"name": "\"lib/storage/types\"",
"kind": 1,
"kindString": "Module",
@@ -13392,7 +11904,7 @@
"originalName": "/home/runner/work/supabase-js/supabase-js/src/lib/storage/types.ts",
"children": [
{
- "id": 281,
+ "id": 278,
"name": "Bucket",
"kind": 256,
"kindString": "Interface",
@@ -13401,7 +11913,7 @@
},
"children": [
{
- "id": 285,
+ "id": 282,
"name": "created_at",
"kind": 1024,
"kindString": "Property",
@@ -13421,7 +11933,7 @@
}
},
{
- "id": 282,
+ "id": 279,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -13441,7 +11953,7 @@
}
},
{
- "id": 283,
+ "id": 280,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -13461,7 +11973,7 @@
}
},
{
- "id": 284,
+ "id": 281,
"name": "owner",
"kind": 1024,
"kindString": "Property",
@@ -13481,7 +11993,7 @@
}
},
{
- "id": 286,
+ "id": 283,
"name": "updated_at",
"kind": 1024,
"kindString": "Property",
@@ -13506,11 +12018,11 @@
"title": "Properties",
"kind": 1024,
"children": [
- 285,
282,
- 283,
- 284,
- 286
+ 279,
+ 280,
+ 281,
+ 283
]
}
],
@@ -13523,7 +12035,7 @@
]
},
{
- "id": 287,
+ "id": 284,
"name": "FileObject",
"kind": 256,
"kindString": "Interface",
@@ -13532,7 +12044,7 @@
},
"children": [
{
- "id": 289,
+ "id": 286,
"name": "bucket_id",
"kind": 1024,
"kindString": "Property",
@@ -13552,7 +12064,7 @@
}
},
{
- "id": 297,
+ "id": 294,
"name": "buckets",
"kind": 1024,
"kindString": "Property",
@@ -13568,12 +12080,12 @@
],
"type": {
"type": "reference",
- "id": 281,
+ "id": 278,
"name": "Bucket"
}
},
{
- "id": 293,
+ "id": 290,
"name": "created_at",
"kind": 1024,
"kindString": "Property",
@@ -13593,7 +12105,7 @@
}
},
{
- "id": 291,
+ "id": 288,
"name": "id",
"kind": 1024,
"kindString": "Property",
@@ -13613,7 +12125,7 @@
}
},
{
- "id": 294,
+ "id": 291,
"name": "last_accessed_at",
"kind": 1024,
"kindString": "Property",
@@ -13633,7 +12145,7 @@
}
},
{
- "id": 295,
+ "id": 292,
"name": "metadata",
"kind": 1024,
"kindString": "Property",
@@ -13650,7 +12162,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 296,
+ "id": 293,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -13668,7 +12180,7 @@
}
},
{
- "id": 288,
+ "id": 285,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -13688,7 +12200,7 @@
}
},
{
- "id": 290,
+ "id": 287,
"name": "owner",
"kind": 1024,
"kindString": "Property",
@@ -13708,7 +12220,7 @@
}
},
{
- "id": 292,
+ "id": 289,
"name": "updated_at",
"kind": 1024,
"kindString": "Property",
@@ -13733,15 +12245,15 @@
"title": "Properties",
"kind": 1024,
"children": [
- 289,
- 297,
- 293,
- 291,
+ 286,
294,
- 295,
- 288,
290,
- 292
+ 288,
+ 291,
+ 292,
+ 285,
+ 287,
+ 289
]
}
],
@@ -13754,7 +12266,7 @@
]
},
{
- "id": 301,
+ "id": 298,
"name": "FileOptions",
"kind": 256,
"kindString": "Interface",
@@ -13763,7 +12275,7 @@
},
"children": [
{
- "id": 302,
+ "id": 299,
"name": "cacheControl",
"kind": 1024,
"kindString": "Property",
@@ -13788,7 +12300,7 @@
"title": "Properties",
"kind": 1024,
"children": [
- 302
+ 299
]
}
],
@@ -13801,7 +12313,7 @@
]
},
{
- "id": 307,
+ "id": 304,
"name": "Metadata",
"kind": 256,
"kindString": "Interface",
@@ -13810,7 +12322,7 @@
},
"children": [
{
- "id": 308,
+ "id": 305,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -13835,7 +12347,7 @@
"title": "Properties",
"kind": 1024,
"children": [
- 308
+ 305
]
}
],
@@ -13848,7 +12360,7 @@
]
},
{
- "id": 303,
+ "id": 300,
"name": "SearchOptions",
"kind": 256,
"kindString": "Interface",
@@ -13857,7 +12369,7 @@
},
"children": [
{
- "id": 304,
+ "id": 301,
"name": "limit",
"kind": 1024,
"kindString": "Property",
@@ -13890,7 +12402,7 @@
}
},
{
- "id": 305,
+ "id": 302,
"name": "offset",
"kind": 1024,
"kindString": "Property",
@@ -13923,7 +12435,7 @@
}
},
{
- "id": 306,
+ "id": 303,
"name": "sortBy",
"kind": 1024,
"kindString": "Property",
@@ -13943,7 +12455,7 @@
],
"type": {
"type": "reference",
- "id": 298,
+ "id": 295,
"name": "SortBy"
}
}
@@ -13953,9 +12465,9 @@
"title": "Properties",
"kind": 1024,
"children": [
- 304,
- 305,
- 306
+ 301,
+ 302,
+ 303
]
}
],
@@ -13968,7 +12480,7 @@
]
},
{
- "id": 298,
+ "id": 295,
"name": "SortBy",
"kind": 256,
"kindString": "Interface",
@@ -13977,7 +12489,7 @@
},
"children": [
{
- "id": 299,
+ "id": 296,
"name": "column",
"kind": 1024,
"kindString": "Property",
@@ -14007,7 +12519,7 @@
}
},
{
- "id": 300,
+ "id": 297,
"name": "order",
"kind": 1024,
"kindString": "Property",
@@ -14042,8 +12554,8 @@
"title": "Properties",
"kind": 1024,
"children": [
- 299,
- 300
+ 296,
+ 297
]
}
],
@@ -14061,12 +12573,12 @@
"title": "Interfaces",
"kind": 256,
"children": [
- 281,
- 287,
- 301,
- 307,
- 303,
- 298
+ 278,
+ 284,
+ 298,
+ 304,
+ 300,
+ 295
]
}
],
@@ -14642,19 +13154,20 @@
"title": "Modules",
"kind": 1,
"children": [
- 555,
- 620,
+ 499,
+ 562,
26,
142,
119,
- 440,
+ 449,
1,
- 626,
- 309,
+ 568,
+ 306,
+ 356,
229,
+ 353,
+ 440,
277,
- 432,
- 280,
4
]
}
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index d10004c8b0a..66f3928e038 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -64,9 +64,9 @@ info:
- storage.from.list()
- storage.from.update()
- storage.from.move()
- - storage.from.delete()
+ - storage.from.remove()
- storage.from.createSignedUrl()
- - storage.from.deleteFiles()
+ - storage.from.removeFiles()
- name: 'Modifiers'
items:
- Using Modifiers
@@ -802,7 +802,7 @@ pages:
storage.listBuckets():
title: 'listBuckets()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.listBuckets'
+ $ref: '@supabase/supabase-js."lib/storage/StorageBucketApi".StorageBucketApi.listBuckets'
examples:
- name: List buckets
isSpotlight: true
@@ -815,7 +815,7 @@ pages:
storage.getBucket():
title: 'getBucket()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.getBucket'
+ $ref: '@supabase/supabase-js."lib/storage/StorageBucketApi".StorageBucketApi.getBucket'
examples:
- name: Get bucket
isSpotlight: true
@@ -828,7 +828,7 @@ pages:
storage.createBucket():
title: 'createBucket()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.createBucket'
+ $ref: '@supabase/supabase-js."lib/storage/StorageBucketApi".StorageBucketApi.createBucket'
examples:
- name: Create bucket
isSpotlight: true
@@ -841,7 +841,7 @@ pages:
storage.emptyBucket():
title: 'emptyBucket()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.emptyBucket'
+ $ref: '@supabase/supabase-js."lib/storage/StorageBucketApi".StorageBucketApi.emptyBucket'
examples:
- name: Empty bucket
isSpotlight: true
@@ -854,7 +854,7 @@ pages:
storage.deleteBucket():
title: 'deleteBucket()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.deleteBucket'
+ $ref: '@supabase/supabase-js."lib/storage/StorageBucketApi".StorageBucketApi.deleteBucket'
examples:
- name: Delete bucket
isSpotlight: true
@@ -867,7 +867,7 @@ pages:
storage.from.upload():
title: 'from.upload()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.uploadFile'
+ $ref: '@supabase/supabase-js."lib/storage/StorageFileApi".StorageFileApi.upload'
examples:
- name: Upload file
isSpotlight: true
@@ -882,7 +882,7 @@ pages:
storage.from.update():
title: 'from.update()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.updateFile'
+ $ref: '@supabase/supabase-js."lib/storage/StorageFileApi".StorageFileApi.update'
examples:
- name: Update file
isSpotlight: true
@@ -897,7 +897,7 @@ pages:
storage.from.move():
title: 'from.move()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.moveFile'
+ $ref: '@supabase/supabase-js."lib/storage/StorageFileApi".StorageFileApi.move'
examples:
- name: Move file
isSpotlight: true
@@ -911,7 +911,7 @@ pages:
storage.from.createSignedUrl():
title: 'from.createSignedUrl()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.createSignedUrl'
+ $ref: '@supabase/supabase-js."lib/storage/StorageFileApi".StorageFileApi.createSignedUrl'
examples:
- name: Update file
isSpotlight: true
@@ -925,7 +925,7 @@ pages:
storage.from.download():
title: 'from.download()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.downloadFile'
+ $ref: '@supabase/supabase-js."lib/storage/StorageFileApi".StorageFileApi.download'
examples:
- name: Download file
isSpotlight: true
@@ -937,9 +937,9 @@ pages:
.download('avatar1.png', 60)
```
- storage.from.delete():
- title: 'from.delete()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.deleteFile'
+ storage.from.remove():
+ title: 'from.remove()'
+ $ref: '@supabase/supabase-js."lib/storage/StorageFileApi".StorageFileApi.remove'
examples:
- name: Delete file
isSpotlight: true
@@ -948,26 +948,12 @@ pages:
const { data, error } = await supabase
.storage
.from('avatars')
- .delete('avatar1.png')
- ```
-
- storage.from.deleteFiles():
- title: 'from.deleteFiles()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.deleteFiles'
- examples:
- - name: Delete files
- isSpotlight: true
- js: |
- ```js
- const { data, error } = await supabase
- .storage
- .from('avatars')
- .deleteFiles(['public/avatar1.png', 'public/avatar2.png'])
+ .remove(['avatar1.png'])
```
storage.from.list():
title: 'from.list()'
- $ref: '@supabase/supabase-js."lib/storage/StorageApi".StorageApi.listFiles'
+ $ref: '@supabase/supabase-js."lib/storage/StorageFileApi".StorageFileApi.list'
examples:
- name: List files in a bucket
isSpotlight: true