@mixedbread/sdk 0.21.0 → 0.22.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/client.d.mts +1 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -0
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/shared.d.mts +17 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +17 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/vector-stores/files.d.mts +121 -36
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +121 -36
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +14 -0
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +14 -0
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.mts +1 -1
- package/resources/vector-stores/index.d.mts.map +1 -1
- package/resources/vector-stores/index.d.ts +1 -1
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/index.js.map +1 -1
- package/resources/vector-stores/index.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts +4 -74
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +4 -74
- 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/client.ts +1 -0
- package/src/resources/shared.ts +20 -0
- package/src/resources/vector-stores/files.ts +150 -42
- package/src/resources/vector-stores/index.ts +2 -0
- package/src/resources/vector-stores/vector-stores.ts +8 -91
- 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
|
@@ -47,6 +47,25 @@ export class Files extends APIResource {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* List files indexed in a vector store with pagination and metadata filter.
|
|
52
|
+
*
|
|
53
|
+
* Args: vector_store_identifier: The ID or name of the vector store pagination:
|
|
54
|
+
* Pagination parameters and metadata filter
|
|
55
|
+
*
|
|
56
|
+
* Returns: VectorStoreFileListResponse: Paginated list of vector store files
|
|
57
|
+
*/
|
|
58
|
+
list(
|
|
59
|
+
vectorStoreIdentifier: string,
|
|
60
|
+
body: FileListParams,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): APIPromise<FileListResponse> {
|
|
63
|
+
return this._client.post(path`/v1/vector_stores/${vectorStoreIdentifier}/files/list`, {
|
|
64
|
+
body,
|
|
65
|
+
...options,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
|
|
50
69
|
/**
|
|
51
70
|
* Delete a file from a vector store.
|
|
52
71
|
*
|
|
@@ -492,6 +511,95 @@ export namespace VectorStoreFile {
|
|
|
492
511
|
}
|
|
493
512
|
}
|
|
494
513
|
|
|
514
|
+
export interface FileListResponse {
|
|
515
|
+
/**
|
|
516
|
+
* Response model for cursor-based pagination.
|
|
517
|
+
*
|
|
518
|
+
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
|
519
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
|
520
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
|
521
|
+
*
|
|
522
|
+
* Final page response:
|
|
523
|
+
* {
|
|
524
|
+
* "has_more": false,
|
|
525
|
+
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
|
526
|
+
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
|
527
|
+
* "total": 42
|
|
528
|
+
* }
|
|
529
|
+
*
|
|
530
|
+
* Empty results:
|
|
531
|
+
* {
|
|
532
|
+
* "has_more": false,
|
|
533
|
+
* "first_cursor": null,
|
|
534
|
+
* "last_cursor": null,
|
|
535
|
+
* "total": 0
|
|
536
|
+
* }
|
|
537
|
+
*/
|
|
538
|
+
pagination: FileListResponse.Pagination;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* The object type of the response
|
|
542
|
+
*/
|
|
543
|
+
object?: 'list';
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* The list of vector store files
|
|
547
|
+
*/
|
|
548
|
+
data: Array<VectorStoreFile>;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
export namespace FileListResponse {
|
|
552
|
+
/**
|
|
553
|
+
* Response model for cursor-based pagination.
|
|
554
|
+
*
|
|
555
|
+
* Examples: Forward pagination response: { "has_more": true, "first_cursor":
|
|
556
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMSIsImlkIjoiYWJjMTIzIn0=", "last_cursor":
|
|
557
|
+
* "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMCIsImlkIjoieHl6Nzg5In0=", "total": null }
|
|
558
|
+
*
|
|
559
|
+
* Final page response:
|
|
560
|
+
* {
|
|
561
|
+
* "has_more": false,
|
|
562
|
+
* "first_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOSIsImlkIjoibGFzdDEyMyJ9",
|
|
563
|
+
* "last_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0yOCIsImlkIjoiZmluYWw0NTYifQ==",
|
|
564
|
+
* "total": 42
|
|
565
|
+
* }
|
|
566
|
+
*
|
|
567
|
+
* Empty results:
|
|
568
|
+
* {
|
|
569
|
+
* "has_more": false,
|
|
570
|
+
* "first_cursor": null,
|
|
571
|
+
* "last_cursor": null,
|
|
572
|
+
* "total": 0
|
|
573
|
+
* }
|
|
574
|
+
*/
|
|
575
|
+
export interface Pagination {
|
|
576
|
+
/**
|
|
577
|
+
* Contextual direction-aware flag: True if more items exist in the requested
|
|
578
|
+
* pagination direction. For 'after': more items after this page. For 'before':
|
|
579
|
+
* more items before this page.
|
|
580
|
+
*/
|
|
581
|
+
has_more: boolean;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Cursor of the first item in this page. Use for backward pagination. None if page
|
|
585
|
+
* is empty.
|
|
586
|
+
*/
|
|
587
|
+
first_cursor: string | null;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Cursor of the last item in this page. Use for forward pagination. None if page
|
|
591
|
+
* is empty.
|
|
592
|
+
*/
|
|
593
|
+
last_cursor: string | null;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Total number of items available across all pages. Only included when
|
|
597
|
+
* include_total=true was requested. Expensive operation - use sparingly.
|
|
598
|
+
*/
|
|
599
|
+
total?: number | null;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
495
603
|
/**
|
|
496
604
|
* Response model for file deletion.
|
|
497
605
|
*/
|
|
@@ -570,6 +678,44 @@ export interface FileRetrieveParams {
|
|
|
570
678
|
return_chunks?: boolean;
|
|
571
679
|
}
|
|
572
680
|
|
|
681
|
+
export interface FileListParams {
|
|
682
|
+
/**
|
|
683
|
+
* Maximum number of items to return per page (1-100)
|
|
684
|
+
*/
|
|
685
|
+
limit?: number;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Cursor for forward pagination - get items after this position. Use last_cursor
|
|
689
|
+
* from previous response.
|
|
690
|
+
*/
|
|
691
|
+
after?: string | null;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Cursor for backward pagination - get items before this position. Use
|
|
695
|
+
* first_cursor from previous response.
|
|
696
|
+
*/
|
|
697
|
+
before?: string | null;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Whether to include total count in response (expensive operation)
|
|
701
|
+
*/
|
|
702
|
+
include_total?: boolean;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Status to filter by
|
|
706
|
+
*/
|
|
707
|
+
statuses?: Array<VectorStoreFileStatus> | null;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Metadata filter to apply to the query
|
|
711
|
+
*/
|
|
712
|
+
metadata_filter?:
|
|
713
|
+
| Shared.SearchFilter
|
|
714
|
+
| Shared.SearchFilterCondition
|
|
715
|
+
| Array<Shared.SearchFilter | Shared.SearchFilterCondition>
|
|
716
|
+
| null;
|
|
717
|
+
}
|
|
718
|
+
|
|
573
719
|
export interface FileDeleteParams {
|
|
574
720
|
/**
|
|
575
721
|
* The ID or name of the vector store
|
|
@@ -602,9 +748,9 @@ export interface FileSearchParams {
|
|
|
602
748
|
* Optional filter conditions
|
|
603
749
|
*/
|
|
604
750
|
filters?:
|
|
605
|
-
|
|
|
751
|
+
| Shared.SearchFilter
|
|
606
752
|
| Shared.SearchFilterCondition
|
|
607
|
-
| Array<
|
|
753
|
+
| Array<Shared.SearchFilter | Shared.SearchFilterCondition>
|
|
608
754
|
| null;
|
|
609
755
|
|
|
610
756
|
/**
|
|
@@ -619,46 +765,6 @@ export interface FileSearchParams {
|
|
|
619
765
|
}
|
|
620
766
|
|
|
621
767
|
export namespace FileSearchParams {
|
|
622
|
-
/**
|
|
623
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
624
|
-
*/
|
|
625
|
-
export interface MxbaiOmniCoreVectorStoreModelsSearchFilter1 {
|
|
626
|
-
/**
|
|
627
|
-
* List of conditions or filters to be ANDed together
|
|
628
|
-
*/
|
|
629
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* List of conditions or filters to be ORed together
|
|
633
|
-
*/
|
|
634
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
635
|
-
|
|
636
|
-
/**
|
|
637
|
-
* List of conditions or filters to be NOTed
|
|
638
|
-
*/
|
|
639
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
/**
|
|
643
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
644
|
-
*/
|
|
645
|
-
export interface MxbaiOmniCoreVectorStoreModelsSearchFilter1 {
|
|
646
|
-
/**
|
|
647
|
-
* List of conditions or filters to be ANDed together
|
|
648
|
-
*/
|
|
649
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* List of conditions or filters to be ORed together
|
|
653
|
-
*/
|
|
654
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
655
|
-
|
|
656
|
-
/**
|
|
657
|
-
* List of conditions or filters to be NOTed
|
|
658
|
-
*/
|
|
659
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
768
|
/**
|
|
663
769
|
* Search configuration options
|
|
664
770
|
*/
|
|
@@ -706,10 +812,12 @@ export declare namespace Files {
|
|
|
706
812
|
type ScoredVectorStoreFile as ScoredVectorStoreFile,
|
|
707
813
|
type VectorStoreFileStatus as VectorStoreFileStatus,
|
|
708
814
|
type VectorStoreFile as VectorStoreFile,
|
|
815
|
+
type FileListResponse as FileListResponse,
|
|
709
816
|
type FileDeleteResponse as FileDeleteResponse,
|
|
710
817
|
type FileSearchResponse as FileSearchResponse,
|
|
711
818
|
type FileCreateParams as FileCreateParams,
|
|
712
819
|
type FileRetrieveParams as FileRetrieveParams,
|
|
820
|
+
type FileListParams as FileListParams,
|
|
713
821
|
type FileDeleteParams as FileDeleteParams,
|
|
714
822
|
type FileSearchParams as FileSearchParams,
|
|
715
823
|
};
|
|
@@ -6,10 +6,12 @@ export {
|
|
|
6
6
|
type ScoredVectorStoreFile,
|
|
7
7
|
type VectorStoreFileStatus,
|
|
8
8
|
type VectorStoreFile,
|
|
9
|
+
type FileListResponse,
|
|
9
10
|
type FileDeleteResponse,
|
|
10
11
|
type FileSearchResponse,
|
|
11
12
|
type FileCreateParams,
|
|
12
13
|
type FileRetrieveParams,
|
|
14
|
+
type FileListParams,
|
|
13
15
|
type FileDeleteParams,
|
|
14
16
|
type FileSearchParams,
|
|
15
17
|
} from './files';
|
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
FileCreateParams,
|
|
8
8
|
FileDeleteParams,
|
|
9
9
|
FileDeleteResponse,
|
|
10
|
+
FileListParams,
|
|
11
|
+
FileListResponse,
|
|
10
12
|
FileRetrieveParams,
|
|
11
13
|
FileSearchParams,
|
|
12
14
|
FileSearchResponse,
|
|
@@ -730,12 +732,9 @@ export interface VectorStoreQuestionAnsweringParams {
|
|
|
730
732
|
* Optional filter conditions
|
|
731
733
|
*/
|
|
732
734
|
filters?:
|
|
733
|
-
|
|
|
735
|
+
| Shared.SearchFilter
|
|
734
736
|
| Shared.SearchFilterCondition
|
|
735
|
-
| Array<
|
|
736
|
-
| VectorStoreQuestionAnsweringParams.MxbaiOmniCoreVectorStoreModelsSearchFilter1
|
|
737
|
-
| Shared.SearchFilterCondition
|
|
738
|
-
>
|
|
737
|
+
| Array<Shared.SearchFilter | Shared.SearchFilterCondition>
|
|
739
738
|
| null;
|
|
740
739
|
|
|
741
740
|
/**
|
|
@@ -760,46 +759,6 @@ export interface VectorStoreQuestionAnsweringParams {
|
|
|
760
759
|
}
|
|
761
760
|
|
|
762
761
|
export namespace VectorStoreQuestionAnsweringParams {
|
|
763
|
-
/**
|
|
764
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
765
|
-
*/
|
|
766
|
-
export interface MxbaiOmniCoreVectorStoreModelsSearchFilter1 {
|
|
767
|
-
/**
|
|
768
|
-
* List of conditions or filters to be ANDed together
|
|
769
|
-
*/
|
|
770
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* List of conditions or filters to be ORed together
|
|
774
|
-
*/
|
|
775
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
* List of conditions or filters to be NOTed
|
|
779
|
-
*/
|
|
780
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
785
|
-
*/
|
|
786
|
-
export interface MxbaiOmniCoreVectorStoreModelsSearchFilter1 {
|
|
787
|
-
/**
|
|
788
|
-
* List of conditions or filters to be ANDed together
|
|
789
|
-
*/
|
|
790
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* List of conditions or filters to be ORed together
|
|
794
|
-
*/
|
|
795
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
796
|
-
|
|
797
|
-
/**
|
|
798
|
-
* List of conditions or filters to be NOTed
|
|
799
|
-
*/
|
|
800
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
762
|
/**
|
|
804
763
|
* Question answering configuration options
|
|
805
764
|
*/
|
|
@@ -841,11 +800,9 @@ export interface VectorStoreSearchParams {
|
|
|
841
800
|
* Optional filter conditions
|
|
842
801
|
*/
|
|
843
802
|
filters?:
|
|
844
|
-
|
|
|
803
|
+
| Shared.SearchFilter
|
|
845
804
|
| Shared.SearchFilterCondition
|
|
846
|
-
| Array<
|
|
847
|
-
VectorStoreSearchParams.MxbaiOmniCoreVectorStoreModelsSearchFilter1 | Shared.SearchFilterCondition
|
|
848
|
-
>
|
|
805
|
+
| Array<Shared.SearchFilter | Shared.SearchFilterCondition>
|
|
849
806
|
| null;
|
|
850
807
|
|
|
851
808
|
/**
|
|
@@ -859,48 +816,6 @@ export interface VectorStoreSearchParams {
|
|
|
859
816
|
search_options?: VectorStoreChunkSearchOptions;
|
|
860
817
|
}
|
|
861
818
|
|
|
862
|
-
export namespace VectorStoreSearchParams {
|
|
863
|
-
/**
|
|
864
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
865
|
-
*/
|
|
866
|
-
export interface MxbaiOmniCoreVectorStoreModelsSearchFilter1 {
|
|
867
|
-
/**
|
|
868
|
-
* List of conditions or filters to be ANDed together
|
|
869
|
-
*/
|
|
870
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
871
|
-
|
|
872
|
-
/**
|
|
873
|
-
* List of conditions or filters to be ORed together
|
|
874
|
-
*/
|
|
875
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* List of conditions or filters to be NOTed
|
|
879
|
-
*/
|
|
880
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
/**
|
|
884
|
-
* Represents a filter with AND, OR, and NOT conditions.
|
|
885
|
-
*/
|
|
886
|
-
export interface MxbaiOmniCoreVectorStoreModelsSearchFilter1 {
|
|
887
|
-
/**
|
|
888
|
-
* List of conditions or filters to be ANDed together
|
|
889
|
-
*/
|
|
890
|
-
all?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
891
|
-
|
|
892
|
-
/**
|
|
893
|
-
* List of conditions or filters to be ORed together
|
|
894
|
-
*/
|
|
895
|
-
any?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* List of conditions or filters to be NOTed
|
|
899
|
-
*/
|
|
900
|
-
none?: Array<unknown | Shared.SearchFilterCondition> | null;
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
|
|
904
819
|
VectorStores.Files = Files;
|
|
905
820
|
|
|
906
821
|
export declare namespace VectorStores {
|
|
@@ -929,10 +844,12 @@ export declare namespace VectorStores {
|
|
|
929
844
|
type ScoredVectorStoreFile as ScoredVectorStoreFile,
|
|
930
845
|
type VectorStoreFileStatus as VectorStoreFileStatus,
|
|
931
846
|
type VectorStoreFile as VectorStoreFile,
|
|
847
|
+
type FileListResponse as FileListResponse,
|
|
932
848
|
type FileDeleteResponse as FileDeleteResponse,
|
|
933
849
|
type FileSearchResponse as FileSearchResponse,
|
|
934
850
|
type FileCreateParams as FileCreateParams,
|
|
935
851
|
type FileRetrieveParams as FileRetrieveParams,
|
|
852
|
+
type FileListParams as FileListParams,
|
|
936
853
|
type FileDeleteParams as FileDeleteParams,
|
|
937
854
|
type FileSearchParams as FileSearchParams,
|
|
938
855
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.22.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.22.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.22.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.22.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|