@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
@@ -3,7 +3,6 @@
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as FilesAPI from './files';
5
5
  import * as Shared from '../shared';
6
- import * as VectorStoresAPI from './vector-stores';
7
6
  import { APIPromise } from '../../core/api-promise';
8
7
  import { RequestOptions } from '../../internal/request-options';
9
8
  import * as polling from '../../lib/polling';
@@ -12,12 +11,9 @@ import { path } from '../../internal/utils/path';
12
11
 
13
12
  export class Files extends APIResource {
14
13
  /**
15
- * Add an already uploaded file to a vector store.
14
+ * DEPRECATED: Use POST /stores/{store_identifier}/files instead
16
15
  *
17
- * Args: vector_store_identifier: The ID or name of the vector store to add the
18
- * file to file: The file to add and index
19
- *
20
- * Returns: VectorStoreFile: Details of the added and indexed file
16
+ * @deprecated
21
17
  */
22
18
  create(
23
19
  vectorStoreIdentifier: string,
@@ -28,12 +24,9 @@ export class Files extends APIResource {
28
24
  }
29
25
 
30
26
  /**
31
- * Get details of a specific file in a vector store.
32
- *
33
- * Args: vector_store_identifier: The ID or name of the vector store file_id: The
34
- * ID of the file
27
+ * DEPRECATED: Use GET /stores/{store_identifier}/files/{file_id} instead
35
28
  *
36
- * Returns: VectorStoreFile: Details of the vector store file
29
+ * @deprecated
37
30
  */
38
31
  retrieve(
39
32
  fileID: string,
@@ -48,12 +41,9 @@ export class Files extends APIResource {
48
41
  }
49
42
 
50
43
  /**
51
- * List files indexed in a vector store with pagination and metadata filter.
44
+ * DEPRECATED: Use POST /stores/{store_identifier}/files/list instead
52
45
  *
53
- * Args: vector_store_identifier: The ID or name of the vector store pagination:
54
- * Pagination parameters and metadata filter
55
- *
56
- * Returns: VectorStoreFileListResponse: Paginated list of vector store files
46
+ * @deprecated
57
47
  */
58
48
  list(
59
49
  vectorStoreIdentifier: string,
@@ -67,12 +57,9 @@ export class Files extends APIResource {
67
57
  }
68
58
 
69
59
  /**
70
- * Delete a file from a vector store.
71
- *
72
- * Args: vector_store_identifier: The ID or name of the vector store file_id: The
73
- * ID of the file to delete
60
+ * DEPRECATED: Use DELETE /stores/{store_identifier}/files/{file_id} instead
74
61
  *
75
- * Returns: VectorStoreFileDeleted: The deleted file
62
+ * @deprecated
76
63
  */
77
64
  delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<FileDeleteResponse> {
78
65
  const { vector_store_identifier } = params;
@@ -80,22 +67,9 @@ export class Files extends APIResource {
80
67
  }
81
68
 
82
69
  /**
83
- * Perform semantic search across complete vector store files.
84
- *
85
- * This endpoint searches through vector store files using semantic similarity
86
- * matching. Unlike chunk search, it returns complete matching files rather than
87
- * individual chunks. Supports complex search queries with filters and returns
88
- * relevance-scored results.
89
- *
90
- * Args: search_params: Search configuration including: - query text or
91
- * embeddings - metadata filters - pagination parameters - sorting preferences
92
- * \_state: API state dependency \_ctx: Service context dependency
93
- *
94
- * Returns: VectorStoreSearchFileResponse containing: - List of matched files with
95
- * relevance scores - Pagination details including total result count
70
+ * DEPRECATED: Use POST /stores/{store_identifier}/files/search instead
96
71
  *
97
- * Raises: HTTPException (400): If search parameters are invalid HTTPException
98
- * (404): If no vector stores are found to search
72
+ * @deprecated
99
73
  */
100
74
  search(body: FileSearchParams, options?: RequestOptions): APIPromise<FileSearchResponse> {
101
75
  return this._client.post('/v1/vector_stores/files/search', { body, ...options });
@@ -225,7 +199,7 @@ export interface RerankConfig {
225
199
  }
226
200
 
227
201
  /**
228
- * Represents a scored file stored in a vector store.
202
+ * Represents a scored store file.
229
203
  */
230
204
  export interface ScoredVectorStoreFile {
231
205
  /**
@@ -246,7 +220,7 @@ export interface ScoredVectorStoreFile {
246
220
  /**
247
221
  * Processing status of the file
248
222
  */
249
- status?: VectorStoreFileStatus;
223
+ status?: 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
250
224
 
251
225
  /**
252
226
  * Last error message if processing failed
@@ -254,12 +228,12 @@ export interface ScoredVectorStoreFile {
254
228
  last_error?: unknown;
255
229
 
256
230
  /**
257
- * ID of the containing vector store
231
+ * ID of the containing store
258
232
  */
259
233
  vector_store_id: string;
260
234
 
261
235
  /**
262
- * Timestamp of vector store file creation
236
+ * Timestamp of store file creation
263
237
  */
264
238
  created_at: string;
265
239
 
@@ -282,10 +256,10 @@ export interface ScoredVectorStoreFile {
282
256
  * Array of scored file chunks
283
257
  */
284
258
  chunks: Array<
285
- | VectorStoresAPI.ScoredTextInputChunk
286
- | VectorStoresAPI.ScoredImageURLInputChunk
287
- | VectorStoresAPI.ScoredAudioURLInputChunk
288
- | VectorStoresAPI.ScoredVideoURLInputChunk
259
+ | ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk
260
+ | ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk
261
+ | ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk
262
+ | ScoredVectorStoreFile.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk
289
263
  > | null;
290
264
 
291
265
  /**
@@ -294,10 +268,333 @@ export interface ScoredVectorStoreFile {
294
268
  score: number;
295
269
  }
296
270
 
271
+ export namespace ScoredVectorStoreFile {
272
+ /**
273
+ * Scored text chunk for deprecated API.
274
+ */
275
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
276
+ /**
277
+ * position of the chunk in a file
278
+ */
279
+ chunk_index: number;
280
+
281
+ /**
282
+ * mime type of the chunk
283
+ */
284
+ mime_type?: string;
285
+
286
+ /**
287
+ * metadata of the chunk
288
+ */
289
+ generated_metadata?: { [key: string]: unknown } | null;
290
+
291
+ /**
292
+ * model used for this chunk
293
+ */
294
+ model?: string | null;
295
+
296
+ /**
297
+ * score of the chunk
298
+ */
299
+ score: number;
300
+
301
+ /**
302
+ * file id
303
+ */
304
+ file_id: string;
305
+
306
+ /**
307
+ * filename
308
+ */
309
+ filename: string;
310
+
311
+ /**
312
+ * store id
313
+ */
314
+ vector_store_id: string;
315
+
316
+ /**
317
+ * file metadata
318
+ */
319
+ metadata?: unknown;
320
+
321
+ /**
322
+ * Input type identifier
323
+ */
324
+ type?: 'text';
325
+
326
+ /**
327
+ * The offset of the text in the file relative to the start of the file.
328
+ */
329
+ offset?: number;
330
+
331
+ /**
332
+ * Text content to process
333
+ */
334
+ text: string;
335
+ }
336
+
337
+ /**
338
+ * Scored image chunk for deprecated API.
339
+ */
340
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
341
+ /**
342
+ * position of the chunk in a file
343
+ */
344
+ chunk_index: number;
345
+
346
+ /**
347
+ * mime type of the chunk
348
+ */
349
+ mime_type?: string;
350
+
351
+ /**
352
+ * metadata of the chunk
353
+ */
354
+ generated_metadata?: { [key: string]: unknown } | null;
355
+
356
+ /**
357
+ * model used for this chunk
358
+ */
359
+ model?: string | null;
360
+
361
+ /**
362
+ * score of the chunk
363
+ */
364
+ score: number;
365
+
366
+ /**
367
+ * file id
368
+ */
369
+ file_id: string;
370
+
371
+ /**
372
+ * filename
373
+ */
374
+ filename: string;
375
+
376
+ /**
377
+ * store id
378
+ */
379
+ vector_store_id: string;
380
+
381
+ /**
382
+ * file metadata
383
+ */
384
+ metadata?: unknown;
385
+
386
+ /**
387
+ * Input type identifier
388
+ */
389
+ type?: 'image_url';
390
+
391
+ /**
392
+ * ocr text of the image
393
+ */
394
+ ocr_text?: string | null;
395
+
396
+ /**
397
+ * summary of the image
398
+ */
399
+ summary?: string | null;
400
+
401
+ /**
402
+ * The image input specification.
403
+ */
404
+ image_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.ImageURL;
405
+ }
406
+
407
+ export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
408
+ /**
409
+ * The image input specification.
410
+ */
411
+ export interface ImageURL {
412
+ /**
413
+ * The image URL. Can be either a URL or a Data URI.
414
+ */
415
+ url: string;
416
+
417
+ /**
418
+ * The image format/mimetype
419
+ */
420
+ format?: string;
421
+ }
422
+ }
423
+
424
+ /**
425
+ * Scored audio chunk for deprecated API.
426
+ */
427
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
428
+ /**
429
+ * position of the chunk in a file
430
+ */
431
+ chunk_index: number;
432
+
433
+ /**
434
+ * mime type of the chunk
435
+ */
436
+ mime_type?: string;
437
+
438
+ /**
439
+ * metadata of the chunk
440
+ */
441
+ generated_metadata?: { [key: string]: unknown } | null;
442
+
443
+ /**
444
+ * model used for this chunk
445
+ */
446
+ model?: string | null;
447
+
448
+ /**
449
+ * score of the chunk
450
+ */
451
+ score: number;
452
+
453
+ /**
454
+ * file id
455
+ */
456
+ file_id: string;
457
+
458
+ /**
459
+ * filename
460
+ */
461
+ filename: string;
462
+
463
+ /**
464
+ * store id
465
+ */
466
+ vector_store_id: string;
467
+
468
+ /**
469
+ * file metadata
470
+ */
471
+ metadata?: unknown;
472
+
473
+ /**
474
+ * Input type identifier
475
+ */
476
+ type?: 'audio_url';
477
+
478
+ /**
479
+ * speech recognition (sr) text of the audio
480
+ */
481
+ transcription?: string | null;
482
+
483
+ /**
484
+ * summary of the audio
485
+ */
486
+ summary?: string | null;
487
+
488
+ /**
489
+ * The audio input specification.
490
+ */
491
+ audio_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioURL;
492
+
493
+ /**
494
+ * The sampling rate of the audio.
495
+ */
496
+ sampling_rate: number;
497
+ }
498
+
499
+ export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
500
+ /**
501
+ * The audio input specification.
502
+ */
503
+ export interface AudioURL {
504
+ /**
505
+ * The audio URL. Can be either a URL or a Data URI.
506
+ */
507
+ url: string;
508
+ }
509
+ }
510
+
511
+ /**
512
+ * Scored video chunk for deprecated API.
513
+ */
514
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
515
+ /**
516
+ * position of the chunk in a file
517
+ */
518
+ chunk_index: number;
519
+
520
+ /**
521
+ * mime type of the chunk
522
+ */
523
+ mime_type?: string;
524
+
525
+ /**
526
+ * metadata of the chunk
527
+ */
528
+ generated_metadata?: { [key: string]: unknown } | null;
529
+
530
+ /**
531
+ * model used for this chunk
532
+ */
533
+ model?: string | null;
534
+
535
+ /**
536
+ * score of the chunk
537
+ */
538
+ score: number;
539
+
540
+ /**
541
+ * file id
542
+ */
543
+ file_id: string;
544
+
545
+ /**
546
+ * filename
547
+ */
548
+ filename: string;
549
+
550
+ /**
551
+ * store id
552
+ */
553
+ vector_store_id: string;
554
+
555
+ /**
556
+ * file metadata
557
+ */
558
+ metadata?: unknown;
559
+
560
+ /**
561
+ * Input type identifier
562
+ */
563
+ type?: 'video_url';
564
+
565
+ /**
566
+ * speech recognition (sr) text of the video
567
+ */
568
+ transcription?: string | null;
569
+
570
+ /**
571
+ * summary of the video
572
+ */
573
+ summary?: string | null;
574
+
575
+ /**
576
+ * The video input specification.
577
+ */
578
+ video_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.VideoURL;
579
+ }
580
+
581
+ export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
582
+ /**
583
+ * The video input specification.
584
+ */
585
+ export interface VideoURL {
586
+ /**
587
+ * The video URL. Can be either a URL or a Data URI.
588
+ */
589
+ url: string;
590
+ }
591
+ }
592
+ }
593
+
297
594
  export type VectorStoreFileStatus = 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
