@mixedbread/sdk 0.50.2 → 0.52.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 +225 -0
- package/bin/migration-config.json +0 -70
- package/client.d.mts +5 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -7
- package/client.d.ts.map +1 -1
- package/client.js +18 -6
- package/client.js.map +1 -1
- package/client.mjs +18 -6
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/stores/files.d.mts +98 -20
- package/resources/stores/files.d.mts.map +1 -1
- package/resources/stores/files.d.ts +98 -20
- package/resources/stores/files.d.ts.map +1 -1
- package/resources/stores/index.d.mts +1 -1
- package/resources/stores/index.d.mts.map +1 -1
- package/resources/stores/index.d.ts +1 -1
- package/resources/stores/index.d.ts.map +1 -1
- package/resources/stores/index.js.map +1 -1
- package/resources/stores/index.mjs.map +1 -1
- package/resources/stores/stores.d.mts +619 -10
- package/resources/stores/stores.d.mts.map +1 -1
- package/resources/stores/stores.d.ts +619 -10
- package/resources/stores/stores.d.ts.map +1 -1
- package/resources/stores/stores.js.map +1 -1
- package/resources/stores/stores.mjs.map +1 -1
- package/src/client.ts +32 -43
- package/src/internal/parse.ts +6 -0
- package/src/resources/index.ts +5 -19
- package/src/resources/stores/files.ts +140 -19
- package/src/resources/stores/index.ts +5 -0
- package/src/resources/stores/stores.ts +926 -15
- 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
- package/resources/vector-stores/files.d.mts +0 -1379
- package/resources/vector-stores/files.d.mts.map +0 -1
- package/resources/vector-stores/files.d.ts +0 -1379
- package/resources/vector-stores/files.d.ts.map +0 -1
- package/resources/vector-stores/files.js +0 -126
- package/resources/vector-stores/files.js.map +0 -1
- package/resources/vector-stores/files.mjs +0 -121
- package/resources/vector-stores/files.mjs.map +0 -1
- package/resources/vector-stores/index.d.mts +0 -3
- package/resources/vector-stores/index.d.mts.map +0 -1
- package/resources/vector-stores/index.d.ts +0 -3
- package/resources/vector-stores/index.d.ts.map +0 -1
- package/resources/vector-stores/index.js +0 -9
- package/resources/vector-stores/index.js.map +0 -1
- package/resources/vector-stores/index.mjs +0 -4
- package/resources/vector-stores/index.mjs.map +0 -1
- package/resources/vector-stores/vector-stores.d.mts +0 -1885
- package/resources/vector-stores/vector-stores.d.mts.map +0 -1
- package/resources/vector-stores/vector-stores.d.ts +0 -1885
- package/resources/vector-stores/vector-stores.d.ts.map +0 -1
- package/resources/vector-stores/vector-stores.js +0 -75
- package/resources/vector-stores/vector-stores.js.map +0 -1
- package/resources/vector-stores/vector-stores.mjs +0 -70
- package/resources/vector-stores/vector-stores.mjs.map +0 -1
- package/resources/vector-stores.d.mts +0 -2
- package/resources/vector-stores.d.mts.map +0 -1
- package/resources/vector-stores.d.ts +0 -2
- package/resources/vector-stores.d.ts.map +0 -1
- package/resources/vector-stores.js +0 -6
- package/resources/vector-stores.js.map +0 -1
- package/resources/vector-stores.mjs +0 -3
- package/resources/vector-stores.mjs.map +0 -1
- package/src/resources/vector-stores/files.ts +0 -2062
- package/src/resources/vector-stores/index.ts +0 -36
- package/src/resources/vector-stores/vector-stores.ts +0 -2809
- package/src/resources/vector-stores.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,230 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.52.0 (2026-02-20)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.51.0...v0.52.0](https://github.com/mixedbread-ai/mixedbread-ts/compare/v0.51.0...v0.52.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* add adjustments ([d220d27](https://github.com/mixedbread-ai/mixedbread-ts/commit/d220d27538c2b736f08ef5de3295ec0f5da4b59e))
|
|
10
|
+
* add concurrency for upload ([c233f1e](https://github.com/mixedbread-ai/mixedbread-ts/commit/c233f1e9e31d8ebb34f2621a1670693ab792fcf1))
|
|
11
|
+
* add named args to helper functions ([88565ed](https://github.com/mixedbread-ai/mixedbread-ts/commit/88565edddbe10af0837ca5441e2e226a413c3182))
|
|
12
|
+
* **api:** api update ([e1b4da2](https://github.com/mixedbread-ai/mixedbread-ts/commit/e1b4da29e57168cc308c38b4ff7e6d70825cedb2))
|
|
13
|
+
* **api:** api update ([71a4d61](https://github.com/mixedbread-ai/mixedbread-ts/commit/71a4d61d020f76f5460b97c88e807702ce413395))
|
|
14
|
+
* **api:** api update ([7ef58f9](https://github.com/mixedbread-ai/mixedbread-ts/commit/7ef58f9e396d7c58dd4ef83e9c28440abba14efe))
|
|
15
|
+
* **api:** api update ([867ae96](https://github.com/mixedbread-ai/mixedbread-ts/commit/867ae967605f80cdb194dc4b42be26c66e5b10fa))
|
|
16
|
+
* **api:** api update ([04e2b7b](https://github.com/mixedbread-ai/mixedbread-ts/commit/04e2b7b7ab92122e2e368ad1901144e6bf1ec32c))
|
|
17
|
+
* **api:** api update ([874ec01](https://github.com/mixedbread-ai/mixedbread-ts/commit/874ec0122134a5b66b1e2a3d7c17cc7be286b496))
|
|
18
|
+
* **api:** api update ([c2fda13](https://github.com/mixedbread-ai/mixedbread-ts/commit/c2fda13f6ba86fe2e78ec91cb0c3f4c4ef3693fe))
|
|
19
|
+
* **api:** api update ([9151a81](https://github.com/mixedbread-ai/mixedbread-ts/commit/9151a8135c0a97025c34e37488001c9f9522eeb8))
|
|
20
|
+
* **api:** api update ([5de8e77](https://github.com/mixedbread-ai/mixedbread-ts/commit/5de8e77444a8144a847ec9978c4701d8a8832976))
|
|
21
|
+
* **api:** api update ([b549557](https://github.com/mixedbread-ai/mixedbread-ts/commit/b549557829cddae49e969fced201a31d7aebdba3))
|
|
22
|
+
* **api:** api update ([81bb211](https://github.com/mixedbread-ai/mixedbread-ts/commit/81bb211e9e475d507e2f9ad2468bb3e579a8e205))
|
|
23
|
+
* **api:** api update ([888ba97](https://github.com/mixedbread-ai/mixedbread-ts/commit/888ba97f4381ed4e32cb9620e653d197ca386c97))
|
|
24
|
+
* **api:** api update ([6c87ef2](https://github.com/mixedbread-ai/mixedbread-ts/commit/6c87ef2815a472c2e8f2d46c80c3d4997576cf86))
|
|
25
|
+
* **api:** api update ([dd7747c](https://github.com/mixedbread-ai/mixedbread-ts/commit/dd7747cbba45ec5f1eb2d2f7d0afe67f3eccb47b))
|
|
26
|
+
* **api:** api update ([2b7492f](https://github.com/mixedbread-ai/mixedbread-ts/commit/2b7492fd1a1fda735f25d5e1adcf24a579283c52))
|
|
27
|
+
* **api:** api update ([59552ae](https://github.com/mixedbread-ai/mixedbread-ts/commit/59552aef2e176a0248bd8fa816054520f7b8627a))
|
|
28
|
+
* **api:** api update ([d438b3b](https://github.com/mixedbread-ai/mixedbread-ts/commit/d438b3b110bf64e5c10de58b424ed64bab32c7eb))
|
|
29
|
+
* **api:** api update ([cf1b5c7](https://github.com/mixedbread-ai/mixedbread-ts/commit/cf1b5c7f658dca48ea4b1fa14c8f8f68762b40d0))
|
|
30
|
+
* **api:** api update ([8cc4ca0](https://github.com/mixedbread-ai/mixedbread-ts/commit/8cc4ca0063a7c1bae2bb3ed9af58be137a1cbb01))
|
|
31
|
+
* **api:** api update ([14347e7](https://github.com/mixedbread-ai/mixedbread-ts/commit/14347e70fad498be0fc485d251e5280367e2610d))
|
|
32
|
+
* **api:** api update ([3057bbd](https://github.com/mixedbread-ai/mixedbread-ts/commit/3057bbdce48fc8a55aa7074c5a36680c260fc9a6))
|
|
33
|
+
* **api:** api update ([9f96ba7](https://github.com/mixedbread-ai/mixedbread-ts/commit/9f96ba76aeef4bb385c3cbd2c4676aff355d85dd))
|
|
34
|
+
* **api:** api update ([0e5ee9c](https://github.com/mixedbread-ai/mixedbread-ts/commit/0e5ee9c8f6c83b2cfda608e6551343c679960038))
|
|
35
|
+
* **api:** api update ([48b5be0](https://github.com/mixedbread-ai/mixedbread-ts/commit/48b5be060e9eba8391a02a630759ec0988d691ff))
|
|
36
|
+
* **api:** api update ([7bbda4c](https://github.com/mixedbread-ai/mixedbread-ts/commit/7bbda4cfaa76103c9f5443227945d100ca63be9c))
|
|
37
|
+
* **api:** api update ([b31b76d](https://github.com/mixedbread-ai/mixedbread-ts/commit/b31b76d4cbbbc256c273ec3870386fb1ff10cd0b))
|
|
38
|
+
* **api:** api update ([34c7aa7](https://github.com/mixedbread-ai/mixedbread-ts/commit/34c7aa782b1b8015dcabaf3e4937b98214bfc407))
|
|
39
|
+
* **api:** api update ([dbec2a6](https://github.com/mixedbread-ai/mixedbread-ts/commit/dbec2a6c6bff4a5b63dfb9a72c609db1a2151481))
|
|
40
|
+
* **api:** api update ([b8a5760](https://github.com/mixedbread-ai/mixedbread-ts/commit/b8a5760c7383d04b1e013087119e8e59dbe4c51b))
|
|
41
|
+
* **api:** api update ([6feb6bd](https://github.com/mixedbread-ai/mixedbread-ts/commit/6feb6bdd68539eb34be1bb1864be7746e784f8ac))
|
|
42
|
+
* **api:** api update ([2403502](https://github.com/mixedbread-ai/mixedbread-ts/commit/24035028a6a193adfb1ec3f11fad9d59b9b394ed))
|
|
43
|
+
* **api:** api update ([47061c2](https://github.com/mixedbread-ai/mixedbread-ts/commit/47061c2c887387bb57016130fa89a807fbe7de57))
|
|
44
|
+
* **api:** api update ([79f5169](https://github.com/mixedbread-ai/mixedbread-ts/commit/79f516925dfb5d980eea0d9bc87aeaef9d5b8d46))
|
|
45
|
+
* **api:** api update ([6d487f6](https://github.com/mixedbread-ai/mixedbread-ts/commit/6d487f62c45a01ceb3a222e7fb23674f9485bec5))
|
|
46
|
+
* **api:** api update ([c552768](https://github.com/mixedbread-ai/mixedbread-ts/commit/c552768460a8c5639471ad6bf7ad6c3a05c86285))
|
|
47
|
+
* **api:** api update ([12d789a](https://github.com/mixedbread-ai/mixedbread-ts/commit/12d789ac326d6d45aa26d884a2593fc368c996a4))
|
|
48
|
+
* **api:** api update ([3efc226](https://github.com/mixedbread-ai/mixedbread-ts/commit/3efc2266e8d964051995d0409120e1fb85cc2707))
|
|
49
|
+
* **api:** api update ([21a3b68](https://github.com/mixedbread-ai/mixedbread-ts/commit/21a3b68d9475985186f967d40a91a3201bdcfd6a))
|
|
50
|
+
* **api:** api update ([f0ddd7a](https://github.com/mixedbread-ai/mixedbread-ts/commit/f0ddd7aea3b91228bbc0c0ee552194357d6e6286))
|
|
51
|
+
* **api:** api update ([f4a471a](https://github.com/mixedbread-ai/mixedbread-ts/commit/f4a471a470f8683675da47af7a9c617f55ce88d6))
|
|
52
|
+
* **api:** api update ([e7cb592](https://github.com/mixedbread-ai/mixedbread-ts/commit/e7cb5922826dc2f28afd393271819991ae81ae63))
|
|
53
|
+
* **api:** api update ([d9376d3](https://github.com/mixedbread-ai/mixedbread-ts/commit/d9376d30769cdb5019ba6c3553a5ff95890a6dee))
|
|
54
|
+
* **api:** manual updates ([4594ff6](https://github.com/mixedbread-ai/mixedbread-ts/commit/4594ff68f97e0ead0ae037f25a7426554b21393e))
|
|
55
|
+
* **api:** manual updates ([1958a47](https://github.com/mixedbread-ai/mixedbread-ts/commit/1958a4712c66f39ef59e095c6cae86bdb914a8f6))
|
|
56
|
+
* **api:** update via SDK Studio ([83d91d2](https://github.com/mixedbread-ai/mixedbread-ts/commit/83d91d2ec3735007b3abddfabfd867868c315c75))
|
|
57
|
+
* **api:** update via SDK Studio ([3ca01e3](https://github.com/mixedbread-ai/mixedbread-ts/commit/3ca01e352b0a9ab9b9dad3bfe8edc49d59317586))
|
|
58
|
+
* **api:** update via SDK Studio ([c977dfd](https://github.com/mixedbread-ai/mixedbread-ts/commit/c977dfd7337e2b7e96bd2847750ed4c4d55ecbf9))
|
|
59
|
+
* **api:** update via SDK Studio ([e03f8b9](https://github.com/mixedbread-ai/mixedbread-ts/commit/e03f8b9178aa09318742db2bf3d7748f293a700d))
|
|
60
|
+
* **api:** update via SDK Studio ([c8c8568](https://github.com/mixedbread-ai/mixedbread-ts/commit/c8c856893ecb0e48a3809abc0601da89d05d3a55))
|
|
61
|
+
* **api:** update via SDK Studio ([1742494](https://github.com/mixedbread-ai/mixedbread-ts/commit/1742494b242f26e54d4d74618d431c1d9ea9e6dd))
|
|
62
|
+
* **api:** update via SDK Studio ([fc45ea2](https://github.com/mixedbread-ai/mixedbread-ts/commit/fc45ea230150c8d2b25054a83669994baed69012))
|
|
63
|
+
* **api:** update via SDK Studio ([05ff8ed](https://github.com/mixedbread-ai/mixedbread-ts/commit/05ff8ed9704212694dfab4c017055d807d71f267))
|
|
64
|
+
* **api:** update via SDK Studio ([ddb7a91](https://github.com/mixedbread-ai/mixedbread-ts/commit/ddb7a91a44129ccd746cfb3b895c17c76efb3146))
|
|
65
|
+
* **api:** update via SDK Studio ([8ee3682](https://github.com/mixedbread-ai/mixedbread-ts/commit/8ee3682fa6fd0312e5369df919e415047d994bf8))
|
|
66
|
+
* **api:** update via SDK Studio ([dc3f451](https://github.com/mixedbread-ai/mixedbread-ts/commit/dc3f4513b46e596421c6c6017329954136e1f3c8))
|
|
67
|
+
* **api:** update via SDK Studio ([c4e1787](https://github.com/mixedbread-ai/mixedbread-ts/commit/c4e17874dafd04a8ef4f1c99211d68fd6af31330))
|
|
68
|
+
* **api:** update via SDK Studio ([7144fa8](https://github.com/mixedbread-ai/mixedbread-ts/commit/7144fa867fbe2b0c2e2033e9c97bf27299f206b4))
|
|
69
|
+
* **api:** update via SDK Studio ([2594755](https://github.com/mixedbread-ai/mixedbread-ts/commit/25947558646a805847ed4f8c73f088f474c16e73))
|
|
70
|
+
* **api:** update via SDK Studio ([6d68555](https://github.com/mixedbread-ai/mixedbread-ts/commit/6d685553301a370696a36ca244bf2cc1e00e512b))
|
|
71
|
+
* **api:** update via SDK Studio ([edd9331](https://github.com/mixedbread-ai/mixedbread-ts/commit/edd93314a62c424b2fc78b00cd89f9380d18d00f))
|
|
72
|
+
* **api:** update via SDK Studio ([7fd1456](https://github.com/mixedbread-ai/mixedbread-ts/commit/7fd1456a298dd520897ddb6d9353b6db431167f5))
|
|
73
|
+
* **api:** update via SDK Studio ([f79bda7](https://github.com/mixedbread-ai/mixedbread-ts/commit/f79bda7bbf2e3f2a134bedc6cf2ba5d556146d64))
|
|
74
|
+
* **api:** update via SDK Studio ([373d495](https://github.com/mixedbread-ai/mixedbread-ts/commit/373d4950636354d883a735da32fa269d05704c43))
|
|
75
|
+
* **api:** update via SDK Studio ([dff5c03](https://github.com/mixedbread-ai/mixedbread-ts/commit/dff5c03629b87686e5ffa943a392087f3f9d43b4))
|
|
76
|
+
* **api:** use npm oidc ([589363d](https://github.com/mixedbread-ai/mixedbread-ts/commit/589363da714dc289f4e18e4a68a45205937db1c5))
|
|
77
|
+
* **client:** add support for endpoint-specific base URLs ([01cb55b](https://github.com/mixedbread-ai/mixedbread-ts/commit/01cb55bed909db63b728125dd617bc836706a62e))
|
|
78
|
+
* improve types and destructuring of args ([8ebf836](https://github.com/mixedbread-ai/mixedbread-ts/commit/8ebf83643448f8664bf8112665222ae825d05de1))
|
|
79
|
+
* **mcp:** add code execution tool ([ff31b8f](https://github.com/mixedbread-ai/mixedbread-ts/commit/ff31b8f18e073dab9c89ab5e9cc6dc4cbef3a2b1))
|
|
80
|
+
* **mcp:** set X-Stainless-MCP header ([6b5bdbc](https://github.com/mixedbread-ai/mixedbread-ts/commit/6b5bdbc2cdf382b94a01738084c242c4c969d381))
|
|
81
|
+
* update mixedbread sdk + treat vs name as identifier ([fb11dae](https://github.com/mixedbread-ai/mixedbread-ts/commit/fb11dae42a3b6cd4f91dae783f62ede9b9f9272a))
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Bug Fixes
|
|
85
|
+
|
|
86
|
+
* **ci:** release-doctor — report correct token name ([f9b46f1](https://github.com/mixedbread-ai/mixedbread-ts/commit/f9b46f1b5c66d78d7696c7acee461a92afd28cee))
|
|
87
|
+
* **client:** avoid memory leak with abort signals ([50e1ffa](https://github.com/mixedbread-ai/mixedbread-ts/commit/50e1ffa5c535730e79c661d4bf1eac968d1f5174))
|
|
88
|
+
* **client:** avoid removing abort listener too early ([87a65e4](https://github.com/mixedbread-ai/mixedbread-ts/commit/87a65e4ba88bd581d01efa4db17a73a5f4053f0e))
|
|
89
|
+
* **client:** explicitly copy fetch in withOptions ([f6378e1](https://github.com/mixedbread-ai/mixedbread-ts/commit/f6378e14cab529de6b11b85de10b5553eb3fb3e7))
|
|
90
|
+
* **client:** get fetchOptions type more reliably ([1bdd1cd](https://github.com/mixedbread-ai/mixedbread-ts/commit/1bdd1cd724fd841a83fa6d0d60c1e72763bd82db))
|
|
91
|
+
* **client:** incorrect offset pagination check ([ef75606](https://github.com/mixedbread-ai/mixedbread-ts/commit/ef75606620b2e6ae2e953c8211e10ade1d7ea82c))
|
|
92
|
+
* coerce nullable values to undefined ([f260cc4](https://github.com/mixedbread-ai/mixedbread-ts/commit/f260cc45ee33f22f41596d24b4a56a3d5f7d6b3d))
|
|
93
|
+
* **docs:** fix mcp installation instructions for remote servers ([46851b3](https://github.com/mixedbread-ai/mixedbread-ts/commit/46851b3b9febd0d9b8015397599d0b9a1adefef1))
|
|
94
|
+
* **docs:** remove extraneous example object fields ([ac842d4](https://github.com/mixedbread-ai/mixedbread-ts/commit/ac842d4b37ba88408001a185e0b2475d2dfd0eee))
|
|
95
|
+
* fix tests ([2cde2b0](https://github.com/mixedbread-ai/mixedbread-ts/commit/2cde2b0f99666fec5114672b6f39d681cfac6462))
|
|
96
|
+
* make help default command + fix local dev setup ([c294c98](https://github.com/mixedbread-ai/mixedbread-ts/commit/c294c98e58fd7ac038e3d416df06f6fbeef27ab7))
|
|
97
|
+
* **mcp:** correct code tool API endpoint ([83478ea](https://github.com/mixedbread-ai/mixedbread-ts/commit/83478ea0f2345f619f2f20bfb6cf7c9d37d6428f))
|
|
98
|
+
* **mcp:** return correct lines on typescript errors ([0561858](https://github.com/mixedbread-ai/mixedbread-ts/commit/0561858fde20b817aad09b1ca3ac7c107d4ed2ca))
|
|
99
|
+
* move return chunks to helper params ([e6dd999](https://github.com/mixedbread-ai/mixedbread-ts/commit/e6dd999716bc2b5f396ec621416c086c5dd878a2))
|
|
100
|
+
* publish script — handle NPM errors correctly ([b27592b](https://github.com/mixedbread-ai/mixedbread-ts/commit/b27592ba009a84288b90ddb32c2847122e617cf1))
|
|
101
|
+
* **publish:** remove extraneous npm copy from package ([3df5ff2](https://github.com/mixedbread-ai/mixedbread-ts/commit/3df5ff2a151237ca1e9fbe7b4b467feb8ebd30e5))
|
|
102
|
+
* **publish:** use npm registry directly for trusted publishing support ([9bf2648](https://github.com/mixedbread-ai/mixedbread-ts/commit/9bf2648d3633e033e9edbede04b67abc5af19ced))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Performance Improvements
|
|
106
|
+
|
|
107
|
+
* faster formatting ([e27e76c](https://github.com/mixedbread-ai/mixedbread-ts/commit/e27e76c08266fa6cadf872c9e5e20061853e89ec))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Chores
|
|
111
|
+
|
|
112
|
+
* add docs to RequestOptions type ([5f4ad1e](https://github.com/mixedbread-ai/mixedbread-ts/commit/5f4ad1e1443a200756e6fd9cd7a8f6c1261727e1))
|
|
113
|
+
* add package to package.json ([9dfb746](https://github.com/mixedbread-ai/mixedbread-ts/commit/9dfb7469800c44a980cb97469f1f12b19acda432))
|
|
114
|
+
* allow the store to be pulled ([ff53f58](https://github.com/mixedbread-ai/mixedbread-ts/commit/ff53f58723326550249c4bcfe6b67bed88c0e0e6))
|
|
115
|
+
* break long lines in snippets into multiline ([4b55277](https://github.com/mixedbread-ai/mixedbread-ts/commit/4b55277e74e617323dacc04ac06e5a4eb2395ac7))
|
|
116
|
+
* ci build action ([c4a9ae4](https://github.com/mixedbread-ai/mixedbread-ts/commit/c4a9ae4dadcd2d0523976422d8b86339ebfa1002))
|
|
117
|
+
* **ci:** enable for pull requests ([34fda06](https://github.com/mixedbread-ai/mixedbread-ts/commit/34fda06e668dfd45f4e8d9a6c2f2e5e746e26465))
|
|
118
|
+
* **ci:** only run for pushes and fork pull requests ([fbfe775](https://github.com/mixedbread-ai/mixedbread-ts/commit/fbfe775f19a8cddc87f73a748b3c25185892f318))
|
|
119
|
+
* **ci:** upgrade `actions/github-script` ([c4e0854](https://github.com/mixedbread-ai/mixedbread-ts/commit/c4e0854e81151cf9c7b53741b6ca8b80ce7079b1))
|
|
120
|
+
* **client:** do not parse responses with empty content-length ([576bbd8](https://github.com/mixedbread-ai/mixedbread-ts/commit/576bbd802365251026008c3ade61457b14670a1a))
|
|
121
|
+
* **client:** fix logger property type ([9fc9535](https://github.com/mixedbread-ai/mixedbread-ts/commit/9fc95356193765e4fadfd9c9da461c6cd79a0afb))
|
|
122
|
+
* **client:** improve path param validation ([a8119d6](https://github.com/mixedbread-ai/mixedbread-ts/commit/a8119d685b9ef7d70266481bc76cbd3980d45f55))
|
|
123
|
+
* **client:** qualify global Blob ([a422913](https://github.com/mixedbread-ai/mixedbread-ts/commit/a422913c2d95ece42c0e28b6e0e1f9f1507e6297))
|
|
124
|
+
* **client:** refactor imports ([e1b0cbb](https://github.com/mixedbread-ai/mixedbread-ts/commit/e1b0cbb80535d2f3d0854a17642be7acf502f97e))
|
|
125
|
+
* **client:** restructure abort controller binding ([be1e7d0](https://github.com/mixedbread-ai/mixedbread-ts/commit/be1e7d0eb7137385f1c6004e4ad57aa6e7f77680))
|
|
126
|
+
* **deps:** update dependency @types/node to v20.17.58 ([f8557e1](https://github.com/mixedbread-ai/mixedbread-ts/commit/f8557e15028ec2435e4467fbd7a5a7c5656df136))
|
|
127
|
+
* do not install brew dependencies in ./scripts/bootstrap by default ([76fe8c5](https://github.com/mixedbread-ai/mixedbread-ts/commit/76fe8c51790413020e80602778a70e2341f17fc8))
|
|
128
|
+
* fix build ([bbe26ef](https://github.com/mixedbread-ai/mixedbread-ts/commit/bbe26efebabd600ab1cbd4608efd102b11cbc286))
|
|
129
|
+
* fix build ([0c726dc](https://github.com/mixedbread-ai/mixedbread-ts/commit/0c726dccb07d2492d509b711c7148aa2754e1f65))
|
|
130
|
+
* fix build ([5cded30](https://github.com/mixedbread-ai/mixedbread-ts/commit/5cded303d94ed03be96a1c9707e4b630fbe46392))
|
|
131
|
+
* fix lint ([5db9ab7](https://github.com/mixedbread-ai/mixedbread-ts/commit/5db9ab7eb1423bf376fd441c26692330aaef2d3e))
|
|
132
|
+
* fix the release workflow ([032a010](https://github.com/mixedbread-ai/mixedbread-ts/commit/032a0101ab64430065331d1a6b2cc7d56328f0e9))
|
|
133
|
+
* format ([665f1f8](https://github.com/mixedbread-ai/mixedbread-ts/commit/665f1f8d942774f8178b5643ac94cf5391bf2a33))
|
|
134
|
+
* format ([b170720](https://github.com/mixedbread-ai/mixedbread-ts/commit/b1707208f0603dfde8dc407d755b1f25f7ceb5cb))
|
|
135
|
+
* format code ([2fc6118](https://github.com/mixedbread-ai/mixedbread-ts/commit/2fc6118e1d9dbff0b9ff28e83b68edb8e36cb189))
|
|
136
|
+
* format code ([84fdbe5](https://github.com/mixedbread-ai/mixedbread-ts/commit/84fdbe54232b189e097dc628a5adf6fe5f3f4272))
|
|
137
|
+
* **internal/client:** fix form-urlencoded requests ([40205e1](https://github.com/mixedbread-ai/mixedbread-ts/commit/40205e17218aeff6f32f84228241027414cb27e5))
|
|
138
|
+
* **internal:** add pure annotations, make base APIResource abstract ([aff3299](https://github.com/mixedbread-ai/mixedbread-ts/commit/aff3299dcd6d00c739ac8c93435f43ad2fdf7368))
|
|
139
|
+
* **internal:** avoid type checking errors with ts-reset ([91b0eda](https://github.com/mixedbread-ai/mixedbread-ts/commit/91b0edac41dbca06ced975e1d87b98457eff564b))
|
|
140
|
+
* **internal:** codegen related update ([3b7a58b](https://github.com/mixedbread-ai/mixedbread-ts/commit/3b7a58b008dda74833a625460d72bae10d86f8f0))
|
|
141
|
+
* **internal:** codegen related update ([15578e7](https://github.com/mixedbread-ai/mixedbread-ts/commit/15578e7f6847b3021a89bf47d72e4dd6480c0c62))
|
|
142
|
+
* **internal:** codegen related update ([d350a37](https://github.com/mixedbread-ai/mixedbread-ts/commit/d350a3715f3d48dc58f5ebfc6768f089b1a8812d))
|
|
143
|
+
* **internal:** codegen related update ([18bbaa7](https://github.com/mixedbread-ai/mixedbread-ts/commit/18bbaa77fc6c764f5bff26fccc4a50ccbdaf71d0))
|
|
144
|
+
* **internal:** codegen related update ([fcbbc84](https://github.com/mixedbread-ai/mixedbread-ts/commit/fcbbc8463fe486f19d40d7280a6f5871e3e29525))
|
|
145
|
+
* **internal:** codegen related update ([31507fb](https://github.com/mixedbread-ai/mixedbread-ts/commit/31507fb472193ceb6504eb7406201a4c10dbb533))
|
|
146
|
+
* **internal:** fix incremental formatting in some cases ([dfe1da9](https://github.com/mixedbread-ai/mixedbread-ts/commit/dfe1da96cb20721504db57d68f01bb72f2f4fb0f))
|
|
147
|
+
* **internal:** fix pagination internals not accepting option promises ([dde4682](https://github.com/mixedbread-ai/mixedbread-ts/commit/dde468264ebab6268833eafe243bdd9683c743ec))
|
|
148
|
+
* **internal:** formatting change ([57a0228](https://github.com/mixedbread-ai/mixedbread-ts/commit/57a022828589cd5707c8dbe407e0dd2d60af86bf))
|
|
149
|
+
* **internal:** ignore .eslintcache ([7ec4db7](https://github.com/mixedbread-ai/mixedbread-ts/commit/7ec4db7f546d7c8db941e258954424b13d410937))
|
|
150
|
+
* **internal:** improve examples ([6893783](https://github.com/mixedbread-ai/mixedbread-ts/commit/689378343b5de09a308af7d3e2269c766e60b3eb))
|
|
151
|
+
* **internal:** move publish config ([d6a7a72](https://github.com/mixedbread-ai/mixedbread-ts/commit/d6a7a72b27512f3f51431029a1031c431fa86890))
|
|
152
|
+
* **internal:** remove .eslintcache ([ebaa4d7](https://github.com/mixedbread-ai/mixedbread-ts/commit/ebaa4d7ca1ab6f3d474611ff91ee644dfc22abc0))
|
|
153
|
+
* **internal:** remove deprecated `compilerOptions.baseUrl` from tsconfig.json ([b815a67](https://github.com/mixedbread-ai/mixedbread-ts/commit/b815a67a861eec1ca2eb1066addae4aa0865c8d2))
|
|
154
|
+
* **internal:** remove redundant imports config ([7621ca0](https://github.com/mixedbread-ai/mixedbread-ts/commit/7621ca0e7332f4597fcc8b815074399e0d04f94a))
|
|
155
|
+
* **internal:** update `actions/checkout` version ([031ec6d](https://github.com/mixedbread-ai/mixedbread-ts/commit/031ec6d9362e201b83422ea33908804067ecbb97))
|
|
156
|
+
* **internal:** update comment in script ([e71b5c5](https://github.com/mixedbread-ai/mixedbread-ts/commit/e71b5c586672eb64a7c30c47ccad1ff2fe931906))
|
|
157
|
+
* **internal:** update examples ([2b37f34](https://github.com/mixedbread-ai/mixedbread-ts/commit/2b37f344e95e26fcc98d1838b582c8fcd2118569))
|
|
158
|
+
* **internal:** update global Error reference ([a2c2023](https://github.com/mixedbread-ai/mixedbread-ts/commit/a2c2023fe084ea2050fcdc41bc157925806cf34a))
|
|
159
|
+
* **internal:** upgrade babel, qs, js-yaml ([3e223cf](https://github.com/mixedbread-ai/mixedbread-ts/commit/3e223cfbc42069fe7ef15297366b959a75115db2))
|
|
160
|
+
* **internal:** upgrade eslint ([2194b59](https://github.com/mixedbread-ai/mixedbread-ts/commit/2194b5923e78e8e68ff628f34693bb9428c878fb))
|
|
161
|
+
* **internal:** use npm pack for build uploads ([56d17fc](https://github.com/mixedbread-ai/mixedbread-ts/commit/56d17fcfbb6f8b6664a7816ce1c3e8258423a668))
|
|
162
|
+
* **internal:** use some smaller example values ([13c223f](https://github.com/mixedbread-ai/mixedbread-ts/commit/13c223fee17f085771f353fd50cc6fd27497d7ae))
|
|
163
|
+
* **jsdoc:** fix [@link](https://github.com/link) annotations to refer only to parts of the package‘s public interface ([32afecc](https://github.com/mixedbread-ai/mixedbread-ts/commit/32afecc5f3b1424bd36ad6f7dc9c99a2bb852e57))
|
|
164
|
+
* lint ([630f13e](https://github.com/mixedbread-ai/mixedbread-ts/commit/630f13edf1d2a96b2c0e36c981db1079837b9846))
|
|
165
|
+
* **mcp:** provides high-level initMcpServer function and exports known clients ([e12f795](https://github.com/mixedbread-ai/mixedbread-ts/commit/e12f7952a7afc20c85cb881485b62b6e4b55d76f))
|
|
166
|
+
* paginate the sync file fetch ([f9a0668](https://github.com/mixedbread-ai/mixedbread-ts/commit/f9a0668356fd9a92043f8cdebad00b31d2e69e0d))
|
|
167
|
+
* **readme:** update badges ([355a372](https://github.com/mixedbread-ai/mixedbread-ts/commit/355a3720c0ee705f9a048582e467c173126ab7e3))
|
|
168
|
+
* **readme:** use better example snippet for undocumented params ([766ab54](https://github.com/mixedbread-ai/mixedbread-ts/commit/766ab54cf36119da605d6bd196632b7342af2d73))
|
|
169
|
+
* remove cli and mcp-server from release flow ([684d90b](https://github.com/mixedbread-ai/mixedbread-ts/commit/684d90bcc4f3e5eb27ec357e4a2fd96d36fbb22d))
|
|
170
|
+
* remove the npm token ([3b2f56c](https://github.com/mixedbread-ai/mixedbread-ts/commit/3b2f56cdf9e5c33e7fb3c62272917c3a5622f161))
|
|
171
|
+
* rename fileid to fileIdentifier ([73aa1e4](https://github.com/mixedbread-ai/mixedbread-ts/commit/73aa1e4d938c3f563c860f5e2064959007f7d241))
|
|
172
|
+
* separate files command into different files ([6d7317f](https://github.com/mixedbread-ai/mixedbread-ts/commit/6d7317f2f83f8f96b009cbf0a774fbdfae587597))
|
|
173
|
+
* **ts:** reorder package.json imports ([9625540](https://github.com/mixedbread-ai/mixedbread-ts/commit/962554093f4c65b9fde3845c28c6023bc6d9ded1))
|
|
174
|
+
* update @stainless-api/prism-cli to v5.15.0 ([4fd18d9](https://github.com/mixedbread-ai/mixedbread-ts/commit/4fd18d9f298de69887f5e784b3eaf71bd726239c))
|
|
175
|
+
* update build script ([d64cd0d](https://github.com/mixedbread-ai/mixedbread-ts/commit/d64cd0db7b83d32e6f34c8172d115b9888b576fc))
|
|
176
|
+
* update CI script ([c989cf4](https://github.com/mixedbread-ai/mixedbread-ts/commit/c989cf473467664c9f689dac3e7abb6a6e451aad))
|
|
177
|
+
* update cli ([9844c6f](https://github.com/mixedbread-ai/mixedbread-ts/commit/9844c6fd5dcb983254784c633f18364328668b32))
|
|
178
|
+
* update CLI ([cbf0c06](https://github.com/mixedbread-ai/mixedbread-ts/commit/cbf0c067898668f8702c5ee7273d7fc37ee16d9c))
|
|
179
|
+
* update github cli ([ec0a676](https://github.com/mixedbread-ai/mixedbread-ts/commit/ec0a676d7d32928255dc5d3b0903945cf2c12534))
|
|
180
|
+
* update the vs_id ([a488377](https://github.com/mixedbread-ai/mixedbread-ts/commit/a48837750d4e703839c4006bbbc34ab9d9044418))
|
|
181
|
+
* update vs identifier ([3314de5](https://github.com/mixedbread-ai/mixedbread-ts/commit/3314de55aa2e0f8a38b9cc628fb2186e8d463891))
|
|
182
|
+
* update vs sync ([8899ba5](https://github.com/mixedbread-ai/mixedbread-ts/commit/8899ba5b936962716e90903b18d126879c733228))
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
### Documentation
|
|
186
|
+
|
|
187
|
+
* improve readme ([4b2104f](https://github.com/mixedbread-ai/mixedbread-ts/commit/4b2104faebe511969dd698be141eddaf568e28fd))
|
|
188
|
+
* update readme ([af8ed17](https://github.com/mixedbread-ai/mixedbread-ts/commit/af8ed178fde9bd0c5da02b5ae3c0f22ec699cbee))
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
### Refactors
|
|
192
|
+
|
|
193
|
+
* add formatCountWithSuffix function ([c63dc8c](https://github.com/mixedbread-ai/mixedbread-ts/commit/c63dc8c41e42fed8ad20d01d053bdb2edec117f3))
|
|
194
|
+
* separate validating metadata as a function ([7f95f63](https://github.com/mixedbread-ai/mixedbread-ts/commit/7f95f63373c1aa091a5c79867c7372731cea8687))
|
|
195
|
+
* **types:** replace Record with mapped types ([56d3912](https://github.com/mixedbread-ai/mixedbread-ts/commit/56d3912fb56295978279d965f082bbac0947f79d))
|
|
196
|
+
|
|
197
|
+
## 0.51.0 (2026-02-12)
|
|
198
|
+
|
|
199
|
+
Full Changelog: [v0.50.2...v0.51.0](https://github.com/mixedbread-ai/mixedbread-ts/compare/v0.50.2...v0.51.0)
|
|
200
|
+
|
|
201
|
+
### Features
|
|
202
|
+
|
|
203
|
+
* **api:** api update ([7ef58f9](https://github.com/mixedbread-ai/mixedbread-ts/commit/7ef58f9e396d7c58dd4ef83e9c28440abba14efe))
|
|
204
|
+
* **api:** api update ([867ae96](https://github.com/mixedbread-ai/mixedbread-ts/commit/867ae967605f80cdb194dc4b42be26c66e5b10fa))
|
|
205
|
+
* **api:** api update ([04e2b7b](https://github.com/mixedbread-ai/mixedbread-ts/commit/04e2b7b7ab92122e2e368ad1901144e6bf1ec32c))
|
|
206
|
+
* **api:** api update ([874ec01](https://github.com/mixedbread-ai/mixedbread-ts/commit/874ec0122134a5b66b1e2a3d7c17cc7be286b496))
|
|
207
|
+
* **api:** api update ([c2fda13](https://github.com/mixedbread-ai/mixedbread-ts/commit/c2fda13f6ba86fe2e78ec91cb0c3f4c4ef3693fe))
|
|
208
|
+
* **api:** api update ([9151a81](https://github.com/mixedbread-ai/mixedbread-ts/commit/9151a8135c0a97025c34e37488001c9f9522eeb8))
|
|
209
|
+
* **api:** manual updates ([4594ff6](https://github.com/mixedbread-ai/mixedbread-ts/commit/4594ff68f97e0ead0ae037f25a7426554b21393e))
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### Bug Fixes
|
|
213
|
+
|
|
214
|
+
* **client:** avoid memory leak with abort signals ([50e1ffa](https://github.com/mixedbread-ai/mixedbread-ts/commit/50e1ffa5c535730e79c661d4bf1eac968d1f5174))
|
|
215
|
+
* **client:** avoid removing abort listener too early ([87a65e4](https://github.com/mixedbread-ai/mixedbread-ts/commit/87a65e4ba88bd581d01efa4db17a73a5f4053f0e))
|
|
216
|
+
* **docs:** fix mcp installation instructions for remote servers ([46851b3](https://github.com/mixedbread-ai/mixedbread-ts/commit/46851b3b9febd0d9b8015397599d0b9a1adefef1))
|
|
217
|
+
* **publish:** use npm registry directly for trusted publishing support ([9bf2648](https://github.com/mixedbread-ai/mixedbread-ts/commit/9bf2648d3633e033e9edbede04b67abc5af19ced))
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### Chores
|
|
221
|
+
|
|
222
|
+
* **ci:** upgrade `actions/github-script` ([c4e0854](https://github.com/mixedbread-ai/mixedbread-ts/commit/c4e0854e81151cf9c7b53741b6ca8b80ce7079b1))
|
|
223
|
+
* **client:** do not parse responses with empty content-length ([576bbd8](https://github.com/mixedbread-ai/mixedbread-ts/commit/576bbd802365251026008c3ade61457b14670a1a))
|
|
224
|
+
* **client:** restructure abort controller binding ([be1e7d0](https://github.com/mixedbread-ai/mixedbread-ts/commit/be1e7d0eb7137385f1c6004e4ad57aa6e7f77680))
|
|
225
|
+
* **internal:** codegen related update ([3b7a58b](https://github.com/mixedbread-ai/mixedbread-ts/commit/3b7a58b008dda74833a625460d72bae10d86f8f0))
|
|
226
|
+
* **internal:** fix pagination internals not accepting option promises ([dde4682](https://github.com/mixedbread-ai/mixedbread-ts/commit/dde468264ebab6268833eafe243bdd9683c743ec))
|
|
227
|
+
|
|
3
228
|
## 0.50.2 (2026-01-17)
|
|
4
229
|
|
|
5
230
|
Full Changelog: [v0.50.1...v0.50.2](https://github.com/mixedbread-ai/mixedbread-ts/compare/v0.50.1...v0.50.2)
|
|
@@ -3,76 +3,6 @@
|
|
|
3
3
|
"githubRepo": "https://github.com/mixedbread-ai/mixedbread-ts",
|
|
4
4
|
"clientClass": "Mixedbread",
|
|
5
5
|
"methods": [
|
|
6
|
-
{
|
|
7
|
-
"base": "vectorStores.files",
|
|
8
|
-
"name": "retrieve",
|
|
9
|
-
"params": [
|
|
10
|
-
{
|
|
11
|
-
"type": "param",
|
|
12
|
-
"key": "file_id",
|
|
13
|
-
"location": "path"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"type": "params",
|
|
17
|
-
"maybeOverload": false
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"type": "options"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"oldParams": [
|
|
24
|
-
{
|
|
25
|
-
"type": "param",
|
|
26
|
-
"key": "vector_store_identifier",
|
|
27
|
-
"location": "path"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"type": "param",
|
|
31
|
-
"key": "file_id",
|
|
32
|
-
"location": "path"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"type": "params",
|
|
36
|
-
"maybeOverload": true
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"type": "options"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"base": "vectorStores.files",
|
|
45
|
-
"name": "delete",
|
|
46
|
-
"params": [
|
|
47
|
-
{
|
|
48
|
-
"type": "param",
|
|
49
|
-
"key": "file_id",
|
|
50
|
-
"location": "path"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"type": "params",
|
|
54
|
-
"maybeOverload": false
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"type": "options"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"oldParams": [
|
|
61
|
-
{
|
|
62
|
-
"type": "param",
|
|
63
|
-
"key": "vector_store_identifier",
|
|
64
|
-
"location": "path"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"type": "param",
|
|
68
|
-
"key": "file_id",
|
|
69
|
-
"location": "path"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"type": "options"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
6
|
{
|
|
77
7
|
"base": "stores.files",
|
|
78
8
|
"name": "retrieve",
|
package/client.d.mts
CHANGED
|
@@ -17,8 +17,7 @@ import { FileCreateParams, FileDeleteResponse, FileListParams, FileObject, FileO
|
|
|
17
17
|
import { DataSource, DataSourceCreateParams, DataSourceDeleteResponse, DataSourceListParams, DataSourceOauth2Params, DataSourceType, DataSourceUpdateParams, DataSources, DataSourcesCursor, LinearDataSource, NotionDataSource, Oauth2Params } from "./resources/data-sources/data-sources.mjs";
|
|
18
18
|
import { Extractions } from "./resources/extractions/extractions.mjs";
|
|
19
19
|
import { Parsing } from "./resources/parsing/parsing.mjs";
|
|
20
|
-
import { Store, StoreChunkSearchOptions, StoreCreateParams, StoreDeleteResponse, StoreListParams, StoreMetadataFacetsParams, StoreMetadataFacetsResponse, StoreQuestionAnsweringParams, StoreQuestionAnsweringResponse, StoreSearchParams, StoreSearchResponse, StoreUpdateParams, Stores, StoresCursor } from "./resources/stores/stores.mjs";
|
|
21
|
-
import { ExpiresAfter, ScoredAudioURLInputChunk, ScoredImageURLInputChunk, ScoredTextInputChunk, ScoredVideoURLInputChunk, VectorStore, VectorStoreChunkSearchOptions, VectorStoreCreateParams, VectorStoreDeleteResponse, VectorStoreListParams, VectorStoreQuestionAnsweringParams, VectorStoreQuestionAnsweringResponse, VectorStoreSearchParams, VectorStoreSearchResponse, VectorStoreUpdateParams, VectorStores, VectorStoresCursor } from "./resources/vector-stores/vector-stores.mjs";
|
|
20
|
+
import { ExpiresAfter, ScoredAudioURLInputChunk, ScoredImageURLInputChunk, ScoredTextInputChunk, ScoredVideoURLInputChunk, Store, StoreChunkSearchOptions, StoreCreateParams, StoreDeleteResponse, StoreListParams, StoreMetadataFacetsParams, StoreMetadataFacetsResponse, StoreQuestionAnsweringParams, StoreQuestionAnsweringResponse, StoreSearchParams, StoreSearchResponse, StoreUpdateParams, Stores, StoresCursor } from "./resources/stores/stores.mjs";
|
|
22
21
|
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
23
22
|
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
24
23
|
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
@@ -190,8 +189,8 @@ export declare class Mixedbread {
|
|
|
190
189
|
private methodRequest;
|
|
191
190
|
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
192
191
|
private makeRequest;
|
|
193
|
-
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
194
|
-
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: FinalRequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
192
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: PromiseOrValue<RequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
193
|
+
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: PromiseOrValue<FinalRequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
195
194
|
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
196
195
|
private shouldRetry;
|
|
197
196
|
private retryRequest;
|
|
@@ -204,6 +203,7 @@ export declare class Mixedbread {
|
|
|
204
203
|
timeout: number;
|
|
205
204
|
}>;
|
|
206
205
|
private buildHeaders;
|
|
206
|
+
private _makeAbort;
|
|
207
207
|
private buildBody;
|
|
208
208
|
static Mixedbread: typeof Mixedbread;
|
|
209
209
|
static DEFAULT_TIMEOUT: number;
|
|
@@ -221,7 +221,6 @@ export declare class Mixedbread {
|
|
|
221
221
|
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
222
222
|
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
223
223
|
static toFile: typeof Uploads.toFile;
|
|
224
|
-
vectorStores: API.VectorStores;
|
|
225
224
|
stores: API.Stores;
|
|
226
225
|
parsing: API.Parsing;
|
|
227
226
|
files: API.Files;
|
|
@@ -238,8 +237,7 @@ export declare namespace Mixedbread {
|
|
|
238
237
|
export import Cursor = Pagination.Cursor;
|
|
239
238
|
export { type CursorParams as CursorParams, type CursorResponse as CursorResponse };
|
|
240
239
|
export { type Embedding as Embedding, type EmbeddingCreateResponse as EmbeddingCreateResponse, type MultiEncodingEmbedding as MultiEncodingEmbedding, type InfoResponse as InfoResponse, type RerankResponse as RerankResponse, type EmbedParams as EmbedParams, type RerankParams as RerankParams, };
|
|
241
|
-
export {
|
|
242
|
-
export { Stores as Stores, type Store as Store, type StoreChunkSearchOptions as StoreChunkSearchOptions, type StoreDeleteResponse as StoreDeleteResponse, type StoreMetadataFacetsResponse as StoreMetadataFacetsResponse, type StoreQuestionAnsweringResponse as StoreQuestionAnsweringResponse, type StoreSearchResponse as StoreSearchResponse, type StoresCursor as StoresCursor, type StoreCreateParams as StoreCreateParams, type StoreUpdateParams as StoreUpdateParams, type StoreListParams as StoreListParams, type StoreMetadataFacetsParams as StoreMetadataFacetsParams, type StoreQuestionAnsweringParams as StoreQuestionAnsweringParams, type StoreSearchParams as StoreSearchParams, };
|
|
240
|
+
export { Stores as Stores, type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type Store as Store, type StoreChunkSearchOptions as StoreChunkSearchOptions, type StoreDeleteResponse as StoreDeleteResponse, type StoreMetadataFacetsResponse as StoreMetadataFacetsResponse, type StoreQuestionAnsweringResponse as StoreQuestionAnsweringResponse, type StoreSearchResponse as StoreSearchResponse, type StoresCursor as StoresCursor, type StoreCreateParams as StoreCreateParams, type StoreUpdateParams as StoreUpdateParams, type StoreListParams as StoreListParams, type StoreMetadataFacetsParams as StoreMetadataFacetsParams, type StoreQuestionAnsweringParams as StoreQuestionAnsweringParams, type StoreSearchParams as StoreSearchParams, };
|
|
243
241
|
export { Parsing as Parsing };
|
|
244
242
|
export { Files as Files, type FileObject as FileObject, type PaginationWithTotal as PaginationWithTotal, type FileDeleteResponse as FileDeleteResponse, type FileObjectsCursor as FileObjectsCursor, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
|
|
245
243
|
export { Extractions as Extractions };
|
package/client.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAEL,KAAK,YAAY,EACjB,cAAc,EACd,KAAK,iBAAiB,EACtB,mBAAmB,EACpB;OACM,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,KAAK,WAAW;OAChB,EACL,WAAW,EACX,SAAS,EACT,uBAAuB,EACvB,YAAY,EACZ,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACf;OACM,EAAE,UAAU,EAAE;OACd,EACL,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EACnB;OACM,EAAE,IAAI,EAAE,4BAA4B,EAAE;OACtC,EAAE,qBAAqB,EAAE,UAAU,EAAE,cAAc,EAAE;OACrD,EACL,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,EACL,mBAAmB,EACpB;OACM,EACL,UAAU,EACV,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,sBAAsB,EACtB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACb;OACM,EAAE,WAAW,EAAE;OACf,EAAE,OAAO,EAAE;OACX,EACL,KAAK,EACL,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,yBAAyB,EACzB,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,MAAM,EACN,YAAY,EACb;OACM,
|
|
1
|
+
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAEL,KAAK,YAAY,EACjB,cAAc,EACd,KAAK,iBAAiB,EACtB,mBAAmB,EACpB;OACM,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,KAAK,WAAW;OAChB,EACL,WAAW,EACX,SAAS,EACT,uBAAuB,EACvB,YAAY,EACZ,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACf;OACM,EAAE,UAAU,EAAE;OACd,EACL,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EACnB;OACM,EAAE,IAAI,EAAE,4BAA4B,EAAE;OACtC,EAAE,qBAAqB,EAAE,UAAU,EAAE,cAAc,EAAE;OACrD,EACL,gBAAgB,EAChB,kBAAkB,EAClB,cA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oB,GAClD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,4BAA4B,IAAI,4BAA4B,EAAE,CAAC;IAE3F,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC;IAC5C,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,qBAAqB,CAAC;IAC9D,MAAM,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;CAC/B"}
|
package/client.d.ts
CHANGED
|
@@ -17,8 +17,7 @@ import { FileCreateParams, FileDeleteResponse, FileListParams, FileObject, FileO
|
|
|
17
17
|
import { DataSource, DataSourceCreateParams, DataSourceDeleteResponse, DataSourceListParams, DataSourceOauth2Params, DataSourceType, DataSourceUpdateParams, DataSources, DataSourcesCursor, LinearDataSource, NotionDataSource, Oauth2Params } from "./resources/data-sources/data-sources.js";
|
|
18
18
|
import { Extractions } from "./resources/extractions/extractions.js";
|
|
19
19
|
import { Parsing } from "./resources/parsing/parsing.js";
|
|
20
|
-
import { Store, StoreChunkSearchOptions, StoreCreateParams, StoreDeleteResponse, StoreListParams, StoreMetadataFacetsParams, StoreMetadataFacetsResponse, StoreQuestionAnsweringParams, StoreQuestionAnsweringResponse, StoreSearchParams, StoreSearchResponse, StoreUpdateParams, Stores, StoresCursor } from "./resources/stores/stores.js";
|
|
21
|
-
import { ExpiresAfter, ScoredAudioURLInputChunk, ScoredImageURLInputChunk, ScoredTextInputChunk, ScoredVideoURLInputChunk, VectorStore, VectorStoreChunkSearchOptions, VectorStoreCreateParams, VectorStoreDeleteResponse, VectorStoreListParams, VectorStoreQuestionAnsweringParams, VectorStoreQuestionAnsweringResponse, VectorStoreSearchParams, VectorStoreSearchResponse, VectorStoreUpdateParams, VectorStores, VectorStoresCursor } from "./resources/vector-stores/vector-stores.js";
|
|
20
|
+
import { ExpiresAfter, ScoredAudioURLInputChunk, ScoredImageURLInputChunk, ScoredTextInputChunk, ScoredVideoURLInputChunk, Store, StoreChunkSearchOptions, StoreCreateParams, StoreDeleteResponse, StoreListParams, StoreMetadataFacetsParams, StoreMetadataFacetsResponse, StoreQuestionAnsweringParams, StoreQuestionAnsweringResponse, StoreSearchParams, StoreSearchResponse, StoreUpdateParams, Stores, StoresCursor } from "./resources/stores/stores.js";
|
|
22
21
|
import { type Fetch } from "./internal/builtin-types.js";
|
|
23
22
|
import { HeadersLike, NullableHeaders } from "./internal/headers.js";
|
|
24
23
|
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
|
|
@@ -190,8 +189,8 @@ export declare class Mixedbread {
|
|
|
190
189
|
private methodRequest;
|
|
191
190
|
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
192
191
|
private makeRequest;
|
|
193
|
-
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
194
|
-
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: FinalRequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
192
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: PromiseOrValue<RequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
193
|
+
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: PromiseOrValue<FinalRequestOptions>): Pagination.PagePromise<PageClass, Item>;
|
|
195
194
|
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
196
195
|
private shouldRetry;
|
|
197
196
|
private retryRequest;
|
|
@@ -204,6 +203,7 @@ export declare class Mixedbread {
|
|
|
204
203
|
timeout: number;
|
|
205
204
|
}>;
|
|
206
205
|
private buildHeaders;
|
|
206
|
+
private _makeAbort;
|
|
207
207
|
private buildBody;
|
|
208
208
|
static Mixedbread: typeof Mixedbread;
|
|
209
209
|
static DEFAULT_TIMEOUT: number;
|
|
@@ -221,7 +221,6 @@ export declare class Mixedbread {
|
|
|
221
221
|
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
222
222
|
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
223
223
|
static toFile: typeof Uploads.toFile;
|
|
224
|
-
vectorStores: API.VectorStores;
|
|
225
224
|
stores: API.Stores;
|
|
226
225
|
parsing: API.Parsing;
|
|
227
226
|
files: API.Files;
|
|
@@ -238,8 +237,7 @@ export declare namespace Mixedbread {
|
|
|
238
237
|
export import Cursor = Pagination.Cursor;
|
|
239
238
|
export { type CursorParams as CursorParams, type CursorResponse as CursorResponse };
|
|
240
239
|
export { type Embedding as Embedding, type EmbeddingCreateResponse as EmbeddingCreateResponse, type MultiEncodingEmbedding as MultiEncodingEmbedding, type InfoResponse as InfoResponse, type RerankResponse as RerankResponse, type EmbedParams as EmbedParams, type RerankParams as RerankParams, };
|
|
241
|
-
export {
|
|
242
|
-
export { Stores as Stores, type Store as Store, type StoreChunkSearchOptions as StoreChunkSearchOptions, type StoreDeleteResponse as StoreDeleteResponse, type StoreMetadataFacetsResponse as StoreMetadataFacetsResponse, type StoreQuestionAnsweringResponse as StoreQuestionAnsweringResponse, type StoreSearchResponse as StoreSearchResponse, type StoresCursor as StoresCursor, type StoreCreateParams as StoreCreateParams, type StoreUpdateParams as StoreUpdateParams, type StoreListParams as StoreListParams, type StoreMetadataFacetsParams as StoreMetadataFacetsParams, type StoreQuestionAnsweringParams as StoreQuestionAnsweringParams, type StoreSearchParams as StoreSearchParams, };
|
|
240
|
+
export { Stores as Stores, type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type Store as Store, type StoreChunkSearchOptions as StoreChunkSearchOptions, type StoreDeleteResponse as StoreDeleteResponse, type StoreMetadataFacetsResponse as StoreMetadataFacetsResponse, type StoreQuestionAnsweringResponse as StoreQuestionAnsweringResponse, type StoreSearchResponse as StoreSearchResponse, type StoresCursor as StoresCursor, type StoreCreateParams as StoreCreateParams, type StoreUpdateParams as StoreUpdateParams, type StoreListParams as StoreListParams, type StoreMetadataFacetsParams as StoreMetadataFacetsParams, type StoreQuestionAnsweringParams as StoreQuestionAnsweringParams, type StoreSearchParams as StoreSearchParams, };
|
|
243
241
|
export { Parsing as Parsing };
|
|
244
242
|
export { Files as Files, type FileObject as FileObject, type PaginationWithTotal as PaginationWithTotal, type FileDeleteResponse as FileDeleteResponse, type FileObjectsCursor as FileObjectsCursor, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
|
|
245
243
|
export { Extractions as Extractions };
|
package/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAEL,KAAK,YAAY,EACjB,cAAc,EACd,KAAK,iBAAiB,EACtB,mBAAmB,EACpB;OACM,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,KAAK,WAAW;OAChB,EACL,WAAW,EACX,SAAS,EACT,uBAAuB,EACvB,YAAY,EACZ,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACf;OACM,EAAE,UAAU,EAAE;OACd,EACL,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EACnB;OACM,EAAE,IAAI,EAAE,4BAA4B,EAAE;OACtC,EAAE,qBAAqB,EAAE,UAAU,EAAE,cAAc,EAAE;OACrD,EACL,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,EACL,mBAAmB,EACpB;OACM,EACL,UAAU,EACV,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,sBAAsB,EACtB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACb;OACM,EAAE,WAAW,EAAE;OACf,EAAE,OAAO,EAAE;OACX,EACL,KAAK,EACL,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,yBAAyB,EACzB,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,MAAM,EACN,YAAY,EACb;OACM,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAA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U,EACxB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,4BAA4B,IAAI,4BAA4B,EAAE,CAAC;IAE3F,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC;IAC5C,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,qBAAqB,CAAC;IAC9D,MAAM,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;CAC/B"}
|
package/client.js
CHANGED
|
@@ -26,7 +26,6 @@ const data_sources_1 = require("./resources/data-sources/data-sources.js");
|
|
|
26
26
|
const extractions_1 = require("./resources/extractions/extractions.js");
|
|
27
27
|
const parsing_1 = require("./resources/parsing/parsing.js");
|
|
28
28
|
const stores_1 = require("./resources/stores/stores.js");
|
|
29
|
-
const vector_stores_1 = require("./resources/vector-stores/vector-stores.js");
|
|
30
29
|
const headers_1 = require("./internal/headers.js");
|
|
31
30
|
const env_1 = require("./internal/utils/env.js");
|
|
32
31
|
const log_1 = require("./internal/utils/log.js");
|
|
@@ -56,7 +55,6 @@ class Mixedbread {
|
|
|
56
55
|
constructor({ baseURL = (0, env_1.readEnv)('MIXEDBREAD_BASE_URL'), apiKey = (0, env_1.readEnv)('MXBAI_API_KEY'), ...opts } = {}) {
|
|
57
56
|
_Mixedbread_instances.add(this);
|
|
58
57
|
_Mixedbread_encoder.set(this, void 0);
|
|
59
|
-
this.vectorStores = new API.VectorStores(this);
|
|
60
58
|
this.stores = new API.Stores(this);
|
|
61
59
|
this.parsing = new API.Parsing(this);
|
|
62
60
|
this.files = new API.Files(this);
|
|
@@ -316,7 +314,9 @@ class Mixedbread {
|
|
|
316
314
|
return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
|
|
317
315
|
}
|
|
318
316
|
getAPIList(path, Page, opts) {
|
|
319
|
-
return this.requestAPIList(Page,
|
|
317
|
+
return this.requestAPIList(Page, opts && 'then' in opts ?
|
|
318
|
+
opts.then((opts) => ({ method: 'get', path, ...opts }))
|
|
319
|
+
: { method: 'get', path, ...opts });
|
|
320
320
|
}
|
|
321
321
|
requestAPIList(Page, options) {
|
|
322
322
|
const request = this.makeRequest(options, null, undefined);
|
|
@@ -324,9 +324,10 @@ class Mixedbread {
|
|
|
324
324
|
}
|
|
325
325
|
async fetchWithTimeout(url, init, ms, controller) {
|
|
326
326
|
const { signal, method, ...options } = init || {};
|
|
327
|
+
const abort = this._makeAbort(controller);
|
|
327
328
|
if (signal)
|
|
328
|
-
signal.addEventListener('abort',
|
|
329
|
-
const timeout = setTimeout(
|
|
329
|
+
signal.addEventListener('abort', abort, { once: true });
|
|
330
|
+
const timeout = setTimeout(abort, ms);
|
|
330
331
|
const isReadableBody = (globalThis.ReadableStream && options.body instanceof globalThis.ReadableStream) ||
|
|
331
332
|
(typeof options.body === 'object' && options.body !== null && Symbol.asyncIterator in options.body);
|
|
332
333
|
const fetchOptions = {
|
|
@@ -455,6 +456,11 @@ class Mixedbread {
|
|
|
455
456
|
this.validateHeaders(headers);
|
|
456
457
|
return headers.values;
|
|
457
458
|
}
|
|
459
|
+
_makeAbort(controller) {
|
|
460
|
+
// note: we can't just inline this method inside `fetchWithTimeout()` because then the closure
|
|
461
|
+
// would capture all request options, and cause a memory leak.
|
|
462
|
+
return () => controller.abort();
|
|
463
|
+
}
|
|
458
464
|
buildBody({ options: { body, headers: rawHeaders } }) {
|
|
459
465
|
if (!body) {
|
|
460
466
|
return { bodyHeaders: undefined, body: undefined };
|
|
@@ -483,6 +489,13 @@ class Mixedbread {
|
|
|
483
489
|
(Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))) {
|
|
484
490
|
return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body) };
|
|
485
491
|
}
|
|
492
|
+
else if (typeof body === 'object' &&
|
|
493
|
+
headers.values.get('content-type') === 'application/x-www-form-urlencoded') {
|
|
494
|
+
return {
|
|
495
|
+
bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
|
|
496
|
+
body: this.stringifyQuery(body),
|
|
497
|
+
};
|
|
498
|
+
}
|
|
486
499
|
else {
|
|
487
500
|
return tslib_1.__classPrivateFieldGet(this, _Mixedbread_encoder, "f").call(this, { body, headers });
|
|
488
501
|
}
|
|
@@ -508,7 +521,6 @@ Mixedbread.InternalServerError = Errors.InternalServerError;
|
|
|
508
521
|
Mixedbread.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
509
522
|
Mixedbread.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
510
523
|
Mixedbread.toFile = Uploads.toFile;
|
|
511
|
-
Mixedbread.VectorStores = vector_stores_1.VectorStores;
|
|
512
524
|
Mixedbread.Stores = stores_1.Stores;
|
|
513
525
|
Mixedbread.Parsing = parsing_1.Parsing;
|
|
514
526
|
Mixedbread.Files = files_1.Files;
|