@mixedbread/sdk 0.24.1 → 0.26.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 (48) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +2 -2
  3. package/client.d.mts +4 -2
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +4 -2
  6. package/client.d.ts.map +1 -1
  7. package/client.js +1 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +1 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/embeddings.d.mts +1 -2
  13. package/resources/embeddings.d.mts.map +1 -1
  14. package/resources/embeddings.d.ts +1 -2
  15. package/resources/embeddings.d.ts.map +1 -1
  16. package/resources/index.d.mts +1 -1
  17. package/resources/index.d.mts.map +1 -1
  18. package/resources/index.d.ts +1 -1
  19. package/resources/index.d.ts.map +1 -1
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs.map +1 -1
  22. package/resources/top-level.d.mts +1 -1
  23. package/resources/top-level.d.mts.map +1 -1
  24. package/resources/top-level.d.ts +1 -1
  25. package/resources/top-level.d.ts.map +1 -1
  26. package/resources/vector-stores/files.d.mts +10 -54
  27. package/resources/vector-stores/files.d.mts.map +1 -1
  28. package/resources/vector-stores/files.d.ts +10 -54
  29. package/resources/vector-stores/files.d.ts.map +1 -1
  30. package/resources/vector-stores/files.js +4 -4
  31. package/resources/vector-stores/files.mjs +4 -4
  32. package/resources/vector-stores/vector-stores.d.mts +2 -10
  33. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  34. package/resources/vector-stores/vector-stores.d.ts +2 -10
  35. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  36. package/resources/vector-stores/vector-stores.js.map +1 -1
  37. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  38. package/src/client.ts +3 -2
  39. package/src/resources/embeddings.ts +1 -20
  40. package/src/resources/index.ts +1 -1
  41. package/src/resources/top-level.ts +1 -1
  42. package/src/resources/vector-stores/files.ts +11 -56
  43. package/src/resources/vector-stores/vector-stores.ts +2 -12
  44. package/src/version.ts +1 -1
  45. package/version.d.mts +1 -1
  46. package/version.d.ts +1 -1
  47. package/version.js +1 -1
  48. package/version.mjs +1 -1
@@ -12,12 +12,12 @@ import { path } from '../../internal/utils/path';
12
12
 
13
13
  export class Files extends APIResource {
14
14
  /**
15
- * Upload a new file to a vector store for indexing.
15
+ * Add an already uploaded file to a vector store.
16
16
  *
17
- * Args: vector_store_identifier: The ID or name of the vector store to upload to
18
- * file: The file to upload and index
17
+ * Args: vector_store_identifier: The ID or name of the vector store to add the
18
+ * file to file: The file to add and index
19
19
  *
20
- * Returns: VectorStoreFile: Details of the uploaded and indexed file
20
+ * Returns: VectorStoreFile: Details of the added and indexed file
21
21
  */
22
22
  create(
23
23
  vectorStoreIdentifier: string,
@@ -279,7 +279,7 @@ export interface ScoredVectorStoreFile {
279
279
  object?: 'vector_store.file';
280
280
 
281
281
  /**
282
- * chunks
282
+ * Array of scored file chunks
283
283
  */
284
284
  chunks: Array<
285
285
  | VectorStoresAPI.ScoredTextInputChunk
@@ -514,26 +514,6 @@ export namespace VectorStoreFile {
514
514
  export interface FileListResponse {
515
515
  /**
516
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
517
  */
538
518
  pagination: FileListResponse.Pagination;
539
519
 
@@ -551,26 +531,6 @@ export interface FileListResponse {
551
531
  export namespace FileListResponse {
552
532
  /**
553
533
  * 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
534
  */
575
535
  export interface Pagination {
576
536
  /**
@@ -633,11 +593,6 @@ export interface FileSearchResponse {
633
593
  }
634
594
 
635
595
  export interface FileCreateParams {
636
- /**
637
- * ID of the file to add
638
- */
639
- file_id: string;
640
-
641
596
  /**
642
597
  * Optional metadata for the file
643
598
  */
@@ -647,6 +602,11 @@ export interface FileCreateParams {
647
602
  * Strategy for adding the file
648
603
  */
649
604
  experimental?: FileCreateParams.Experimental;
605
+
606
+ /**
607
+ * ID of the file to add
608
+ */
609
+ file_id: string;
650
610
  }
651
611
 
652
612
  export namespace FileCreateParams {
@@ -732,12 +692,7 @@ export interface FileSearchParams {
732
692
  /**
733
693
  * IDs or names of vector stores to search
734
694
  */
735
- vector_store_identifiers?: Array<string> | null;
736
-
737
- /**
738
- * @deprecated
739
- */
740
- vector_store_ids?: Array<string> | null;
695
+ vector_store_identifiers: Array<string>;
741
696
 
742
697
  /**
743
698
  * Number of results to return
@@ -716,12 +716,7 @@ export interface VectorStoreQuestionAnsweringParams {
716
716
  /**
717
717
  * IDs or names of vector stores to search
718
718
  */
719
- vector_store_identifiers?: Array<string> | null;
720
-
721
- /**
722
- * @deprecated
723
- */
724
- vector_store_ids?: Array<string> | null;
719
+ vector_store_identifiers: Array<string>;
725
720
 
726
721
  /**
727
722
  * Number of results to return
@@ -784,12 +779,7 @@ export interface VectorStoreSearchParams {
784
779
  /**
785
780
  * IDs or names of vector stores to search
786
781
  */
787
- vector_store_identifiers?: Array<string> | null;
788
-
789
- /**
790
- * @deprecated
791
- */
792
- vector_store_ids?: Array<string> | null;
782
+ vector_store_identifiers: Array<string>;
793
783
 
794
784
  /**
795
785
  * Number of results to return
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.24.1'; // x-release-please-version
1
+ export const VERSION = '0.26.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.24.1";
1
+ export declare const VERSION = "0.26.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.24.1";
1
+ export declare const VERSION = "0.26.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.24.1'; // x-release-please-version
4
+ exports.VERSION = '0.26.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.24.1'; // x-release-please-version
1
+ export const VERSION = '0.26.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map