@mixedbread/sdk 0.29.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/bin/cli +4 -10
  3. package/package.json +1 -1
  4. package/resources/data-sources/connectors.d.mts +4 -4
  5. package/resources/data-sources/connectors.d.mts.map +1 -1
  6. package/resources/data-sources/connectors.d.ts +4 -4
  7. package/resources/data-sources/connectors.d.ts.map +1 -1
  8. package/resources/vector-stores/files.d.mts +313 -264
  9. package/resources/vector-stores/files.d.mts.map +1 -1
  10. package/resources/vector-stores/files.d.ts +313 -264
  11. package/resources/vector-stores/files.d.ts.map +1 -1
  12. package/resources/vector-stores/files.js +10 -35
  13. package/resources/vector-stores/files.js.map +1 -1
  14. package/resources/vector-stores/files.mjs +10 -35
  15. package/resources/vector-stores/files.mjs.map +1 -1
  16. package/resources/vector-stores/vector-stores.d.mts +593 -275
  17. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  18. package/resources/vector-stores/vector-stores.d.ts +593 -275
  19. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  20. package/resources/vector-stores/vector-stores.js +15 -41
  21. package/resources/vector-stores/vector-stores.js.map +1 -1
  22. package/resources/vector-stores/vector-stores.mjs +15 -41
  23. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  24. package/src/resources/data-sources/connectors.ts +4 -4
  25. package/src/resources/vector-stores/files.ts +356 -439
  26. package/src/resources/vector-stores/vector-stores.ts +693 -453
  27. package/src/version.ts +1 -1
  28. package/version.d.mts +1 -1
  29. package/version.d.ts +1 -1
  30. package/version.js +1 -1
  31. package/version.mjs +1 -1
@@ -1,64 +1,38 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as FilesAPI from "./files.mjs";
3
3
  import * as Shared from "../shared.mjs";
4
- import * as VectorStoresAPI from "./vector-stores.mjs";
5
4
  import { APIPromise } from "../../core/api-promise.mjs";
6
5
  import { RequestOptions } from "../../internal/request-options.mjs";
7
6
  import { Uploadable } from "../../uploads.mjs";
