@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.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/stores/files.d.mts +218 -12
- package/resources/stores/files.d.mts.map +1 -1
- package/resources/stores/files.d.ts +218 -12
- package/resources/stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.d.mts +436 -24
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +436 -24
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +654 -36
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +654 -36
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/resources/stores/files.ts +390 -4
- package/src/resources/vector-stores/files.ts +780 -8
- package/src/resources/vector-stores/vector-stores.ts +1193 -35
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -76,9 +76,7 @@ export interface ScoredAudioURLInputChunk {
|
|
|
76
76
|
/**
|
|
77
77
|
* metadata of the chunk
|
|
78
78
|
*/
|
|
79
|
-
generated_metadata?:
|
|
80
|
-
[key: string]: unknown;
|
|
81
|
-
} | null;
|
|
79
|
+
generated_metadata?: ScoredAudioURLInputChunk.MarkdownChunkGeneratedMetadata | ScoredAudioURLInputChunk.TextChunkGeneratedMetadata | ScoredAudioURLInputChunk.PdfChunkGeneratedMetadata | ScoredAudioURLInputChunk.CodeChunkGeneratedMetadata | ScoredAudioURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
82
80
|
/**
|
|
83
81
|
* model used for this chunk
|
|
84
82
|
*/
|
|
@@ -125,6 +123,59 @@ export interface ScoredAudioURLInputChunk {
|
|
|
125
123
|
sampling_rate: number;
|
|
126
124
|
}
|
|
127
125
|
export declare namespace ScoredAudioURLInputChunk {
|
|
126
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
127
|
+
type?: 'markdown';
|
|
128
|
+
file_type?: 'text/markdown';
|
|
129
|
+
language: string;
|
|
130
|
+
word_count: number;
|
|
131
|
+
file_size: number;
|
|
132
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
133
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
134
|
+
[k: string]: unknown;
|
|
135
|
+
}
|
|
136
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
137
|
+
interface ChunkHeading {
|
|
138
|
+
level: number;
|
|
139
|
+
text: string;
|
|
140
|
+
}
|
|
141
|
+
interface HeadingContext {
|
|
142
|
+
level: number;
|
|
143
|
+
text: string;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
interface TextChunkGeneratedMetadata {
|
|
147
|
+
type?: 'text';
|
|
148
|
+
file_type?: 'text/plain';
|
|
149
|
+
language: string;
|
|
150
|
+
word_count: number;
|
|
151
|
+
file_size: number;
|
|
152
|
+
[k: string]: unknown;
|
|
153
|
+
}
|
|
154
|
+
interface PdfChunkGeneratedMetadata {
|
|
155
|
+
type?: 'pdf';
|
|
156
|
+
file_type?: 'application/pdf';
|
|
157
|
+
total_pages: number;
|
|
158
|
+
total_size: number;
|
|
159
|
+
[k: string]: unknown;
|
|
160
|
+
}
|
|
161
|
+
interface CodeChunkGeneratedMetadata {
|
|
162
|
+
type?: 'code';
|
|
163
|
+
file_type: string;
|
|
164
|
+
language: string;
|
|
165
|
+
word_count: number;
|
|
166
|
+
file_size: number;
|
|
167
|
+
[k: string]: unknown;
|
|
168
|
+
}
|
|
169
|
+
interface AudioChunkGeneratedMetadata {
|
|
170
|
+
type?: 'audio';
|
|
171
|
+
file_type: string;
|
|
172
|
+
file_size: number;
|
|
173
|
+
total_duration_seconds: number;
|
|
174
|
+
sample_rate: number;
|
|
175
|
+
channels: number;
|
|
176
|
+
audio_format: number;
|
|
177
|
+
[k: string]: unknown;
|
|
178
|
+
}
|
|
128
179
|
/**
|
|
129
180
|
* The audio input specification.
|
|
130
181
|
*/
|
|
@@ -147,9 +198,7 @@ export interface ScoredImageURLInputChunk {
|
|
|
147
198
|
/**
|
|
148
199
|
* metadata of the chunk
|
|
149
200
|
*/
|
|
150
|
-
generated_metadata?:
|
|
151
|
-
[key: string]: unknown;
|
|
152
|
-
} | null;
|
|
201
|
+
generated_metadata?: ScoredImageURLInputChunk.MarkdownChunkGeneratedMetadata | ScoredImageURLInputChunk.TextChunkGeneratedMetadata | ScoredImageURLInputChunk.PdfChunkGeneratedMetadata | ScoredImageURLInputChunk.CodeChunkGeneratedMetadata | ScoredImageURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
153
202
|
/**
|
|
154
203
|
* model used for this chunk
|
|
155
204
|
*/
|
|
@@ -192,6 +241,59 @@ export interface ScoredImageURLInputChunk {
|
|
|
192
241
|
image_url: ScoredImageURLInputChunk.ImageURL;
|
|
193
242
|
}
|
|
194
243
|
export declare namespace ScoredImageURLInputChunk {
|
|
244
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
245
|
+
type?: 'markdown';
|
|
246
|
+
file_type?: 'text/markdown';
|
|
247
|
+
language: string;
|
|
248
|
+
word_count: number;
|
|
249
|
+
file_size: number;
|
|
250
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
251
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
252
|
+
[k: string]: unknown;
|
|
253
|
+
}
|
|
254
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
255
|
+
interface ChunkHeading {
|
|
256
|
+
level: number;
|
|
257
|
+
text: string;
|
|
258
|
+
}
|
|
259
|
+
interface HeadingContext {
|
|
260
|
+
level: number;
|
|
261
|
+
text: string;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
interface TextChunkGeneratedMetadata {
|
|
265
|
+
type?: 'text';
|
|
266
|
+
file_type?: 'text/plain';
|
|
267
|
+
language: string;
|
|
268
|
+
word_count: number;
|
|
269
|
+
file_size: number;
|
|
270
|
+
[k: string]: unknown;
|
|
271
|
+
}
|
|
272
|
+
interface PdfChunkGeneratedMetadata {
|
|
273
|
+
type?: 'pdf';
|
|
274
|
+
file_type?: 'application/pdf';
|
|
275
|
+
total_pages: number;
|
|
276
|
+
total_size: number;
|
|
277
|
+
[k: string]: unknown;
|
|
278
|
+
}
|
|
279
|
+
interface CodeChunkGeneratedMetadata {
|
|
280
|
+
type?: 'code';
|
|
281
|
+
file_type: string;
|
|
282
|
+
language: string;
|
|
283
|
+
word_count: number;
|
|
284
|
+
file_size: number;
|
|
285
|
+
[k: string]: unknown;
|
|
286
|
+
}
|
|
287
|
+
interface AudioChunkGeneratedMetadata {
|
|
288
|
+
type?: 'audio';
|
|
289
|
+
file_type: string;
|
|
290
|
+
file_size: number;
|
|
291
|
+
total_duration_seconds: number;
|
|
292
|
+
sample_rate: number;
|
|
293
|
+
channels: number;
|
|
294
|
+
audio_format: number;
|
|
295
|
+
[k: string]: unknown;
|
|
296
|
+
}
|
|
195
297
|
/**
|
|
196
298
|
* The image input specification.
|
|
197
299
|
*/
|
|
@@ -218,9 +320,7 @@ export interface ScoredTextInputChunk {
|
|
|
218
320
|
/**
|
|
219
321
|
* metadata of the chunk
|
|
220
322
|
*/
|
|
221
|
-
generated_metadata?:
|
|
222
|
-
[key: string]: unknown;
|
|
223
|
-
} | null;
|
|
323
|
+
generated_metadata?: ScoredTextInputChunk.MarkdownChunkGeneratedMetadata | ScoredTextInputChunk.TextChunkGeneratedMetadata | ScoredTextInputChunk.PdfChunkGeneratedMetadata | ScoredTextInputChunk.CodeChunkGeneratedMetadata | ScoredTextInputChunk.AudioChunkGeneratedMetadata | null;
|
|
224
324
|
/**
|
|
225
325
|
* model used for this chunk
|
|
226
326
|
*/
|
|
@@ -258,6 +358,61 @@ export interface ScoredTextInputChunk {
|
|
|
258
358
|
*/
|
|
259
359
|
text: string;
|
|
260
360
|
}
|
|
361
|
+
export declare namespace ScoredTextInputChunk {
|
|
362
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
363
|
+
type?: 'markdown';
|
|
364
|
+
file_type?: 'text/markdown';
|
|
365
|
+
language: string;
|
|
366
|
+
word_count: number;
|
|
367
|
+
file_size: number;
|
|
368
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
369
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
370
|
+
[k: string]: unknown;
|
|
371
|
+
}
|
|
372
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
373
|
+
interface ChunkHeading {
|
|
374
|
+
level: number;
|
|
375
|
+
text: string;
|
|
376
|
+
}
|
|
377
|
+
interface HeadingContext {
|
|
378
|
+
level: number;
|
|
379
|
+
text: string;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
interface TextChunkGeneratedMetadata {
|
|
383
|
+
type?: 'text';
|
|
384
|
+
file_type?: 'text/plain';
|
|
385
|
+
language: string;
|
|
386
|
+
word_count: number;
|
|
387
|
+
file_size: number;
|
|
388
|
+
[k: string]: unknown;
|
|
389
|
+
}
|
|
390
|
+
interface PdfChunkGeneratedMetadata {
|
|
391
|
+
type?: 'pdf';
|
|
392
|
+
file_type?: 'application/pdf';
|
|
393
|
+
total_pages: number;
|
|
394
|
+
total_size: number;
|
|
395
|
+
[k: string]: unknown;
|
|
396
|
+
}
|
|
397
|
+
interface CodeChunkGeneratedMetadata {
|
|
398
|
+
type?: 'code';
|
|
399
|
+
file_type: string;
|
|
400
|
+
language: string;
|
|
401
|
+
word_count: number;
|
|
402
|
+
file_size: number;
|
|
403
|
+
[k: string]: unknown;
|
|
404
|
+
}
|
|
405
|
+
interface AudioChunkGeneratedMetadata {
|
|
406
|
+
type?: 'audio';
|
|
407
|
+
file_type: string;
|
|
408
|
+
file_size: number;
|
|
409
|
+
total_duration_seconds: number;
|
|
410
|
+
sample_rate: number;
|
|
411
|
+
channels: number;
|
|
412
|
+
audio_format: number;
|
|
413
|
+
[k: string]: unknown;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
261
416
|
export interface ScoredVideoURLInputChunk {
|
|
262
417
|
/**
|
|
263
418
|
* position of the chunk in a file
|
|
@@ -270,9 +425,7 @@ export interface ScoredVideoURLInputChunk {
|
|
|
270
425
|
/**
|
|
271
426
|
* metadata of the chunk
|
|
272
427
|
*/
|
|
273
|
-
generated_metadata?:
|
|
274
|
-
[key: string]: unknown;
|
|
275
|
-
} | null;
|
|
428
|
+
generated_metadata?: ScoredVideoURLInputChunk.MarkdownChunkGeneratedMetadata | ScoredVideoURLInputChunk.TextChunkGeneratedMetadata | ScoredVideoURLInputChunk.PdfChunkGeneratedMetadata | ScoredVideoURLInputChunk.CodeChunkGeneratedMetadata | ScoredVideoURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
276
429
|
/**
|
|
277
430
|
* model used for this chunk
|
|
278
431
|
*/
|
|
@@ -315,6 +468,59 @@ export interface ScoredVideoURLInputChunk {
|
|
|
315
468
|
video_url: ScoredVideoURLInputChunk.VideoURL;
|
|
316
469
|
}
|
|
317
470
|
export declare namespace ScoredVideoURLInputChunk {
|
|
471
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
472
|
+
type?: 'markdown';
|
|
473
|
+
file_type?: 'text/markdown';
|
|
474
|
+
language: string;
|
|
475
|
+
word_count: number;
|
|
476
|
+
file_size: number;
|
|
477
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
478
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
479
|
+
[k: string]: unknown;
|
|
480
|
+
}
|
|
481
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
482
|
+
interface ChunkHeading {
|
|
483
|
+
level: number;
|
|
484
|
+
text: string;
|
|
485
|
+
}
|
|
486
|
+
interface HeadingContext {
|
|
487
|
+
level: number;
|
|
488
|
+
text: string;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
interface TextChunkGeneratedMetadata {
|
|
492
|
+
type?: 'text';
|
|
493
|
+
file_type?: 'text/plain';
|
|
494
|
+
language: string;
|
|
495
|
+
word_count: number;
|
|
496
|
+
file_size: number;
|
|
497
|
+
[k: string]: unknown;
|
|
498
|
+
}
|
|
499
|
+
interface PdfChunkGeneratedMetadata {
|
|
500
|
+
type?: 'pdf';
|
|
501
|
+
file_type?: 'application/pdf';
|
|
502
|
+
total_pages: number;
|
|
503
|
+
total_size: number;
|
|
504
|
+
[k: string]: unknown;
|
|
505
|
+
}
|
|
506
|
+
interface CodeChunkGeneratedMetadata {
|
|
507
|
+
type?: 'code';
|
|
508
|
+
file_type: string;
|
|
509
|
+
language: string;
|
|
510
|
+
word_count: number;
|
|
511
|
+
file_size: number;
|
|
512
|
+
[k: string]: unknown;
|
|
513
|
+
}
|
|
514
|
+
interface AudioChunkGeneratedMetadata {
|
|
515
|
+
type?: 'audio';
|
|
516
|
+
file_type: string;
|
|
517
|
+
file_size: number;
|
|
518
|
+
total_duration_seconds: number;
|
|
519
|
+
sample_rate: number;
|
|
520
|
+
channels: number;
|
|
521
|
+
audio_format: number;
|
|
522
|
+
[k: string]: unknown;
|
|
523
|
+
}
|
|
318
524
|
/**
|
|
319
525
|
* The video input specification.
|
|
320
526
|
*/
|
|
@@ -488,9 +694,7 @@ export declare namespace VectorStoreQuestionAnsweringResponse {
|
|
|
488
694
|
/**
|
|
489
695
|
* metadata of the chunk
|
|
490
696
|
*/
|
|
491
|
-
generated_metadata?:
|
|
492
|
-
[key: string]: unknown;
|
|
493
|
-
} | null;
|
|
697
|
+
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.AudioChunkGeneratedMetadata | null;
|
|
494
698
|
/**
|
|
495
699
|
* model used for this chunk
|
|
496
700
|
*/
|
|
@@ -528,6 +732,61 @@ export declare namespace VectorStoreQuestionAnsweringResponse {
|
|
|
528
732
|
*/
|
|
529
733
|
text: string;
|
|
530
734
|
}
|
|
735
|
+
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
|
|
736
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
737
|
+
type?: 'markdown';
|
|
738
|
+
file_type?: 'text/markdown';
|
|
739
|
+
language: string;
|
|
740
|
+
word_count: number;
|
|
741
|
+
file_size: number;
|
|
742
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
743
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
744
|
+
[k: string]: unknown;
|
|
745
|
+
}
|
|
746
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
747
|
+
interface ChunkHeading {
|
|
748
|
+
level: number;
|
|
749
|
+
text: string;
|
|
750
|
+
}
|
|
751
|
+
interface HeadingContext {
|
|
752
|
+
level: number;
|
|
753
|
+
text: string;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
interface TextChunkGeneratedMetadata {
|
|
757
|
+
type?: 'text';
|
|
758
|
+
file_type?: 'text/plain';
|
|
759
|
+
language: string;
|
|
760
|
+
word_count: number;
|
|
761
|
+
file_size: number;
|
|
762
|
+
[k: string]: unknown;
|
|
763
|
+
}
|
|
764
|
+
interface PdfChunkGeneratedMetadata {
|
|
765
|
+
type?: 'pdf';
|
|
766
|
+
file_type?: 'application/pdf';
|
|
767
|
+
total_pages: number;
|
|
768
|
+
total_size: number;
|
|
769
|
+
[k: string]: unknown;
|
|
770
|
+
}
|
|
771
|
+
interface CodeChunkGeneratedMetadata {
|
|
772
|
+
type?: 'code';
|
|
773
|
+
file_type: string;
|
|
774
|
+
language: string;
|
|
775
|
+
word_count: number;
|
|
776
|
+
file_size: number;
|
|
777
|
+
[k: string]: unknown;
|
|
778
|
+
}
|
|
779
|
+
interface AudioChunkGeneratedMetadata {
|
|
780
|
+
type?: 'audio';
|
|
781
|
+
file_type: string;
|
|
782
|
+
file_size: number;
|
|
783
|
+
total_duration_seconds: number;
|
|
784
|
+
sample_rate: number;
|
|
785
|
+
channels: number;
|
|
786
|
+
audio_format: number;
|
|
787
|
+
[k: string]: unknown;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
531
790
|
/**
|
|
532
791
|
* Scored image chunk for deprecated API.
|
|
533
792
|
*/
|
|
@@ -543,9 +802,7 @@ export declare namespace VectorStoreQuestionAnsweringResponse {
|
|
|
543
802
|
/**
|
|
544
803
|
* metadata of the chunk
|
|
545
804
|
*/
|
|
546
|
-
generated_metadata?:
|
|
547
|
-
[key: string]: unknown;
|
|
548
|
-
} | null;
|
|
805
|
+
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
549
806
|
/**
|
|
550
807
|
* model used for this chunk
|
|
551
808
|
*/
|
|
@@ -588,6 +845,59 @@ export declare namespace VectorStoreQuestionAnsweringResponse {
|
|
|
588
845
|
image_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.ImageURL;
|
|
589
846
|
}
|
|
590
847
|
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
|
|
848
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
849
|
+
type?: 'markdown';
|
|
850
|
+
file_type?: 'text/markdown';
|
|
851
|
+
language: string;
|
|
852
|
+
word_count: number;
|
|
853
|
+
file_size: number;
|
|
854
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
855
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
856
|
+
[k: string]: unknown;
|
|
857
|
+
}
|
|
858
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
859
|
+
interface ChunkHeading {
|
|
860
|
+
level: number;
|
|
861
|
+
text: string;
|
|
862
|
+
}
|
|
863
|
+
interface HeadingContext {
|
|
864
|
+
level: number;
|
|
865
|
+
text: string;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
interface TextChunkGeneratedMetadata {
|
|
869
|
+
type?: 'text';
|
|
870
|
+
file_type?: 'text/plain';
|
|
871
|
+
language: string;
|
|
872
|
+
word_count: number;
|
|
873
|
+
file_size: number;
|
|
874
|
+
[k: string]: unknown;
|
|
875
|
+
}
|
|
876
|
+
interface PdfChunkGeneratedMetadata {
|
|
877
|
+
type?: 'pdf';
|
|
878
|
+
file_type?: 'application/pdf';
|
|
879
|
+
total_pages: number;
|
|
880
|
+
total_size: number;
|
|
881
|
+
[k: string]: unknown;
|
|
882
|
+
}
|
|
883
|
+
interface CodeChunkGeneratedMetadata {
|
|
884
|
+
type?: 'code';
|
|
885
|
+
file_type: string;
|
|
886
|
+
language: string;
|
|
887
|
+
word_count: number;
|
|
888
|
+
file_size: number;
|
|
889
|
+
[k: string]: unknown;
|
|
890
|
+
}
|
|
891
|
+
interface AudioChunkGeneratedMetadata {
|
|
892
|
+
type?: 'audio';
|
|
893
|
+
file_type: string;
|
|
894
|
+
file_size: number;
|
|
895
|
+
total_duration_seconds: number;
|
|
896
|
+
sample_rate: number;
|
|
897
|
+
channels: number;
|
|
898
|
+
audio_format: number;
|
|
899
|
+
[k: string]: unknown;
|
|
900
|
+
}
|
|
591
901
|
/**
|
|
592
902
|
* The image input specification.
|
|
593
903
|
*/
|
|
@@ -617,9 +927,7 @@ export declare namespace VectorStoreQuestionAnsweringResponse {
|
|
|
617
927
|
/**
|
|
618
928
|
* metadata of the chunk
|
|
619
929
|
*/
|
|
620
|
-
generated_metadata?:
|
|
621
|
-
[key: string]: unknown;
|
|
622
|
-
} | null;
|
|
930
|
+
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
623
931
|
/**
|
|
624
932
|
* model used for this chunk
|
|
625
933
|
*/
|
|
@@ -666,6 +974,59 @@ export declare namespace VectorStoreQuestionAnsweringResponse {
|
|
|
666
974
|
sampling_rate: number;
|
|
667
975
|
}
|
|
668
976
|
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
|
|
977
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
978
|
+
type?: 'markdown';
|
|
979
|
+
file_type?: 'text/markdown';
|
|
980
|
+
language: string;
|
|
981
|
+
word_count: number;
|
|
982
|
+
file_size: number;
|
|
983
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
984
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
985
|
+
[k: string]: unknown;
|
|
986
|
+
}
|
|
987
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
988
|
+
interface ChunkHeading {
|
|
989
|
+
level: number;
|
|
990
|
+
text: string;
|
|
991
|
+
}
|
|
992
|
+
interface HeadingContext {
|
|
993
|
+
level: number;
|
|
994
|
+
text: string;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
interface TextChunkGeneratedMetadata {
|
|
998
|
+
type?: 'text';
|
|
999
|
+
file_type?: 'text/plain';
|
|
1000
|
+
language: string;
|
|
1001
|
+
word_count: number;
|
|
1002
|
+
file_size: number;
|
|
1003
|
+
[k: string]: unknown;
|
|
1004
|
+
}
|
|
1005
|
+
interface PdfChunkGeneratedMetadata {
|
|
1006
|
+
type?: 'pdf';
|
|
1007
|
+
file_type?: 'application/pdf';
|
|
1008
|
+
total_pages: number;
|
|
1009
|
+
total_size: number;
|
|
1010
|
+
[k: string]: unknown;
|
|
1011
|
+
}
|
|
1012
|
+
interface CodeChunkGeneratedMetadata {
|
|
1013
|
+
type?: 'code';
|
|
1014
|
+
file_type: string;
|
|
1015
|
+
language: string;
|
|
1016
|
+
word_count: number;
|
|
1017
|
+
file_size: number;
|
|
1018
|
+
[k: string]: unknown;
|
|
1019
|
+
}
|
|
1020
|
+
interface AudioChunkGeneratedMetadata {
|
|
1021
|
+
type?: 'audio';
|
|
1022
|
+
file_type: string;
|
|
1023
|
+
file_size: number;
|
|
1024
|
+
total_duration_seconds: number;
|
|
1025
|
+
sample_rate: number;
|
|
1026
|
+
channels: number;
|
|
1027
|
+
audio_format: number;
|
|
1028
|
+
[k: string]: unknown;
|
|
1029
|
+
}
|
|
669
1030
|
/**
|
|
670
1031
|
* The audio input specification.
|
|
671
1032
|
*/
|
|
@@ -691,9 +1052,7 @@ export declare namespace VectorStoreQuestionAnsweringResponse {
|
|
|
691
1052
|
/**
|
|
692
1053
|
* metadata of the chunk
|
|
693
1054
|
*/
|
|
694
|
-
generated_metadata?:
|
|
695
|
-
[key: string]: unknown;
|
|
696
|
-
} | null;
|
|
1055
|
+
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
697
1056
|
/**
|
|
698
1057
|
* model used for this chunk
|
|
699
1058
|
*/
|
|
@@ -736,6 +1095,59 @@ export declare namespace VectorStoreQuestionAnsweringResponse {
|
|
|
736
1095
|
video_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.VideoURL;
|
|
737
1096
|
}
|
|
738
1097
|
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
|
|
1098
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
1099
|
+
type?: 'markdown';
|
|
1100
|
+
file_type?: 'text/markdown';
|
|
1101
|
+
language: string;
|
|
1102
|
+
word_count: number;
|
|
1103
|
+
file_size: number;
|
|
1104
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
1105
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
1106
|
+
[k: string]: unknown;
|
|
1107
|
+
}
|
|
1108
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
1109
|
+
interface ChunkHeading {
|
|
1110
|
+
level: number;
|
|
1111
|
+
text: string;
|
|
1112
|
+
}
|
|
1113
|
+
interface HeadingContext {
|
|
1114
|
+
level: number;
|
|
1115
|
+
text: string;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
interface TextChunkGeneratedMetadata {
|
|
1119
|
+
type?: 'text';
|
|
1120
|
+
file_type?: 'text/plain';
|
|
1121
|
+
language: string;
|
|
1122
|
+
word_count: number;
|
|
1123
|
+
file_size: number;
|
|
1124
|
+
[k: string]: unknown;
|
|
1125
|
+
}
|
|
1126
|
+
interface PdfChunkGeneratedMetadata {
|
|
1127
|
+
type?: 'pdf';
|
|
1128
|
+
file_type?: 'application/pdf';
|
|
1129
|
+
total_pages: number;
|
|
1130
|
+
total_size: number;
|
|
1131
|
+
[k: string]: unknown;
|
|
1132
|
+
}
|
|
1133
|
+
interface CodeChunkGeneratedMetadata {
|
|
1134
|
+
type?: 'code';
|
|
1135
|
+
file_type: string;
|
|
1136
|
+
language: string;
|
|
1137
|
+
word_count: number;
|
|
1138
|
+
file_size: number;
|
|
1139
|
+
[k: string]: unknown;
|
|
1140
|
+
}
|
|
1141
|
+
interface AudioChunkGeneratedMetadata {
|
|
1142
|
+
type?: 'audio';
|
|
1143
|
+
file_type: string;
|
|
1144
|
+
file_size: number;
|
|
1145
|
+
total_duration_seconds: number;
|
|
1146
|
+
sample_rate: number;
|
|
1147
|
+
channels: number;
|
|
1148
|
+
audio_format: number;
|
|
1149
|
+
[k: string]: unknown;
|
|
1150
|
+
}
|
|
739
1151
|
/**
|
|
740
1152
|
* The video input specification.
|
|
741
1153
|
*/
|
|
@@ -773,9 +1185,7 @@ export declare namespace VectorStoreSearchResponse {
|
|
|
773
1185
|
/**
|
|
774
1186
|
* metadata of the chunk
|
|
775
1187
|
*/
|
|
776
|
-
generated_metadata?:
|
|
777
|
-
[key: string]: unknown;
|
|
778
|
-
} | null;
|
|
1188
|
+
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk.AudioChunkGeneratedMetadata | null;
|
|
779
1189
|
/**
|
|
780
1190
|
* model used for this chunk
|
|
781
1191
|
*/
|
|
@@ -813,6 +1223,61 @@ export declare namespace VectorStoreSearchResponse {
|
|
|
813
1223
|
*/
|
|
814
1224
|
text: string;
|
|
815
1225
|
}
|
|
1226
|
+
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk {
|
|
1227
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
1228
|
+
type?: 'markdown';
|
|
1229
|
+
file_type?: 'text/markdown';
|
|
1230
|
+
language: string;
|
|
1231
|
+
word_count: number;
|
|
1232
|
+
file_size: number;
|
|
1233
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
1234
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
1235
|
+
[k: string]: unknown;
|
|
1236
|
+
}
|
|
1237
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
1238
|
+
interface ChunkHeading {
|
|
1239
|
+
level: number;
|
|
1240
|
+
text: string;
|
|
1241
|
+
}
|
|
1242
|
+
interface HeadingContext {
|
|
1243
|
+
level: number;
|
|
1244
|
+
text: string;
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
interface TextChunkGeneratedMetadata {
|
|
1248
|
+
type?: 'text';
|
|
1249
|
+
file_type?: 'text/plain';
|
|
1250
|
+
language: string;
|
|
1251
|
+
word_count: number;
|
|
1252
|
+
file_size: number;
|
|
1253
|
+
[k: string]: unknown;
|
|
1254
|
+
}
|
|
1255
|
+
interface PdfChunkGeneratedMetadata {
|
|
1256
|
+
type?: 'pdf';
|
|
1257
|
+
file_type?: 'application/pdf';
|
|
1258
|
+
total_pages: number;
|
|
1259
|
+
total_size: number;
|
|
1260
|
+
[k: string]: unknown;
|
|
1261
|
+
}
|
|
1262
|
+
interface CodeChunkGeneratedMetadata {
|
|
1263
|
+
type?: 'code';
|
|
1264
|
+
file_type: string;
|
|
1265
|
+
language: string;
|
|
1266
|
+
word_count: number;
|
|
1267
|
+
file_size: number;
|
|
1268
|
+
[k: string]: unknown;
|
|
1269
|
+
}
|
|
1270
|
+
interface AudioChunkGeneratedMetadata {
|
|
1271
|
+
type?: 'audio';
|
|
1272
|
+
file_type: string;
|
|
1273
|
+
file_size: number;
|
|
1274
|
+
total_duration_seconds: number;
|
|
1275
|
+
sample_rate: number;
|
|
1276
|
+
channels: number;
|
|
1277
|
+
audio_format: number;
|
|
1278
|
+
[k: string]: unknown;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
816
1281
|
/**
|
|
817
1282
|
* Scored image chunk for deprecated API.
|
|
818
1283
|
*/
|
|
@@ -828,9 +1293,7 @@ export declare namespace VectorStoreSearchResponse {
|
|
|
828
1293
|
/**
|
|
829
1294
|
* metadata of the chunk
|
|
830
1295
|
*/
|
|
831
|
-
generated_metadata?:
|
|
832
|
-
[key: string]: unknown;
|
|
833
|
-
} | null;
|
|
1296
|
+
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
834
1297
|
/**
|
|
835
1298
|
* model used for this chunk
|
|
836
1299
|
*/
|
|
@@ -873,6 +1336,59 @@ export declare namespace VectorStoreSearchResponse {
|
|
|
873
1336
|
image_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk.ImageURL;
|
|
874
1337
|
}
|
|
875
1338
|
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredImageURLInputChunk {
|
|
1339
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
1340
|
+
type?: 'markdown';
|
|
1341
|
+
file_type?: 'text/markdown';
|
|
1342
|
+
language: string;
|
|
1343
|
+
word_count: number;
|
|
1344
|
+
file_size: number;
|
|
1345
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
1346
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
1347
|
+
[k: string]: unknown;
|
|
1348
|
+
}
|
|
1349
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
1350
|
+
interface ChunkHeading {
|
|
1351
|
+
level: number;
|
|
1352
|
+
text: string;
|
|
1353
|
+
}
|
|
1354
|
+
interface HeadingContext {
|
|
1355
|
+
level: number;
|
|
1356
|
+
text: string;
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
interface TextChunkGeneratedMetadata {
|
|
1360
|
+
type?: 'text';
|
|
1361
|
+
file_type?: 'text/plain';
|
|
1362
|
+
language: string;
|
|
1363
|
+
word_count: number;
|
|
1364
|
+
file_size: number;
|
|
1365
|
+
[k: string]: unknown;
|
|
1366
|
+
}
|
|
1367
|
+
interface PdfChunkGeneratedMetadata {
|
|
1368
|
+
type?: 'pdf';
|
|
1369
|
+
file_type?: 'application/pdf';
|
|
1370
|
+
total_pages: number;
|
|
1371
|
+
total_size: number;
|
|
1372
|
+
[k: string]: unknown;
|
|
1373
|
+
}
|
|
1374
|
+
interface CodeChunkGeneratedMetadata {
|
|
1375
|
+
type?: 'code';
|
|
1376
|
+
file_type: string;
|
|
1377
|
+
language: string;
|
|
1378
|
+
word_count: number;
|
|
1379
|
+
file_size: number;
|
|
1380
|
+
[k: string]: unknown;
|
|
1381
|
+
}
|
|
1382
|
+
interface AudioChunkGeneratedMetadata {
|
|
1383
|
+
type?: 'audio';
|
|
1384
|
+
file_type: string;
|
|
1385
|
+
file_size: number;
|
|
1386
|
+
total_duration_seconds: number;
|
|
1387
|
+
sample_rate: number;
|
|
1388
|
+
channels: number;
|
|
1389
|
+
audio_format: number;
|
|
1390
|
+
[k: string]: unknown;
|
|
1391
|
+
}
|
|
876
1392
|
/**
|
|
877
1393
|
* The image input specification.
|
|
878
1394
|
*/
|
|
@@ -902,9 +1418,7 @@ export declare namespace VectorStoreSearchResponse {
|
|
|
902
1418
|
/**
|
|
903
1419
|
* metadata of the chunk
|
|
904
1420
|
*/
|
|
905
|
-
generated_metadata?:
|
|
906
|
-
[key: string]: unknown;
|
|
907
|
-
} | null;
|
|
1421
|
+
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
908
1422
|
/**
|
|
909
1423
|
* model used for this chunk
|
|
910
1424
|
*/
|
|
@@ -951,6 +1465,59 @@ export declare namespace VectorStoreSearchResponse {
|
|
|
951
1465
|
sampling_rate: number;
|
|
952
1466
|
}
|
|
953
1467
|
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredAudioURLInputChunk {
|
|
1468
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
1469
|
+
type?: 'markdown';
|
|
1470
|
+
file_type?: 'text/markdown';
|
|
1471
|
+
language: string;
|
|
1472
|
+
word_count: number;
|
|
1473
|
+
file_size: number;
|
|
1474
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
1475
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
1476
|
+
[k: string]: unknown;
|
|
1477
|
+
}
|
|
1478
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
1479
|
+
interface ChunkHeading {
|
|
1480
|
+
level: number;
|
|
1481
|
+
text: string;
|
|
1482
|
+
}
|
|
1483
|
+
interface HeadingContext {
|
|
1484
|
+
level: number;
|
|
1485
|
+
text: string;
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
interface TextChunkGeneratedMetadata {
|
|
1489
|
+
type?: 'text';
|
|
1490
|
+
file_type?: 'text/plain';
|
|
1491
|
+
language: string;
|
|
1492
|
+
word_count: number;
|
|
1493
|
+
file_size: number;
|
|
1494
|
+
[k: string]: unknown;
|
|
1495
|
+
}
|
|
1496
|
+
interface PdfChunkGeneratedMetadata {
|
|
1497
|
+
type?: 'pdf';
|
|
1498
|
+
file_type?: 'application/pdf';
|
|
1499
|
+
total_pages: number;
|
|
1500
|
+
total_size: number;
|
|
1501
|
+
[k: string]: unknown;
|
|
1502
|
+
}
|
|
1503
|
+
interface CodeChunkGeneratedMetadata {
|
|
1504
|
+
type?: 'code';
|
|
1505
|
+
file_type: string;
|
|
1506
|
+
language: string;
|
|
1507
|
+
word_count: number;
|
|
1508
|
+
file_size: number;
|
|
1509
|
+
[k: string]: unknown;
|
|
1510
|
+
}
|
|
1511
|
+
interface AudioChunkGeneratedMetadata {
|
|
1512
|
+
type?: 'audio';
|
|
1513
|
+
file_type: string;
|
|
1514
|
+
file_size: number;
|
|
1515
|
+
total_duration_seconds: number;
|
|
1516
|
+
sample_rate: number;
|
|
1517
|
+
channels: number;
|
|
1518
|
+
audio_format: number;
|
|
1519
|
+
[k: string]: unknown;
|
|
1520
|
+
}
|
|
954
1521
|
/**
|
|
955
1522
|
* The audio input specification.
|
|
956
1523
|
*/
|
|
@@ -976,9 +1543,7 @@ export declare namespace VectorStoreSearchResponse {
|
|
|
976
1543
|
/**
|
|
977
1544
|
* metadata of the chunk
|
|
978
1545
|
*/
|
|
979
|
-
generated_metadata?:
|
|
980
|
-
[key: string]: unknown;
|
|
981
|
-
} | null;
|
|
1546
|
+
generated_metadata?: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.MarkdownChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.TextChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.PdfChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.CodeChunkGeneratedMetadata | MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.AudioChunkGeneratedMetadata | null;
|
|
982
1547
|
/**
|
|
983
1548
|
* model used for this chunk
|
|
984
1549
|
*/
|
|
@@ -1021,6 +1586,59 @@ export declare namespace VectorStoreSearchResponse {
|
|
|
1021
1586
|
video_url: MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk.VideoURL;
|
|
1022
1587
|
}
|
|
1023
1588
|
namespace MxbaiOmniAPIRoutesV1DeprecatedVectorStoresModelsScoredVideoURLInputChunk {
|
|
1589
|
+
interface MarkdownChunkGeneratedMetadata {
|
|
1590
|
+
type?: 'markdown';
|
|
1591
|
+
file_type?: 'text/markdown';
|
|
1592
|
+
language: string;
|
|
1593
|
+
word_count: number;
|
|
1594
|
+
file_size: number;
|
|
1595
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
1596
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
1597
|
+
[k: string]: unknown;
|
|
1598
|
+
}
|
|
1599
|
+
namespace MarkdownChunkGeneratedMetadata {
|
|
1600
|
+
interface ChunkHeading {
|
|
1601
|
+
level: number;
|
|
1602
|
+
text: string;
|
|
1603
|
+
}
|
|
1604
|
+
interface HeadingContext {
|
|
1605
|
+
level: number;
|
|
1606
|
+
text: string;
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
interface TextChunkGeneratedMetadata {
|
|
1610
|
+
type?: 'text';
|
|
1611
|
+
file_type?: 'text/plain';
|
|
1612
|
+
language: string;
|
|
1613
|
+
word_count: number;
|
|
1614
|
+
file_size: number;
|
|
1615
|
+
[k: string]: unknown;
|
|
1616
|
+
}
|
|
1617
|
+
interface PdfChunkGeneratedMetadata {
|
|
1618
|
+
type?: 'pdf';
|
|
1619
|
+
file_type?: 'application/pdf';
|
|
1620
|
+
total_pages: number;
|
|
1621
|
+
total_size: number;
|
|
1622
|
+
[k: string]: unknown;
|
|
1623
|
+
}
|
|
1624
|
+
interface CodeChunkGeneratedMetadata {
|
|
1625
|
+
type?: 'code';
|
|
1626
|
+
file_type: string;
|
|
1627
|
+
language: string;
|
|
1628
|
+
word_count: number;
|
|
1629
|
+
file_size: number;
|
|
1630
|
+
[k: string]: unknown;
|
|
1631
|
+
}
|
|
1632
|
+
interface AudioChunkGeneratedMetadata {
|
|
1633
|
+
type?: 'audio';
|
|
1634
|
+
file_type: string;
|
|
1635
|
+
file_size: number;
|
|
1636
|
+
total_duration_seconds: number;
|
|
1637
|
+
sample_rate: number;
|
|
1638
|
+
channels: number;
|
|
1639
|
+
audio_format: number;
|
|
1640
|
+
[k: string]: unknown;
|
|
1641
|
+
}
|
|
1024
1642
|
/**
|
|
1025
1643
|
* The video input specification.
|
|
1026
1644
|
*/
|