From eaf09a34a5a6aa3a015d07218c712e16d1b31a1b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 5 Dec 2026 20:22:01 +0000 Subject: [PATCH] =?UTF-8?q?##=20Typescript=20SDK=20Changes:=20*=20`openrou?= =?UTF-8?q?ter.apiKeys.create()`:=20=20=20*=20=20`request.requestBody.exte?= =?UTF-8?q?rnal.apiKey`=20**Removed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .speakeasy/gen.lock | 7 ++++--- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 5 ----- .speakeasy/workflow.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- docs/models/operations/external.mdx | 1 - jsr.json | 2 +- package.json | 10 +++++----- src/lib/config.ts | 4 ++-- src/models/operations/createkeys.ts | 10 ---------- 10 files changed, 29 insertions(+), 34 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 39dd565c6..f95910fe8 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: "" id: "" management: - docChecksum: 8ef536ba144983515d83bf1becc5f388 + docChecksum: 1840e64a57dcda1a2741b1a44d3bd29d docVersion: 1.0.0 speakeasyVersion: 1.808.1 generationVersion: 2.960.8 - releaseVersion: 1.5.183 - configChecksum: 2694ce61d7787635a391a418408d2ccd + releaseVersion: 1.5.184 + configChecksum: da41b44feff48feb9cb97f586de8478a repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git installationURL: https://github.com/OpenRouterTeam/typescript-sdk published: true @@ -24226,3 +24226,4 @@ examples: "500": application/json: {"error": {"code": 500, "message": "Internal Server Error"}} examplesVersion: 1.0.2 +releaseNotes: "## Typescript SDK Changes:\n* `openrouter.apiKeys.create()`: \n * `request.requestBody.external.apiKey` **Removed** (Breaking ⚠️)\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index e3047cb4e..9e1aa0ca7 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -38,7 +38,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true typescript: - version: 1.5.183 + version: 1.5.184 acceptHeaderEnum: false additionalDependencies: dependencies: diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 3ea5da458..47ecf5194 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -56575,11 +56575,6 @@ paths: external: description: 'Optional partner-defined identity associated with the created API key.' properties: - api_key: - description: 'Optional partner-supplied API key with a minimum length of 32 characters and sufficient entropy. Stored as a SHA-256 hash and never returned.' - maxLength: 512 - minLength: 32 - type: 'string' user: description: 'Partner''s external user identifier for attribution: 1 to 512 characters after surrounding whitespace is trimmed, well-formed Unicode, no NUL. For organization keys outside HIPAA workspaces, the value is registered as an external user if it does not exist yet, and the key is linked to it.' example: 'partner-user-123' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 864c54342..63e729930 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:c1a5c58cdb1ed6ce68fff9bcd37d2a112a85b9df66fbc97aa40ce4d8c7ce7599 - sourceBlobDigest: sha256:3c997969537a8247e910ec3214c5b714123c0f8038c9400f520d2b7030b72e5b + sourceRevisionDigest: sha256:43ce9ec685fba9b65f3336dc7d45a7f9aeb5ee3fd592d78406bc5d66f893ed89 + sourceBlobDigest: sha256:6df9a503cb88ebfa6b4c1e8082717fdae8893ec6ded844b3c3fffd8b82d19f83 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: openrouter: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:c1a5c58cdb1ed6ce68fff9bcd37d2a112a85b9df66fbc97aa40ce4d8c7ce7599 - sourceBlobDigest: sha256:3c997969537a8247e910ec3214c5b714123c0f8038c9400f520d2b7030b72e5b + sourceRevisionDigest: sha256:43ce9ec685fba9b65f3336dc7d45a7f9aeb5ee3fd592d78406bc5d66f893ed89 + sourceBlobDigest: sha256:6df9a503cb88ebfa6b4c1e8082717fdae8893ec6ded844b3c3fffd8b82d19f83 codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples - codeSamplesRevisionDigest: sha256:bb825c1886869633ff52e2517ee514d06502f40394a9fbe67a52fcda90a090c3 + codeSamplesRevisionDigest: sha256:d90da3074e68904394c5dd2e789f4eb005575b192d57d47129059ea758c888e3 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.808.1 diff --git a/RELEASES.md b/RELEASES.md index 9545dd91b..0aa1154db 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -6206,4 +6206,14 @@ Based on: ### 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 +- [NPM v1.5.183] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.183 - . + +## 2026-12-05 20:19:52 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.5.184] . +### Releases +- [NPM v1.5.184] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.184 - . \ No newline at end of file diff --git a/docs/models/operations/external.mdx b/docs/models/operations/external.mdx index 3eada74b5..70eb4b2e3 100644 --- a/docs/models/operations/external.mdx +++ b/docs/models/operations/external.mdx @@ -18,5 +18,4 @@ let value: External = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `apiKey` | *string* | ➖ | Optional partner-supplied API key with a minimum length of 32 characters and sufficient entropy. Stored as a SHA-256 hash and never returned. | | | `user` | *string* | ✔️ | Partner's external user identifier for attribution: 1 to 512 characters after surrounding whitespace is trimmed, well-formed Unicode, no NUL. For organization keys outside HIPAA workspaces, the value is registered as an external user if it does not exist yet, and the key is linked to it. | partner-user-123 | \ No newline at end of file diff --git a/jsr.json b/jsr.json index 2054e8ff2..d188d84a6 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@openrouter/sdk", - "version": "1.5.183", + "version": "1.5.184", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package.json b/package.json index 15263624f..6bfd3ff9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/sdk", - "version": "1.5.183", + "version": "1.5.184", "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", - "postinstall": "node scripts/check-types.js || true", + "typecheck": "tsc --noEmit", + "typecheck:transit": "exit 0", "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", "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js", - "typecheck:transit": "exit 0" + "postinstall": "node scripts/check-types.js || true", + "test": "vitest --run --project unit" }, "peerDependencies": { diff --git a/src/lib/config.ts b/src/lib/config.ts index 3964a3568..d9032a62a 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.183", + sdkVersion: "1.5.184", genVersion: "2.960.8", - userAgent: "speakeasy-sdk/typescript 1.5.183 2.960.8 1.0.0 @openrouter/sdk", + userAgent: "speakeasy-sdk/typescript 1.5.184 2.960.8 1.0.0 @openrouter/sdk", } as const; diff --git a/src/models/operations/createkeys.ts b/src/models/operations/createkeys.ts index 66844c90f..c930827a0 100644 --- a/src/models/operations/createkeys.ts +++ b/src/models/operations/createkeys.ts @@ -36,10 +36,6 @@ export type CreateKeysGlobals = { * Optional partner-defined identity associated with the created API key. */ export type External = { - /** - * Optional partner-supplied API key with a minimum length of 32 characters and sufficient entropy. Stored as a SHA-256 hash and never returned. - */ - apiKey?: string | undefined; /** * Partner's external user identifier for attribution: 1 to 512 characters after surrounding whitespace is trimmed, well-formed Unicode, no NUL. For organization keys outside HIPAA workspaces, the value is registered as an external user if it does not exist yet, and the key is linked to it. */ @@ -255,19 +251,13 @@ export type CreateKeysResponse = { /** @internal */ export type External$Outbound = { - api_key?: string | undefined; user: string; }; /** @internal */ export const External$outboundSchema: z.ZodType = z .object({ - apiKey: z.string().optional(), user: z.string(), - }).transform((v) => { - return remap$(v, { - apiKey: "api_key", - }); }); export function externalToJSON(external: External): string {