Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: ""
id: ""
management:
docChecksum: 4e3a7decb0983fd885239f88ab71b279
docChecksum: 8aa0a7b554a3a89c7414d4b2f308b447
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 1.2.118
configChecksum: c53870ed7b7a294d7a9eafaaadaf7679
releaseVersion: 1.2.119
configChecksum: 581a6d8225eedda9b1366e6ac94df3c7
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
persistentEdits:
generation_id: 5ab7f1d6-4b53-4f64-b8f6-08910f947c59
pristine_commit_hash: ffa5759a7a2cad0a5955994f07f36291e02438a8
pristine_tree_hash: fb1e1e83b2e86555226441c621342d79073119e6
generation_id: b8d11d8b-2476-487f-bf0b-63635e2076d5
pristine_commit_hash: 854624d12967515f47fd05954fdfc05e4ffb45c9
pristine_tree_hash: ba2b8505fb4b40cbb44fe9ad44e13080ade9d41a
features:
typescript:
acceptHeaders: 2.81.2
Expand Down Expand Up @@ -1591,8 +1591,8 @@ trackedFiles:
deleted: true
docs/models/byokproviderslug.mdx:
id: d719e6f9fe4e
last_write_checksum: sha1:16671bb81151308060e6b2ab2738bf4a2a9bb006
pristine_git_object: 647a19434be220cf92ea413c71094a95acc82563
last_write_checksum: sha1:103435b5c0b12c7ec4f16be96cf8a37cc94dce43
pristine_git_object: 96dd400e7c4e769ce95b2296f39c52e4da025c02
docs/models/cachecontrol.md:
id: 400a7240e8c2
last_write_checksum: sha1:0813cddf0350d7885b906084988a79ace1ddea15
Expand Down Expand Up @@ -8908,8 +8908,8 @@ trackedFiles:
deleted: true
docs/models/operations/provider.mdx:
id: 45f471a16baa
last_write_checksum: sha1:c4c05341b95c8393bc418da1cca024e72c65df23
pristine_git_object: a23fafba075e4d8210a9e7e2c97d5860e62475cb
last_write_checksum: sha1:a58a5eb2a0aad76af129c54eed458700f17eba13
pristine_git_object: 39defe239012e78dea3e8fb62528673b3c5e9714
docs/models/operations/queryanalyticsdata1.md:
id: ecb6e11852f5
last_write_checksum: sha1:d7153b0a35bd6b99a27c2239be0212dc6c749a78
Expand Down Expand Up @@ -13313,12 +13313,12 @@ trackedFiles:
pristine_git_object: 410efafd6a7f50d91ccb87131fedbe0c3d47e15a
jsr.json:
id: 7f6ab7767282
last_write_checksum: sha1:4820fc55082408051f5ff8eccd743544812c3896
pristine_git_object: 55d3c0d4eea245d9d43b3d5b7e1c2a480f86ceec
last_write_checksum: sha1:820c41fae2e27d3625a6f3c31607ca60aba3eea9
pristine_git_object: 01d9fd58e2f93335e784afb79d124732fbca3c06
package.json:
id: 7030d0b2f71b
last_write_checksum: sha1:13f9b5b5faf7367a7ddac8e6dca9d621fdcc4460
pristine_git_object: 00adafc446fe1a7a2815e2c808465973b451574b
last_write_checksum: sha1:2288a2a4632bb27aaa76d092d624780d985563fd
pristine_git_object: 48694035e1289f1645fcd14cbbb9d427ea8e6f87
src/core.ts:
id: f431fdbcd144
last_write_checksum: sha1:5aa66b0b6a5964f3eea7f3098c2eb3c0ee9c0131
Expand Down Expand Up @@ -13761,8 +13761,8 @@ trackedFiles:
pristine_git_object: a187e58707bdb726ca2aff74941efe7493422d4e
src/lib/config.ts:
id: 320761608fb3
last_write_checksum: sha1:9a5fe511f22e4fc5dd8b007c6e15c65f8c3fff20
pristine_git_object: cfae1750c0333b14957acb67f2fe7fcfd87372f5
last_write_checksum: sha1:041365d369e7a32c3894ad1514716cdb2ea3cc95
pristine_git_object: ac7dfbe3b12eb8a57bb868b38dec11caf86df561
src/lib/dlv.ts:
id: b1988214835a
last_write_checksum: sha1:eaac763b22717206a6199104e0403ed17a4e2711
Expand Down Expand Up @@ -14199,8 +14199,8 @@ trackedFiles:
pristine_git_object: da9bbed278ba5c9c2e9ad3db28d456a2ad764d75
src/models/byokproviderslug.ts:
id: f8e7a5a4b0a2
last_write_checksum: sha1:f1acea2510706cba6d248852077efb72beb36d24
pristine_git_object: 8557f960aa6f3aa5230601459f7a5c66777b4242
last_write_checksum: sha1:c64b97c90eecc4fa12e40ea3f5abd5d008ffad1b
pristine_git_object: 839fe28a6cabb1cd6d87d69ab950e80af4d7ab1a
src/models/capabilitydescriptor.ts:
id: 867d654ac8ab
last_write_checksum: sha1:85657be17f920009d3e8ee58b548d9bf64995059
Expand Down Expand Up @@ -15799,8 +15799,8 @@ trackedFiles:
pristine_git_object: 1b025b64611d7dfc01df57b52dec8342b4777def
src/models/operations/listbyokkeys.ts:
id: 953de50b8d0e
last_write_checksum: sha1:74a984a4fc655989d0a6dbd4940d31cbbb8324cb
pristine_git_object: 9c65fc28bdab4e353a3e6e8ca5e7c620a6f7f436
last_write_checksum: sha1:a7ffa119912fe97570c3787924d0be11bfc82bf9
pristine_git_object: 091f57df072561f7e32d32b30567e2f67631857a
src/models/operations/listcontainerfiles.ts:
id: 833ac1772f55
last_write_checksum: sha1:788a717daa7787fec35b2a9ae784f8f672007862
Expand Down Expand Up @@ -19012,4 +19012,4 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Typescript SDK Changes:\n* `openrouter.presets.createPresetsResponses()`: \n * `request.responsesRequest` **Changed**\n* `openrouter.responses.send()`: \n * `request.responsesRequest` **Changed**\n * `response` **Changed**\n* `openrouter.beta.responses.send()`: \n * `request.responsesRequest` **Changed**\n * `response` **Changed**\n"
releaseNotes: "## Typescript SDK Changes:\n* `openrouter.byok.list()`: \n * `request.provider` **Changed**\n * `response.data[].provider` **Changed**\n* `openrouter.byok.create()`: \n * `request.createByokKeyRequest.provider` **Changed**\n * `response.data.provider` **Changed**\n* `openrouter.byok.get()`: `response.data.provider` **Changed**\n* `openrouter.byok.update()`: `response.data.provider` **Changed**\n"
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
typescript:
version: 1.2.118
version: 1.2.119
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
6 changes: 6 additions & 0 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4689,9 +4689,11 @@ components:
- 'akashml'
- 'alibaba'
- 'amazon-bedrock'
- 'amazon-bedrock/claude-on-aws'
- 'amazon-nova'
- 'ambient'
- 'anthropic'
- 'anthropic/2'
- 'arcee-ai'
- 'atlas-cloud'
- 'avian'
Expand All @@ -4704,6 +4706,7 @@ components:
- 'chutes'
- 'cirrascale'
- 'clarifai'
- 'claude-on-aws'
- 'cloudflare'
- 'cohere'
- 'coreweave'
Expand Down Expand Up @@ -29766,9 +29769,11 @@ paths:
- 'akashml'
- 'alibaba'
- 'amazon-bedrock'
- 'amazon-bedrock/claude-on-aws'
- 'amazon-nova'
- 'ambient'
- 'anthropic'
- 'anthropic/2'
- 'arcee-ai'
- 'atlas-cloud'
- 'avian'
Expand All @@ -29781,6 +29786,7 @@ paths:
- 'chutes'
- 'cirrascale'
- 'clarifai'
- 'claude-on-aws'
- 'cloudflare'
- 'cohere'
- 'coreweave'
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:f5e0ba920940e3804bd53c90da5a5314eb64542e17fadacb5252d21f5f7079ef
sourceBlobDigest: sha256:ca9660507abaa3871ae59d8dc8204363ad0ee97a44f9be6e5d110d369c1a486f
sourceRevisionDigest: sha256:a0529d820fa6433baf6ecf14445f172f89b22d8350b4062809cc28b95f6a6373
sourceBlobDigest: sha256:916300719ec349eea28afa92f21f8863cb25ecc6cdec136add0ef1f6071d3510
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:f5e0ba920940e3804bd53c90da5a5314eb64542e17fadacb5252d21f5f7079ef
sourceBlobDigest: sha256:ca9660507abaa3871ae59d8dc8204363ad0ee97a44f9be6e5d110d369c1a486f
sourceRevisionDigest: sha256:a0529d820fa6433baf6ecf14445f172f89b22d8350b4062809cc28b95f6a6373
sourceBlobDigest: sha256:916300719ec349eea28afa92f21f8863cb25ecc6cdec136add0ef1f6071d3510
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:8a953fd88604d41f5479293cf4682e2995c919fc5627d4b369ec74fca8a6901e
codeSamplesRevisionDigest: sha256:67086de368e0a8737c12b1b9054ac7c8ace7512505c21c082cff793a8b676433
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3476,4 +3476,14 @@ Based on:
### Generated
- [typescript v1.2.118] .
### Releases
- [NPM v1.2.118] https://www.npmjs.com/package/@openrouter/sdk/v/1.2.118 - .
- [NPM v1.2.118] https://www.npmjs.com/package/@openrouter/sdk/v/1.2.118 - .

