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
47 changes: 17 additions & 30 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: ""
id: ""
management:
docChecksum: b115a84a0a3064752bee8d6c5de8ed0e
docChecksum: e10057cbdca89ba6e38ac0d091edf809
docVersion: 1.0.0
speakeasyVersion: 1.802.0
generationVersion: 2.948.4
releaseVersion: 1.5.7
configChecksum: 8756d95d94900acf0d093b1b4a2a3c86
releaseVersion: 1.5.8
configChecksum: f7c624e4b11d4d8596fee3822ba27e32
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
persistentEdits:
generation_id: d89ba09f-14f5-4449-94c1-6d28ec76319b
pristine_commit_hash: 9592038cdfd3c83b8d00a3ae64c0d3dc557f4ba6
pristine_tree_hash: 85f80cca5f78fba731686d07b7d8b66e92668af5
generation_id: ed59632a-05fe-4e8c-99ce-2fe3fef7a69a
pristine_commit_hash: f42b7c6c84b9937d5dda2ab645e73aa776bb099d
pristine_tree_hash: 0a6e12a7a2d6c473436cda223cf0c0c37cb98953
features:
typescript:
acceptHeaders: 2.81.2
Expand Down Expand Up @@ -13654,8 +13654,8 @@ trackedFiles:
deleted: true
docs/models/supportedsize.mdx:
id: bcb235938132
last_write_checksum: sha1:8760e16a1c689ef750ba80131ad3cdff3faa0cc8
pristine_git_object: 5fe6e0d75f9dafe993374fe618cc0e3ff8082d23
last_write_checksum: sha1:9253bde974daf26df56f04ac9c337fff0a4e4304
pristine_git_object: c1aa8fd5bdab63b44a75935f895007c47db088e6
docs/models/switchyardrouterplugin.mdx:
id: 58f9fabcbcf9
last_write_checksum: sha1:46f5c565948b7360238ac798a3226518b15cfd48
Expand Down Expand Up @@ -15315,12 +15315,12 @@ trackedFiles:
pristine_git_object: 410efafd6a7f50d91ccb87131fedbe0c3d47e15a
jsr.json:
id: 7f6ab7767282
last_write_checksum: sha1:55c934a23ae4e6c335951a9d6506b6c0a36b4a92
pristine_git_object: 3de1ffd9b175b6513bac5a68802b880eb7daac01
last_write_checksum: sha1:08e18f132992dd110e7840fff9fb547b57a6ceb7
pristine_git_object: 3def8504e7a0c6bf3cc799eaa17ca480115b2dd3
package.json:
id: 7030d0b2f71b
last_write_checksum: sha1:5e6f0ffeb964ddf5b964c28c06942a5e34346dd5
pristine_git_object: f9b683bbad0b6d8f5ac8fa9747e99c4c68a00c6a
last_write_checksum: sha1:33fb6364eaa6043b0f699d42edde69e3b26ad939
pristine_git_object: 6e43edbfa650537a4f243b336b7a1d62617a0058
src/core.ts:
id: f431fdbcd144
last_write_checksum: sha1:5aa66b0b6a5964f3eea7f3098c2eb3c0ee9c0131
Expand Down Expand Up @@ -15899,8 +15899,8 @@ trackedFiles:
pristine_git_object: a187e58707bdb726ca2aff74941efe7493422d4e
src/lib/config.ts:
id: 320761608fb3
last_write_checksum: sha1:92c4db15b22b3efc808109c2655ff153f255799e
pristine_git_object: e6763e121f709b0ddd101420fd7d1e0f45c101bb
last_write_checksum: sha1:eedbb692b22a47dd1e2f25fced2661b5d2fd5eb6
pristine_git_object: 6e7deca631aa6f4381a28816c7b85231d045b8ce
src/lib/dlv.ts:
id: b1988214835a
last_write_checksum: sha1:eaac763b22717206a6199104e0403ed17a4e2711
Expand Down Expand Up @@ -19841,8 +19841,8 @@ trackedFiles:
pristine_git_object: edaa1b6b7d0735f2777f7f860d536f3b00eb5ec2
src/models/videomodel.ts:
id: 3761c095ec55
last_write_checksum: sha1:bb90cbbb56a05108c3272bbd3340e551f16b2cce
pristine_git_object: 1f3c4bf86657d0d069b0c7ad8d8bcfc9cabb298b
last_write_checksum: sha1:0b1a975ec18da45882f462f1a592b19bb1691692
pristine_git_object: ac8525db91e1ee2be414e9ca79f881868213179c
src/models/videomodelslistresponse.ts:
id: 3ddde944c8c8
last_write_checksum: sha1:74c107d5bb0d3221dd465bfab762fecb88d815e3
Expand Down Expand Up @@ -24527,17 +24527,4 @@ examples:
examplesVersion: 1.0.2
releaseNotes: |
## Typescript SDK Changes:
* `openrouter.interns.listInterns()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.createIntern()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.deleteIntern()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.getIntern()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.updateIntern()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.getInternConnections()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.getInternDaemon()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.getInternDaemonAccess()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.signInternDaemonAccessRequest()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.signInternDaemonRequest()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.getInternIcon()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.provisionIntern()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.suspendIntern()`: **Removed** (Breaking ⚠️)
* `openrouter.interns.invoke()`: **Removed** (Breaking ⚠️)
* `openrouter.videoGeneration.listVideosModels()`: `response.data[].supportedSizes[]` **Changed**
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.5.7
version: 1.5.8
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
2 changes: 2 additions & 0 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32859,6 +32859,7 @@ components:
- '480x720'
- '480x854'
- '480x1120'
- '496x864'
- '540x360'
- '560x752'
- '640x360'
Expand All @@ -32879,6 +32880,7 @@ components:
- '834x1112'
- '840x360'
- '854x480'
- '864x496'
- '960x720'
- '960x960'
- '992x432'
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.802.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:12a9536ef41eeb336c00fe2a924c8e7bd76a6d5aac4a0d2718032e7126aea798
sourceBlobDigest: sha256:72ae8a5539f92d178f078e8e590e730fabfb0138dd189d895150d070833bbfd1
sourceRevisionDigest: sha256:3fad3b7ac8de59ec4f4ba9631c3b71f0f80a24cf6b81e2d94a49b04f4b8e7bb7
sourceBlobDigest: sha256:6325dd2741535f2f7ea1cda033bd00c77dc0bbfea7c0d114852bbe4c39c58555
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:12a9536ef41eeb336c00fe2a924c8e7bd76a6d5aac4a0d2718032e7126aea798
sourceBlobDigest: sha256:72ae8a5539f92d178f078e8e590e730fabfb0138dd189d895150d070833bbfd1
sourceRevisionDigest: sha256:3fad3b7ac8de59ec4f4ba9631c3b71f0f80a24cf6b81e2d94a49b04f4b8e7bb7
sourceBlobDigest: sha256:6325dd2741535f2f7ea1cda033bd00c77dc0bbfea7c0d114852bbe4c39c58555
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:03d3d3e13a0121dec05fe5dd00c739d2c10ec483e277b7adccde7e5f26f02330
codeSamplesRevisionDigest: sha256:ea2bbdfe9bb27b0a93a03bfdc7e62824fec946a5ac610374903d4268a04b420f
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.802.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4456,4 +4456,14 @@ Based on:
### Generated
- [typescript v1.5.7] .
### Releases
- [NPM v1.5.7] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.7 - .
- [NPM v1.5.7] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.7 - .

