Skip to content

Commit fcd6301

Browse files
mattappersontalosgithub-actions[bot]
authored
chore: update OpenAPI specification from openrouter-web (#75)
Co-authored-by: talos <415831+talos@users.noreply.github.com> Co-authored-by: update-generated-files-action <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6f80163 commit fcd6301

22 files changed

+231
-109
lines changed

.speakeasy/gen.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 8b6cd71c-ea04-44da-af45-e43968b5928d
33
management:
4-
docChecksum: d991e451fa3b40458d9a8e2e16068801
4+
docChecksum: f377d4ed11037a871b8c253c1d75f132
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.653.0
6+
speakeasyVersion: 1.653.1
77
generationVersion: 2.748.0
8-
releaseVersion: 0.1.8
9-
configChecksum: c8eca5e6a16c0adf24b477cd8360e674
8+
releaseVersion: 0.1.9
9+
configChecksum: 7a9a57baedc1855f3964d13bf5247b93
1010
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
1212
published: true

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generation:
3030
generateNewTests: true
3131
skipResponseBodyAssertions: false
3232
typescript:
33-
version: 0.1.8
33+
version: 0.1.9
3434
acceptHeaderEnum: false
3535
additionalDependencies:
3636
dependencies: {}

.speakeasy/in.openapi.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7058,6 +7058,12 @@ paths:
70587058
nullable: true
70597059
description: ISO 8601 timestamp of when the API key was last updated
70607060
example: '2025-08-24T15:45:00Z'
7061+
expires_at:
7062+
type: string
7063+
nullable: true
7064+
format: date-time
7065+
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
7066+
example: '2027-12-31T23:59:59Z'
70617067
required:
70627068
- hash
70637069
- name
@@ -7096,6 +7102,7 @@ paths:
70967102
byok_usage_monthly: 17.38
70977103
created_at: '2025-08-24T10:30:00Z'
70987104
updated_at: '2025-08-24T15:45:00Z'
7105+
expires_at: '2027-12-31T23:59:59Z'
70997106
description: List of API keys
71007107
required:
71017108
- data
@@ -7119,6 +7126,7 @@ paths:
71197126
byok_usage_monthly: 17.38
71207127
created_at: '2025-08-24T10:30:00Z'
71217128
updated_at: '2025-08-24T15:45:00Z'
7129+
expires_at: '2027-12-31T23:59:59Z'
71227130
'401':
71237131
description: Unauthorized - Missing or invalid authentication
71247132
content:
@@ -7173,13 +7181,20 @@ paths:
71737181
type: boolean
71747182
description: Whether to include BYOK usage in the limit
71757183
example: true
7184+
expires_at:
7185+
type: string
7186+
nullable: true
7187+
format: date-time
7188+
description: Optional ISO 8601 timestamp with timezone when the API key should expire
7189+
example: '2027-12-31T23:59:59Z'
71767190
required:
71777191
- name
71787192
example:
71797193
name: My New API Key
71807194
limit: 50
71817195
limit_reset: monthly
71827196
include_byok_in_limit: true
7197+
expires_at: '2027-12-31T23:59:59Z'
71837198
required: true
71847199
responses:
71857200
'201':
@@ -7268,6 +7283,12 @@ paths:
72687283
nullable: true
72697284
description: ISO 8601 timestamp of when the API key was last updated
72707285
example: '2025-08-24T15:45:00Z'
7286+
expires_at:
7287+
type: string
7288+
nullable: true
7289+
format: date-time
7290+
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
7291+
example: '2027-12-31T23:59:59Z'
72717292
required:
72727293
- hash
72737294
- name
@@ -7306,6 +7327,7 @@ paths:
73067327
byok_usage_monthly: 17.38
73077328
created_at: '2025-08-24T10:30:00Z'
73087329
updated_at: '2025-08-24T15:45:00Z'
7330+
expires_at: '2027-12-31T23:59:59Z'
73097331
description: The created API key information
73107332
key:
73117333
type: string
@@ -7334,6 +7356,7 @@ paths:
73347356
byok_usage_monthly: 0
73357357
created_at: '2025-08-24T10:30:00Z'
73367358
updated_at: null
7359+
expires_at: '2027-12-31T23:59:59Z'
73377360
key: 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
73387361
'400':
73397362
description: Bad Request - Invalid request parameters
@@ -7503,6 +7526,12 @@ paths:
75037526
nullable: true
75047527
description: ISO 8601 timestamp of when the API key was last updated
75057528
example: '2025-08-24T15:45:00Z'
7529+
expires_at:
7530+
type: string
7531+
nullable: true
7532+
format: date-time
7533+
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
7534+
example: '2027-12-31T23:59:59Z'
75067535
required:
75077536
- hash
75087537
- name
@@ -7541,6 +7570,7 @@ paths:
75417570
byok_usage_monthly: 17.38
75427571
created_at: '2025-08-24T10:30:00Z'
75437572
updated_at: '2025-08-24T15:45:00Z'
7573+
expires_at: '2027-12-31T23:59:59Z'
75447574
description: The updated API key information
75457575
required:
75467576
- data
@@ -7564,6 +7594,7 @@ paths:
75647594
byok_usage_monthly: 17.38
75657595
created_at: '2025-08-24T10:30:00Z'
75667596
updated_at: '2025-08-24T16:00:00Z'
7597+
expires_at: null
75677598
'400':
75687599
description: Bad Request - Invalid request parameters
75697600
content:
@@ -7753,6 +7784,12 @@ paths:
77537784
nullable: true
77547785
description: ISO 8601 timestamp of when the API key was last updated
77557786
example: '2025-08-24T15:45:00Z'
7787+
expires_at:
7788+
type: string
7789+
nullable: true
7790+
format: date-time
7791+
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
7792+
example: '2027-12-31T23:59:59Z'
77567793
required:
77577794
- hash
77587795
- name
@@ -7791,6 +7828,7 @@ paths:
77917828
byok_usage_monthly: 17.38
77927829
created_at: '2025-08-24T10:30:00Z'
77937830
updated_at: '2025-08-24T15:45:00Z'
7831+
expires_at: '2027-12-31T23:59:59Z'
77947832
description: The API key information
77957833
required:
77967834
- data
@@ -7814,6 +7852,7 @@ paths:
78147852
byok_usage_monthly: 17.38
78157853
created_at: '2025-08-24T10:30:00Z'
78167854
updated_at: '2025-08-24T15:45:00Z'
7855+
expires_at: '2027-12-31T23:59:59Z'
78177856
'401':
78187857
description: Unauthorized - Missing or invalid authentication
78197858
content:

.speakeasy/out.openapi.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7065,6 +7065,12 @@ paths:
70657065
nullable: true
70667066
description: ISO 8601 timestamp of when the API key was last updated
70677067
example: '2025-08-24T15:45:00Z'
7068+
expires_at:
7069+
type: string
7070+
nullable: true
7071+
format: date-time
7072+
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
7073+
example: '2027-12-31T23:59:59Z'
70687074
required:
70697075
- hash
70707076
- name
@@ -7103,6 +7109,7 @@ paths:
71037109
byok_usage_monthly: 17.38
71047110
created_at: '2025-08-24T10:30:00Z'
71057111
updated_at: '2025-08-24T15:45:00Z'
7112+
expires_at: '2027-12-31T23:59:59Z'
71067113
description: List of API keys
71077114
required:
71087115
- data
@@ -7126,6 +7133,7 @@ paths:
71267133
byok_usage_monthly: 17.38
71277134
created_at: '2025-08-24T10:30:00Z'
71287135
updated_at: '2025-08-24T15:45:00Z'
7136+
expires_at: '2027-12-31T23:59:59Z'
71297137
'401':
71307138
description: Unauthorized - Missing or invalid authentication
71317139
content:
@@ -7180,13 +7188,20 @@ paths:
71807188
type: boolean
71817189
description: Whether to include BYOK usage in the limit
71827190
example: true
7191+
expires_at:
7192+
type: string
7193+
nullable: true
7194+
format: date-time
7195+
description: Optional ISO 8601 timestamp with timezone when the API key should expire
7196+
example: '2027-12-31T23:59:59Z'
71837197
required:
71847198
- name
71857199
example:
71867200
name: My New API Key
71877201
limit: 50
71887202
limit_reset: monthly
71897203
include_byok_in_limit: true
7204+
expires_at: '2027-12-31T23:59:59Z'
71907205
required: true
71917206
responses:
71927207
'201':
@@ -7275,6 +7290,12 @@ paths:
72757290
nullable: true
72767291
description: ISO 8601 timestamp of when the API key was last updated
72777292
example: '2025-08-24T15:45:00Z'
7293+
expires_at:
7294+
type: string
7295+
nullable: true
7296+
format: date-time
7297+
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
7298+
example: '2027-12-31T23:59:59Z'
72787299
required:
72797300
- hash
72807301
- name
@@ -7313,6 +7334,7 @@ paths:
73137334
byok_usage_monthly: 17.38
73147335
created_at: '2025-08-24T10:30:00Z'
73157336
updated_at: '2025-08-24T15:45:00Z'
7337+
expires_at: '2027-12-31T23:59:59Z'
73167338
description: The created API key information
73177339
key:
73187340
type: string
@@ -7341,6 +7363,7 @@ paths:
73417363
byok_usage_monthly: 0
73427364
created_at: '2025-08-24T10:30:00Z'
73437365
updated_at: null
7366+
expires_at: '2027-12-31T23:59:59Z'
73447367
key: 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
73457368
'400':
73467369
description: Bad Request - Invalid request parameters
@@ -7510,6 +7533,12 @@ paths:
75107533
nullable: true
75117534
description: ISO 8601 timestamp of when the API key was last updated
75127535
example: '2025-08-24T15:45:00Z'
7536+
expires_at:
7537+
type: string
7538+
nullable: true
7539+
format: date-time
7540+
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
7541+
example: '2027-12-31T23:59:59Z'
75137542
required:
75147543
- hash
75157544
- name
@@ -7548,6 +7577,7 @@ paths:
75487577
byok_usage_monthly: 17.38
75497578
created_at: '2025-08-24T10:30:00Z'
75507579
updated_at: '2025-08-24T15:45:00Z'
7580+
expires_at: '2027-12-31T23:59:59Z'
75517581
description: The updated API key information
75527582
required:
75537583
- data
@@ -7571,6 +7601,7 @@ paths:
75717601
byok_usage_monthly: 17.38
75727602
created_at: '2025-08-24T10:30:00Z'
75737603
updated_at: '2025-08-24T16:00:00Z'
7604+
expires_at: null
75747605
'400':
75757606
description: Bad Request - Invalid request parameters
75767607
content:
@@ -7760,6 +7791,12 @@ paths:
77607791
nullable: true
77617792
description: ISO 8601 timestamp of when the API key was last updated
77627793
example: '2025-08-24T15:45:00Z'
7794+
expires_at:
7795+
type: string
7796+
nullable: true
7797+
format: date-time
7798+
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
7799+
example: '2027-12-31T23:59:59Z'
77637800
required:
77647801
- hash
77657802
- name
@@ -7798,6 +7835,7 @@ paths:
77987835
byok_usage_monthly: 17.38
77997836
created_at: '2025-08-24T10:30:00Z'
78007837
updated_at: '2025-08-24T15:45:00Z'
7838+
expires_at: '2027-12-31T23:59:59Z'
78017839
description: The API key information
78027840
required:
78037841
- data
@@ -7821,6 +7859,7 @@ paths:
78217859
byok_usage_monthly: 17.38
78227860
created_at: '2025-08-24T10:30:00Z'
78237861
updated_at: '2025-08-24T15:45:00Z'
7862+
expires_at: '2027-12-31T23:59:59Z'
78247863
'401':
78257864
description: Unauthorized - Missing or invalid authentication
78267865
content:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.653.0
1+
speakeasyVersion: 1.653.1
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:684c9a95109635b087cc5ce05ce1dd1b63e55c85612ee25560c99cc85a6a1215
6-
sourceBlobDigest: sha256:988834ac43d414bf263bc54e3474c11047540738ef32056269620d834f7ffac7
5+
sourceRevisionDigest: sha256:505db4e808f899250c7fa8a9021fef1356f2e50b85cdd1bb0c9c8fb0c18ee70a
6+
sourceBlobDigest: sha256:e9dacfcb19b3a3b855457d17b2fd129d604190b556d6510d103bcacd1da7010c
77
tags:
88
- latest
99
- staging
@@ -12,10 +12,10 @@ targets:
1212
openrouter:
1313
source: OpenRouter API
1414
sourceNamespace: open-router-chat-completions-api
15-
sourceRevisionDigest: sha256:684c9a95109635b087cc5ce05ce1dd1b63e55c85612ee25560c99cc85a6a1215
16-
sourceBlobDigest: sha256:988834ac43d414bf263bc54e3474c11047540738ef32056269620d834f7ffac7
15+
sourceRevisionDigest: sha256:505db4e808f899250c7fa8a9021fef1356f2e50b85cdd1bb0c9c8fb0c18ee70a
16+
sourceBlobDigest: sha256:e9dacfcb19b3a3b855457d17b2fd129d604190b556d6510d103bcacd1da7010c
1717
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:eec8ccd940cfc9e5072acaaee9380b17a8d7e35a75adf7da46a9727156f439c8
18+
codeSamplesRevisionDigest: sha256:a742a45e54f5e7d04f4128327c7558221fc95b7e012710a526ed8ec76b45f5ef
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

0 commit comments

Comments
 (0)