@mixedbread/sdk 0.4.0 → 0.6.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 +69 -0
- package/README.md +2 -2
- package/api-promise.js +2 -15
- package/api-promise.js.map +1 -1
- package/bin/cli +52 -0
- package/bin/migration-config.json +176 -0
- package/client.d.mts +20 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -8
- package/client.d.ts.map +1 -1
- package/client.js +45 -50
- package/client.js.map +1 -1
- package/client.mjs +37 -19
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +0 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +0 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +4 -14
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +1 -11
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +0 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +0 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts +0 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +0 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +3 -13
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +1 -11
- package/core/pagination.mjs.map +1 -1
- package/error.js +2 -15
- package/error.js.map +1 -1
- package/internal/builtin-types.d.mts +0 -2
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts +0 -2
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +2 -2
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts +1 -2
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts +1 -2
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +3 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +3 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts +0 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +0 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +1 -2
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +0 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +0 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.js +5 -6
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/to-file.d.mts +0 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +0 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +4 -4
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +3 -2
- package/internal/to-file.mjs.map +1 -1
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +0 -1
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +0 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +1 -3
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +1 -3
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +16 -6
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +12 -3
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +12 -7
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +12 -7
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts +0 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +0 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +2 -2
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/uuid.d.mts +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +1 -2
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +1 -2
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.js +7 -20
- package/internal/utils.js.map +1 -1
- package/lib/polling.js +1 -2
- package/lib/polling.js.map +1 -1
- package/lib/polling.mjs.map +1 -1
- package/package.json +5 -6
- package/pagination.js +2 -15
- package/pagination.js.map +1 -1
- package/resource.js +2 -15
- package/resource.js.map +1 -1
- package/resources/api-keys.d.mts +171 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +171 -0
- package/resources/api-keys.d.ts.map +1 -0
- package/resources/api-keys.js +76 -0
- package/resources/api-keys.js.map +1 -0
- package/resources/api-keys.mjs +72 -0
- package/resources/api-keys.mjs.map +1 -0
- package/resources/chat.d.mts +27 -0
- package/resources/chat.d.mts.map +1 -0
- package/resources/chat.d.ts +27 -0
- package/resources/chat.d.ts.map +1 -0
- package/resources/chat.js +28 -0
- package/resources/chat.js.map +1 -0
- package/resources/chat.mjs +24 -0
- package/resources/chat.mjs.map +1 -0
- package/resources/data-sources/connectors.d.mts +193 -0
- package/resources/data-sources/connectors.d.mts.map +1 -0
- package/resources/data-sources/connectors.d.ts +193 -0
- package/resources/data-sources/connectors.d.ts.map +1 -0
- package/resources/data-sources/connectors.js +73 -0
- package/resources/data-sources/connectors.js.map +1 -0
- package/resources/data-sources/connectors.mjs +69 -0
- package/resources/data-sources/connectors.mjs.map +1 -0
- package/resources/data-sources/data-sources.d.mts +183 -0
- package/resources/data-sources/data-sources.d.mts.map +1 -0
- package/resources/data-sources/data-sources.d.ts +183 -0
- package/resources/data-sources/data-sources.d.ts.map +1 -0
- package/resources/data-sources/data-sources.js +66 -0
- package/resources/data-sources/data-sources.js.map +1 -0
- package/resources/data-sources/data-sources.mjs +61 -0
- package/resources/data-sources/data-sources.mjs.map +1 -0
- package/resources/data-sources/index.d.mts +3 -0
- package/resources/data-sources/index.d.mts.map +1 -0
- package/resources/data-sources/index.d.ts +3 -0
- package/resources/data-sources/index.d.ts.map +1 -0
- package/resources/data-sources/index.js +9 -0
- package/resources/data-sources/index.js.map +1 -0
- package/resources/data-sources/index.mjs +4 -0
- package/resources/data-sources/index.mjs.map +1 -0
- package/resources/data-sources.d.mts +2 -0
- package/resources/data-sources.d.mts.map +1 -0
- package/resources/data-sources.d.ts +2 -0
- package/resources/data-sources.d.ts.map +1 -0
- package/resources/data-sources.js +6 -0
- package/resources/data-sources.js.map +1 -0
- package/resources/data-sources.mjs +3 -0
- package/resources/data-sources.mjs.map +1 -0
- package/resources/embeddings.d.mts +7 -2
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts +7 -2
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/extractions/content.d.mts +46 -2
- package/resources/extractions/content.d.mts.map +1 -1
- package/resources/extractions/content.d.ts +46 -2
- package/resources/extractions/content.d.ts.map +1 -1
- package/resources/extractions/extractions.d.mts +2 -2
- package/resources/extractions/extractions.d.mts.map +1 -1
- package/resources/extractions/extractions.d.ts +2 -2
- package/resources/extractions/extractions.d.ts.map +1 -1
- package/resources/extractions/extractions.js +4 -26
- package/resources/extractions/extractions.js.map +1 -1
- package/resources/extractions/extractions.mjs.map +1 -1
- package/resources/extractions/index.d.mts +1 -1
- package/resources/extractions/index.d.mts.map +1 -1
- package/resources/extractions/index.d.ts +1 -1
- package/resources/extractions/index.d.ts.map +1 -1
- package/resources/extractions/index.js.map +1 -1
- package/resources/extractions/index.mjs +1 -1
- package/resources/extractions/index.mjs.map +1 -1
- package/resources/extractions/jobs.d.mts +2 -1
- package/resources/extractions/jobs.d.mts.map +1 -1
- package/resources/extractions/jobs.d.ts +2 -1
- package/resources/extractions/jobs.d.ts.map +1 -1
- package/resources/extractions/jobs.js.map +1 -1
- package/resources/extractions/jobs.mjs.map +1 -1
- package/resources/extractions.js +2 -15
- package/resources/extractions.js.map +1 -1
- package/resources/files.d.mts +18 -2
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +18 -2
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -16
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/parsing/index.d.mts +1 -1
- package/resources/parsing/index.d.mts.map +1 -1
- package/resources/parsing/index.d.ts +1 -1
- package/resources/parsing/index.d.ts.map +1 -1
- package/resources/parsing/index.js.map +1 -1
- package/resources/parsing/index.mjs.map +1 -1
- package/resources/parsing/jobs.d.mts +29 -11
- package/resources/parsing/jobs.d.mts.map +1 -1
- package/resources/parsing/jobs.d.ts +29 -11
- package/resources/parsing/jobs.d.ts.map +1 -1
- package/resources/parsing/jobs.js +2 -24
- package/resources/parsing/jobs.js.map +1 -1
- package/resources/parsing/jobs.mjs.map +1 -1
- package/resources/parsing/parsing.d.mts +2 -2
- package/resources/parsing/parsing.d.mts.map +1 -1
- package/resources/parsing/parsing.d.ts +2 -2
- package/resources/parsing/parsing.d.ts.map +1 -1
- package/resources/parsing/parsing.js +2 -24
- package/resources/parsing/parsing.js.map +1 -1
- package/resources/parsing/parsing.mjs.map +1 -1
- package/resources/parsing.js +2 -15
- package/resources/parsing.js.map +1 -1
- package/resources/top-level.d.mts +9 -4
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +9 -4
- package/resources/top-level.d.ts.map +1 -1
- package/resources/vector-stores/files.d.mts +29 -2
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +29 -2
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +2 -24
- package/resources/vector-stores/files.js.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 +223 -81
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +223 -81
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +2 -24
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/vector-stores.js +2 -15
- package/resources/vector-stores.js.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +94 -16
- package/src/internal/headers.ts +4 -3
- package/src/internal/to-file.ts +4 -2
- package/src/internal/uploads.ts +16 -4
- package/src/internal/utils/base64.ts +13 -10
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/uuid.ts +1 -3
- package/src/resources/api-keys.ts +225 -0
- package/src/resources/chat.ts +33 -0
- package/src/resources/data-sources/connectors.ts +280 -0
- package/src/resources/data-sources/data-sources.ts +271 -0
- package/src/resources/data-sources/index.ts +24 -0
- package/src/resources/data-sources.ts +3 -0
- package/src/resources/embeddings.ts +25 -10
- package/src/resources/extractions/content.ts +57 -2
- package/src/resources/extractions/extractions.ts +3 -1
- package/src/resources/extractions/index.ts +7 -1
- package/src/resources/extractions/jobs.ts +2 -1
- package/src/resources/files.ts +21 -0
- package/src/resources/index.ts +27 -4
- package/src/resources/parsing/index.ts +4 -0
- package/src/resources/parsing/jobs.ts +48 -45
- package/src/resources/parsing/parsing.ts +8 -0
- package/src/resources/top-level.ts +10 -40
- package/src/resources/vector-stores/files.ts +39 -2
- package/src/resources/vector-stores/index.ts +4 -3
- package/src/resources/vector-stores/vector-stores.ts +269 -91
- package/src/version.ts +1 -1
- package/uploads.js +2 -15
- package/uploads.js.map +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/internal/shims/crypto.d.mts +0 -13
- package/internal/shims/crypto.d.mts.map +0 -1
- package/internal/shims/crypto.d.ts +0 -13
- package/internal/shims/crypto.d.ts.map +0 -1
- package/internal/shims/crypto.js +0 -13
- package/internal/shims/crypto.js.map +0 -1
- package/internal/shims/crypto.mjs +0 -9
- package/internal/shims/crypto.mjs.map +0 -1
- package/internal/shims/file.d.mts +0 -23
- package/internal/shims/file.d.mts.map +0 -1
- package/internal/shims/file.d.ts +0 -23
- package/internal/shims/file.d.ts.map +0 -1
- package/internal/shims/file.js +0 -16
- package/internal/shims/file.js.map +0 -1
- package/internal/shims/file.mjs +0 -12
- package/internal/shims/file.mjs.map +0 -1
- package/internal/shims/getBuiltinModule.d.mts +0 -11
- package/internal/shims/getBuiltinModule.d.mts.map +0 -1
- package/internal/shims/getBuiltinModule.d.ts +0 -11
- package/internal/shims/getBuiltinModule.d.ts.map +0 -1
- package/internal/shims/getBuiltinModule.js +0 -68
- package/internal/shims/getBuiltinModule.js.map +0 -1
- package/internal/shims/getBuiltinModule.mjs +0 -64
- package/internal/shims/getBuiltinModule.mjs.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.js +0 -5
- package/internal/shims/nullGetBuiltinModule.js.map +0 -1
- package/internal/shims/nullGetBuiltinModule.mjs +0 -2
- package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
- package/src/internal/shims/crypto.ts +0 -18
- package/src/internal/shims/file.ts +0 -32
- package/src/internal/shims/getBuiltinModule.ts +0 -64
- package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,74 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.6.0 (2025-05-26)
|
4
|
+
|
5
|
+
Full Changelog: [v0.5.0...v0.6.0](https://github.com/mixedbread-ai/mixedbread-ts/compare/v0.5.0...v0.6.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** update via SDK Studio ([843e5c1](https://github.com/mixedbread-ai/mixedbread-ts/commit/843e5c11171870194586b31d2234f401a9e1a686))
|
10
|
+
* **api:** update via SDK Studio ([e2cb315](https://github.com/mixedbread-ai/mixedbread-ts/commit/e2cb315adc2eb59a650c870fcae961f5d8da8e1f))
|
11
|
+
* **api:** update via SDK Studio ([8a37885](https://github.com/mixedbread-ai/mixedbread-ts/commit/8a3788591792af3c897a6c819f1d8ae327640163))
|
12
|
+
* **api:** update via SDK Studio ([43f31db](https://github.com/mixedbread-ai/mixedbread-ts/commit/43f31dbe78cd8f1623b373baad2f5ebed03b7fef))
|
13
|
+
* **api:** update via SDK Studio ([1ebc730](https://github.com/mixedbread-ai/mixedbread-ts/commit/1ebc7304ce954ffd5bd46ff485228e62d5e723fc))
|
14
|
+
* **api:** update via SDK Studio ([904cb87](https://github.com/mixedbread-ai/mixedbread-ts/commit/904cb87bdef9d00d04bb5b78fcbfc9d2a2ea0322))
|
15
|
+
* **api:** update via SDK Studio ([40324a6](https://github.com/mixedbread-ai/mixedbread-ts/commit/40324a658c833c268d6a3372de525816780d3c21))
|
16
|
+
* **mcp:** support dynamically discovering and invoking tools for APIs with many endpoints ([285308d](https://github.com/mixedbread-ai/mixedbread-ts/commit/285308da19b88ba5e39d42d52c3e364a0d6d0a00))
|
17
|
+
* **mcp:** support initializing the server with an "environment" ([925075d](https://github.com/mixedbread-ai/mixedbread-ts/commit/925075d05ac63cf2e75fef791f8d6c7a11ba8cd1))
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* **client:** always overwrite when merging headers ([9c69eb5](https://github.com/mixedbread-ai/mixedbread-ts/commit/9c69eb509fe085968f5dcbceb3dc0aad361e6c8e))
|
23
|
+
* **mcp:** explicitly include zod and zod-to-json-schema in package.json ([44952cb](https://github.com/mixedbread-ai/mixedbread-ts/commit/44952cb96fe51e8f43dc43aa07dc29d53ec2573b))
|
24
|
+
* **mcp:** fix cursor schema transformation issue with recursive references ([1a50cfe](https://github.com/mixedbread-ai/mixedbread-ts/commit/1a50cfe6b8d5fdbad923865b56e4c170b7f546da))
|
25
|
+
|
26
|
+
|
27
|
+
### Chores
|
28
|
+
|
29
|
+
* **build:** automatically build subpackages if present ([99dcafa](https://github.com/mixedbread-ai/mixedbread-ts/commit/99dcafaaec25a90571c311b2c918ee399b4b3982))
|
30
|
+
* **docs:** grammar improvements ([b10ade0](https://github.com/mixedbread-ai/mixedbread-ts/commit/b10ade0841b0d0b884677963c18bb7300a8d149c))
|
31
|
+
* **internal:** codegen related update ([69ba23e](https://github.com/mixedbread-ai/mixedbread-ts/commit/69ba23e8fcdfec9fdc711afc72834eb4430af673))
|
32
|
+
* **internal:** codegen related update ([048457f](https://github.com/mixedbread-ai/mixedbread-ts/commit/048457f38564e35fe8ca08f5677397b12526ec62))
|
33
|
+
* **package:** remove engines ([ef7cf2c](https://github.com/mixedbread-ai/mixedbread-ts/commit/ef7cf2c85bb78773daead80ea6a51401870908b0))
|
34
|
+
* **tests:** use node 22 for CI tests ([60d63ff](https://github.com/mixedbread-ai/mixedbread-ts/commit/60d63ff560eab0bd34e2282f292fda4dba4dd17b))
|
35
|
+
|
36
|
+
## 0.5.0 (2025-05-07)
|
37
|
+
|
38
|
+
Full Changelog: [v0.4.0...v0.5.0](https://github.com/mixedbread-ai/mixedbread-ts/compare/v0.4.0...v0.5.0)
|
39
|
+
|
40
|
+
### Features
|
41
|
+
|
42
|
+
* **api:** update via SDK Studio ([9421b8d](https://github.com/mixedbread-ai/mixedbread-ts/commit/9421b8dac8c4eab0a745e11058d7387f70177aeb))
|
43
|
+
* **api:** update via SDK Studio ([19d1598](https://github.com/mixedbread-ai/mixedbread-ts/commit/19d15980550109a207ef74da87c14ed64e2612a5))
|
44
|
+
* **client:** add withOptions helper ([cc39c84](https://github.com/mixedbread-ai/mixedbread-ts/commit/cc39c842d23f2ab3c473b82e7e2914eb2a1fed14))
|
45
|
+
* more gracefully handle $refs and work around schema limitations ([294db31](https://github.com/mixedbread-ai/mixedbread-ts/commit/294db3165718ce7752b0e4f779cd648d47c17b4c))
|
46
|
+
|
47
|
+
|
48
|
+
### Bug Fixes
|
49
|
+
|
50
|
+
* **internal:** fix file uploads in node 18 jest ([2bb600d](https://github.com/mixedbread-ai/mixedbread-ts/commit/2bb600dd7d69d21527879ec4fd29cb244e7716cf))
|
51
|
+
* **mcp:** remove ajv dependency so MCP servers are more compatible with Cloudflare Workers ([9a0f0a6](https://github.com/mixedbread-ai/mixedbread-ts/commit/9a0f0a640cf4c34216fffce2e2967cd98594f9bd))
|
52
|
+
|
53
|
+
|
54
|
+
### Chores
|
55
|
+
|
56
|
+
* **ci:** add timeout thresholds for CI jobs ([a68ffcc](https://github.com/mixedbread-ai/mixedbread-ts/commit/a68ffccb66c7ad79887369c83261af71fdb3869f))
|
57
|
+
* **ci:** only use depot for staging repos ([d3a9912](https://github.com/mixedbread-ai/mixedbread-ts/commit/d3a991253e679040b9cb44728e82ec1a33be145e))
|
58
|
+
* **client:** drop support for EOL node versions ([c995474](https://github.com/mixedbread-ai/mixedbread-ts/commit/c9954746fd8a970c0fc28aa683e72b3e8694f8be))
|
59
|
+
* **client:** minor internal fixes ([1b43dad](https://github.com/mixedbread-ai/mixedbread-ts/commit/1b43dad1fbc09a382f51b57b32588f3347e85b87))
|
60
|
+
* **internal:** codegen related update ([755d9f9](https://github.com/mixedbread-ai/mixedbread-ts/commit/755d9f9451196171b169ae36d9e1c757332a5535))
|
61
|
+
* **internal:** codegen related update ([c3e0876](https://github.com/mixedbread-ai/mixedbread-ts/commit/c3e087658a0f8b43a87b8656ee20b914b6634be6))
|
62
|
+
* **internal:** refactor utils ([6a22a08](https://github.com/mixedbread-ai/mixedbread-ts/commit/6a22a088a0c112dca1f7f2271b4b95cd9110de00))
|
63
|
+
* **internal:** share typescript helpers ([24e088a](https://github.com/mixedbread-ai/mixedbread-ts/commit/24e088a19695be197f935611c334c233a5aaeab9))
|
64
|
+
* **perf:** faster base64 decoding ([e8c7f9a](https://github.com/mixedbread-ai/mixedbread-ts/commit/e8c7f9ae682c8fc9e0c67e1730f8fc79f08f8b73))
|
65
|
+
|
66
|
+
|
67
|
+
### Documentation
|
68
|
+
|
69
|
+
* add examples to tsdocs ([929c293](https://github.com/mixedbread-ai/mixedbread-ts/commit/929c293b7a6fee0645408307c2cab96600fbdd4b))
|
70
|
+
* **readme:** fix typo ([0b4473f](https://github.com/mixedbread-ai/mixedbread-ts/commit/0b4473f6b8b9eac8b351badb22db5438bddc9e43))
|
71
|
+
|
3
72
|
## 0.4.0 (2025-04-10)
|
4
73
|
|
5
74
|
Full Changelog: [v0.3.0...v0.4.0](https://github.com/mixedbread-ai/mixedbread-ts/compare/v0.3.0...v0.4.0)
|
package/README.md
CHANGED
@@ -110,7 +110,7 @@ async function main() {
|
|
110
110
|
main();
|
111
111
|
```
|
112
112
|
|
113
|
-
Error codes are as
|
113
|
+
Error codes are as follows:
|
114
114
|
|
115
115
|
| Status Code | Error Type |
|
116
116
|
| ----------- | -------------------------- |
|
@@ -416,7 +416,7 @@ TypeScript >= 4.9 is supported.
|
|
416
416
|
The following runtimes are supported:
|
417
417
|
|
418
418
|
- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
|
419
|
-
- Node.js
|
419
|
+
- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
|
420
420
|
- Deno v1.28.0 or higher.
|
421
421
|
- Bun 1.0 or later.
|
422
422
|
- Cloudflare Workers.
|
package/api-promise.js
CHANGED
@@ -1,19 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
17
4
|
/** @deprecated Import from ./core/api-promise instead */
|
18
|
-
__exportStar(require("./core/api-promise.js"), exports);
|
5
|
+
tslib_1.__exportStar(require("./core/api-promise.js"), exports);
|
19
6
|
//# sourceMappingURL=api-promise.js.map
|
package/api-promise.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,gEAAmC"}
|
package/bin/cli
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
|
3
|
+
const { spawnSync } = require('child_process');
|
4
|
+
|
5
|
+
const commands = {
|
6
|
+
migrate: {
|
7
|
+
description: 'Run migrations to update to the latest major SDK version',
|
8
|
+
fn: () => {
|
9
|
+
const result = spawnSync(
|
10
|
+
'npx',
|
11
|
+
[
|
12
|
+
'-y',
|
13
|
+
'https://github.com/stainless-api/migrate-ts/releases/download/0.0.2/stainless-api-migrate-0.0.2-6.tgz',
|
14
|
+
'--migrationConfig',
|
15
|
+
require.resolve('./migration-config.json'),
|
16
|
+
...process.argv.slice(3),
|
17
|
+
],
|
18
|
+
{ stdio: 'inherit' },
|
19
|
+
);
|
20
|
+
if (result.status !== 0) {
|
21
|
+
process.exit(result.status);
|
22
|
+
}
|
23
|
+
},
|
24
|
+
},
|
25
|
+
};
|
26
|
+
|
27
|
+
function exitWithHelp() {
|
28
|
+
console.log(`Usage: mixedbread-sdk <subcommand>`);
|
29
|
+
console.log();
|
30
|
+
console.log('Subcommands:');
|
31
|
+
|
32
|
+
for (const [name, info] of Object.entries(commands)) {
|
33
|
+
console.log(` ${name} ${info.description}`);
|
34
|
+
}
|
35
|
+
|
36
|
+
console.log();
|
37
|
+
process.exit(1);
|
38
|
+
}
|
39
|
+
|
40
|
+
if (process.argv.length < 3) {
|
41
|
+
exitWithHelp();
|
42
|
+
}
|
43
|
+
|
44
|
+
const commandName = process.argv[2];
|
45
|
+
|
46
|
+
const command = commands[commandName];
|
47
|
+
if (!command) {
|
48
|
+
console.log(`Unknown subcommand ${commandName}.`);
|
49
|
+
exitWithHelp();
|
50
|
+
}
|
51
|
+
|
52
|
+
command.fn();
|
@@ -0,0 +1,176 @@
|
|
1
|
+
{
|
2
|
+
"pkg": "@mixedbread/sdk",
|
3
|
+
"githubRepo": "https://github.com/mixedbread-ai/mixedbread-ts",
|
4
|
+
"clientClass": "Mixedbread",
|
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_id",
|
27
|
+
"location": "path"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"type": "param",
|
31
|
+
"key": "file_id",
|
32
|
+
"location": "path"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"type": "options"
|
36
|
+
}
|
37
|
+
]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"base": "vectorStores.files",
|
41
|
+
"name": "delete",
|
42
|
+
"params": [
|
43
|
+
{
|
44
|
+
"type": "param",
|
45
|
+
"key": "file_id",
|
46
|
+
"location": "path"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"type": "params",
|
50
|
+
"maybeOverload": false
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"type": "options"
|
54
|
+
}
|
55
|
+
],
|
56
|
+
"oldParams": [
|
57
|
+
{
|
58
|
+
"type": "param",
|
59
|
+
"key": "vector_store_id",
|
60
|
+
"location": "path"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"type": "param",
|
64
|
+
"key": "file_id",
|
65
|
+
"location": "path"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"type": "options"
|
69
|
+
}
|
70
|
+
]
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"base": "dataSources.connectors",
|
74
|
+
"name": "retrieve",
|
75
|
+
"params": [
|
76
|
+
{
|
77
|
+
"type": "param",
|
78
|
+
"key": "connector_id",
|
79
|
+
"location": "path"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"type": "params",
|
83
|
+
"maybeOverload": false
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"type": "options"
|
87
|
+
}
|
88
|
+
],
|
89
|
+
"oldParams": [
|
90
|
+
{
|
91
|
+
"type": "param",
|
92
|
+
"key": "data_source_id",
|
93
|
+
"location": "path"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"type": "param",
|
97
|
+
"key": "connector_id",
|
98
|
+
"location": "path"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"type": "options"
|
102
|
+
}
|
103
|
+
]
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"base": "dataSources.connectors",
|
107
|
+
"name": "update",
|
108
|
+
"params": [
|
109
|
+
{
|
110
|
+
"type": "param",
|
111
|
+
"key": "connector_id",
|
112
|
+
"location": "path"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"type": "params",
|
116
|
+
"maybeOverload": false
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"type": "options"
|
120
|
+
}
|
121
|
+
],
|
122
|
+
"oldParams": [
|
123
|
+
{
|
124
|
+
"type": "param",
|
125
|
+
"key": "data_source_id",
|
126
|
+
"location": "path"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"type": "param",
|
130
|
+
"key": "connector_id",
|
131
|
+
"location": "path"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"type": "params",
|
135
|
+
"maybeOverload": false
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"type": "options"
|
139
|
+
}
|
140
|
+
]
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"base": "dataSources.connectors",
|
144
|
+
"name": "delete",
|
145
|
+
"params": [
|
146
|
+
{
|
147
|
+
"type": "param",
|
148
|
+
"key": "connector_id",
|
149
|
+
"location": "path"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"type": "params",
|
153
|
+
"maybeOverload": false
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"type": "options"
|
157
|
+
}
|
158
|
+
],
|
159
|
+
"oldParams": [
|
160
|
+
{
|
161
|
+
"type": "param",
|
162
|
+
"key": "data_source_id",
|
163
|
+
"location": "path"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"type": "param",
|
167
|
+
"key": "connector_id",
|
168
|
+
"location": "path"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"type": "options"
|
172
|
+
}
|
173
|
+
]
|
174
|
+
}
|
175
|
+
]
|
176
|
+
}
|
package/client.d.mts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
|
3
2
|
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
|
4
3
|
import { type Logger, type LogLevel } from "./internal/utils/log.mjs";
|
@@ -15,11 +14,14 @@ import { APIPromise } from "./core/api-promise.mjs";
|
|
15
14
|
import { type Fetch } from "./internal/builtin-types.mjs";
|
16
15
|
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
17
16
|
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
18
|
-
import {
|
19
|
-
import {
|
17
|
+
import { APIKey, APIKeyCreateParams, APIKeyCreated, APIKeyDeleteResponse, APIKeyListParams, APIKeys, APIKeysLimitOffset } from "./resources/api-keys.mjs";
|
18
|
+
import { Chat, ChatCreateCompletionResponse } from "./resources/chat.mjs";
|
19
|
+
import { EmbeddingCreateParams, Embeddings, EncodingFormat, ObjectType } from "./resources/embeddings.mjs";
|
20
|
+
import { FileCreateParams, FileDeleteResponse, FileListParams, FileObject, FileObjectsLimitOffset, FileUpdateParams, Files, PaginationWithTotal } from "./resources/files.mjs";
|
21
|
+
import { DataSource, DataSourceCreateParams, DataSourceDeleteResponse, DataSourceListParams, DataSourceOauth2Params, DataSourceType, DataSourceUpdateParams, DataSources, DataSourcesLimitOffset } from "./resources/data-sources/data-sources.mjs";
|
20
22
|
import { Extractions } from "./resources/extractions/extractions.mjs";
|
21
23
|
import { Parsing } from "./resources/parsing/parsing.mjs";
|
22
|
-
import { ExpiresAfter,
|
24
|
+
import { ExpiresAfter, ScoredAudioURLInputChunk, ScoredImageURLInputChunk, ScoredTextInputChunk, ScoredVideoURLInputChunk, VectorStore, VectorStoreChunkSearchOptions, VectorStoreCreateParams, VectorStoreDeleteResponse, VectorStoreListParams, VectorStoreQuestionAnsweringParams, VectorStoreQuestionAnsweringResponse, VectorStoreSearchParams, VectorStoreSearchResponse, VectorStoreUpdateParams, VectorStores, VectorStoresLimitOffset } from "./resources/vector-stores/vector-stores.mjs";
|
23
25
|
declare const environments: {
|
24
26
|
production: string;
|
25
27
|
local: string;
|
@@ -126,6 +128,10 @@ export declare class Mixedbread {
|
|
126
128
|
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
127
129
|
*/
|
128
130
|
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
131
|
+
/**
|
132
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
133
|
+
*/
|
134
|
+
withOptions(options: Partial<ClientOptions>): this;
|
129
135
|
/**
|
130
136
|
* Create embeddings for text or images using the specified model, encoding format,
|
131
137
|
* and normalization.
|
@@ -188,7 +194,7 @@ export declare class Mixedbread {
|
|
188
194
|
private shouldRetry;
|
189
195
|
private retryRequest;
|
190
196
|
private calculateDefaultRetryTimeoutMillis;
|
191
|
-
buildRequest(
|
197
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
192
198
|
retryCount?: number;
|
193
199
|
}): {
|
194
200
|
req: FinalizedRequestInit;
|
@@ -218,17 +224,23 @@ export declare class Mixedbread {
|
|
218
224
|
files: API.Files;
|
219
225
|
extractions: API.Extractions;
|
220
226
|
embeddings: API.Embeddings;
|
227
|
+
chat: API.Chat;
|
228
|
+
dataSources: API.DataSources;
|
229
|
+
apiKeys: API.APIKeys;
|
221
230
|
}
|
222
231
|
export declare namespace Mixedbread {
|
223
232
|
export type RequestOptions = Opts.RequestOptions;
|
224
233
|
export import LimitOffset = Pagination.LimitOffset;
|
225
234
|
export { type LimitOffsetParams as LimitOffsetParams, type LimitOffsetResponse as LimitOffsetResponse };
|
226
235
|
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, };
|
227
|
-
export { VectorStores as VectorStores, type ExpiresAfter as ExpiresAfter, type
|
236
|
+
export { VectorStores as VectorStores, type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresLimitOffset as VectorStoresLimitOffset, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
228
237
|
export { Parsing as Parsing };
|
229
|
-
export { Files as Files, type FileObject as FileObject, type FileDeleteResponse as FileDeleteResponse, type FileObjectsLimitOffset as FileObjectsLimitOffset, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
|
238
|
+
export { Files as Files, type FileObject as FileObject, type PaginationWithTotal as PaginationWithTotal, type FileDeleteResponse as FileDeleteResponse, type FileObjectsLimitOffset as FileObjectsLimitOffset, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
|
230
239
|
export { Extractions as Extractions };
|
231
|
-
export { Embeddings as Embeddings, type EmbeddingCreateParams as EmbeddingCreateParams };
|
240
|
+
export { Embeddings as Embeddings, type EncodingFormat as EncodingFormat, type ObjectType as ObjectType, type EmbeddingCreateParams as EmbeddingCreateParams, };
|
241
|
+
export { Chat as Chat, type ChatCreateCompletionResponse as ChatCreateCompletionResponse };
|
242
|
+
export { DataSources as DataSources, type DataSource as DataSource, type DataSourceOauth2Params as DataSourceOauth2Params, type DataSourceType as DataSourceType, type DataSourceDeleteResponse as DataSourceDeleteResponse, type DataSourcesLimitOffset as DataSourcesLimitOffset, type DataSourceCreateParams as DataSourceCreateParams, type DataSourceUpdateParams as DataSourceUpdateParams, type DataSourceListParams as DataSourceListParams, };
|
243
|
+
export { APIKeys as APIKeys, type APIKey as APIKey, type APIKeyCreated as APIKeyCreated, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeysLimitOffset as APIKeysLimitOffset, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyListParams as APIKeyListParams, };
|
232
244
|
export type SearchFilter = API.SearchFilter;
|
233
245
|
export type SearchFilterCondition = API.SearchFilterCondition;
|
234
246
|
export type Usage = API.Usage;
|
package/client.d.mts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"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EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,4BAA4B,IAAI,4BAA4B,EAAE,CAAC;IAE3F,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,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,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
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
import type { RequestInit, RequestInfo } from "./internal/builtin-types.js";
|
3
2
|
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.js";
|
4
3
|
import { type Logger, type LogLevel } from "./internal/utils/log.js";
|
@@ -15,11 +14,14 @@ import { APIPromise } from "./core/api-promise.js";
|
|
15
14
|
import { type Fetch } from "./internal/builtin-types.js";
|
16
15
|
import { HeadersLike, NullableHeaders } from "./internal/headers.js";
|
17
16
|
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
|
18
|
-
import {
|
19
|
-
import {
|
17
|
+
import { APIKey, APIKeyCreateParams, APIKeyCreated, APIKeyDeleteResponse, APIKeyListParams, APIKeys, APIKeysLimitOffset } from "./resources/api-keys.js";
|
18
|
+
import { Chat, ChatCreateCompletionResponse } from "./resources/chat.js";
|
19
|
+
import { EmbeddingCreateParams, Embeddings, EncodingFormat, ObjectType } from "./resources/embeddings.js";
|
20
|
+
import { FileCreateParams, FileDeleteResponse, FileListParams, FileObject, FileObjectsLimitOffset, FileUpdateParams, Files, PaginationWithTotal } from "./resources/files.js";
|
21
|
+
import { DataSource, DataSourceCreateParams, DataSourceDeleteResponse, DataSourceListParams, DataSourceOauth2Params, DataSourceType, DataSourceUpdateParams, DataSources, DataSourcesLimitOffset } from "./resources/data-sources/data-sources.js";
|
20
22
|
import { Extractions } from "./resources/extractions/extractions.js";
|
21
23
|
import { Parsing } from "./resources/parsing/parsing.js";
|
22
|
-
import { ExpiresAfter,
|
24
|
+
import { ExpiresAfter, ScoredAudioURLInputChunk, ScoredImageURLInputChunk, ScoredTextInputChunk, ScoredVideoURLInputChunk, VectorStore, VectorStoreChunkSearchOptions, VectorStoreCreateParams, VectorStoreDeleteResponse, VectorStoreListParams, VectorStoreQuestionAnsweringParams, VectorStoreQuestionAnsweringResponse, VectorStoreSearchParams, VectorStoreSearchResponse, VectorStoreUpdateParams, VectorStores, VectorStoresLimitOffset } from "./resources/vector-stores/vector-stores.js";
|
23
25
|
declare const environments: {
|
24
26
|
production: string;
|
25
27
|
local: string;
|
@@ -126,6 +128,10 @@ export declare class Mixedbread {
|
|
126
128
|
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
127
129
|
*/
|
128
130
|
constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
|
131
|
+
/**
|
132
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
133
|
+
*/
|
134
|
+
withOptions(options: Partial<ClientOptions>): this;
|
129
135
|
/**
|
130
136
|
* Create embeddings for text or images using the specified model, encoding format,
|
131
137
|
* and normalization.
|
@@ -188,7 +194,7 @@ export declare class Mixedbread {
|
|
188
194
|
private shouldRetry;
|
189
195
|
private retryRequest;
|
190
196
|
private calculateDefaultRetryTimeoutMillis;
|
191
|
-
buildRequest(
|
197
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
192
198
|
retryCount?: number;
|
193
199
|
}): {
|
194
200
|
req: FinalizedRequestInit;
|
@@ -218,17 +224,23 @@ export declare class Mixedbread {
|
|
218
224
|
files: API.Files;
|
219
225
|
extractions: API.Extractions;
|
220
226
|
embeddings: API.Embeddings;
|
227
|
+
chat: API.Chat;
|
228
|
+
dataSources: API.DataSources;
|
229
|
+
apiKeys: API.APIKeys;
|
221
230
|
}
|
222
231
|
export declare namespace Mixedbread {
|
223
232
|
export type RequestOptions = Opts.RequestOptions;
|
224
233
|
export import LimitOffset = Pagination.LimitOffset;
|
225
234
|
export { type LimitOffsetParams as LimitOffsetParams, type LimitOffsetResponse as LimitOffsetResponse };
|
226
235
|
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, };
|
227
|
-
export { VectorStores as VectorStores, type ExpiresAfter as ExpiresAfter, type
|
236
|
+
export { VectorStores as VectorStores, type ExpiresAfter as ExpiresAfter, type ScoredAudioURLInputChunk as ScoredAudioURLInputChunk, type ScoredImageURLInputChunk as ScoredImageURLInputChunk, type ScoredTextInputChunk as ScoredTextInputChunk, type ScoredVideoURLInputChunk as ScoredVideoURLInputChunk, type VectorStore as VectorStore, type VectorStoreChunkSearchOptions as VectorStoreChunkSearchOptions, type VectorStoreDeleteResponse as VectorStoreDeleteResponse, type VectorStoreQuestionAnsweringResponse as VectorStoreQuestionAnsweringResponse, type VectorStoreSearchResponse as VectorStoreSearchResponse, type VectorStoresLimitOffset as VectorStoresLimitOffset, type VectorStoreCreateParams as VectorStoreCreateParams, type VectorStoreUpdateParams as VectorStoreUpdateParams, type VectorStoreListParams as VectorStoreListParams, type VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams, type VectorStoreSearchParams as VectorStoreSearchParams, };
|
228
237
|
export { Parsing as Parsing };
|
229
|
-
export { Files as Files, type FileObject as FileObject, type FileDeleteResponse as FileDeleteResponse, type FileObjectsLimitOffset as FileObjectsLimitOffset, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
|
238
|
+
export { Files as Files, type FileObject as FileObject, type PaginationWithTotal as PaginationWithTotal, type FileDeleteResponse as FileDeleteResponse, type FileObjectsLimitOffset as FileObjectsLimitOffset, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
|
230
239
|
export { Extractions as Extractions };
|
231
|
-
export { Embeddings as Embeddings, type EmbeddingCreateParams as EmbeddingCreateParams };
|
240
|
+
export { Embeddings as Embeddings, type EncodingFormat as EncodingFormat, type ObjectType as ObjectType, type EmbeddingCreateParams as EmbeddingCreateParams, };
|
241
|
+
export { Chat as Chat, type ChatCreateCompletionResponse as ChatCreateCompletionResponse };
|
242
|
+
export { DataSources as DataSources, type DataSource as DataSource, type DataSourceOauth2Params as DataSourceOauth2Params, type DataSourceType as DataSourceType, type DataSourceDeleteResponse as DataSourceDeleteResponse, type DataSourcesLimitOffset as DataSourcesLimitOffset, type DataSourceCreateParams as DataSourceCreateParams, type DataSourceUpdateParams as DataSourceUpdateParams, type DataSourceListParams as DataSourceListParams, };
|
243
|
+
export { APIKeys as APIKeys, type APIKey as APIKey, type APIKeyCreated as APIKeyCreated, type APIKeyDeleteResponse as APIKeyDeleteResponse, type APIKeysLimitOffset as APIKeysLimitOffset, type APIKeyCreateParams as APIKeyCreateParams, type APIKeyListParams as APIKeyListParams, };
|
232
244
|
export type SearchFilter = API.SearchFilter;
|
233
245
|
export type SearchFilterCondition = API.SearchFilterCondition;
|
234
246
|
export type Usage = API.Usage;
|
package/client.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"
|
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;OAI5E,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAiB;YACxC,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAET,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAgB,KAAK,iBAAiB,EAAE,mBAAmB,EAAE;OAC7D,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,EAAE,KAAK,KAAK,EAAE;OACd,EAAE,WAAW,EAAE,eAAe,EAAgB;OAC9C,EAAE,mBAAmB,EAAE,cAAc,EAAE;OACvC,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,UAAU,EAAE;OACjE,EACL,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,sBAAsB,EACtB,gBAAgB,EAChB,KAAK,EACL,mBAAmB,EACpB;OAIM,EACL,UAAU,EACV,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,sBAAsB,EACtB,WAAW,EACX,sBAAsB,EACvB;OACM,EAAE,WAAW,EAAE;O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