@supabase/storage-js 2.87.4-canary.2 → 2.87.4-canary.4

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 (206) hide show
  1. package/README.md +2 -106
  2. package/dist/index.cjs +3019 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +2601 -0
  5. package/dist/index.d.cts.map +1 -0
  6. package/dist/index.d.mts +2601 -0
  7. package/dist/index.d.mts.map +1 -0
  8. package/dist/index.mjs +2998 -0
  9. package/dist/index.mjs.map +1 -0
  10. package/dist/umd/supabase.js +1 -1
  11. package/package.json +21 -12
  12. package/src/lib/version.ts +1 -1
  13. package/dist/main/StorageClient.d.ts +0 -64
  14. package/dist/main/StorageClient.d.ts.map +0 -1
  15. package/dist/main/StorageClient.js +0 -74
  16. package/dist/main/StorageClient.js.map +0 -1
  17. package/dist/main/index.d.ts +0 -7
  18. package/dist/main/index.d.ts.map +0 -1
  19. package/dist/main/index.js +0 -12
  20. package/dist/main/index.js.map +0 -1
  21. package/dist/main/lib/constants.d.ts +0 -4
  22. package/dist/main/lib/constants.d.ts.map +0 -1
  23. package/dist/main/lib/constants.js +0 -8
  24. package/dist/main/lib/constants.js.map +0 -1
  25. package/dist/main/lib/errors.d.ts +0 -21
  26. package/dist/main/lib/errors.d.ts.map +0 -1
  27. package/dist/main/lib/errors.js +0 -41
  28. package/dist/main/lib/errors.js.map +0 -1
  29. package/dist/main/lib/fetch.d.ts +0 -16
  30. package/dist/main/lib/fetch.d.ts.map +0 -1
  31. package/dist/main/lib/fetch.js +0 -95
  32. package/dist/main/lib/fetch.js.map +0 -1
  33. package/dist/main/lib/helpers.d.ts +0 -28
  34. package/dist/main/lib/helpers.d.ts.map +0 -1
  35. package/dist/main/lib/helpers.js +0 -87
  36. package/dist/main/lib/helpers.js.map +0 -1
  37. package/dist/main/lib/index.d.ts +0 -6
  38. package/dist/main/lib/index.d.ts.map +0 -1
  39. package/dist/main/lib/index.js +0 -9
  40. package/dist/main/lib/index.js.map +0 -1
  41. package/dist/main/lib/types.d.ts +0 -226
  42. package/dist/main/lib/types.d.ts.map +0 -1
  43. package/dist/main/lib/types.js +0 -3
  44. package/dist/main/lib/types.js.map +0 -1
  45. package/dist/main/lib/vectors/StorageVectorsClient.d.ts +0 -505
  46. package/dist/main/lib/vectors/StorageVectorsClient.d.ts.map +0 -1
  47. package/dist/main/lib/vectors/StorageVectorsClient.js +0 -582
  48. package/dist/main/lib/vectors/StorageVectorsClient.js.map +0 -1
  49. package/dist/main/lib/vectors/VectorBucketApi.d.ts +0 -32
  50. package/dist/main/lib/vectors/VectorBucketApi.d.ts.map +0 -1
  51. package/dist/main/lib/vectors/VectorBucketApi.js +0 -102
  52. package/dist/main/lib/vectors/VectorBucketApi.js.map +0 -1
  53. package/dist/main/lib/vectors/VectorDataApi.d.ts +0 -32
  54. package/dist/main/lib/vectors/VectorDataApi.d.ts.map +0 -1
  55. package/dist/main/lib/vectors/VectorDataApi.js +0 -147
  56. package/dist/main/lib/vectors/VectorDataApi.js.map +0 -1
  57. package/dist/main/lib/vectors/VectorIndexApi.d.ts +0 -47
  58. package/dist/main/lib/vectors/VectorIndexApi.d.ts.map +0 -1
  59. package/dist/main/lib/vectors/VectorIndexApi.js +0 -104
  60. package/dist/main/lib/vectors/VectorIndexApi.js.map +0 -1
  61. package/dist/main/lib/vectors/constants.d.ts +0 -5
  62. package/dist/main/lib/vectors/constants.d.ts.map +0 -1
  63. package/dist/main/lib/vectors/constants.js +0 -9
  64. package/dist/main/lib/vectors/constants.js.map +0 -1
  65. package/dist/main/lib/vectors/errors.d.ts +0 -55
  66. package/dist/main/lib/vectors/errors.d.ts.map +0 -1
  67. package/dist/main/lib/vectors/errors.js +0 -76
  68. package/dist/main/lib/vectors/errors.js.map +0 -1
  69. package/dist/main/lib/vectors/fetch.d.ts +0 -57
  70. package/dist/main/lib/vectors/fetch.d.ts.map +0 -1
  71. package/dist/main/lib/vectors/fetch.js +0 -167
  72. package/dist/main/lib/vectors/fetch.js.map +0 -1
  73. package/dist/main/lib/vectors/helpers.d.ts +0 -46
  74. package/dist/main/lib/vectors/helpers.d.ts.map +0 -1
  75. package/dist/main/lib/vectors/helpers.js +0 -74
  76. package/dist/main/lib/vectors/helpers.js.map +0 -1
  77. package/dist/main/lib/vectors/index.d.ts +0 -11
  78. package/dist/main/lib/vectors/index.d.ts.map +0 -1
  79. package/dist/main/lib/vectors/index.js +0 -31
  80. package/dist/main/lib/vectors/index.js.map +0 -1
  81. package/dist/main/lib/vectors/types.d.ts +0 -279
  82. package/dist/main/lib/vectors/types.d.ts.map +0 -1
  83. package/dist/main/lib/vectors/types.js +0 -3
  84. package/dist/main/lib/vectors/types.js.map +0 -1
  85. package/dist/main/lib/version.d.ts +0 -2
  86. package/dist/main/lib/version.d.ts.map +0 -1
  87. package/dist/main/lib/version.js +0 -11
  88. package/dist/main/lib/version.js.map +0 -1
  89. package/dist/main/packages/BlobDownloadBuilder.d.ts +0 -16
  90. package/dist/main/packages/BlobDownloadBuilder.d.ts.map +0 -1
  91. package/dist/main/packages/BlobDownloadBuilder.js +0 -55
  92. package/dist/main/packages/BlobDownloadBuilder.js.map +0 -1
  93. package/dist/main/packages/StorageAnalyticsClient.d.ts +0 -324
  94. package/dist/main/packages/StorageAnalyticsClient.d.ts.map +0 -1
  95. package/dist/main/packages/StorageAnalyticsClient.js +0 -395
  96. package/dist/main/packages/StorageAnalyticsClient.js.map +0 -1
  97. package/dist/main/packages/StorageBucketApi.d.ts +0 -266
  98. package/dist/main/packages/StorageBucketApi.d.ts.map +0 -1
  99. package/dist/main/packages/StorageBucketApi.js +0 -362
  100. package/dist/main/packages/StorageBucketApi.js.map +0 -1
  101. package/dist/main/packages/StorageFileApi.d.ts +0 -680
  102. package/dist/main/packages/StorageFileApi.d.ts.map +0 -1
  103. package/dist/main/packages/StorageFileApi.js +0 -1002
  104. package/dist/main/packages/StorageFileApi.js.map +0 -1
  105. package/dist/main/packages/StreamDownloadBuilder.d.ts +0 -9
  106. package/dist/main/packages/StreamDownloadBuilder.d.ts.map +0 -1
  107. package/dist/main/packages/StreamDownloadBuilder.js +0 -35
  108. package/dist/main/packages/StreamDownloadBuilder.js.map +0 -1
  109. package/dist/module/StorageClient.d.ts +0 -64
  110. package/dist/module/StorageClient.d.ts.map +0 -1
  111. package/dist/module/StorageClient.js +0 -69
  112. package/dist/module/StorageClient.js.map +0 -1
  113. package/dist/module/index.d.ts +0 -7
  114. package/dist/module/index.d.ts.map +0 -1
  115. package/dist/module/index.js +0 -6
  116. package/dist/module/index.js.map +0 -1
  117. package/dist/module/lib/constants.d.ts +0 -4
  118. package/dist/module/lib/constants.d.ts.map +0 -1
  119. package/dist/module/lib/constants.js +0 -5
  120. package/dist/module/lib/constants.js.map +0 -1
  121. package/dist/module/lib/errors.d.ts +0 -21
  122. package/dist/module/lib/errors.d.ts.map +0 -1
  123. package/dist/module/lib/errors.js +0 -34
  124. package/dist/module/lib/errors.js.map +0 -1
  125. package/dist/module/lib/fetch.d.ts +0 -16
  126. package/dist/module/lib/fetch.d.ts.map +0 -1
  127. package/dist/module/lib/fetch.js +0 -88
  128. package/dist/module/lib/fetch.js.map +0 -1
  129. package/dist/module/lib/helpers.d.ts +0 -28
  130. package/dist/module/lib/helpers.d.ts.map +0 -1
  131. package/dist/module/lib/helpers.js +0 -79
  132. package/dist/module/lib/helpers.js.map +0 -1
  133. package/dist/module/lib/index.d.ts +0 -6
  134. package/dist/module/lib/index.d.ts.map +0 -1
  135. package/dist/module/lib/index.js +0 -6
  136. package/dist/module/lib/index.js.map +0 -1
  137. package/dist/module/lib/types.d.ts +0 -226
  138. package/dist/module/lib/types.d.ts.map +0 -1
  139. package/dist/module/lib/types.js +0 -2
  140. package/dist/module/lib/types.js.map +0 -1
  141. package/dist/module/lib/vectors/StorageVectorsClient.d.ts +0 -505
  142. package/dist/module/lib/vectors/StorageVectorsClient.d.ts.map +0 -1
  143. package/dist/module/lib/vectors/StorageVectorsClient.js +0 -576
  144. package/dist/module/lib/vectors/StorageVectorsClient.js.map +0 -1
  145. package/dist/module/lib/vectors/VectorBucketApi.d.ts +0 -32
  146. package/dist/module/lib/vectors/VectorBucketApi.d.ts.map +0 -1
  147. package/dist/module/lib/vectors/VectorBucketApi.js +0 -99
  148. package/dist/module/lib/vectors/VectorBucketApi.js.map +0 -1
  149. package/dist/module/lib/vectors/VectorDataApi.d.ts +0 -32
  150. package/dist/module/lib/vectors/VectorDataApi.d.ts.map +0 -1
  151. package/dist/module/lib/vectors/VectorDataApi.js +0 -144
  152. package/dist/module/lib/vectors/VectorDataApi.js.map +0 -1
  153. package/dist/module/lib/vectors/VectorIndexApi.d.ts +0 -47
  154. package/dist/module/lib/vectors/VectorIndexApi.d.ts.map +0 -1
  155. package/dist/module/lib/vectors/VectorIndexApi.js +0 -101
  156. package/dist/module/lib/vectors/VectorIndexApi.js.map +0 -1
  157. package/dist/module/lib/vectors/constants.d.ts +0 -5
  158. package/dist/module/lib/vectors/constants.d.ts.map +0 -1
  159. package/dist/module/lib/vectors/constants.js +0 -6
  160. package/dist/module/lib/vectors/constants.js.map +0 -1
  161. package/dist/module/lib/vectors/errors.d.ts +0 -55
  162. package/dist/module/lib/vectors/errors.d.ts.map +0 -1
  163. package/dist/module/lib/vectors/errors.js +0 -69
  164. package/dist/module/lib/vectors/errors.js.map +0 -1
  165. package/dist/module/lib/vectors/fetch.d.ts +0 -57
  166. package/dist/module/lib/vectors/fetch.d.ts.map +0 -1
  167. package/dist/module/lib/vectors/fetch.js +0 -161
  168. package/dist/module/lib/vectors/fetch.js.map +0 -1
  169. package/dist/module/lib/vectors/helpers.d.ts +0 -46
  170. package/dist/module/lib/vectors/helpers.d.ts.map +0 -1
  171. package/dist/module/lib/vectors/helpers.js +0 -66
  172. package/dist/module/lib/vectors/helpers.js.map +0 -1
  173. package/dist/module/lib/vectors/index.d.ts +0 -11
  174. package/dist/module/lib/vectors/index.d.ts.map +0 -1
  175. package/dist/module/lib/vectors/index.js +0 -11
  176. package/dist/module/lib/vectors/index.js.map +0 -1
  177. package/dist/module/lib/vectors/types.d.ts +0 -279
  178. package/dist/module/lib/vectors/types.d.ts.map +0 -1
  179. package/dist/module/lib/vectors/types.js +0 -2
  180. package/dist/module/lib/vectors/types.js.map +0 -1
  181. package/dist/module/lib/version.d.ts +0 -2
  182. package/dist/module/lib/version.d.ts.map +0 -1
  183. package/dist/module/lib/version.js +0 -8
  184. package/dist/module/lib/version.js.map +0 -1
  185. package/dist/module/packages/BlobDownloadBuilder.d.ts +0 -16
  186. package/dist/module/packages/BlobDownloadBuilder.d.ts.map +0 -1
  187. package/dist/module/packages/BlobDownloadBuilder.js +0 -53
  188. package/dist/module/packages/BlobDownloadBuilder.js.map +0 -1
  189. package/dist/module/packages/StorageAnalyticsClient.d.ts +0 -324
  190. package/dist/module/packages/StorageAnalyticsClient.d.ts.map +0 -1
  191. package/dist/module/packages/StorageAnalyticsClient.js +0 -392
  192. package/dist/module/packages/StorageAnalyticsClient.js.map +0 -1
  193. package/dist/module/packages/StorageBucketApi.d.ts +0 -266
  194. package/dist/module/packages/StorageBucketApi.d.ts.map +0 -1
  195. package/dist/module/packages/StorageBucketApi.js +0 -359
  196. package/dist/module/packages/StorageBucketApi.js.map +0 -1
  197. package/dist/module/packages/StorageFileApi.d.ts +0 -680
  198. package/dist/module/packages/StorageFileApi.d.ts.map +0 -1
  199. package/dist/module/packages/StorageFileApi.js +0 -999
  200. package/dist/module/packages/StorageFileApi.js.map +0 -1
  201. package/dist/module/packages/StreamDownloadBuilder.d.ts +0 -9
  202. package/dist/module/packages/StreamDownloadBuilder.d.ts.map +0 -1
  203. package/dist/module/packages/StreamDownloadBuilder.js +0 -32
  204. package/dist/module/packages/StreamDownloadBuilder.js.map +0 -1
  205. package/dist/tsconfig.module.tsbuildinfo +0 -1
  206. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,57 +0,0 @@
