Skip to content

Commit c35e9cd

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

19 files changed

+59
-39
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: 973d42c85e29be093122e32bf9e93222
4+
docChecksum: 72770d47aad60a8f1a16b4613e8d1ca3
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.651.0
6+
speakeasyVersion: 1.652.0
77
generationVersion: 2.745.2
8-
releaseVersion: 0.1.6
9-
configChecksum: e27fc703d71f79dfd40a863b5853fe72
8+
releaseVersion: 0.1.7
9+
configChecksum: bf32e6ab7422922b4cca9c193ae8e0fb
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.6
33+
version: 0.1.7
3434
acceptHeaderEnum: false
3535
additionalDependencies:
3636
dependencies: {}

.speakeasy/in.openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8130,6 +8130,11 @@ paths:
81308130
type: number
81318131
description: Credit limit for the API key to be created
81328132
example: 100
8133+
expires_at:
8134+
type: string
8135+
nullable: true
8136+
format: date-time
8137+
description: Optional expiration time for the API key to be created
81338138
required:
81348139
- callback_url
81358140
example:

.speakeasy/out.openapi.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,12 @@ components:
414414
result:
415415
type: string
416416
nullable: true
417+
default: null
417418
status:
418419
$ref: '#/components/schemas/ImageGenerationStatus'
419420
required:
420421
- type
421422
- id
422-
- result
423423
- status
424424
example:
425425
type: image_generation_call
@@ -8138,6 +8138,11 @@ paths:
81388138
type: number
81398139
description: Credit limit for the API key to be created
81408140
example: 100
8141+
expires_at:
8142+
type: string
8143+
nullable: true
8144+
format: date-time
8145+
description: Optional expiration time for the API key to be created
81418146
required:
81428147
- callback_url
81438148
example:

.speakeasy/workflow.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
speakeasyVersion: 1.651.0
1+
speakeasyVersion: 1.652.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:73beb40e7db6cb1d1bfbc364fd655f9ebdf6f9d6b3f1a71836a3a851d07e5d80
6-
sourceBlobDigest: sha256:ab3d90309e030249c89844dba54d28dc758bee9c5749ddfd961e4bb844bc5128
5+
sourceRevisionDigest: sha256:6ebac1e729591ec2c09e69bd6be79efd3b92d8c096be40905b2622ba9d55216a
6+
sourceBlobDigest: sha256:77e4e4e1005c72b7f3229453613f1d7aaa997abf08a2fc66523d55a5dbcd8556
77
tags:
88
- latest
9+
- staging
910
- 1.0.0
1011
targets:
1112
openrouter:
1213
source: OpenRouter API
1314
sourceNamespace: open-router-chat-completions-api
14-
sourceRevisionDigest: sha256:73beb40e7db6cb1d1bfbc364fd655f9ebdf6f9d6b3f1a71836a3a851d07e5d80
15-
sourceBlobDigest: sha256:ab3d90309e030249c89844dba54d28dc758bee9c5749ddfd961e4bb844bc5128
15+
sourceRevisionDigest: sha256:6ebac1e729591ec2c09e69bd6be79efd3b92d8c096be40905b2622ba9d55216a
16+
sourceBlobDigest: sha256:77e4e4e1005c72b7f3229453613f1d7aaa997abf08a2fc66523d55a5dbcd8556
1617
codeSamplesNamespace: open-router-chat-completions-api-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:b6196f12c8fcc8d875b535837a4bd70c5312256f43a98034d60c6fbca000ed87
18+
codeSamplesRevisionDigest: sha256:723294fa9e26e899e01d155bf97971b1d0c207dac0426ee48887ffeae95fab1a
1819
workflow:
1920
workflowVersion: 1.0.0
2021
speakeasyVersion: latest

docs/models/operations/createauthkeyscoderequest.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ let value: CreateAuthKeysCodeRequest = {
1717
| `callbackUrl` | *string* | :heavy_check_mark: | The callback URL to redirect to after authorization. Note, only https URLs on ports 443 and 3000 are allowed. | https://myapp.com/auth/callback |
1818
| `codeChallenge` | *string* | :heavy_minus_sign: | PKCE code challenge for enhanced security | E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM |
1919
| `codeChallengeMethod` | [operations.CreateAuthKeysCodeCodeChallengeMethod](../../models/operations/createauthkeyscodecodechallengemethod.md) | :heavy_minus_sign: | The method used to generate the code challenge | S256 |
20-
| `limit` | *number* | :heavy_minus_sign: | Credit limit for the API key to be created | 100 |
20+
| `limit` | *number* | :heavy_minus_sign: | Credit limit for the API key to be created | 100 |
21+
| `expiresAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | Optional expiration time for the API key to be created | |

docs/models/outputitemimagegenerationcall.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ let value: OutputItemImageGenerationCall = {
2020
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
2121
| `type` | [models.OutputItemImageGenerationCallType](../models/outputitemimagegenerationcalltype.md) | :heavy_check_mark: | N/A | |
2222
| `id` | *string* | :heavy_check_mark: | N/A | |
23-
| `result` | *string* | :heavy_check_mark: | N/A | |
23+
| `result` | *string* | :heavy_minus_sign: | N/A | |
2424
| `status` | [models.ImageGenerationStatus](../models/imagegenerationstatus.md) | :heavy_check_mark: | N/A | completed |

docs/models/responsesimagegenerationcall.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ let value: ResponsesImageGenerationCall = {
2020
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
2121
| `type` | [models.ResponsesImageGenerationCallType](../models/responsesimagegenerationcalltype.md) | :heavy_check_mark: | N/A | |
2222
| `id` | *string* | :heavy_check_mark: | N/A | |
23-
| `result` | *string* | :heavy_check_mark: | N/A | |
23+
| `result` | *string* | :heavy_minus_sign: | N/A | |
2424
| `status` | [models.ImageGenerationStatus](../models/imagegenerationstatus.md) | :heavy_check_mark: | N/A | completed |

examples/nextjs-example/package-lock.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "@openrouter/sdk",
5-
"version": "0.1.6",
5+
"version": "0.1.7",
66
"exports": {
77
".": "./src/index.ts",
88
"./models/errors": "./src/models/errors/index.ts",

0 commit comments

Comments
 (0)