From 8d48a1f1aa8b3f4bc22dcfcc6bb71c915da24c8e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 5 Dec 2026 06:29:10 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.808.1 --- .speakeasy/gen.lock | 6 +++--- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 2 +- .speakeasy/workflow.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- docs/sdks/batch/README.mdx | 2 +- jsr.json | 2 +- package.json | 12 ++++++------ src/funcs/batchList.ts | 2 +- src/lib/config.ts | 4 ++-- src/sdk/batch.ts | 2 +- 11 files changed, 33 insertions(+), 23 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 6052fe052..39dd565c6 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 54c94da5b..e3047cb4e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -38,7 +38,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true typescript: - version: 1.5.182 + version: 1.5.183 acceptHeaderEnum: false additionalDependencies: dependencies: diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index fda4aee48..3ea5da458 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -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.' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 977d15464..864c54342 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ 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 @@ -11,10 +11,10 @@ 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 diff --git a/RELEASES.md b/RELEASES.md index 9f25f13db..9545dd91b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -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 - . \ No newline at end of file +- [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 - . \ No newline at end of file diff --git a/docs/sdks/batch/README.mdx b/docs/sdks/batch/README.mdx index dbf21023e..d1ea1efe8 100644 --- a/docs/sdks/batch/README.mdx +++ b/docs/sdks/batch/README.mdx @@ -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 diff --git a/jsr.json b/jsr.json index 74d11c3ce..2054e8ff2 100644 --- a/jsr.json +++ b/jsr.json @@ -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", diff --git a/package.json b/package.json index 8a85142e5..15263624f 100644 --- a/package.json +++ b/package.json @@ -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": [ @@ -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": { diff --git a/src/funcs/batchList.ts b/src/funcs/batchList.ts index e31501dce..cf9f1791c 100644 --- a/src/funcs/batchList.ts +++ b/src/funcs/batchList.ts @@ -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, diff --git a/src/lib/config.ts b/src/lib/config.ts index c7c1d242a..3964a3568 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -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; diff --git a/src/sdk/batch.ts b/src/sdk/batch.ts index 2c40ef594..79c507e5f 100644 --- a/src/sdk/batch.ts +++ b/src/sdk/batch.ts @@ -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,