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
14 changes: 4 additions & 10 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: ""
id: ""
management:
docChecksum: 7355ca8d820d1af33337c0cd907c51e3
docChecksum: a58fc69a5070955b9069a4a9a9a3272b
docVersion: 1.0.0
speakeasyVersion: 1.808.1
generationVersion: 2.960.8
releaseVersion: 1.5.168
configChecksum: 3888ae92124fa56020ca40bfa0016cc1
releaseVersion: 1.5.169
configChecksum: 892c45ab56059588e786efb0c79ed16d
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand Down Expand Up @@ -11737,9 +11737,6 @@ trackedFiles:
last_write_checksum: sha1:194ac047f4416700e8103f8d2c4f88b6533392d0
pristine_git_object: a50737cfc4d272805d4f7d347eb1556a841694ac
deleted: true
docs/models/reasoningformat.mdx:
id: 6fea0bfce246
pristine_git_object: abca82a95e5375cb801d9a394ca283be957587ce
docs/models/reasoningitem.md:
id: 9b64e42a341c
last_write_checksum: sha1:aedd52e8b127921fb38f25c4181cf8a74c02e822
Expand Down Expand Up @@ -17951,9 +17948,6 @@ trackedFiles:
src/models/reasoningeffort.ts:
id: dd747014f9d3
pristine_git_object: e9e0767ea0bbd131be060f3f8f4375309a271748
src/models/reasoningformat.ts:
id: b523cf757168
pristine_git_object: b08027614cf696b87e4de951a59eba49b16e7ac6
src/models/reasoningitem.ts:
id: 347a000c48b1
pristine_git_object: 02743fed8539ee24a8abc97508a44f7aaa991958
Expand Down Expand Up @@ -24214,4 +24208,4 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Typescript SDK Changes:\n* `openrouter.guardrailPolicies.listCapacityPolicies()`: **Added**\n* `openrouter.guardrailPolicies.createCapacityPolicy()`: **Added**\n* `openrouter.guardrailPolicies.deleteCapacityPolicy()`: **Added**\n* `openrouter.guardrailPolicies.getCapacityPolicy()`: **Added**\n* `openrouter.guardrailPolicies.updateCapacityPolicy()`: **Added**\n* `openrouter.guardrailPolicies.createBudgetPolicy()`: \n * `request.createBudgetGuardrailPolicyRequest.moveExistingAssignments` **Added**\n* `openrouter.guardrailPolicies.createModelAvailabilityPolicy()`: \n * `request.createModelAvailabilityGuardrailPolicyRequest.moveExistingAssignments` **Added**\n* `openrouter.guardrailPolicies.createModerationPolicy()`: \n * `request.createModerationGuardrailPolicyRequest.moveExistingAssignments` **Added**\n"
releaseNotes: "## Typescript SDK Changes:\n* `openrouter.batch.createBatches()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.batch.getBatches()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.batch.cancel()`: `response.results[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.batch.getResults()`: `response.data[].response.body` **Changed** (Breaking ⚠️)\n* `openrouter.chat.send()`: \n * `request.chatRequest.messages[].union(assistant).reasoningDetails[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `openrouter.presets.createPresetsChatCompletions()`: \n * `request.chatRequest.messages[].union(assistant).reasoningDetails[]` **Changed** (Breaking ⚠️)\n* `openrouter.presets.createPresetsResponses()`: \n * `request.responsesRequest.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n* `openrouter.responses.send()`: \n * `request.responsesRequest.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `openrouter.beta.responses.send()`: \n * `request.responsesRequest.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `openrouter.generations.getGeneration()`: `response.data.billedDurationMs` **Added**\n"
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.168
version: 1.5.169
acceptHeaderEnum: false
additionalDependencies:
dependencies:
Expand Down
63 changes: 32 additions & 31 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16041,6 +16041,12 @@ components:
type:
- 'integer'
- 'null'
billed_duration_ms:
description: 'Billed duration in milliseconds for duration-metered generations, or null if not applicable'
example: 60000
type:
- 'integer'
- 'null'
cache_discount:
description: 'Discount applied due to caching'
example: 0.0002
Expand Down Expand Up @@ -19017,6 +19023,11 @@ components:
- allOf:
- $ref: '#/components/schemas/OutputReasoningItem'
- properties:
format:
deprecated: true
type:
- 'string'
- 'null'
summary:
items:
$ref: '#/components/schemas/ReasoningSummaryText'
Expand All @@ -19029,7 +19040,6 @@ components:
content:
- text: 'First, we analyze the problem...'
type: 'reasoning_text'
format: 'anthropic-claude-v1'
id: 'reasoning-123'
signature: 'EvcBCkgIChABGAIqQKkSDbRuVEQUk9qN1odC098l9SEj...'
status: 'completed'
Expand Down Expand Up @@ -30525,8 +30535,6 @@ components:
type:
- 'array'
- 'null'
format:
$ref: '#/components/schemas/ReasoningFormat'
signature:
description: 'A signature for the reasoning content, used for verification'
example: 'EvcBCkgIChABGAIqQKkSDbRuVEQUk9qN1odC098l9SEj...'
Expand All @@ -30539,7 +30547,6 @@ components:
content:
- text: 'First, we analyze the problem...'
type: 'reasoning_text'
format: 'anthropic-claude-v1'
id: 'reasoning-123'
signature: 'EvcBCkgIChABGAIqQKkSDbRuVEQUk9qN1odC098l9SEj...'
status: 'completed'
Expand Down Expand Up @@ -34153,7 +34160,10 @@ components:
data:
type: 'string'
format:
$ref: '#/components/schemas/ReasoningFormat'
deprecated: true
type:
- 'string'
- 'null'
id:
type:
- 'string'
Expand All @@ -34180,7 +34190,10 @@ components:
arguments:
type: 'string'
format:
$ref: '#/components/schemas/ReasoningFormat'
deprecated: true
type:
- 'string'
- 'null'
id:
type:
- 'string'
Expand Down Expand Up @@ -34212,7 +34225,10 @@ components:
type: 'reasoning.summary'
properties:
format:
$ref: '#/components/schemas/ReasoningFormat'
deprecated: true
type:
- 'string'
- 'null'
id:
type:
- 'string'
Expand All @@ -34237,7 +34253,10 @@ components:
type: 'reasoning.text'
properties:
format:
$ref: '#/components/schemas/ReasoningFormat'
deprecated: true
type:
- 'string'
- 'null'
id:
type:
- 'string'
Expand Down Expand Up @@ -34304,27 +34323,6 @@ components:
- 'string'
- 'null'
x-speakeasy-unknown-values: allow
ReasoningFormat:
enum:
- 'unknown'
- 'openai-responses-v1'
- 'azure-openai-responses-v1'
- 'bedrock-amazon-responses-v1'
- 'bedrock-openai-responses-v1'
- 'bedrock-xai-responses-v1'
- 'xai-responses-v1'
- 'meta-responses-v1'
- 'google-vertex-meta-responses-v1'
- 'google-vertex-xai-responses-v1'
- 'openrouter-stealth-v1'
- 'anthropic-claude-v1'
- 'google-gemini-v1'
- null
example: 'unknown'
type:
- 'string'
- 'null'
x-speakeasy-unknown-values: allow
ReasoningItem:
allOf:
- $ref: '#/components/schemas/OutputItemReasoning'
Expand All @@ -34336,13 +34334,16 @@ components:
- 'array'
- 'null'
format:
$ref: '#/components/schemas/ReasoningFormat'
deprecated: true
type:
- 'string'
- 'null'
signature:
type:
- 'string'
- 'null'
type: 'object'
description: 'Reasoning output item with signature and format extensions'
description: 'Reasoning output item with signature extension'
example:
id: 'reasoning-abc123'
summary:
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:97fca279a68115c19830682fe65c12baf1df5121034a5cfaa10085ece0186f74
sourceBlobDigest: sha256:4300f7570b772fd9c001ba0e00fb319d47f59393d0f23f5e6a2ee3275713225e
sourceRevisionDigest: sha256:8bc784ff07443f5bed27fe645135e37e566d228b5bd0b9ab725a81e803e1c492
sourceBlobDigest: sha256:8daf3684fcb85e158bb64dc7b273143aacca9358c44742de19c3ffc6ee631ba3
tags:
- latest
- 1.0.0
targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:97fca279a68115c19830682fe65c12baf1df5121034a5cfaa10085ece0186f74
sourceBlobDigest: sha256:4300f7570b772fd9c001ba0e00fb319d47f59393d0f23f5e6a2ee3275713225e
sourceRevisionDigest: sha256:8bc784ff07443f5bed27fe645135e37e566d228b5bd0b9ab725a81e803e1c492
sourceBlobDigest: sha256:8daf3684fcb85e158bb64dc7b273143aacca9358c44742de19c3ffc6ee631ba3
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:2d1d670e873f92c814e07023105149114c1f8b98cb50eb51fa569ec1acbe902d
codeSamplesRevisionDigest: sha256:c503e747ed750f2c781c54e433e2e0e368e5fe9626c39bdc73e4cd68201753e4
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 @@ -6056,4 +6056,14 @@ Based on:
### Generated
- [typescript v1.5.168] .
### Releases
- [NPM v1.5.168] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.168 - .
- [NPM v1.5.168] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.168 - .

## 2026-12-03 17:05:37
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.808.1 (2.960.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.5.169] .
### Releases
- [NPM v1.5.169] https://www.npmjs.com/package/@openrouter/sdk/v/1.5.169 - .
1 change: 1 addition & 0 deletions docs/models/generationresponsedata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ let value: GenerationResponseData = {
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `apiType` | [models.ApiType](../models/apitype.mdx) | ✔️ | Type of API used for the generation | |
| `appId` | *number* | ✔️ | ID of the app that made the request | 12345 |
| `billedDurationMs` | *number* | ➖ | Billed duration in milliseconds for duration-metered generations, or null if not applicable | 60000 |
| `cacheDiscount` | *number* | ✔️ | Discount applied due to caching | 0.0002 |
| `cancelled` | *boolean* | ✔️ | Whether the generation was cancelled | false |
| `createdAt` | *string* | ✔️ | ISO 8601 timestamp of when the generation was created | 2024-07-15T23:33:19.433273+00:00 |
Expand Down
Loading