Skip to content

Commit 9576ea4

Browse files
mattappersontalosgithub-actions[bot]
authored
chore: update OpenAPI specification from openrouter-web (#79)
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 8a2e48f commit 9576ea4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+295
-434
lines changed

.speakeasy/gen.lock

Lines changed: 6 additions & 6 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: 9660e86ea28560265285c6e3773bd061
4+
docChecksum: bc2a17a8bdced4449c22e8cb27f02be5
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.653.2
7-
generationVersion: 2.748.4
8-
releaseVersion: 0.1.10
9-
configChecksum: 0b94228b2cc806ed198c6d48069286d9
6+
speakeasyVersion: 1.654.0
7+
generationVersion: 2.750.0
8+
releaseVersion: 0.1.11
9+
configChecksum: f7e503f7b6144914db85599585462a92
1010
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
1212
published: true
@@ -15,7 +15,7 @@ features:
1515
acceptHeaders: 2.81.2
1616
additionalDependencies: 0.1.0
1717
constsAndDefaults: 0.1.12
18-
core: 3.26.4
18+
core: 3.26.5
1919
customCodeRegions: 0.1.0
2020
defaultEnabledRetries: 0.1.0
2121
deprecations: 2.81.1

.speakeasy/gen.yaml

Lines changed: 2 additions & 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.10
33+
version: 0.1.11
3434
acceptHeaderEnum: false
3535
additionalDependencies:
3636
dependencies: {}
@@ -92,6 +92,7 @@ typescript:
9292
responseFormat: flat
9393
sseFlatResponse: true
9494
templateVersion: v2
95+
unionStrategy: left-to-right
9596
usageSDKInitImports: []
9697
useIndexModules: true
9798
zodVersion: v4

.speakeasy/in.openapi.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7157,7 +7157,9 @@ paths:
71577157
type: string
71587158
nullable: true
71597159
format: date-time
7160-
description: Optional ISO 8601 timestamp with timezone when the API key should expire
7160+
description: >-
7161+
Optional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be
7162+
rejected
71617163
example: '2027-12-31T23:59:59Z'
71627164
required:
71637165
- name
@@ -7931,6 +7933,12 @@ paths:
79317933
type: boolean
79327934
description: Whether to include external BYOK usage in the credit limit
79337935
example: false
7936+
expires_at:
7937+
type: string
7938+
nullable: true
7939+
format: date-time
7940+
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
7941+
example: '2027-12-31T23:59:59Z'
79347942
rate_limit:
79357943
type: object
79367944
properties:
@@ -7990,6 +7998,7 @@ paths:
79907998
limit_remaining: 74.5
79917999
limit_reset: monthly
79928000
include_byok_in_limit: false
8001+
expires_at: '2027-12-31T23:59:59Z'
79938002
rate_limit:
79948003
requests: 1000
79958004
interval: 1h
@@ -8013,6 +8022,7 @@ paths:
80138022
limit_remaining: 74.5
80148023
limit_reset: monthly
80158024
include_byok_in_limit: false
8025+
expires_at: '2027-12-31T23:59:59Z'
80168026
rate_limit:
80178027
requests: 1000
80188028
interval: 1h

.speakeasy/out.openapi.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7164,7 +7164,8 @@ paths:
71647164
type: string
71657165
nullable: true
71667166
format: date-time
7167-
description: Optional ISO 8601 timestamp with timezone when the API key should expire
7167+
description: >-
7168+
Optional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be rejected
71687169
example: '2027-12-31T23:59:59Z'
71697170
required:
71707171
- name
@@ -7938,6 +7939,12 @@ paths:
79387939
type: boolean
79397940
description: Whether to include external BYOK usage in the credit limit
79407941
example: false
7942+
expires_at:
7943+
type: string
7944+
nullable: true
7945+
format: date-time
7946+
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
7947+
example: '2027-12-31T23:59:59Z'
79417948
rate_limit:
79427949
type: object
79437950
properties:
@@ -7997,6 +8004,7 @@ paths:
79978004
limit_remaining: 74.5
79988005
limit_reset: monthly
79998006
include_byok_in_limit: false
8007+
expires_at: '2027-12-31T23:59:59Z'
80008008
rate_limit:
80018009
requests: 1000
80028010
interval: 1h
@@ -8020,6 +8028,7 @@ paths:
80208028
limit_remaining: 74.5
80218029
limit_reset: monthly
80228030
include_byok_in_limit: false
8031+
expires_at: '2027-12-31T23:59:59Z'
80238032
rate_limit:
80248033
requests: 1000
80258034
interval: 1h

.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.2
1+
speakeasyVersion: 1.654.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:41a987c6a80cdcf2865e59e7a511706f801f6b5abc2713de2b75558aa812b0b1
6-
sourceBlobDigest: sha256:f732c29c7257afac986bc8f9076fbe3d190da15d1d8674ee191e7b83e611ecf3
5+
sourceRevisionDigest: sha256:08647b466c00989914e3a2436175152270f771f0a57d055f5bab14cc2d4be89e
6+
sourceBlobDigest: sha256:53027ec57392d9617cc001ece83c2fe1aa6e5dbfd52d170381c34c33c6042c23
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:41a987c6a80cdcf2865e59e7a511706f801f6b5abc2713de2b75558aa812b0b1
16-
sourceBlobDigest: sha256:f732c29c7257afac986bc8f9076fbe3d190da15d1d8674ee191e7b83e611ecf3
15+
sourceRevisionDigest: sha256:08647b466c00989914e3a2436175152270f771f0a57d055f5bab14cc2d4be89e
16+
sourceBlobDigest: sha256:53027ec57392d9617cc001ece83c2fe1aa6e5dbfd52d170381c34c33c6042c23
1717
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:0f9c73bf63e810bfa351faeb47ca62dbc21680abe1d4d1d1342d59738cccbb53
18+
codeSamplesRevisionDigest: sha256:e30bf4d24076522aaf92aa570cc8b7ba008d86e9a36336d815e99dbf154d3b47
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

docs/models/operations/createkeysrequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ let value: CreateKeysRequest = {
1818
| `limit` | *number* | :heavy_minus_sign: | Optional spending limit for the API key in USD | 50 |
1919
| `limitReset` | [operations.CreateKeysLimitReset](../../models/operations/createkeyslimitreset.md) | :heavy_minus_sign: | Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday. | monthly |
2020
| `includeByokInLimit` | *boolean* | :heavy_minus_sign: | Whether to include BYOK usage in the limit | true |
21-
| `expiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Optional ISO 8601 timestamp with timezone when the API key should expire | 2027-12-31T23:59:59Z |
21+
| `expiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Optional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be rejected | 2027-12-31T23:59:59Z |

docs/models/operations/getcurrentkeydata.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ let value: GetCurrentKeyData = {
5050
| `limitRemaining` | *number* | :heavy_check_mark: | Remaining spending limit in USD | 74.5 |
5151
| `limitReset` | *string* | :heavy_check_mark: | Type of limit reset for the API key | monthly |
5252
| `includeByokInLimit` | *boolean* | :heavy_check_mark: | Whether to include external BYOK usage in the credit limit | false |
53+
| `expiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | ISO 8601 UTC timestamp when the API key expires, or null if no expiration | 2027-12-31T23:59:59Z |
5354
| ~~`rateLimit`~~ | [operations.RateLimit](../../models/operations/ratelimit.md) | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>Legacy rate limit information about a key. Will always return -1. | {<br/>"requests": 1000,<br/>"interval": "1h",<br/>"note": "This field is deprecated and safe to ignore."<br/>} |

0 commit comments

Comments
 (0)