## 2026-09-11 15:19:37
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.2.119] .
### Releases
- [NPM v1.2.119] https://www.npmjs.com/package/@openrouter/sdk/v/1.2.119 - .
2 changes: 1 addition & 1 deletion docs/models/byokproviderslug.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ let value: BYOKProviderSlug = "openai";
## Values

```typescript
"ai21" | "aion-labs" | "akashml" | "alibaba" | "amazon-bedrock" | "amazon-nova" | "ambient" | "anthropic" | "arcee-ai" | "atlas-cloud" | "avian" | "azure" | "baidu" | "baseten" | "black-forest-labs" | "byteplus" | "cerebras" | "chutes" | "cirrascale" | "clarifai" | "cloudflare" | "cohere" | "coreweave" | "cosine" | "crusoe" | "darkbloom" | "databricks" | "decart" | "deepgram" | "deepinfra" | "deepseek" | "dekallm" | "digitalocean" | "featherless" | "fireworks" | "fish-audio" | "friendli" | "gmicloud" | "google-ai-studio" | "google-vertex" | "groq" | "heygen" | "inception" | "inceptron" | "inferact-vllm" | "inference-net" | "infermatic" | "inflection" | "io-net" | "ionstream" | "krea" | "liquid" | "makora" | "mancer" | "mara" | "meta" | "minimax" | "mistral" | "modal" | "modelrun" | "modular" | "moonshotai" | "morph" | "near-ai" | "nebius" | "nex-agi" | "nextbit" | "novita" | "nvidia" | "ollama" | "open-inference" | "openai" | "parasail" | "perceptron" | "perplexity" | "phala" | "poolside" | "primeintellect" | "quiver" | "recraft" | "reka" | "relace" | "runway" | "sail-research" | "sakana" | "sakana-ai" | "sambanova" | "seed" | "siliconflow" | "sourceful" | "stepfun" | "streamlake" | "switchpoint" | "tencent" | "tenstorrent" | "thinkingmachines" | "together" | "upstage" | "venice" | "voyageai" | "wafer" | "wandb" | "wandb-legacy" | "xai" | "xiaomi" | "z-ai" | Unrecognized<string>
"ai21" | "aion-labs" | "akashml" | "alibaba" | "amazon-bedrock" | "amazon-bedrock/claude-on-aws" | "amazon-nova" | "ambient" | "anthropic" | "anthropic/2" | "arcee-ai" | "atlas-cloud" | "avian" | "azure" | "baidu" | "baseten" | "black-forest-labs" | "byteplus" | "cerebras" | "chutes" | "cirrascale" | "clarifai" | "claude-on-aws" | "cloudflare" | "cohere" | "coreweave" | "cosine" | "crusoe" | "darkbloom" | "databricks" | "decart" | "deepgram" | "deepinfra" | "deepseek" | "dekallm" | "digitalocean" | "featherless" | "fireworks" | "fish-audio" | "friendli" | "gmicloud" | "google-ai-studio" | "google-vertex" | "groq" | "heygen" | "inception" | "inceptron" | "inferact-vllm" | "inference-net" | "infermatic" | "inflection" | "io-net" | "ionstream" | "krea" | "liquid" | "makora" | "mancer" | "mara" | "meta" | "minimax" | "mistral" | "modal" | "modelrun" | "modular" | "moonshotai" | "morph" | "near-ai" | "nebius" | "nex-agi" | "nextbit" | "novita" | "nvidia" | "ollama" | "open-inference" | "openai" | "parasail" | "perceptron" | "perplexity" | "phala" | "poolside" | "primeintellect" | "quiver" | "recraft" | "reka" | "relace" | "runway" | "sail-research" | "sakana" | "sakana-ai" | "sambanova" | "seed" | "siliconflow" | "sourceful" | "stepfun" | "streamlake" | "switchpoint" | "tencent" | "tenstorrent" | "thinkingmachines" | "together" | "upstage" | "venice" | "voyageai" | "wafer" | "wandb" | "wandb-legacy" | "xai" | "xiaomi" | "z-ai" | Unrecognized<string>
```
2 changes: 1 addition & 1 deletion docs/models/operations/provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ let value: Provider = "openai";
## Values

