@mixedbread/sdk 0.11.1 → 0.12.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 +18 -0
- package/README.md +0 -31
- 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/package.json +1 -1
- package/resources/data-sources/connectors.d.mts +106 -5
- package/resources/data-sources/connectors.d.mts.map +1 -1
- package/resources/data-sources/connectors.d.ts +106 -5
- package/resources/data-sources/connectors.d.ts.map +1 -1
- package/resources/data-sources/connectors.js +1 -2
- package/resources/data-sources/connectors.js.map +1 -1
- package/resources/data-sources/connectors.mjs +1 -2
- package/resources/data-sources/connectors.mjs.map +1 -1
- package/resources/data-sources/data-sources.d.mts +108 -7
- package/resources/data-sources/data-sources.d.mts.map +1 -1
- package/resources/data-sources/data-sources.d.ts +108 -7
- package/resources/data-sources/data-sources.d.ts.map +1 -1
- package/resources/data-sources/data-sources.js +1 -2
- package/resources/data-sources/data-sources.js.map +1 -1
- package/resources/data-sources/data-sources.mjs +1 -2
- 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 +107 -5
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +107 -5
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +1 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +1 -2
- 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 +134 -29
- package/resources/parsing/jobs.d.mts.map +1 -1
- package/resources/parsing/jobs.d.ts +134 -29
- package/resources/parsing/jobs.d.ts.map +1 -1
- package/resources/parsing/jobs.js +1 -2
- package/resources/parsing/jobs.js.map +1 -1
- package/resources/parsing/jobs.mjs +1 -2
- 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 +103 -5
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +103 -5
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +1 -2
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +1 -2
- 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 +105 -7
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +105 -7
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +1 -2
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +1 -2
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/client.ts +6 -6
- package/src/resources/data-sources/connectors.ts +118 -11
- package/src/resources/data-sources/data-sources.ts +120 -9
- package/src/resources/data-sources/index.ts +2 -2
- package/src/resources/files.ts +120 -7
- package/src/resources/index.ts +3 -3
- package/src/resources/parsing/index.ts +0 -1
- package/src/resources/parsing/jobs.ts +146 -34
- package/src/resources/parsing/parsing.ts +0 -2
- package/src/resources/vector-stores/files.ts +115 -11
- package/src/resources/vector-stores/index.ts +2 -2
- package/src/resources/vector-stores/vector-stores.ts +117 -9
- 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,7 +3,6 @@ import * as FilesAPI from "./files.mjs";
|
|
3
3
|
import * as Shared from "../shared.mjs";
|
4
4
|
import * as VectorStoresAPI from "./vector-stores.mjs";
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
6
|
-
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
7
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
8
7
|
import { Uploadable } from "../../uploads.mjs";
|
9
8
|
export declare class Files extends APIResource {
|
@@ -33,7 +32,7 @@ export declare class Files extends APIResource {
|
|
33
32
|
*
|
34
33
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
35
34
|
*/
|
36
|
-
list(vectorStoreIdentifier: string, query?: FileListParams | null | undefined, options?: RequestOptions):
|
35
|
+
list(vectorStoreIdentifier: string, query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
37
36
|
/**
|
38
37
|
* Delete a file from a vector store.
|
39
38
|
*
|
@@ -108,7 +107,6 @@ export declare class Files extends APIResource {
|
|
108
107
|
*/
|
109
108
|
uploadAndPoll(vectorStoreIdentifier: string, file: Uploadable, body?: Omit<FileCreateParams, 'file_id'>, pollIntervalMs?: number, pollTimeoutMs?: number, options?: RequestOptions): Promise<VectorStoreFile>;
|
110
109
|
}
|
111
|
-
export type VectorStoreFilesCursor = Cursor<VectorStoreFile>;
|
112
110
|
/**
|
113
111
|
* Represents a reranking configuration.
|
114
112
|
*/
|
@@ -226,6 +224,88 @@ export interface VectorStoreFile {
|
|
226
224
|
*/
|
227
225
|
object?: 'vector_store.file';
|
228
226
|
}
|
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
|
+
}
|
229
309
|
/**
|
230
310
|
* Response model for file deletion.
|
231
311
|
*/
|
@@ -288,7 +368,25 @@ export interface FileRetrieveParams {
|
|
288
368
|
*/
|
289
369
|
vector_store_identifier: string;
|
290
370
|
}
|
291
|
-
export interface FileListParams
|
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;
|
292
390
|
/**
|
293
391
|
* Status to filter by
|
294
392
|
*/
|
@@ -362,6 +460,6 @@ export declare namespace FileSearchParams {
|
|
362
460
|
}
|
363
461
|
}
|
364
462
|
export declare namespace Files {
|
365
|
-
export { type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
463
|
+
export { type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
366
464
|
}
|
367
465
|
//# sourceMappingURL=files.d.mts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"files.d.mts","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,
|
1
|
+
{"version":3,"file":"files.d.mts","sourceRoot":"","sources":["../../src/resources/vector-stores/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,MAAM;OACX,KAAK,eAAe;OACpB,EA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K,YAAY,IAAI,YAAY,EACjC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,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"}
|
@@ -3,7 +3,6 @@ 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";
|
7
6
|
import { RequestOptions } from "../../internal/request-options.js";
|
8
7
|
import { Uploadable } from "../../uploads.js";
|
9
8
|
export declare class Files extends APIResource {
|
@@ -33,7 +32,7 @@ export declare class Files extends APIResource {
|
|
33
32
|
*
|
34
33
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
35
34
|
*/
|
36
|
-
list(vectorStoreIdentifier: string, query?: FileListParams | null | undefined, options?: RequestOptions):
|
35
|
+
list(vectorStoreIdentifier: string, query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
37
36
|
/**
|
38
37
|
* Delete a file from a vector store.
|
39
38
|
*
|
@@ -108,7 +107,6 @@ export declare class Files extends APIResource {
|
|
108
107
|
*/
|
109
108
|
uploadAndPoll(vectorStoreIdentifier: string, file: Uploadable, body?: Omit<FileCreateParams, 'file_id'>, pollIntervalMs?: number, pollTimeoutMs?: number, options?: RequestOptions): Promise<VectorStoreFile>;
|
110
109
|
}
|
111
|
-
export type VectorStoreFilesCursor = Cursor<VectorStoreFile>;
|
112
110
|
/**
|
113
111
|
* Represents a reranking configuration.
|
114
112
|
*/
|
@@ -226,6 +224,88 @@ export interface VectorStoreFile {
|
|
226
224
|
*/
|
227
225
|
object?: 'vector_store.file';
|
228
226
|
}
|
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
|
+
}
|
229
309
|
/**
|
230
310
|
* Response model for file deletion.
|
231
311
|
*/
|
@@ -288,7 +368,25 @@ export interface FileRetrieveParams {
|
|
288
368
|
*/
|
289
369
|
vector_store_identifier: string;
|
290
370
|
}
|
291
|
-
export interface FileListParams
|
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;
|
292
390
|
/**
|
293
391
|
* Status to filter by
|
294
392
|
*/
|
@@ -362,6 +460,6 @@ export declare namespace FileSearchParams {
|
|
362
460
|
}
|
363
461
|
}
|
364
462
|
export declare namespace Files {
|
365
|
-
export { type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
463
|
+
export { type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
366
464
|
}
|
367
465
|
//# 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,
|
1
|
+
{"version":3,"file":"files.d.ts","source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AO,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,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,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,7 +4,6 @@ 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");
|
8
7
|
const polling = tslib_1.__importStar(require("../../lib/polling.js"));
|
9
8
|
const path_1 = require("../../internal/utils/path.js");
|
10
9
|
class Files extends resource_1.APIResource {
|
@@ -40,7 +39,7 @@ class Files extends resource_1.APIResource {
|
|
40
39
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
41
40
|
*/
|
42
41
|
list(vectorStoreIdentifier, query = {}, options) {
|
43
|
-
return this._client.
|
42
|
+
return this._client.get((0, path_1.path) `/v1/vector_stores/${vectorStoreIdentifier}/files`, { query, ...options });
|
44
43
|
}
|
45
44
|
/**
|
46
45
|
* 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;;;;A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;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;AAzLD,sBAyLC"}
|
@@ -1,6 +1,5 @@
|
|
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";
|
4
3
|
import * as polling from "../../lib/polling.mjs";
|
5
4
|
import { path } from "../../internal/utils/path.mjs";
|
6
5
|
export class Files extends APIResource {
|
@@ -36,7 +35,7 @@ export class Files extends APIResource {
|
|
36
35
|
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
37
36
|
*/
|
38
37
|
list(vectorStoreIdentifier, query = {}, options) {
|
39
|
-
return this._client.
|
38
|
+
return this._client.get(path `/v1/vector_stores/${vectorStoreIdentifier}/files`, { query, ...options });
|
40
39
|
}
|
41
40
|
/**
|
42
41
|
* 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;OAMf,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,qBAA6B,EAC7B,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,qBAAqB,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,uBAAuB,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,qBAAqB,uBAAuB,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;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AM,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"}
|
@@ -1,3 +1,3 @@
|
|
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,
|
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,
|
1
|
+
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type FileListResponse, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, } from "./files.mjs";
|
2
|
+
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreListResponse, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, } 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,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,
|
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,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;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,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,GAC7B"}
|
@@ -1,3 +1,3 @@
|
|
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,
|
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,
|
1
|
+
export { Files, type RerankConfig, type ScoredVectorStoreFile, type VectorStoreFileStatus, type VectorStoreFile, type FileListResponse, type FileDeleteResponse, type FileSearchResponse, type FileCreateParams, type FileRetrieveParams, type FileListParams, type FileDeleteParams, type FileSearchParams, } from "./files.js";
|
2
|
+
export { VectorStores, type ExpiresAfter, type ScoredAudioURLInputChunk, type ScoredImageURLInputChunk, type ScoredTextInputChunk, type ScoredVideoURLInputChunk, type VectorStore, type VectorStoreChunkSearchOptions, type VectorStoreListResponse, type VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse, type VectorStoreCreateParams, type VectorStoreUpdateParams, type VectorStoreListParams, type VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams, } 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,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,
|
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,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;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,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,GAC7B"}
|
@@ -1,9 +1,8 @@
|
|
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, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus
|
4
|
+
import { FileCreateParams, FileDeleteParams, FileDeleteResponse, FileListParams, FileListResponse, FileRetrieveParams, FileSearchParams, FileSearchResponse, Files, RerankConfig, ScoredVectorStoreFile, VectorStoreFile, VectorStoreFileStatus } from "./files.mjs";
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
6
|
-
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
7
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
8
7
|
export declare class VectorStores extends APIResource {
|
9
8
|
files: FilesAPI.Files;
|
@@ -42,7 +41,7 @@ export declare class VectorStores extends APIResource {
|
|
42
41
|
*
|
43
42
|
* Returns: VectorStoreListResponse: The list of vector stores.
|
44
43
|
*/
|
45
|
-
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions):
|
44
|
+
list(query?: VectorStoreListParams | null | undefined, options?: RequestOptions): APIPromise<VectorStoreListResponse>;
|
46
45
|
/**
|
47
46
|
* Delete a vector store by ID or name.
|
48
47
|
*
|
@@ -76,7 +75,6 @@ export declare class VectorStores extends APIResource {
|
|
76
75
|
*/
|
77
76
|
search(body: VectorStoreSearchParams, options?: RequestOptions): APIPromise<VectorStoreSearchResponse>;
|
78
77
|
}
|
79
|
-
export type VectorStoresCursor = Cursor<VectorStore>;
|
80
78
|
/**
|
81
79
|
* Represents an expiration policy for a vector store.
|
82
80
|
*/
|
@@ -456,6 +454,88 @@ export interface VectorStoreChunkSearchOptions {
|
|
456
454
|
*/
|
457
455
|
return_metadata?: boolean;
|
458
456
|
}
|
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
|
+
}
|
459
539
|
/**
|
460
540
|
* Response model for vector store deletion.
|
461
541
|
*/
|
@@ -544,7 +624,25 @@ export interface VectorStoreUpdateParams {
|
|
544
624
|
*/
|
545
625
|
metadata?: unknown;
|
546
626
|
}
|
547
|
-
export interface VectorStoreListParams
|
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;
|
548
646
|
/**
|
549
647
|
* Search query for fuzzy matching over name and description fields
|
550
648
|
*/
|
@@ -635,7 +733,7 @@ export interface VectorStoreSearchParams {
|
|
635
733
|
search_options?: VectorStoreChunkSearchOptions;
|
636
734
|
}
|
637
735
|
export declare namespace VectorStores {
|
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
|
639
|
-
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
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 VectorStoreListResponse as VectorStoreListResponse, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
737
|
+
export { Files as Files, type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type FileListResponse as FileListResponse, type FileDeleteResponse as FileDeleteResponse, type FileSearchResponse as FileSearchResponse, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileSearchParams as FileSearchParams, };
|
640
738
|
}
|
641
739
|
//# sourceMappingURL=vector-stores.d.mts.map
|