Skip to content

Commit 1c2f8aa

Browse files
committed
updated for 4xx and 5xx responses
1 parent db87e30 commit 1c2f8aa

File tree

142 files changed

+2373
-4505
lines changed

Some content is hidden

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

142 files changed

+2373
-4505
lines changed

.speakeasy/gen.lock

Lines changed: 56 additions & 69 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: a1cf6756d06afbe789def40a522bb8af
4+
docChecksum: 80dec9a41e9ab85cde78982024c04754
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.624.1
7-
generationVersion: 2.714.1
8-
releaseVersion: 0.0.0-beta.5
9-
configChecksum: b84e6447431dce7865acd13a49350f54
6+
speakeasyVersion: 1.625.0
7+
generationVersion: 2.715.0
8+
releaseVersion: 0.0.0-beta.7
9+
configChecksum: 22f8698917df78c1ff76ee20c8131282
1010
repoURL: https://github.com/OpenRouterTeam/typescript-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/typescript-sdk
1212
published: true
@@ -24,11 +24,9 @@ features:
2424
envVarSecurityUsage: 0.1.2
2525
globalSecurity: 2.82.14
2626
globalSecurityCallbacks: 0.1.0
27-
globalSecurityFlattening: 0.1.0
2827
globalServerURLs: 2.82.5
2928
groups: 2.81.2
3029
methodArguments: 0.1.2
31-
methodSecurity: 2.82.6
3230
nameOverrides: 2.81.2
3331
nullables: 0.1.1
3432
reactQueryHooks: 0.2.3
@@ -53,7 +51,18 @@ generatedFiles:
5351
- docs/models/activityitem.md
5452
- docs/models/assistantmessage.md
5553
- docs/models/assistantmessagecontent.md
56-
- docs/models/chaterrorerror.md
54+
- docs/models/chatcompletion.md
55+
- docs/models/chatcompletionchoice.md
56+
- docs/models/chatcompletionchoicefinishreason.md
57+
- docs/models/chatcompletionchunk.md
58+
- docs/models/chatcompletionchunkchoice.md
59+
- docs/models/chatcompletionchunkchoicedelta.md
60+
- docs/models/chatcompletionchunkchoicedeltatoolcall.md
61+
- docs/models/chatcompletionchunkchoicedeltatoolcallfunction.md
62+
- docs/models/chatcompletionchunkchoicefinishreason.md
63+
- docs/models/chatcompletionerrorerror.md
64+
- docs/models/chatcompletionmessage.md
65+
- docs/models/chatcompletionmessagecontent.md
5766
- docs/models/chatgenerationparams.md
5867
- docs/models/chatgenerationtokenusage.md
5968
- docs/models/chatmessagecontentitem.md
@@ -64,35 +73,22 @@ generatedFiles:
6473
- docs/models/chatmessagetokenlogprobs.md
6574
- docs/models/chatmessagetoolcall.md
6675
- docs/models/chatmessagetoolcallfunction.md
67-
- docs/models/chatresponse.md
68-
- docs/models/chatresponsechoice.md
69-
- docs/models/chatresponsechoicefinishreason.md
70-
- docs/models/chatstreamingchoice.md
71-
- docs/models/chatstreamingchoicefinishreason.md
72-
- docs/models/chatstreamingmessagechunk.md
73-
- docs/models/chatstreamingmessagetoolcall.md
74-
- docs/models/chatstreamingmessagetoolcallfunction.md
75-
- docs/models/chatstreamingresponsechunk.md
76-
- docs/models/chatstreamingresponsechunkerror.md
7776
- docs/models/chatstreamoptions.md
7877
- docs/models/code.md
79-
- docs/models/codeenum.md
8078
- docs/models/completiontokensdetails.md
8179
- docs/models/data.md
8280
- docs/models/detail.md
8381
- docs/models/effort.md
8482
- docs/models/errorresponse.md
8583
- docs/models/errorresponseerror.md
86-
- docs/models/errors/chaterror.md
84+
- docs/models/errors/chatcompletionerror.md
8785
- docs/models/errors/internalservererror.md
8886
- docs/models/format.md
8987
- docs/models/generatesummary.md
9088
- docs/models/imageurl.md
9189
- docs/models/inputaudio.md
9290
- docs/models/jsonschema.md
9391
- docs/models/message.md
94-
- docs/models/messagecontent.md
95-
- docs/models/messagedeveloper.md
9692
- docs/models/namedtoolchoice.md
9793
- docs/models/namedtoolchoicefunction.md
9894
- docs/models/operations/apitype.md
@@ -221,7 +217,6 @@ generatedFiles:
221217
- docs/models/operations/getmodelsuserprompt.md
222218
- docs/models/operations/getmodelsuserresponse.md
223219
- docs/models/operations/getmodelsuserresponsebody.md
224-
- docs/models/operations/getmodelsusersecurity.md
225220
- docs/models/operations/getmodelsusersupportedparameter.md
226221
- docs/models/operations/getmodelsusertokenizer.md
227222
- docs/models/operations/getmodelsusertopprovider.md
@@ -232,7 +227,6 @@ generatedFiles:
232227
- docs/models/operations/getparametersauthorslugrequest.md
233228
- docs/models/operations/getparametersauthorslugresponse.md
234229
- docs/models/operations/getparametersauthorslugresponsebody.md
235-
- docs/models/operations/getparametersauthorslugsecurity.md
236230
- docs/models/operations/getparametersauthorslugsupportedparameter.md
237231
- docs/models/operations/getprovidersdata.md
238232
- docs/models/operations/getprovidersresponse.md
@@ -254,21 +248,11 @@ generatedFiles:
254248
- docs/models/operations/patchkeyshashrequestbody.md
255249
- docs/models/operations/patchkeyshashresponse.md
256250
- docs/models/operations/patchkeyshashresponsebody.md
257-
- docs/models/operations/postauthkeyscodechallengemethod.md
258-
- docs/models/operations/postauthkeyscodecodechallengemethod.md
259-
- docs/models/operations/postauthkeyscodedata.md
260-
- docs/models/operations/postauthkeyscoderequest.md
261-
- docs/models/operations/postauthkeyscoderesponse.md
262-
- docs/models/operations/postauthkeyscoderesponsebody.md
263-
- docs/models/operations/postauthkeysrequest.md
264-
- docs/models/operations/postauthkeysresponse.md
265-
- docs/models/operations/postauthkeysresponsebody.md
266251
- docs/models/operations/postchatcompletionsresponse.md
267252
- docs/models/operations/postcreditscoinbasedata.md
268253
- docs/models/operations/postcreditscoinbaserequest.md
269254
- docs/models/operations/postcreditscoinbaseresponse.md
270255
- docs/models/operations/postcreditscoinbaseresponsebody.md
271-
- docs/models/operations/postcreditscoinbasesecurity.md
272256
- docs/models/operations/postembeddingsaudio.md
273257
- docs/models/operations/postembeddingscompletion.md
274258
- docs/models/operations/postembeddingsdata.md
@@ -304,23 +288,20 @@ generatedFiles:
304288
- docs/models/systemmessagecontent.md
305289
- docs/models/tool.md
306290
- docs/models/toolfunction.md
307-
- docs/models/toolresponsemessage.md
308-
- docs/models/toolresponsemessagecontent.md
291+
- docs/models/toolmessage.md
292+
- docs/models/toolmessagecontent.md
309293
- docs/models/toplogprob.md
310294
- docs/models/usermessage.md
311295
- docs/models/usermessagecontent.md
312296
- docs/sdks/analytics/README.md
313297
- docs/sdks/apikeys/README.md
314298
- docs/sdks/chat/README.md
315-
- docs/sdks/credits/README.md
316299
- docs/sdks/embeddings/README.md
317300
- docs/sdks/endpoints/README.md
318301
- docs/sdks/generations/README.md
319-
- docs/sdks/model/README.md
320302
- docs/sdks/models/README.md
321-
- docs/sdks/oauth/README.md
322303
- docs/sdks/openrouter/README.md
323-
- docs/sdks/providers/README.md
304+
- docs/sdks/parameters/README.md
324305
- eslint.config.mjs
325306
- examples/.env.template
326307
- examples/README.md
@@ -337,20 +318,18 @@ generatedFiles:
337318
- src/funcs/apiKeysGetKeysHash.ts
338319
- src/funcs/apiKeysPatchKeysHash.ts
339320
- src/funcs/apiKeysPostKeys.ts
340-
- src/funcs/chatSend.ts
341-
- src/funcs/creditsPostCreditsCoinbase.ts
342-
- src/funcs/embeddingsGenerate.ts
321+
- src/funcs/chatGenerateResponse.ts
322+
- src/funcs/embeddingsPostEmbeddings.ts
343323
- src/funcs/endpointsGetEndpointsZdr.ts
344324
- src/funcs/endpointsGetModelsAuthorSlugEndpoints.ts
345325
- src/funcs/generationsGetGeneration.ts
346326
- src/funcs/getCredits.ts
347-
- src/funcs/modelGetParametersAuthorSlug.ts
327+
- src/funcs/getProviders.ts
348328
- src/funcs/modelsGetModels.ts
349329
- src/funcs/modelsGetModelsCount.ts
350330
- src/funcs/modelsGetModelsUser.ts
351-
- src/funcs/oAuthPostAuthKeys.ts
352-
- src/funcs/oAuthPostAuthKeysCode.ts
353-
- src/funcs/providersGetProviders.ts
331+
- src/funcs/parametersGetParametersAuthorSlug.ts
332+
- src/funcs/postCreditsCoinbase.ts
354333
- src/hooks/hooks.ts
355334
- src/hooks/index.ts
356335
- src/hooks/types.ts
@@ -374,7 +353,14 @@ generatedFiles:
374353
- src/lib/url.ts
375354
- src/models/activityitem.ts
376355
- src/models/assistantmessage.ts
377-
- src/models/chaterror.ts
356+
- src/models/chatcompletion.ts
357+
- src/models/chatcompletionchoice.ts
358+
- src/models/chatcompletionchunk.ts
359+
- src/models/chatcompletionchunkchoice.ts
360+
- src/models/chatcompletionchunkchoicedelta.ts
361+
- src/models/chatcompletionchunkchoicedeltatoolcall.ts
362+
- src/models/chatcompletionerror.ts
363+
- src/models/chatcompletionmessage.ts
378364
- src/models/chatgenerationparams.ts
379365
- src/models/chatgenerationtokenusage.ts
380366
- src/models/chatmessagecontentitem.ts
@@ -384,15 +370,9 @@ generatedFiles:
384370
- src/models/chatmessagetokenlogprob.ts
385371
- src/models/chatmessagetokenlogprobs.ts
386372
- src/models/chatmessagetoolcall.ts
387-
- src/models/chatresponse.ts
388-
- src/models/chatresponsechoice.ts
389-
- src/models/chatstreamingchoice.ts
390-
- src/models/chatstreamingmessagechunk.ts
391-
- src/models/chatstreamingmessagetoolcall.ts
392-
- src/models/chatstreamingresponsechunk.ts
393373
- src/models/chatstreamoptions.ts
394374
- src/models/errorresponse.ts
395-
- src/models/errors/chaterror.ts
375+
- src/models/errors/chatcompletionerror.ts
396376
- src/models/errors/getproviders.ts
397377
- src/models/errors/httpclienterrors.ts
398378
- src/models/errors/index.ts
@@ -420,16 +400,14 @@ generatedFiles:
420400
- src/models/operations/getproviders.ts
421401
- src/models/operations/index.ts
422402
- src/models/operations/patchkeyshash.ts
423-
- src/models/operations/postauthkeys.ts
424-
- src/models/operations/postauthkeyscode.ts
425403
- src/models/operations/postchatcompletions.ts
426404
- src/models/operations/postcreditscoinbase.ts
427405
- src/models/operations/postembeddings.ts
428406
- src/models/operations/postkeys.ts
429407
- src/models/security.ts
430408
- src/models/systemmessage.ts
431409
- src/models/tool.ts
432-
- src/models/toolresponsemessage.ts
410+
- src/models/toolmessage.ts
433411
- src/models/usermessage.ts
434412
- src/react-query/_context.tsx
435413
- src/react-query/_types.ts
@@ -441,33 +419,28 @@ generatedFiles:
441419
- src/react-query/apiKeysGetKeysHash.ts
442420
- src/react-query/apiKeysPatchKeysHash.ts
443421
- src/react-query/apiKeysPostKeys.ts
444-
- src/react-query/chatSend.ts
445-
- src/react-query/creditsPostCreditsCoinbase.ts
446-
- src/react-query/embeddingsGenerate.ts
422+
- src/react-query/chatGenerateResponse.ts
423+
- src/react-query/embeddingsPostEmbeddings.ts
447424
- src/react-query/endpointsGetEndpointsZdr.ts
448425
- src/react-query/endpointsGetModelsAuthorSlugEndpoints.ts
449426
- src/react-query/generationsGetGeneration.ts
450427
- src/react-query/getCredits.ts
428+
- src/react-query/getProviders.ts
451429
- src/react-query/index.ts
452-
- src/react-query/modelGetParametersAuthorSlug.ts
453430
- src/react-query/modelsGetModels.ts
454431
- src/react-query/modelsGetModelsCount.ts
455432
- src/react-query/modelsGetModelsUser.ts
456-
- src/react-query/oAuthPostAuthKeys.ts
457-
- src/react-query/oAuthPostAuthKeysCode.ts
458-
- src/react-query/providersGetProviders.ts
433+
- src/react-query/parametersGetParametersAuthorSlug.ts
434+
- src/react-query/postCreditsCoinbase.ts
459435
- src/sdk/analytics.ts
460436
- src/sdk/apikeys.ts
461437
- src/sdk/chat.ts
462-
- src/sdk/credits.ts
463438
- src/sdk/embeddings.ts
464439
- src/sdk/endpoints.ts
465440
- src/sdk/generations.ts
466441
- src/sdk/index.ts
467-
- src/sdk/model.ts
468442
- src/sdk/models.ts
469-
- src/sdk/oauth.ts
470-
- src/sdk/providers.ts
443+
- src/sdk/parameters.ts
471444
- src/sdk/sdk.ts
472445
- src/types/async.ts
473446
- src/types/blobs.ts
@@ -502,13 +475,19 @@ examples:
502475
application/json: {"data": {"total_credits": 5452.47, "total_usage": 6368.93}}
503476
default:
504477
application/json: {"error": {"code": 413, "message": "<value>"}}
478+
4XX:
479+
application/json: {"error": {"code": 418, "message": "<value>"}}
505480
post_/credits/coinbase:
506481
speakeasy-default-post-/credits/coinbase:
507482
responses:
508483
"200":
509484
application/json: {"data": {"id": "<id>", "created_at": "1705058901106", "expires_at": "1742247470320", "web3_data": {"transfer_intent": {"call_data": {"deadline": "<value>", "fee_amount": "<value>", "id": "<id>", "operator": "<value>", "prefix": "<value>", "recipient": "<value>", "recipient_amount": "<value>", "recipient_currency": "<value>", "refund_destination": "<value>", "signature": "<value>"}, "metadata": {"chain_id": 7411.72, "contract_address": "<value>", "sender": "<value>"}}}}}
510485
default:
511486
application/json: {"error": {"code": 201, "message": "<value>"}}
487+
4XX:
488+
application/json: {"error": {"code": 102, "message": "<value>"}}
489+
5XX:
490+
application/json: {"error": {"code": 102, "message": "<value>"}}
512491
get_/providers:
513492
speakeasy-default-get-/providers:
514493
responses:
@@ -535,6 +514,10 @@ examples:
535514
application/json: {"object": "list", "data": [], "model": "Charger"}
536515
default:
537516
application/json: {"error": {"code": 404, "message": "<value>"}}
517+
4XX:
518+
application/json: {"error": {"code": 423, "message": "<value>"}}
519+
5XX:
520+
application/json: {"error": {"code": 423, "message": "<value>"}}
538521
get_/generation:
539522
speakeasy-default-get-/generation:
540523
parameters:
@@ -676,6 +659,10 @@ examples:
676659
application/json: {"key": "sk-or-v1-abc123def456ghi789jkl012", "user_id": "or_user_1234567890abcdef"}
677660
default:
678661
application/json: {"error": {"code": 451, "message": "<value>"}}
662+
4XX:
663+
application/json: {"error": {"code": 451, "message": "<value>"}}
664+
5XX:
665+
application/json: {"error": {"code": 451, "message": "<value>"}}
679666
post_/auth/keys/code:
680667
speakeasy-default-post-/auth/keys/code:
681668
requestBody:

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ generation:
2727
generateNewTests: true
2828
skipResponseBodyAssertions: false
2929
typescript:
30-
version: 0.0.0-beta.5
30+
version: 0.0.0-beta.7
3131
additionalDependencies:
3232
dependencies: {}
3333
devDependencies: {}

0 commit comments

Comments
 (0)