1
- import { VectorFetchParameters } from './types';
2
- export type Fetch = typeof fetch;
3
- /**
4
- * Options for fetch requests
5
- * @property headers - Custom HTTP headers
6
- * @property noResolveJson - If true, return raw Response instead of parsing JSON
7
- */
8
- export interface FetchOptions {
9
- headers?: {
10
- [key: string]: string;
11
- };
12
- noResolveJson?: boolean;
13
- }
14
- /**
15
- * HTTP methods supported by the API
16
- */
17
- export type RequestMethodType = 'GET' | 'POST' | 'PUT' | 'DELETE';
18
- /**
19
- * Performs a GET request
20
- * @param fetcher - Fetch function to use
21
- * @param url - Request URL
22
- * @param options - Custom fetch options
23
- * @param parameters - Additional fetch parameters
24
- * @returns Promise with parsed response
25
- */
26
- export declare function get(fetcher: Fetch, url: string, options?: FetchOptions, parameters?: VectorFetchParameters): Promise<any>;
27
- /**
28
- * Performs a POST request
29
- * @param fetcher - Fetch function to use
30
- * @param url - Request URL
31
- * @param body - Request body to be JSON stringified
32
- * @param options - Custom fetch options
33
- * @param parameters - Additional fetch parameters
34
- * @returns Promise with parsed response
35
- */
36
- export declare function post(fetcher: Fetch, url: string, body: object, options?: FetchOptions, parameters?: VectorFetchParameters): Promise<any>;
37
- /**
38
- * Performs a PUT request
39
- * @param fetcher - Fetch function to use
40
- * @param url - Request URL
41
- * @param body - Request body to be JSON stringified
42
- * @param options - Custom fetch options
43
- * @param parameters - Additional fetch parameters
44
- * @returns Promise with parsed response
45
- */
46
- export declare function put(fetcher: Fetch, url: string, body: object, options?: FetchOptions, parameters?: VectorFetchParameters): Promise<any>;
47
- /**
48
- * Performs a DELETE request
49
- * @param fetcher - Fetch function to use
50
- * @param url - Request URL
51
- * @param body - Request body to be JSON stringified
52
- * @param options - Custom fetch options
53
- * @param parameters - Additional fetch parameters
54
- * @returns Promise with parsed response
55
- */
56
- export declare function remove(fetcher: Fetch, url: string, body: object, options?: FetchOptions, parameters?: VectorFetchParameters): Promise<any>;
57
- //# sourceMappingURL=fetch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/lib/vectors/fetch.ts"],"names":[],"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true });
3
- exports.get = get;
4
- exports.post = post;
5
- exports.put = put;
6
- exports.remove = remove;
7
- const tslib_1 = require("tslib");
8
- const errors_1 = require("./errors");
9
- const helpers_1 = require("./helpers");
10
- /**
11
- * Extracts error message from various error response formats
12
- * @param err - Error object from API
13
- * @returns Human-readable error message
14
- */
15
- const _getErrorMessage = (err) => err.msg || err.message || err.error_description || err.error || JSON.stringify(err);
16
- /**
17
- * Handles fetch errors and converts them to StorageVectors error types
18
- * @param error - The error caught from fetch
19
- * @param reject - Promise rejection function
20
- * @param options - Fetch options that may affect error handling
21
- */
22
- const handleError = (error, reject, options) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
23
- // Check if error is a Response-like object (has status and ok properties)
24
- // This is more reliable than instanceof which can fail across realms
25
- const isResponseLike = error &&
26
- typeof error === 'object' &&
27
- 'status' in error &&
28
- 'ok' in error &&
29
- typeof error.status === 'number';
30
- if (isResponseLike && !(options === null || options === void 0 ? void 0 : options.noResolveJson)) {
31
- const status = error.status || 500;
32
- const responseError = error;
33
- // Try to parse JSON body if available
34
- if (typeof responseError.json === 'function') {
35
- responseError
36
- .json()
37
- .then((err) => {
38
- const statusCode = (err === null || err === void 0 ? void 0 : err.statusCode) || (err === null || err === void 0 ? void 0 : err.code) || status + '';
39
- reject(new errors_1.StorageVectorsApiError(_getErrorMessage(err), status, statusCode));
40
- })
41
- .catch(() => {
42
- // If JSON parsing fails, create an ApiError with the HTTP status code
43
- const statusCode = status + '';
44
- const message = responseError.statusText || `HTTP ${status} error`;
45
- reject(new errors_1.StorageVectorsApiError(message, status, statusCode));
46
- });
47
- }
48
- else {
49
- // No json() method available, create error from status
50
- const statusCode = status + '';
51
- const message = responseError.statusText || `HTTP ${status} error`;
52
- reject(new errors_1.StorageVectorsApiError(message, status, statusCode));
53
- }
54
- }
55
- else {
56
- reject(new errors_1.StorageVectorsUnknownError(_getErrorMessage(error), error));
57
- }
58
- });
59
- /**
60
- * Builds request parameters for fetch calls
61
- * @param method - HTTP method
62
- * @param options - Custom fetch options
63
- * @param parameters - Additional fetch parameters like AbortSignal
64
- * @param body - Request body (will be JSON stringified if plain object)
65
- * @returns Complete fetch request parameters
66
- */
67
- const _getRequestParams = (method, options, parameters, body) => {
68
- const params = { method, headers: (options === null || options === void 0 ? void 0 : options.headers) || {} };
69
- if (method === 'GET' || !body) {
70
- return params;
71
- }
72
- if ((0, helpers_1.isPlainObject)(body)) {
73
- params.headers = Object.assign({ 'Content-Type': 'application/json' }, options === null || options === void 0 ? void 0 : options.headers);
74
- params.body = JSON.stringify(body);
75
- }
76
- else {
77
- params.body = body;
78
- }
79
- return Object.assign(Object.assign({}, params), parameters);
80
- };
81
- /**
82
- * Internal request handler that wraps fetch with error handling
83
- * @param fetcher - Fetch function to use
84
- * @param method - HTTP method
85
- * @param url - Request URL
86
- * @param options - Custom fetch options
87
- * @param parameters - Additional fetch parameters
88
- * @param body - Request body
89
- * @returns Promise with parsed response or error
90
- */
91
- function _handleRequest(fetcher, method, url, options, parameters, body) {
92
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
93
- return new Promise((resolve, reject) => {
94
- fetcher(url, _getRequestParams(method, options, parameters, body))
95
- .then((result) => {
96
- if (!result.ok)
97
- throw result;
98
- if (options === null || options === void 0 ? void 0 : options.noResolveJson)
99
- return result;
100
- // Handle empty responses (204, empty body)
101
- const contentType = result.headers.get('content-type');
102
- if (!contentType || !contentType.includes('application/json')) {
103
- return {};
104
- }
105
- return result.json();
106
- })
107
- .then((data) => resolve(data))
108
- .catch((error) => handleError(error, reject, options));
109
- });
110
- });
111
- }
112
- /**
113
- * Performs a GET request
114
- * @param fetcher - Fetch function to use
115
- * @param url - Request URL
116
- * @param options - Custom fetch options
117
- * @param parameters - Additional fetch parameters
118
- * @returns Promise with parsed response
119
- */
120
- function get(fetcher, url, options, parameters) {
121
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
122
- return _handleRequest(fetcher, 'GET', url, options, parameters);
123
- });
124
- }
125
- /**
126
- * Performs a POST request
127
- * @param fetcher - Fetch function to use
128
- * @param url - Request URL
129
- * @param body - Request body to be JSON stringified
130
- * @param options - Custom fetch options
131
- * @param parameters - Additional fetch parameters
132
- * @returns Promise with parsed response
133
- */
134
- function post(fetcher, url, body, options, parameters) {
135
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
136
- return _handleRequest(fetcher, 'POST', url, options, parameters, body);
137
- });
138
- }
139
- /**
140
- * Performs a PUT request
141
- * @param fetcher - Fetch function to use
142
- * @param url - Request URL
143
- * @param body - Request body to be JSON stringified
144
- * @param options - Custom fetch options
145
- * @param parameters - Additional fetch parameters
146
- * @returns Promise with parsed response
147
- */
148
- function put(fetcher, url, body, options, parameters) {
149
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
150
- return _handleRequest(fetcher, 'PUT', url, options, parameters, body);
151
- });
152
- }
153
- /**
154
- * Performs a DELETE request
155
- * @param fetcher - Fetch function to use
156
- * @param url - Request URL
157
- * @param body - Request body to be JSON stringified
158
- * @param options - Custom fetch options
159
- * @param parameters - Additional fetch parameters
160
- * @returns Promise with parsed response
161
- */
162
- function remove(fetcher, url, body, options, parameters) {
163
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
164
- return _handleRequest(fetcher, 'DELETE', url, options, parameters, body);
165
- });
166
- }
167
- //# sourceMappingURL=fetch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../src/lib/vectors/fetch.ts"],"names":[],"mappings":";;AAyJA,kBAOC;AAWD,oBAQC;AAWD,kBAQC;AAWD,wBAQC;;AAzND,qCAA6E;AAC7E,uCAA0D;AAsB1D;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,CAAC,GAAQ,EAAU,EAAE,CAC5C,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,iBAAiB,IAAI,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;AAErF;;;;;GA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;;;;;;GAQG;AACH,SAAsB,GAAG,CACvB,OAAc,EACd,GAAW,EACX,IAAY,EACZ,OAAsB,EACtB,UAAkC;;QAElC,OAAO,cAAc,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;IACvE,CAAC;CAAA;AAED;;;;;;;;GAQG;AACH,SAAsB,MAAM,CAC1B,OAAc,EACd,GAAW,EACX,IAAY,EACZ,OAAsB,EACtB,UAAkC;;QAElC,OAAO,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;IAC1E,CAAC;CAAA"}
@@ -1,46 +0,0 @@
1
- type Fetch = typeof fetch;
2
- /**
3
- * Resolves the fetch implementation to use
4
- * Uses custom fetch if provided, otherwise uses native fetch
5
- *
6
- * @param customFetch - Optional custom fetch implementation
7
- * @returns Resolved fetch function
8
- */
9
- export declare const resolveFetch: (customFetch?: Fetch) => Fetch;
10
- /**
11
- * Resolves the Response constructor to use
12
- * Returns native Response constructor
13
- *
14
- * @returns Response constructor
15
- */
16
- export declare const resolveResponse: () => typeof Response;
17
- /**
18
- * Determine if input is a plain object
19
- * An object is plain if it's created by either {}, new Object(), or Object.create(null)
20
- *
21
- * @param value - Value to check
22
- * @returns True if value is a plain object
23
- * @source https://github.com/sindresorhus/is-plain-obj
24
- */
25
- export declare const isPlainObject: (value: object) => boolean;
26
- /**
27
- * Normalizes a number array to float32 format
28
- * Ensures all vector values are valid 32-bit floats
29
- *
30
- * @param values - Array of numbers to normalize
31
- * @returns Normalized float32 array
32
- */
33
- export declare const normalizeToFloat32: (values: number[]) => number[];
34
- /**
35
- * Validates vector dimensions match expected dimension
36
- * Throws error if dimensions don't match
37
- *
38
- * @param vector - Vector data to validate
39
- * @param expectedDimension - Expected vector dimension
40
- * @throws Error if dimensions don't match
41
- */
42
- export declare const validateVectorDimension: (vector: {
43
- float32: number[];
44
- }, expectedDimension?: number) => void;
45
- export {};
46
- //# sourceMappingURL=helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/lib/vectors/helpers.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG,OAAO,KAAK,CAAA;AAEzB;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,cAAc,KAAK,KAAG,KAKlD,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QAAO,OAAO,QAEzC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,OAa7C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,KAAG,MAAM,EAG3D,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAClC,QAAQ;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,EAC7B,oBAAoB,MAAM,KACzB,IAMF,CAAA"}
@@ -1,74 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateVectorDimension = exports.normalizeToFloat32 = exports.isPlainObject = exports.resolveResponse = exports.resolveFetch = void 0;
4
- /**
5
- * Resolves the fetch implementation to use
6
- * Uses custom fetch if provided, otherwise uses native fetch
7
- *
8
- * @param customFetch - Optional custom fetch implementation
9
- * @returns Resolved fetch function
10
- */
11
- const resolveFetch = (customFetch) => {
12
- if (customFetch) {
13
- return (...args) => customFetch(...args);
14
- }
15
- return (...args) => fetch(...args);
16
- };
17
- exports.resolveFetch = resolveFetch;
18
- /**
19
- * Resolves the Response constructor to use
20
- * Returns native Response constructor
21
- *
22
- * @returns Response constructor
23
- */
24
- const resolveResponse = () => {
25
- return Response;
26
- };
27
- exports.resolveResponse = resolveResponse;
28
- /**
29
- * Determine if input is a plain object
30
- * An object is plain if it's created by either {}, new Object(), or Object.create(null)
31
- *
32
- * @param value - Value to check
33
- * @returns True if value is a plain object
34
- * @source https://github.com/sindresorhus/is-plain-obj
35
- */
36
- const isPlainObject = (value) => {
37
- if (typeof value !== 'object' || value === null) {
38
- return false;
39
- }
40
- const prototype = Object.getPrototypeOf(value);
41
- return ((prototype === null ||
42
- prototype === Object.prototype ||
43
- Object.getPrototypeOf(prototype) === null) &&
44
- !(Symbol.toStringTag in value) &&
45
- !(Symbol.iterator in value));
46
- };
47
- exports.isPlainObject = isPlainObject;
48
- /**
49
- * Normalizes a number array to float32 format
50
- * Ensures all vector values are valid 32-bit floats
51
- *
52
- * @param values - Array of numbers to normalize
53
- * @returns Normalized float32 array
54
- */
55
- const normalizeToFloat32 = (values) => {
56
- // Use Float32Array to ensure proper precision
57
- return Array.from(new Float32Array(values));
58
- };
59
- exports.normalizeToFloat32 = normalizeToFloat32;
60
- /**
61
- * Validates vector dimensions match expected dimension
62
- * Throws error if dimensions don't match
63
- *
64
- * @param vector - Vector data to validate
65
- * @param expectedDimension - Expected vector dimension
66
- * @throws Error if dimensions don't match
67
- */
68
- const validateVectorDimension = (vector, expectedDimension) => {
69
- if (expectedDimension !== undefined && vector.float32.length !== expectedDimension) {
70
- throw new Error(`Vector dimension mismatch: expected ${expectedDimension}, got ${vector.float32.length}`);
71
- }
72
- };
73
- exports.validateVectorDimension = validateVectorDimension;
74
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/lib/vectors/helpers.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACI,MAAM,YAAY,GAAG,CAAC,WAAmB,EAAS,EAAE;IACzD,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAA;IAC1C,CAAC;IACD,OAAO,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;A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AA,uBAAuB,2BASnC"}
@@ -1,11 +0,0 @@
1
- export { StorageVectorsClient, VectorBucketScope, VectorIndexScope } from './StorageVectorsClient';
2
- export type { StorageVectorsClientOptions } from './StorageVectorsClient';
3
- export { default as VectorBucketApi } from './VectorBucketApi';
4
- export { default as VectorIndexApi } from './VectorIndexApi';
5
- export { default as VectorDataApi } from './VectorDataApi';
6
- export type { CreateIndexOptions } from './VectorIndexApi';
7
- export type { VectorBucket, VectorIndex, VectorData, VectorMetadata, VectorObject, VectorMatch, EncryptionConfiguration, MetadataConfiguration, VectorDataType, DistanceMetric, VectorFilter, ListVectorBucketsOptions, ListVectorBucketsResponse, ListIndexesOptions, ListIndexesResponse, PutVectorsOptions, GetVectorsOptions, GetVectorsResponse, DeleteVectorsOptions, ListVectorsOptions, ListVectorsResponse, QueryVectorsOptions, QueryVectorsResponse, ApiResponse, SuccessResponse, ErrorResponse, VectorFetchParameters, } from './types';
8
- export { StorageVectorsError, StorageVectorsApiError, StorageVectorsUnknownError, StorageVectorsErrorCode, isStorageVectorsError, } from './errors';
9
- export type { Fetch, FetchOptions, RequestMethodType } from './fetch';
10
- export { resolveFetch, resolveResponse, isPlainObject, normalizeToFloat32, validateVectorDimension, } from './helpers';
11
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/vectors/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAClG,YAAY,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AAGzE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC1D,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAG1D,YAAY,EAEV,YAAY,EACZ,WAAW,EACX,UAAU,EACV,cAAc,EACd,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,cAAc,EACd,YAAY,EAGZ,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EAGpB,WAAW,EACX,eAAe,EACf,aAAa,EACb,qBAAqB,GACtB,MAAM,SAAS,CAAA;AAGhB,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,UAAU,CAAA;AAGjB,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAGrE,OAAO,EACL,YAAY,EACZ,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,WAAW,CAAA"}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateVectorDimension = exports.normalizeToFloat32 = exports.isPlainObject = exports.resolveResponse = exports.resolveFetch = exports.isStorageVectorsError = exports.StorageVectorsErrorCode = exports.StorageVectorsUnknownError = exports.StorageVectorsApiError = exports.StorageVectorsError = exports.VectorDataApi = exports.VectorIndexApi = exports.VectorBucketApi = exports.VectorIndexScope = exports.VectorBucketScope = exports.StorageVectorsClient = void 0;
4
- const tslib_1 = require("tslib");
5
- // Main client
6
- var StorageVectorsClient_1 = require("./StorageVectorsClient");
7
- Object.defineProperty(exports, "StorageVectorsClient", { enumerable: true, get: function () { return StorageVectorsClient_1.StorageVectorsClient; } });
8
- Object.defineProperty(exports, "VectorBucketScope", { enumerable: true, get: function () { return StorageVectorsClient_1.VectorBucketScope; } });
9
- Object.defineProperty(exports, "VectorIndexScope", { enumerable: true, get: function () { return StorageVectorsClient_1.VectorIndexScope; } });
10
- // API classes (for advanced usage)
11
- var VectorBucketApi_1 = require("./VectorBucketApi");
12
- Object.defineProperty(exports, "VectorBucketApi", { enumerable: true, get: function () { return tslib_1.__importDefault(VectorBucketApi_1).default; } });
13
- var VectorIndexApi_1 = require("./VectorIndexApi");
14
- Object.defineProperty(exports, "VectorIndexApi", { enumerable: true, get: function () { return tslib_1.__importDefault(VectorIndexApi_1).default; } });
15
- var VectorDataApi_1 = require("./VectorDataApi");
16
- Object.defineProperty(exports, "VectorDataApi", { enumerable: true, get: function () { return tslib_1.__importDefault(VectorDataApi_1).default; } });
17
- // Errors
18
- var errors_1 = require("./errors");
19
- Object.defineProperty(exports, "StorageVectorsError", { enumerable: true, get: function () { return errors_1.StorageVectorsError; } });
20
- Object.defineProperty(exports, "StorageVectorsApiError", { enumerable: true, get: function () { return errors_1.StorageVectorsApiError; } });
21
- Object.defineProperty(exports, "StorageVectorsUnknownError", { enumerable: true, get: function () { return errors_1.StorageVectorsUnknownError; } });
22
- Object.defineProperty(exports, "StorageVectorsErrorCode", { enumerable: true, get: function () { return errors_1.StorageVectorsErrorCode; } });
23
- Object.defineProperty(exports, "isStorageVectorsError", { enumerable: true, get: function () { return errors_1.isStorageVectorsError; } });
24
- // Helper utilities
25
- var helpers_1 = require("./helpers");
26
- Object.defineProperty(exports, "resolveFetch", { enumerable: true, get: function () { return helpers_1.resolveFetch; } });
27
- Object.defineProperty(exports, "resolveResponse", { enumerable: true, get: function () { return helpers_1.resolveResponse; } });
28
- Object.defineProperty(exports, "isPlainObject", { enumerable: true, get: function () { return helpers_1.isPlainObject; } });
29
- Object.defineProperty(exports, "normalizeToFloat32", { enumerable: true, get: function () { return helpers_1.normalizeToFloat32; } });
30
- Object.defineProperty(exports, "validateVectorDimension", { enumerable: true, get: function () { return helpers_1.validateVectorDimension; } });
31
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/vectors/index.ts"],"names":[],"mappings":";;;;AAAA,cAAc;AACd,+DAAkG;AAAzF,4HAAA,oBAAoB,OAAA;AAAE,yHAAA,iBAAiB,OAAA;AAAE,wHAAA,gBAAgB,OAAA;AAGlE,mCAAmC;AACnC,qDAA8D;AAArD,2IAAA,OAAO,OAAmB;AACnC,mDAA4D;AAAnD,yIAAA,OAAO,OAAkB;AAClC,iDAA0D;AAAjD,uIAAA,OAAO,OAAiB;AAuCjC,SAAS;AACT,mCAMiB;AALf,6GAAA,mBAAmB,OAAA;AACnB,gHAAA,sBAAsB,OAAA;AACtB,oHAAA,0BAA0B,OAAA;AAC1B,iHAAA,uBAAuB,OAAA;AACvB,+GAAA,qBAAqB,OAAA;AAMvB,mBAAmB;AACnB,qCAMkB;AALhB,uGAAA,YAAY,OAAA;AACZ,0GAAA,eAAe,OAAA;AACf,wGAAA,aAAa,OAAA;AACb,6GAAA,kBAAkB,OAAA;AAClB,kHAAA,uBAAuB,OAAA"}