@supabase/storage-js 2.81.2-canary.3 → 2.82.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.
Files changed (86) hide show
  1. package/README.md +10 -0
  2. package/dist/main/StorageClient.d.ts +15 -1
  3. package/dist/main/StorageClient.d.ts.map +1 -1
  4. package/dist/main/StorageClient.js +15 -1
  5. package/dist/main/StorageClient.js.map +1 -1
  6. package/dist/main/lib/vectors/StorageVectorsClient.d.ts +99 -18
  7. package/dist/main/lib/vectors/StorageVectorsClient.d.ts.map +1 -1
  8. package/dist/main/lib/vectors/StorageVectorsClient.js +95 -17
  9. package/dist/main/lib/vectors/StorageVectorsClient.js.map +1 -1
  10. package/dist/main/lib/vectors/VectorBucketApi.d.ts +35 -7
  11. package/dist/main/lib/vectors/VectorBucketApi.d.ts.map +1 -1
  12. package/dist/main/lib/vectors/VectorBucketApi.js +35 -7
  13. package/dist/main/lib/vectors/VectorBucketApi.js.map +1 -1
  14. package/dist/main/lib/vectors/VectorDataApi.d.ts +44 -8
  15. package/dist/main/lib/vectors/VectorDataApi.d.ts.map +1 -1
  16. package/dist/main/lib/vectors/VectorDataApi.js +44 -8
  17. package/dist/main/lib/vectors/VectorDataApi.js.map +1 -1
  18. package/dist/main/lib/vectors/VectorIndexApi.d.ts +43 -8
  19. package/dist/main/lib/vectors/VectorIndexApi.d.ts.map +1 -1
  20. package/dist/main/lib/vectors/VectorIndexApi.js +39 -7
  21. package/dist/main/lib/vectors/VectorIndexApi.js.map +1 -1
  22. package/dist/main/lib/version.d.ts +1 -1
  23. package/dist/main/lib/version.d.ts.map +1 -1
  24. package/dist/main/lib/version.js +1 -1
  25. package/dist/main/lib/version.js.map +1 -1
  26. package/dist/main/packages/StorageAnalyticsApi.d.ts +77 -26
  27. package/dist/main/packages/StorageAnalyticsApi.d.ts.map +1 -1
  28. package/dist/main/packages/StorageAnalyticsApi.js +77 -26
  29. package/dist/main/packages/StorageAnalyticsApi.js.map +1 -1
  30. package/dist/main/packages/StorageBucketApi.d.ts +143 -1
  31. package/dist/main/packages/StorageBucketApi.d.ts.map +1 -1
  32. package/dist/main/packages/StorageBucketApi.js +143 -1
  33. package/dist/main/packages/StorageBucketApi.js.map +1 -1
  34. package/dist/main/packages/StorageFileApi.d.ts +410 -2
  35. package/dist/main/packages/StorageFileApi.d.ts.map +1 -1
  36. package/dist/main/packages/StorageFileApi.js +410 -2
  37. package/dist/main/packages/StorageFileApi.js.map +1 -1
  38. package/dist/module/StorageClient.d.ts +15 -1
  39. package/dist/module/StorageClient.d.ts.map +1 -1
  40. package/dist/module/StorageClient.js +15 -1
  41. package/dist/module/StorageClient.js.map +1 -1
  42. package/dist/module/lib/vectors/StorageVectorsClient.d.ts +99 -18
  43. package/dist/module/lib/vectors/StorageVectorsClient.d.ts.map +1 -1
  44. package/dist/module/lib/vectors/StorageVectorsClient.js +95 -17
  45. package/dist/module/lib/vectors/StorageVectorsClient.js.map +1 -1
  46. package/dist/module/lib/vectors/VectorBucketApi.d.ts +35 -7
  47. package/dist/module/lib/vectors/VectorBucketApi.d.ts.map +1 -1
  48. package/dist/module/lib/vectors/VectorBucketApi.js +35 -7
  49. package/dist/module/lib/vectors/VectorBucketApi.js.map +1 -1
  50. package/dist/module/lib/vectors/VectorDataApi.d.ts +44 -8
  51. package/dist/module/lib/vectors/VectorDataApi.d.ts.map +1 -1
  52. package/dist/module/lib/vectors/VectorDataApi.js +44 -8
  53. package/dist/module/lib/vectors/VectorDataApi.js.map +1 -1
  54. package/dist/module/lib/vectors/VectorIndexApi.d.ts +43 -8
  55. package/dist/module/lib/vectors/VectorIndexApi.d.ts.map +1 -1
  56. package/dist/module/lib/vectors/VectorIndexApi.js +39 -7
  57. package/dist/module/lib/vectors/VectorIndexApi.js.map +1 -1
  58. package/dist/module/lib/version.d.ts +1 -1
  59. package/dist/module/lib/version.d.ts.map +1 -1
  60. package/dist/module/lib/version.js +1 -1
  61. package/dist/module/lib/version.js.map +1 -1
  62. package/dist/module/packages/StorageAnalyticsApi.d.ts +77 -26
  63. package/dist/module/packages/StorageAnalyticsApi.d.ts.map +1 -1
  64. package/dist/module/packages/StorageAnalyticsApi.js +77 -26
  65. package/dist/module/packages/StorageAnalyticsApi.js.map +1 -1
  66. package/dist/module/packages/StorageBucketApi.d.ts +143 -1
  67. package/dist/module/packages/StorageBucketApi.d.ts.map +1 -1
  68. package/dist/module/packages/StorageBucketApi.js +143 -1
  69. package/dist/module/packages/StorageBucketApi.js.map +1 -1
  70. package/dist/module/packages/StorageFileApi.d.ts +410 -2
  71. package/dist/module/packages/StorageFileApi.d.ts.map +1 -1
  72. package/dist/module/packages/StorageFileApi.js +410 -2
  73. package/dist/module/packages/StorageFileApi.js.map +1 -1
  74. package/dist/tsconfig.module.tsbuildinfo +1 -1
  75. package/dist/tsconfig.tsbuildinfo +1 -1
  76. package/dist/umd/supabase.js +1 -1
  77. package/package.json +1 -1
  78. package/src/StorageClient.ts +15 -1
  79. package/src/lib/vectors/StorageVectorsClient.ts +99 -18
  80. package/src/lib/vectors/VectorBucketApi.ts +35 -7
  81. package/src/lib/vectors/VectorDataApi.ts +44 -8
  82. package/src/lib/vectors/VectorIndexApi.ts +43 -8
  83. package/src/lib/version.ts +1 -1
  84. package/src/packages/StorageAnalyticsApi.ts +77 -26
  85. package/src/packages/StorageBucketApi.ts +143 -1
  86. package/src/packages/StorageFileApi.ts +410 -2