8
7
  export declare class Files extends APIResource {
9
8
  /**
10
- * Add an already uploaded file to a vector store.
9
+ * DEPRECATED: Use POST /stores/{store_identifier}/files instead
11
10
  *
12
- * Args: vector_store_identifier: The ID or name of the vector store to add the
13
- * file to file: The file to add and index
14
- *
15
- * Returns: VectorStoreFile: Details of the added and indexed file
11
+ * @deprecated
16
12
  */
17
13
  create(vectorStoreIdentifier: string, body: FileCreateParams, options?: RequestOptions): APIPromise<VectorStoreFile>;
18
14
  /**
19
- * Get details of a specific file in a vector store.
20
- *
21
- * Args: vector_store_identifier: The ID or name of the vector store file_id: The
22
- * ID of the file
15
+ * DEPRECATED: Use GET /stores/{store_identifier}/files/{file_id} instead
23
16
  *
24
- * Returns: VectorStoreFile: Details of the vector store file
17
+ * @deprecated
25
18
  */
26
19
  retrieve(fileID: string, params: FileRetrieveParams, options?: RequestOptions): APIPromise<VectorStoreFile>;
27
20
  /**
28
- * List files indexed in a vector store with pagination and metadata filter.
21
+ * DEPRECATED: Use POST /stores/{store_identifier}/files/list instead
29
22
  *
30
- * Args: vector_store_identifier: The ID or name of the vector store pagination:
31
- * Pagination parameters and metadata filter
32
- *
33
- * Returns: VectorStoreFileListResponse: Paginated list of vector store files
23
+ * @deprecated
34
24
  */
35
25
  list(vectorStoreIdentifier: string, body: FileListParams, options?: RequestOptions): APIPromise<FileListResponse>;
36
26
  /**
37
- * Delete a file from a vector store.
38
- *
39
- * Args: vector_store_identifier: The ID or name of the vector store file_id: The
40
- * ID of the file to delete
27
+ * DEPRECATED: Use DELETE /stores/{store_identifier}/files/{file_id} instead
41
28
  *
42
- * Returns: VectorStoreFileDeleted: The deleted file
29
+ * @deprecated
43
30
  */
44
31
  delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<FileDeleteResponse>;
45
32
  /**
46
- * Perform semantic search across complete vector store files.
33
+ * DEPRECATED: Use POST /stores/{store_identifier}/files/search instead
47
34
  *
48
- * This endpoint searches through vector store files using semantic similarity
49
- * matching. Unlike chunk search, it returns complete matching files rather than
50
- * individual chunks. Supports complex search queries with filters and returns
51
- * relevance-scored results.
52
- *
53
- * Args: search_params: Search configuration including: - query text or
54
- * embeddings - metadata filters - pagination parameters - sorting preferences
55
- * \_state: API state dependency \_ctx: Service context dependency
56
- *
57
- * Returns: VectorStoreSearchFileResponse containing: - List of matched files with
58
- * relevance scores - Pagination details including total result count
59
- *
60
- * Raises: HTTPException (400): If search parameters are invalid HTTPException
61
- * (404): If no vector stores are found to search
35
+ * @deprecated
62
36
  */
63
37
  search(body: FileSearchParams, options?: RequestOptions): APIPromise<FileSearchResponse>;
64
38
  /**
@@ -126,7 +100,7 @@ export interface RerankConfig {
126
100
  top_k?: number | null;
127
101
  }
128
102
  /**
129
- * Represents a scored file stored in a vector store.
103
+ * Represents a scored store file.
130
104
  */
131
105
  export interface ScoredVectorStoreFile {
132
106
  /**
@@ -144,17 +118,17 @@ export interface ScoredVectorStoreFile {
144
118
  /**
145
119
  * Processing status of the file
146
120
  */
147
- status?: VectorStoreFileStatus;
121
+ status?: 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
148
122
  /**
149
123
  * Last error message if processing failed
150
124
  */
151
125
  last_error?: unknown;
152
126
  /**
153
- * ID of the containing vector store
127
+ * ID of the containing store
154
128
  */
155
129
  vector_store_id: string;
156
130
  /**
157
- * Timestamp of vector store file creation
131
+ * Timestamp of store file creation
158
132
  */
159
133
  created_at: string;
160
134
  /**
@@ -172,15 +146,290 @@ export interface ScoredVectorStoreFile {
172
146
  /**
173
147
  * Array of scored file chunks
174
148
  */
175
- chunks: Array<VectorStoresAPI.ScoredTextInputChunk | VectorStoresAPI.ScoredImageURLInputChunk | VectorStoresAPI.ScoredAudioURLInputChunk | VectorStoresAPI.ScoredVideoURLInputChunk> | null;
149
+ chunks: Array<ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk | ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk | ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk | ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk> | null;
176
150
  /**
177
151
  * score of the file
178
152
  */
179
153
  score: number;
180
154
  }
155
+ export declare namespace ScoredVectorStoreFile {
156
+ /**
157
+ * Scored text chunk for deprecated API.
158
+ */
159
+ interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
160
+ /**
161
+ * position of the chunk in a file
162
+ */
163
+ chunk_index: number;
164
+ /**
165
+ * mime type of the chunk
166
+ */
167
+ mime_type?: string;
168
+ /**
169
+ * metadata of the chunk
170
+ */
171
+ generated_metadata?: {
172
+ [key: string]: unknown;
173
+ } | null;
174
+ /**
175
+ * model used for this chunk
176
+ */
177
+ model?: string | null;
178
+ /**
179
+ * score of the chunk
180
+ */
181
+ score: number;
182
+ /**
183
+ * file id
184
+ */
185
+ file_id: string;
186
+ /**
187
+ * filename
188
+ */
189
+ filename: string;
190
+ /**
191
+ * store id
192
+ */
193
+ vector_store_id: string;
194
+ /**
195
+ * file metadata
196
+ */
197
+ metadata?: unknown;
198
+ /**
199
+ * Input type identifier
200
+ */
201
+ type?: 'text';
202
+ /**
203
+ * The offset of the text in the file relative to the start of the file.
204
+ */
205
+ offset?: number;
206
+ /**
207
+ * Text content to process
208
+ */
209
+ text: string;
210
+ }
211
+ /**
212
+ * Scored image chunk for deprecated API.
213
+ */
214
+ interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
215
+ /**
216
+ * position of the chunk in a file
217
+ */
218
+ chunk_index: number;
219
+ /**
220
+ * mime type of the chunk
221
+ */
222
+ mime_type?: string;
223
+ /**
224
+ * metadata of the chunk
225
+ */
226
+ generated_metadata?: {
227
+ [key: string]: unknown;
228
+ } | null;
229
+ /**
230
+ * model used for this chunk
231
+ */
232
+ model?: string | null;
233
+ /**
234
+ * score of the chunk
235
+ */
236
+ score: number;
237
+ /**
238
+ * file id
239
+ */
240
+ file_id: string;
241
+ /**
242
+ * filename
243
+ */
244
+ filename: string;
245
+ /**
246
+ * store id
247
+ */
248
+ vector_store_id: string;
249
+ /**
250
+ * file metadata
251
+ */
252
+ metadata?: unknown;
253
+ /**
254
+ * Input type identifier
255
+ */
256
+ type?: 'image_url';
257
+ /**
258
+ * ocr text of the image
259
+ */
260
+ ocr_text?: string | null;
261
+ /**
262
+ * summary of the image
263
+ */
264
+ summary?: string | null;
265
+ /**
266
+ * The image input specification.
267
+ */
268
+ image_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.ImageURL;
269
+ }
270
+ namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
271
+ /**
272
+ * The image input specification.
273
+ */
274
+ interface ImageURL {
275
+ /**
276
+ * The image URL. Can be either a URL or a Data URI.
277
+ */
278
+ url: string;
279
+ /**
280
+ * The image format/mimetype
281
+ */
282
+ format?: string;
283
+ }
284
+ }
285
+ /**
286
+ * Scored audio chunk for deprecated API.
287
+ */
288
+ interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
289
+ /**
290
+ * position of the chunk in a file
291
+ */
292
+ chunk_index: number;
293
+ /**
294
+ * mime type of the chunk
295
+ */
296
+ mime_type?: string;
297
+ /**
298
+ * metadata of the chunk
299
+ */
300
+ generated_metadata?: {
301
+ [key: string]: unknown;
302
+ } | null;
303
+ /**
304
+ * model used for this chunk
305
+ */
306
+ model?: string | null;
307
+ /**
308
+ * score of the chunk
309
+ */
310
+ score: number;
311
+ /**
312
+ * file id
313
+ */
314
+ file_id: string;
315
+ /**
316
+ * filename
317
+ */
318
+ filename: string;
319
+ /**
320
+ * store id
321
+ */
322
+ vector_store_id: string;
323
+ /**
324
+ * file metadata
325
+ */
326
+ metadata?: unknown;
327
+ /**
328
+ * Input type identifier
329
+ */
330
+ type?: 'audio_url';
331
+ /**
332
+ * speech recognition (sr) text of the audio
333
+ */
334
+ transcription?: string | null;
335
+ /**
336
+ * summary of the audio
337
+ */
338
+ summary?: string | null;
339
+ /**
340
+ * The audio input specification.
341
+ */
342
+ audio_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioURL;
343
+ /**
344
+ * The sampling rate of the audio.
345
+ */
346
+ sampling_rate: number;
347
+ }
348
+ namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
349
+ /**
350
+ * The audio input specification.
351
+ */
352
+ interface AudioURL {
353
+ /**
354
+ * The audio URL. Can be either a URL or a Data URI.
355
+ */
356
+ url: string;
357
+ }
358
+ }
359
+ /**
360
+ * Scored video chunk for deprecated API.
361
+ */
362
+ interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
363
+ /**
364
+ * position of the chunk in a file
365
+ */
366
+ chunk_index: number;
367
+ /**
368
+ * mime type of the chunk
369
+ */
370
+ mime_type?: string;
371
+ /**
372
+ * metadata of the chunk
373
+ */
374
+ generated_metadata?: {
375
+ [key: string]: unknown;
376
+ } | null;
377
+ /**
378
+ * model used for this chunk
379
+ */
380
+ model?: string | null;
381
+ /**
382
+ * score of the chunk
383
+ */
384
+ score: number;
385
+ /**
386
+ * file id
387
+ */
388
+ file_id: string;
389
+ /**
390
+ * filename
391
+ */
392
+ filename: string;
393
+ /**
394
+ * store id
395
+ */
396
+ vector_store_id: string;
397
+ /**
398
+ * file metadata
399
+ */
400
+ metadata?: unknown;
401
+ /**
402
+ * Input type identifier
403
+ */
404
+ type?: 'video_url';
405
+ /**
406
+ * speech recognition (sr) text of the video
407
+ */
408
+ transcription?: string | null;
409
+ /**
410
+ * summary of the video
411
+ */
412
+ summary?: string | null;
413
+ /**
414
+ * The video input specification.
415
+ */
416
+ video_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.VideoURL;
417
+ }
418
+ namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
419
+ /**
420
+ * The video input specification.
421
+ */
422
+ interface VideoURL {
423
+ /**
424
+ * The video URL. Can be either a URL or a Data URI.
425
+ */
426
+ url: string;
427
+ }
428
+ }
429
+ }
181
430
  export type VectorStoreFileStatus = 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