298
595
 
299
596
  /**
300
- * Represents a file stored in a vector store.
597
+ * Represents a file stored in a store.
301
598
  */
302
599
  export interface VectorStoreFile {
303
600
  /**
@@ -318,7 +615,7 @@ export interface VectorStoreFile {
318
615
  /**
319
616
  * Processing status of the file
320
617
  */
321
- status?: VectorStoreFileStatus;
618
+ status?: 'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed';
322
619
 
323
620
  /**
324
621
  * Last error message if processing failed
@@ -326,12 +623,12 @@ export interface VectorStoreFile {
326
623
  last_error?: unknown;
327
624
 
328
625
  /**
329
- * ID of the containing vector store
626
+ * ID of the containing store
330
627
  */
331
628
  vector_store_id: string;
332
629
 
333
630
  /**
334
- * Timestamp of vector store file creation
631
+ * Timestamp of store file creation
335
632
  */
336
633
  created_at: string;
337
634
 
@@ -376,13 +673,7 @@ export namespace VectorStoreFile {
376
673
  /**
377
674
  * metadata of the chunk
378
675
  */
379
- generated_metadata?:
380
- | TextInputChunk.MarkdownChunkGeneratedMetadata
381
- | TextInputChunk.TextChunkGeneratedMetadata
382
- | TextInputChunk.PdfChunkGeneratedMetadata
383
- | TextInputChunk.CodeChunkGeneratedMetadata
384
- | TextInputChunk.AudioChunkGeneratedMetadata
385
- | null;
676
+ generated_metadata?: { [key: string]: unknown } | null;
386
677
 
387
678
  /**
388
679
  * model used for this chunk
@@ -405,98 +696,6 @@ export namespace VectorStoreFile {
405
696
  text: string;
406
697
  }
407
698
 
408
- export namespace TextInputChunk {
409
- export interface MarkdownChunkGeneratedMetadata {
410
- type?: 'markdown';
411
-
412
- file_type?: 'text/markdown';
413
-
414
- language: string;
415
-
416
- word_count: number;
417
-
418
- file_size: number;
419
-
420
- chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
421
-
422
- heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
423
-
424
- [k: string]: unknown;
425
- }
426
-
427
- export namespace MarkdownChunkGeneratedMetadata {
428
- export interface ChunkHeading {
429
- level: number;
430
-
431
- text: string;
432
- }
433
-
434
- export interface HeadingContext {
435
- level: number;
436
-
437
- text: string;
438
- }
439
- }
440
-
441
- export interface TextChunkGeneratedMetadata {
442
- type?: 'text';
443
-
444
- file_type?: 'text/plain';
445
-
446
- language: string;
447
-
448
- word_count: number;
449
-
450
- file_size: number;
451
-
452
- [k: string]: unknown;
453
- }
454
-
455
- export interface PdfChunkGeneratedMetadata {
456
- type?: 'pdf';
457
-
458
- file_type?: 'application/pdf';
459
-
460
- total_pages: number;
461
-
462
- total_size: number;
463
-
464
- [k: string]: unknown;
465
- }
466
-
467
- export interface CodeChunkGeneratedMetadata {
468
- type?: 'code';
469
-
470
- file_type: string;
471
-
472
- language: string;
473
-
474
- word_count: number;
475
-
476
- file_size: number;
477
-
478
- [k: string]: unknown;
479
- }
480
-
481
- export interface AudioChunkGeneratedMetadata {
482
- type?: 'audio';
483
-
484
- file_type: string;
485
-
486
- file_size: number;
487
-
488
- total_duration_seconds: number;
489
-
490
- sample_rate: number;
491
-
492
- channels: number;
493
-
494
- audio_format: number;
495
-
496
- [k: string]: unknown;
497
- }
498
- }
499
-
500
699
  export interface ImageURLInputChunk {
501
700
  /**
502
701
  * position of the chunk in a file
@@ -511,13 +710,7 @@ export namespace VectorStoreFile {
511
710
  /**
512
711
  * metadata of the chunk
513
712
  */
514
- generated_metadata?:
515
- | ImageURLInputChunk.MarkdownChunkGeneratedMetadata
516
- | ImageURLInputChunk.TextChunkGeneratedMetadata
517
- | ImageURLInputChunk.PdfChunkGeneratedMetadata
518
- | ImageURLInputChunk.CodeChunkGeneratedMetadata
519
- | ImageURLInputChunk.AudioChunkGeneratedMetadata
520
- | null;
713
+ generated_metadata?: { [key: string]: unknown } | null;
521
714
 
522
715
  /**
523
716
  * model used for this chunk
@@ -546,96 +739,6 @@ export namespace VectorStoreFile {
546
739
  }
547
740
 
548
741
  export namespace ImageURLInputChunk {
549
- export interface MarkdownChunkGeneratedMetadata {
550
- type?: 'markdown';
551
-
552
- file_type?: 'text/markdown';
553
-
554
- language: string;
555
-
556
- word_count: number;
557
-
558
- file_size: number;
559
-
560
- chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
561
-
562
- heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
563
-
564
- [k: string]: unknown;
565
- }
566
-
567
- export namespace MarkdownChunkGeneratedMetadata {
568
- export interface ChunkHeading {
569
- level: number;
570
-
571
- text: string;
572
- }
573
-
574
- export interface HeadingContext {
575
- level: number;
576
-
577
- text: string;
578
- }
579
- }
580
-
581
- export interface TextChunkGeneratedMetadata {
582
- type?: 'text';
583
-
584
- file_type?: 'text/plain';
585
-
586
- language: string;
587
-
588
- word_count: number;
589
-
590
- file_size: number;
591
-
592
- [k: string]: unknown;
593
- }
594
-
595
- export interface PdfChunkGeneratedMetadata {
596
- type?: 'pdf';
597
-
598
- file_type?: 'application/pdf';
599
-
600
- total_pages: number;
601
-
602
- total_size: number;
603
-
604
- [k: string]: unknown;
605
- }
606
-
607
- export interface CodeChunkGeneratedMetadata {
608
- type?: 'code';
609
-
610
- file_type: string;
611
-
612
- language: string;
613
-
614
- word_count: number;
615
-
616
- file_size: number;
617
-
618
- [k: string]: unknown;
619
- }
620
-
621
- export interface AudioChunkGeneratedMetadata {
622
- type?: 'audio';
623
-
624
- file_type: string;
625
-
626
- file_size: number;
627
-
628
- total_duration_seconds: number;
629
-
630
- sample_rate: number;
631
-
632
- channels: number;
633
-
634
- audio_format: number;
635
-
636
- [k: string]: unknown;
637
- }
638
-
639
742
  /**
640
743
  * The image input specification.
641
744
  */
@@ -666,13 +769,7 @@ export namespace VectorStoreFile {
666
769
  /**
667
770
  * metadata of the chunk
668
771
  */
669
- generated_metadata?:
670
- | AudioURLInputChunk.MarkdownChunkGeneratedMetadata
671
- | AudioURLInputChunk.TextChunkGeneratedMetadata
672
- | AudioURLInputChunk.PdfChunkGeneratedMetadata
673
- | AudioURLInputChunk.CodeChunkGeneratedMetadata
674
- | AudioURLInputChunk.AudioChunkGeneratedMetadata
675
- | null;
772
+ generated_metadata?: { [key: string]: unknown } | null;
676
773
 
677
774
  /**
678
775
  * model used for this chunk
@@ -706,96 +803,6 @@ export namespace VectorStoreFile {
706
803
  }
707
804
 
708
805
  export namespace AudioURLInputChunk {
709
- export interface MarkdownChunkGeneratedMetadata {
710
- type?: 'markdown';
711
-
712
- file_type?: 'text/markdown';
713
-
714
- language: string;
715
-
716
- word_count: number;
717
-
718
- file_size: number;
719
-
720
- chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
721
-
722
- heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
723
-
724
- [k: string]: unknown;
725
- }
726
-
727
- export namespace MarkdownChunkGeneratedMetadata {
728
- export interface ChunkHeading {
729
- level: number;
730
-
731
- text: string;
732
- }
733
-
734
- export interface HeadingContext {
735
- level: number;
736
-
737
- text: string;
738
- }
739
- }
740
-
741
- export interface TextChunkGeneratedMetadata {
742
- type?: 'text';
743
-
744
- file_type?: 'text/plain';
745
-
746
- language: string;
747
-
748
- word_count: number;
749
-
750
- file_size: number;
751
-
752
- [k: string]: unknown;
753
- }
754
-
755
- export interface PdfChunkGeneratedMetadata {
756
- type?: 'pdf';
757
-
758
- file_type?: 'application/pdf';
759
-
760
- total_pages: number;
761
-
762
- total_size: number;
763
-
764
- [k: string]: unknown;
765
- }
766
-
767
- export interface CodeChunkGeneratedMetadata {
768
- type?: 'code';
769
-
770
- file_type: string;
771
-
772
- language: string;
773
-
774
- word_count: number;
775
-
776
- file_size: number;
777
-
778
- [k: string]: unknown;
779
- }
780
-
781
- export interface AudioChunkGeneratedMetadata {
782
- type?: 'audio';
783
-
784
- file_type: string;
785
-
786
- file_size: number;
787
-
788
- total_duration_seconds: number;
789
-
790
- sample_rate: number;
791
-
792
- channels: number;
793
-
794
- audio_format: number;
795
-
796
- [k: string]: unknown;
797
- }
798
-
799
806
  /**
800
807
  * The audio input specification.
801
808
  */
@@ -821,13 +828,7 @@ export namespace VectorStoreFile {
821
828
  /**
822
829
  * metadata of the chunk
823
830
  */
824
- generated_metadata?:
825
- | VideoURLInputChunk.MarkdownChunkGeneratedMetadata
826
- | VideoURLInputChunk.TextChunkGeneratedMetadata
827
- | VideoURLInputChunk.PdfChunkGeneratedMetadata
828
- | VideoURLInputChunk.CodeChunkGeneratedMetadata
829
- | VideoURLInputChunk.AudioChunkGeneratedMetadata
830
- | null;
831
+ generated_metadata?: { [key: string]: unknown } | null;
831
832
 
832
833
  /**
833
834
  * model used for this chunk
@@ -856,96 +857,6 @@ export namespace VectorStoreFile {
856
857
  }
857
858
 
858
859
  export namespace VideoURLInputChunk {
859
- export interface MarkdownChunkGeneratedMetadata {
860
- type?: 'markdown';
861
-
862
- file_type?: 'text/markdown';
863
-
864
- language: string;
865
-
866
- word_count: number;
867
-
868
- file_size: number;
869
-
870
- chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
871
-
872
- heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
873
-
874
- [k: string]: unknown;
875
- }
876
-
877
- export namespace MarkdownChunkGeneratedMetadata {
878
- export interface ChunkHeading {
879
- level: number;
880
-
881
- text: string;
882
- }
883
-
884
- export interface HeadingContext {
885
- level: number;
886
-
887
- text: string;
888
- }
889
- }
890
-
891
- export interface TextChunkGeneratedMetadata {
892
- type?: 'text';
893
-
894
- file_type?: 'text/plain';
895
-
896
- language: string;
897
-
898
- word_count: number;
899
-
900
- file_size: number;
901
-
902
- [k: string]: unknown;
903
- }
904
-
905
- export interface PdfChunkGeneratedMetadata {
906
- type?: 'pdf';
907
-
908
- file_type?: 'application/pdf';
909
-
910
- total_pages: number;
911
-
912
- total_size: number;
913
-
914
- [k: string]: unknown;
915
- }
916
-
917
- export interface CodeChunkGeneratedMetadata {
918
- type?: 'code';
919
-
920
- file_type: string;
921
-
922
- language: string;
923
-
924
- word_count: number;
925
-
926
- file_size: number;
927
-
928
- [k: string]: unknown;
929
- }
930
-
931
- export interface AudioChunkGeneratedMetadata {
932
- type?: 'audio';
933
-
934
- file_type: string;
935
-
936
- file_size: number;
937
-
938
- total_duration_seconds: number;
939
-
940
- sample_rate: number;
941
-
942
- channels: number;
943
-
944
- audio_format: number;
945
-
946
- [k: string]: unknown;
947
- }
948
-
949
860
  /**
950
861
  * The video input specification.
951
862
  */
@@ -958,6 +869,9 @@ export namespace VectorStoreFile {
958
869
  }
959
870
  }
960
871
 
872
+ /**
873
+ * List response wrapper for vector store files.
874
+ */
961
875
  export interface FileListResponse {
962
876
  /**
963
877
  * Response model for cursor-based pagination.
@@ -1027,6 +941,9 @@ export interface FileDeleteResponse {
1027
941
  object?: 'vector_store.file';
1028
942
  }
1029
943
 
944
+ /**
945
+ * Search response wrapper for vector store files.
946
+ */
1030
947
  export interface FileSearchResponse {
1031
948
  /**
1032
949
  * The object type of the response
@@ -1111,7 +1028,7 @@ export interface FileListParams {
1111
1028
  /**
1112
1029
  * Status to filter by
1113
1030
  */
1114
- statuses?: Array<VectorStoreFileStatus> | null;
1031
+ statuses?: Array<'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed'> | null;
1115
1032
 
1116
1033
  /**
1117
1034
  * Metadata filter to apply to the query