@@ -1,9 +1,12 @@
1
1
  import { Fetch } from './fetch';
2
2
  import { ApiResponse, VectorIndex, ListIndexesOptions, ListIndexesResponse, VectorDataType, DistanceMetric, MetadataConfiguration } from './types';
3
3
  /**
4
+ *
5
+ * @alpha
6
+ *
4
7
  * Options for creating a vector index
5
8
  *
6
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
9
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
7
10
  */
8
11
  export interface CreateIndexOptions {
9
12
  vectorBucketName: string;
@@ -14,10 +17,13 @@ export interface CreateIndexOptions {
14
17
  metadataConfiguration?: MetadataConfiguration;
15
18
  }
16
19
  /**
20
+ *
21
+ * @alpha
22
+ *
17
23
  * API class for managing Vector Indexes within Vector Buckets
18
24
  * Provides methods for creating, reading, listing, and deleting vector indexes
19
25
  *
20
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
26
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
21
27
  */
22
28
  export default class VectorIndexApi {
23
29
  protected url: string;
@@ -27,23 +33,36 @@ export default class VectorIndexApi {
27
33
  protected fetch: Fetch;
28
34
  protected shouldThrowOnError: boolean;
29
35
  /**
36
+ *
37
+ * @alpha
38
+ *
30
39
  * Creates an API client for managing vector indexes.
31
40
  *
32
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
41
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
33
42
  *
43
+ * @category Vector Buckets
34
44
  * @param url - Base URL for the Storage Vectors API.
35
45
  * @param headers - Default headers sent with each request.
36
46
  * @param fetch - Optional custom `fetch` implementation for non-browser runtimes.
47
+ *
48
+ * @example
49
+ * ```typescript
50
+ * const client = new VectorIndexApi(url, headers)
51
+ * ```
37
52
  */
38
53
  constructor(url: string, headers?: {
39
54
  [key: string]: string;
40
55
  }, fetch?: Fetch);
41
56
  /**
57
+ *
58
+ * @alpha
59
+ *
42
60
  * Enable throwing errors instead of returning them in the response
43
61
  * When enabled, failed operations will throw instead of returning { data: null, error }
44
62
  *
45
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
63
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
46
64
  *
65
+ * @category Vector Buckets
47
66
  * @returns This instance for method chaining
48
67
  * @example
49
68
  * ```typescript
@@ -54,11 +73,15 @@ export default class VectorIndexApi {
54
73
  */
55
74
  throwOnError(): this;
56
75
  /**
76
+ *
77
+ * @alpha
78
+ *
57
79
  * Creates a new vector index within a bucket
58
80
  * Defines the schema for vectors including dimensionality, distance metric, and metadata config
59
81
  *
60
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
82
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
61
83
  *
84
+ * @category Vector Buckets
62
85
  * @param options - Index configuration
63
86
  * @param options.vectorBucketName - Name of the parent vector bucket
64
87
  * @param options.indexName - Unique name for the index within the bucket
@@ -90,11 +113,15 @@ export default class VectorIndexApi {
90
113
  */
91
114
  createIndex(options: CreateIndexOptions): Promise<ApiResponse<undefined>>;
92
115
  /**
116
+ *
117
+ * @alpha
118
+ *
93
119
  * Retrieves metadata for a specific vector index
94
120
  * Returns index configuration including dimension, distance metric, and metadata settings
95
121
  *
96
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
122
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
97
123
  *
124
+ * @category Vector Buckets
98
125
  * @param vectorBucketName - Name of the parent vector bucket
99
126
  * @param indexName - Name of the index to retrieve
100
127
  * @returns Promise with index metadata or error
@@ -116,11 +143,15 @@ export default class VectorIndexApi {
116
143
  index: VectorIndex;
117
144
  }>>;
118
145
  /**
146
+ *
147
+ * @alpha
148
+ *
119
149
  * Lists vector indexes within a bucket with optional filtering and pagination
120
150
  * Supports prefix-based filtering and paginated results
121
151
  *
122
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
152
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
123
153
  *
154
+ * @category Vector Buckets
124
155
  * @param options - Listing options
125
156
  * @param options.vectorBucketName - Name of the parent vector bucket
126
157
  * @param options.prefix - Filter indexes by name prefix
@@ -153,11 +184,15 @@ export default class VectorIndexApi {
153
184
  */
154
185
  listIndexes(options: ListIndexesOptions): Promise<ApiResponse<ListIndexesResponse>>;
155
186
  /**
187
+ *
188
+ * @alpha
189
+ *
156
190
  * Deletes a vector index and all its data
157
191
  * This operation removes the index schema and all vectors stored in the index
158
192
  *
159
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
193
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
160
194
  *
195
+ * @category Vector Buckets
161
196
  * @param vectorBucketName - Name of the parent vector bucket
162
197
  * @param indexName - Name of the index to delete
163
198
  * @returns Promise with empty response on success or error
@@ -1 +1 @@
1
- {"version":3,"file":"VectorIndexApi.d.ts","sourceRoot":"","sources":["../../../../src/lib/vectors/VectorIndexApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAQ,MAAM,SAAS,CAAA;AAErC,OAAO,EACL,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,qBAAqB,EACtB,MAAM,SAAS,CAAA;AAEhB;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,gBAAgB,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,cAAc,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,cAAc,CAAA;IAC9B,qBAAqB,CAAC,EAAE,qBAAqB,CAAA;CAC9C;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,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;;;;;;;;OAQG;gBACS,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAO,EAAE,KAAK,CAAC,EAAE,KAAK;IAM/E;;;;;;;;;;;;;OAaG;IACI,YAAY,IAAI,IAAI;IAK3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,WA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C,KAAK,EAAE,KAAK,CAAA;IACtB,SAAS,CAAC,kBAAkB,UAAQ;IAEpC;;;;;;;;;;;;;;;;;OAiBG;gBACS,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAO,EAAE,KAAK,CAAC,EAAE,KAAK;IAM/E;;;;;;;;;;;;;;;;;OAiBG;IACI,YAAY,IAAI,IAAI;IAK3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAiB/E;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACG,QAAQ,CACZ,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,CAAC;QAAE,KAAK,EAAE,WAAW,CAAA;KAAE,CAAC,CAAC;IAoB/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAiBzF;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACG,WAAW,CAAC,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;CAmBhG"}
@@ -4,20 +4,32 @@ import { isStorageVectorsError } from './errors';
4
4
  import { post } from './fetch';
5
5
  import { resolveFetch } from './helpers';
6
6
  /**
7
+ *
8
+ * @alpha
9
+ *
7
10
  * API class for managing Vector Indexes within Vector Buckets
8
11
  * Provides methods for creating, reading, listing, and deleting vector indexes
9
12
  *
10
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
13
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
11
14
  */
12
15
  export default class VectorIndexApi {
13
16
  /**
17
+ *
18
+ * @alpha
19
+ *
14
20
  * Creates an API client for managing vector indexes.
15
21
  *
16
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
22
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
17
23
  *
24
+ * @category Vector Buckets
18
25
  * @param url - Base URL for the Storage Vectors API.
19
26
  * @param headers - Default headers sent with each request.
20
27
  * @param fetch - Optional custom `fetch` implementation for non-browser runtimes.
28
+ *
29
+ * @example
30
+ * ```typescript
31
+ * const client = new VectorIndexApi(url, headers)
32
+ * ```
21
33
  */
22
34
  constructor(url, headers = {}, fetch) {
23
35
  this.shouldThrowOnError = false;
@@ -26,11 +38,15 @@ export default class VectorIndexApi {
26
38
  this.fetch = resolveFetch(fetch);
27
39
  }
28
40
  /**
41
+ *
42
+ * @alpha
43
+ *
29
44
  * Enable throwing errors instead of returning them in the response
30
45
  * When enabled, failed operations will throw instead of returning { data: null, error }
31
46
  *
32
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
47
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
33
48
  *
49
+ * @category Vector Buckets
34
50
  * @returns This instance for method chaining
35
51
  * @example
36
52
  * ```typescript
@@ -44,11 +60,15 @@ export default class VectorIndexApi {
44
60
  return this;
45
61
  }
46
62
  /**
63
+ *
64
+ * @alpha
65
+ *
47
66
  * Creates a new vector index within a bucket
48
67
  * Defines the schema for vectors including dimensionality, distance metric, and metadata config
49
68
  *
50
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
69
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
51
70
  *
71
+ * @category Vector Buckets
52
72
  * @param options - Index configuration
53
73
  * @param options.vectorBucketName - Name of the parent vector bucket
54
74
  * @param options.indexName - Unique name for the index within the bucket
@@ -98,11 +118,15 @@ export default class VectorIndexApi {
98
118
  });
99
119
  }
100
120
  /**
121
+ *
122
+ * @alpha
123
+ *
101
124
  * Retrieves metadata for a specific vector index
102
125
  * Returns index configuration including dimension, distance metric, and metadata settings
103
126
  *
104
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
127
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
105
128
  *
129
+ * @category Vector Buckets
106
130
  * @param vectorBucketName - Name of the parent vector bucket
107
131
  * @param indexName - Name of the index to retrieve
108
132
  * @returns Promise with index metadata or error
@@ -138,11 +162,15 @@ export default class VectorIndexApi {
138
162
  });
139
163
  }
140
164
  /**
165
+ *
166
+ * @alpha
167
+ *
141
168
  * Lists vector indexes within a bucket with optional filtering and pagination
142
169
  * Supports prefix-based filtering and paginated results
143
170
  *
144
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
171
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
145
172
  *
173
+ * @category Vector Buckets
146
174
  * @param options - Listing options
147
175
  * @param options.vectorBucketName - Name of the parent vector bucket
148
176
  * @param options.prefix - Filter indexes by name prefix
@@ -193,11 +221,15 @@ export default class VectorIndexApi {
193
221
  });
194
222
  }
195
223
  /**
224
+ *
225
+ * @alpha
226
+ *
196
227
  * Deletes a vector index and all its data
197
228
  * This operation removes the index schema and all vectors stored in the index
198
229
  *
199
- * **Private alpha:** Vector storage APIs are currently in private alpha and may not be accessible.
230
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
200
231
  *
232
+ * @category Vector Buckets
201
233
  * @param vectorBucketName - Name of the parent vector bucket
202
234
  * @param indexName - Name of the index to delete
203
235
  * @returns Promise with empty response on success or error
@@ -1 +1 @@
1
- {"version":3,"file":"VectorIndexApi.js","sourceRoot":"","sources":["../../../../src/lib/vectors/VectorIndexApi.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,YAA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B,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAC1B,CAAA;gBACD,OAAO,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;YAC1C,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;oBAC5B,MAAM,KAAK,CAAA;gBACb,CAAC;gBACD,IAAI,qBAAqB,CAAC,KAAK,CAAC,EAAE,CAAC;oBACjC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAA;gBAC9B,CAAC;gBACD,MAAM,KAAK,CAAA;YACb,CAAC;QACH,CAAC;KAAA;CACF"}
@@ -1,2 +1,2 @@
1
- export declare const version = "2.81.2-canary.3";
1
+ export declare const version = "2.82.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,oBAAoB,CAAA"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/lib/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,WAAW,CAAA"}
@@ -4,5 +4,5 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.81.2-canary.3';
7
+ export const version = '2.82.0';
8
8
  //# 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;AACjE,MAAM,CAAC,MAAM,OAAO,GAAG,iBAAiB,CAAA"}
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;AACjE,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAA"}
@@ -14,9 +14,18 @@ export default class StorageAnalyticsApi {
14
14
  protected shouldThrowOnError: boolean;
15
15
  /**
16
16
  * Creates a new StorageAnalyticsApi instance
17
+ *
18
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
19
+ *
20
+ * @category Analytics Buckets
17
21
  * @param url - The base URL for the storage API
18
22
  * @param headers - HTTP headers to include in requests
19
23
  * @param fetch - Optional custom fetch implementation
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const client = new StorageAnalyticsApi(url, headers)
28
+ * ```
20
29
  */
21
30
  constructor(url: string, headers?: {
22
31
  [key: string]: string;
@@ -25,6 +34,9 @@ export default class StorageAnalyticsApi {
25
34
  * Enable throwing errors instead of returning them in the response
26
35
  * When enabled, failed operations will throw instead of returning { data: null, error }
27
36
  *
37
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
38
+ *
39
+ * @category Analytics Buckets
28
40
  * @returns This instance for method chaining
29
41
  */
30
42
  throwOnError(): this;
@@ -32,16 +44,27 @@ export default class StorageAnalyticsApi {
32
44
  * Creates a new analytics bucket using Iceberg tables
33
45
  * Analytics buckets are optimized for analytical queries and data processing
34
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 Analytics Buckets
35
50
  * @param name A unique name for the bucket you are creating
36
51
  * @returns Promise with newly created bucket name or error
37
52
  *
38
- * @example
39
- * ```typescript
40
- * const { data, error } = await storage.analytics.createBucket('analytics-data')
41
- * if (error) {
42
- * console.error('Failed to create analytics bucket:', error.message)
43
- * } else {
44
- * console.log('Created bucket:', data.name)
53
+ * @example Create analytics bucket
54
+ * ```js
55
+ * const { data, error } = await supabase
56
+ * .storage
57
+ * .analytics
58
+ * .createBucket('analytics-data')
59
+ * ```
60
+ *
61
+ * Response:
62
+ * ```json
63
+ * {
64
+ * "data": {
65
+ * "name": "analytics-data"
66
+ * },
67
+ * "error": null
45
68
  * }
46
69
  * ```
47
70
  */
@@ -56,6 +79,9 @@ export default class StorageAnalyticsApi {
56
79
  * Retrieves the details of all Analytics Storage buckets within an existing project
57
80
  * Only returns buckets of type 'ANALYTICS'
58
81
  *
82
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
83
+ *
84
+ * @category Analytics Buckets
59
85
  * @param options Query parameters for listing buckets
60
86
  * @param options.limit Maximum number of buckets to return
61
87
  * @param options.offset Number of buckets to skip
@@ -64,18 +90,32 @@ export default class StorageAnalyticsApi {
64
90
  * @param options.search Search term to filter bucket names
65
91
  * @returns Promise with list of analytics buckets or error
66
92
  *
67
- * @example
68
- * ```typescript
69
- * const { data, error } = await storage.analytics.listBuckets({
70
- * limit: 10,
71
- * offset: 0,
72
- * sortColumn: 'created_at',
73
- * sortOrder: 'desc',
74
- * search: 'analytics'
75
- * })
76
- * if (data) {
77
- * console.log('Found analytics buckets:', data.length)
78
- * data.forEach(bucket => console.log(`- ${bucket.name}`))
93
+ * @example List analytics buckets
94
+ * ```js
95
+ * const { data, error } = await supabase
96
+ * .storage
97
+ * .analytics
98
+ * .listBuckets({
99
+ * limit: 10,
100
+ * offset: 0,
101
+ * sortColumn: 'created_at',
102
+ * sortOrder: 'desc'
103
+ * })
104
+ * ```
105
+ *
106
+ * Response:
107
+ * ```json
108
+ * {
109
+ * "data": [
110
+ * {
111
+ * "id": "analytics-data",
112
+ * "name": "analytics-data",
113
+ * "type": "ANALYTICS",
114
+ * "created_at": "2024-05-22T22:26:05.100Z",
115
+ * "updated_at": "2024-05-22T22:26:05.100Z"
116
+ * }
117
+ * ],
118
+ * "error": null
79
119
  * }
80
120
  * ```
81
121
  */
@@ -97,16 +137,27 @@ export default class StorageAnalyticsApi {
97
137
  * A bucket can't be deleted with existing objects inside it
98
138
  * You must first empty the bucket before deletion
99
139
  *
140
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
141
+ *
142
+ * @category Analytics Buckets
100
143
  * @param bucketName The unique identifier of the bucket you would like to delete
101
144
  * @returns Promise with success message or error
102
145
  *
103
- * @example
104
- * ```typescript
105
- * const { data, error } = await analyticsApi.deleteBucket('old-analytics-bucket')
106
- * if (error) {
107
- * console.error('Failed to delete bucket:', error.message)
108
- * } else {
109
- * console.log('Bucket deleted successfully:', data.message)
146
+ * @example Delete analytics bucket
147
+ * ```js
148
+ * const { data, error } = await supabase
149
+ * .storage
150
+ * .analytics
151
+ * .deleteBucket('analytics-data')
152
+ * ```
153
+ *
154
+ * Response:
155
+ * ```json
156
+ * {
157
+ * "data": {
158
+ * "message": "Successfully deleted"
159
+ * },
160
+ * "error": null
110
161
  * }
111
162
  * ```
112
163
  */
@@ -1 +1 @@
1
- {"version":3,"file":"StorageAnalyticsApi.d.ts","sourceRoot":"","sources":["../../../src/packages/StorageAnalyticsApi.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,mBAAmB;IACtC,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;;;;;OAKG;gBACS,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAO,EAAE,KAAK,CAAC,EAAE,KAAK;IAM/E;;;;;OAKG;IACI,YAAY,IAAI,IAAI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AY,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"}
@@ -10,9 +10,18 @@ import { resolveFetch } from '../lib/helpers';
10
10
  export default class StorageAnalyticsApi {
11
11
  /**
12
12
  * Creates a new StorageAnalyticsApi instance
13
+ *
14
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
15
+ *
16
+ * @category Analytics Buckets
13
17
  * @param url - The base URL for the storage API
14
18
  * @param headers - HTTP headers to include in requests
15
19
  * @param fetch - Optional custom fetch implementation
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * const client = new StorageAnalyticsApi(url, headers)
24
+ * ```
16
25
  */
17
26
  constructor(url, headers = {}, fetch) {
18
27
  this.shouldThrowOnError = false;
@@ -24,6 +33,9 @@ export default class StorageAnalyticsApi {
24
33
  * Enable throwing errors instead of returning them in the response
25
34
  * When enabled, failed operations will throw instead of returning { data: null, error }
26
35
  *
36
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
37
+ *
38
+ * @category Analytics Buckets
27
39
  * @returns This instance for method chaining
28
40
  */
29
41
  throwOnError() {
@@ -34,16 +46,27 @@ export default class StorageAnalyticsApi {
34
46
  * Creates a new analytics bucket using Iceberg tables
35
47
  * Analytics buckets are optimized for analytical queries and data processing
36
48
  *
49
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
50
+ *
51
+ * @category Analytics Buckets
37
52
  * @param name A unique name for the bucket you are creating
38
53
  * @returns Promise with newly created bucket name or error
39
54
  *
40
- * @example
41
- * ```typescript
42
- * const { data, error } = await storage.analytics.createBucket('analytics-data')
43
- * if (error) {
44
- * console.error('Failed to create analytics bucket:', error.message)
45
- * } else {
46
- * console.log('Created bucket:', data.name)
55
+ * @example Create analytics bucket
56
+ * ```js
57
+ * const { data, error } = await supabase
58
+ * .storage
59
+ * .analytics
60
+ * .createBucket('analytics-data')
61
+ * ```
62
+ *
63
+ * Response:
64
+ * ```json
65
+ * {
66
+ * "data": {
67
+ * "name": "analytics-data"
68
+ * },
69
+ * "error": null
47
70
  * }
48
71
  * ```
49
72
  */
@@ -68,6 +91,9 @@ export default class StorageAnalyticsApi {
68
91
  * Retrieves the details of all Analytics Storage buckets within an existing project
69
92
  * Only returns buckets of type 'ANALYTICS'
70
93
  *
94
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
95
+ *
96
+ * @category Analytics Buckets
71
97
  * @param options Query parameters for listing buckets
72
98
  * @param options.limit Maximum number of buckets to return
73
99
  * @param options.offset Number of buckets to skip
@@ -76,18 +102,32 @@ export default class StorageAnalyticsApi {
76
102
  * @param options.search Search term to filter bucket names
77
103
  * @returns Promise with list of analytics buckets or error
78
104
  *
79
- * @example
80
- * ```typescript
81
- * const { data, error } = await storage.analytics.listBuckets({
82
- * limit: 10,
83
- * offset: 0,
84
- * sortColumn: 'created_at',
85
- * sortOrder: 'desc',
86
- * search: 'analytics'
87
- * })
88
- * if (data) {
89
- * console.log('Found analytics buckets:', data.length)
90
- * data.forEach(bucket => console.log(`- ${bucket.name}`))
105
+ * @example List analytics buckets
106
+ * ```js
107
+ * const { data, error } = await supabase
108
+ * .storage
109
+ * .analytics
110
+ * .listBuckets({
111
+ * limit: 10,
112
+ * offset: 0,
113
+ * sortColumn: 'created_at',
114
+ * sortOrder: 'desc'
115
+ * })
116
+ * ```
117
+ *
118
+ * Response:
119
+ * ```json
120
+ * {
121
+ * "data": [
122
+ * {
123
+ * "id": "analytics-data",
124
+ * "name": "analytics-data",
125
+ * "type": "ANALYTICS",
126
+ * "created_at": "2024-05-22T22:26:05.100Z",
127
+ * "updated_at": "2024-05-22T22:26:05.100Z"
128
+ * }
129
+ * ],
130
+ * "error": null
91
131
  * }
92
132
  * ```
93
133
  */
@@ -127,16 +167,27 @@ export default class StorageAnalyticsApi {
127
167
  * A bucket can't be deleted with existing objects inside it
128
168
  * You must first empty the bucket before deletion
129
169
  *
170
+ * **Public alpha:** This API is part of a public alpha release and may not be available to your account type.
171
+ *
172
+ * @category Analytics Buckets
130
173
  * @param bucketName The unique identifier of the bucket you would like to delete
131
174
  * @returns Promise with success message or error
132
175
  *
133
- * @example
134
- * ```typescript
135
- * const { data, error } = await analyticsApi.deleteBucket('old-analytics-bucket')
136
- * if (error) {
137
- * console.error('Failed to delete bucket:', error.message)
138
- * } else {
139
- * console.log('Bucket deleted successfully:', data.message)
176
+ * @example Delete analytics bucket
177
+ * ```js
178
+ * const { data, error } = await supabase
179
+ * .storage
180
+ * .analytics
181
+ * .deleteBucket('analytics-data')
182
+ * ```
183
+ *
184
+ * Response:
185
+ * ```json
186
+ * {
187
+ * "data": {
188
+ * "message": "Successfully deleted"
189
+ * },
190
+ * "error": null
140
191
  * }
141
192
  * ```
142
193
  */
@@ -1 +1 @@
1
- {"version":3,"file":"StorageAnalyticsApi.js","sourceRoot":"","sources":["../../../src/packages/StorageAnalyticsApi.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,cAAc,EAAgB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAS,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAmB;IAMtC;;;;;OAKG;IACH,YAAY,GAAW,EAAE,UAAqC,EAAE,EAAE,KAAa;QARrE,uBAAkB,GAAG,KAAK,CAAA;QASlC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QACjC,IAAI,CAAC,OAAO,mCAAQ,eAAe,GAAK,OAAO,CAAE,CAA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