@supabase/storage-js 3.0.0-next.21 → 3.0.0-next.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +101 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +100 -48
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +100 -48
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +101 -49
- package/dist/index.mjs.map +1 -1
- package/dist/umd/supabase.js +1 -1
- package/package.json +1 -1
- package/src/StorageClient.ts +12 -4
- package/src/lib/version.ts +1 -1
- package/src/packages/StorageAnalyticsClient.ts +10 -5
- package/src/packages/StorageBucketApi.ts +12 -6
- package/src/packages/StorageFileApi.ts +30 -15
- package/src/packages/StorageVectorsClient.ts +36 -18
package/dist/index.cjs
CHANGED
|
@@ -623,7 +623,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
623
623
|
/**
|
|
624
624
|
* Uploads a file to an existing bucket.
|
|
625
625
|
*
|
|
626
|
-
* @category
|
|
626
|
+
* @category Storage
|
|
627
|
+
* @subcategory File Buckets
|
|
627
628
|
* @param path The file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
|
|
628
629
|
* @param fileBody The body of the file to be stored in the bucket.
|
|
629
630
|
* @param fileOptions Optional file upload options including cacheControl, contentType, upsert, and metadata.
|
|
@@ -677,7 +678,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
677
678
|
/**
|
|
678
679
|
* Upload a file with a token generated from `createSignedUploadUrl`.
|
|
679
680
|
*
|
|
680
|
-
* @category
|
|
681
|
+
* @category Storage
|
|
682
|
+
* @subcategory File Buckets
|
|
681
683
|
* @param path The file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
|
|
682
684
|
* @param token The token generated from `createSignedUploadUrl`
|
|
683
685
|
* @param fileBody The body of the file to be stored in the bucket.
|
|
@@ -750,7 +752,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
750
752
|
* Signed upload URLs can be used to upload files to the bucket without further authentication.
|
|
751
753
|
* They are valid for 2 hours.
|
|
752
754
|
*
|
|
753
|
-
* @category
|
|
755
|
+
* @category Storage
|
|
756
|
+
* @subcategory File Buckets
|
|
754
757
|
* @param path The file path, including the current file name. For example `folder/image.png`.
|
|
755
758
|
* @param options.upsert If set to true, allows the file to be overwritten if it already exists.
|
|
756
759
|
* @returns Promise with response containing signed upload URL, token, and path or error
|
|
@@ -801,7 +804,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
801
804
|
/**
|
|
802
805
|
* Replaces an existing file at the specified path with a new one.
|
|
803
806
|
*
|
|
804
|
-
* @category
|
|
807
|
+
* @category Storage
|
|
808
|
+
* @subcategory File Buckets
|
|
805
809
|
* @param path The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to update.
|
|
806
810
|
* @param fileBody The body of the file to be stored in the bucket.
|
|
807
811
|
* @param fileOptions Optional file upload options including cacheControl, contentType, and metadata.
|
|
@@ -858,7 +862,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
858
862
|
/**
|
|
859
863
|
* Moves an existing file to a new path in the same bucket.
|
|
860
864
|
*
|
|
861
|
-
* @category
|
|
865
|
+
* @category Storage
|
|
866
|
+
* @subcategory File Buckets
|
|
862
867
|
* @param fromPath The original file path, including the current file name. For example `folder/image.png`.
|
|
863
868
|
* @param toPath The new file path, including the new file name. For example `folder/image-new.png`.
|
|
864
869
|
* @param options The destination options.
|
|
@@ -902,7 +907,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
902
907
|
/**
|
|
903
908
|
* Copies an existing file to a new path in the same bucket.
|
|
904
909
|
*
|
|
905
|
-
* @category
|
|
910
|
+
* @category Storage
|
|
911
|
+
* @subcategory File Buckets
|
|
906
912
|
* @param fromPath The original file path, including the current file name. For example `folder/image.png`.
|
|
907
913
|
* @param toPath The new file path, including the new file name. For example `folder/image-copy.png`.
|
|
908
914
|
* @param options The destination options.
|
|
@@ -946,7 +952,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
946
952
|
/**
|
|
947
953
|
* Creates a signed URL. Use a signed URL to share a file for a fixed amount of time.
|
|
948
954
|
*
|
|
949
|
-
* @category
|
|
955
|
+
* @category Storage
|
|
956
|
+
* @subcategory File Buckets
|
|
950
957
|
* @param path The file path, including the current file name. For example `folder/image.png`.
|
|
951
958
|
* @param expiresIn The number of seconds until the signed URL expires. For example, `60` for a URL which is valid for one minute.
|
|
952
959
|
* @param options.download triggers the file as a download if set to true. Set this parameter as the name of the file if you want to trigger the download with a different filename.
|
|
@@ -1017,7 +1024,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1017
1024
|
/**
|
|
1018
1025
|
* Creates multiple signed URLs. Use a signed URL to share a file for a fixed amount of time.
|
|
1019
1026
|
*
|
|
1020
|
-
* @category
|
|
1027
|
+
* @category Storage
|
|
1028
|
+
* @subcategory File Buckets
|
|
1021
1029
|
* @param paths The file paths to be downloaded, including the current file names. For example `['folder/image.png', 'folder2/image2.png']`.
|
|
1022
1030
|
* @param expiresIn The number of seconds until the signed URLs expire. For example, `60` for URLs which are valid for one minute.
|
|
1023
1031
|
* @param options.download triggers the file as a download if set to true. Set this parameter as the name of the file if you want to trigger the download with a different filename.
|
|
@@ -1076,7 +1084,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1076
1084
|
/**
|
|
1077
1085
|
* Downloads a file from a private bucket. For public buckets, make a request to the URL returned from `getPublicUrl` instead.
|
|
1078
1086
|
*
|
|
1079
|
-
* @category
|
|
1087
|
+
* @category Storage
|
|
1088
|
+
* @subcategory File Buckets
|
|
1080
1089
|
* @param path The full path and file name of the file to be downloaded. For example `folder/image.png`.
|
|
1081
1090
|
* @param options.transform Transform the asset before serving it to the client.
|
|
1082
1091
|
* @param options.cacheNonce Append a cache nonce parameter to the URL to invalidate the cache.
|
|
@@ -1157,7 +1166,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1157
1166
|
* Returns detailed file metadata including size, content type, and timestamps.
|
|
1158
1167
|
* Note: The API returns `last_modified` field, not `updated_at`.
|
|
1159
1168
|
*
|
|
1160
|
-
* @category
|
|
1169
|
+
* @category Storage
|
|
1170
|
+
* @subcategory File Buckets
|
|
1161
1171
|
* @param path The file path, including the file name. For example `folder/image.png`.
|
|
1162
1172
|
* @returns Promise with response containing file metadata or error
|
|
1163
1173
|
*
|
|
@@ -1184,7 +1194,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1184
1194
|
/**
|
|
1185
1195
|
* Checks the existence of a file.
|
|
1186
1196
|
*
|
|
1187
|
-
* @category
|
|
1197
|
+
* @category Storage
|
|
1198
|
+
* @subcategory File Buckets
|
|
1188
1199
|
* @param path The file path, including the file name. For example `folder/image.png`.
|
|
1189
1200
|
* @returns `{ data: true, error: null }` when the file exists, `{ data: false, error: null }` when it does not (HTTP 400 or 404), or throws/returns a `StorageError` for any other failure.
|
|
1190
1201
|
*
|
|
@@ -1222,7 +1233,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1222
1233
|
* A simple convenience function to get the URL for an asset in a public bucket. If you do not want to use this function, you can construct the public URL by concatenating the bucket URL with the path to the asset.
|
|
1223
1234
|
* This function does not verify if the bucket is public. If a public URL is created for a bucket which is not public, you will not be able to download the asset.
|
|
1224
1235
|
*
|
|
1225
|
-
* @category
|
|
1236
|
+
* @category Storage
|
|
1237
|
+
* @subcategory File Buckets
|
|
1226
1238
|
* @param path The path and name of the file to generate the public URL for. For example `folder/image.png`.
|
|
1227
1239
|
* @param options.download Triggers the file as a download if set to true. Set this parameter as the name of the file if you want to trigger the download with a different filename.
|
|
1228
1240
|
* @param options.transform Transform the asset before serving it to the client.
|
|
@@ -1292,7 +1304,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1292
1304
|
* Returns an array of FileObject entries for the deleted files. Note that deprecated
|
|
1293
1305
|
* fields like `bucket_id` may or may not be present in the response - do not rely on them.
|
|
1294
1306
|
*
|
|
1295
|
-
* @category
|
|
1307
|
+
* @category Storage
|
|
1308
|
+
* @subcategory File Buckets
|
|
1296
1309
|
* @param paths An array of files to delete, including the path and file name. For example [`'folder/image.png'`].
|
|
1297
1310
|
* @returns Promise with response containing array of deleted file objects or error
|
|
1298
1311
|
*
|
|
@@ -1341,7 +1354,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1341
1354
|
* Additionally, deprecated fields like `bucket_id`, `owner`, and `buckets` are NOT returned
|
|
1342
1355
|
* by this method.
|
|
1343
1356
|
*
|
|
1344
|
-
* @category
|
|
1357
|
+
* @category Storage
|
|
1358
|
+
* @subcategory File Buckets
|
|
1345
1359
|
* @param path The folder path.
|
|
1346
1360
|
* @param options Search options including limit (defaults to 100), offset, sortBy, and search
|
|
1347
1361
|
* @param parameters Optional fetch parameters including signal for cancellation
|
|
@@ -1430,7 +1444,8 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1430
1444
|
*
|
|
1431
1445
|
* @experimental this method signature might change in the future
|
|
1432
1446
|
*
|
|
1433
|
-
* @category
|
|
1447
|
+
* @category Storage
|
|
1448
|
+
* @subcategory File Buckets
|
|
1434
1449
|
* @param options Search options including prefix, cursor for pagination, limit, with_delimiter
|
|
1435
1450
|
* @param parameters Optional fetch parameters including signal for cancellation
|
|
1436
1451
|
* @returns Promise with response containing folders/objects arrays with pagination info or error
|
|
@@ -1500,7 +1515,7 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1500
1515
|
|
|
1501
1516
|
//#endregion
|
|
1502
1517
|
//#region src/lib/version.ts
|
|
1503
|
-
const version = "3.0.0-next.
|
|
1518
|
+
const version = "3.0.0-next.23";
|
|
1504
1519
|
|
|
1505
1520
|
//#endregion
|
|
1506
1521
|
//#region src/lib/constants.ts
|
|
@@ -1521,7 +1536,8 @@ var StorageBucketApi = class extends BaseApiClient {
|
|
|
1521
1536
|
/**
|
|
1522
1537
|
* Retrieves the details of all Storage buckets within an existing project.
|
|
1523
1538
|
*
|
|
1524
|
-
* @category
|
|
1539
|
+
* @category Storage
|
|
1540
|
+
* @subcategory File Buckets
|
|
1525
1541
|
* @param options Query parameters for listing buckets
|
|
1526
1542
|
* @param options.limit Maximum number of buckets to return
|
|
1527
1543
|
* @param options.offset Number of buckets to skip
|
|
@@ -1566,7 +1582,8 @@ var StorageBucketApi = class extends BaseApiClient {
|
|
|
1566
1582
|
/**
|
|
1567
1583
|
* Retrieves the details of an existing Storage bucket.
|
|
1568
1584
|
*
|
|
1569
|
-
* @category
|
|
1585
|
+
* @category Storage
|
|
1586
|
+
* @subcategory File Buckets
|
|
1570
1587
|
* @param id The unique identifier of the bucket you would like to retrieve.
|
|
1571
1588
|
* @returns Promise with response containing bucket details or error
|
|
1572
1589
|
*
|
|
@@ -1611,7 +1628,8 @@ var StorageBucketApi = class extends BaseApiClient {
|
|
|
1611
1628
|
/**
|
|
1612
1629
|
* Creates a new Storage bucket
|
|
1613
1630
|
*
|
|
1614
|
-
* @category
|
|
1631
|
+
* @category Storage
|
|
1632
|
+
* @subcategory File Buckets
|
|
1615
1633
|
* @param id A unique identifier for the bucket you are creating.
|
|
1616
1634
|
* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. By default, buckets are private.
|
|
1617
1635
|
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
|
|
@@ -1667,7 +1685,8 @@ var StorageBucketApi = class extends BaseApiClient {
|
|
|
1667
1685
|
/**
|
|
1668
1686
|
* Updates a Storage bucket
|
|
1669
1687
|
*
|
|
1670
|
-
* @category
|
|
1688
|
+
* @category Storage
|
|
1689
|
+
* @subcategory File Buckets
|
|
1671
1690
|
* @param id A unique identifier for the bucket you are updating.
|
|
1672
1691
|
* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations.
|
|
1673
1692
|
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
|
|
@@ -1720,7 +1739,8 @@ var StorageBucketApi = class extends BaseApiClient {
|
|
|
1720
1739
|
/**
|
|
1721
1740
|
* Removes all objects inside a single bucket.
|
|
1722
1741
|
*
|
|
1723
|
-
* @category
|
|
1742
|
+
* @category Storage
|
|
1743
|
+
* @subcategory File Buckets
|
|
1724
1744
|
* @param id The unique identifier of the bucket you would like to empty.
|
|
1725
1745
|
* @returns Promise with success message or error
|
|
1726
1746
|
*
|
|
@@ -1757,7 +1777,8 @@ var StorageBucketApi = class extends BaseApiClient {
|
|
|
1757
1777
|
* Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.
|
|
1758
1778
|
* You must first `empty()` the bucket.
|
|
1759
1779
|
*
|
|
1760
|
-
* @category
|
|
1780
|
+
* @category Storage
|
|
1781
|
+
* @subcategory File Buckets
|
|
1761
1782
|
* @param id The unique identifier of the bucket you would like to delete.
|
|
1762
1783
|
* @returns Promise with success message or error
|
|
1763
1784
|
*
|
|
@@ -1817,7 +1838,8 @@ var StorageAnalyticsClient = class extends BaseApiClient {
|
|
|
1817
1838
|
*
|
|
1818
1839
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
1819
1840
|
*
|
|
1820
|
-
* @category
|
|
1841
|
+
* @category Storage
|
|
1842
|
+
* @subcategory Analytics Buckets
|
|
1821
1843
|
* @param url - The base URL for the storage API
|
|
1822
1844
|
* @param headers - HTTP headers to include in requests
|
|
1823
1845
|
* @param fetch - Optional custom fetch implementation
|
|
@@ -1850,7 +1872,8 @@ var StorageAnalyticsClient = class extends BaseApiClient {
|
|
|
1850
1872
|
*
|
|
1851
1873
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
1852
1874
|
*
|
|
1853
|
-
* @category
|
|
1875
|
+
* @category Storage
|
|
1876
|
+
* @subcategory Analytics Buckets
|
|
1854
1877
|
* @param name A unique name for the bucket you are creating
|
|
1855
1878
|
* @returns Promise with response containing newly created analytics bucket or error
|
|
1856
1879
|
*
|
|
@@ -1894,7 +1917,8 @@ var StorageAnalyticsClient = class extends BaseApiClient {
|
|
|
1894
1917
|
*
|
|
1895
1918
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
1896
1919
|
*
|
|
1897
|
-
* @category
|
|
1920
|
+
* @category Storage
|
|
1921
|
+
* @subcategory Analytics Buckets
|
|
1898
1922
|
* @param options Query parameters for listing buckets
|
|
1899
1923
|
* @param options.limit Maximum number of buckets to return
|
|
1900
1924
|
* @param options.offset Number of buckets to skip
|
|
@@ -1959,7 +1983,8 @@ var StorageAnalyticsClient = class extends BaseApiClient {
|
|
|
1959
1983
|
*
|
|
1960
1984
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
1961
1985
|
*
|
|
1962
|
-
* @category
|
|
1986
|
+
* @category Storage
|
|
1987
|
+
* @subcategory Analytics Buckets
|
|
1963
1988
|
* @param bucketName The unique identifier of the bucket you would like to delete
|
|
1964
1989
|
* @returns Promise with response containing success message or error
|
|
1965
1990
|
*
|
|
@@ -2000,7 +2025,8 @@ var StorageAnalyticsClient = class extends BaseApiClient {
|
|
|
2000
2025
|
*
|
|
2001
2026
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2002
2027
|
*
|
|
2003
|
-
* @category
|
|
2028
|
+
* @category Storage
|
|
2029
|
+
* @subcategory Analytics Buckets
|
|
2004
2030
|
* @param bucketName - The name of the analytics bucket (warehouse) to connect to
|
|
2005
2031
|
* @returns The wrapped Iceberg catalog client
|
|
2006
2032
|
* @throws {StorageError} If the bucket name is invalid
|
|
@@ -2352,7 +2378,8 @@ var StorageVectorsClient = class extends VectorBucketApi {
|
|
|
2352
2378
|
*
|
|
2353
2379
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2354
2380
|
*
|
|
2355
|
-
* @category
|
|
2381
|
+
* @category Storage
|
|
2382
|
+
* @subcategory Vector Buckets
|
|
2356
2383
|
* @param url - Base URL of the Storage Vectors REST API.
|
|
2357
2384
|
* @param options.headers - Optional headers (for example `Authorization`) applied to every request.
|
|
2358
2385
|
* @param options.fetch - Optional custom `fetch` implementation for non-browser runtimes.
|
|
@@ -2384,7 +2411,8 @@ var StorageVectorsClient = class extends VectorBucketApi {
|
|
|
2384
2411
|
*
|
|
2385
2412
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2386
2413
|
*
|
|
2387
|
-
* @category
|
|
2414
|
+
* @category Storage
|
|
2415
|
+
* @subcategory Vector Buckets
|
|
2388
2416
|
* @param vectorBucketName - Name of the vector bucket
|
|
2389
2417
|
* @returns Bucket-scoped client with index and vector operations
|
|
2390
2418
|
*
|
|
@@ -2405,7 +2433,8 @@ var StorageVectorsClient = class extends VectorBucketApi {
|
|
|
2405
2433
|
*
|
|
2406
2434
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2407
2435
|
*
|
|
2408
|
-
* @category
|
|
2436
|
+
* @category Storage
|
|
2437
|
+
* @subcategory Vector Buckets
|
|
2409
2438
|
* @param vectorBucketName - Unique name for the vector bucket
|
|
2410
2439
|
* @returns Promise with empty response on success or error
|
|
2411
2440
|
*
|
|
@@ -2429,7 +2458,8 @@ var StorageVectorsClient = class extends VectorBucketApi {
|
|
|
2429
2458
|
*
|
|
2430
2459
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2431
2460
|
*
|
|
2432
|
-
* @category
|
|
2461
|
+
* @category Storage
|
|
2462
|
+
* @subcategory Vector Buckets
|
|
2433
2463
|
* @param vectorBucketName - Name of the vector bucket
|
|
2434
2464
|
* @returns Promise with bucket metadata or error
|
|
2435
2465
|
*
|
|
@@ -2455,7 +2485,8 @@ var StorageVectorsClient = class extends VectorBucketApi {
|
|
|
2455
2485
|
*
|
|
2456
2486
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2457
2487
|
*
|
|
2458
|
-
* @category
|
|
2488
|
+
* @category Storage
|
|
2489
|
+
* @subcategory Vector Buckets
|
|
2459
2490
|
* @param options - Optional filters (prefix, maxResults, nextToken)
|
|
2460
2491
|
* @returns Promise with list of buckets or error
|
|
2461
2492
|
*
|
|
@@ -2484,7 +2515,8 @@ var StorageVectorsClient = class extends VectorBucketApi {
|
|
|
2484
2515
|
*
|
|
2485
2516
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2486
2517
|
*
|
|
2487
|
-
* @category
|
|
2518
|
+
* @category Storage
|
|
2519
|
+
* @subcategory Vector Buckets
|
|
2488
2520
|
* @param vectorBucketName - Name of the vector bucket to delete
|
|
2489
2521
|
* @returns Promise with empty response on success or error
|
|
2490
2522
|
*
|
|
@@ -2518,7 +2550,8 @@ var VectorBucketScope = class extends VectorIndexApi {
|
|
|
2518
2550
|
*
|
|
2519
2551
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2520
2552
|
*
|
|
2521
|
-
* @category
|
|
2553
|
+
* @category Storage
|
|
2554
|
+
* @subcategory Vector Buckets
|
|
2522
2555
|
* @example Creating a vector bucket scope
|
|
2523
2556
|
* ```typescript
|
|
2524
2557
|
* const bucket = supabase.storage.vectors.from('embeddings-prod')
|
|
@@ -2537,7 +2570,8 @@ var VectorBucketScope = class extends VectorIndexApi {
|
|
|
2537
2570
|
*
|
|
2538
2571
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2539
2572
|
*
|
|
2540
|
-
* @category
|
|
2573
|
+
* @category Storage
|
|
2574
|
+
* @subcategory Vector Buckets
|
|
2541
2575
|
* @param options - Index configuration (vectorBucketName is automatically set)
|
|
2542
2576
|
* @returns Promise with empty response on success or error
|
|
2543
2577
|
*
|
|
@@ -2568,7 +2602,8 @@ var VectorBucketScope = class extends VectorIndexApi {
|
|
|
2568
2602
|
*
|
|
2569
2603
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2570
2604
|
*
|
|
2571
|
-
* @category
|
|
2605
|
+
* @category Storage
|
|
2606
|
+
* @subcategory Vector Buckets
|
|
2572
2607
|
* @param options - Listing options (vectorBucketName is automatically set)
|
|
2573
2608
|
* @returns Promise with response containing indexes array and pagination token or error
|
|
2574
2609
|
*
|
|
@@ -2591,7 +2626,8 @@ var VectorBucketScope = class extends VectorIndexApi {
|
|
|
2591
2626
|
*
|
|
2592
2627
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2593
2628
|
*
|
|
2594
|
-
* @category
|
|
2629
|
+
* @category Storage
|
|
2630
|
+
* @subcategory Vector Buckets
|
|
2595
2631
|
* @param indexName - Name of the index to retrieve
|
|
2596
2632
|
* @returns Promise with index metadata or error
|
|
2597
2633
|
*
|
|
@@ -2615,7 +2651,8 @@ var VectorBucketScope = class extends VectorIndexApi {
|
|
|
2615
2651
|
*
|
|
2616
2652
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2617
2653
|
*
|
|
2618
|
-
* @category
|
|
2654
|
+
* @category Storage
|
|
2655
|
+
* @subcategory Vector Buckets
|
|
2619
2656
|
* @param indexName - Name of the index to delete
|
|
2620
2657
|
* @returns Promise with empty response on success or error
|
|
2621
2658
|
*
|
|
@@ -2638,7 +2675,8 @@ var VectorBucketScope = class extends VectorIndexApi {
|
|
|
2638
2675
|
*
|
|
2639
2676
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2640
2677
|
*
|
|
2641
|
-
* @category
|
|
2678
|
+
* @category Storage
|
|
2679
|
+
* @subcategory Vector Buckets
|
|
2642
2680
|
* @param indexName - Name of the index
|
|
2643
2681
|
* @returns Index-scoped client with vector data operations
|
|
2644
2682
|
*
|
|
@@ -2682,7 +2720,8 @@ var VectorIndexScope = class extends VectorDataApi {
|
|
|
2682
2720
|
*
|
|
2683
2721
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2684
2722
|
*
|
|
2685
|
-
* @category
|
|
2723
|
+
* @category Storage
|
|
2724
|
+
* @subcategory Vector Buckets
|
|
2686
2725
|
* @example Creating a vector index scope
|
|
2687
2726
|
* ```typescript
|
|
2688
2727
|
* const index = supabase.storage.vectors.from('embeddings-prod').index('documents-openai')
|
|
@@ -2702,7 +2741,8 @@ var VectorIndexScope = class extends VectorDataApi {
|
|
|
2702
2741
|
*
|
|
2703
2742
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2704
2743
|
*
|
|
2705
|
-
* @category
|
|
2744
|
+
* @category Storage
|
|
2745
|
+
* @subcategory Vector Buckets
|
|
2706
2746
|
* @param options - Vector insertion options (bucket and index names automatically set)
|
|
2707
2747
|
* @returns Promise with empty response on success or error
|
|
2708
2748
|
*
|
|
@@ -2736,7 +2776,8 @@ var VectorIndexScope = class extends VectorDataApi {
|
|
|
2736
2776
|
*
|
|
2737
2777
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2738
2778
|
*
|
|
2739
|
-
* @category
|
|
2779
|
+
* @category Storage
|
|
2780
|
+
* @subcategory Vector Buckets
|
|
2740
2781
|
* @param options - Vector retrieval options (bucket and index names automatically set)
|
|
2741
2782
|
* @returns Promise with response containing vectors array or error
|
|
2742
2783
|
*
|
|
@@ -2765,7 +2806,8 @@ var VectorIndexScope = class extends VectorDataApi {
|
|
|
2765
2806
|
*
|
|
2766
2807
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2767
2808
|
*
|
|
2768
|
-
* @category
|
|
2809
|
+
* @category Storage
|
|
2810
|
+
* @subcategory Vector Buckets
|
|
2769
2811
|
* @param options - Listing options (bucket and index names automatically set)
|
|
2770
2812
|
* @returns Promise with response containing vectors array and pagination token or error
|
|
2771
2813
|
*
|
|
@@ -2794,7 +2836,8 @@ var VectorIndexScope = class extends VectorDataApi {
|
|
|
2794
2836
|
*
|
|
2795
2837
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2796
2838
|
*
|
|
2797
|
-
* @category
|
|
2839
|
+
* @category Storage
|
|
2840
|
+
* @subcategory Vector Buckets
|
|
2798
2841
|
* @param options - Query options (bucket and index names automatically set)
|
|
2799
2842
|
* @returns Promise with response containing matches array of similar vectors ordered by distance or error
|
|
2800
2843
|
*
|
|
@@ -2826,7 +2869,8 @@ var VectorIndexScope = class extends VectorDataApi {
|
|
|
2826
2869
|
*
|
|
2827
2870
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2828
2871
|
*
|
|
2829
|
-
* @category
|
|
2872
|
+
* @category Storage
|
|
2873
|
+
* @subcategory Vector Buckets
|
|
2830
2874
|
* @param options - Deletion options (bucket and index names automatically set)
|
|
2831
2875
|
* @returns Promise with empty response on success or error
|
|
2832
2876
|
*
|
|
@@ -2853,7 +2897,9 @@ var StorageClient = class extends StorageBucketApi {
|
|
|
2853
2897
|
/**
|
|
2854
2898
|
* Creates a client for Storage buckets, files, analytics, and vectors.
|
|
2855
2899
|
*
|
|
2856
|
-
* @category
|
|
2900
|
+
* @category Storage
|
|
2901
|
+
* @subcategory File Buckets
|
|
2902
|
+
*
|
|
2857
2903
|
* @example Using supabase-js (recommended)
|
|
2858
2904
|
* ```ts
|
|
2859
2905
|
* import { createClient } from '@supabase/supabase-js'
|
|
@@ -2878,7 +2924,9 @@ var StorageClient = class extends StorageBucketApi {
|
|
|
2878
2924
|
/**
|
|
2879
2925
|
* Perform file operation in a bucket.
|
|
2880
2926
|
*
|
|
2881
|
-
* @category
|
|
2927
|
+
* @category Storage
|
|
2928
|
+
* @subcategory File Buckets
|
|
2929
|
+
*
|
|
2882
2930
|
* @param id The bucket id to operate on.
|
|
2883
2931
|
*
|
|
2884
2932
|
* @example Accessing a bucket
|
|
@@ -2897,7 +2945,9 @@ var StorageClient = class extends StorageBucketApi {
|
|
|
2897
2945
|
*
|
|
2898
2946
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2899
2947
|
*
|
|
2900
|
-
* @category
|
|
2948
|
+
* @category Storage
|
|
2949
|
+
* @subcategory Vector Buckets
|
|
2950
|
+
*
|
|
2901
2951
|
* @returns A StorageVectorsClient instance configured with the current storage settings.
|
|
2902
2952
|
*/
|
|
2903
2953
|
get vectors() {
|
|
@@ -2914,7 +2964,9 @@ var StorageClient = class extends StorageBucketApi {
|
|
|
2914
2964
|
*
|
|
2915
2965
|
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
2916
2966
|
*
|
|
2917
|
-
* @category
|
|
2967
|
+
* @category Storage
|
|
2968
|
+
* @subcategory Analytics Buckets
|
|
2969
|
+
*
|
|
2918
2970
|
* @returns A StorageAnalyticsClient instance configured with the current storage settings.
|
|
2919
2971
|
*/
|
|
2920
2972
|
get analytics() {
|