@mixedbread/sdk 0.14.0 → 0.16.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/CHANGELOG.md +25 -0
- package/README.md +31 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +0 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +0 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.js +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +26 -5
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +26 -5
- package/internal/utils/path.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/data-sources/connectors.d.mts +5 -106
- package/resources/data-sources/connectors.d.mts.map +1 -1
- package/resources/data-sources/connectors.d.ts +5 -106
- package/resources/data-sources/connectors.d.ts.map +1 -1
- package/resources/data-sources/connectors.js +2 -1
- package/resources/data-sources/connectors.js.map +1 -1
- package/resources/data-sources/connectors.mjs +2 -1
- package/resources/data-sources/connectors.mjs.map +1 -1
- package/resources/data-sources/data-sources.d.mts +7 -108
- package/resources/data-sources/data-sources.d.mts.map +1 -1
- package/resources/data-sources/data-sources.d.ts +7 -108
- package/resources/data-sources/data-sources.d.ts.map +1 -1
- package/resources/data-sources/data-sources.js +2 -1
- package/resources/data-sources/data-sources.js.map +1 -1
- package/resources/data-sources/data-sources.mjs +2 -1
- package/resources/data-sources/data-sources.mjs.map +1 -1
- package/resources/data-sources/index.d.mts +2 -2
- package/resources/data-sources/index.d.mts.map +1 -1
- package/resources/data-sources/index.d.ts +2 -2
- package/resources/data-sources/index.d.ts.map +1 -1
- package/resources/files.d.mts +5 -103
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +5 -103
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -1
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -1
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/parsing/index.d.mts +1 -1
- package/resources/parsing/index.d.mts.map +1 -1
- package/resources/parsing/index.d.ts +1 -1
- package/resources/parsing/index.d.ts.map +1 -1
- package/resources/parsing/index.js.map +1 -1
- package/resources/parsing/index.mjs.map +1 -1
- package/resources/parsing/jobs.d.mts +41 -130
- package/resources/parsing/jobs.d.mts.map +1 -1
- package/resources/parsing/jobs.d.ts +41 -130
- package/resources/parsing/jobs.d.ts.map +1 -1
- package/resources/parsing/jobs.js +2 -1
- package/resources/parsing/jobs.js.map +1 -1
- package/resources/parsing/jobs.mjs +2 -1
- package/resources/parsing/jobs.mjs.map +1 -1
- package/resources/parsing/parsing.d.mts +2 -2
- package/resources/parsing/parsing.d.mts.map +1 -1
- package/resources/parsing/parsing.d.ts +2 -2
- package/resources/parsing/parsing.d.ts.map +1 -1
- package/resources/parsing/parsing.js.map +1 -1
- package/resources/parsing/parsing.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +5 -103
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +5 -103
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +2 -1
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +2 -1
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.mts +2 -2
- package/resources/vector-stores/index.d.mts.map +1 -1
- package/resources/vector-stores/index.d.ts +2 -2
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +7 -105
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +7 -105
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +2 -1
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +2 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/client.ts +6 -6
- package/src/core/pagination.ts +0 -2
- package/src/internal/uploads.ts +1 -1
- package/src/internal/utils/log.ts +1 -1
- package/src/internal/utils/path.ts +30 -7
- package/src/resources/data-sources/connectors.ts +11 -118
- package/src/resources/data-sources/data-sources.ts +9 -120
- package/src/resources/data-sources/index.ts +2 -2
- package/src/resources/files.ts +7 -115
- package/src/resources/index.ts +3 -3
- package/src/resources/parsing/index.ts +1 -0
- package/src/resources/parsing/jobs.ts +47 -139
- package/src/resources/parsing/parsing.ts +2 -0
- package/src/resources/vector-stores/files.ts +11 -115
- package/src/resources/vector-stores/index.ts +2 -2
- package/src/resources/vector-stores/vector-stores.ts +9 -117
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
@@ -3,6 +3,7 @@ import * as FilesAPI from "./files.js";
|
|
3
3
|
import * as Shared from "../shared.js";
|
4
4
|
import * as VectorStoresAPI from "./vector-stores.js";
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
|
6
7
|
import { RequestOptions } from "../../internal/request-options.js";
|
7
8
|
import { Uploadable } from "../../uploads.js";
|
8
9
|
export declare class Files extends APIResource {
|
@@ -32,7 +33,7 @@ export declare class Files extends APIResource {
|
|
32
33
|
*
|
33
34
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
34
35
|
*/
|
35
|
-
list(vectorStoreIdentifier: string, query?: FileListParams | null | undefined, options?: RequestOptions):
|
36
|
+
list(vectorStoreIdentifier: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoreFilesCursor, VectorStoreFile>;
|
36
37
|
/**
|
37
38
|
* Delete a file from a vector store.
|
38
39
|
*
|
@@ -107,6 +108,7 @@ export declare class Files extends APIResource {
|
|
107
108
|
*/
|
108
109
|
uploadAndPoll(vectorStoreIdentifier: string, file: Uploadable, body?: Omit<FileCreateParams, 'file_id'>, pollIntervalMs?: number, pollTimeoutMs?: number, options?: RequestOptions): Promise<VectorStoreFile>;
|
109
110
|
}
|
111
|
+
export type VectorStoreFilesCursor = Cursor<VectorStoreFile>;
|
110
112
|
/**
|
111
113
|
* Represents a reranking configuration.
|
112
114
|
*/
|
@@ -224,88 +226,6 @@ export interface VectorStoreFile {
|
|
224
226
|
*/
|
225
227
|
object?: 'vector_store.file';
|
226
228
|
}
|
227
|
-
export interface FileListResponse {
|
228
|
-
/**
|
229
|
-
* Response model for cursor-based pagination.
|
230
|
-
*
|
231
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
232
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
233
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
234
|
-
*
|
235
|
-
* Final page response:
|
236
|
-
* {
|
237
|
-
* "has_more": false,
|
238
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
239
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
240
|
-
* "total": 42
|
241
|
-
* }
|
242
|
-
*
|
243
|
-
* Empty results:
|
244
|
-
* {
|
245
|
-
* "has_more": false,
|
246
|
-
* "first_cursor": null,
|
247
|
-
* "last_cursor": null,
|
248
|
-
* "total": 0
|
249
|
-
* }
|
250
|
-
*/
|
251
|
-
pagination: FileListResponse.Pagination;
|
252
|
-
/**
|
253
|
-
* The object type of the response
|
254
|
-
*/
|
255
|
-
object?: 'list';
|
256
|
-
/**
|
257
|
-
* The list of vector store files
|
258
|
-
*/
|
259
|
-
data: Array<VectorStoreFile>;
|
260
|
-
}
|
261
|
-
export declare namespace FileListResponse {
|
262
|
-
/**
|
263
|
-
* Response model for cursor-based pagination.
|
264
|
-
*
|
265
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
266
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
267
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
268
|
-
*
|
269
|
-
* Final page response:
|
270
|
-
* {
|
271
|
-
* "has_more": false,
|
272
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
273
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
274
|
-
* "total": 42
|
275
|
-
* }
|
276
|
-
*
|
277
|
-
* Empty results:
|
278
|
-
* {
|
279
|
-
* "has_more": false,
|
280
|
-
* "first_cursor": null,
|
281
|
-
* "last_cursor": null,
|
282
|
-
* "total": 0
|
283
|
-
* }
|
284
|
-
*/
|
285
|
-
interface Pagination {
|
286
|
-
/**
|
287
|
-
* Contextual direction-aware flag: True if more items exist in the requested
|
288
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
289
|
-
* more items before this page.
|
290
|
-
*/
|
291
|
-
has_more: boolean;
|
292
|
-
/**
|
293
|
-
* Cursor of the first item in this page. Use for backward pagination. None if page
|
294
|
-
* is empty.
|
295
|
-
*/
|
296
|
-
first_cursor: string | null;
|
297
|
-
/**
|
298
|
-
* Cursor of the last item in this page. Use for forward pagination. None if page
|
299
|
-
* is empty.
|
300
|
-
*/
|
301
|
-
last_cursor: string | null;
|
302
|
-
/**
|
303
|
-
* Total number of items available across all pages. Only included when
|
304
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
305
|
-
*/
|
306
|
-
total?: number | null;
|
307
|
-
}
|
308
|
-
}
|
309
229
|
/**
|
310
230
|
* Response model for file deletion.
|
311
231
|
*/
|
@@ -368,25 +288,7 @@ export interface FileRetrieveParams {
|
|
368
288
|
*/
|
369
289
|
vector_store_identifier: string;
|
370
290
|
}
|
371
|
-
export interface FileListParams {
|
372
|
-
/**
|
373
|
-
* Maximum number of items to return per page (1-100)
|
374
|
-
*/
|
375
|
-
limit?: number;
|
376
|
-
/**
|
377
|
-
* Cursor for forward pagination - get items after this position. Use last_cursor
|
378
|
-
* from previous response.
|
379
|
-
*/
|
380
|
-
after?: string | null;
|
381
|
-
/**
|
382
|
-
* Cursor for backward pagination - get items before this position. Use
|
383
|
-
* first_cursor from previous response.
|
384
|
-
*/
|
385
|
-
before?: string | null;
|
386
|
-
/**
|
387
|
-
* Whether to include total count in response (expensive operation)
|
388
|
-
*/
|
389
|
-
include_total?: boolean;
|
291
|
+
export interface FileListParams extends CursorParams {
|
390
292
|
/**
|
391
293
|
* Status to filter by
|
392
294
|
*/
|
@@ -460,6 +362,6 @@ export declare namespace FileSearchParams {
|
|
460
362
|
}
|
461
363
|
}
|
462
364
|
export declare namespace Files {
|
463
|
-
export { type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
365
|
+
export { type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type VectorStoreFilesCursor as VectorStoreFilesCursor, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
464
366
|
}
|
465
367
|
//# sourceMappingURL=files.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;OAElB,EAAE,UAAU,EAAE;AAGrB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CACJ,qBAAqB,EAAE,MAAM,EAC7B,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;;;;;;OAOG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAK9B;;;;;;;OAOG;IACH,IAAI,CACF,qBAAqB,EAAE,MAAM,EAC7B,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;OAElB,EAAE,UAAU,EAAE;AAGrB,qBA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C,aAAa,CAAC;CACjD;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;OAEG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAC;QAEhD;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;QAE1B;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Files = void 0;
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
7
|
+
const pagination_1 = require("../../core/pagination.js");
|
7
8
|
const polling = tslib_1.__importStar(require("../../lib/polling.js"));
|
8
9
|
const path_1 = require("../../internal/utils/path.js");
|
9
10
|
class Files extends resource_1.APIResource {
|
@@ -39,7 +40,7 @@ class Files extends resource_1.APIResource {
|
|
39
40
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
40
41
|
*/
|
41
42
|
list(vectorStoreIdentifier, query = {}, options) {
|
42
|
-
return this._client.
|
43
|
+
return this._client.getAPIList((0, path_1.path) `/v1/vector_stores/${vectorStoreIdentifier}/files`, (pagination_1.Cursor), { query, ...options });
|
43
44
|
}
|
44
45
|
/**
|
45
46
|
* Delete a file from a vector store.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAKlD,yDAA+E;AAE/E,sEAA6C;AAE7C,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CACJ,qBAA6B,EAC7B,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,qBAAqB,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,uBAAuB,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,qBAA6B,EAC7B,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,qBAAqB,qBAAqB,QAAQ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IACH,KAAK,CAAC,aAAa,CACjB,qBAA6B,EAC7B,IAAsB,EACtB,cAAuB,EACvB,aAAsB,EACtB,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,MAAM,CACV,qBAA6B,EAC7B,IAAgB,EAChB,IAAwC,EACxC,OAAwB;QAExB,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;QAE9E,OAAO,IAAI,CAAC,MAAM,CAChB,qBAAqB,EACrB;YACE,OAAO,EAAE,kBAAkB,CAAC,EAAE;YAC9B,GAAG,IAAI;SACR,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,aAAa,CACjB,qBAA6B,EAC7B,IAAgB,EAChB,IAAwC,EACxC,cAAuB,EACvB,aAAsB,EACtB,OAAwB;QAExB,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,qBAAqB,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,eAAe,CAAC,EAAE,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;CACF;AA7LD,sBA6LC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
3
|
+
import { Cursor } from "../../core/pagination.mjs";
|
3
4
|
import * as polling from "../../lib/polling.mjs";
|
4
5
|
import { path } from "../../internal/utils/path.mjs";
|
5
6
|
export class Files extends APIResource {
|
@@ -35,7 +36,7 @@ export class Files extends APIResource {
|
|
35
36
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
36
37
|
*/
|
37
38
|
list(vectorStoreIdentifier, query = {}, options) {
|
38
|
-
return this._client.
|
39
|
+
return this._client.getAPIList(path `/v1/vector_stores/${vectorStoreIdentifier}/files`, (Cursor), { query, ...options });
|
39
40
|
}
|
40
41
|
/**
|
41
42
|
* Delete a file from a vector store.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,MAAM,EAAkC;OAE1C,KAAK,OAAO;OAEZ,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CACJ,qBAA6B,EAC7B,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,qBAAqB,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,uBAAuB,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF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ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type
|
2
|
-
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type
|
1
|
+
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, type VectorStoreFilesCursor, } from "./files.mjs";
|
2
|
+
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, type VectorStoresCursor, } from "./vector-stores.mjs";
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type
|
2
|
-
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type
|
1
|
+
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, type VectorStoreFilesCursor, } from "./files.js";
|
2
|
+
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, type VectorStoresCursor, } from "./vector-stores.js";
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/vector-stores/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B;OACM,EACL,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,GACxB"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
2
2
|
import * as Shared from "../shared.mjs";
|
3
3
|
import * as FilesAPI from "./files.mjs";
|
4
|
-
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams,
|
4
|
+
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus, VectorStoreFilesCursor } from "./files.mjs";
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
6
7
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
7
8
|
export declare class VectorStores extends APIResource {
|
8
9
|
files: FilesAPI.Files;
|
@@ -41,7 +42,7 @@ export declare class VectorStores extends APIResource {
|
|
41
42
|
*
|
42
43
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
43
44
|
*/
|
44
|
-
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions):
|
45
|
+
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoresCursor, VectorStore>;
|
45
46
|
/**
|
46
47
|
* Delete a vector store by ID or name.
|
47
48
|
*
|
@@ -75,6 +76,7 @@ export declare class VectorStores extends APIResource {
|
|
75
76
|
*/
|
76
77
|
search(body: VectorStoreSearchParams, options?: RequestOptions): APIPromise<VectorStoreSearchResponse>;
|
77
78
|
}
|
79
|
+
export type VectorStoresCursor = Cursor<VectorStore>;
|
78
80
|
/**
|
79
81
|
* Represents an expiration policy for a vector store.
|
80
82
|
*/
|
@@ -454,88 +456,6 @@ export interface VectorStoreChunkSearchOptions {
|
|
454
456
|
*/
|
455
457
|
return_metadata?: boolean;
|
456
458
|
}
|
457
|
-
export interface VectorStoreListResponse {
|
458
|
-
/**
|
459
|
-
* Response model for cursor-based pagination.
|
460
|
-
*
|
461
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
462
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
463
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
464
|
-
*
|
465
|
-
* Final page response:
|
466
|
-
* {
|
467
|
-
* "has_more": false,
|
468
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
469
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
470
|
-
* "total": 42
|
471
|
-
* }
|
472
|
-
*
|
473
|
-
* Empty results:
|
474
|
-
* {
|
475
|
-
* "has_more": false,
|
476
|
-
* "first_cursor": null,
|
477
|
-
* "last_cursor": null,
|
478
|
-
* "total": 0
|
479
|
-
* }
|
480
|
-
*/
|
481
|
-
pagination: VectorStoreListResponse.Pagination;
|
482
|
-
/**
|
483
|
-
* The object type of the response
|
484
|
-
*/
|
485
|
-
object?: 'list';
|
486
|
-
/**
|
487
|
-
* The list of vector stores
|
488
|
-
*/
|
489
|
-
data: Array<VectorStore>;
|
490
|
-
}
|
491
|
-
export declare namespace VectorStoreListResponse {
|
492
|
-
/**
|
493
|
-
* Response model for cursor-based pagination.
|
494
|
-
*
|
495
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
496
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
497
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
498
|
-
*
|
499
|
-
* Final page response:
|
500
|
-
* {
|
501
|
-
* "has_more": false,
|
502
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
503
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
504
|
-
* "total": 42
|
505
|
-
* }
|
506
|
-
*
|
507
|
-
* Empty results:
|
508
|
-
* {
|
509
|
-
* "has_more": false,
|
510
|
-
* "first_cursor": null,
|
511
|
-
* "last_cursor": null,
|
512
|
-
* "total": 0
|
513
|
-
* }
|
514
|
-
*/
|
515
|
-
interface Pagination {
|
516
|
-
/**
|
517
|
-
* Contextual direction-aware flag: True if more items exist in the requested
|
518
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
519
|
-
* more items before this page.
|
520
|
-
*/
|
521
|
-
has_more: boolean;
|
522
|
-
/**
|
523
|
-
* Cursor of the first item in this page. Use for backward pagination. None if page
|
524
|
-
* is empty.
|
525
|
-
*/
|
526
|
-
first_cursor: string | null;
|
527
|
-
/**
|
528
|
-
* Cursor of the last item in this page. Use for forward pagination. None if page
|
529
|
-
* is empty.
|
530
|
-
*/
|
531
|
-
last_cursor: string | null;
|
532
|
-
/**
|
533
|
-
* Total number of items available across all pages. Only included when
|
534
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
535
|
-
*/
|
536
|
-
total?: number | null;
|
537
|
-
}
|
538
|
-
}
|
539
459
|
/**
|
540
460
|
* Response model for vector store deletion.
|
541
461
|
*/
|
@@ -624,25 +544,7 @@ export interface VectorStoreUpdateParams {
|
|
624
544
|
*/
|
625
545
|
metadata?: unknown;
|
626
546
|
}
|
627
|
-
export interface VectorStoreListParams {
|
628
|
-
/**
|
629
|
-
* Maximum number of items to return per page (1-100)
|
630
|
-
*/
|
631
|
-
limit?: number;
|
632
|
-
/**
|
633
|
-
* Cursor for forward pagination - get items after this position. Use last_cursor
|
634
|
-
* from previous response.
|
635
|
-
*/
|
636
|
-
after?: string | null;
|
637
|
-
/**
|
638
|
-
* Cursor for backward pagination - get items before this position. Use
|
639
|
-
* first_cursor from previous response.
|
640
|
-
*/
|
641
|
-
before?: string | null;
|
642
|
-
/**
|
643
|
-
* Whether to include total count in response (expensive operation)
|
644
|
-
*/
|
645
|
-
include_total?: boolean;
|
547
|
+
export interface VectorStoreListParams extends CursorParams {
|
646
548
|
/**
|
647
549
|
* Search query for fuzzy matching over name and description fields
|
648
550
|
*/
|
@@ -733,7 +635,7 @@ export interface VectorStoreSearchParams {
|
|
733
635
|
search_options?: VectorStoreChunkSearchOptions;
|
734
636
|
}
|
735
637
|
export declare namespace VectorStores {
|
736
|
-
export { type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type
|
737
|
-
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
638
|
+
export { type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresCursor as VectorStoresCursor, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
639
|
+
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type VectorStoreFilesCursor as VectorStoreFilesCursor, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
738
640
|
}
|
739
641
|
//# sourceMappingURL=vector-stores.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vector-stores.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,
|
1
|
+
{"version":3,"file":"vector-stores.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/vector-stores.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACL,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACvB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxF;;;;;;OAMG;IACH,QAAQ,CAAC,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAI1F;;;;;;;;OAQG;IACH,MAAM,CACJ,qBAAqB,EAAE,MAAM,EAC7B,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC;IAI1B;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kBAAkB,EAAE,WAAW,CAA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AAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
2
2
|
import * as Shared from "../shared.js";
|
3
3
|
import * as FilesAPI from "./files.js";
|
4
|
-
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams,
|
4
|
+
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus, VectorStoreFilesCursor } from "./files.js";
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
|
6
7
|
import { RequestOptions } from "../../internal/request-options.js";
|
7
8
|
export declare class VectorStores extends APIResource {
|
8
9
|
files: FilesAPI.Files;
|
@@ -41,7 +42,7 @@ export declare class VectorStores extends APIResource {
|
|
41
42
|
*
|
42
43
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
43
44
|
*/
|
44
|
-
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions):
|
45
|
+
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoresCursor, VectorStore>;
|
45
46
|
/**
|
46
47
|
* Delete a vector store by ID or name.
|
47
48
|
*
|
@@ -75,6 +76,7 @@ export declare class VectorStores extends APIResource {
|
|
75
76
|
*/
|
76
77
|
search(body: VectorStoreSearchParams, options?: RequestOptions): APIPromise<VectorStoreSearchResponse>;
|
77
78
|
}
|
79
|
+
export type VectorStoresCursor = Cursor<VectorStore>;
|
78
80
|
/**
|
79
81
|
* Represents an expiration policy for a vector store.
|
80
82
|
*/
|
@@ -454,88 +456,6 @@ export interface VectorStoreChunkSearchOptions {
|
|
454
456
|
*/
|
455
457
|
return_metadata?: boolean;
|
456
458
|
}
|
457
|
-
export interface VectorStoreListResponse {
|
458
|
-
/**
|
459
|
-
* Response model for cursor-based pagination.
|
460
|
-
*
|
461
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
462
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
463
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
464
|
-
*
|
465
|
-
* Final page response:
|
466
|
-
* {
|
467
|
-
* "has_more": false,
|
468
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
469
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
470
|
-
* "total": 42
|
471
|
-
* }
|
472
|
-
*
|
473
|
-
* Empty results:
|
474
|
-
* {
|
475
|
-
* "has_more": false,
|
476
|
-
* "first_cursor": null,
|
477
|
-
* "last_cursor": null,
|
478
|
-
* "total": 0
|
479
|
-
* }
|
480
|
-
*/
|
481
|
-
pagination: VectorStoreListResponse.Pagination;
|
482
|
-
/**
|
483
|
-
* The object type of the response
|
484
|
-
*/
|
485
|
-
object?: 'list';
|
486
|
-
/**
|
487
|
-
* The list of vector stores
|
488
|
-
*/
|
489
|
-
data: Array<VectorStore>;
|
490
|
-
}
|
491
|
-
export declare namespace VectorStoreListResponse {
|
492
|
-
/**
|
493
|
-
* Response model for cursor-based pagination.
|
494
|
-
*
|
495
|
-
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
496
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
497
|
-
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
498
|
-
*
|
499
|
-
* Final page response:
|
500
|
-
* {
|
501
|
-
* "has_more": false,
|
502
|
-
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
503
|
-
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
504
|
-
* "total": 42
|
505
|
-
* }
|
506
|
-
*
|
507
|
-
* Empty results:
|
508
|
-
* {
|
509
|
-
* "has_more": false,
|
510
|
-
* "first_cursor": null,
|
511
|
-
* "last_cursor": null,
|
512
|
-
* "total": 0
|
513
|
-
* }
|
514
|
-
*/
|
515
|
-
interface Pagination {
|
516
|
-
/**
|
517
|
-
* Contextual direction-aware flag: True if more items exist in the requested
|
518
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
519
|
-
* more items before this page.
|
520
|
-
*/
|
521
|
-
has_more: boolean;
|
522
|
-
/**
|
523
|
-
* Cursor of the first item in this page. Use for backward pagination. None if page
|
524
|
-
* is empty.
|
525
|
-
*/
|
526
|
-
first_cursor: string | null;
|
527
|
-
/**
|
528
|
-
* Cursor of the last item in this page. Use for forward pagination. None if page
|
529
|
-
* is empty.
|
530
|
-
*/
|
531
|
-
last_cursor: string | null;
|
532
|
-
/**
|
533
|
-
* Total number of items available across all pages. Only included when
|
534
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
535
|
-
*/
|
536
|
-
total?: number | null;
|
537
|
-
}
|
538
|
-
}
|
539
459
|
/**
|
540
460
|
* Response model for vector store deletion.
|
541
461
|
*/
|
@@ -624,25 +544,7 @@ export interface VectorStoreUpdateParams {
|
|
624
544
|
*/
|
625
545
|
metadata?: unknown;
|
626
546
|
}
|
627
|
-
export interface VectorStoreListParams {
|
628
|
-
/**
|
629
|
-
* Maximum number of items to return per page (1-100)
|
630
|
-
*/
|
631
|
-
limit?: number;
|
632
|
-
/**
|
633
|
-
* Cursor for forward pagination - get items after this position. Use last_cursor
|
634
|
-
* from previous response.
|
635
|
-
*/
|
636
|
-
after?: string | null;
|
637
|
-
/**
|
638
|
-
* Cursor for backward pagination - get items before this position. Use
|
639
|
-
* first_cursor from previous response.
|
640
|
-
*/
|
641
|
-
before?: string | null;
|
642
|
-
/**
|
643
|
-
* Whether to include total count in response (expensive operation)
|
644
|
-
*/
|
645
|
-
include_total?: boolean;
|
547
|
+
export interface VectorStoreListParams extends CursorParams {
|
646
548
|
/**
|
647
549
|
* Search query for fuzzy matching over name and description fields
|
648
550
|
*/
|
@@ -733,7 +635,7 @@ export interface VectorStoreSearchParams {
|
|
733
635
|
search_options?: VectorStoreChunkSearchOptions;
|
734
636
|
}
|
735
637
|
export declare namespace VectorStores {
|
736
|
-
export { type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type
|
737
|
-
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
638
|
+
export { type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresCursor as VectorStoresCursor, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
639
|
+
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type VectorStoreFilesCursor as VectorStoreFilesCursor, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
738
640
|
}
|
739
641
|
//# sourceMappingURL=vector-stores.d.ts.map
|