@mixedbread/sdk 0.15.0 → 0.17.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 +22 -0
- package/README.md +31 -0
- package/bin/migration-config.json +4 -0
- package/client.d.mts +8 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +10 -16
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +10 -16
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/internal/request-options.d.mts +42 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +42 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.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/embeddings.d.mts +1 -1
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts +1 -1
- package/resources/embeddings.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 +33 -134
- package/resources/parsing/jobs.d.mts.map +1 -1
- package/resources/parsing/jobs.d.ts +33 -134
- 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 +135 -95
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +135 -95
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +7 -3
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +7 -3
- 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 +23 -117
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +23 -117
- 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 +8 -6
- package/src/core/pagination.ts +10 -18
- package/src/internal/request-options.ts +53 -0
- 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/embeddings.ts +2 -1
- 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 +38 -145
- package/src/resources/parsing/parsing.ts +2 -0
- package/src/resources/vector-stores/files.ts +167 -103
- package/src/resources/vector-stores/index.ts +2 -2
- package/src/resources/vector-stores/vector-stores.ts +29 -132
- 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.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";
|
6
7
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
7
8
|
import { Uploadable } from "../../uploads.mjs";
|
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
|
*/
|
@@ -169,14 +171,14 @@ export interface ScoredVectorStoreFile {
|
|
169
171
|
* Type of the object
|
170
172
|
*/
|
171
173
|
object?: 'vector_store.file';
|
172
|
-
/**
|
173
|
-
* score of the file
|
174
|
-
*/
|
175
|
-
score: number;
|
176
174
|
/**
|
177
175
|
* chunks
|
178
176
|
*/
|
179
177
|
chunks: Array<VectorStoresAPI.ScoredTextInputChunk | VectorStoresAPI.ScoredImageURLInputChunk | VectorStoresAPI.ScoredAudioURLInputChunk | VectorStoresAPI.ScoredVideoURLInputChunk> | null;
|
178
|
+
/**
|
179
|
+
* score of the file
|
180
|
+
*/
|
181
|
+
score: number;
|
180
182
|
}
|
181
183
|
export type VectorStoreFileStatus = 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
|
182
184
|
/**
|
@@ -223,87 +225,139 @@ export interface VectorStoreFile {
|
|
223
225
|
* Type of the object
|
224
226
|
*/
|
225
227
|
object?: 'vector_store.file';
|
226
|
-
}
|
227
|
-
export interface FileListResponse {
|
228
228
|
/**
|
229
|
-
*
|
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
|
229
|
+
* chunks
|
258
230
|
*/
|
259
|
-
|
231
|
+
chunks?: Array<VectorStoreFile.TextInputChunk | VectorStoreFile.ImageURLInputChunkBase | VectorStoreFile.AudioURLInputChunkBase | VectorStoreFile.VideoURLInputChunkBase> | null;
|
260
232
|
}
|
261
|
-
export declare namespace
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
233
|
+
export declare namespace VectorStoreFile {
|
234
|
+
interface TextInputChunk {
|
235
|
+
/**
|
236
|
+
* position of the chunk in a file
|
237
|
+
*/
|
238
|
+
chunk_index: number;
|
239
|
+
/**
|
240
|
+
* mime type of the chunk
|
241
|
+
*/
|
242
|
+
mime_type?: string;
|
243
|
+
/**
|
244
|
+
* metadata of the chunk
|
245
|
+
*/
|
246
|
+
generated_metadata?: {
|
247
|
+
[key: string]: unknown;
|
248
|
+
} | null;
|
249
|
+
/**
|
250
|
+
* model used for this chunk
|
251
|
+
*/
|
252
|
+
model?: string | null;
|
253
|
+
/**
|
254
|
+
* Input type identifier
|
255
|
+
*/
|
256
|
+
type?: 'text';
|
257
|
+
/**
|
258
|
+
* The offset of the text in the file relative to the start of the file.
|
259
|
+
*/
|
260
|
+
offset?: number;
|
261
|
+
/**
|
262
|
+
* Text content to process
|
263
|
+
*/
|
264
|
+
text: string;
|
265
|
+
}
|
266
|
+
interface ImageURLInputChunkBase {
|
267
|
+
/**
|
268
|
+
* position of the chunk in a file
|
269
|
+
*/
|
270
|
+
chunk_index: number;
|
271
|
+
/**
|
272
|
+
* mime type of the chunk
|
273
|
+
*/
|
274
|
+
mime_type?: string;
|
275
|
+
/**
|
276
|
+
* metadata of the chunk
|
277
|
+
*/
|
278
|
+
generated_metadata?: {
|
279
|
+
[key: string]: unknown;
|
280
|
+
} | null;
|
281
|
+
/**
|
282
|
+
* model used for this chunk
|
283
|
+
*/
|
284
|
+
model?: string | null;
|
285
|
+
/**
|
286
|
+
* Input type identifier
|
287
|
+
*/
|
288
|
+
type?: 'image_url';
|
289
|
+
/**
|
290
|
+
* ocr text of the image
|
291
|
+
*/
|
292
|
+
ocr_text?: string | null;
|
293
|
+
/**
|
294
|
+
* summary of the image
|
295
|
+
*/
|
296
|
+
summary?: string | null;
|
297
|
+
}
|
298
|
+
interface AudioURLInputChunkBase {
|
299
|
+
/**
|
300
|
+
* position of the chunk in a file
|
301
|
+
*/
|
302
|
+
chunk_index: number;
|
303
|
+
/**
|
304
|
+
* mime type of the chunk
|
305
|
+
*/
|
306
|
+
mime_type?: string;
|
307
|
+
/**
|
308
|
+
* metadata of the chunk
|
309
|
+
*/
|
310
|
+
generated_metadata?: {
|
311
|
+
[key: string]: unknown;
|
312
|
+
} | null;
|
313
|
+
/**
|
314
|
+
* model used for this chunk
|
315
|
+
*/
|
316
|
+
model?: string | null;
|
317
|
+
/**
|
318
|
+
* Input type identifier
|
319
|
+
*/
|
320
|
+
type?: 'audio_url';
|
321
|
+
/**
|
322
|
+
* speech recognition (sr) text of the audio
|
323
|
+
*/
|
324
|
+
transcription?: string | null;
|
325
|
+
/**
|
326
|
+
* summary of the audio
|
327
|
+
*/
|
328
|
+
summary?: string | null;
|
329
|
+
}
|
330
|
+
interface VideoURLInputChunkBase {
|
286
331
|
/**
|
287
|
-
*
|
288
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
289
|
-
* more items before this page.
|
332
|
+
* position of the chunk in a file
|
290
333
|
*/
|
291
|
-
|
334
|
+
chunk_index: number;
|
292
335
|
/**
|
293
|
-
*
|
294
|
-
* is empty.
|
336
|
+
* mime type of the chunk
|
295
337
|
*/
|
296
|
-
|
338
|
+
mime_type?: string;
|
297
339
|
/**
|
298
|
-
*
|
299
|
-
* is empty.
|
340
|
+
* metadata of the chunk
|
300
341
|
*/
|
301
|
-
|
342
|
+
generated_metadata?: {
|
343
|
+
[key: string]: unknown;
|
344
|
+
} | null;
|
302
345
|
/**
|
303
|
-
*
|
304
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
346
|
+
* model used for this chunk
|
305
347
|
*/
|
306
|
-
|
348
|
+
model?: string | null;
|
349
|
+
/**
|
350
|
+
* Input type identifier
|
351
|
+
*/
|
352
|
+
type?: 'video_url';
|
353
|
+
/**
|
354
|
+
* speech recognition (sr) text of the video
|
355
|
+
*/
|
356
|
+
transcription?: string | null;
|
357
|
+
/**
|
358
|
+
* summary of the video
|
359
|
+
*/
|
360
|
+
summary?: string | null;
|
307
361
|
}
|
308
362
|
}
|
309
363
|
/**
|
@@ -364,29 +418,15 @@ export declare namespace FileCreateParams {
|
|
364
418
|
}
|
365
419
|
export interface FileRetrieveParams {
|
366
420
|
/**
|
367
|
-
* The ID or name of the vector store
|
421
|
+
* Path param: The ID or name of the vector store
|
368
422
|
*/
|
369
423
|
vector_store_identifier: string;
|
370
|
-
}
|
371
|
-
export interface FileListParams {
|
372
|
-
/**
|
373
|
-
* Maximum number of items to return per page (1-100)
|
374
|
-
*/
|
375
|
-
limit?: number;
|
376
424
|
/**
|
377
|
-
*
|
378
|
-
* from previous response.
|
425
|
+
* Query param: Whether to return the chunks for the file
|
379
426
|
*/
|
380
|
-
|
381
|
-
|
382
|
-
|
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;
|
427
|
+
return_chunks?: boolean;
|
428
|
+
}
|
429
|
+
export interface FileListParams extends CursorParams {
|
390
430
|
/**
|
391
431
|
* Status to filter by
|
392
432
|
*/
|
@@ -460,6 +500,6 @@ export declare namespace FileSearchParams {
|
|
460
500
|
}
|
461
501
|
}
|
462
502
|
export declare namespace Files {
|
463
|
-
export { type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
503
|
+
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
504
|
}
|
465
505
|
//# 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,EA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AI,gBAAgB,GAC1C,CAAC;CACH"}
|
@@ -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
|
*/
|
@@ -169,14 +171,14 @@ export interface ScoredVectorStoreFile {
|
|
169
171
|
* Type of the object
|
170
172
|
*/
|
171
173
|
object?: 'vector_store.file';
|
172
|
-
/**
|
173
|
-
* score of the file
|
174
|
-
*/
|
175
|
-
score: number;
|
176
174
|
/**
|
177
175
|
* chunks
|
178
176
|
*/
|
179
177
|
chunks: Array<VectorStoresAPI.ScoredTextInputChunk | VectorStoresAPI.ScoredImageURLInputChunk | VectorStoresAPI.ScoredAudioURLInputChunk | VectorStoresAPI.ScoredVideoURLInputChunk> | null;
|
178
|
+
/**
|
179
|
+
* score of the file
|
180
|
+
*/
|
181
|
+
score: number;
|
180
182
|
}
|
181
183
|
export type VectorStoreFileStatus = 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
|
182
184
|
/**
|
@@ -223,87 +225,139 @@ export interface VectorStoreFile {
|
|
223
225
|
* Type of the object
|
224
226
|
*/
|
225
227
|
object?: 'vector_store.file';
|
226
|
-
}
|
227
|
-
export interface FileListResponse {
|
228
228
|
/**
|
229
|
-
*
|
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
|
229
|
+
* chunks
|
258
230
|
*/
|
259
|
-
|
231
|
+
chunks?: Array<VectorStoreFile.TextInputChunk | VectorStoreFile.ImageURLInputChunkBase | VectorStoreFile.AudioURLInputChunkBase | VectorStoreFile.VideoURLInputChunkBase> | null;
|
260
232
|
}
|
261
|
-
export declare namespace
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
233
|
+
export declare namespace VectorStoreFile {
|
234
|
+
interface TextInputChunk {
|
235
|
+
/**
|
236
|
+
* position of the chunk in a file
|
237
|
+
*/
|
238
|
+
chunk_index: number;
|
239
|
+
/**
|
240
|
+
* mime type of the chunk
|
241
|
+
*/
|
242
|
+
mime_type?: string;
|
243
|
+
/**
|
244
|
+
* metadata of the chunk
|
245
|
+
*/
|
246
|
+
generated_metadata?: {
|
247
|
+
[key: string]: unknown;
|
248
|
+
} | null;
|
249
|
+
/**
|
250
|
+
* model used for this chunk
|
251
|
+
*/
|
252
|
+
model?: string | null;
|
253
|
+
/**
|
254
|
+
* Input type identifier
|
255
|
+
*/
|
256
|
+
type?: 'text';
|
257
|
+
/**
|
258
|
+
* The offset of the text in the file relative to the start of the file.
|
259
|
+
*/
|
260
|
+
offset?: number;
|
261
|
+
/**
|
262
|
+
* Text content to process
|
263
|
+
*/
|
264
|
+
text: string;
|
265
|
+
}
|
266
|
+
interface ImageURLInputChunkBase {
|
267
|
+
/**
|
268
|
+
* position of the chunk in a file
|
269
|
+
*/
|
270
|
+
chunk_index: number;
|
271
|
+
/**
|
272
|
+
* mime type of the chunk
|
273
|
+
*/
|
274
|
+
mime_type?: string;
|
275
|
+
/**
|
276
|
+
* metadata of the chunk
|
277
|
+
*/
|
278
|
+
generated_metadata?: {
|
279
|
+
[key: string]: unknown;
|
280
|
+
} | null;
|
281
|
+
/**
|
282
|
+
* model used for this chunk
|
283
|
+
*/
|
284
|
+
model?: string | null;
|
285
|
+
/**
|
286
|
+
* Input type identifier
|
287
|
+
*/
|
288
|
+
type?: 'image_url';
|
289
|
+
/**
|
290
|
+
* ocr text of the image
|
291
|
+
*/
|
292
|
+
ocr_text?: string | null;
|
293
|
+
/**
|
294
|
+
* summary of the image
|
295
|
+
*/
|
296
|
+
summary?: string | null;
|
297
|
+
}
|
298
|
+
interface AudioURLInputChunkBase {
|
299
|
+
/**
|
300
|
+
* position of the chunk in a file
|
301
|
+
*/
|
302
|
+
chunk_index: number;
|
303
|
+
/**
|
304
|
+
* mime type of the chunk
|
305
|
+
*/
|
306
|
+
mime_type?: string;
|
307
|
+
/**
|
308
|
+
* metadata of the chunk
|
309
|
+
*/
|
310
|
+
generated_metadata?: {
|
311
|
+
[key: string]: unknown;
|
312
|
+
} | null;
|
313
|
+
/**
|
314
|
+
* model used for this chunk
|
315
|
+
*/
|
316
|
+
model?: string | null;
|
317
|
+
/**
|
318
|
+
* Input type identifier
|
319
|
+
*/
|
320
|
+
type?: 'audio_url';
|
321
|
+
/**
|
322
|
+
* speech recognition (sr) text of the audio
|
323
|
+
*/
|
324
|
+
transcription?: string | null;
|
325
|
+
/**
|
326
|
+
* summary of the audio
|
327
|
+
*/
|
328
|
+
summary?: string | null;
|
329
|
+
}
|
330
|
+
interface VideoURLInputChunkBase {
|
286
331
|
/**
|
287
|
-
*
|
288
|
-
* pagination direction. For 'after': more items after this page. For 'before':
|
289
|
-
* more items before this page.
|
332
|
+
* position of the chunk in a file
|
290
333
|
*/
|
291
|
-
|
334
|
+
chunk_index: number;
|
292
335
|
/**
|
293
|
-
*
|
294
|
-
* is empty.
|
336
|
+
* mime type of the chunk
|
295
337
|
*/
|
296
|
-
|
338
|
+
mime_type?: string;
|
297
339
|
/**
|
298
|
-
*
|
299
|
-
* is empty.
|
340
|
+
* metadata of the chunk
|
300
341
|
*/
|
301
|
-
|
342
|
+
generated_metadata?: {
|
343
|
+
[key: string]: unknown;
|
344
|
+
} | null;
|
302
345
|
/**
|
303
|
-
*
|
304
|
-
* include_total=true was requested. Expensive operation - use sparingly.
|
346
|
+
* model used for this chunk
|
305
347
|
*/
|
306
|
-
|
348
|
+
model?: string | null;
|
349
|
+
/**
|
350
|
+
* Input type identifier
|
351
|
+
*/
|
352
|
+
type?: 'video_url';
|
353
|
+
/**
|
354
|
+
* speech recognition (sr) text of the video
|
355
|
+
*/
|
356
|
+
transcription?: string | null;
|
357
|
+
/**
|
358
|
+
* summary of the video
|
359
|
+
*/
|
360
|
+
summary?: string | null;
|
307
361
|
}
|
308
362
|
}
|
309
363
|
/**
|
@@ -364,29 +418,15 @@ export declare namespace FileCreateParams {
|
|
364
418
|
}
|
365
419
|
export interface FileRetrieveParams {
|
366
420
|
/**
|
367
|
-
* The ID or name of the vector store
|
421
|
+
* Path param: The ID or name of the vector store
|
368
422
|
*/
|
369
423
|
vector_store_identifier: string;
|
370
|
-
}
|
371
|
-
export interface FileListParams {
|
372
|
-
/**
|
373
|
-
* Maximum number of items to return per page (1-100)
|
374
|
-
*/
|
375
|
-
limit?: number;
|
376
424
|
/**
|
377
|
-
*
|
378
|
-
* from previous response.
|
425
|
+
* Query param: Whether to return the chunks for the file
|
379
426
|
*/
|
380
|
-
|
381
|
-
|
382
|
-
|
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;
|
427
|
+
return_chunks?: boolean;
|
428
|
+
}
|
429
|
+
export interface FileListParams extends CursorParams {
|
390
430
|
/**
|
391
431
|
* Status to filter by
|
392
432
|
*/
|
@@ -460,6 +500,6 @@ export declare namespace FileSearchParams {
|
|
460
500
|
}
|
461
501
|
}
|
462
502
|
export declare namespace Files {
|
463
|
-
export { type RerankConfig as RerankConfig, type ScoredVectorStoreFile as ScoredVectorStoreFile, type VectorStoreFileStatus as VectorStoreFileStatus, type VectorStoreFile as VectorStoreFile, type
|
503
|
+
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
504
|
}
|
465
505
|
//# 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;
|
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,qBAAa,KAA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