diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 752edd7ec..b476e2b19 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,19 +1,19 @@
lockVersion: ""
id: ""
management:
- docChecksum: 37fb9b9856a2ae0d9e11fb4768a32d2a
+ docChecksum: 1c2ca68d0cf8d76972f3af3bb7f909dc
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
- releaseVersion: 1.2.36
- configChecksum: e59f84b33b947a01c60eb6c4db369d05
+ releaseVersion: 1.2.37
+ configChecksum: bd8b7e16438c5e8e249b09e40ebef0c6
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
persistentEdits:
- generation_id: e143093a-314c-477e-86d5-419c807b4c5c
- pristine_commit_hash: 410e0139df8eb0eeccde12f17617121bcd53aa2b
- pristine_tree_hash: 331df5dd13f8639e7427e97bc1d72c22797698f5
+ generation_id: f94c1a50-4896-441e-b809-a313197f2509
+ pristine_commit_hash: 0a1f40757041c1b788cdb42a278741d19bcb26d3
+ pristine_tree_hash: 00b672a64b364c6daba4ea1cf156ce507c6fe7a5
features:
typescript:
acceptHeaders: 2.81.2
@@ -9351,8 +9351,8 @@ trackedFiles:
deleted: true
docs/models/outputfusionservertoolitem.mdx:
id: 3a8a257c7b48
- last_write_checksum: sha1:f7723229c769cef9327f2ed6681c811e10e769e2
- pristine_git_object: 41eef5b0900f234080a06551fee58fcb5982912a
+ last_write_checksum: sha1:8ff29c3421c9b501231c2535d1faf673b665db99
+ pristine_git_object: 27f18f901a7ed2f9f5f4f3b0e56cb1834b9fef8d
docs/models/outputfusionservertoolitemtype.md:
id: eafd1611f253
last_write_checksum: sha1:1a7f9abf5428e4d2b4881609da95ab3f215aa035
@@ -12897,12 +12897,12 @@ trackedFiles:
pristine_git_object: 410efafd6a7f50d91ccb87131fedbe0c3d47e15a
jsr.json:
id: 7f6ab7767282
- last_write_checksum: sha1:be270bf3375440eeaf384b6f92de33495023deb9
- pristine_git_object: 89b4c437b1171bcfe94d6c12ca20ac2b5dfd058f
+ last_write_checksum: sha1:da7a234209cee3a13c40d32505fa826d70e0f20a
+ pristine_git_object: 6a8fdf16398376c61e4e17074889da479bad5b9e
package.json:
id: 7030d0b2f71b
- last_write_checksum: sha1:13c6d439006cf289a0b7d1e9f1b99feb6a97ca39
- pristine_git_object: 65acca186ffc9c1c45a2a7d06bcaf71d2ecb0081
+ last_write_checksum: sha1:523fc01d8c513921eafb6ede2e009cfbee0a73f2
+ pristine_git_object: 0cc7be612bf34c722a3f189f2664fa6fee8b87ce
src/core.ts:
id: f431fdbcd144
last_write_checksum: sha1:5aa66b0b6a5964f3eea7f3098c2eb3c0ee9c0131
@@ -13313,8 +13313,8 @@ trackedFiles:
pristine_git_object: a187e58707bdb726ca2aff74941efe7493422d4e
src/lib/config.ts:
id: 320761608fb3
- last_write_checksum: sha1:a5eb9037836e2e79816eb3b7e63766e7a398c03f
- pristine_git_object: 552107a6bbef8dda70600cfaeaeae83fa3f721f9
+ last_write_checksum: sha1:fba21720261e82fbf4edf106d0ca2e68d25aba10
+ pristine_git_object: 786c76a14f26c9d5bf83455a77066b90c9a40556
src/lib/dlv.ts:
id: b1988214835a
last_write_checksum: sha1:eaac763b22717206a6199104e0403ed17a4e2711
@@ -15455,8 +15455,8 @@ trackedFiles:
pristine_git_object: 4c8a471669db452e42832b9f21a906de2606c396
src/models/outputfusionservertoolitem.ts:
id: 30bcfe965217
- last_write_checksum: sha1:576ef86a23c5de5132d4754247f6c00a848d2d50
- pristine_git_object: daead39530127de3ec7ff64ac6dd3a8ec625e691
+ last_write_checksum: sha1:9f08b458689579fa8750eccebe104da10a05c6d9
+ pristine_git_object: e4613f4cd3cef386271dfb7ed5550b3a1e4a55ac
src/models/outputimagegenerationcallitem.ts:
id: 618bac10713d
last_write_checksum: sha1:41413c2fbfebe62fa16d6aa61fd51aa48fcaef00
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index aadae8088..edf7af8dd 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
typescript:
- version: 1.2.36
+ version: 1.2.37
acceptHeaderEnum: false
additionalDependencies:
dependencies:
diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml
index 16e24b1d3..ba7eb7332 100644
--- a/.speakeasy/out.openapi.yaml
+++ b/.speakeasy/out.openapi.yaml
@@ -18606,7 +18606,7 @@ components:
type: 'object'
type: 'array'
failure_reason:
- description: 'Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, invalid_model, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. The four analysis-stage codes keep their pre-rename `judge_` spelling so existing consumers keep matching.'
+ description: 'Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, invalid_model, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. The four analysis-stage codes keep their pre-rename `judge_` spelling so existing consumers keep matching. The consumer-cancellation code is `cancelled`.'
type: 'string'
id:
type: 'string'
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 3f6aad932..3c715ab80 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -2,8 +2,8 @@ speakeasyVersion: 1.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
- sourceRevisionDigest: sha256:f5dcfebe663841b2e076c0212b38c72ca7b4ef05cb4f1328bd12cdc7cad6e7c8
- sourceBlobDigest: sha256:4d3ece5ab707a697546ff317aba06ba9c0db574de3adf7d0c1cc6f7addffbcc1
+ sourceRevisionDigest: sha256:0620b79982c94d0bbc25e9ca83d3c9c1e728fd1034755808536818f4d825446a
+ sourceBlobDigest: sha256:9ae35e44ff534735a225a4dcb3fc5bb028c43349ec4dedacb3c58d554f422769
tags:
- latest
- 1.0.0
@@ -11,10 +11,10 @@ targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
- sourceRevisionDigest: sha256:f5dcfebe663841b2e076c0212b38c72ca7b4ef05cb4f1328bd12cdc7cad6e7c8
- sourceBlobDigest: sha256:4d3ece5ab707a697546ff317aba06ba9c0db574de3adf7d0c1cc6f7addffbcc1
+ sourceRevisionDigest: sha256:0620b79982c94d0bbc25e9ca83d3c9c1e728fd1034755808536818f4d825446a
+ sourceBlobDigest: sha256:9ae35e44ff534735a225a4dcb3fc5bb028c43349ec4dedacb3c58d554f422769
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
- codeSamplesRevisionDigest: sha256:9df0db24c78d3c0f6462c2e42ddf38796c2c3028d0a4ae8ea851daf3802ac45a
+ codeSamplesRevisionDigest: sha256:037a19b5b7367adefab125a81fad5c3cfb93c2fcef66b7737dd91535a274db64
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
diff --git a/RELEASES.md b/RELEASES.md
index 1cde66804..f92ab6426 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -2656,4 +2656,14 @@ Based on:
### Generated
- [typescript v1.2.36] .
### Releases
-- [NPM v1.2.36] https://www.npmjs.com/package/@openrouter/sdk/v/1.2.36 - .
\ No newline at end of file
+- [NPM v1.2.36] https://www.npmjs.com/package/@openrouter/sdk/v/1.2.36 - .
+
+## 2026-08-14 21:23:51
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [typescript v1.2.37] .
+### Releases
+- [NPM v1.2.37] https://www.npmjs.com/package/@openrouter/sdk/v/1.2.37 - .
\ No newline at end of file
diff --git a/docs/models/outputfusionservertoolitem.mdx b/docs/models/outputfusionservertoolitem.mdx
index 41eef5b09..27f18f901 100644
--- a/docs/models/outputfusionservertoolitem.mdx
+++ b/docs/models/outputfusionservertoolitem.mdx
@@ -22,7 +22,7 @@ let value: OutputFusionServerToolItem = {
| `analysis` | [models.FusionAnalysisResult](../models/fusionanalysisresult.mdx) | :heavy_minus_sign: | Structured analysis produced by the fusion analyst model. | \{
"blind_spots": [
"No model considered the impact on existing API consumers."
],
"consensus": [
"All panel models agree the request is asking for a concise summary."
],
"contradictions": [
\{
"stances": [
\{
"model": "openai/gpt-5",
"stance": "Favors an incremental rollout."
},
\{
"model": "anthropic/claude-sonnet-4.5",
"stance": "Favors a single coordinated migration."
}
],
"topic": "Recommended approach"
}
],
"partial_coverage": [
\{
"models": [
"openai/gpt-5"
],
"point": "Only one model addressed the rollback strategy."
}
],
"unique_insights": [
\{
"insight": "Highlighted a backwards-compatibility risk the other models missed.",
"model": "anthropic/claude-sonnet-4.5"
}
]
} |
| `error` | *string* | :heavy_minus_sign: | Error message when the fusion run did not produce an analysis result. | |
| `failedModels` | [models.FailedModel](../models/failedmodel.mdx)[] | :heavy_minus_sign: | Models that were requested as part of the analysis panel but did not produce a response. Present when at least one requested analysis model failed. The fusion result is still usable but was produced from a degraded panel. | |
-| `failureReason` | *string* | :heavy_minus_sign: | Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, invalid_model, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. The four analysis-stage codes keep their pre-rename `judge_` spelling so existing consumers keep matching. | |
+| `failureReason` | *string* | :heavy_minus_sign: | Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, invalid_model, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. The four analysis-stage codes keep their pre-rename `judge_` spelling so existing consumers keep matching. The consumer-cancellation code is `cancelled`. | |
| `id` | *string* | :heavy_minus_sign: | N/A | |
| `responses` | [models.ResponseT](../models/responset.mdx)[] | :heavy_minus_sign: | Analysis models that produced a response in this fusion run, with each model's full panel content. | |
| `sources` | [models.FusionSource](../models/fusionsource.mdx)[] | :heavy_minus_sign: | Web pages the analysis panels and analyst retrieved via web search during this fusion run, deduplicated by URL across the whole run. Present when at least one model cited a source. | |
diff --git a/jsr.json b/jsr.json
index 89b4c437b..6a8fdf163 100644
--- a/jsr.json
+++ b/jsr.json
@@ -2,7 +2,7 @@
{
"name": "@openrouter/sdk",
- "version": "1.2.36",
+ "version": "1.2.37",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
diff --git a/package.json b/package.json
index ec4a7dc8b..c0a4d618a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@openrouter/sdk",
- "version": "1.2.36",
+ "version": "1.2.37",
"author": "OpenRouter",
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
"keywords": [
@@ -21,8 +21,8 @@
"license": "Apache-2.0",
"packageManager": "pnpm@10.22.0",
"publishConfig": {
- "access": "public",
- "provenance": true
+ "provenance": true,
+ "access": "public"
},
"type": "module",
"main": "./esm/index.js",
@@ -73,15 +73,15 @@
"lint": "eslint --cache --max-warnings=0 src",
"build": "tsc",
"prepublishOnly": "npm run build",
+ "prepare": "npm run build",
+ "test": "vitest --run --project unit",
"test:watch": "vitest --watch --project unit",
"typecheck": "tsc --noEmit",
"typecheck:transit": "exit 0",
"compile": "tsc",
- "postinstall": "node scripts/check-types.js || true",
- "prepare": "npm run build",
- "test": "vitest --run --project unit",
"test:e2e": "vitest --run --project e2e",
- "test:transit": "exit 0"
+ "test:transit": "exit 0",
+ "postinstall": "node scripts/check-types.js || true"
},
"peerDependencies": {},
"devDependencies": {
diff --git a/src/lib/config.ts b/src/lib/config.ts
index 552107a6b..786c76a14 100644
--- a/src/lib/config.ts
+++ b/src/lib/config.ts
@@ -75,7 +75,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
- sdkVersion: "1.2.36",
+ sdkVersion: "1.2.37",
genVersion: "2.914.0",
- userAgent: "speakeasy-sdk/typescript 1.2.36 2.914.0 1.0.0 @openrouter/sdk",
+ userAgent: "speakeasy-sdk/typescript 1.2.37 2.914.0 1.0.0 @openrouter/sdk",
} as const;
diff --git a/src/models/outputfusionservertoolitem.ts b/src/models/outputfusionservertoolitem.ts
index daead3953..e4613f4cd 100644
--- a/src/models/outputfusionservertoolitem.ts
+++ b/src/models/outputfusionservertoolitem.ts
@@ -71,7 +71,7 @@ export type OutputFusionServerToolItem = {
*/
failedModels?: Array | undefined;
/**
- * Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, invalid_model, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. The four analysis-stage codes keep their pre-rename `judge_` spelling so existing consumers keep matching.
+ * Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, invalid_model, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. The four analysis-stage codes keep their pre-rename `judge_` spelling so existing consumers keep matching. The consumer-cancellation code is `cancelled`.
*/
failureReason?: string | undefined;
id?: string | undefined;