@mixedbread/sdk 0.32.0 → 0.33.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.
@@ -131,7 +131,13 @@ export interface ScoredAudioURLInputChunk {
131
131
  /**
132
132
  * metadata of the chunk
133
133
  */
134
- generated_metadata?: { [key: string]: unknown } | null;
134
+ generated_metadata?:
135
+ | ScoredAudioURLInputChunk.MarkdownChunkGeneratedMetadata
136
+ | ScoredAudioURLInputChunk.TextChunkGeneratedMetadata
137
+ | ScoredAudioURLInputChunk.PdfChunkGeneratedMetadata
138
+ | ScoredAudioURLInputChunk.CodeChunkGeneratedMetadata
139
+ | ScoredAudioURLInputChunk.AudioChunkGeneratedMetadata
140
+ | null;
135
141
 
136
142
  /**
137
143
  * model used for this chunk
@@ -190,6 +196,96 @@ export interface ScoredAudioURLInputChunk {
190
196
  }
191
197
 
192
198
  export namespace ScoredAudioURLInputChunk {
199
+ export interface MarkdownChunkGeneratedMetadata {
200
+ type?: 'markdown';
201
+
202
+ file_type?: 'text/markdown';
203
+
204
+ language: string;
205
+
206
+ word_count: number;
207
+
208
+ file_size: number;
209
+
210
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
211
+
212
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
213
+
214
+ [k: string]: unknown;
215
+ }
216
+
217
+ export namespace MarkdownChunkGeneratedMetadata {
218
+ export interface ChunkHeading {
219
+ level: number;
220
+
221
+ text: string;
222
+ }
223
+
224
+ export interface HeadingContext {
225
+ level: number;
226
+
227
+ text: string;
228
+ }
229
+ }
230
+
231
+ export interface TextChunkGeneratedMetadata {
232
+ type?: 'text';
233
+
234
+ file_type?: 'text/plain';
235
+
236
+ language: string;
237
+
238
+ word_count: number;
239
+
240
+ file_size: number;
241
+
242
+ [k: string]: unknown;
243
+ }
244
+
245
+ export interface PdfChunkGeneratedMetadata {
246
+ type?: 'pdf';
247
+
248
+ file_type?: 'application/pdf';
249
+
250
+ total_pages: number;
251
+
252
+ total_size: number;
253
+
254
+ [k: string]: unknown;
255
+ }
256
+
257
+ export interface CodeChunkGeneratedMetadata {
258
+ type?: 'code';
259
+
260
+ file_type: string;
261
+
262
+ language: string;
263
+
264
+ word_count: number;
265
+
266
+ file_size: number;
267
+
268
+ [k: string]: unknown;
269
+ }
270
+
271
+ export interface AudioChunkGeneratedMetadata {
272
+ type?: 'audio';
273
+
274
+ file_type: string;
275
+
276
+ file_size: number;
277
+
278
+ total_duration_seconds: number;
279
+
280
+ sample_rate: number;
281
+
282
+ channels: number;
283
+
284
+ audio_format: number;
285
+
286
+ [k: string]: unknown;
287
+ }
288
+
193
289
  /**
194
290
  * The audio input specification.
195
291
  */
@@ -215,7 +311,13 @@ export interface ScoredImageURLInputChunk {
215
311
  /**
216
312
  * metadata of the chunk
217
313
  */
218
- generated_metadata?: { [key: string]: unknown } | null;
314
+ generated_metadata?:
315
+ | ScoredImageURLInputChunk.MarkdownChunkGeneratedMetadata
316
+ | ScoredImageURLInputChunk.TextChunkGeneratedMetadata
317
+ | ScoredImageURLInputChunk.PdfChunkGeneratedMetadata
318
+ | ScoredImageURLInputChunk.CodeChunkGeneratedMetadata
319
+ | ScoredImageURLInputChunk.AudioChunkGeneratedMetadata
320
+ | null;
219
321
 
220
322
  /**
221
323
  * model used for this chunk
@@ -269,6 +371,96 @@ export interface ScoredImageURLInputChunk {
269
371
  }
270
372
 
271
373
  export namespace ScoredImageURLInputChunk {
374
+ export interface MarkdownChunkGeneratedMetadata {
375
+ type?: 'markdown';
376
+
377
+ file_type?: 'text/markdown';
378
+
379
+ language: string;
380
+
381
+ word_count: number;
382
+
383
+ file_size: number;
384
+
385
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
386
+
387
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
388
+
389
+ [k: string]: unknown;
390
+ }
391
+
392
+ export namespace MarkdownChunkGeneratedMetadata {
393
+ export interface ChunkHeading {
394
+ level: number;
395
+
396
+ text: string;
397
+ }
398
+
399
+ export interface HeadingContext {
400
+ level: number;
401
+
402
+ text: string;
403
+ }
404
+ }
405
+
406
+ export interface TextChunkGeneratedMetadata {
407
+ type?: 'text';
408
+
409
+ file_type?: 'text/plain';
410
+
411
+ language: string;
412
+
413
+ word_count: number;
414
+
415
+ file_size: number;
416
+
417
+ [k: string]: unknown;
418
+ }
419
+
420
+ export interface PdfChunkGeneratedMetadata {
421
+ type?: 'pdf';
422
+
423
+ file_type?: 'application/pdf';
424
+
425
+ total_pages: number;
426
+
427
+ total_size: number;
428
+
429
+ [k: string]: unknown;
430
+ }
431
+
432
+ export interface CodeChunkGeneratedMetadata {
433
+ type?: 'code';
434
+
435
+ file_type: string;
436
+
437
+ language: string;
438
+
439
+ word_count: number;
440
+
441
+ file_size: number;
442
+
443
+ [k: string]: unknown;
444
+ }
445
+
446
+ export interface AudioChunkGeneratedMetadata {
447
+ type?: 'audio';
448
+
449
+ file_type: string;
450
+
451
+ file_size: number;
452
+
453
+ total_duration_seconds: number;
454
+
455
+ sample_rate: number;
456
+
457
+ channels: number;
458
+
459
+ audio_format: number;
460
+
461
+ [k: string]: unknown;
462
+ }
463
+
272
464
  /**
273
465
  * The image input specification.
274
466
  */
@@ -299,7 +491,13 @@ export interface ScoredTextInputChunk {
299
491
  /**
300
492
  * metadata of the chunk
301
493
  */
302
- generated_metadata?: { [key: string]: unknown } | null;
494
+ generated_metadata?:
495
+ | ScoredTextInputChunk.MarkdownChunkGeneratedMetadata
496
+ | ScoredTextInputChunk.TextChunkGeneratedMetadata
497
+ | ScoredTextInputChunk.PdfChunkGeneratedMetadata
498
+ | ScoredTextInputChunk.CodeChunkGeneratedMetadata
499
+ | ScoredTextInputChunk.AudioChunkGeneratedMetadata
500
+ | null;
303
501
 
304
502
  /**
305
503
  * model used for this chunk
@@ -347,6 +545,98 @@ export interface ScoredTextInputChunk {
347
545
  text: string;
348
546
  }
349
547
 
548
+ export namespace ScoredTextInputChunk {
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
+
350
640
  export interface ScoredVideoURLInputChunk {
351
641
  /**
352
642
  * position of the chunk in a file
@@ -361,7 +651,13 @@ export interface ScoredVideoURLInputChunk {
361
651
  /**
362
652
  * metadata of the chunk
363
653
  */
364
- generated_metadata?: { [key: string]: unknown } | null;
654
+ generated_metadata?:
655
+ | ScoredVideoURLInputChunk.MarkdownChunkGeneratedMetadata
656
+ | ScoredVideoURLInputChunk.TextChunkGeneratedMetadata
657
+ | ScoredVideoURLInputChunk.PdfChunkGeneratedMetadata
658
+ | ScoredVideoURLInputChunk.CodeChunkGeneratedMetadata
659
+ | ScoredVideoURLInputChunk.AudioChunkGeneratedMetadata
660
+ | null;
365
661
 
366
662
  /**
367
663
  * model used for this chunk
@@ -415,6 +711,96 @@ export interface ScoredVideoURLInputChunk {
415
711
  }
416
712
 
417
713
  export namespace ScoredVideoURLInputChunk {
714
+ export interface MarkdownChunkGeneratedMetadata {
715
+ type?: 'markdown';
716
+
717
+ file_type?: 'text/markdown';
718
+
719
+ language: string;
720
+
721
+ word_count: number;
722
+
723
+ file_size: number;
724
+
725
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
726
+
727
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
728
+
729
+ [k: string]: unknown;
730
+ }
731
+
732
+ export namespace MarkdownChunkGeneratedMetadata {
733
+ export interface ChunkHeading {
734
+ level: number;
735
+
736
+ text: string;
737
+ }
738
+
739
+ export interface HeadingContext {
740
+ level: number;
741
+
742
+ text: string;
743
+ }
744
+ }
745
+
746
+ export interface TextChunkGeneratedMetadata {
747
+ type?: 'text';
748
+
749
+ file_type?: 'text/plain';
750
+
751
+ language: string;
752
+
753
+ word_count: number;
754
+
755
+ file_size: number;
756
+
757
+ [k: string]: unknown;
758
+ }
759
+
760
+ export interface PdfChunkGeneratedMetadata {
761
+ type?: 'pdf';
762
+
763
+ file_type?: 'application/pdf';
764
+
765
+ total_pages: number;
766
+
767
+ total_size: number;
768
+
769
+ [k: string]: unknown;
770
+ }
771
+
772
+ export interface CodeChunkGeneratedMetadata {
773
+ type?: 'code';
774
+
775
+ file_type: string;
776
+
777
+ language: string;
778
+
779
+ word_count: number;
780
+
781
+ file_size: number;
782
+
783
+ [k: string]: unknown;
784
+ }
785
+
786
+ export interface AudioChunkGeneratedMetadata {
787
+ type?: 'audio';
788
+
789
+ file_type: string;
790
+
791
+ file_size: number;
792
+
793
+ total_duration_seconds: number;
794
+
795
+ sample_rate: number;
796
+
797
+ channels: number;
798
+
799
+ audio_format: number;
800
+
801
+ [k: string]: unknown;
802
+ }
803
+
418
804
  /**
419
805
  * The video input specification.
420
806
  */
@@ -626,7 +1012,13 @@ export namespace VectorStoreQuestionAnsweringResponse {
626
1012
  /**
627
1013
  * metadata of the chunk
628
1014
  */
629
- generated_metadata?: { [key: string]: unknown } | null;
1015
+ generated_metadata?:
1016
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.MarkdownChunkGeneratedMetadata
1017
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.TextChunkGeneratedMetadata
1018
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.PdfChunkGeneratedMetadata
1019
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.CodeChunkGeneratedMetadata
1020
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.AudioChunkGeneratedMetadata
1021
+ | null;
630
1022
 
631
1023
  /**
632
1024
  * model used for this chunk
@@ -674,6 +1066,98 @@ export namespace VectorStoreQuestionAnsweringResponse {
674
1066
  text: string;
675
1067
  }
676
1068
 
1069
+ export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
1070
+ export interface MarkdownChunkGeneratedMetadata {
1071
+ type?: 'markdown';
1072
+
1073
+ file_type?: 'text/markdown';
1074
+
1075
+ language: string;
1076
+
1077
+ word_count: number;
1078
+
1079
+ file_size: number;
1080
+
1081
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
1082
+
1083
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
1084
+
1085
+ [k: string]: unknown;
1086
+ }
1087
+
1088
+ export namespace MarkdownChunkGeneratedMetadata {
1089
+ export interface ChunkHeading {
1090
+ level: number;
1091
+
1092
+ text: string;
1093
+ }
1094
+
1095
+ export interface HeadingContext {
1096
+ level: number;
1097
+
1098
+ text: string;
1099
+ }
1100
+ }
1101
+
1102
+ export interface TextChunkGeneratedMetadata {
1103
+ type?: 'text';
1104
+
1105
+ file_type?: 'text/plain';
1106
+
1107
+ language: string;
1108
+
1109
+ word_count: number;
1110
+
1111
+ file_size: number;
1112
+
1113
+ [k: string]: unknown;
1114
+ }
1115
+
1116
+ export interface PdfChunkGeneratedMetadata {
1117
+ type?: 'pdf';
1118
+
1119
+ file_type?: 'application/pdf';
1120
+
1121
+ total_pages: number;
1122
+
1123
+ total_size: number;
1124
+
1125
+ [k: string]: unknown;
1126
+ }
1127
+
1128
+ export interface CodeChunkGeneratedMetadata {
1129
+ type?: 'code';
1130
+
1131
+ file_type: string;
1132
+
1133
+ language: string;
1134
+
1135
+ word_count: number;
1136
+
1137
+ file_size: number;
1138
+
1139
+ [k: string]: unknown;
1140
+ }
1141
+
1142
+ export interface AudioChunkGeneratedMetadata {
1143
+ type?: 'audio';
1144
+
1145
+ file_type: string;
1146
+
1147
+ file_size: number;
1148
+
1149
+ total_duration_seconds: number;
1150
+
1151
+ sample_rate: number;
1152
+
1153
+ channels: number;
1154
+
1155
+ audio_format: number;
1156
+
1157
+ [k: string]: unknown;
1158
+ }
1159
+ }
1160
+
677
1161
  /**
678
1162
  * Scored image chunk for deprecated API.
679
1163
  */
@@ -691,7 +1175,13 @@ export namespace VectorStoreQuestionAnsweringResponse {
691
1175
  /**
692
1176
  * metadata of the chunk
693
1177
  */
694
- generated_metadata?: { [key: string]: unknown } | null;
1178
+ generated_metadata?:
1179
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.MarkdownChunkGeneratedMetadata
1180
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.TextChunkGeneratedMetadata
1181
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.PdfChunkGeneratedMetadata
1182
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.CodeChunkGeneratedMetadata
1183
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.AudioChunkGeneratedMetadata
1184
+ | null;
695
1185
 
696
1186
  /**
697
1187
  * model used for this chunk
@@ -745,32 +1235,122 @@ export namespace VectorStoreQuestionAnsweringResponse {
745
1235
  }
746
1236
 
747
1237
  export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
748
- /**
749
- * The image input specification.
750
- */
751
- export interface ImageURL {
752
- /**
753
- * The image URL. Can be either a URL or a Data URI.
754
- */
755
- url: string;
1238
+ export interface MarkdownChunkGeneratedMetadata {
1239
+ type?: 'markdown';
756
1240
 
757
- /**
758
- * The image format/mimetype
759
- */
760
- format?: string;
761
- }
762
- }
1241
+ file_type?: 'text/markdown';
763
1242
 
764
- /**
765
- * Scored audio chunk for deprecated API.
766
- */
767
- export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
768
- /**
769
- * position of the chunk in a file
770
- */
771
- chunk_index: number;
1243
+ language: string;
772
1244
 
773
- /**
1245
+ word_count: number;
1246
+
1247
+ file_size: number;
1248
+
1249
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
1250
+
1251
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
1252
+
1253
+ [k: string]: unknown;
1254
+ }
1255
+
1256
+ export namespace MarkdownChunkGeneratedMetadata {
1257
+ export interface ChunkHeading {
1258
+ level: number;
1259
+
1260
+ text: string;
1261
+ }
1262
+
1263
+ export interface HeadingContext {
1264
+ level: number;
1265
+
1266
+ text: string;
1267
+ }
1268
+ }
1269
+
1270
+ export interface TextChunkGeneratedMetadata {
1271
+ type?: 'text';
1272
+
1273
+ file_type?: 'text/plain';
1274
+
1275
+ language: string;
1276
+
1277
+ word_count: number;
1278
+
1279
+ file_size: number;
1280
+
1281
+ [k: string]: unknown;
1282
+ }
1283
+
1284
+ export interface PdfChunkGeneratedMetadata {
1285
+ type?: 'pdf';
1286
+
1287
+ file_type?: 'application/pdf';
1288
+
1289
+ total_pages: number;
1290
+
1291
+ total_size: number;
1292
+
1293
+ [k: string]: unknown;
1294
+ }
1295
+
1296
+ export interface CodeChunkGeneratedMetadata {
1297
+ type?: 'code';
1298
+
1299
+ file_type: string;
1300
+
1301
+ language: string;
1302
+
1303
+ word_count: number;
1304
+
1305
+ file_size: number;
1306
+
1307
+ [k: string]: unknown;
1308
+ }
1309
+
1310
+ export interface AudioChunkGeneratedMetadata {
1311
+ type?: 'audio';
1312
+
1313
+ file_type: string;
1314
+
1315
+ file_size: number;
1316
+
1317
+ total_duration_seconds: number;
1318
+
1319
+ sample_rate: number;
1320
+
1321
+ channels: number;
1322
+
1323
+ audio_format: number;
1324
+
1325
+ [k: string]: unknown;
1326
+ }
1327
+
1328
+ /**
1329
+ * The image input specification.
1330
+ */
1331
+ export interface ImageURL {
1332
+ /**
1333
+ * The image URL. Can be either a URL or a Data URI.
1334
+ */
1335
+ url: string;
1336
+
1337
+ /**
1338
+ * The image format/mimetype
1339
+ */
1340
+ format?: string;
1341
+ }
1342
+ }
1343
+
1344
+ /**
1345
+ * Scored audio chunk for deprecated API.
1346
+ */
1347
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
1348
+ /**
1349
+ * position of the chunk in a file
1350
+ */
1351
+ chunk_index: number;
1352
+
1353
+ /**
774
1354
  * mime type of the chunk
775
1355
  */
776
1356
  mime_type?: string;
@@ -778,7 +1358,13 @@ export namespace VectorStoreQuestionAnsweringResponse {
778
1358
  /**
779
1359
  * metadata of the chunk
780
1360
  */
781
- generated_metadata?: { [key: string]: unknown } | null;
1361
+ generated_metadata?:
1362
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.MarkdownChunkGeneratedMetadata
1363
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.TextChunkGeneratedMetadata
1364
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.PdfChunkGeneratedMetadata
1365
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.CodeChunkGeneratedMetadata
1366
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioChunkGeneratedMetadata
1367
+ | null;
782
1368
 
783
1369
  /**
784
1370
  * model used for this chunk
@@ -837,6 +1423,96 @@ export namespace VectorStoreQuestionAnsweringResponse {
837
1423
  }
838
1424
 
839
1425
  export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
1426
+ export interface MarkdownChunkGeneratedMetadata {
1427
+ type?: 'markdown';
1428
+
1429
+ file_type?: 'text/markdown';
1430
+
1431
+ language: string;
1432
+
1433
+ word_count: number;
1434
+
1435
+ file_size: number;
1436
+
1437
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
1438
+
1439
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
1440
+
1441
+ [k: string]: unknown;
1442
+ }
1443
+
1444
+ export namespace MarkdownChunkGeneratedMetadata {
1445
+ export interface ChunkHeading {
1446
+ level: number;
1447
+
1448
+ text: string;
1449
+ }
1450
+
1451
+ export interface HeadingContext {
1452
+ level: number;
1453
+
1454
+ text: string;
1455
+ }
1456
+ }
1457
+
1458
+ export interface TextChunkGeneratedMetadata {
1459
+ type?: 'text';
1460
+
1461
+ file_type?: 'text/plain';
1462
+
1463
+ language: string;
1464
+
1465
+ word_count: number;
1466
+
1467
+ file_size: number;
1468
+
1469
+ [k: string]: unknown;
1470
+ }
1471
+
1472
+ export interface PdfChunkGeneratedMetadata {
1473
+ type?: 'pdf';
1474
+
1475
+ file_type?: 'application/pdf';
1476
+
1477
+ total_pages: number;
1478
+
1479
+ total_size: number;
1480
+
1481
+ [k: string]: unknown;
1482
+ }
1483
+
1484
+ export interface CodeChunkGeneratedMetadata {
1485
+ type?: 'code';
1486
+
1487
+ file_type: string;
1488
+
1489
+ language: string;
1490
+
1491
+ word_count: number;
1492
+
1493
+ file_size: number;
1494
+
1495
+ [k: string]: unknown;
1496
+ }
1497
+
1498
+ export interface AudioChunkGeneratedMetadata {
1499
+ type?: 'audio';
1500
+
1501
+ file_type: string;
1502
+
1503
+ file_size: number;
1504
+
1505
+ total_duration_seconds: number;
1506
+
1507
+ sample_rate: number;
1508
+
1509
+ channels: number;
1510
+
1511
+ audio_format: number;
1512
+
1513
+ [k: string]: unknown;
1514
+ }
1515
+
840
1516
  /**
841
1517
  * The audio input specification.
842
1518
  */
@@ -865,7 +1541,13 @@ export namespace VectorStoreQuestionAnsweringResponse {
865
1541
  /**
866
1542
  * metadata of the chunk
867
1543
  */
868
- generated_metadata?: { [key: string]: unknown } | null;
1544
+ generated_metadata?:
1545
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.MarkdownChunkGeneratedMetadata
1546
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.TextChunkGeneratedMetadata
1547
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.PdfChunkGeneratedMetadata
1548
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.CodeChunkGeneratedMetadata
1549
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.AudioChunkGeneratedMetadata
1550
+ | null;
869
1551
 
870
1552
  /**
871
1553
  * model used for this chunk
@@ -919,6 +1601,96 @@ export namespace VectorStoreQuestionAnsweringResponse {
919
1601
  }
920
1602
 
921
1603
  export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
1604
+ export interface MarkdownChunkGeneratedMetadata {
1605
+ type?: 'markdown';
1606
+
1607
+ file_type?: 'text/markdown';
1608
+
1609
+ language: string;
1610
+
1611
+ word_count: number;
1612
+
1613
+ file_size: number;
1614
+
1615
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
1616
+
1617
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
1618
+
1619
+ [k: string]: unknown;
1620
+ }
1621
+
1622
+ export namespace MarkdownChunkGeneratedMetadata {
1623
+ export interface ChunkHeading {
1624
+ level: number;
1625
+
1626
+ text: string;
1627
+ }
1628
+
1629
+ export interface HeadingContext {
1630
+ level: number;
1631
+
1632
+ text: string;
1633
+ }
1634
+ }
1635
+
1636
+ export interface TextChunkGeneratedMetadata {
1637
+ type?: 'text';
1638
+
1639
+ file_type?: 'text/plain';
1640
+
1641
+ language: string;
1642
+
1643
+ word_count: number;
1644
+
1645
+ file_size: number;
1646
+
1647
+ [k: string]: unknown;
1648
+ }
1649
+
1650
+ export interface PdfChunkGeneratedMetadata {
1651
+ type?: 'pdf';
1652
+
1653
+ file_type?: 'application/pdf';
1654
+
1655
+ total_pages: number;
1656
+
1657
+ total_size: number;
1658
+
1659
+ [k: string]: unknown;
1660
+ }
1661
+
1662
+ export interface CodeChunkGeneratedMetadata {
1663
+ type?: 'code';
1664
+
1665
+ file_type: string;
1666
+
1667
+ language: string;
1668
+
1669
+ word_count: number;
1670
+
1671
+ file_size: number;
1672
+
1673
+ [k: string]: unknown;
1674
+ }
1675
+
1676
+ export interface AudioChunkGeneratedMetadata {
1677
+ type?: 'audio';
1678
+
1679
+ file_type: string;
1680
+
1681
+ file_size: number;
1682
+
1683
+ total_duration_seconds: number;
1684
+
1685
+ sample_rate: number;
1686
+
1687
+ channels: number;
1688
+
1689
+ audio_format: number;
1690
+
1691
+ [k: string]: unknown;
1692
+ }
1693
+
922
1694
  /**
923
1695
  * The video input specification.
924
1696
  */
@@ -966,7 +1738,13 @@ export namespace VectorStoreSearchResponse {
966
1738
  /**
967
1739
  * metadata of the chunk
968
1740
  */
969
- generated_metadata?: { [key: string]: unknown } | null;
1741
+ generated_metadata?:
1742
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.MarkdownChunkGeneratedMetadata
1743
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.TextChunkGeneratedMetadata
1744
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.PdfChunkGeneratedMetadata
1745
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.CodeChunkGeneratedMetadata
1746
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.AudioChunkGeneratedMetadata
1747
+ | null;
970
1748
 
971
1749
  /**
972
1750
  * model used for this chunk
@@ -1014,6 +1792,98 @@ export namespace VectorStoreSearchResponse {
1014
1792
  text: string;
1015
1793
  }
1016
1794
 
1795
+ export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
1796
+ export interface MarkdownChunkGeneratedMetadata {
1797
+ type?: 'markdown';
1798
+
1799
+ file_type?: 'text/markdown';
1800
+
1801
+ language: string;
1802
+
1803
+ word_count: number;
1804
+
1805
+ file_size: number;
1806
+
1807
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
1808
+
1809
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
1810
+
1811
+ [k: string]: unknown;
1812
+ }
1813
+
1814
+ export namespace MarkdownChunkGeneratedMetadata {
1815
+ export interface ChunkHeading {
1816
+ level: number;
1817
+
1818
+ text: string;
1819
+ }
1820
+
1821
+ export interface HeadingContext {
1822
+ level: number;
1823
+
1824
+ text: string;
1825
+ }
1826
+ }
1827
+
1828
+ export interface TextChunkGeneratedMetadata {
1829
+ type?: 'text';
1830
+
1831
+ file_type?: 'text/plain';
1832
+
1833
+ language: string;
1834
+
1835
+ word_count: number;
1836
+
1837
+ file_size: number;
1838
+
1839
+ [k: string]: unknown;
1840
+ }
1841
+
1842
+ export interface PdfChunkGeneratedMetadata {
1843
+ type?: 'pdf';
1844
+
1845
+ file_type?: 'application/pdf';
1846
+
1847
+ total_pages: number;
1848
+
1849
+ total_size: number;
1850
+
1851
+ [k: string]: unknown;
1852
+ }
1853
+
1854
+ export interface CodeChunkGeneratedMetadata {
1855
+ type?: 'code';
1856
+
1857
+ file_type: string;
1858
+
1859
+ language: string;
1860
+
1861
+ word_count: number;
1862
+
1863
+ file_size: number;
1864
+
1865
+ [k: string]: unknown;
1866
+ }
1867
+
1868
+ export interface AudioChunkGeneratedMetadata {
1869
+ type?: 'audio';
1870
+
1871
+ file_type: string;
1872
+
1873
+ file_size: number;
1874
+
1875
+ total_duration_seconds: number;
1876
+
1877
+ sample_rate: number;
1878
+
1879
+ channels: number;
1880
+
1881
+ audio_format: number;
1882
+
1883
+ [k: string]: unknown;
1884
+ }
1885
+ }
1886
+
1017
1887
  /**
1018
1888
  * Scored image chunk for deprecated API.
1019
1889
  */
@@ -1031,7 +1901,13 @@ export namespace VectorStoreSearchResponse {
1031
1901
  /**
1032
1902
  * metadata of the chunk
1033
1903
  */
1034
- generated_metadata?: { [key: string]: unknown } | null;
1904
+ generated_metadata?:
1905
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.MarkdownChunkGeneratedMetadata
1906
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.TextChunkGeneratedMetadata
1907
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.PdfChunkGeneratedMetadata
1908
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.CodeChunkGeneratedMetadata
1909
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.AudioChunkGeneratedMetadata
1910
+ | null;
1035
1911
 
1036
1912
  /**
1037
1913
  * model used for this chunk
@@ -1085,6 +1961,96 @@ export namespace VectorStoreSearchResponse {
1085
1961
  }
1086
1962
 
1087
1963
  export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
1964
+ export interface MarkdownChunkGeneratedMetadata {
1965
+ type?: 'markdown';
1966
+
1967
+ file_type?: 'text/markdown';
1968
+
1969
+ language: string;
1970
+
1971
+ word_count: number;
1972
+
1973
+ file_size: number;
1974
+
1975
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
1976
+
1977
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
1978
+
1979
+ [k: string]: unknown;
1980
+ }
1981
+
1982
+ export namespace MarkdownChunkGeneratedMetadata {
1983
+ export interface ChunkHeading {
1984
+ level: number;
1985
+
1986
+ text: string;
1987
+ }
1988
+
1989
+ export interface HeadingContext {
1990
+ level: number;
1991
+
1992
+ text: string;
1993
+ }
1994
+ }
1995
+
1996
+ export interface TextChunkGeneratedMetadata {
1997
+ type?: 'text';
1998
+
1999
+ file_type?: 'text/plain';
2000
+
2001
+ language: string;
2002
+
2003
+ word_count: number;
2004
+
2005
+ file_size: number;
2006
+
2007
+ [k: string]: unknown;
2008
+ }
2009
+
2010
+ export interface PdfChunkGeneratedMetadata {
2011
+ type?: 'pdf';
2012
+
2013
+ file_type?: 'application/pdf';
2014
+
2015
+ total_pages: number;
2016
+
2017
+ total_size: number;
2018
+
2019
+ [k: string]: unknown;
2020
+ }
2021
+
2022
+ export interface CodeChunkGeneratedMetadata {
2023
+ type?: 'code';
2024
+
2025
+ file_type: string;
2026
+
2027
+ language: string;
2028
+
2029
+ word_count: number;
2030
+
2031
+ file_size: number;
2032
+
2033
+ [k: string]: unknown;
2034
+ }
2035
+
2036
+ export interface AudioChunkGeneratedMetadata {
2037
+ type?: 'audio';
2038
+
2039
+ file_type: string;
2040
+
2041
+ file_size: number;
2042
+
2043
+ total_duration_seconds: number;
2044
+
2045
+ sample_rate: number;
2046
+
2047
+ channels: number;
2048
+
2049
+ audio_format: number;
2050
+
2051
+ [k: string]: unknown;
2052
+ }
2053
+
1088
2054
  /**
1089
2055
  * The image input specification.
1090
2056
  */
@@ -1118,7 +2084,13 @@ export namespace VectorStoreSearchResponse {
1118
2084
  /**
1119
2085
  * metadata of the chunk
1120
2086
  */
1121
- generated_metadata?: { [key: string]: unknown } | null;
2087
+ generated_metadata?:
2088
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.MarkdownChunkGeneratedMetadata
2089
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.TextChunkGeneratedMetadata
2090
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.PdfChunkGeneratedMetadata
2091
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.CodeChunkGeneratedMetadata
2092
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioChunkGeneratedMetadata
2093
+ | null;
1122
2094
 
1123
2095
  /**
1124
2096
  * model used for this chunk
@@ -1177,6 +2149,96 @@ export namespace VectorStoreSearchResponse {
1177
2149
  }
1178
2150
 
1179
2151
  export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
2152
+ export interface MarkdownChunkGeneratedMetadata {
2153
+ type?: 'markdown';
2154
+
2155
+ file_type?: 'text/markdown';
2156
+
2157
+ language: string;
2158
+
2159
+ word_count: number;
2160
+
2161
+ file_size: number;
2162
+
2163
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
2164
+
2165
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
2166
+
2167
+ [k: string]: unknown;
2168
+ }
2169
+
2170
+ export namespace MarkdownChunkGeneratedMetadata {
2171
+ export interface ChunkHeading {
2172
+ level: number;
2173
+
2174
+ text: string;
2175
+ }
2176
+
2177
+ export interface HeadingContext {
2178
+ level: number;
2179
+
2180
+ text: string;
2181
+ }
2182
+ }
2183
+
2184
+ export interface TextChunkGeneratedMetadata {
2185
+ type?: 'text';
2186
+
2187
+ file_type?: 'text/plain';
2188
+
2189
+ language: string;
2190
+
2191
+ word_count: number;
2192
+
2193
+ file_size: number;
2194
+
2195
+ [k: string]: unknown;
2196
+ }
2197
+
2198
+ export interface PdfChunkGeneratedMetadata {
2199
+ type?: 'pdf';
2200
+
2201
+ file_type?: 'application/pdf';
2202
+
2203
+ total_pages: number;
2204
+
2205
+ total_size: number;
2206
+
2207
+ [k: string]: unknown;
2208
+ }
2209
+
2210
+ export interface CodeChunkGeneratedMetadata {
2211
+ type?: 'code';
2212
+
2213
+ file_type: string;
2214
+
2215
+ language: string;
2216
+
2217
+ word_count: number;
2218
+
2219
+ file_size: number;
2220
+
2221
+ [k: string]: unknown;
2222
+ }
2223
+
2224
+ export interface AudioChunkGeneratedMetadata {
2225
+ type?: 'audio';
2226
+
2227
+ file_type: string;
2228
+
2229
+ file_size: number;
2230
+
2231
+ total_duration_seconds: number;
2232
+
2233
+ sample_rate: number;
2234
+
2235
+ channels: number;
2236
+
2237
+ audio_format: number;
2238
+
2239
+ [k: string]: unknown;
2240
+ }
2241
+
1180
2242
  /**
1181
2243
  * The audio input specification.
1182
2244
  */
@@ -1205,7 +2267,13 @@ export namespace VectorStoreSearchResponse {
1205
2267
  /**
1206
2268
  * metadata of the chunk
1207
2269
  */
1208
- generated_metadata?: { [key: string]: unknown } | null;
2270
+ generated_metadata?:
2271
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.MarkdownChunkGeneratedMetadata
2272
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.TextChunkGeneratedMetadata
2273
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.PdfChunkGeneratedMetadata
2274
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.CodeChunkGeneratedMetadata
2275
+ | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.AudioChunkGeneratedMetadata
2276
+ | null;
1209
2277
 
1210
2278
  /**
1211
2279
  * model used for this chunk
@@ -1259,6 +2327,96 @@ export namespace VectorStoreSearchResponse {
1259
2327
  }
1260
2328
 
1261
2329
  export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
2330
+ export interface MarkdownChunkGeneratedMetadata {
2331
+ type?: 'markdown';
2332
+
2333
+ file_type?: 'text/markdown';
2334
+
2335
+ language: string;
2336
+
2337
+ word_count: number;
2338
+
2339
+ file_size: number;
2340
+
2341
+ chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
2342
+
2343
+ heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
2344
+
2345
+ [k: string]: unknown;
2346
+ }
2347
+
2348
+ export namespace MarkdownChunkGeneratedMetadata {
2349
+ export interface ChunkHeading {
2350
+ level: number;
2351
+
2352
+ text: string;
2353
+ }
2354
+
2355
+ export interface HeadingContext {
2356
+ level: number;
2357
+
2358
+ text: string;
2359
+ }
2360
+ }
2361
+
2362
+ export interface TextChunkGeneratedMetadata {
2363
+ type?: 'text';
2364
+
2365
+ file_type?: 'text/plain';
2366
+
2367
+ language: string;
2368
+
2369
+ word_count: number;
2370
+
2371
+ file_size: number;
2372
+
2373
+ [k: string]: unknown;
2374
+ }
2375
+
2376
+ export interface PdfChunkGeneratedMetadata {
2377
+ type?: 'pdf';
2378
+
2379
+ file_type?: 'application/pdf';
2380
+
2381
+ total_pages: number;
2382
+
2383
+ total_size: number;
2384
+
2385
+ [k: string]: unknown;
2386
+ }
2387
+
2388
+ export interface CodeChunkGeneratedMetadata {
2389
+ type?: 'code';
2390
+
2391
+ file_type: string;
2392
+
2393
+ language: string;
2394
+
2395
+ word_count: number;
2396
+
2397
+ file_size: number;
2398
+
2399
+ [k: string]: unknown;
2400
+ }
2401
+
2402
+ export interface AudioChunkGeneratedMetadata {
2403
+ type?: 'audio';
2404
+
2405
+ file_type: string;
2406
+
2407
+ file_size: number;
2408
+
2409
+ total_duration_seconds: number;
2410
+
2411
+ sample_rate: number;
2412
+
2413
+ channels: number;
2414
+
2415
+ audio_format: number;
2416
+
2417
+ [k: string]: unknown;
2418
+ }
2419
+
1262
2420
  /**
1263
2421
  * The video input specification.
1264
2422
  */