@mixedbread/sdk 0.28.1 → 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 +39 -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 +301 -46
  9. package/resources/vector-stores/files.d.mts.map +1 -1
  10. package/resources/vector-stores/files.d.ts +301 -46
  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 +581 -57
  17. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  18. package/resources/vector-stores/vector-stores.d.ts +581 -57
  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 +352 -49
  26. package/src/resources/vector-stores/vector-stores.ts +683 -57
  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
@@ -27,36 +27,27 @@ export class VectorStores extends APIResource {
27
27
  files: FilesAPI.Files = new FilesAPI.Files(this._client);
28
28
 
29
29
  /**
30
- * Create a new vector store.
30
+ * DEPRECATED: Use POST /stores instead
31
31
  *
32
- * Args: vector_store_create: VectorStoreCreate object containing the name,
33
- * description, and metadata.
34
- *
35
- * Returns: VectorStore: The response containing the created vector store details.
32
+ * @deprecated
36
33
  */
37
34
  create(body: VectorStoreCreateParams, options?: RequestOptions): APIPromise<VectorStore> {
38
35
  return this._client.post('/v1/vector_stores', { body, ...options });
39
36
  }
40
37
 
41
38
  /**
42
- * Get a vector store by ID or name.
43
- *
44
- * Args: vector_store_identifier: The ID or name of the vector store to retrieve.
39
+ * DEPRECATED: Use GET /stores/{store_identifier} instead
45
40
  *
46
- * Returns: VectorStore: The response containing the vector store details.
41
+ * @deprecated
47
42
  */
48
43
  retrieve(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStore> {
49
44
  return this._client.get(path`/v1/vector_stores/${vectorStoreIdentifier}`, options);
50
45
  }
51
46
 
52
47
  /**
53
- * Update a vector store by ID or name.
54
- *
55
- * Args: vector_store_identifier: The ID or name of the vector store to update.
56
- * vector_store_update: VectorStoreCreate object containing the name, description,
57
- * and metadata.
48
+ * DEPRECATED: Use PUT /stores/{store_identifier} instead
58
49
  *
59
- * Returns: VectorStore: The response containing the updated vector store details.
50
+ * @deprecated
60
51
  */
61
52
  update(
62
53
  vectorStoreIdentifier: string,
@@ -67,12 +58,9 @@ export class VectorStores extends APIResource {
67
58
  }
68
59
 
69
60
  /**
70
- * List all vector stores with optional search.
61
+ * DEPRECATED: Use GET /stores instead
71
62
  *
72
- * Args: pagination: The pagination options. q: Optional search query to filter
73
- * vector stores.
74
- *
75
- * Returns: VectorStoreListResponse: The list of vector stores.
63
+ * @deprecated
76
64
  */
77
65
  list(
78
66
  query: VectorStoreListParams | null | undefined = {},
@@ -82,18 +70,18 @@ export class VectorStores extends APIResource {
82
70
  }
83
71
 
84
72
  /**
85
- * Delete a vector store by ID or name.
86
- *
87
- * Args: vector_store_identifier: The ID or name of the vector store to delete.
73
+ * DEPRECATED: Use DELETE /stores/{store_identifier} instead
88
74
  *
89
- * Returns: VectorStore: The response containing the deleted vector store details.
75
+ * @deprecated
90
76
  */
91
77
  delete(vectorStoreIdentifier: string, options?: RequestOptions): APIPromise<VectorStoreDeleteResponse> {
92
78
  return this._client.delete(path`/v1/vector_stores/${vectorStoreIdentifier}`, options);
93
79
  }
94
80
 
95
81
  /**
96
- * Question answering
82
+ * DEPRECATED: Use POST /stores/question-answering instead
83
+ *
84
+ * @deprecated
97
85
  */
98
86
  questionAnswering(
99
87
  body: VectorStoreQuestionAnsweringParams,
@@ -103,23 +91,9 @@ export class VectorStores extends APIResource {
103
91
  }
104
92
 
105
93
  /**
106
- * Perform semantic search across vector store chunks.
94
+ * DEPRECATED: Use POST /stores/search instead
107
95
  *
108
- * This endpoint searches through vector store chunks using semantic similarity
109
- * matching. It supports complex search queries with filters and returns
110
- * relevance-scored results.
111
- *
112
- * Args: search_params: Search configuration including: - query text or
113
- * embeddings - vector_store_ids: List of vector stores to search - file_ids:
114
- * Optional list of file IDs to filter chunks by (or tuple of list and condition
115
- * operator) - metadata filters - pagination parameters - sorting preferences
116
- * \_state: API state dependency \_ctx: Service context dependency
117
- *
118
- * Returns: VectorStoreSearchChunkResponse containing: - List of matched chunks
119
- * with relevance scores - Pagination details including total result count
120
- *
121
- * Raises: HTTPException (400): If search parameters are invalid HTTPException
122
- * (404): If no vector stores are found to search
96
+ * @deprecated
123
97
  */
124
98
  search(body: VectorStoreSearchParams, options?: RequestOptions): APIPromise<VectorStoreSearchResponse> {
125
99
  return this._client.post('/v1/vector_stores/search', { body, ...options });
@@ -129,7 +103,7 @@ export class VectorStores extends APIResource {
129
103
  export type VectorStoresCursor = Cursor<VectorStore>;
130
104
 
131
105
  /**
132
- * Represents an expiration policy for a vector store.
106
+ * Represents an expiration policy for a store.
133
107
  */
134
108
  export interface ExpiresAfter {
135
109
  /**
@@ -138,7 +112,7 @@ export interface ExpiresAfter {
138
112
  anchor?: 'last_active_at';
139
113
 
140
114
  /**
141
- * Number of days after which the vector store expires
115
+ * Number of days after which the store expires
142
116
  */
143
117
  days?: number;
144
118
  }
@@ -180,9 +154,9 @@ export interface ScoredAudioURLInputChunk {
180
154
  filename: string;
181
155
 
182
156
  /**
183
- * vector store id
157
+ * store id
184
158
  */
185
- vector_store_id: string;
159
+ store_id: string;
186
160
 
187
161
  /**
188
162
  * file metadata
@@ -264,9 +238,9 @@ export interface ScoredImageURLInputChunk {
264
238
  filename: string;
265
239
 
266
240
  /**
267
- * vector store id
241
+ * store id
268
242
  */
269
- vector_store_id: string;
243
+ store_id: string;
270
244
 
271
245
  /**
272
246
  * file metadata
@@ -348,9 +322,9 @@ export interface ScoredTextInputChunk {
348
322
  filename: string;
349
323
 
350
324
  /**
351
- * vector store id
325
+ * store id
352
326
  */
353
- vector_store_id: string;
327
+ store_id: string;
354
328
 
355
329
  /**
356
330
  * file metadata
@@ -410,9 +384,9 @@ export interface ScoredVideoURLInputChunk {
410
384
  filename: string;
411
385
 
412
386
  /**
413
- * vector store id
387
+ * store id
414
388
  */
415
- vector_store_id: string;
389
+ store_id: string;
416
390
 
417
391
  /**
418
392
  * file metadata
@@ -487,7 +461,7 @@ export interface VectorStore {
487
461
  file_counts?: VectorStore.FileCounts;
488
462
 
489
463
  /**
490
- * Represents an expiration policy for a vector store.
464
+ * Represents an expiration policy for a store.
491
465
  */
492
466
  expires_after?: ExpiresAfter | null;
493
467
 
@@ -627,10 +601,336 @@ export interface VectorStoreQuestionAnsweringResponse {
627
601
  * Source documents used to generate the answer
628
602
  */
629
603
  sources?: Array<
630
- ScoredTextInputChunk | ScoredImageURLInputChunk | ScoredAudioURLInputChunk | ScoredVideoURLInputChunk
604
+ | VectorStoreQuestionAnsweringResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk
605
+ | VectorStoreQuestionAnsweringResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk
606
+ | VectorStoreQuestionAnsweringResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk
607
+ | VectorStoreQuestionAnsweringResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk
631
608
  >;
632
609
  }
633
610
 
611
+ export namespace VectorStoreQuestionAnsweringResponse {
612
+ /**
613
+ * Scored text chunk for deprecated API.
614
+ */
615
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
616
+ /**
617
+ * position of the chunk in a file
618
+ */
619
+ chunk_index: number;
620
+
621
+ /**
622
+ * mime type of the chunk
623
+ */
624
+ mime_type?: string;
625
+
626
+ /**
627
+ * metadata of the chunk
628
+ */
629
+ generated_metadata?: { [key: string]: unknown } | null;
630
+
631
+ /**
632
+ * model used for this chunk
633
+ */
634
+ model?: string | null;
635
+
636
+ /**
637
+ * score of the chunk
638
+ */
639
+ score: number;
640
+
641
+ /**
642
+ * file id
643
+ */
644
+ file_id: string;
645
+
646
+ /**
647
+ * filename
648
+ */
649
+ filename: string;
650
+
651
+ /**
652
+ * store id
653
+ */
654
+ vector_store_id: string;
655
+
656
+ /**
657
+ * file metadata
658
+ */
659
+ metadata?: unknown;
660
+
661
+ /**
662
+ * Input type identifier
663
+ */
664
+ type?: 'text';
665
+
666
+ /**
667
+ * The offset of the text in the file relative to the start of the file.
668
+ */
669
+ offset?: number;
670
+
671
+ /**
672
+ * Text content to process
673
+ */
674
+ text: string;
675
+ }
676
+
677
+ /**
678
+ * Scored image chunk for deprecated API.
679
+ */
680
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
681
+ /**
682
+ * position of the chunk in a file
683
+ */
684
+ chunk_index: number;
685
+
686
+ /**
687
+ * mime type of the chunk
688
+ */
689
+ mime_type?: string;
690
+
691
+ /**
692
+ * metadata of the chunk
693
+ */
694
+ generated_metadata?: { [key: string]: unknown } | null;
695
+
696
+ /**
697
+ * model used for this chunk
698
+ */
699
+ model?: string | null;
700
+
701
+ /**
702
+ * score of the chunk
703
+ */
704
+ score: number;
705
+
706
+ /**
707
+ * file id
708
+ */
709
+ file_id: string;
710
+
711
+ /**
712
+ * filename
713
+ */
714
+ filename: string;
715
+
716
+ /**
717
+ * store id
718
+ */
719
+ vector_store_id: string;
720
+
721
+ /**
722
+ * file metadata
723
+ */
724
+ metadata?: unknown;
725
+
726
+ /**
727
+ * Input type identifier
728
+ */
729
+ type?: 'image_url';
730
+
731
+ /**
732
+ * ocr text of the image
733
+ */
734
+ ocr_text?: string | null;
735
+
736
+ /**
737
+ * summary of the image
738
+ */
739
+ summary?: string | null;
740
+
741
+ /**
742
+ * The image input specification.
743
+ */
744
+ image_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.ImageURL;
745
+ }
746
+
747
+ 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;
756
+
757
+ /**
758
+ * The image format/mimetype
759
+ */
760
+ format?: string;
761
+ }
762
+ }
763
+
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;
772
+
773
+ /**
774
+ * mime type of the chunk
775
+ */
776
+ mime_type?: string;
777
+
778
+ /**
779
+ * metadata of the chunk
780
+ */
781
+ generated_metadata?: { [key: string]: unknown } | null;
782
+
783
+ /**
784
+ * model used for this chunk
785
+ */
786
+ model?: string | null;
787
+
788
+ /**
789
+ * score of the chunk
790
+ */
791
+ score: number;
792
+
793
+ /**
794
+ * file id
795
+ */
796
+ file_id: string;
797
+
798
+ /**
799
+ * filename
800
+ */
801
+ filename: string;
802
+
803
+ /**
804
+ * store id
805
+ */
806
+ vector_store_id: string;
807
+
808
+ /**
809
+ * file metadata
810
+ */
811
+ metadata?: unknown;
812
+
813
+ /**
814
+ * Input type identifier
815
+ */
816
+ type?: 'audio_url';
817
+
818
+ /**
819
+ * speech recognition (sr) text of the audio
820
+ */
821
+ transcription?: string | null;
822
+
823
+ /**
824
+ * summary of the audio
825
+ */
826
+ summary?: string | null;
827
+
828
+ /**
829
+ * The audio input specification.
830
+ */
831
+ audio_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioURL;
832
+
833
+ /**
834
+ * The sampling rate of the audio.
835
+ */
836
+ sampling_rate: number;
837
+ }
838
+
839
+ export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
840
+ /**
841
+ * The audio input specification.
842
+ */
843
+ export interface AudioURL {
844
+ /**
845
+ * The audio URL. Can be either a URL or a Data URI.
846
+ */
847
+ url: string;
848
+ }
849
+ }
850
+
851
+ /**
852
+ * Scored video chunk for deprecated API.
853
+ */
854
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
855
+ /**
856
+ * position of the chunk in a file
857
+ */
858
+ chunk_index: number;
859
+
860
+ /**
861
+ * mime type of the chunk
862
+ */
863
+ mime_type?: string;
864
+
865
+ /**
866
+ * metadata of the chunk
867
+ */
868
+ generated_metadata?: { [key: string]: unknown } | null;
869
+
870
+ /**
871
+ * model used for this chunk
872
+ */
873
+ model?: string | null;
874
+
875
+ /**
876
+ * score of the chunk
877
+ */
878
+ score: number;
879
+
880
+ /**
881
+ * file id
882
+ */
883
+ file_id: string;
884
+
885
+ /**
886
+ * filename
887
+ */
888
+ filename: string;
889
+
890
+ /**
891
+ * store id
892
+ */
893
+ vector_store_id: string;
894
+
895
+ /**
896
+ * file metadata
897
+ */
898
+ metadata?: unknown;
899
+
900
+ /**
901
+ * Input type identifier
902
+ */
903
+ type?: 'video_url';
904
+
905
+ /**
906
+ * speech recognition (sr) text of the video
907
+ */
908
+ transcription?: string | null;
909
+
910
+ /**
911
+ * summary of the video
912
+ */
913
+ summary?: string | null;
914
+
915
+ /**
916
+ * The video input specification.
917
+ */
918
+ video_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.VideoURL;
919
+ }
920
+
921
+ export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
922
+ /**
923
+ * The video input specification.
924
+ */
925
+ export interface VideoURL {
926
+ /**
927
+ * The video URL. Can be either a URL or a Data URI.
928
+ */
929
+ url: string;
930
+ }
931
+ }
932
+ }
933
+
634
934
  export interface VectorStoreSearchResponse {
635
935
  /**
636
936
  * The object type of the response
@@ -641,10 +941,336 @@ export interface VectorStoreSearchResponse {
641
941
  * The list of scored vector store file chunks
642
942
  */
643
943
  data: Array<
644
- ScoredTextInputChunk | ScoredImageURLInputChunk | ScoredAudioURLInputChunk | ScoredVideoURLInputChunk
944
+ | VectorStoreSearchResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk
945
+ | VectorStoreSearchResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk
946
+ | VectorStoreSearchResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk
947
+ | VectorStoreSearchResponse.MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk
645
948
  >;
646
949
  }
