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
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 8b6cd71c-ea04-44da-af45-e43968b5928d
management:
docChecksum: 9660e86ea28560265285c6e3773bd061
docChecksum: bc2a17a8bdced4449c22e8cb27f02be5
docVersion: 1.0.0
speakeasyVersion: 1.653.2
generationVersion: 2.748.4
releaseVersion: 0.1.10
configChecksum: 0b94228b2cc806ed198c6d48069286d9
speakeasyVersion: 1.654.0
generationVersion: 2.750.0
releaseVersion: 0.1.11
configChecksum: f7e503f7b6144914db85599585462a92
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.4
core: 3.26.5
customCodeRegions: 0.1.0
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
Expand Down
3 changes: 2 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.10
version: 0.1.11
acceptHeaderEnum: false
additionalDependencies:
dependencies: {}
Expand Down Expand Up @@ -92,6 +92,7 @@ typescript:
responseFormat: flat
sseFlatResponse: true
templateVersion: v2
unionStrategy: left-to-right
usageSDKInitImports: []
useIndexModules: true
zodVersion: v4
12 changes: 11 additions & 1 deletion .speakeasy/in.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7157,7 +7157,9 @@ paths:
type: string
nullable: true
format: date-time
description: Optional ISO 8601 timestamp with timezone when the API key should expire
description: >-
Optional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be
rejected
example: '2027-12-31T23:59:59Z'
required:
- name
Expand Down Expand Up @@ -7931,6 +7933,12 @@ paths:
type: boolean
description: Whether to include external BYOK usage in the credit limit
example: false
expires_at:
type: string
nullable: true
format: date-time
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
example: '2027-12-31T23:59:59Z'
rate_limit:
type: object
properties:
Expand Down Expand Up @@ -7990,6 +7998,7 @@ paths:
limit_remaining: 74.5
limit_reset: monthly
include_byok_in_limit: false
expires_at: '2027-12-31T23:59:59Z'
rate_limit:
requests: 1000
interval: 1h
Expand All @@ -8013,6 +8022,7 @@ paths:
limit_remaining: 74.5
limit_reset: monthly
include_byok_in_limit: false
expires_at: '2027-12-31T23:59:59Z'
rate_limit:
requests: 1000
interval: 1h
Expand Down
11 changes: 10 additions & 1 deletion .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7164,7 +7164,8 @@ paths:
type: string
nullable: true
format: date-time
description: Optional ISO 8601 timestamp with timezone when the API key should expire
description: >-
Optional ISO 8601 UTC timestamp when the API key should expire. Must be UTC, other timezones will be rejected
example: '2027-12-31T23:59:59Z'
required:
- name
Expand Down Expand Up @@ -7938,6 +7939,12 @@ paths:
type: boolean
description: Whether to include external BYOK usage in the credit limit
example: false
expires_at:
type: string
nullable: true
format: date-time
description: ISO 8601 UTC timestamp when the API key expires, or null if no expiration
example: '2027-12-31T23:59:59Z'
rate_limit:
type: object
properties:
Expand Down Expand Up @@ -7997,6 +8004,7 @@ paths:
limit_remaining: 74.5
limit_reset: monthly
include_byok_in_limit: false
expires_at: '2027-12-31T23:59:59Z'
rate_limit:
requests: 1000
interval: 1h
Expand All @@ -8020,6 +8028,7 @@ paths:
limit_remaining: 74.5
limit_reset: monthly
include_byok_in_limit: false
expires_at: '2027-12-31T23:59:59Z'
rate_limit:
requests: 1000
interval: 1h
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.653.2
speakeasyVersion: 1.654.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:41a987c6a80cdcf2865e59e7a511706f801f6b5abc2713de2b75558aa812b0b1
sourceBlobDigest: sha256:f732c29c7257afac986bc8f9076fbe3d190da15d1d8674ee191e7b83e611ecf3
sourceRevisionDigest: sha256:08647b466c00989914e3a2436175152270f771f0a57d055f5bab14cc2d4be89e
sourceBlobDigest: sha256:53027ec57392d9617cc001ece83c2fe1aa6e5dbfd52d170381c34c33c6042c23
tags:
- latest
- staging
Expand All @@ -12,10 +12,10 @@ targets:
openrouter:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:41a987c6a80cdcf2865e59e7a511706f801f6b5abc2713de2b75558aa812b0b1
sourceBlobDigest: sha256:f732c29c7257afac986bc8f9076fbe3d190da15d1d8674ee191e7b83e611ecf3
sourceRevisionDigest: sha256:08647b466c00989914e3a2436175152270f771f0a57d055f5bab14cc2d4be89e
sourceBlobDigest: sha256:53027ec57392d9617cc001ece83c2fe1aa6e5dbfd52d170381c34c33c6042c23
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:0f9c73bf63e810bfa351faeb47ca62dbc21680abe1d4d1d1342d59738cccbb53
codeSamplesRevisionDigest: sha256:e30bf4d24076522aaf92aa570cc8b7ba008d86e9a36336d815e99dbf154d3b47
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion docs/models/operations/createkeysrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ let value: CreateKeysRequest = {
| `limit` | *number* | :heavy_minus_sign: | Optional spending limit for the API key in USD | 50 |
| `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 |
| `includeByokInLimit` | *boolean* | :heavy_minus_sign: | Whether to include BYOK usage in the limit | true |
| `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 |
| `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 |
1 change: 1 addition & 0 deletions docs/models/operations/getcurrentkeydata.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ let value: GetCurrentKeyData = {
| `limitRemaining` | *number* | :heavy_check_mark: | Remaining spending limit in USD | 74.5 |
| `limitReset` | *string* | :heavy_check_mark: | Type of limit reset for the API key | monthly |
| `includeByokInLimit` | *boolean* | :heavy_check_mark: | Whether to include external BYOK usage in the credit limit | false |
| `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 |
| ~~`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/>} |
Loading
Loading