## 2026-10-26 19:41:01
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.802.0 (2.948.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.8] .
### Releases
- [NPM v1.5.8] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.8 - .
2 changes: 1 addition & 1 deletion docs/models/supportedsize.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ let value: SupportedSize = "2160x3240";
## Values

```typescript
"360x360" | "360x480" | "360x540" | "360x640" | "360x840" | "480x360" | "480x480" | "480x640" | "480x720" | "480x854" | "480x1120" | "540x360" | "560x752" | "640x360" | "640x480" | "640x640" | "720x480" | "720x720" | "720x960" | "720x1080" | "720x1280" | "720x1680" | "752x560" | "768x768" | "768x1024" | "768x1152" | "768x1366" | "768x1792" | "834x1112" | "840x360" | "854x480" | "960x720" | "960x960" | "992x432" | "1024x768" | "1080x720" | "1080x1080" | "1080x1440" | "1080x1620" | "1080x1920" | "1080x2520" | "1112x834" | "1120x480" | "1152x768" | "1280x720" | "1366x768" | "1440x1080" | "1440x1440" | "1440x1920" | "1440x2160" | "1440x2560" | "1440x3360" | "1470x630" | "1620x1080" | "1680x720" | "1792x768" | "1920x1080" | "1920x1440" | "2160x1440" | "2160x2160" | "2160x2880" | "2160x3240" | "2160x3840" | "2160x5040" | "2520x1080" | "2560x1440" | "2880x2160" | "3240x2160" | "3360x1440" | "3840x2160" | "5040x2160" | Unrecognized<string>
"360x360" | "360x480" | "360x540" | "360x640" | "360x840" | "480x360" | "480x480" | "480x640" | "480x720" | "480x854" | "480x1120" | "496x864" | "540x360" | "560x752" | "640x360" | "640x480" | "640x640" | "720x480" | "720x720" | "720x960" | "720x1080" | "720x1280" | "720x1680" | "752x560" | "768x768" | "768x1024" | "768x1152" | "768x1366" | "768x1792" | "834x1112" | "840x360" | "854x480" | "864x496" | "960x720" | "960x960" | "992x432" | "1024x768" | "1080x720" | "1080x1080" | "1080x1440" | "1080x1620" | "1080x1920" | "1080x2520" | "1112x834" | "1120x480" | "1152x768" | "1280x720" | "1366x768" | "1440x1080" | "1440x1440" | "1440x1920" | "1440x2160" | "1440x2560" | "1440x3360" | "1470x630" | "1620x1080" | "1680x720" | "1792x768" | "1920x1080" | "1920x1440" | "2160x1440" | "2160x2160" | "2160x2880" | "2160x3240" | "2160x3840" | "2160x5040" | "2520x1080" | "2560x1440" | "2880x2160" | "3240x2160" | "3360x1440" | "3840x2160" | "5040x2160" | 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.7",
"version": "1.5.8",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openrouter/sdk",
"version": "1.5.7",
"version": "1.5.8",
"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 && node scripts/unbarrel-imports.js",
"prepublishOnly": "npm run build",
"compile": "tsc && node scripts/unbarrel-imports.js",
"typecheck:transit": "exit 0",
"prepare": "npm run build",
"test": "vitest --run --project unit",
"test:e2e": "vitest --run --project e2e",
"typecheck": "tsc --noEmit",
"postinstall": "node scripts/check-types.js || true",
"test:transit": "exit 0",
"test:watch": "vitest --watch --project unit",
"typecheck:transit": "exit 0"
"compile": "tsc && node scripts/unbarrel-imports.js",
"postinstall": "node scripts/check-types.js || true",
"test": "vitest --run --project unit",
"typecheck": "tsc --noEmit"
},
"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 @@ -79,7 +79,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0.0",
sdkVersion: "1.5.7",
sdkVersion: "1.5.8",
genVersion: "2.948.4",
userAgent: "speakeasy-sdk/typescript 1.5.7 2.948.4 1.0.0 @openrouter/sdk",
userAgent: "speakeasy-sdk/typescript 1.5.8 2.948.4 1.0.0 @openrouter/sdk",
} as const;
2 changes: 2 additions & 0 deletions src/models/videomodel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const SupportedSize = {
FourHundredAndEightyx720: "480x720",
FourHundredAndEightyx854: "480x854",
FourHundredAndEightyx1120: "480x1120",
FourHundredAndNinetySixx864: "496x864",
FiveHundredAndFortyx360: "540x360",
FiveHundredAndSixtyx752: "560x752",
SixHundredAndFortyx360: "640x360",
Expand All @@ -74,6 +75,7 @@ export const SupportedSize = {
EightHundredAndThirtyFourx1112: "834x1112",
EightHundredAndFortyx360: "840x360",
EightHundredAndFiftyFourx480: "854x480",
EightHundredAndSixtyFourx496: "864x496",
NineHundredAndSixtyx720: "960x720",
NineHundredAndSixtyx960: "960x960",
NineHundredAndNinetyTwox432: "992x432",
Expand Down
Loading