182
431
  /**
183
- * Represents a file stored in a vector store.
432
+ * Represents a file stored in a store.
184
433
  */
185
434
  export interface VectorStoreFile {
186
435
  /**
@@ -198,17 +447,17 @@ export interface VectorStoreFile {
198
447
  /**
199
448
  * Processing status of the file
200
449
  */
201
- status?: VectorStoreFileStatus;
450
+ status?: 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
202
451
  /**
203
452
  * Last error message if processing failed
204
453
  */
205
454
  last_error?: unknown;
206
455
  /**
207
- * ID of the containing vector store
456
+ * ID of the containing store
208
457
  */
209
458
  vector_store_id: string;
210
459
  /**
211
- * Timestamp of vector store file creation
460
+ * Timestamp of store file creation
212
461
  */
213
462
  created_at: string;
214
463
  /**
@@ -241,7 +490,9 @@ export declare namespace VectorStoreFile {
241
490
  /**
242
491
  * metadata of the chunk
243
492
  */
244
- generated_metadata?: TextInputChunk.MarkdownChunkGeneratedMetadata | TextInputChunk.TextChunkGeneratedMetadata | TextInputChunk.PdfChunkGeneratedMetadata | TextInputChunk.CodeChunkGeneratedMetadata | TextInputChunk.AudioChunkGeneratedMetadata | null;
493
+ generated_metadata?: {
494
+ [key: string]: unknown;
495
+ } | null;
245
496
  /**
246
497
  * model used for this chunk
247
498
  */
@@ -259,61 +510,6 @@ export declare namespace VectorStoreFile {
259
510
  */
260
511
  text: string;
261
512
  }
262
- namespace TextInputChunk {
263
- interface MarkdownChunkGeneratedMetadata {
264
- type?: 'markdown';
265
- file_type?: 'text/markdown';
266
- language: string;
267
- word_count: number;
268
- file_size: number;
269
- chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
270
- heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
271
- [k: string]: unknown;
272
- }
273
- namespace MarkdownChunkGeneratedMetadata {
274
- interface ChunkHeading {
275
- level: number;
276
- text: string;
277
- }
278
- interface HeadingContext {
279
- level: number;
280
- text: string;
281
- }
282
- }
283
- interface TextChunkGeneratedMetadata {
284
- type?: 'text';
285
- file_type?: 'text/plain';
286
- language: string;
287
- word_count: number;
288
- file_size: number;
289
- [k: string]: unknown;
290
- }
291
- interface PdfChunkGeneratedMetadata {
292
- type?: 'pdf';
293
- file_type?: 'application/pdf';
294
- total_pages: number;
295
- total_size: number;
296
- [k: string]: unknown;
297
- }
298
- interface CodeChunkGeneratedMetadata {
299
- type?: 'code';
300
- file_type: string;
301
- language: string;
302
- word_count: number;
303
- file_size: number;
304
- [k: string]: unknown;
305
- }
306
- interface AudioChunkGeneratedMetadata {
307
- type?: 'audio';
308
- file_type: string;
309
- file_size: number;
310
- total_duration_seconds: number;
311
- sample_rate: number;
312
- channels: number;
313
- audio_format: number;
314
- [k: string]: unknown;
315
- }
316
- }
317
513
  interface ImageURLInputChunk {
318
514
  /**
319
515
  * position of the chunk in a file
@@ -326,7 +522,9 @@ export declare namespace VectorStoreFile {
326
522
  /**
327
523
  * metadata of the chunk
328
524
  */
329
- generated_metadata?: ImageURLInputChunk.MarkdownChunkGeneratedMetadata | ImageURLInputChunk.TextChunkGeneratedMetadata | ImageURLInputChunk.PdfChunkGeneratedMetadata | ImageURLInputChunk.CodeChunkGeneratedMetadata | ImageURLInputChunk.AudioChunkGeneratedMetadata | null;
525
+ generated_metadata?: {
526
+ [key: string]: unknown;
527
+ } | null;
330
528
  /**
331
529
  * model used for this chunk
332
530
  */
@@ -349,59 +547,6 @@ export declare namespace VectorStoreFile {
349
547
  image_url: ImageURLInputChunk.ImageURL;
350
548
  }
351
549
  namespace ImageURLInputChunk {
352
- interface MarkdownChunkGeneratedMetadata {
353
- type?: 'markdown';
354
- file_type?: 'text/markdown';
355
- language: string;
356
- word_count: number;
357
- file_size: number;
358
- chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
359
- heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
360
- [k: string]: unknown;
361
- }
362
- namespace MarkdownChunkGeneratedMetadata {
363
- interface ChunkHeading {
364
- level: number;
365
- text: string;
366
- }
367
- interface HeadingContext {
368
- level: number;
369
- text: string;
370
- }
371
- }
372
- interface TextChunkGeneratedMetadata {
373
- type?: 'text';
374
- file_type?: 'text/plain';
375
- language: string;
376
- word_count: number;
377
- file_size: number;
378
- [k: string]: unknown;
379
- }
380
- interface PdfChunkGeneratedMetadata {
381
- type?: 'pdf';
382
- file_type?: 'application/pdf';
383
- total_pages: number;
384
- total_size: number;
385
- [k: string]: unknown;
386
- }
387
- interface CodeChunkGeneratedMetadata {
388
- type?: 'code';
389
- file_type: string;
390
- language: string;
391
- word_count: number;
392
- file_size: number;
393
- [k: string]: unknown;
394
- }
395
- interface AudioChunkGeneratedMetadata {
396
- type?: 'audio';
397
- file_type: string;
398
- file_size: number;
399
- total_duration_seconds: number;
400
- sample_rate: number;
401
- channels: number;
402
- audio_format: number;
403
- [k: string]: unknown;
404
- }
405
550
  /**
406
551
  * The image input specification.
407
552
  */
@@ -428,7 +573,9 @@ export declare namespace VectorStoreFile {
428
573
  /**
429
574
  * metadata of the chunk
430
575
  */
431
- generated_metadata?: AudioURLInputChunk.MarkdownChunkGeneratedMetadata | AudioURLInputChunk.TextChunkGeneratedMetadata | AudioURLInputChunk.PdfChunkGeneratedMetadata | AudioURLInputChunk.CodeChunkGeneratedMetadata | AudioURLInputChunk.AudioChunkGeneratedMetadata | null;
576
+ generated_metadata?: {
577
+ [key: string]: unknown;
578
+ } | null;
432
579
  /**
433
580
  * model used for this chunk
434
581
  */
@@ -455,59 +602,6 @@ export declare namespace VectorStoreFile {
455
602
  sampling_rate: number;
456
603
  }
457
604
  namespace AudioURLInputChunk {
458
- interface MarkdownChunkGeneratedMetadata {
459
- type?: 'markdown';
460
- file_type?: 'text/markdown';
461
- language: string;
462
- word_count: number;
463
- file_size: number;
464
- chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
465
- heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
466
- [k: string]: unknown;
467
- }
468
- namespace MarkdownChunkGeneratedMetadata {
469
- interface ChunkHeading {
470
- level: number;
471
- text: string;
472
- }
473
- interface HeadingContext {
474
- level: number;
475
- text: string;
476
- }
477
- }
478
- interface TextChunkGeneratedMetadata {
479
- type?: 'text';
480
- file_type?: 'text/plain';
481
- language: string;
482
- word_count: number;
483
- file_size: number;
484
- [k: string]: unknown;
485
- }
486
- interface PdfChunkGeneratedMetadata {
487
- type?: 'pdf';
488
- file_type?: 'application/pdf';
489
- total_pages: number;
490
- total_size: number;
491
- [k: string]: unknown;
492
- }
493
- interface CodeChunkGeneratedMetadata {
494
- type?: 'code';
495
- file_type: string;
496
- language: string;
497
- word_count: number;
498
- file_size: number;
499
- [k: string]: unknown;
500
- }
501
- interface AudioChunkGeneratedMetadata {
502
- type?: 'audio';
503
- file_type: string;
504
- file_size: number;
505
- total_duration_seconds: number;
506
- sample_rate: number;
507
- channels: number;
508
- audio_format: number;
509
- [k: string]: unknown;
510
- }
511
605
  /**
512
606
  * The audio input specification.
513
607
  */
@@ -530,7 +624,9 @@ export declare namespace VectorStoreFile {
530
624
  /**
531
625
  * metadata of the chunk
532
626
  */
533
- generated_metadata?: VideoURLInputChunk.MarkdownChunkGeneratedMetadata | VideoURLInputChunk.TextChunkGeneratedMetadata | VideoURLInputChunk.PdfChunkGeneratedMetadata | VideoURLInputChunk.CodeChunkGeneratedMetadata | VideoURLInputChunk.AudioChunkGeneratedMetadata | null;
627
+ generated_metadata?: {
628
+ [key: string]: unknown;
629
+ } | null;
534
630
  /**
535
631
  * model used for this chunk
536
632
  */
@@ -553,59 +649,6 @@ export declare namespace VectorStoreFile {
553
649
  video_url: VideoURLInputChunk.VideoURL;
554
650
  }
555
651
  namespace VideoURLInputChunk {
556
- interface MarkdownChunkGeneratedMetadata {
557
- type?: 'markdown';
558
- file_type?: 'text/markdown';
559
- language: string;
560
- word_count: number;
561
- file_size: number;
562
- chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
563
- heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
564
- [k: string]: unknown;
565
- }
566
- namespace MarkdownChunkGeneratedMetadata {
567
- interface ChunkHeading {
568
- level: number;
569
- text: string;
570
- }
571
- interface HeadingContext {
572
- level: number;
573
- text: string;
574
- }
575
- }
576
- interface TextChunkGeneratedMetadata {
577
- type?: 'text';
578
- file_type?: 'text/plain';
579
- language: string;
580
- word_count: number;
581
- file_size: number;
582
- [k: string]: unknown;
583
- }
584
- interface PdfChunkGeneratedMetadata {
585
- type?: 'pdf';
586
- file_type?: 'application/pdf';
587
- total_pages: number;
588
- total_size: number;
589
- [k: string]: unknown;
590
- }
591
- interface CodeChunkGeneratedMetadata {
592
- type?: 'code';
593
- file_type: string;
594
- language: string;
595
- word_count: number;
596
- file_size: number;
597
- [k: string]: unknown;
598
- }
599
- interface AudioChunkGeneratedMetadata {
600
- type?: 'audio';
601
- file_type: string;
602
- file_size: number;
603
- total_duration_seconds: number;
604
- sample_rate: number;
605
- channels: number;
606
- audio_format: number;
607
- [k: string]: unknown;
608
- }
609
652
  /**
610
653
  * The video input specification.
611
654
  */
@@ -617,6 +660,9 @@ export declare namespace VectorStoreFile {
617
660
  }
618
661
  }
619
662
  }
663
+ /**
664
+ * List response wrapper for vector store files.
665
+ */
620
666
  export interface FileListResponse {
621
667
  /**
622
668
  * Response model for cursor-based pagination.
@@ -676,6 +722,9 @@ export interface FileDeleteResponse {
676
722
  */
677
723
  object?: 'vector_store.file';
678
724
  }
725
+ /**
726
+ * Search response wrapper for vector store files.
727
+ */
679
728
  export interface FileSearchResponse {
680
729
  /**
681
730
  * The object type of the response
@@ -747,7 +796,7 @@ export interface FileListParams {
747
796
  /**
748
797
  * Status to filter by
749
798
  */
750
- statuses?: Array<VectorStoreFileStatus> | null;
799
+ statuses?: Array<'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed'> | null;
751
800
  /**
752
801
  * Metadata filter to apply to the query
753
802
  */