@supabase/storage-js 2.84.0 → 2.84.1-canary.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/dist/main/StorageClient.d.ts +1 -15
- package/dist/main/StorageClient.d.ts.map +1 -1
- package/dist/main/StorageClient.js +1 -15
- package/dist/main/StorageClient.js.map +1 -1
- package/dist/main/lib/vectors/StorageVectorsClient.d.ts +18 -47
- package/dist/main/lib/vectors/StorageVectorsClient.d.ts.map +1 -1
- package/dist/main/lib/vectors/StorageVectorsClient.js +18 -47
- package/dist/main/lib/vectors/StorageVectorsClient.js.map +1 -1
- package/dist/main/lib/vectors/VectorBucketApi.d.ts +9 -153
- package/dist/main/lib/vectors/VectorBucketApi.d.ts.map +1 -1
- package/dist/main/lib/vectors/VectorBucketApi.js +9 -153
- package/dist/main/lib/vectors/VectorBucketApi.js.map +1 -1
- package/dist/main/lib/vectors/VectorDataApi.d.ts +10 -258
- package/dist/main/lib/vectors/VectorDataApi.d.ts.map +1 -1
- package/dist/main/lib/vectors/VectorDataApi.js +10 -258
- package/dist/main/lib/vectors/VectorDataApi.js.map +1 -1
- package/dist/main/lib/vectors/VectorIndexApi.d.ts +9 -177
- package/dist/main/lib/vectors/VectorIndexApi.d.ts.map +1 -1
- package/dist/main/lib/vectors/VectorIndexApi.js +9 -176
- package/dist/main/lib/vectors/VectorIndexApi.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 +6 -2
- package/dist/main/packages/StorageAnalyticsClient.d.ts.map +1 -1
- package/dist/main/packages/StorageAnalyticsClient.js +6 -2
- package/dist/main/packages/StorageAnalyticsClient.js.map +1 -1
- package/dist/module/StorageClient.d.ts +1 -15
- package/dist/module/StorageClient.d.ts.map +1 -1
- package/dist/module/StorageClient.js +1 -15
- package/dist/module/StorageClient.js.map +1 -1
- package/dist/module/lib/vectors/StorageVectorsClient.d.ts +18 -47
- package/dist/module/lib/vectors/StorageVectorsClient.d.ts.map +1 -1
- package/dist/module/lib/vectors/StorageVectorsClient.js +18 -47
- package/dist/module/lib/vectors/StorageVectorsClient.js.map +1 -1
- package/dist/module/lib/vectors/VectorBucketApi.d.ts +9 -153
- package/dist/module/lib/vectors/VectorBucketApi.d.ts.map +1 -1
- package/dist/module/lib/vectors/VectorBucketApi.js +9 -153
- package/dist/module/lib/vectors/VectorBucketApi.js.map +1 -1
- package/dist/module/lib/vectors/VectorDataApi.d.ts +10 -258
- package/dist/module/lib/vectors/VectorDataApi.d.ts.map +1 -1
- package/dist/module/lib/vectors/VectorDataApi.js +10 -258
- package/dist/module/lib/vectors/VectorDataApi.js.map +1 -1
- package/dist/module/lib/vectors/VectorIndexApi.d.ts +9 -177
- package/dist/module/lib/vectors/VectorIndexApi.d.ts.map +1 -1
- package/dist/module/lib/vectors/VectorIndexApi.js +9 -176
- package/dist/module/lib/vectors/VectorIndexApi.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 +6 -2
- package/dist/module/packages/StorageAnalyticsClient.d.ts.map +1 -1
- package/dist/module/packages/StorageAnalyticsClient.js +6 -2
- package/dist/module/packages/StorageAnalyticsClient.js.map +1 -1
- 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/StorageClient.ts +1 -15
- package/src/lib/vectors/StorageVectorsClient.ts +18 -47
- package/src/lib/vectors/VectorBucketApi.ts +9 -153
- package/src/lib/vectors/VectorDataApi.ts +10 -258
- package/src/lib/vectors/VectorIndexApi.ts +9 -177
- package/src/lib/version.ts +1 -1
- package/src/packages/StorageAnalyticsClient.ts +6 -2
|
@@ -13,32 +13,14 @@ import VectorBucketApi from './VectorBucketApi';
|
|
|
13
13
|
*
|
|
14
14
|
* **Usage Patterns:**
|
|
15
15
|
*
|
|
16
|
-
* 1. **Via StorageClient (recommended for most use cases):**
|
|
17
16
|
* ```typescript
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* // Use vector operations
|
|
24
|
-
* await vectors.createBucket('embeddings-prod')
|
|
25
|
-
* const bucket = vectors.from('embeddings-prod')
|
|
26
|
-
* await bucket.createIndex({ ... })
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* 2. **Standalone (for vector-only applications):**
|
|
30
|
-
* ```typescript
|
|
31
|
-
* import { StorageVectorsClient } from '@supabase/storage-js'
|
|
32
|
-
*
|
|
33
|
-
* const vectorsClient = new StorageVectorsClient('https://api.example.com', {
|
|
34
|
-
* headers: { 'Authorization': 'Bearer token' }
|
|
35
|
-
* })
|
|
36
|
-
*
|
|
37
|
-
* // Access bucket operations
|
|
38
|
-
* await vectorsClient.createBucket('embeddings-prod')
|
|
17
|
+
* const { data, error } = await supabase
|
|
18
|
+
* .storage
|
|
19
|
+
* .vectors
|
|
20
|
+
* .createBucket('embeddings-prod')
|
|
39
21
|
*
|
|
40
22
|
* // Access index operations via buckets
|
|
41
|
-
* const bucket =
|
|
23
|
+
* const bucket = supabase.storage.vectors.from('embeddings-prod')
|
|
42
24
|
* await bucket.createIndex({
|
|
43
25
|
* indexName: 'documents',
|
|
44
26
|
* dataType: 'float32',
|
|
@@ -98,18 +80,7 @@ export class StorageVectorsClient extends VectorBucketApi {
|
|
|
98
80
|
*
|
|
99
81
|
* @example
|
|
100
82
|
* ```typescript
|
|
101
|
-
* const bucket =
|
|
102
|
-
*
|
|
103
|
-
* // Create an index in this bucket
|
|
104
|
-
* await bucket.createIndex({
|
|
105
|
-
* indexName: 'documents-openai',
|
|
106
|
-
* dataType: 'float32',
|
|
107
|
-
* dimension: 1536,
|
|
108
|
-
* distanceMetric: 'cosine'
|
|
109
|
-
* })
|
|
110
|
-
*
|
|
111
|
-
* // List indexes in this bucket
|
|
112
|
-
* const { data } = await bucket.listIndexes()
|
|
83
|
+
* const bucket = supabase.storage.vectors.from('embeddings-prod')
|
|
113
84
|
* ```
|
|
114
85
|
*/
|
|
115
86
|
from(vectorBucketName) {
|
|
@@ -136,7 +107,7 @@ export class VectorBucketScope extends VectorIndexApi {
|
|
|
136
107
|
* @category Vector Buckets
|
|
137
108
|
* @example
|
|
138
109
|
* ```typescript
|
|
139
|
-
* const bucket =
|
|
110
|
+
* const bucket = supabase.storage.vectors.from('embeddings-prod')
|
|
140
111
|
* ```
|
|
141
112
|
*/
|
|
142
113
|
constructor(url, headers, vectorBucketName, fetch) {
|
|
@@ -158,7 +129,7 @@ export class VectorBucketScope extends VectorIndexApi {
|
|
|
158
129
|
*
|
|
159
130
|
* @example
|
|
160
131
|
* ```typescript
|
|
161
|
-
* const bucket =
|
|
132
|
+
* const bucket = supabase.storage.vectors.from('embeddings-prod')
|
|
162
133
|
* await bucket.createIndex({
|
|
163
134
|
* indexName: 'documents-openai',
|
|
164
135
|
* dataType: 'float32',
|
|
@@ -193,7 +164,7 @@ export class VectorBucketScope extends VectorIndexApi {
|
|
|
193
164
|
*
|
|
194
165
|
* @example
|
|
195
166
|
* ```typescript
|
|
196
|
-
* const bucket =
|
|
167
|
+
* const bucket = supabase.storage.vectors.from('embeddings-prod')
|
|
197
168
|
* const { data } = await bucket.listIndexes({ prefix: 'documents-' })
|
|
198
169
|
* ```
|
|
199
170
|
*/
|
|
@@ -220,7 +191,7 @@ export class VectorBucketScope extends VectorIndexApi {
|
|
|
220
191
|
*
|
|
221
192
|
* @example
|
|
222
193
|
* ```typescript
|
|
223
|
-
* const bucket =
|
|
194
|
+
* const bucket = supabase.storage.vectors.from('embeddings-prod')
|
|
224
195
|
* const { data } = await bucket.getIndex('documents-openai')
|
|
225
196
|
* console.log('Dimension:', data?.index.dimension)
|
|
226
197
|
* ```
|
|
@@ -248,7 +219,7 @@ export class VectorBucketScope extends VectorIndexApi {
|
|
|
248
219
|
*
|
|
249
220
|
* @example
|
|
250
221
|
* ```typescript
|
|
251
|
-
* const bucket =
|
|
222
|
+
* const bucket = supabase.storage.vectors.from('embeddings-prod')
|
|
252
223
|
* await bucket.deleteIndex('old-index')
|
|
253
224
|
* ```
|
|
254
225
|
*/
|
|
@@ -275,7 +246,7 @@ export class VectorBucketScope extends VectorIndexApi {
|
|
|
275
246
|
*
|
|
276
247
|
* @example
|
|
277
248
|
* ```typescript
|
|
278
|
-
* const index =
|
|
249
|
+
* const index = supabase.storage.vectors.from('embeddings-prod').index('documents-openai')
|
|
279
250
|
*
|
|
280
251
|
* // Insert vectors
|
|
281
252
|
* await index.putVectors({
|
|
@@ -316,7 +287,7 @@ export class VectorIndexScope extends VectorDataApi {
|
|
|
316
287
|
* @category Vector Buckets
|
|
317
288
|
* @example
|
|
318
289
|
* ```typescript
|
|
319
|
-
* const index =
|
|
290
|
+
* const index = supabase.storage.vectors.from('embeddings-prod').index('documents-openai')
|
|
320
291
|
* ```
|
|
321
292
|
*/
|
|
322
293
|
constructor(url, headers, vectorBucketName, indexName, fetch) {
|
|
@@ -339,7 +310,7 @@ export class VectorIndexScope extends VectorDataApi {
|
|
|
339
310
|
*
|
|
340
311
|
* @example
|
|
341
312
|
* ```typescript
|
|
342
|
-
* const index =
|
|
313
|
+
* const index = supabase.storage.vectors.from('embeddings-prod').index('documents-openai')
|
|
343
314
|
* await index.putVectors({
|
|
344
315
|
* vectors: [
|
|
345
316
|
* {
|
|
@@ -374,7 +345,7 @@ export class VectorIndexScope extends VectorDataApi {
|
|
|
374
345
|
*
|
|
375
346
|
* @example
|
|
376
347
|
* ```typescript
|
|
377
|
-
* const index =
|
|
348
|
+
* const index = supabase.storage.vectors.from('embeddings-prod').index('documents-openai')
|
|
378
349
|
* const { data } = await index.getVectors({
|
|
379
350
|
* keys: ['doc-1', 'doc-2'],
|
|
380
351
|
* returnMetadata: true
|
|
@@ -404,7 +375,7 @@ export class VectorIndexScope extends VectorDataApi {
|
|
|
404
375
|
*
|
|
405
376
|
* @example
|
|
406
377
|
* ```typescript
|
|
407
|
-
* const index =
|
|
378
|
+
* const index = supabase.storage.vectors.from('embeddings-prod').index('documents-openai')
|
|
408
379
|
* const { data } = await index.listVectors({
|
|
409
380
|
* maxResults: 500,
|
|
410
381
|
* returnMetadata: true
|
|
@@ -434,7 +405,7 @@ export class VectorIndexScope extends VectorDataApi {
|
|
|
434
405
|
*
|
|
435
406
|
* @example
|
|
436
407
|
* ```typescript
|
|
437
|
-
* const index =
|
|
408
|
+
* const index = supabase.storage.vectors.from('embeddings-prod').index('documents-openai')
|
|
438
409
|
* const { data } = await index.queryVectors({
|
|
439
410
|
* queryVector: { float32: [0.1, 0.2, ...] },
|
|
440
411
|
* topK: 5,
|
|
@@ -467,7 +438,7 @@ export class VectorIndexScope extends VectorDataApi {
|
|
|
467
438
|
*
|
|
468
439
|
* @example
|
|
469
440
|
* ```typescript
|
|
470
|
-
* const index =
|
|
441
|
+
* const index = supabase.storage.vectors.from('embeddings-prod').index('documents-openai')
|
|
471
442
|
* await index.deleteVectors({
|
|
472
443
|
* keys: ['doc-1', 'doc-2', 'doc-3']
|
|
473
444
|
* })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageVectorsClient.js","sourceRoot":"","sources":["../../../../src/lib/vectors/StorageVectorsClient.ts"],"names":[],"mappings":";AAAA,OAAO,cAAsC,MAAM,kBAAkB,CAAA;AACrE,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAE3C,OAAO,eAAe,MAAM,mBAAmB,CAAA;AA8B/C
|
|
1
|
+
{"version":3,"file":"StorageVectorsClient.js","sourceRoot":"","sources":["../../../../src/lib/vectors/StorageVectorsClient.ts"],"names":[],"mappings":";AAAA,OAAO,cAAsC,MAAM,kBAAkB,CAAA;AACrE,OAAO,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B,UAAsE,EAAE;YAExE,OAAO,OAAM,WAAW,4CACnB,OAAO,KACV,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,SAAS,EAAE,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"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Fetch } from './fetch';
|
|
2
2
|
import { ApiResponse, VectorBucket, ListVectorBucketsOptions, ListVectorBucketsResponse } from './types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* API class for managing Vector Buckets
|
|
8
|
-
* Provides methods for creating, reading, listing, and deleting vector buckets
|
|
9
|
-
*
|
|
10
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
4
|
+
* @hidden
|
|
5
|
+
* Base implementation for vector bucket operations.
|
|
6
|
+
* Use {@link StorageVectorsClient} via `supabase.storage.vectors` instead.
|
|
11
7
|
*/
|
|
12
8
|
export default class VectorBucketApi {
|
|
13
9
|
protected url: string;
|
|
@@ -16,161 +12,21 @@ export default class VectorBucketApi {
|
|
|
16
12
|
};
|
|
17
13
|
protected fetch: Fetch;
|
|
18
14
|
protected shouldThrowOnError: boolean;
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @alpha
|
|
22
|
-
*
|
|
23
|
-
* Creates a new VectorBucketApi instance
|
|
24
|
-
*
|
|
25
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
26
|
-
*
|
|
27
|
-
* @category Vector Buckets
|
|
28
|
-
* @param url - The base URL for the storage vectors API
|
|
29
|
-
* @param headers - HTTP headers to include in requests
|
|
30
|
-
* @param fetch - Optional custom fetch implementation
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```typescript
|
|
34
|
-
* const client = new VectorBucketApi(url, headers)
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
15
|
+
/** Creates a new VectorBucketApi instance */
|
|
37
16
|
constructor(url: string, headers?: {
|
|
38
17
|
[key: string]: string;
|
|
39
18
|
}, fetch?: Fetch);
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @alpha
|
|
43
|
-
*
|
|
44
|
-
* Enable throwing errors instead of returning them in the response
|
|
45
|
-
* When enabled, failed operations will throw instead of returning { data: null, error }
|
|
46
|
-
*
|
|
47
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
48
|
-
*
|
|
49
|
-
* @category Vector Buckets
|
|
50
|
-
* @returns This instance for method chaining
|
|
51
|
-
* @example
|
|
52
|
-
* ```typescript
|
|
53
|
-
* const client = new VectorBucketApi(url, headers)
|
|
54
|
-
* client.throwOnError()
|
|
55
|
-
* const { data } = await client.createBucket('my-bucket') // throws on error
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
19
|
+
/** Enable throwing errors instead of returning them in the response */
|
|
58
20
|
throwOnError(): this;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @alpha
|
|
62
|
-
*
|
|
63
|
-
* Creates a new vector bucket
|
|
64
|
-
* Vector buckets are containers for vector indexes and their data
|
|
65
|
-
*
|
|
66
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
67
|
-
*
|
|
68
|
-
* @category Vector Buckets
|
|
69
|
-
* @param vectorBucketName - Unique name for the vector bucket
|
|
70
|
-
* @returns Promise with empty response on success or error
|
|
71
|
-
*
|
|
72
|
-
* @throws {StorageVectorsApiError} With code:
|
|
73
|
-
* - `S3VectorConflictException` if bucket already exists (HTTP 409)
|
|
74
|
-
* - `S3VectorMaxBucketsExceeded` if quota exceeded (HTTP 400)
|
|
75
|
-
* - `InternalError` for server errors (HTTP 500)
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```typescript
|
|
79
|
-
* const { data, error } = await client.createBucket('embeddings-prod')
|
|
80
|
-
* if (error) {
|
|
81
|
-
* console.error('Failed to create bucket:', error.message)
|
|
82
|
-
* }
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
21
|
+
/** Creates a new vector bucket */
|
|
85
22
|
createBucket(vectorBucketName: string): Promise<ApiResponse<undefined>>;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @alpha
|
|
89
|
-
*
|
|
90
|
-
* Retrieves metadata for a specific vector bucket
|
|
91
|
-
* Returns bucket configuration including encryption settings and creation time
|
|
92
|
-
*
|
|
93
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
94
|
-
*
|
|
95
|
-
* @category Vector Buckets
|
|
96
|
-
* @param vectorBucketName - Name of the vector bucket to retrieve
|
|
97
|
-
* @returns Promise with bucket metadata or error
|
|
98
|
-
*
|
|
99
|
-
* @throws {StorageVectorsApiError} With code:
|
|
100
|
-
* - `S3VectorNotFoundException` if bucket doesn't exist (HTTP 404)
|
|
101
|
-
* - `InternalError` for server errors (HTTP 500)
|
|
102
|
-
*
|
|
103
|
-
* @example
|
|
104
|
-
* ```typescript
|
|
105
|
-
* const { data, error } = await client.getBucket('embeddings-prod')
|
|
106
|
-
* if (data) {
|
|
107
|
-
* console.log('Bucket created at:', new Date(data.vectorBucket.creationTime! * 1000))
|
|
108
|
-
* }
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
23
|
+
/** Retrieves metadata for a specific vector bucket */
|
|
111
24
|
getBucket(vectorBucketName: string): Promise<ApiResponse<{
|
|
112
25
|
vectorBucket: VectorBucket;
|
|
113
26
|
}>>;
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @alpha
|
|
117
|
-
*
|
|
118
|
-
* Lists vector buckets with optional filtering and pagination
|
|
119
|
-
* Supports prefix-based filtering and paginated results
|
|
120
|
-
*
|
|
121
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
122
|
-
*
|
|
123
|
-
* @category Vector Buckets
|
|
124
|
-
* @param options - Listing options
|
|
125
|
-
* @param options.prefix - Filter buckets by name prefix
|
|
126
|
-
* @param options.maxResults - Maximum results per page (default: 100)
|
|
127
|
-
* @param options.nextToken - Pagination token from previous response
|
|
128
|
-
* @returns Promise with list of buckets and pagination token
|
|
129
|
-
*
|
|
130
|
-
* @throws {StorageVectorsApiError} With code:
|
|
131
|
-
* - `InternalError` for server errors (HTTP 500)
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```typescript
|
|
135
|
-
* // List all buckets with prefix 'prod-'
|
|
136
|
-
* const { data, error } = await client.listBuckets({ prefix: 'prod-' })
|
|
137
|
-
* if (data) {
|
|
138
|
-
* console.log('Found buckets:', data.buckets.length)
|
|
139
|
-
* // Fetch next page if available
|
|
140
|
-
* if (data.nextToken) {
|
|
141
|
-
* const next = await client.listBuckets({ nextToken: data.nextToken })
|
|
142
|
-
* }
|
|
143
|
-
* }
|
|
144
|
-
* ```
|
|
145
|
-
*/
|
|
27
|
+
/** Lists vector buckets with optional filtering and pagination */
|
|
146
28
|
listBuckets(options?: ListVectorBucketsOptions): Promise<ApiResponse<ListVectorBucketsResponse>>;
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @alpha
|
|
150
|
-
*
|
|
151
|
-
* Deletes a vector bucket
|
|
152
|
-
* Bucket must be empty before deletion (all indexes must be removed first)
|
|
153
|
-
*
|
|
154
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
155
|
-
*
|
|
156
|
-
* @category Vector Buckets
|
|
157
|
-
* @param vectorBucketName - Name of the vector bucket to delete
|
|
158
|
-
* @returns Promise with empty response on success or error
|
|
159
|
-
*
|
|
160
|
-
* @throws {StorageVectorsApiError} With code:
|
|
161
|
-
* - `S3VectorBucketNotEmpty` if bucket contains indexes (HTTP 400)
|
|
162
|
-
* - `S3VectorNotFoundException` if bucket doesn't exist (HTTP 404)
|
|
163
|
-
* - `InternalError` for server errors (HTTP 500)
|
|
164
|
-
*
|
|
165
|
-
* @example
|
|
166
|
-
* ```typescript
|
|
167
|
-
* // Delete all indexes first, then delete bucket
|
|
168
|
-
* const { error } = await client.deleteBucket('old-bucket')
|
|
169
|
-
* if (error?.statusCode === 'S3VectorBucketNotEmpty') {
|
|
170
|
-
* console.error('Must delete all indexes first')
|
|
171
|
-
* }
|
|
172
|
-
* ```
|
|
173
|
-
*/
|
|
29
|
+
/** Deletes a vector bucket (must be empty first) */
|
|
174
30
|
deleteBucket(vectorBucketName: string): Promise<ApiResponse<undefined>>;
|
|
175
31
|
}
|
|
176
32
|
//# sourceMappingURL=VectorBucketApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorBucketApi.d.ts","sourceRoot":"","sources":["../../../../src/lib/vectors/VectorBucketApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAQ,MAAM,SAAS,CAAA;AAErC,OAAO,EACL,WAAW,EACX,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,SAAS,CAAA;AAEhB
|
|
1
|
+
{"version":3,"file":"VectorBucketApi.d.ts","sourceRoot":"","sources":["../../../../src/lib/vectors/VectorBucketApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAQ,MAAM,SAAS,CAAA;AAErC,OAAO,EACL,WAAW,EACX,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,SAAS,CAAA;AAEhB;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;IAClC,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,6CAA6C;gBACjC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAO,EAAE,KAAK,CAAC,EAAE,KAAK;IAM/E,uEAAuE;IAChE,YAAY,IAAI,IAAI;IAK3B,kCAAkC;IAC5B,YAAY,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAoB7E,sDAAsD;IAChD,SAAS,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;QAAE,YAAY,EAAE,YAAY,CAAA;KAAE,CAAC,CAAC;IAoB/F,kEAAkE;IAC5D,WAAW,CACf,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IAiBlD,oDAAoD;IAC9C,YAAY,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;CAmB9E"}
|
|
@@ -4,87 +4,24 @@ import { isStorageVectorsError } from './errors';
|
|
|
4
4
|
import { post } from './fetch';
|
|
5
5
|
import { resolveFetch } from './helpers';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* API class for managing Vector Buckets
|
|
11
|
-
* Provides methods for creating, reading, listing, and deleting vector buckets
|
|
12
|
-
*
|
|
13
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
7
|
+
* @hidden
|
|
8
|
+
* Base implementation for vector bucket operations.
|
|
9
|
+
* Use {@link StorageVectorsClient} via `supabase.storage.vectors` instead.
|
|
14
10
|
*/
|
|
15
11
|
export default class VectorBucketApi {
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @alpha
|
|
19
|
-
*
|
|
20
|
-
* Creates a new VectorBucketApi instance
|
|
21
|
-
*
|
|
22
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
23
|
-
*
|
|
24
|
-
* @category Vector Buckets
|
|
25
|
-
* @param url - The base URL for the storage vectors API
|
|
26
|
-
* @param headers - HTTP headers to include in requests
|
|
27
|
-
* @param fetch - Optional custom fetch implementation
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```typescript
|
|
31
|
-
* const client = new VectorBucketApi(url, headers)
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
12
|
+
/** Creates a new VectorBucketApi instance */
|
|
34
13
|
constructor(url, headers = {}, fetch) {
|
|
35
14
|
this.shouldThrowOnError = false;
|
|
36
15
|
this.url = url.replace(/\/$/, '');
|
|
37
16
|
this.headers = Object.assign(Object.assign({}, DEFAULT_HEADERS), headers);
|
|
38
17
|
this.fetch = resolveFetch(fetch);
|
|
39
18
|
}
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @alpha
|
|
43
|
-
*
|
|
44
|
-
* Enable throwing errors instead of returning them in the response
|
|
45
|
-
* When enabled, failed operations will throw instead of returning { data: null, error }
|
|
46
|
-
*
|
|
47
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
48
|
-
*
|
|
49
|
-
* @category Vector Buckets
|
|
50
|
-
* @returns This instance for method chaining
|
|
51
|
-
* @example
|
|
52
|
-
* ```typescript
|
|
53
|
-
* const client = new VectorBucketApi(url, headers)
|
|
54
|
-
* client.throwOnError()
|
|
55
|
-
* const { data } = await client.createBucket('my-bucket') // throws on error
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
19
|
+
/** Enable throwing errors instead of returning them in the response */
|
|
58
20
|
throwOnError() {
|
|
59
21
|
this.shouldThrowOnError = true;
|
|
60
22
|
return this;
|
|
61
23
|
}
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @alpha
|
|
65
|
-
*
|
|
66
|
-
* Creates a new vector bucket
|
|
67
|
-
* Vector buckets are containers for vector indexes and their data
|
|
68
|
-
*
|
|
69
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
70
|
-
*
|
|
71
|
-
* @category Vector Buckets
|
|
72
|
-
* @param vectorBucketName - Unique name for the vector bucket
|
|
73
|
-
* @returns Promise with empty response on success or error
|
|
74
|
-
*
|
|
75
|
-
* @throws {StorageVectorsApiError} With code:
|
|
76
|
-
* - `S3VectorConflictException` if bucket already exists (HTTP 409)
|
|
77
|
-
* - `S3VectorMaxBucketsExceeded` if quota exceeded (HTTP 400)
|
|
78
|
-
* - `InternalError` for server errors (HTTP 500)
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```typescript
|
|
82
|
-
* const { data, error } = await client.createBucket('embeddings-prod')
|
|
83
|
-
* if (error) {
|
|
84
|
-
* console.error('Failed to create bucket:', error.message)
|
|
85
|
-
* }
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
24
|
+
/** Creates a new vector bucket */
|
|
88
25
|
createBucket(vectorBucketName) {
|
|
89
26
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
27
|
try {
|
|
@@ -102,31 +39,7 @@ export default class VectorBucketApi {
|
|
|
102
39
|
}
|
|
103
40
|
});
|
|
104
41
|
}
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @alpha
|
|
108
|
-
*
|
|
109
|
-
* Retrieves metadata for a specific vector bucket
|
|
110
|
-
* Returns bucket configuration including encryption settings and creation time
|
|
111
|
-
*
|
|
112
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
113
|
-
*
|
|
114
|
-
* @category Vector Buckets
|
|
115
|
-
* @param vectorBucketName - Name of the vector bucket to retrieve
|
|
116
|
-
* @returns Promise with bucket metadata or error
|
|
117
|
-
*
|
|
118
|
-
* @throws {StorageVectorsApiError} With code:
|
|
119
|
-
* - `S3VectorNotFoundException` if bucket doesn't exist (HTTP 404)
|
|
120
|
-
* - `InternalError` for server errors (HTTP 500)
|
|
121
|
-
*
|
|
122
|
-
* @example
|
|
123
|
-
* ```typescript
|
|
124
|
-
* const { data, error } = await client.getBucket('embeddings-prod')
|
|
125
|
-
* if (data) {
|
|
126
|
-
* console.log('Bucket created at:', new Date(data.vectorBucket.creationTime! * 1000))
|
|
127
|
-
* }
|
|
128
|
-
* ```
|
|
129
|
-
*/
|
|
42
|
+
/** Retrieves metadata for a specific vector bucket */
|
|
130
43
|
getBucket(vectorBucketName) {
|
|
131
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
132
45
|
try {
|
|
@@ -144,38 +57,7 @@ export default class VectorBucketApi {
|
|
|
144
57
|
}
|
|
145
58
|
});
|
|
146
59
|
}
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @alpha
|
|
150
|
-
*
|
|
151
|
-
* Lists vector buckets with optional filtering and pagination
|
|
152
|
-
* Supports prefix-based filtering and paginated results
|
|
153
|
-
*
|
|
154
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
155
|
-
*
|
|
156
|
-
* @category Vector Buckets
|
|
157
|
-
* @param options - Listing options
|
|
158
|
-
* @param options.prefix - Filter buckets by name prefix
|
|
159
|
-
* @param options.maxResults - Maximum results per page (default: 100)
|
|
160
|
-
* @param options.nextToken - Pagination token from previous response
|
|
161
|
-
* @returns Promise with list of buckets and pagination token
|
|
162
|
-
*
|
|
163
|
-
* @throws {StorageVectorsApiError} With code:
|
|
164
|
-
* - `InternalError` for server errors (HTTP 500)
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* ```typescript
|
|
168
|
-
* // List all buckets with prefix 'prod-'
|
|
169
|
-
* const { data, error } = await client.listBuckets({ prefix: 'prod-' })
|
|
170
|
-
* if (data) {
|
|
171
|
-
* console.log('Found buckets:', data.buckets.length)
|
|
172
|
-
* // Fetch next page if available
|
|
173
|
-
* if (data.nextToken) {
|
|
174
|
-
* const next = await client.listBuckets({ nextToken: data.nextToken })
|
|
175
|
-
* }
|
|
176
|
-
* }
|
|
177
|
-
* ```
|
|
178
|
-
*/
|
|
60
|
+
/** Lists vector buckets with optional filtering and pagination */
|
|
179
61
|
listBuckets() {
|
|
180
62
|
return __awaiter(this, arguments, void 0, function* (options = {}) {
|
|
181
63
|
try {
|
|
@@ -195,33 +77,7 @@ export default class VectorBucketApi {
|
|
|
195
77
|
}
|
|
196
78
|
});
|
|
197
79
|
}
|
|
198
|
-
/**
|
|
199
|
-
*
|
|
200
|
-
* @alpha
|
|
201
|
-
*
|
|
202
|
-
* Deletes a vector bucket
|
|
203
|
-
* Bucket must be empty before deletion (all indexes must be removed first)
|
|
204
|
-
*
|
|
205
|
-
* **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
|
|
206
|
-
*
|
|
207
|
-
* @category Vector Buckets
|
|
208
|
-
* @param vectorBucketName - Name of the vector bucket to delete
|
|
209
|
-
* @returns Promise with empty response on success or error
|
|
210
|
-
*
|
|
211
|
-
* @throws {StorageVectorsApiError} With code:
|
|
212
|
-
* - `S3VectorBucketNotEmpty` if bucket contains indexes (HTTP 400)
|
|
213
|
-
* - `S3VectorNotFoundException` if bucket doesn't exist (HTTP 404)
|
|
214
|
-
* - `InternalError` for server errors (HTTP 500)
|
|
215
|
-
*
|
|
216
|
-
* @example
|
|
217
|
-
* ```typescript
|
|
218
|
-
* // Delete all indexes first, then delete bucket
|
|
219
|
-
* const { error } = await client.deleteBucket('old-bucket')
|
|
220
|
-
* if (error?.statusCode === 'S3VectorBucketNotEmpty') {
|
|
221
|
-
* console.error('Must delete all indexes first')
|
|
222
|
-
* }
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
80
|
+
/** Deletes a vector bucket (must be empty first) */
|
|
225
81
|
deleteBucket(vectorBucketName) {
|
|
226
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
83
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorBucketApi.js","sourceRoot":"","sources":["../../../../src/lib/vectors/VectorBucketApi.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,EAAS,IAAI,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAQxC
|
|
1
|
+
{"version":3,"file":"VectorBucketApi.js","sourceRoot":"","sources":["../../../../src/lib/vectors/VectorBucketApi.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,EAAS,IAAI,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAQxC;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;IAMlC,6CAA6C;IAC7C,YAAY,GAAW,EAAE,UAAqC,EAAE,EAAE,KAAa;QAHrE,uBAAkB,GAAG,KAAK,CAAA;QAIlC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QACjC,IAAI,CAAC,OAAO,mCAAQ,eAAe,GAAK,OAAO,CAAE,CAAA;QACjD,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAA;IAClC,CAAC;IAED,uEAAuE;IAChE,YAAY;QACjB,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAA;QAC9B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,kCAAkC;IAC5B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