From 92c40448465be7ebe099ff8e059aa585f440f5d6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 02:22:49 +0000 Subject: [PATCH 01/15] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 84aec1c9..df77445f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-54cb35d8551deb6317f8e788553104526265594097327545848d84f859e56f10.yml -openapi_spec_hash: 4e3d33f113c440a1578dd5001064b9bd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-e72d2bcb605094dd9bba1b882069381144ed11a1f2a2ffc8c544d1edc0316875.yml +openapi_spec_hash: 7536d97fbb2fbc3a97172e8cae77bf99 config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 From 7066c1eca95d02dd2755689af3b5c117c96e17d7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Jun 2026 21:22:44 +0000 Subject: [PATCH 02/15] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index df77445f..210043a8 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-e72d2bcb605094dd9bba1b882069381144ed11a1f2a2ffc8c544d1edc0316875.yml -openapi_spec_hash: 7536d97fbb2fbc3a97172e8cae77bf99 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-5db52ad19e4bbe83eb9eaf8606bcb7b5c48db045fd1e4d3abcd78ee7bec98185.yml +openapi_spec_hash: 620354ea9c07a50a3af48259ddc8c80a config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 From b12c4b357a315c44c9757bc445b93290817af9d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Jul 2026 19:22:52 +0000 Subject: [PATCH 03/15] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 210043a8..d7741c8b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-5db52ad19e4bbe83eb9eaf8606bcb7b5c48db045fd1e4d3abcd78ee7bec98185.yml -openapi_spec_hash: 620354ea9c07a50a3af48259ddc8c80a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-662dd2eda6eecb7e012e62ce6ac7c99ce890588daac0022fdd0b71150b4fc27c.yml +openapi_spec_hash: b3d4bafe8a1b5d7d9370943c3d10ff05 config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 From e384df1c010580fa714423b9dad451383524ffa4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 4 Jul 2026 01:22:50 +0000 Subject: [PATCH 04/15] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d7741c8b..49116e73 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-662dd2eda6eecb7e012e62ce6ac7c99ce890588daac0022fdd0b71150b4fc27c.yml -openapi_spec_hash: b3d4bafe8a1b5d7d9370943c3d10ff05 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-14336446f48a3fafc7e1c59ccd106d312a59dfeeeec85bc9f3fc2565e686c091.yml +openapi_spec_hash: b827de7e68c4fb48f0dbfadc30964a08 config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 From 7b94dfb46fdeb344768b6f7b5a27b1f466917d2d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 01:22:50 +0000 Subject: [PATCH 05/15] feat(api): api update --- .stats.yml | 4 ++-- README.md | 29 ------------------------- src/resources/files/files.ts | 9 ++++---- tests/api-resources/files/files.test.ts | 18 +++++---------- 4 files changed, 11 insertions(+), 49 deletions(-) diff --git a/.stats.yml b/.stats.yml index 49116e73..60e3ece1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-14336446f48a3fafc7e1c59ccd106d312a59dfeeeec85bc9f3fc2565e686c091.yml -openapi_spec_hash: b827de7e68c4fb48f0dbfadc30964a08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-e111a295a390afa8a5a316ec802eab9f6c7f8cc9ef44e8cef31080e0cbcfce6b.yml +openapi_spec_hash: 771f6732aa0ace8529dd8f5b7fdedd6e config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 diff --git a/README.md b/README.md index fd639d50..8120eb02 100644 --- a/README.md +++ b/README.md @@ -50,35 +50,6 @@ const store: Mixedbread.Store = await client.stores.create(); Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors. -## File uploads - -Request parameters that correspond to file uploads can be passed in many different forms: - -- `File` (or an object with the same structure) -- a `fetch` `Response` (or an object with the same structure) -- an `fs.ReadStream` -- the return value of our `toFile` helper - -```ts -import fs from 'fs'; -import Mixedbread, { toFile } from '@mixedbread/sdk'; - -const client = new Mixedbread(); - -// If you have access to Node `fs` we recommend using `fs.createReadStream()`: -await client.files.create({ file: fs.createReadStream('/path/to/file') }); - -// Or if you have the web `File` API you can pass a `File` instance: -await client.files.create({ file: new File(['my bytes'], 'file') }); - -// You can also pass a `fetch` `Response`: -await client.files.create({ file: await fetch('https://somesite/file') }); - -// Finally, if none of the above are convenient, you can use our `toFile` helper: -await client.files.create({ file: await toFile(Buffer.from('my bytes'), 'file') }); -await client.files.create({ file: await toFile(new Uint8Array([0, 1, 2]), 'file') }); -``` - ## Handling errors When the library is unable to connect to the API, diff --git a/src/resources/files/files.ts b/src/resources/files/files.ts index 4ac62b27..9d54a5a7 100644 --- a/src/resources/files/files.ts +++ b/src/resources/files/files.ts @@ -15,7 +15,6 @@ import { } from './uploads'; import { APIPromise } from '../../core/api-promise'; import { Cursor, type CursorParams, PagePromise } from '../../core/pagination'; -import { type Uploadable } from '../../core/uploads'; import { buildHeaders } from '../../internal/headers'; import { RequestOptions } from '../../internal/request-options'; import { multipartFormRequestOptions } from '../../internal/uploads'; @@ -35,7 +34,7 @@ export class Files extends APIResource { * @example * ```ts * const fileObject = await client.files.create({ - * file: fs.createReadStream('path/to/file'), + * file: 'file', * }); * ``` */ @@ -72,7 +71,7 @@ export class Files extends APIResource { * ```ts * const fileObject = await client.files.update( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - * { file: fs.createReadStream('path/to/file') }, + * { file: 'file' }, * ); * ``` */ @@ -235,7 +234,7 @@ export interface FileCreateParams { /** * The file to upload */ - file: Uploadable; + file: string; /** * Optional configuration for automatic multipart uploads. @@ -249,7 +248,7 @@ export interface FileUpdateParams { /** * The file to update */ - file: Uploadable; + file: string; } export interface FileListParams extends CursorParams { diff --git a/tests/api-resources/files/files.test.ts b/tests/api-resources/files/files.test.ts index 242f58e0..38a6ec9c 100644 --- a/tests/api-resources/files/files.test.ts +++ b/tests/api-resources/files/files.test.ts @@ -1,6 +1,6 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import Mixedbread, { toFile } from '@mixedbread/sdk'; +import Mixedbread from '@mixedbread/sdk'; const client = new Mixedbread({ apiKey: 'My API Key', @@ -9,9 +9,7 @@ const client = new Mixedbread({ describe('resource files', () => { test('create: only required params', async () => { - const responsePromise = client.files.create({ - file: await toFile(Buffer.from('Example data'), 'README.md'), - }); + const responsePromise = client.files.create({ file: 'file' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,9 +20,7 @@ describe('resource files', () => { }); test('create: required and optional params', async () => { - const response = await client.files.create({ - file: await toFile(Buffer.from('Example data'), 'README.md'), - }); + const response = await client.files.create({ file: 'file' }); }); test('retrieve', async () => { @@ -39,9 +35,7 @@ describe('resource files', () => { }); test('update: only required params', async () => { - const responsePromise = client.files.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { - file: await toFile(Buffer.from('Example data'), 'README.md'), - }); + const responsePromise = client.files.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { file: 'file' }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -52,9 +46,7 @@ describe('resource files', () => { }); test('update: required and optional params', async () => { - const response = await client.files.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { - file: await toFile(Buffer.from('Example data'), 'README.md'), - }); + const response = await client.files.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { file: 'file' }); }); test('list', async () => { From 516c6df444df91f4a68fa49cadabbb07770b7b75 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 02:22:50 +0000 Subject: [PATCH 06/15] feat(api): api update --- .stats.yml | 4 ++-- src/resources/stores/stores.ts | 2 +- yarn.lock | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 60e3ece1..3a2a109f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-e111a295a390afa8a5a316ec802eab9f6c7f8cc9ef44e8cef31080e0cbcfce6b.yml -openapi_spec_hash: 771f6732aa0ace8529dd8f5b7fdedd6e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-6a7b9b4dd160ba7b5684a30a1bdad6cc24f74b18a444a87ea4952f8719283d69.yml +openapi_spec_hash: 246641ee2fdb6786f0d36a18bc1f3f60 config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 diff --git a/src/resources/stores/stores.ts b/src/resources/stores/stores.ts index 8715a4e5..d470bec6 100644 --- a/src/resources/stores/stores.ts +++ b/src/resources/stores/stores.ts @@ -1094,7 +1094,7 @@ export interface StoreConfig { export interface TextChunkGeneratedMetadata { type?: 'text'; - file_type?: 'text/plain'; + file_type?: 'text/plain' | 'message/rfc822'; language?: string | null; diff --git a/yarn.lock b/yarn.lock index 06fc1085..38236e67 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1215,9 +1215,9 @@ baseline-browser-mapping@^2.9.0: integrity sha512-B0xUquLkiGLgHhpPBqvl7GWegWBUNuujQ6kXd/r1U38ElPT6Ok8KZ8e+FpUGEc2ZoRQUzq/aUnaKFc/svWUGSg== brace-expansion@^2.0.2: - version "2.1.1" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.1.1.tgz#c68b1c4111c76aae3a6fba55d496cee10c39dad8" - integrity sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA== + version "2.1.2" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.1.2.tgz#0bba2271feb7d458b0d31ad13625aaa4754431e2" + integrity sha512-w5JZcKgdhDOgOwm8H+KgbosopHMuGcl6qbulwjtz3SM7I7P3yW1eAjzMPLrIE+NQ9vjgANKHWeMHnrT0OXW1oA== dependencies: balanced-match "^1.0.0" From d16c5563f59d913295b6aa9bb377dd9edb845c1f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 02:18:08 +0000 Subject: [PATCH 07/15] fix(ci): bump @arethetypeswrong/cli to ^0.18.0 and run CI workflows on Node 24 --- .github/workflows/ci.yml | 6 ++-- .github/workflows/publish-npm.yml | 2 +- package.json | 2 +- yarn.lock | 51 +++++++++++++++++++------------ 4 files changed, 37 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0853c80f..41146aa2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: '20' + node-version: '24' - name: Bootstrap run: ./scripts/bootstrap @@ -48,7 +48,7 @@ jobs: - name: Set up Node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: '20' + node-version: '24' - name: Bootstrap run: ./scripts/bootstrap @@ -85,7 +85,7 @@ jobs: - name: Set up Node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - node-version: '20' + node-version: '24' - name: Bootstrap run: ./scripts/bootstrap diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 33e6e03f..3a3a9ad7 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Node uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1 with: - node-version: '20' + node-version: '24' - name: Install dependencies run: | diff --git a/package.json b/package.json index 5c37e8d8..b6e73ea1 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "dependencies": {}, "devDependencies": { - "@arethetypeswrong/cli": "^0.17.0", + "@arethetypeswrong/cli": "^0.18.0", "@swc/core": "^1.3.102", "@swc/jest": "^0.2.29", "@types/jest": "^29.4.0", diff --git a/yarn.lock b/yarn.lock index 38236e67..443cc054 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,12 +12,12 @@ resolved "https://registry.yarnpkg.com/@andrewbranch/untar.js/-/untar.js-1.0.3.tgz#ba9494f85eb83017c5c855763969caf1d0adea00" integrity sha512-Jh15/qVmrLGhkKJBdXlK1+9tY4lZruYjsgkDFj08ZmDiWVBLJcqkok7Z0/R0In+i1rScBpJlSvrTS2Lm41Pbnw== -"@arethetypeswrong/cli@^0.17.0": - version "0.17.0" - resolved "https://registry.yarnpkg.com/@arethetypeswrong/cli/-/cli-0.17.0.tgz#f97f10926b3f9f9eb5117550242d2e06c25cadac" - integrity sha512-xSMW7bfzVWpYw5JFgZqBXqr6PdR0/REmn3DkxCES5N0JTcB0CVgbIynJCvKBFmXaPc3hzmmTrb7+yPDRoOSZdA== +"@arethetypeswrong/cli@^0.18.0": + version "0.18.4" + resolved "https://registry.yarnpkg.com/@arethetypeswrong/cli/-/cli-0.18.4.tgz#c31f54f3b0d0e0f3256ab3edb6530beeb5e64b4b" + integrity sha512-kNWo6LTzGAuLYPpJ7Sgo63whSUeeSuKMlYx6IBgzs4ONEG807gW4hSSENvpeCHzO2H2wIzG5EFl0OKBbqGBAyA== dependencies: - "@arethetypeswrong/core" "0.17.0" + "@arethetypeswrong/core" "0.18.4" chalk "^4.1.2" cli-table3 "^0.6.3" commander "^10.0.1" @@ -25,15 +25,16 @@ marked-terminal "^7.1.0" semver "^7.5.4" -"@arethetypeswrong/core@0.17.0": - version "0.17.0" - resolved "https://registry.yarnpkg.com/@arethetypeswrong/core/-/core-0.17.0.tgz#abb3b5f425056d37193644c2a2de4aecf866b76b" - integrity sha512-FHyhFizXNetigTVsIhqXKGYLpazPS5YNojEPpZEUcBPt9wVvoEbNIvG+hybuBR+pjlRcbyuqhukHZm1fr+bDgA== +"@arethetypeswrong/core@0.18.4": + version "0.18.4" + resolved "https://registry.yarnpkg.com/@arethetypeswrong/core/-/core-0.18.4.tgz#24edea3d651dea7d32bf6f1cc9ee9a00db39de49" + integrity sha512-M5F0ePyN6h2Z6XxRiyIPqjGbltotXLjR0CKA0uKspsDu0QmgTNYvRb4RSQPMUs2ZXZHCCYpbaZbFbYOXLxCjUA== dependencies: "@andrewbranch/untar.js" "^1.0.3" + "@loaderkit/resolve" "^1.0.2" cjs-module-lexer "^1.2.3" - fflate "^0.8.2" - lru-cache "^10.4.3" + fflate "^0.8.3" + lru-cache "^11.0.1" semver "^7.5.4" typescript "5.6.1-rc" validate-npm-package-name "^5.0.0" @@ -306,6 +307,11 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== +"@braidai/lang@^1.0.0": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@braidai/lang/-/lang-1.1.2.tgz#65bc2bc1db6d00e153b95ac7006f4573e289e9be" + integrity sha512-qBcknbBufNHlui137Hft8xauQMTZDKdophmLFv05r2eNmdIv/MlPuP4TdUknHG68UdWLgVZwgxVe735HzJNIwA== + "@colors/colors@1.5.0": version "1.5.0" resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9" @@ -688,6 +694,13 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" +"@loaderkit/resolve@^1.0.2": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@loaderkit/resolve/-/resolve-1.0.6.tgz#8d45341e688faecc25b3ae919c0f45d94c4e26c9" + integrity sha512-G8FdIoF5CypfwmD9rl8BXod5HDn8JqB0CCNBXDTaRZ+yRYhARrrSToX1zg1zy9jX3zLqigsELwhT4gNtkdQAUg== + dependencies: + "@braidai/lang" "^1.0.0" + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -1696,10 +1709,10 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" -fflate@^0.8.2: - version "0.8.2" - resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.8.2.tgz#fc8631f5347812ad6028bbe4a2308b2792aa1dea" - integrity sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A== +fflate@^0.8.3: + version "0.8.3" + resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.8.3.tgz#bc27d8eb30343d4d512abb03480202ce65d825fc" + integrity sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA== file-entry-cache@^8.0.0: version "8.0.0" @@ -2490,10 +2503,10 @@ lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -lru-cache@^10.4.3: - version "10.4.3" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" - integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== +lru-cache@^11.0.1: + version "11.5.2" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-11.5.2.tgz#00e16665c90c620fba14a3c368732a976493f760" + integrity sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g== lru-cache@^5.1.1: version "5.1.1" From 716cd461db6b60ce653c8933205bdcc184fdb2d7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 19:22:49 +0000 Subject: [PATCH 08/15] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3a2a109f..dabe5011 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-6a7b9b4dd160ba7b5684a30a1bdad6cc24f74b18a444a87ea4952f8719283d69.yml -openapi_spec_hash: 246641ee2fdb6786f0d36a18bc1f3f60 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-b8cc3cd22fb5e21f0c4834474f40f1c6849ae36dea1bd258e422d21d9de41666.yml +openapi_spec_hash: c04466ffd6f33587b8004b374d755ba9 config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 From d64cd6775fd4f9e2a0265c4a4187ef605d7ca7de Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 21:22:47 +0000 Subject: [PATCH 09/15] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index dabe5011..ef315151 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-b8cc3cd22fb5e21f0c4834474f40f1c6849ae36dea1bd258e422d21d9de41666.yml -openapi_spec_hash: c04466ffd6f33587b8004b374d755ba9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-11cfdabbaa68dd893b8c83f28171f0a1018c27cbbcc2481aa68b065d76f600cc.yml +openapi_spec_hash: b34263ef93c878107572727675d3e13a config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 From b16f9b5bfd6669d1d0cfd36f8bbcde878cdcbe31 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2026 01:22:48 +0000 Subject: [PATCH 10/15] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ef315151..abb4d24d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-11cfdabbaa68dd893b8c83f28171f0a1018c27cbbcc2481aa68b065d76f600cc.yml -openapi_spec_hash: b34263ef93c878107572727675d3e13a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-4665c5fff94672de582b52b36180a8e872eed7cab8b59ac6f0168675f4d8a623.yml +openapi_spec_hash: 37443feb3b6b4347e241aa59d812625f config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 From d51614b1ff14c384ada30d50aa2fb8ad9c870472 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2026 02:11:59 +0000 Subject: [PATCH 11/15] feat(stlc): configurable CI runner and private-production-repo support in workflow templates --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41146aa2..b8a24bf2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: lint: timeout-minutes: 10 name: lint - runs-on: ${{ github.repository == 'stainless-sdks/mixedbread-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -37,7 +37,7 @@ jobs: build: timeout-minutes: 5 name: build - runs-on: ${{ github.repository == 'stainless-sdks/mixedbread-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') permissions: contents: read @@ -77,7 +77,7 @@ jobs: test: timeout-minutes: 10 name: test - runs-on: ${{ github.repository == 'stainless-sdks/mixedbread-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 From 4e39da378ee70163866278927fafded4fbaa147f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2026 20:22:44 +0000 Subject: [PATCH 12/15] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index abb4d24d..f410d07e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-4665c5fff94672de582b52b36180a8e872eed7cab8b59ac6f0168675f4d8a623.yml -openapi_spec_hash: 37443feb3b6b4347e241aa59d812625f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-c0060c77a9ebd3fbf83480b8ee996543d239f47d4b82664b5752e70eff3ea215.yml +openapi_spec_hash: 34bf90178623c8bcde7b678a6e499a30 config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 From fb3bd314c4f2ba740d9588fddb39cc27f59e1fed Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 23:22:46 +0000 Subject: [PATCH 13/15] feat(api): api update --- .stats.yml | 4 ++-- src/resources/stores/files.ts | 15 +++++++++++++++ src/resources/stores/stores.ts | 22 +++++++++++++++++++--- 3 files changed, 36 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index f410d07e..b8a29a18 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-c0060c77a9ebd3fbf83480b8ee996543d239f47d4b82664b5752e70eff3ea215.yml -openapi_spec_hash: 34bf90178623c8bcde7b678a6e499a30 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-4613ae9309a80729e4455d7846423ad403bb25346e7faed443e312e633134d54.yml +openapi_spec_hash: 44b136788c48653957ebd4aeda7a8f50 config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 diff --git a/src/resources/stores/files.ts b/src/resources/stores/files.ts index 1153b7fc..cbea09cb 100644 --- a/src/resources/stores/files.ts +++ b/src/resources/stores/files.ts @@ -446,6 +446,11 @@ export interface AudioURLInputChunk { */ transcription?: string | null; + /** + * LLM-generated context that situates this audio chunk within its source file + */ + context?: string | null; + /** * summary of the audio */ @@ -501,6 +506,11 @@ export interface ImageURLInputChunk { */ ocr_text?: string | null; + /** + * LLM-generated context that situates this image within its source document + */ + context?: string | null; + /** * summary of the image */ @@ -698,6 +708,11 @@ export interface VideoURLInputChunk { */ transcription?: string | null; + /** + * LLM-generated context that situates this video chunk within its source file + */ + context?: string | null; + /** * summary of the video */ diff --git a/src/resources/stores/stores.ts b/src/resources/stores/stores.ts index d470bec6..691363d0 100644 --- a/src/resources/stores/stores.ts +++ b/src/resources/stores/stores.ts @@ -366,9 +366,10 @@ export interface ContextualizationConfig { with_metadata?: boolean | Array; /** - * Use an LLM to generate a short context for each text chunk that situates it - * within the full document, improving retrieval accuracy. Only applies to text - * content during non-sliced ingestion. + * Use an LLM to generate a short context for each chunk with parsed text, OCR, + * transcription, or a summary that situates it within the document, improving + * retrieval accuracy. During sliced ingestion, chunks are situated within their + * current slice. */ with_file_context?: boolean; } @@ -680,6 +681,11 @@ export interface ScoredAudioURLInputChunk { */ transcription?: string | null; + /** + * LLM-generated context that situates this audio chunk within its source file + */ + context?: string | null; + /** * summary of the audio */ @@ -765,6 +771,11 @@ export interface ScoredImageURLInputChunk { */ ocr_text?: string | null; + /** + * LLM-generated context that situates this image within its source document + */ + context?: string | null; + /** * summary of the image */ @@ -930,6 +941,11 @@ export interface ScoredVideoURLInputChunk { */ transcription?: string | null; + /** + * LLM-generated context that situates this video chunk within its source file + */ + context?: string | null; + /** * summary of the video */ From 986a245e18691f683e1ada03c1f555b6eda9a153 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 14:22:48 +0000 Subject: [PATCH 14/15] feat(api): api update --- .stats.yml | 4 ++-- src/resources/files/files.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b8a29a18..8b573e06 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 57 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-4613ae9309a80729e4455d7846423ad403bb25346e7faed443e312e633134d54.yml -openapi_spec_hash: 44b136788c48653957ebd4aeda7a8f50 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread/mixedbread-4561de49f80321b17fcf79c523820e306222ccf794acff026207ceb8668bfdb2.yml +openapi_spec_hash: 4aaddd4e89992b1241a8550a57ca1934 config_hash: e6d8bd7d4c4a20c75bbfbdb7fc688122 diff --git a/src/resources/files/files.ts b/src/resources/files/files.ts index 9d54a5a7..28e09058 100644 --- a/src/resources/files/files.ts +++ b/src/resources/files/files.ts @@ -107,6 +107,9 @@ export class Files extends APIResource { /** * Delete a specific file by its ID. * + * Removes the file from every store that references it (cleaning up chunks and + * store stats) before deleting the file object itself. + * * Args: file_id: The ID of the file to delete. * * Returns: FileDeleted: The response containing the details of the deleted file. From 9919b3dcaf05391af1a1f84ca640ca0288f812d6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 14:23:18 +0000 Subject: [PATCH 15/15] release: 0.78.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 17 +++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index bec5fdbf..2fc68753 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.77.0" + ".": "0.78.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 466fb5b5..dd873e25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## 0.78.0 (2026-07-23) + +Full Changelog: [v0.77.0...v0.78.0](https://github.com/mixedbread-ai/mixedbread-ts/compare/v0.77.0...v0.78.0) + +### Features + +* **api:** api update ([986a245](https://github.com/mixedbread-ai/mixedbread-ts/commit/986a245e18691f683e1ada03c1f555b6eda9a153)) +* **api:** api update ([fb3bd31](https://github.com/mixedbread-ai/mixedbread-ts/commit/fb3bd314c4f2ba740d9588fddb39cc27f59e1fed)) +* **api:** api update ([516c6df](https://github.com/mixedbread-ai/mixedbread-ts/commit/516c6df444df91f4a68fa49cadabbb07770b7b75)) +* **api:** api update ([7b94dfb](https://github.com/mixedbread-ai/mixedbread-ts/commit/7b94dfb46fdeb344768b6f7b5a27b1f466917d2d)) +* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([d51614b](https://github.com/mixedbread-ai/mixedbread-ts/commit/d51614b1ff14c384ada30d50aa2fb8ad9c870472)) + + +### Bug Fixes + +* **ci:** bump @arethetypeswrong/cli to ^0.18.0 and run CI workflows on Node 24 ([d16c556](https://github.com/mixedbread-ai/mixedbread-ts/commit/d16c5563f59d913295b6aa9bb377dd9edb845c1f)) + ## 0.77.0 (2026-06-30) Full Changelog: [v0.76.0...v0.77.0](https://github.com/mixedbread-ai/mixedbread-ts/compare/v0.76.0...v0.77.0) diff --git a/package.json b/package.json index b6e73ea1..0b55bdfa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mixedbread/sdk", - "version": "0.77.0", + "version": "0.78.0", "description": "The official TypeScript library for the Mixedbread API", "author": "Mixedbread ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index c5f6a2a4..3d604761 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.77.0'; // x-release-please-version +export const VERSION = '0.78.0'; // x-release-please-version