@mixedbread/sdk 0.20.0 → 0.21.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 (40) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +0 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +0 -1
  5. package/client.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/shared.d.mts +0 -17
  8. package/resources/shared.d.mts.map +1 -1
  9. package/resources/shared.d.ts +0 -17
  10. package/resources/shared.d.ts.map +1 -1
  11. package/resources/vector-stores/files.d.mts +36 -121
  12. package/resources/vector-stores/files.d.mts.map +1 -1
  13. package/resources/vector-stores/files.d.ts +36 -121
  14. package/resources/vector-stores/files.d.ts.map +1 -1
  15. package/resources/vector-stores/files.js +0 -14
  16. package/resources/vector-stores/files.js.map +1 -1
  17. package/resources/vector-stores/files.mjs +0 -14
  18. package/resources/vector-stores/files.mjs.map +1 -1
  19. package/resources/vector-stores/index.d.mts +1 -1
  20. package/resources/vector-stores/index.d.mts.map +1 -1
  21. package/resources/vector-stores/index.d.ts +1 -1
  22. package/resources/vector-stores/index.d.ts.map +1 -1
  23. package/resources/vector-stores/index.js.map +1 -1
  24. package/resources/vector-stores/index.mjs.map +1 -1
  25. package/resources/vector-stores/vector-stores.d.mts +74 -4
  26. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  27. package/resources/vector-stores/vector-stores.d.ts +74 -4
  28. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  29. package/resources/vector-stores/vector-stores.js.map +1 -1
  30. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  31. package/src/client.ts +0 -1
  32. package/src/resources/shared.ts +0 -20
  33. package/src/resources/vector-stores/files.ts +42 -150
  34. package/src/resources/vector-stores/index.ts +0 -2
  35. package/src/resources/vector-stores/vector-stores.ts +91 -8
  36. package/src/version.ts +1 -1
  37. package/version.d.mts +1 -1
  38. package/version.d.ts +1 -1
  39. package/version.js +1 -1
  40. package/version.mjs +1 -1
@@ -47,25 +47,6 @@ 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
-
69
50
  /**
70
51
  * Delete a file from a vector store.
71
52
  *
@@ -511,95 +492,6 @@ export namespace VectorStoreFile {
511
492
  }
512
493
  }
513
494
 
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
-
603
495
  /**
604
496
  * Response model for file deletion.
605
497
  */
@@ -678,44 +570,6 @@ export interface FileRetrieveParams {
678
570
  return_chunks?: boolean;
679
571
  }
