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
9 changes: 6 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: ""
id: ""
management:
docChecksum: d148bb9fcca23371c04cee2b6ca57c55
docChecksum: 801e4976adc28d200a75252dc2487287
docVersion: 1.0.0
speakeasyVersion: 1.808.1
generationVersion: 2.960.8
releaseVersion: 1.5.164
configChecksum: 73b00667d489cbc2c112db8607d3bc93
releaseVersion: 1.5.165
configChecksum: 17fe289a0684eaf795f3df61e1b1cc42
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down Expand Up @@ -23925,3 +23925,6 @@ examples:
"500":
application/json: {"error": {"code": 400, "message": "custom_id is required on requests[0]."}}
examplesVersion: 1.0.2
releaseNotes: |
## Typescript SDK Changes:
* `openrouter.generations.getGeneration()`: `response.data.apiType.enum(realtime)` **Added**
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
typescript:
version: 1.5.164
version: 1.5.165
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
1 change: 1 addition & 0 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15765,6 +15765,7 @@ components:
- 'stt'
- 'image'
- 'tools_invoke'
- 'realtime'
- null
type:
- 'string'
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.808.1
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:c8352bc3ba6694f852186ee60cf7c8695ded97ec7c8f121a26b745009aadd4a9
sourceBlobDigest: sha256:53f7cfd47d6bc2b0896b993c25ccecc6e23c1206666016fdfcfda004db8141b1
sourceRevisionDigest: sha256:3981bc8255111360f77ba24b80a55378dc21bef86d060870f91e2c2b8a92b803
sourceBlobDigest: sha256:bd1599518313c3a5dcabfdf47acb01bdcdb2cde6e1a96f496280d5f9f96ad2b2
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:c8352bc3ba6694f852186ee60cf7c8695ded97ec7c8f121a26b745009aadd4a9
sourceBlobDigest: sha256:53f7cfd47d6bc2b0896b993c25ccecc6e23c1206666016fdfcfda004db8141b1
sourceRevisionDigest: sha256:3981bc8255111360f77ba24b80a55378dc21bef86d060870f91e2c2b8a92b803
sourceBlobDigest: sha256:bd1599518313c3a5dcabfdf47acb01bdcdb2cde6e1a96f496280d5f9f96ad2b2
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:b0d04ba4b0b8394c31c92979a94b4520cc5a7f547fc758fb194d78f716d6c401
codeSamplesRevisionDigest: sha256:69c7aa58c55128a2cfa49474a32d7b24efb77cb45b256b7e69b35dafcf6e5ba9
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.808.1
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6016,4 +6016,14 @@ Based on:
### Generated
- [typescript v1.5.164] .
### Releases
- [NPM v1.5.164] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.164 - .
- [NPM v1.5.164] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.164 - .

## 2026-12-02 22:26:25
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.165] .
### Releases
- [NPM v1.5.165] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.165 - .
2 changes: 1 addition & 1 deletion docs/models/apitype.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ let value: ApiType = "video";
## Values

```typescript
"completions" | "embeddings" | "rerank" | "decisions" | "extractions" | "video" | "tts" | "stt" | "image" | "tools_invoke" | Unrecognized<string>
"completions" | "embeddings" | "rerank" | "decisions" | "extractions" | "video" | "tts" | "stt" | "image" | "tools_invoke" | "realtime" | 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.5.164",
"version": "1.5.165",
"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.5.164",
"version": "1.5.165",
"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": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"prepublishOnly": "npm run build",
"test:transit": "exit 0",
"compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"postinstall": "node scripts/check-types.js || true",
"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"
"test:e2e": "vitest --run --project e2e"
},
"peerDependencies": {

Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "1.5.164",
sdkVersion: "1.5.165",
genVersion: "2.960.8",
userAgent: "speakeasy-sdk/typescript 1.5.164 2.960.8 1.0.0 @openrouter/sdk",
userAgent: "speakeasy-sdk/typescript 1.5.165 2.960.8 1.0.0 @openrouter/sdk",
} as const;
1 change: 1 addition & 0 deletions src/models/generationresponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const ApiType = {
STT: "stt",
Image: "image",
ToolsInvoke: "tools_invoke",
Realtime: "realtime",
} as const;
/**
* Type of API used for the generation
Expand Down