```typescript
"ai21" | "aion-labs" | "akashml" | "alibaba" | "amazon-bedrock" | "amazon-nova" | "ambient" | "anthropic" | "arcee-ai" | "atlas-cloud" | "avian" | "azure" | "baidu" | "baseten" | "black-forest-labs" | "byteplus" | "cerebras" | "chutes" | "cirrascale" | "clarifai" | "cloudflare" | "cohere" | "coreweave" | "cosine" | "crusoe" | "darkbloom" | "databricks" | "decart" | "deepgram" | "deepinfra" | "deepseek" | "dekallm" | "digitalocean" | "featherless" | "fireworks" | "fish-audio" | "friendli" | "gmicloud" | "google-ai-studio" | "google-vertex" | "groq" | "heygen" | "inception" | "inceptron" | "inferact-vllm" | "inference-net" | "infermatic" | "inflection" | "io-net" | "ionstream" | "krea" | "liquid" | "makora" | "mancer" | "mara" | "meta" | "minimax" | "mistral" | "modal" | "modelrun" | "modular" | "moonshotai" | "morph" | "near-ai" | "nebius" | "nex-agi" | "nextbit" | "novita" | "nvidia" | "ollama" | "open-inference" | "openai" | "parasail" | "perceptron" | "perplexity" | "phala" | "poolside" | "primeintellect" | "quiver" | "recraft" | "reka" | "relace" | "runway" | "sail-research" | "sakana" | "sakana-ai" | "sambanova" | "seed" | "siliconflow" | "sourceful" | "stepfun" | "streamlake" | "switchpoint" | "tencent" | "tenstorrent" | "thinkingmachines" | "together" | "upstage" | "venice" | "voyageai" | "wafer" | "wandb" | "wandb-legacy" | "xai" | "xiaomi" | "z-ai" | Unrecognized<string>
"ai21" | "aion-labs" | "akashml" | "alibaba" | "amazon-bedrock" | "amazon-bedrock/claude-on-aws" | "amazon-nova" | "ambient" | "anthropic" | "anthropic/2" | "arcee-ai" | "atlas-cloud" | "avian" | "azure" | "baidu" | "baseten" | "black-forest-labs" | "byteplus" | "cerebras" | "chutes" | "cirrascale" | "clarifai" | "claude-on-aws" | "cloudflare" | "cohere" | "coreweave" | "cosine" | "crusoe" | "darkbloom" | "databricks" | "decart" | "deepgram" | "deepinfra" | "deepseek" | "dekallm" | "digitalocean" | "featherless" | "fireworks" | "fish-audio" | "friendli" | "gmicloud" | "google-ai-studio" | "google-vertex" | "groq" | "heygen" | "inception" | "inceptron" | "inferact-vllm" | "inference-net" | "infermatic" | "inflection" | "io-net" | "ionstream" | "krea" | "liquid" | "makora" | "mancer" | "mara" | "meta" | "minimax" | "mistral" | "modal" | "modelrun" | "modular" | "moonshotai" | "morph" | "near-ai" | "nebius" | "nex-agi" | "nextbit" | "novita" | "nvidia" | "ollama" | "open-inference" | "openai" | "parasail" | "perceptron" | "perplexity" | "phala" | "poolside" | "primeintellect" | "quiver" | "recraft" | "reka" | "relace" | "runway" | "sail-research" | "sakana" | "sakana-ai" | "sambanova" | "seed" | "siliconflow" | "sourceful" | "stepfun" | "streamlake" | "switchpoint" | "tencent" | "tenstorrent" | "thinkingmachines" | "together" | "upstage" | "venice" | "voyageai" | "wafer" | "wandb" | "wandb-legacy" | "xai" | "xiaomi" | "z-ai" | Unrecognized<string>
```
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@openrouter/sdk",
"version": "1.2.118",
"version": "1.2.119",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openrouter/sdk",
"version": "1.2.118",
"version": "1.2.119",
"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": [
Expand Down Expand Up @@ -73,15 +73,15 @@
"lint": "eslint --cache --max-warnings=0 src",
"build": "tsc",
"prepublishOnly": "npm run build",
"test:watch": "vitest --watch --project unit",
"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:watch": "vitest --watch --project unit",
"typecheck": "tsc --noEmit",
"typecheck:transit": "exit 0",
"postinstall": "node scripts/check-types.js || true",
"prepare": "npm run build"
"typecheck:transit": "exit 0"
},
"peerDependencies": {},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "1.2.118",
sdkVersion: "1.2.119",
genVersion: "2.914.0",
userAgent: "speakeasy-sdk/typescript 1.2.118 2.914.0 1.0.0 @openrouter/sdk",
userAgent: "speakeasy-sdk/typescript 1.2.119 2.914.0 1.0.0 @openrouter/sdk",
} as const;
3 changes: 3 additions & 0 deletions src/models/byokproviderslug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ export const BYOKProviderSlug = {
Akashml: "akashml",
Alibaba: "alibaba",
AmazonBedrock: "amazon-bedrock",
AmazonBedrockClaudeOnAws: "amazon-bedrock/claude-on-aws",
AmazonNova: "amazon-nova",
Ambient: "ambient",
Anthropic: "anthropic",
Anthropic2: "anthropic/2",
ArceeAi: "arcee-ai",
AtlasCloud: "atlas-cloud",
Avian: "avian",
Expand All @@ -31,6 +33,7 @@ export const BYOKProviderSlug = {
Chutes: "chutes",
Cirrascale: "cirrascale",
Clarifai: "clarifai",
ClaudeOnAws: "claude-on-aws",
Cloudflare: "cloudflare",
Cohere: "cohere",
Coreweave: "coreweave",
Expand Down
3 changes: 3 additions & 0 deletions src/models/operations/listbyokkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ export const Provider = {
Akashml: "akashml",
Alibaba: "alibaba",
AmazonBedrock: "amazon-bedrock",
AmazonBedrockClaudeOnAws: "amazon-bedrock/claude-on-aws",
AmazonNova: "amazon-nova",
Ambient: "ambient",
Anthropic: "anthropic",
Anthropic2: "anthropic/2",
ArceeAi: "arcee-ai",
AtlasCloud: "atlas-cloud",
Avian: "avian",
Expand All @@ -58,6 +60,7 @@ export const Provider = {
Chutes: "chutes",
Cirrascale: "cirrascale",
Clarifai: "clarifai",
ClaudeOnAws: "claude-on-aws",
Cloudflare: "cloudflare",
Cohere: "cohere",
Coreweave: "coreweave",
Expand Down
Loading