@supabase/storage-js 2.84.1-canary.0 → 2.85.0
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/README.md +10 -7
- package/dist/main/lib/vectors/StorageVectorsClient.d.ts +108 -14
- package/dist/main/lib/vectors/StorageVectorsClient.d.ts.map +1 -1
- package/dist/main/lib/vectors/StorageVectorsClient.js +124 -4
- package/dist/main/lib/vectors/StorageVectorsClient.js.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.d.ts.map +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/main/lib/version.js.map +1 -1
- package/dist/main/packages/StorageAnalyticsClient.d.ts +5 -5
- package/dist/main/packages/StorageAnalyticsClient.d.ts.map +1 -1
- package/dist/main/packages/StorageAnalyticsClient.js +4 -4
- package/dist/main/packages/StorageBucketApi.d.ts +4 -4
- package/dist/main/packages/StorageBucketApi.js +4 -4
- package/dist/main/packages/StorageFileApi.d.ts +12 -12
- package/dist/main/packages/StorageFileApi.js +12 -12
- package/dist/module/lib/vectors/StorageVectorsClient.d.ts +108 -14
- package/dist/module/lib/vectors/StorageVectorsClient.d.ts.map +1 -1
- package/dist/module/lib/vectors/StorageVectorsClient.js +124 -4
- package/dist/module/lib/vectors/StorageVectorsClient.js.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.d.ts.map +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/module/lib/version.js.map +1 -1
- package/dist/module/packages/StorageAnalyticsClient.d.ts +5 -5
- package/dist/module/packages/StorageAnalyticsClient.d.ts.map +1 -1
- package/dist/module/packages/StorageAnalyticsClient.js +4 -4
- package/dist/module/packages/StorageBucketApi.d.ts +4 -4
- package/dist/module/packages/StorageBucketApi.js +4 -4
- package/dist/module/packages/StorageFileApi.d.ts +12 -12
- package/dist/module/packages/StorageFileApi.js +12 -12
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/umd/supabase.js +1 -1
- package/package.json +1 -1
- package/src/lib/vectors/StorageVectorsClient.ts +114 -4
- package/src/lib/version.ts +1 -1
- package/src/packages/StorageAnalyticsClient.ts +5 -5
- package/src/packages/StorageBucketApi.ts +4 -4
- package/src/packages/StorageFileApi.ts +12 -12
package/README.md
CHANGED
|
@@ -67,7 +67,8 @@ If you're already using `@supabase/supabase-js`, access storage through the clie
|
|
|
67
67
|
```js
|
|
68
68
|
import { createClient } from '@supabase/supabase-js'
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
// Use publishable/anon key for frontend applications
|
|
71
|
+
const supabase = createClient('https://<project_ref>.supabase.co', '<your-publishable-key>')
|
|
71
72
|
|
|
72
73
|
// Access storage
|
|
73
74
|
const storage = supabase.storage
|
|
@@ -80,13 +81,13 @@ const analyticsBucket = storage.analytics // Analytics API
|
|
|
80
81
|
|
|
81
82
|
#### Option 2: Standalone StorageClient
|
|
82
83
|
|
|
83
|
-
For applications
|
|
84
|
+
For backend applications or when you need to bypass Row Level Security:
|
|
84
85
|
|
|
85
86
|
```js
|
|
86
87
|
import { StorageClient } from '@supabase/storage-js'
|
|
87
88
|
|
|
88
89
|
const STORAGE_URL = 'https://<project_ref>.supabase.co/storage/v1'
|
|
89
|
-
const SERVICE_KEY = '<
|
|
90
|
+
const SERVICE_KEY = '<your-secret-key>' // Use secret key for backend operations
|
|
90
91
|
|
|
91
92
|
const storageClient = new StorageClient(STORAGE_URL, {
|
|
92
93
|
apikey: SERVICE_KEY,
|
|
@@ -101,8 +102,10 @@ const analyticsBucket = storageClient.analytics // Analytics API
|
|
|
101
102
|
|
|
102
103
|
> **When to use each approach:**
|
|
103
104
|
>
|
|
104
|
-
> - Use `supabase.storage` when working with other Supabase features (auth, database, etc.)
|
|
105
|
-
> - Use `new StorageClient()` for
|
|
105
|
+
> - Use `supabase.storage` when working with other Supabase features (auth, database, etc.) in frontend applications
|
|
106
|
+
> - Use `new StorageClient()` for backend applications, Edge Functions, or when you need to bypass RLS policies
|
|
107
|
+
|
|
108
|
+
> **Note:** Refer to the [Storage Access Control guide](https://supabase.com/docs/guides/storage/access-control) for detailed information on creating RLS policies.
|
|
106
109
|
|
|
107
110
|
### Understanding Bucket Types
|
|
108
111
|
|
|
@@ -340,7 +343,7 @@ You can access analytics functionality through the `analytics` property on your
|
|
|
340
343
|
```typescript
|
|
341
344
|
import { createClient } from '@supabase/supabase-js'
|
|
342
345
|
|
|
343
|
-
const supabase = createClient('https://your-project.supabase.co', 'your-
|
|
346
|
+
const supabase = createClient('https://your-project.supabase.co', 'your-publishable-key')
|
|
344
347
|
|
|
345
348
|
// Access analytics operations
|
|
346
349
|
const analytics = supabase.storage.analytics
|
|
@@ -646,7 +649,7 @@ If you're using the full Supabase client:
|
|
|
646
649
|
```typescript
|
|
647
650
|
import { createClient } from '@supabase/supabase-js'
|
|
648
651
|
|
|
649
|
-
const supabase = createClient('https://your-project.supabase.co', 'your-
|
|
652
|
+
const supabase = createClient('https://your-project.supabase.co', 'your-publishable-key')
|
|
650
653
|
|
|
651
654
|
// Access vector operations through storage
|
|
652
655
|
const vectors = supabase.storage.vectors
|
|
@@ -2,7 +2,7 @@ import VectorIndexApi, { CreateIndexOptions } from './VectorIndexApi';
|
|
|
2
2
|
import VectorDataApi from './VectorDataApi';
|
|
3
3
|
import { Fetch } from './fetch';
|
|
4
4
|
import VectorBucketApi from './VectorBucketApi';
|
|
5
|
-
import { DeleteVectorsOptions, GetVectorsOptions, ListIndexesOptions, ListVectorsOptions, PutVectorsOptions, QueryVectorsOptions } from './types';
|
|
5
|
+
import { ApiResponse, DeleteVectorsOptions, GetVectorsOptions, ListIndexesOptions, ListVectorsOptions, ListVectorBucketsOptions, ListVectorBucketsResponse, PutVectorsOptions, QueryVectorsOptions, VectorBucket } from './types';
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* @alpha
|
|
@@ -104,6 +104,100 @@ export declare class StorageVectorsClient extends VectorBucketApi {
|
|
|
104
104
|
* ```
|
|
105
105
|
*/
|
|
106
106
|
from(vectorBucketName: string): VectorBucketScope;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @alpha
|
|
110
|
+
*
|
|
111
|
+
* Creates a new vector bucket
|
|
112
|
+
* Vector buckets are containers for vector indexes and their data
|
|
113
|
+
*
|
|
114
|
+
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
115
|
+
*
|
|
116
|
+
* @category Vector Buckets
|
|
117
|
+
* @param vectorBucketName - Unique name for the vector bucket
|
|
118
|
+
* @returns Promise with empty response on success or error
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```typescript
|
|
122
|
+
* const { data, error } = await supabase
|
|
123
|
+
* .storage
|
|
124
|
+
* .vectors
|
|
125
|
+
* .createBucket('embeddings-prod')
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
createBucket(vectorBucketName: string): Promise<ApiResponse<undefined>>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @alpha
|
|
132
|
+
*
|
|
133
|
+
* Retrieves metadata for a specific vector bucket
|
|
134
|
+
*
|
|
135
|
+
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
136
|
+
*
|
|
137
|
+
* @category Vector Buckets
|
|
138
|
+
* @param vectorBucketName - Name of the vector bucket
|
|
139
|
+
* @returns Promise with bucket metadata or error
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```typescript
|
|
143
|
+
* const { data, error } = await supabase
|
|
144
|
+
* .storage
|
|
145
|
+
* .vectors
|
|
146
|
+
* .getBucket('embeddings-prod')
|
|
147
|
+
*
|
|
148
|
+
* console.log('Bucket created:', data?.vectorBucket.creationTime)
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
getBucket(vectorBucketName: string): Promise<ApiResponse<{
|
|
152
|
+
vectorBucket: VectorBucket;
|
|
153
|
+
}>>;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @alpha
|
|
157
|
+
*
|
|
158
|
+
* Lists all vector buckets with optional filtering and pagination
|
|
159
|
+
*
|
|
160
|
+
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
161
|
+
*
|
|
162
|
+
* @category Vector Buckets
|
|
163
|
+
* @param options - Optional filters (prefix, maxResults, nextToken)
|
|
164
|
+
* @returns Promise with list of buckets or error
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```typescript
|
|
168
|
+
* const { data, error } = await supabase
|
|
169
|
+
* .storage
|
|
170
|
+
* .vectors
|
|
171
|
+
* .listBuckets({ prefix: 'embeddings-' })
|
|
172
|
+
*
|
|
173
|
+
* data?.vectorBuckets.forEach(bucket => {
|
|
174
|
+
* console.log(bucket.vectorBucketName)
|
|
175
|
+
* })
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
listBuckets(options?: ListVectorBucketsOptions): Promise<ApiResponse<ListVectorBucketsResponse>>;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @alpha
|
|
182
|
+
*
|
|
183
|
+
* Deletes a vector bucket (bucket must be empty)
|
|
184
|
+
* All indexes must be deleted before deleting the bucket
|
|
185
|
+
*
|
|
186
|
+
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
187
|
+
*
|
|
188
|
+
* @category Vector Buckets
|
|
189
|
+
* @param vectorBucketName - Name of the vector bucket to delete
|
|
190
|
+
* @returns Promise with empty response on success or error
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ```typescript
|
|
194
|
+
* const { data, error } = await supabase
|
|
195
|
+
* .storage
|
|
196
|
+
* .vectors
|
|
197
|
+
* .deleteBucket('embeddings-old')
|
|
198
|
+
* ```
|
|
199
|
+
*/
|
|
200
|
+
deleteBucket(vectorBucketName: string): Promise<ApiResponse<undefined>>;
|
|
107
201
|
}
|
|
108
202
|
/**
|
|
109
203
|
*
|
|
@@ -159,7 +253,7 @@ export declare class VectorBucketScope extends VectorIndexApi {
|
|
|
159
253
|
* })
|
|
160
254
|
* ```
|
|
161
255
|
*/
|
|
162
|
-
createIndex(options: Omit<CreateIndexOptions, 'vectorBucketName'>): Promise<
|
|
256
|
+
createIndex(options: Omit<CreateIndexOptions, 'vectorBucketName'>): Promise<ApiResponse<undefined>>;
|
|
163
257
|
/**
|
|
164
258
|
*
|
|
165
259
|
* @alpha
|
|
@@ -171,7 +265,7 @@ export declare class VectorBucketScope extends VectorIndexApi {
|
|
|
171
265
|
*
|
|
172
266
|
* @category Vector Buckets
|
|
173
267
|
* @param options - Listing options (vectorBucketName is automatically set)
|
|
174
|
-
* @returns Promise with
|
|
268
|
+
* @returns Promise with response containing indexes array and pagination token or error
|
|
175
269
|
*
|
|
176
270
|
* @example
|
|
177
271
|
* ```typescript
|
|
@@ -179,7 +273,7 @@ export declare class VectorBucketScope extends VectorIndexApi {
|
|
|
179
273
|
* const { data } = await bucket.listIndexes({ prefix: 'documents-' })
|
|
180
274
|
* ```
|
|
181
275
|
*/
|
|
182
|
-
listIndexes(options?: Omit<ListIndexesOptions, 'vectorBucketName'>): Promise<
|
|
276
|
+
listIndexes(options?: Omit<ListIndexesOptions, 'vectorBucketName'>): Promise<ApiResponse<import("./types").ListIndexesResponse>>;
|
|
183
277
|
/**
|
|
184
278
|
*
|
|
185
279
|
* @alpha
|
|
@@ -200,7 +294,7 @@ export declare class VectorBucketScope extends VectorIndexApi {
|
|
|
200
294
|
* console.log('Dimension:', data?.index.dimension)
|
|
201
295
|
* ```
|
|
202
296
|
*/
|
|
203
|
-
getIndex(indexName: string): Promise<
|
|
297
|
+
getIndex(indexName: string): Promise<ApiResponse<{
|
|
204
298
|
index: import("./types").VectorIndex;
|
|
205
299
|
}>>;
|
|
206
300
|
/**
|
|
@@ -222,7 +316,7 @@ export declare class VectorBucketScope extends VectorIndexApi {
|
|
|
222
316
|
* await bucket.deleteIndex('old-index')
|
|
223
317
|
* ```
|
|
224
318
|
*/
|
|
225
|
-
deleteIndex(indexName: string): Promise<
|
|
319
|
+
deleteIndex(indexName: string): Promise<ApiResponse<undefined>>;
|
|
226
320
|
/**
|
|
227
321
|
*
|
|
228
322
|
* @alpha
|
|
@@ -312,7 +406,7 @@ export declare class VectorIndexScope extends VectorDataApi {
|
|
|
312
406
|
* })
|
|
313
407
|
* ```
|
|
314
408
|
*/
|
|
315
|
-
putVectors(options: Omit<PutVectorsOptions, 'vectorBucketName' | 'indexName'>): Promise<
|
|
409
|
+
putVectors(options: Omit<PutVectorsOptions, 'vectorBucketName' | 'indexName'>): Promise<ApiResponse<undefined>>;
|
|
316
410
|
/**
|
|
317
411
|
*
|
|
318
412
|
* @alpha
|
|
@@ -324,7 +418,7 @@ export declare class VectorIndexScope extends VectorDataApi {
|
|
|
324
418
|
*
|
|
325
419
|
* @category Vector Buckets
|
|
326
420
|
* @param options - Vector retrieval options (bucket and index names automatically set)
|
|
327
|
-
* @returns Promise with
|
|
421
|
+
* @returns Promise with response containing vectors array or error
|
|
328
422
|
*
|
|
329
423
|
* @example
|
|
330
424
|
* ```typescript
|
|
@@ -335,7 +429,7 @@ export declare class VectorIndexScope extends VectorDataApi {
|
|
|
335
429
|
* })
|
|
336
430
|
* ```
|
|
337
431
|
*/
|
|
338
|
-
getVectors(options: Omit<GetVectorsOptions, 'vectorBucketName' | 'indexName'>): Promise<
|
|
432
|
+
getVectors(options: Omit<GetVectorsOptions, 'vectorBucketName' | 'indexName'>): Promise<ApiResponse<import("./types").GetVectorsResponse>>;
|
|
339
433
|
/**
|
|
340
434
|
*
|
|
341
435
|
* @alpha
|
|
@@ -347,7 +441,7 @@ export declare class VectorIndexScope extends VectorDataApi {
|
|
|
347
441
|
*
|
|
348
442
|
* @category Vector Buckets
|
|
349
443
|
* @param options - Listing options (bucket and index names automatically set)
|
|
350
|
-
* @returns Promise with
|
|
444
|
+
* @returns Promise with response containing vectors array and pagination token or error
|
|
351
445
|
*
|
|
352
446
|
* @example
|
|
353
447
|
* ```typescript
|
|
@@ -358,7 +452,7 @@ export declare class VectorIndexScope extends VectorDataApi {
|
|
|
358
452
|
* })
|
|
359
453
|
* ```
|
|
360
454
|
*/
|
|
361
|
-
listVectors(options?: Omit<ListVectorsOptions, 'vectorBucketName' | 'indexName'>): Promise<
|
|
455
|
+
listVectors(options?: Omit<ListVectorsOptions, 'vectorBucketName' | 'indexName'>): Promise<ApiResponse<import("./types").ListVectorsResponse>>;
|
|
362
456
|
/**
|
|
363
457
|
*
|
|
364
458
|
* @alpha
|
|
@@ -370,7 +464,7 @@ export declare class VectorIndexScope extends VectorDataApi {
|
|
|
370
464
|
*
|
|
371
465
|
* @category Vector Buckets
|
|
372
466
|
* @param options - Query options (bucket and index names automatically set)
|
|
373
|
-
* @returns Promise with array of similar vectors ordered by distance
|
|
467
|
+
* @returns Promise with response containing matches array of similar vectors ordered by distance or error
|
|
374
468
|
*
|
|
375
469
|
* @example
|
|
376
470
|
* ```typescript
|
|
@@ -384,7 +478,7 @@ export declare class VectorIndexScope extends VectorDataApi {
|
|
|
384
478
|
* })
|
|
385
479
|
* ```
|
|
386
480
|
*/
|
|
387
|
-
queryVectors(options: Omit<QueryVectorsOptions, 'vectorBucketName' | 'indexName'>): Promise<
|
|
481
|
+
queryVectors(options: Omit<QueryVectorsOptions, 'vectorBucketName' | 'indexName'>): Promise<ApiResponse<import("./types").QueryVectorsResponse>>;
|
|
388
482
|
/**
|
|
389
483
|
*
|
|
390
484
|
* @alpha
|
|
@@ -406,6 +500,6 @@ export declare class VectorIndexScope extends VectorDataApi {
|
|
|
406
500
|
* })
|
|
407
501
|
* ```
|
|
408
502
|
*/
|
|
409
|
-
deleteVectors(options: Omit<DeleteVectorsOptions, 'vectorBucketName' | 'indexName'>): Promise<
|
|
503
|
+
deleteVectors(options: Omit<DeleteVectorsOptions, 'vectorBucketName' | 'indexName'>): Promise<ApiResponse<undefined>>;
|
|
410
504
|
}
|
|
411
505
|
//# sourceMappingURL=StorageVectorsClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageVectorsClient.d.ts","sourceRoot":"","sources":["../../../../src/lib/vectors/StorageVectorsClient.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,EAAE,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrE,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"StorageVectorsClient.d.ts","sourceRoot":"","sources":["../../../../src/lib/vectors/StorageVectorsClient.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,EAAE,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrE,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,eAAe,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACb,MAAM,SAAS,CAAA;AAEhB;;;;;;;GAOG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IACnC;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBAAa,oBAAqB,SAAQ,eAAe;IACvD;;;;;;;;;;;;;;;;OAgBG;gBACS,GAAG,EAAE,MAAM,EA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BG;IACY,WAAW,CAAC,SAAS,EAAE,MAAM;IAI5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB;CAS3C;AAED;;;;;;;;GAQG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;IACjD,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,SAAS,CAAQ;IAEzB;;;;;;;;;;;;;OAaG;gBAED,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EAClC,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EAAE,KAAK;IAOf;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACY,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,kBAAkB,GAAG,WAAW,CAAC;IAQ5F;;;;;;;;;;;;;;;;;;;;;OAqBG;IACY,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,kBAAkB,GAAG,WAAW,CAAC;IAQ5F;;;;;;;;;;;;;;;;;;;;;OAqBG;IACY,WAAW,CACxB,OAAO,GAAE,IAAI,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,WAAW,CAAM;IAS1E;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACY,YAAY,CACzB,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,kBAAkB,GAAG,WAAW,CAAC;IAStE;;;;;;;;;;;;;;;;;;;;OAoBG;IACY,aAAa,CAC1B,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,kBAAkB,GAAG,WAAW,CAAC;CAQxE"}
|
|
@@ -89,6 +89,126 @@ class StorageVectorsClient extends VectorBucketApi_1.default {
|
|
|
89
89
|
from(vectorBucketName) {
|
|
90
90
|
return new VectorBucketScope(this.url, this.headers, vectorBucketName, this.fetch);
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @alpha
|
|
95
|
+
*
|
|
96
|
+
* Creates a new vector bucket
|
|
97
|
+
* Vector buckets are containers for vector indexes and their data
|
|
98
|
+
*
|
|
99
|
+
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
100
|
+
*
|
|
101
|
+
* @category Vector Buckets
|
|
102
|
+
* @param vectorBucketName - Unique name for the vector bucket
|
|
103
|
+
* @returns Promise with empty response on success or error
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```typescript
|
|
107
|
+
* const { data, error } = await supabase
|
|
108
|
+
* .storage
|
|
109
|
+
* .vectors
|
|
110
|
+
* .createBucket('embeddings-prod')
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
createBucket(vectorBucketName) {
|
|
114
|
+
const _super = Object.create(null, {
|
|
115
|
+
createBucket: { get: () => super.createBucket }
|
|
116
|
+
});
|
|
117
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return _super.createBucket.call(this, vectorBucketName);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @alpha
|
|
124
|
+
*
|
|
125
|
+
* Retrieves metadata for a specific vector bucket
|
|
126
|
+
*
|
|
127
|
+
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
128
|
+
*
|
|
129
|
+
* @category Vector Buckets
|
|
130
|
+
* @param vectorBucketName - Name of the vector bucket
|
|
131
|
+
* @returns Promise with bucket metadata or error
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```typescript
|
|
135
|
+
* const { data, error } = await supabase
|
|
136
|
+
* .storage
|
|
137
|
+
* .vectors
|
|
138
|
+
* .getBucket('embeddings-prod')
|
|
139
|
+
*
|
|
140
|
+
* console.log('Bucket created:', data?.vectorBucket.creationTime)
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
getBucket(vectorBucketName) {
|
|
144
|
+
const _super = Object.create(null, {
|
|
145
|
+
getBucket: { get: () => super.getBucket }
|
|
146
|
+
});
|
|
147
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
return _super.getBucket.call(this, vectorBucketName);
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @alpha
|
|
154
|
+
*
|
|
155
|
+
* Lists all vector buckets with optional filtering and pagination
|
|
156
|
+
*
|
|
157
|
+
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
158
|
+
*
|
|
159
|
+
* @category Vector Buckets
|
|
160
|
+
* @param options - Optional filters (prefix, maxResults, nextToken)
|
|
161
|
+
* @returns Promise with list of buckets or error
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```typescript
|
|
165
|
+
* const { data, error } = await supabase
|
|
166
|
+
* .storage
|
|
167
|
+
* .vectors
|
|
168
|
+
* .listBuckets({ prefix: 'embeddings-' })
|
|
169
|
+
*
|
|
170
|
+
* data?.vectorBuckets.forEach(bucket => {
|
|
171
|
+
* console.log(bucket.vectorBucketName)
|
|
172
|
+
* })
|
|
173
|
+
* ```
|
|
174
|
+
*/
|
|
175
|
+
listBuckets() {
|
|
176
|
+
const _super = Object.create(null, {
|
|
177
|
+
listBuckets: { get: () => super.listBuckets }
|
|
178
|
+
});
|
|
179
|
+
return tslib_1.__awaiter(this, arguments, void 0, function* (options = {}) {
|
|
180
|
+
return _super.listBuckets.call(this, options);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @alpha
|
|
186
|
+
*
|
|
187
|
+
* Deletes a vector bucket (bucket must be empty)
|
|
188
|
+
* All indexes must be deleted before deleting the bucket
|
|
189
|
+
*
|
|
190
|
+
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
191
|
+
*
|
|
192
|
+
* @category Vector Buckets
|
|
193
|
+
* @param vectorBucketName - Name of the vector bucket to delete
|
|
194
|
+
* @returns Promise with empty response on success or error
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* ```typescript
|
|
198
|
+
* const { data, error } = await supabase
|
|
199
|
+
* .storage
|
|
200
|
+
* .vectors
|
|
201
|
+
* .deleteBucket('embeddings-old')
|
|
202
|
+
* ```
|
|
203
|
+
*/
|
|
204
|
+
deleteBucket(vectorBucketName) {
|
|
205
|
+
const _super = Object.create(null, {
|
|
206
|
+
deleteBucket: { get: () => super.deleteBucket }
|
|
207
|
+
});
|
|
208
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
return _super.deleteBucket.call(this, vectorBucketName);
|
|
210
|
+
});
|
|
211
|
+
}
|
|
92
212
|
}
|
|
93
213
|
exports.StorageVectorsClient = StorageVectorsClient;
|
|
94
214
|
/**
|
|
@@ -164,7 +284,7 @@ class VectorBucketScope extends VectorIndexApi_1.default {
|
|
|
164
284
|
*
|
|
165
285
|
* @category Vector Buckets
|
|
166
286
|
* @param options - Listing options (vectorBucketName is automatically set)
|
|
167
|
-
* @returns Promise with
|
|
287
|
+
* @returns Promise with response containing indexes array and pagination token or error
|
|
168
288
|
*
|
|
169
289
|
* @example
|
|
170
290
|
* ```typescript
|
|
@@ -346,7 +466,7 @@ class VectorIndexScope extends VectorDataApi_1.default {
|
|
|
346
466
|
*
|
|
347
467
|
* @category Vector Buckets
|
|
348
468
|
* @param options - Vector retrieval options (bucket and index names automatically set)
|
|
349
|
-
* @returns Promise with
|
|
469
|
+
* @returns Promise with response containing vectors array or error
|
|
350
470
|
*
|
|
351
471
|
* @example
|
|
352
472
|
* ```typescript
|
|
@@ -376,7 +496,7 @@ class VectorIndexScope extends VectorDataApi_1.default {
|
|
|
376
496
|
*
|
|
377
497
|
* @category Vector Buckets
|
|
378
498
|
* @param options - Listing options (bucket and index names automatically set)
|
|
379
|
-
* @returns Promise with
|
|
499
|
+
* @returns Promise with response containing vectors array and pagination token or error
|
|
380
500
|
*
|
|
381
501
|
* @example
|
|
382
502
|
* ```typescript
|
|
@@ -406,7 +526,7 @@ class VectorIndexScope extends VectorDataApi_1.default {
|
|
|
406
526
|
*
|
|
407
527
|
* @category Vector Buckets
|
|
408
528
|
* @param options - Query options (bucket and index names automatically set)
|
|
409
|
-
* @returns Promise with array of similar vectors ordered by distance
|
|
529
|
+
* @returns Promise with response containing matches array of similar vectors ordered by distance or error
|
|
410
530
|
*
|
|
411
531
|
* @example
|
|
412
532
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageVectorsClient.js","sourceRoot":"","sources":["../../../../src/lib/vectors/StorageVectorsClient.ts"],"names":[],"mappings":";;;;AAAA,8EAAqE;AACrE,4EAA2C;AAE3C,gFAA+C;
|
|
1
|
+
{"version":3,"file":"StorageVectorsClient.js","sourceRoot":"","sources":["../../../../src/lib/vectors/StorageVectorsClient.ts"],"names":[],"mappings":";;;;AAAA,8EAAqE;AACrE,4EAA2C;AAE3C,gFAA+C;AAkC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,oBAAqB,SAAQ,yBAAe;IACvD;;;;;;;;;;;;;;;;OAgBG;IACH,YAAY,GAAW,EAAE,UAAuC,EAAE;QAChE,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;IAClD,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,gBAAwB;QAC3B,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;IACpF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,YAAY,CAAC,gBAAwB;;;;;YACzC,OAAO,OAAM,YAAY,YAAC,gBAAgB,EAAC;Q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E,IAAI,CAAC,SAAS,KACzB;QACJ,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACY,YAAY,CACzB,OAAoE;;;;;YAEpE,OAAO,OAAM,YAAY,4CACpB,OAAO,KACV,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,SAAS,EAAE,IAAI,CAAC,SAAS,KACzB;QACJ,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACY,aAAa,CAC1B,OAAqE;;;;;YAErE,OAAO,OAAM,aAAa,4CACrB,OAAO,KACV,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,SAAS,EAAE,IAAI,CAAC,SAAS,KACzB;QACJ,CAAC;KAAA;CACF;AAhMD,4CAgMC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.
|
|
1
|
+
export declare const version = "2.85.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/lib/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/lib/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,WAAW,CAAA"}
|
package/dist/main/lib/version.js
CHANGED
|
@@ -7,5 +7,5 @@ exports.version = void 0;
|
|
|
7
7
|
// - Debugging and support (identifying which version is running)
|
|
8
8
|
// - Telemetry and logging (version reporting in errors/analytics)
|
|
9
9
|
// - Ensuring build artifacts match the published package version
|
|
10
|
-
exports.version = '2.
|
|
10
|
+
exports.version = '2.85.0';
|
|
11
11
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/lib/version.ts"],"names":[],"mappings":";;;AAAA,6EAA6E;AAC7E,gEAAgE;AAChE,uEAAuE;AACvE,iEAAiE;AACjE,kEAAkE;AAClE,iEAAiE;AACpD,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/lib/version.ts"],"names":[],"mappings":";;;AAAA,6EAA6E;AAC7E,gEAAgE;AAChE,uEAAuE;AACvE,iEAAiE;AACjE,kEAAkE;AAClE,iEAAiE;AACpD,QAAA,OAAO,GAAG,QAAQ,CAAA"}
|
|
@@ -54,7 +54,7 @@ export default class StorageAnalyticsClient {
|
|
|
54
54
|
*
|
|
55
55
|
* @category Analytics Buckets
|
|
56
56
|
* @param name A unique name for the bucket you are creating
|
|
57
|
-
* @returns Promise with newly created bucket
|
|
57
|
+
* @returns Promise with response containing newly created analytics bucket or error
|
|
58
58
|
*
|
|
59
59
|
* @example Create analytics bucket
|
|
60
60
|
* ```js
|
|
@@ -97,10 +97,10 @@ export default class StorageAnalyticsClient {
|
|
|
97
97
|
* @param options Query parameters for listing buckets
|
|
98
98
|
* @param options.limit Maximum number of buckets to return
|
|
99
99
|
* @param options.offset Number of buckets to skip
|
|
100
|
-
* @param options.sortColumn Column to sort by ('
|
|
100
|
+
* @param options.sortColumn Column to sort by ('name', 'created_at', 'updated_at')
|
|
101
101
|
* @param options.sortOrder Sort order ('asc' or 'desc')
|
|
102
102
|
* @param options.search Search term to filter bucket names
|
|
103
|
-
* @returns Promise with
|
|
103
|
+
* @returns Promise with response containing array of analytics buckets or error
|
|
104
104
|
*
|
|
105
105
|
* @example List analytics buckets
|
|
106
106
|
* ```js
|
|
@@ -134,7 +134,7 @@ export default class StorageAnalyticsClient {
|
|
|
134
134
|
listBuckets(options?: {
|
|
135
135
|
limit?: number;
|
|
136
136
|
offset?: number;
|
|
137
|
-
sortColumn?: '
|
|
137
|
+
sortColumn?: 'name' | 'created_at' | 'updated_at';
|
|
138
138
|
sortOrder?: 'asc' | 'desc';
|
|
139
139
|
search?: string;
|
|
140
140
|
}): Promise<{
|
|
@@ -155,7 +155,7 @@ export default class StorageAnalyticsClient {
|
|
|
155
155
|
*
|
|
156
156
|
* @category Analytics Buckets
|
|
157
157
|
* @param bucketName The unique identifier of the bucket you would like to delete
|
|
158
|
-
* @returns Promise with success message or error
|
|
158
|
+
* @returns Promise with response containing success message or error
|
|
159
159
|
*
|
|
160
160
|
* @example Delete analytics bucket
|
|
161
161
|
* ```js
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageAnalyticsClient.d.ts","sourceRoot":"","sources":["../../../src/packages/StorageAnalyticsClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,KAAK,EAAqB,MAAM,cAAc,CAAA;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,sBAAsB;IACzC,SAAS,CAAC,GAAG,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IAC5C,SAAS,CAAC,KAAK,EAAE,KAAK,CAAA;IACtB,SAAS,CAAC,kBAAkB,UAAQ;IAEpC;;;;;;;;;;;;;;;;OAgBG;gBACS,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAO,EAAE,KAAK,CAAC,EAAE,KAAK;IAM/E;;;;;;;;;;OAUG;IACI,YAAY,IAAI,IAAI;IAK3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACG,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CACrC;QACE,IAAI,EAAE,cAAc,CAAA;QACpB,KAAK,EAAE,IAAI,CAAA;KACZ,GACD;QACE,IAAI,EAAE,IAAI,CAAA;QACV,KAAK,EAAE,YAAY,CAAA;KACpB,CACJ;IAgBD;;;;;;;;;;;;;;;;;;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AAE;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,UAAU,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,CAAA;QACjD,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;QAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,GAAG,OAAO,CACP;QACE,IAAI,EAAE,cAAc,EAAE,CAAA;QACtB,KAAK,EAAE,IAAI,CAAA;KACZ,GACD;QACE,IAAI,EAAE,IAAI,CAAA;QACV,KAAK,EAAE,YAAY,CAAA;KACpB,CACJ;IA4BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACG,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAC3C;QACE,IAAI,EAAE;YAAE,OAAO,EAAE,MAAM,CAAA;SAAE,CAAA;QACzB,KAAK,EAAE,IAAI,CAAA;KACZ,GACD;QACE,IAAI,EAAE,IAAI,CAAA;QACV,KAAK,EAAE,YAAY,CAAA;KACpB,CACJ;CAoBF"}
|
|
@@ -58,7 +58,7 @@ class StorageAnalyticsClient {
|
|
|
58
58
|
*
|
|
59
59
|
* @category Analytics Buckets
|
|
60
60
|
* @param name A unique name for the bucket you are creating
|
|
61
|
-
* @returns Promise with newly created bucket
|
|
61
|
+
* @returns Promise with response containing newly created analytics bucket or error
|
|
62
62
|
*
|
|
63
63
|
* @example Create analytics bucket
|
|
64
64
|
* ```js
|
|
@@ -111,10 +111,10 @@ class StorageAnalyticsClient {
|
|
|
111
111
|
* @param options Query parameters for listing buckets
|
|
112
112
|
* @param options.limit Maximum number of buckets to return
|
|
113
113
|
* @param options.offset Number of buckets to skip
|
|
114
|
-
* @param options.sortColumn Column to sort by ('
|
|
114
|
+
* @param options.sortColumn Column to sort by ('name', 'created_at', 'updated_at')
|
|
115
115
|
* @param options.sortOrder Sort order ('asc' or 'desc')
|
|
116
116
|
* @param options.search Search term to filter bucket names
|
|
117
|
-
* @returns Promise with
|
|
117
|
+
* @returns Promise with response containing array of analytics buckets or error
|
|
118
118
|
*
|
|
119
119
|
* @example List analytics buckets
|
|
120
120
|
* ```js
|
|
@@ -187,7 +187,7 @@ class StorageAnalyticsClient {
|
|
|
187
187
|
*
|
|
188
188
|
* @category Analytics Buckets
|
|
189
189
|
* @param bucketName The unique identifier of the bucket you would like to delete
|
|
190
|
-
* @returns Promise with success message or error
|
|
190
|
+
* @returns Promise with response containing success message or error
|
|
191
191
|
*
|
|
192
192
|
* @example Delete analytics bucket
|
|
193
193
|
* ```js
|
|
@@ -28,7 +28,7 @@ export default class StorageBucketApi {
|
|
|
28
28
|
* @param options.sortColumn Column to sort by ('id', 'name', 'created_at', 'updated_at')
|
|
29
29
|
* @param options.sortOrder Sort order ('asc' or 'desc')
|
|
30
30
|
* @param options.search Search term to filter bucket names
|
|
31
|
-
* @returns Promise with
|
|
31
|
+
* @returns Promise with response containing array of buckets or error
|
|
32
32
|
*
|
|
33
33
|
* @example List buckets
|
|
34
34
|
* ```js
|
|
@@ -62,7 +62,7 @@ export default class StorageBucketApi {
|
|
|
62
62
|
*
|
|
63
63
|
* @category File Buckets
|
|
64
64
|
* @param id The unique identifier of the bucket you would like to retrieve.
|
|
65
|
-
* @returns Promise with bucket details or error
|
|
65
|
+
* @returns Promise with response containing bucket details or error
|
|
66
66
|
*
|
|
67
67
|
* @example Get bucket
|
|
68
68
|
* ```js
|
|
@@ -111,7 +111,7 @@ export default class StorageBucketApi {
|
|
|
111
111
|
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
|
|
112
112
|
* @param options.type (private-beta) specifies the bucket type. see `BucketType` for more details.
|
|
113
113
|
* - default bucket type is `STANDARD`
|
|
114
|
-
* @returns Promise with newly created bucket
|
|
114
|
+
* @returns Promise with response containing newly created bucket name or error
|
|
115
115
|
*
|
|
116
116
|
* @example Create bucket
|
|
117
117
|
* ```js
|
|
@@ -158,7 +158,7 @@ export default class StorageBucketApi {
|
|
|
158
158
|
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
|
|
159
159
|
* The default value is null, which allows files with all mime types to be uploaded.
|
|
160
160
|
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
|
|
161
|
-
* @returns Promise with success message or error
|
|
161
|
+
* @returns Promise with response containing success message or error
|
|
162
162
|
*
|
|
163
163
|
* @example Update bucket
|
|
164
164
|
* ```js
|
|
@@ -40,7 +40,7 @@ class StorageBucketApi {
|
|
|
40
40
|
* @param options.sortColumn Column to sort by ('id', 'name', 'created_at', 'updated_at')
|
|
41
41
|
* @param options.sortOrder Sort order ('asc' or 'desc')
|
|
42
42
|
* @param options.search Search term to filter bucket names
|
|
43
|
-
* @returns Promise with
|
|
43
|
+
* @returns Promise with response containing array of buckets or error
|
|
44
44
|
*
|
|
45
45
|
* @example List buckets
|
|
46
46
|
* ```js
|
|
@@ -87,7 +87,7 @@ class StorageBucketApi {
|
|
|
87
87
|
*
|
|
88
88
|
* @category File Buckets
|
|
89
89
|
* @param id The unique identifier of the bucket you would like to retrieve.
|
|
90
|
-
* @returns Promise with bucket details or error
|
|
90
|
+
* @returns Promise with response containing bucket details or error
|
|
91
91
|
*
|
|
92
92
|
* @example Get bucket
|
|
93
93
|
* ```js
|
|
@@ -146,7 +146,7 @@ class StorageBucketApi {
|
|
|
146
146
|
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
|
|
147
147
|
* @param options.type (private-beta) specifies the bucket type. see `BucketType` for more details.
|
|
148
148
|
* - default bucket type is `STANDARD`
|
|
149
|
-
* @returns Promise with newly created bucket
|
|
149
|
+
* @returns Promise with response containing newly created bucket name or error
|
|
150
150
|
*
|
|
151
151
|
* @example Create bucket
|
|
152
152
|
* ```js
|
|
@@ -207,7 +207,7 @@ class StorageBucketApi {
|
|
|
207
207
|
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
|
|
208
208
|
* The default value is null, which allows files with all mime types to be uploaded.
|
|
209
209
|
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
|
|
210
|
-
* @returns Promise with success message or error
|
|
210
|
+
* @returns Promise with response containing success message or error
|
|
211
211
|
*
|
|
212
212
|
* @example Update bucket
|
|
213
213
|
* ```js
|