Skip to content
Closed
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
64 changes: 7 additions & 57 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: 8b6cd71c-ea04-44da-af45-e43968b5928d
management:
docChecksum: 0ecf8d42d5f305a124cbca4ffbda5eee
docVersion: 1.0.0
speakeasyVersion: 1.660.0
generationVersion: 2.760.2
releaseVersion: 0.1.27
configChecksum: 2c451c32d0e42b790ff08709ef1011b4
speakeasyVersion: 1.666.0
generationVersion: 2.768.0
releaseVersion: 0.2.0
configChecksum: 3177256c9833c29f2e39818f88d33135
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
published: true
Expand All @@ -15,7 +15,7 @@ features:
acceptHeaders: 2.81.2
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.12
core: 3.26.9
core: 3.26.13
customCodeRegions: 0.1.0
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
Expand All @@ -35,11 +35,11 @@ features:
openEnums: 0.1.1
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.3.0
sdkHooks: 0.4.0
serverEvents: 0.1.12
serverEventsSentinels: 0.1.0
serverIDs: 2.81.2
unions: 2.86.0
unions: 2.86.3
generatedFiles:
- .devcontainer/README.md
- .devcontainer/devcontainer.json
Expand Down Expand Up @@ -130,14 +130,9 @@ generatedFiles:
- docs/models/errors/unauthorizedresponseerror.md
- docs/models/errors/unprocessableentityresponseerror.md
- docs/models/filecitation.md
- docs/models/filecitationtype.md
- docs/models/filepath.md
- docs/models/filepathtype.md
- docs/models/filet.md
- docs/models/forbiddenresponseerrordata.md
- docs/models/idfileparser.md
- docs/models/idmoderation.md
- docs/models/idweb.md
- docs/models/ignore.md
- docs/models/imagegenerationstatus.md
- docs/models/imageurl.md
Expand Down Expand Up @@ -192,7 +187,6 @@ generatedFiles:
- docs/models/openairesponsesreasoningconfig.md
- docs/models/openairesponsesreasoningeffort.md
- docs/models/openairesponsesrefusalcontent.md
- docs/models/openairesponsesrefusalcontenttype.md
- docs/models/openairesponsesresponsestatus.md
- docs/models/openairesponsesservicetier.md
- docs/models/openairesponsestoolchoice.md
Expand All @@ -215,19 +209,14 @@ generatedFiles:
- docs/models/openresponseseasyinputmessageroleuser.md
- docs/models/openresponseseasyinputmessagetype.md
- docs/models/openresponseserrorevent.md
- docs/models/openresponseserroreventtype.md
- docs/models/openresponsesfunctioncalloutput.md
- docs/models/openresponsesfunctioncalloutputtype.md
- docs/models/openresponsesfunctiontoolcall.md
- docs/models/openresponsesfunctiontoolcalltype.md
- docs/models/openresponsesimagegencallcompleted.md
- docs/models/openresponsesimagegencallcompletedtype.md
- docs/models/openresponsesimagegencallgenerating.md
- docs/models/openresponsesimagegencallgeneratingtype.md
- docs/models/openresponsesimagegencallinprogress.md
- docs/models/openresponsesimagegencallinprogresstype.md
- docs/models/openresponsesimagegencallpartialimage.md
- docs/models/openresponsesimagegencallpartialimagetype.md
- docs/models/openresponsesinput.md
- docs/models/openresponsesinput1.md
- docs/models/openresponsesinputmessageitem.md
Expand All @@ -241,29 +230,22 @@ generatedFiles:
- docs/models/openresponsesnonstreamingresponse.md
- docs/models/openresponsesnonstreamingresponsetoolfunction.md
- docs/models/openresponsesnonstreamingresponsetoolunion.md
- docs/models/openresponsesnonstreamingresponsetype.md
- docs/models/openresponsesreasoning.md
- docs/models/openresponsesreasoningconfig.md
- docs/models/openresponsesreasoningdeltaevent.md
- docs/models/openresponsesreasoningdeltaeventtype.md
- docs/models/openresponsesreasoningdoneevent.md
- docs/models/openresponsesreasoningdoneeventtype.md
- docs/models/openresponsesreasoningformat.md
- docs/models/openresponsesreasoningstatuscompleted.md
- docs/models/openresponsesreasoningstatusincomplete.md
- docs/models/openresponsesreasoningstatusinprogress.md
- docs/models/openresponsesreasoningstatusunion.md
- docs/models/openresponsesreasoningsummarypartaddedevent.md
- docs/models/openresponsesreasoningsummarypartaddedeventtype.md
- docs/models/openresponsesreasoningsummarytextdeltaevent.md
- docs/models/openresponsesreasoningsummarytextdeltaeventtype.md
- docs/models/openresponsesreasoningsummarytextdoneevent.md
- docs/models/openresponsesreasoningsummarytextdoneeventtype.md
- docs/models/openresponsesreasoningtype.md
- docs/models/openresponsesrequest.md
- docs/models/openresponsesrequesttoolfunction.md
- docs/models/openresponsesrequesttoolunion.md
- docs/models/openresponsesrequesttype.md
- docs/models/openresponsesresponsetext.md
- docs/models/openresponsesresponsetextverbosity.md
- docs/models/openresponsesstreamevent.md
Expand All @@ -288,14 +270,10 @@ generatedFiles:
- docs/models/openresponsesusage.md
- docs/models/openresponseswebsearch20250826tool.md
- docs/models/openresponseswebsearch20250826toolfilters.md
- docs/models/openresponseswebsearch20250826tooltype.md
- docs/models/openresponseswebsearchpreview20250311tool.md
- docs/models/openresponseswebsearchpreview20250311tooltype.md
- docs/models/openresponseswebsearchpreviewtool.md
- docs/models/openresponseswebsearchpreviewtooltype.md
- docs/models/openresponseswebsearchtool.md
- docs/models/openresponseswebsearchtoolfilters.md
- docs/models/openresponseswebsearchtooltype.md
- docs/models/operations/apitype.md
- docs/models/operations/calldata.md
- docs/models/operations/content.md
Expand Down Expand Up @@ -366,8 +344,6 @@ generatedFiles:
- docs/models/operations/sendchatcompletionrequestresponse.md
- docs/models/operations/supportedparameter.md
- docs/models/operations/transferintent.md
- docs/models/operations/typeimageurl.md
- docs/models/operations/typetext.md
- docs/models/operations/updatekeysdata.md
- docs/models/operations/updatekeyslimitreset.md
- docs/models/operations/updatekeysrequest.md
Expand Down Expand Up @@ -425,23 +401,15 @@ generatedFiles:
- docs/models/responseinputaudio.md
- docs/models/responseinputaudioformat.md
- docs/models/responseinputaudioinputaudio.md
- docs/models/responseinputaudiotype.md
- docs/models/responseinputfile.md
- docs/models/responseinputfiletype.md
- docs/models/responseinputimage.md
- docs/models/responseinputimagedetail.md
- docs/models/responseinputimagetype.md
- docs/models/responseinputtext.md
- docs/models/responseinputtexttype.md
- docs/models/responseoutputtext.md
- docs/models/responseoutputtexttype.md
- docs/models/responseserrorfield.md
- docs/models/responsesformatjsonobject.md
- docs/models/responsesformatjsonobjecttype.md
- docs/models/responsesformattext.md
- docs/models/responsesformattextjsonschemaconfig.md
- docs/models/responsesformattextjsonschemaconfigtype.md
- docs/models/responsesformattexttype.md
- docs/models/responsesimagegenerationcall.md
- docs/models/responsesimagegenerationcalltype.md
- docs/models/responsesoutputitem.md
Expand Down Expand Up @@ -491,27 +459,9 @@ generatedFiles:
- docs/models/topproviderinfo.md
- docs/models/truncation.md
- docs/models/type.md
- docs/models/typeresponsecompleted.md
- docs/models/typeresponsecontentpartadded.md
- docs/models/typeresponsecontentpartdone.md
- docs/models/typeresponsecreated.md
- docs/models/typeresponsefailed.md
- docs/models/typeresponsefunctioncallargumentsdelta.md
- docs/models/typeresponsefunctioncallargumentsdone.md
- docs/models/typeresponseincomplete.md
- docs/models/typeresponseinprogress.md
- docs/models/typeresponseoutputitemadded.md
- docs/models/typeresponseoutputitemdone.md
- docs/models/typeresponseoutputtextannotationadded.md
- docs/models/typeresponseoutputtextdelta.md
- docs/models/typeresponseoutputtextdone.md
- docs/models/typeresponsereasoningsummarypartdone.md
- docs/models/typeresponserefusaldelta.md
- docs/models/typeresponserefusaldone.md
- docs/models/unauthorizedresponseerrordata.md
- docs/models/unprocessableentityresponseerrordata.md
- docs/models/urlcitation.md
- docs/models/urlcitationtype.md
- docs/models/usermessage.md
- docs/models/usermessagecontent.md
- docs/models/variables.md
Expand Down
7 changes: 6 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: false
typescript:
version: 0.1.27
version: 0.2.0
acceptHeaderEnum: false
additionalDependencies:
dependencies: {}
Expand Down Expand Up @@ -71,7 +71,9 @@ typescript:
exportZodModelNamespace: false
flattenGlobalSecurity: true
flatteningOrder: parameters-first
formStringArrayEncodeMode: encoded-string
forwardCompatibleEnumsByDefault: false
forwardCompatibleUnionsByDefault: "false"
generateExamples: true
imports:
option: openapi
Expand All @@ -82,15 +84,18 @@ typescript:
shared: models
webhooks: models/webhooks
inferSSEOverload: true
inferUnionDiscriminators: true
inputModelSuffix: input
jsonpath: rfc9535
laxMode: strict
maxMethodParams: 0
methodArguments: infer-optional-args
modelPropertyCasing: camel
moduleFormat: esm
multipartArrayFormat: legacy
outputModelSuffix: output
packageName: '@openrouter/sdk'
preApplyUnionDiscriminators: true
responseFormat: flat
sseFlatResponse: true
templateVersion: v2
Expand Down
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.660.0
speakeasyVersion: 1.666.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:01256c8494de6bfc13c36d82ae316a6a13d402194f844618bcd4d59e34f325f3
sourceBlobDigest: sha256:4c80e48fd5e1cd030e68d664eb93984b4d5946867252ff1755a2bd2a05eccd4e
tags:
- latest
- matt-cache-control
- speakeasy-sdk-regen-1762734783
- 1.0.0
targets:
openrouter:
Expand All @@ -15,7 +15,7 @@ targets:
sourceRevisionDigest: sha256:01256c8494de6bfc13c36d82ae316a6a13d402194f844618bcd4d59e34f325f3
sourceBlobDigest: sha256:4c80e48fd5e1cd030e68d664eb93984b4d5946867252ff1755a2bd2a05eccd4e
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:b9f865c93ad3b73a288706cfe0cdbb54a0a2fe160c405b59bc45f567118e554a
codeSamplesRevisionDigest: sha256:4fb983d31ef998eb30f12c38e07fb278a3054a1def2a61c418d71d553c648a66
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,14 @@ Based on:
### Generated
- [typescript v0.1.2] .
### Releases
- [NPM v0.1.2] https://www.npmjs.com/package/@openrouter/sdk/v/0.1.2 - .
- [NPM v0.1.2] https://www.npmjs.com/package/@openrouter/sdk/v/0.1.2 - .