680
572
 
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
-
719
573
  export interface FileDeleteParams {
720
574
  /**
721
575
  * The ID or name of the vector store
@@ -748,9 +602,9 @@ export interface FileSearchParams {
748
602
  * Optional filter conditions
749
603
  */
750
604
  filters?:
751
- | Shared.SearchFilter
605
+ | FileSearchParams.MxbaiOmniCoreVectorStoreModelsSearchFilter1
752
606
  | Shared.SearchFilterCondition
753
- | Array<Shared.SearchFilter | Shared.SearchFilterCondition>
607
+ | Array<FileSearchParams.MxbaiOmniCoreVectorStoreModelsSearchFilter1 | Shared.SearchFilterCondition>
754
608
  | null;
755
609
 
756
610
  /**
@@ -765,6 +619,46 @@ export interface FileSearchParams {
765
619
  }
766
620
 
767
621
  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
+
768
662
  /**
769
663
  * Search configuration options
770
664
  */
@@ -812,12 +706,10 @@ export declare namespace Files {
812
706
  type ScoredVectorStoreFile as ScoredVectorStoreFile,
813
707
  type VectorStoreFileStatus as VectorStoreFileStatus,
814
708
  type VectorStoreFile as VectorStoreFile,
815
- type FileListResponse as FileListResponse,
816
709
  type FileDeleteResponse as FileDeleteResponse,
817
710
  type FileSearchResponse as FileSearchResponse,
818
711
  type FileCreateParams as FileCreateParams,
819
712
  type FileRetrieveParams as FileRetrieveParams,
820
- type FileListParams as FileListParams,
821
713
  type FileDeleteParams as FileDeleteParams,
822
714
  type FileSearchParams as FileSearchParams,
823
715
  };
@@ -6,12 +6,10 @@ export {
6
6
  type ScoredVectorStoreFile,
7
7
  type VectorStoreFileStatus,
8
8
  type VectorStoreFile,
9
- type FileListResponse,
10
9
  type FileDeleteResponse,
11
10
  type FileSearchResponse,
12
11
  type FileCreateParams,
13
12
  type FileRetrieveParams,
14
- type FileListParams,
15
13
  type FileDeleteParams,
16
14
  type FileSearchParams,
17
15
  } from './files';
@@ -7,8 +7,6 @@ import {
7
7
  FileCreateParams,
8
8
  FileDeleteParams,
9
9
  FileDeleteResponse,
10
- FileListParams,
11
- FileListResponse,
12
10
  FileRetrieveParams,
13
11
  FileSearchParams,
14
12
  FileSearchResponse,
@@ -732,9 +730,12 @@ export interface VectorStoreQuestionAnsweringParams {
732
730
  * Optional filter conditions
733
731
  */
734
732
  filters?:
735
- | Shared.SearchFilter
733
+ | VectorStoreQuestionAnsweringParams.MxbaiOmniCoreVectorStoreModelsSearchFilter1
736
734
  | Shared.SearchFilterCondition
737
- | Array<Shared.SearchFilter | Shared.SearchFilterCondition>
735
+ | Array<
736
+ | VectorStoreQuestionAnsweringParams.MxbaiOmniCoreVectorStoreModelsSearchFilter1
737
+ | Shared.SearchFilterCondition
738
+ >
738
739
  | null;
739
740
 
740
741
  /**
@@ -759,6 +760,46 @@ export interface VectorStoreQuestionAnsweringParams {
759
760
  }
760
761
 
761
762
  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
+
762
803
  /**
763
804
  * Question answering configuration options
764
805
  */
@@ -800,9 +841,11 @@ export interface VectorStoreSearchParams {
800
841
  * Optional filter conditions
801
842
  */
802
843
  filters?:
803
- | Shared.SearchFilter
844
+ | VectorStoreSearchParams.MxbaiOmniCoreVectorStoreModelsSearchFilter1
804
845
  | Shared.SearchFilterCondition
805
- | Array<Shared.SearchFilter | Shared.SearchFilterCondition>
846
+ | Array<
847
+ VectorStoreSearchParams.MxbaiOmniCoreVectorStoreModelsSearchFilter1 | Shared.SearchFilterCondition
848
+ >
806
849
  | null;
807
850
 
808
851
  /**
@@ -816,6 +859,48 @@ export interface VectorStoreSearchParams {
816
859
  search_options?: VectorStoreChunkSearchOptions;
817
860
  }
818
861
 
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
+
819
904
  VectorStores.Files = Files;
820
905
 
821
906
  export declare namespace VectorStores {
@@ -844,12 +929,10 @@ export declare namespace VectorStores {
844
929
  type ScoredVectorStoreFile as ScoredVectorStoreFile,
845
930
  type VectorStoreFileStatus as VectorStoreFileStatus,
846
931
  type VectorStoreFile as VectorStoreFile,
847
- type FileListResponse as FileListResponse,
848
932
  type FileDeleteResponse as FileDeleteResponse,
849
933
  type FileSearchResponse as FileSearchResponse,
850
934
  type FileCreateParams as FileCreateParams,
851
935
  type FileRetrieveParams as FileRetrieveParams,
852
- type FileListParams as FileListParams,
853
936
  type FileDeleteParams as FileDeleteParams,
854
937
  type FileSearchParams as FileSearchParams,
855
938
  };
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.20.0'; // x-release-please-version
1
+ export const VERSION = '0.21.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.0";
1
+ export declare const VERSION = "0.21.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.20.0";
1
+ export declare const VERSION = "0.21.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.20.0'; // x-release-please-version
4
+ exports.VERSION = '0.21.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.20.0'; // x-release-please-version
1
+ export const VERSION = '0.21.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map