@mixedbread/sdk 0.28.1 → 0.29.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 +21 -0
- package/package.json +1 -1
- package/resources/vector-stores/files.d.mts +218 -12
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +218 -12
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +221 -15
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +221 -15
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +3 -3
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +3 -3
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/resources/vector-stores/files.ts +390 -4
- package/src/resources/vector-stores/vector-stores.ts +393 -7
- 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
|
@@ -69,10 +69,10 @@ export class VectorStores extends APIResource {
|
|
|
69
69
|
/**
|
|
70
70
|
* List all vector stores with optional search.
|
|
71
71
|
*
|
|
72
|
-
* Args:
|
|
73
|
-
*
|
|
72
|
+
* Args: options: The pagination options including limit, cursor, and optional
|
|
73
|
+
* search query (q)
|
|
74
74
|
*
|
|
75
|
-
* Returns: VectorStoreListResponse: The list of vector stores
|
|
75
|
+
* Returns: VectorStoreListResponse: The list of vector stores
|
|
76
76
|
*/
|
|
77
77
|
list(
|
|
78
78
|
query: VectorStoreListParams | null | undefined = {},
|
|
@@ -157,7 +157,13 @@ export interface ScoredAudioURLInputChunk {
|
|
|
157
157
|
/**
|
|
158
158
|
* metadata of the chunk
|
|
159
159
|
*/
|
|
160
|
-
generated_metadata?:
|
|
160
|
+
generated_metadata?:
|
|
161
|
+
| ScoredAudioURLInputChunk.MarkdownChunkGeneratedMetadata
|
|
162
|
+
| ScoredAudioURLInputChunk.TextChunkGeneratedMetadata
|
|
163
|
+
| ScoredAudioURLInputChunk.PdfChunkGeneratedMetadata
|
|
164
|
+
| ScoredAudioURLInputChunk.CodeChunkGeneratedMetadata
|
|
165
|
+
| ScoredAudioURLInputChunk.AudioChunkGeneratedMetadata
|
|
166
|
+
| null;
|
|
161
167
|
|
|
162
168
|
/**
|
|
163
169
|
* model used for this chunk
|
|
@@ -216,6 +222,96 @@ export interface ScoredAudioURLInputChunk {
|
|
|
216
222
|
}
|
|
217
223
|
|
|
218
224
|
export namespace ScoredAudioURLInputChunk {
|
|
225
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
226
|
+
type?: 'markdown';
|
|
227
|
+
|
|
228
|
+
file_type?: 'text/markdown';
|
|
229
|
+
|
|
230
|
+
language: string;
|
|
231
|
+
|
|
232
|
+
word_count: number;
|
|
233
|
+
|
|
234
|
+
file_size: number;
|
|
235
|
+
|
|
236
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
237
|
+
|
|
238
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
239
|
+
|
|
240
|
+
[k: string]: unknown;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
244
|
+
export interface ChunkHeading {
|
|
245
|
+
level: number;
|
|
246
|
+
|
|
247
|
+
text: string;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface HeadingContext {
|
|
251
|
+
level: number;
|
|
252
|
+
|
|
253
|
+
text: string;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface TextChunkGeneratedMetadata {
|
|
258
|
+
type?: 'text';
|
|
259
|
+
|
|
260
|
+
file_type?: 'text/plain';
|
|
261
|
+
|
|
262
|
+
language: string;
|
|
263
|
+
|
|
264
|
+
word_count: number;
|
|
265
|
+
|
|
266
|
+
file_size: number;
|
|
267
|
+
|
|
268
|
+
[k: string]: unknown;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface PdfChunkGeneratedMetadata {
|
|
272
|
+
type?: 'pdf';
|
|
273
|
+
|
|
274
|
+
file_type?: 'application/pdf';
|
|
275
|
+
|
|
276
|
+
total_pages: number;
|
|
277
|
+
|
|
278
|
+
total_size: number;
|
|
279
|
+
|
|
280
|
+
[k: string]: unknown;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export interface CodeChunkGeneratedMetadata {
|
|
284
|
+
type?: 'code';
|
|
285
|
+
|
|
286
|
+
file_type: string;
|
|
287
|
+
|
|
288
|
+
language: string;
|
|
289
|
+
|
|
290
|
+
word_count: number;
|
|
291
|
+
|
|
292
|
+
file_size: number;
|
|
293
|
+
|
|
294
|
+
[k: string]: unknown;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface AudioChunkGeneratedMetadata {
|
|
298
|
+
type?: 'audio';
|
|
299
|
+
|
|
300
|
+
file_type: string;
|
|
301
|
+
|
|
302
|
+
file_size: number;
|
|
303
|
+
|
|
304
|
+
total_duration_seconds: number;
|
|
305
|
+
|
|
306
|
+
sample_rate: number;
|
|
307
|
+
|
|
308
|
+
channels: number;
|
|
309
|
+
|
|
310
|
+
audio_format: number;
|
|
311
|
+
|
|
312
|
+
[k: string]: unknown;
|
|
313
|
+
}
|
|
314
|
+
|
|
219
315
|
/**
|
|
220
316
|
* The audio input specification.
|
|
221
317
|
*/
|
|
@@ -241,7 +337,13 @@ export interface ScoredImageURLInputChunk {
|
|
|
241
337
|
/**
|
|
242
338
|
* metadata of the chunk
|
|
243
339
|
*/
|
|
244
|
-
generated_metadata?:
|
|
340
|
+
generated_metadata?:
|
|
341
|
+
| ScoredImageURLInputChunk.MarkdownChunkGeneratedMetadata
|
|
342
|
+
| ScoredImageURLInputChunk.TextChunkGeneratedMetadata
|
|
343
|
+
| ScoredImageURLInputChunk.PdfChunkGeneratedMetadata
|
|
344
|
+
| ScoredImageURLInputChunk.CodeChunkGeneratedMetadata
|
|
345
|
+
| ScoredImageURLInputChunk.AudioChunkGeneratedMetadata
|
|
346
|
+
| null;
|
|
245
347
|
|
|
246
348
|
/**
|
|
247
349
|
* model used for this chunk
|
|
@@ -295,6 +397,96 @@ export interface ScoredImageURLInputChunk {
|
|
|
295
397
|
}
|
|
296
398
|
|
|
297
399
|
export namespace ScoredImageURLInputChunk {
|
|
400
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
401
|
+
type?: 'markdown';
|
|
402
|
+
|
|
403
|
+
file_type?: 'text/markdown';
|
|
404
|
+
|
|
405
|
+
language: string;
|
|
406
|
+
|
|
407
|
+
word_count: number;
|
|
408
|
+
|
|
409
|
+
file_size: number;
|
|
410
|
+
|
|
411
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
412
|
+
|
|
413
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
414
|
+
|
|
415
|
+
[k: string]: unknown;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
419
|
+
export interface ChunkHeading {
|
|
420
|
+
level: number;
|
|
421
|
+
|
|
422
|
+
text: string;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export interface HeadingContext {
|
|
426
|
+
level: number;
|
|
427
|
+
|
|
428
|
+
text: string;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export interface TextChunkGeneratedMetadata {
|
|
433
|
+
type?: 'text';
|
|
434
|
+
|
|
435
|
+
file_type?: 'text/plain';
|
|
436
|
+
|
|
437
|
+
language: string;
|
|
438
|
+
|
|
439
|
+
word_count: number;
|
|
440
|
+
|
|
441
|
+
file_size: number;
|
|
442
|
+
|
|
443
|
+
[k: string]: unknown;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export interface PdfChunkGeneratedMetadata {
|
|
447
|
+
type?: 'pdf';
|
|
448
|
+
|
|
449
|
+
file_type?: 'application/pdf';
|
|
450
|
+
|
|
451
|
+
total_pages: number;
|
|
452
|
+
|
|
453
|
+
total_size: number;
|
|
454
|
+
|
|
455
|
+
[k: string]: unknown;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export interface CodeChunkGeneratedMetadata {
|
|
459
|
+
type?: 'code';
|
|
460
|
+
|
|
461
|
+
file_type: string;
|
|
462
|
+
|
|
463
|
+
language: string;
|
|
464
|
+
|
|
465
|
+
word_count: number;
|
|
466
|
+
|
|
467
|
+
file_size: number;
|
|
468
|
+
|
|
469
|
+
[k: string]: unknown;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export interface AudioChunkGeneratedMetadata {
|
|
473
|
+
type?: 'audio';
|
|
474
|
+
|
|
475
|
+
file_type: string;
|
|
476
|
+
|
|
477
|
+
file_size: number;
|
|
478
|
+
|
|
479
|
+
total_duration_seconds: number;
|
|
480
|
+
|
|
481
|
+
sample_rate: number;
|
|
482
|
+
|
|
483
|
+
channels: number;
|
|
484
|
+
|
|
485
|
+
audio_format: number;
|
|
486
|
+
|
|
487
|
+
[k: string]: unknown;
|
|
488
|
+
}
|
|
489
|
+
|
|
298
490
|
/**
|
|
299
491
|
* The image input specification.
|
|
300
492
|
*/
|
|
@@ -325,7 +517,13 @@ export interface ScoredTextInputChunk {
|
|
|
325
517
|
/**
|
|
326
518
|
* metadata of the chunk
|
|
327
519
|
*/
|
|
328
|
-
generated_metadata?:
|
|
520
|
+
generated_metadata?:
|
|
521
|
+
| ScoredTextInputChunk.MarkdownChunkGeneratedMetadata
|
|
522
|
+
| ScoredTextInputChunk.TextChunkGeneratedMetadata
|
|
523
|
+
| ScoredTextInputChunk.PdfChunkGeneratedMetadata
|
|
524
|
+
| ScoredTextInputChunk.CodeChunkGeneratedMetadata
|
|
525
|
+
| ScoredTextInputChunk.AudioChunkGeneratedMetadata
|
|
526
|
+
| null;
|
|
329
527
|
|
|
330
528
|
/**
|
|
331
529
|
* model used for this chunk
|
|
@@ -373,6 +571,98 @@ export interface ScoredTextInputChunk {
|
|
|
373
571
|
text: string;
|
|
374
572
|
}
|
|
375
573
|
|
|
574
|
+
export namespace ScoredTextInputChunk {
|
|
575
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
576
|
+
type?: 'markdown';
|
|
577
|
+
|
|
578
|
+
file_type?: 'text/markdown';
|
|
579
|
+
|
|
580
|
+
language: string;
|
|
581
|
+
|
|
582
|
+
word_count: number;
|
|
583
|
+
|
|
584
|
+
file_size: number;
|
|
585
|
+
|
|
586
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
587
|
+
|
|
588
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
589
|
+
|
|
590
|
+
[k: string]: unknown;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
594
|
+
export interface ChunkHeading {
|
|
595
|
+
level: number;
|
|
596
|
+
|
|
597
|
+
text: string;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export interface HeadingContext {
|
|
601
|
+
level: number;
|
|
602
|
+
|
|
603
|
+
text: string;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export interface TextChunkGeneratedMetadata {
|
|
608
|
+
type?: 'text';
|
|
609
|
+
|
|
610
|
+
file_type?: 'text/plain';
|
|
611
|
+
|
|
612
|
+
language: string;
|
|
613
|
+
|
|
614
|
+
word_count: number;
|
|
615
|
+
|
|
616
|
+
file_size: number;
|
|
617
|
+
|
|
618
|
+
[k: string]: unknown;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export interface PdfChunkGeneratedMetadata {
|
|
622
|
+
type?: 'pdf';
|
|
623
|
+
|
|
624
|
+
file_type?: 'application/pdf';
|
|
625
|
+
|
|
626
|
+
total_pages: number;
|
|
627
|
+
|
|
628
|
+
total_size: number;
|
|
629
|
+
|
|
630
|
+
[k: string]: unknown;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
export interface CodeChunkGeneratedMetadata {
|
|
634
|
+
type?: 'code';
|
|
635
|
+
|
|
636
|
+
file_type: string;
|
|
637
|
+
|
|
638
|
+
language: string;
|
|
639
|
+
|
|
640
|
+
word_count: number;
|
|
641
|
+
|
|
642
|
+
file_size: number;
|
|
643
|
+
|
|
644
|
+
[k: string]: unknown;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
export interface AudioChunkGeneratedMetadata {
|
|
648
|
+
type?: 'audio';
|
|
649
|
+
|
|
650
|
+
file_type: string;
|
|
651
|
+
|
|
652
|
+
file_size: number;
|
|
653
|
+
|
|
654
|
+
total_duration_seconds: number;
|
|
655
|
+
|
|
656
|
+
sample_rate: number;
|
|
657
|
+
|
|
658
|
+
channels: number;
|
|
659
|
+
|
|
660
|
+
audio_format: number;
|
|
661
|
+
|
|
662
|
+
[k: string]: unknown;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
376
666
|
export interface ScoredVideoURLInputChunk {
|
|
377
667
|
/**
|
|
378
668
|
* position of the chunk in a file
|
|
@@ -387,7 +677,13 @@ export interface ScoredVideoURLInputChunk {
|
|
|
387
677
|
/**
|
|
388
678
|
* metadata of the chunk
|
|
389
679
|
*/
|
|
390
|
-
generated_metadata?:
|
|
680
|
+
generated_metadata?:
|
|
681
|
+
| ScoredVideoURLInputChunk.MarkdownChunkGeneratedMetadata
|
|
682
|
+
| ScoredVideoURLInputChunk.TextChunkGeneratedMetadata
|
|
683
|
+
| ScoredVideoURLInputChunk.PdfChunkGeneratedMetadata
|
|
684
|
+
| ScoredVideoURLInputChunk.CodeChunkGeneratedMetadata
|
|
685
|
+
| ScoredVideoURLInputChunk.AudioChunkGeneratedMetadata
|
|
686
|
+
| null;
|
|
391
687
|
|
|
392
688
|
/**
|
|
393
689
|
* model used for this chunk
|
|
@@ -441,6 +737,96 @@ export interface ScoredVideoURLInputChunk {
|
|
|
441
737
|
}
|
|
442
738
|
|
|
443
739
|
export namespace ScoredVideoURLInputChunk {
|
|
740
|
+
export interface MarkdownChunkGeneratedMetadata {
|
|
741
|
+
type?: 'markdown';
|
|
742
|
+
|
|
743
|
+
file_type?: 'text/markdown';
|
|
744
|
+
|
|
745
|
+
language: string;
|
|
746
|
+
|
|
747
|
+
word_count: number;
|
|
748
|
+
|
|
749
|
+
file_size: number;
|
|
750
|
+
|
|
751
|
+
chunk_headings?: Array<MarkdownChunkGeneratedMetadata.ChunkHeading>;
|
|
752
|
+
|
|
753
|
+
heading_context?: Array<MarkdownChunkGeneratedMetadata.HeadingContext>;
|
|
754
|
+
|
|
755
|
+
[k: string]: unknown;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
export namespace MarkdownChunkGeneratedMetadata {
|
|
759
|
+
export interface ChunkHeading {
|
|
760
|
+
level: number;
|
|
761
|
+
|
|
762
|
+
text: string;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export interface HeadingContext {
|
|
766
|
+
level: number;
|
|
767
|
+
|
|
768
|
+
text: string;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
export interface TextChunkGeneratedMetadata {
|
|
773
|
+
type?: 'text';
|
|
774
|
+
|
|
775
|
+
file_type?: 'text/plain';
|
|
776
|
+
|
|
777
|
+
language: string;
|
|
778
|
+
|
|
779
|
+
word_count: number;
|
|
780
|
+
|
|
781
|
+
file_size: number;
|
|
782
|
+
|
|
783
|
+
[k: string]: unknown;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export interface PdfChunkGeneratedMetadata {
|
|
787
|
+
type?: 'pdf';
|
|
788
|
+
|
|
789
|
+
file_type?: 'application/pdf';
|
|
790
|
+
|
|
791
|
+
total_pages: number;
|
|
792
|
+
|
|
793
|
+
total_size: number;
|
|
794
|
+
|
|
795
|
+
[k: string]: unknown;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
export interface CodeChunkGeneratedMetadata {
|
|
799
|
+
type?: 'code';
|
|
800
|
+
|
|
801
|
+
file_type: string;
|
|
802
|
+
|
|
803
|
+
language: string;
|
|
804
|
+
|
|
805
|
+
word_count: number;
|
|
806
|
+
|
|
807
|
+
file_size: number;
|
|
808
|
+
|
|
809
|
+
[k: string]: unknown;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
export interface AudioChunkGeneratedMetadata {
|
|
813
|
+
type?: 'audio';
|
|
814
|
+
|
|
815
|
+
file_type: string;
|
|
816
|
+
|
|
817
|
+
file_size: number;
|
|
818
|
+
|
|
819
|
+
total_duration_seconds: number;
|
|
820
|
+
|
|
821
|
+
sample_rate: number;
|
|
822
|
+
|
|
823
|
+
channels: number;
|
|
824
|
+
|
|
825
|
+
audio_format: number;
|
|
826
|
+
|
|
827
|
+
[k: string]: unknown;
|
|
828
|
+
}
|
|
829
|
+
|
|
444
830
|
/**
|
|
445
831
|
* The video input specification.
|
|
446
832
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.29.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.29.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.29.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.29.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|