## 2025-12-02 00:31:49
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.666.0 (2.768.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.2.0] .
### Releases
- [NPM v0.2.0] https://www.npmjs.com/package/@openrouter/sdk/v/0.2.0 - .
2 changes: 1 addition & 1 deletion docs/models/assistantmessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let value: AssistantMessage = {

| Field | Type | Required | Description |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `role` | *string* | :heavy_check_mark: | N/A |
| `role` | *"assistant"* | :heavy_check_mark: | N/A |
| `content` | *models.AssistantMessageContent* | :heavy_minus_sign: | N/A |
| `name` | *string* | :heavy_minus_sign: | N/A |
| `toolCalls` | [models.ChatMessageToolCall](../models/chatmessagetoolcall.md)[] | :heavy_minus_sign: | N/A |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ let value: ChatGenerationParamsResponseFormatJSONObject = {

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `type` | *string* | :heavy_check_mark: | N/A |
| `type` | *"json_object"* | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/chatgenerationparamsresponseformatpython.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ let value: ChatGenerationParamsResponseFormatPython = {

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `type` | *string* | :heavy_check_mark: | N/A |
| `type` | *"python"* | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/chatgenerationparamsresponseformattext.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ let value: ChatGenerationParamsResponseFormatText = {

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `type` | *string* | :heavy_check_mark: | N/A |
| `type` | *"text"* | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/chatmessagecontentitemaudio.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ let value: ChatMessageContentItemAudio = {

| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| `type` | *string* | :heavy_check_mark: | N/A |
| `type` | *"input_audio"* | :heavy_check_mark: | N/A |
| `inputAudio` | [models.ChatMessageContentItemAudioInputAudio](../models/chatmessagecontentitemaudioinputaudio.md) | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/chatmessagecontentitemfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ let value: ChatMessageContentItemFile = {

| Field | Type | Required | Description |
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
| `type` | *string* | :heavy_check_mark: | N/A |
| `type` | *"file"* | :heavy_check_mark: | N/A |
| `file` | [models.FileT](../models/filet.md) | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/chatmessagecontentitemimage.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ let value: ChatMessageContentItemImage = {

| Field | Type | Required | Description |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| `type` | *string* | :heavy_check_mark: | N/A |
| `type` | *"image_url"* | :heavy_check_mark: | N/A |
| `imageUrl` | [models.ImageUrl](../models/imageurl.md) | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/chatmessagecontentitemtext.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ let value: ChatMessageContentItemText = {

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `type` | *string* | :heavy_check_mark: | N/A |
| `type` | *"text"* | :heavy_check_mark: | N/A |
| `text` | *string* | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/chatmessagecontentitemvideoinputvideo.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ let value: ChatMessageContentItemVideoInputVideo = {

| Field | Type | Required | Description |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| `type` | *string* | :heavy_check_mark: | N/A |
| `type` | *"input_video"* | :heavy_check_mark: | N/A |
| `videoUrl` | [models.VideoURL](../models/videourl.md) | :heavy_check_mark: | N/A |
Loading