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
6 changes: 3 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: ""
id: ""
management:
docChecksum: 7adefdd521a84f95cf21c833866e8925
docChecksum: 8ef536ba144983515d83bf1becc5f388
docVersion: 1.0.0
speakeasyVersion: 1.808.1
generationVersion: 2.960.8
releaseVersion: 1.5.182
configChecksum: b90c5629aad1e0221a33e783de11132f
releaseVersion: 1.5.183
configChecksum: 2694ce61d7787635a391a418408d2ccd
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down
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.182
version: 1.5.183
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45488,7 +45488,7 @@ paths:
- $ref: "#/components/parameters/AppCategories"
/batches:
get:
description: 'Lists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page''s `last_id` as `after`. List items omit `results`. Use `GET /batches/{id}` to get them. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).'
description: 'Lists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page''s `last_id` as `after`. In list items, `results` is always `null`. Use `GET /batches/{id}` to retrieve results. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).'
operationId: 'listBatches'
parameters:
- description: 'Maximum number of batches to return, from 1 through 100.'
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:62cbd5a21bed07b7ee748bd70835cd2cb77d0edeb1785f70841930b19d034362
sourceBlobDigest: sha256:e063911d64de2527b449a00cda5c9f6428d21e18d7b80270be971f152569a7c2
sourceRevisionDigest: sha256:c1a5c58cdb1ed6ce68fff9bcd37d2a112a85b9df66fbc97aa40ce4d8c7ce7599
sourceBlobDigest: sha256:3c997969537a8247e910ec3214c5b714123c0f8038c9400f520d2b7030b72e5b
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:62cbd5a21bed07b7ee748bd70835cd2cb77d0edeb1785f70841930b19d034362
sourceBlobDigest: sha256:e063911d64de2527b449a00cda5c9f6428d21e18d7b80270be971f152569a7c2
sourceRevisionDigest: sha256:c1a5c58cdb1ed6ce68fff9bcd37d2a112a85b9df66fbc97aa40ce4d8c7ce7599
sourceBlobDigest: sha256:3c997969537a8247e910ec3214c5b714123c0f8038c9400f520d2b7030b72e5b
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:edb5b566fce7862c3ad56adf6c4882898c85bda9e22fe1497559a5d47e16f238
codeSamplesRevisionDigest: sha256:bb825c1886869633ff52e2517ee514d06502f40394a9fbe67a52fcda90a090c3
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 @@ -6196,4 +6196,14 @@ Based on:
### Generated
- [typescript v1.5.182] .
### Releases
- [NPM v1.5.182] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.182 - .
- [NPM v1.5.182] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.182 - .

## 2026-12-05 06:26:07
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.183] .
### Releases
- [NPM v1.5.183] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.183 - .
2 changes: 1 addition & 1 deletion docs/sdks/batch/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Submit, list, poll, cancel, and delete asynchronous batches of inference request

## list

Lists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page's `last_id` as `after`. List items omit `results`. Use `GET /batches/{id}` to get them. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).
Lists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page's `last_id` as `after`. In list items, `results` is always `null`. Use `GET /batches/{id}` to retrieve results. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).

### Example Usage

Expand Down
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.182",
"version": "1.5.183",
"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.182",
"version": "1.5.183",
"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",
"test:watch": "vitest --watch --project unit",
"typecheck": "tsc --noEmit",
"postinstall": "node scripts/check-types.js || true",
"prepare": "npm run build",
"test": "vitest --run --project unit",
"typecheck:transit": "exit 0",
"test:e2e": "vitest --run --project e2e",
"test:transit": "exit 0",
"test:watch": "vitest --watch --project unit",
"typecheck": "tsc --noEmit",
"compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
"test:e2e": "vitest --run --project e2e"
"typecheck:transit": "exit 0"
},
"peerDependencies": {

Expand Down
2 changes: 1 addition & 1 deletion src/funcs/batchList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
* List batches
*
* @remarks
* Lists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page's `last_id` as `after`. List items omit `results`. Use `GET /batches/{id}` to get them. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).
* Lists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page's `last_id` as `after`. In list items, `results` is always `null`. Use `GET /batches/{id}` to retrieve results. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).
*/
export function batchList(
client: OpenRouterCore,
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.182",
sdkVersion: "1.5.183",
genVersion: "2.960.8",
userAgent: "speakeasy-sdk/typescript 1.5.182 2.960.8 1.0.0 @openrouter/sdk",
userAgent: "speakeasy-sdk/typescript 1.5.183 2.960.8 1.0.0 @openrouter/sdk",
} as const;
2 changes: 1 addition & 1 deletion src/sdk/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Batch extends ClientSDK {
* List batches
*
* @remarks
* Lists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page's `last_id` as `after`. List items omit `results`. Use `GET /batches/{id}` to get them. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).
* Lists batches in the workspace of the authenticating API key, newest first. To fetch the next page, pass the previous page's `last_id` as `after`. In list items, `results` is always `null`. Use `GET /batches/{id}` to retrieve results. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).
*/
async list(
request?: operations.ListBatchesRequest | undefined,
Expand Down