647
950
 
951
+ export namespace VectorStoreSearchResponse {
952
+ /**
953
+ * Scored text chunk for deprecated API.
954
+ */
955
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
956
+ /**
957
+ * position of the chunk in a file
958
+ */
959
+ chunk_index: number;
960
+
961
+ /**
962
+ * mime type of the chunk
963
+ */
964
+ mime_type?: string;
965
+
966
+ /**
967
+ * metadata of the chunk
968
+ */
969
+ generated_metadata?: { [key: string]: unknown } | null;
970
+
971
+ /**
972
+ * model used for this chunk
973
+ */
974
+ model?: string | null;
975
+
976
+ /**
977
+ * score of the chunk
978
+ */
979
+ score: number;
980
+
981
+ /**
982
+ * file id
983
+ */
984
+ file_id: string;
985
+
986
+ /**
987
+ * filename
988
+ */
989
+ filename: string;
990
+
991
+ /**
992
+ * store id
993
+ */
994
+ vector_store_id: string;
995
+
996
+ /**
997
+ * file metadata
998
+ */
999
+ metadata?: unknown;
1000
+
1001
+ /**
1002
+ * Input type identifier
1003
+ */
1004
+ type?: 'text';
1005
+
1006
+ /**
1007
+ * The offset of the text in the file relative to the start of the file.
1008
+ */
1009
+ offset?: number;
1010
+
1011
+ /**
1012
+ * Text content to process
1013
+ */
1014
+ text: string;
1015
+ }
1016
+
1017
+ /**
1018
+ * Scored image chunk for deprecated API.
1019
+ */
1020
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
1021
+ /**
1022
+ * position of the chunk in a file
1023
+ */
1024
+ chunk_index: number;
1025
+
1026
+ /**
1027
+ * mime type of the chunk
1028
+ */
1029
+ mime_type?: string;
1030
+
1031
+ /**
1032
+ * metadata of the chunk
1033
+ */
1034
+ generated_metadata?: { [key: string]: unknown } | null;
1035
+
1036
+ /**
1037
+ * model used for this chunk
1038
+ */
1039
+ model?: string | null;
1040
+
1041
+ /**
1042
+ * score of the chunk
1043
+ */
1044
+ score: number;
1045
+
1046
+ /**
1047
+ * file id
1048
+ */
1049
+ file_id: string;
1050
+
1051
+ /**
1052
+ * filename
1053
+ */
1054
+ filename: string;
1055
+
1056
+ /**
1057
+ * store id
1058
+ */
1059
+ vector_store_id: string;
1060
+
1061
+ /**
1062
+ * file metadata
1063
+ */
1064
+ metadata?: unknown;
1065
+
1066
+ /**
1067
+ * Input type identifier
1068
+ */
1069
+ type?: 'image_url';
1070
+
1071
+ /**
1072
+ * ocr text of the image
1073
+ */
1074
+ ocr_text?: string | null;
1075
+
1076
+ /**
1077
+ * summary of the image
1078
+ */
1079
+ summary?: string | null;
1080
+
1081
+ /**
1082
+ * The image input specification.
1083
+ */
1084
+ image_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.ImageURL;
1085
+ }
1086
+
1087
+ export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
1088
+ /**
1089
+ * The image input specification.
1090
+ */
1091
+ export interface ImageURL {
1092
+ /**
1093
+ * The image URL. Can be either a URL or a Data URI.
1094
+ */
1095
+ url: string;
1096
+
1097
+ /**
1098
+ * The image format/mimetype
1099
+ */
1100
+ format?: string;
1101
+ }
1102
+ }
1103
+
1104
+ /**
1105
+ * Scored audio chunk for deprecated API.
1106
+ */
1107
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
1108
+ /**
1109
+ * position of the chunk in a file
1110
+ */
1111
+ chunk_index: number;
1112
+
1113
+ /**
1114
+ * mime type of the chunk
1115
+ */
1116
+ mime_type?: string;
1117
+
1118
+ /**
1119
+ * metadata of the chunk
1120
+ */
1121
+ generated_metadata?: { [key: string]: unknown } | null;
1122
+
1123
+ /**
1124
+ * model used for this chunk
1125
+ */
1126
+ model?: string | null;
1127
+
1128
+ /**
1129
+ * score of the chunk
1130
+ */
1131
+ score: number;
1132
+
1133
+ /**
1134
+ * file id
1135
+ */
1136
+ file_id: string;
1137
+
1138
+ /**
1139
+ * filename
1140
+ */
1141
+ filename: string;
1142
+
1143
+ /**
1144
+ * store id
1145
+ */
1146
+ vector_store_id: string;
1147
+
1148
+ /**
1149
+ * file metadata
1150
+ */
1151
+ metadata?: unknown;
1152
+
1153
+ /**
1154
+ * Input type identifier
1155
+ */
1156
+ type?: 'audio_url';
1157
+
1158
+ /**
1159
+ * speech recognition (sr) text of the audio
1160
+ */
1161
+ transcription?: string | null;
1162
+
1163
+ /**
1164
+ * summary of the audio
1165
+ */
1166
+ summary?: string | null;
1167
+
1168
+ /**
1169
+ * The audio input specification.
1170
+ */
1171
+ audio_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioURL;
1172
+
1173
+ /**
1174
+ * The sampling rate of the audio.
1175
+ */
1176
+ sampling_rate: number;
1177
+ }
1178
+
1179
+ export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
1180
+ /**
1181
+ * The audio input specification.
1182
+ */
1183
+ export interface AudioURL {
1184
+ /**
1185
+ * The audio URL. Can be either a URL or a Data URI.
1186
+ */
1187
+ url: string;
1188
+ }
1189
+ }
1190
+
1191
+ /**
1192
+ * Scored video chunk for deprecated API.
1193
+ */
1194
+ export interface MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
1195
+ /**
1196
+ * position of the chunk in a file
1197
+ */
1198
+ chunk_index: number;
1199
+
1200
+ /**
1201
+ * mime type of the chunk
1202
+ */
1203
+ mime_type?: string;
1204
+
1205
+ /**
1206
+ * metadata of the chunk
1207
+ */
1208
+ generated_metadata?: { [key: string]: unknown } | null;
1209
+
1210
+ /**
1211
+ * model used for this chunk
1212
+ */
1213
+ model?: string | null;
1214
+
1215
+ /**
1216
+ * score of the chunk
1217
+ */
1218
+ score: number;
1219
+
1220
+ /**
1221
+ * file id
1222
+ */
1223
+ file_id: string;
1224
+
1225
+ /**
1226
+ * filename
1227
+ */
1228
+ filename: string;
1229
+
1230
+ /**
1231
+ * store id
1232
+ */
1233
+ vector_store_id: string;
1234
+
1235
+ /**
1236
+ * file metadata
1237
+ */
1238
+ metadata?: unknown;
1239
+
1240
+ /**
1241
+ * Input type identifier
1242
+ */
1243
+ type?: 'video_url';
1244
+
1245
+ /**
1246
+ * speech recognition (sr) text of the video
1247
+ */
1248
+ transcription?: string | null;
1249
+
1250
+ /**
1251
+ * summary of the video
1252
+ */
1253
+ summary?: string | null;
1254
+
1255
+ /**
1256
+ * The video input specification.
1257
+ */
1258
+ video_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.VideoURL;
1259
+ }
1260
+
1261
+ export namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
1262
+ /**
1263
+ * The video input specification.
1264
+ */
1265
+ export interface VideoURL {
1266
+ /**
1267
+ * The video URL. Can be either a URL or a Data URI.
1268
+ */
1269
+ url: string;
1270
+ }
1271
+ }
1272
+ }
1273
+
648
1274
  export interface VectorStoreCreateParams {
649
1275
  /**
650
1276
  * Name for the new vector store
@@ -662,7 +1288,7 @@ export interface VectorStoreCreateParams {
662
1288
  is_public?: boolean;
663
1289
 
664
1290
  /**
665
- * Represents an expiration policy for a vector store.
1291
+ * Represents an expiration policy for a store.
666
1292
  */
667
1293
  expires_after?: ExpiresAfter | null;
668
1294
 
@@ -679,7 +1305,7 @@ export interface VectorStoreCreateParams {
679
1305
 
680
1306
  export interface VectorStoreUpdateParams {
681
1307
  /**
682
- * New name for the vector store
1308
+ * New name for the store
683
1309
  */
684
1310
  name?: string | null;
685
1311
 
@@ -694,7 +1320,7 @@ export interface VectorStoreUpdateParams {
694
1320
  is_public?: boolean | null;
695
1321
 
696
1322
  /**
697
- * Represents an expiration policy for a vector store.
1323
+ * Represents an expiration policy for a store.
698
1324
  */
699
1325
  expires_after?: ExpiresAfter | null;
700
1326