Skip to content

Commit f1da972

Browse files
robert-j-yOpenRouter Team
andauthored
chore: sync from monorepo (#178)
Automated export from OpenRouter monorepo. This PR was created by Copybara to sync changes from the monorepo source of truth. Co-authored-by: OpenRouter Team <engineering@openrouter.ai>
1 parent 8ac682c commit f1da972

File tree

185 files changed

+4318
-639
lines changed

Some content is hidden

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

185 files changed

+4318
-639
lines changed

.speakeasy/gen.lock

Lines changed: 470 additions & 262 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ generation:
1616
requestResponseComponentNamesFeb2024: true
1717
securityFeb2025: true
1818
sharedErrorComponentsApr2025: true
19+
sharedNestedComponentsJan2026: false
1920
auth:
2021
oAuth2ClientCredentialsEnabled: true
2122
oAuth2PasswordEnabled: true
@@ -32,8 +33,9 @@ generation:
3233
generateNewTests: true
3334
skipResponseBodyAssertions: false
3435
preApplyUnionDiscriminators: true
36+
versioningStrategy: automatic
3537
typescript:
36-
version: 0.7.0
38+
version: 0.8.0
3739
acceptHeaderEnum: false
3840
additionalDependencies:
3941
dependencies:
@@ -76,6 +78,7 @@ typescript:
7678
enumFormat: union
7779
envVarPrefix: OPENROUTER
7880
exportZodModelNamespace: false
81+
flatAdditionalProperties: false
7982
flattenGlobalSecurity: true
8083
flatteningOrder: parameters-first
8184
formStringArrayEncodeMode: encoded-string
@@ -95,6 +98,7 @@ typescript:
9598
inputModelSuffix: input
9699
jsonpath: rfc9535
97100
laxMode: strict
101+
legacyFileNaming: true
98102
maxMethodParams: 0
99103
methodArguments: infer-optional-args
100104
modelPropertyCasing: camel
@@ -103,6 +107,7 @@ typescript:
103107
outputModelSuffix: output
104108
packageName: '@openrouter/sdk'
105109
preApplyUnionDiscriminators: true
110+
preserveModelFieldNames: false
106111
responseFormat: flat
107112
sseFlatResponse: true
108113
templateVersion: v2

.speakeasy/in.openapi.yaml

Lines changed: 66 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4430,6 +4430,9 @@ components:
44304430
required:
44314431
- ephemeral_5m_input_tokens
44324432
- ephemeral_1h_input_tokens
4433+
inference_geo:
4434+
type: string
4435+
nullable: true
44334436
server_tool_use:
44344437
type: object
44354438
nullable: true
@@ -4451,6 +4454,7 @@ components:
44514454
- cache_creation_input_tokens
44524455
- cache_read_input_tokens
44534456
- cache_creation
4457+
- inference_geo
44544458
- server_tool_use
44554459
- service_tier
44564460
required:
@@ -4485,6 +4489,7 @@ components:
44854489
cache_creation_input_tokens: null
44864490
cache_read_input_tokens: null
44874491
cache_creation: null
4492+
inference_geo: null
44884493
server_tool_use: null
44894494
service_tier: standard
44904495
AnthropicMessagesStreamEvent:
@@ -4804,6 +4809,9 @@ components:
48044809
required:
48054810
- ephemeral_5m_input_tokens
48064811
- ephemeral_1h_input_tokens
4812+
inference_geo:
4813+
type: string
4814+
nullable: true
48074815
server_tool_use:
48084816
type: object
48094817
nullable: true
@@ -4825,6 +4833,7 @@ components:
48254833
- cache_creation_input_tokens
48264834
- cache_read_input_tokens
48274835
- cache_creation
4836+
- inference_geo
48284837
- server_tool_use
48294838
- service_tier
48304839
required:
@@ -6532,9 +6541,10 @@ components:
65326541
- low
65336542
- medium
65346543
- high
6544+
- max
65356545
description: >-
65366546
How much effort the model should put into its response. Higher effort levels may result in more thorough
6537-
analysis but take longer. Valid values are `low`, `medium`, or `high`.
6547+
analysis but take longer. Valid values are `low`, `medium`, `high`, or `max`.
65386548
example: medium
65396549
description: Configuration for controlling output behavior. Currently supports the effort parameter for Claude Opus 4.5.
65406550
AnthropicMessagesRequest:
@@ -6950,6 +6960,14 @@ components:
69506960
- disabled
69516961
required:
69526962
- type
6963+
- type: object
6964+
properties:
6965+
type:
6966+
type: string
6967+
enum:
6968+
- adaptive
6969+
required:
6970+
- type
69536971
service_tier:
69546972
type: string
69556973
enum:
@@ -7280,7 +7298,7 @@ components:
72807298
description: Error data for ForbiddenResponse
72817299
example:
72827300
code: 403
7283-
message: Only provisioning keys can perform this operation
7301+
message: Only management keys can perform this operation
72847302
ForbiddenResponse:
72857303
type: object
72867304
properties:
@@ -7295,7 +7313,7 @@ components:
72957313
example:
72967314
error:
72977315
code: 403
7298-
message: Only provisioning keys can perform this operation
7316+
message: Only management keys can perform this operation
72997317
CreateChargeRequest:
73007318
type: object
73017319
properties:
@@ -9804,8 +9822,8 @@ paths:
98049822
operationId: getUserActivity
98059823
summary: Get user activity grouped by endpoint
98069824
description: >-
9807-
Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. [Provisioning
9808-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
9825+
Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. [Management
9826+
key](/docs/guides/overview/auth/management-api-keys) required.
98099827
parameters:
98109828
- schema:
98119829
type: string
@@ -9856,7 +9874,7 @@ paths:
98569874
schema:
98579875
$ref: '#/components/schemas/UnauthorizedResponse'
98589876
'403':
9859-
description: Forbidden - Only provisioning keys can fetch activity
9877+
description: Forbidden - Only management keys can fetch activity
98609878
content:
98619879
application/json:
98629880
schema:
@@ -9875,8 +9893,8 @@ paths:
98759893
summary: Get remaining credits
98769894
operationId: getCredits
98779895
description: >-
9878-
Get total credits purchased and used for the authenticated user. [Provisioning
9879-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
9896+
Get total credits purchased and used for the authenticated user. [Management
9897+
key](/docs/guides/overview/auth/management-api-keys) required.
98809898
responses:
98819899
'200':
98829900
description: Returns the total credits purchased and used
@@ -9916,7 +9934,7 @@ paths:
99169934
schema:
99179935
$ref: '#/components/schemas/UnauthorizedResponse'
99189936
'403':
9919-
description: Forbidden - Only provisioning keys can fetch credits
9937+
description: Forbidden - Only management keys can fetch credits
99209938
content:
99219939
application/json:
99229940
schema:
@@ -10939,8 +10957,8 @@ paths:
1093910957
- API Keys
1094010958
summary: List API keys
1094110959
description: >-
10942-
List all API keys for the authenticated user. [Provisioning
10943-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
10960+
List all API keys for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys)
10961+
required.
1094410962
parameters:
1094510963
- schema:
1094610964
type: string
@@ -11140,8 +11158,8 @@ paths:
1114011158
- API Keys
1114111159
summary: Create a new API key
1114211160
description: >-
11143-
Create a new API key for the authenticated user. [Provisioning
11144-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
11161+
Create a new API key for the authenticated user. [Management
11162+
key](/docs/guides/overview/auth/management-api-keys) required.
1114511163
requestBody:
1114611164
content:
1114711165
application/json:
@@ -11383,7 +11401,7 @@ paths:
1138311401
tags:
1138411402
- API Keys
1138511403
summary: Update an API key
11386-
description: Update an existing API key. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
11404+
description: Update an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
1138711405
parameters:
1138811406
- schema:
1138911407
type: string
@@ -11626,7 +11644,7 @@ paths:
1162611644
tags:
1162711645
- API Keys
1162811646
summary: Delete an API key
11629-
description: Delete an existing API key. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
11647+
description: Delete an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.
1163011648
parameters:
1163111649
- schema:
1163211650
type: string
@@ -11684,7 +11702,7 @@ paths:
1168411702
tags:
1168511703
- API Keys
1168611704
summary: Get a single API key
11687-
description: Get a single API key by hash. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
11705+
description: Get a single API key by hash. [Management key](/docs/guides/overview/auth/management-api-keys) required.
1168811706
parameters:
1168911707
- schema:
1169011708
type: string
@@ -11882,8 +11900,8 @@ paths:
1188211900
- Guardrails
1188311901
summary: List guardrails
1188411902
description: >-
11885-
List all guardrails for the authenticated user. [Provisioning
11886-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
11903+
List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys)
11904+
required.
1188711905
parameters:
1188811906
- schema:
1188911907
type: string
@@ -12039,8 +12057,8 @@ paths:
1203912057
- Guardrails
1204012058
summary: Create a guardrail
1204112059
description: >-
12042-
Create a new guardrail for the authenticated user. [Provisioning
12043-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
12060+
Create a new guardrail for the authenticated user. [Management
12061+
key](/docs/guides/overview/auth/management-api-keys) required.
1204412062
requestBody:
1204512063
content:
1204612064
application/json:
@@ -12252,7 +12270,7 @@ paths:
1225212270
tags:
1225312271
- Guardrails
1225412272
summary: Get a guardrail
12255-
description: Get a single guardrail by ID. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
12273+
description: Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
1225612274
parameters:
1225712275
- schema:
1225812276
type: string
@@ -12398,7 +12416,7 @@ paths:
1239812416
tags:
1239912417
- Guardrails
1240012418
summary: Update a guardrail
12401-
description: Update an existing guardrail. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
12419+
description: Update an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
1240212420
parameters:
1240312421
- schema:
1240412422
type: string
@@ -12613,7 +12631,7 @@ paths:
1261312631
tags:
1261412632
- Guardrails
1261512633
summary: Delete a guardrail
12616-
description: Delete an existing guardrail. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
12634+
description: Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
1261712635
parameters:
1261812636
- schema:
1261912637
type: string
@@ -12667,8 +12685,8 @@ paths:
1266712685
- Guardrails
1266812686
summary: List all key assignments
1266912687
description: >-
12670-
List all API key guardrail assignments for the authenticated user. [Provisioning
12671-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
12688+
List all API key guardrail assignments for the authenticated user. [Management
12689+
key](/docs/guides/overview/auth/management-api-keys) required.
1267212690
parameters:
1267312691
- schema:
1267412692
type: string
@@ -12766,8 +12784,8 @@ paths:
1276612784
- Guardrails
1276712785
summary: List all member assignments
1276812786
description: >-
12769-
List all organization member guardrail assignments for the authenticated user. [Provisioning
12770-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
12787+
List all organization member guardrail assignments for the authenticated user. [Management
12788+
key](/docs/guides/overview/auth/management-api-keys) required.
1277112789
parameters:
1277212790
- schema:
1277312791
type: string
@@ -12860,8 +12878,8 @@ paths:
1286012878
- Guardrails
1286112879
summary: List key assignments for a guardrail
1286212880
description: >-
12863-
List all API key assignments for a specific guardrail. [Provisioning
12864-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
12881+
List all API key assignments for a specific guardrail. [Management
12882+
key](/docs/guides/overview/auth/management-api-keys) required.
1286512883
parameters:
1286612884
- schema:
1286712885
type: string
@@ -12973,8 +12991,8 @@ paths:
1297312991
- Guardrails
1297412992
summary: Bulk assign keys to a guardrail
1297512993
description: >-
12976-
Assign multiple API keys to a specific guardrail. [Provisioning
12977-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
12994+
Assign multiple API keys to a specific guardrail. [Management
12995+
key](/docs/guides/overview/auth/management-api-keys) required.
1297812996
parameters:
1297912997
- schema:
1298012998
type: string
@@ -13049,8 +13067,8 @@ paths:
1304913067
- Guardrails
1305013068
summary: List member assignments for a guardrail
1305113069
description: >-
13052-
List all organization member assignments for a specific guardrail. [Provisioning
13053-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
13070+
List all organization member assignments for a specific guardrail. [Management
13071+
key](/docs/guides/overview/auth/management-api-keys) required.
1305413072
parameters:
1305513073
- schema:
1305613074
type: string
@@ -13157,8 +13175,8 @@ paths:
1315713175
- Guardrails
1315813176
summary: Bulk assign members to a guardrail
1315913177
description: >-
13160-
Assign multiple organization members to a specific guardrail. [Provisioning
13161-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
13178+
Assign multiple organization members to a specific guardrail. [Management
13179+
key](/docs/guides/overview/auth/management-api-keys) required.
1316213180
parameters:
1316313181
- schema:
1316413182
type: string
@@ -13234,8 +13252,8 @@ paths:
1323413252
- Guardrails
1323513253
summary: Bulk unassign keys from a guardrail
1323613254
description: >-
13237-
Unassign multiple API keys from a specific guardrail. [Provisioning
13238-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
13255+
Unassign multiple API keys from a specific guardrail. [Management
13256+
key](/docs/guides/overview/auth/management-api-keys) required.
1323913257
parameters:
1324013258
- schema:
1324113259
type: string
@@ -13310,8 +13328,8 @@ paths:
1331013328
- Guardrails
1331113329
summary: Bulk unassign members from a guardrail
1331213330
description: >-
13313-
Unassign multiple organization members from a specific guardrail. [Provisioning
13314-
key](/docs/guides/overview/auth/provisioning-api-keys) required.
13331+
Unassign multiple organization members from a specific guardrail. [Management
13332+
key](/docs/guides/overview/auth/management-api-keys) required.
1331513333
parameters:
1331613334
- schema:
1331713335
type: string
@@ -13443,9 +13461,14 @@ paths:
1344313461
type: boolean
1344413462
description: Whether this is a free tier API key
1344513463
example: false
13464+
is_management_key:
13465+
type: boolean
13466+
description: Whether this is a management key
13467+
example: false
1344613468
is_provisioning_key:
1344713469
type: boolean
13448-
description: Whether this is a provisioning key
13470+
description: Whether this is a management key
13471+
deprecated: true
1344913472
example: false
1345013473
limit_remaining:
1345113474
type: number
@@ -13504,6 +13527,7 @@ paths:
1350413527
- byok_usage_weekly
1350513528
- byok_usage_monthly
1350613529
- is_free_tier
13530+
- is_management_key
1350713531
- is_provisioning_key
1350813532
- limit_remaining
1350913533
- limit_reset
@@ -13522,6 +13546,7 @@ paths:
1352213546
byok_usage_weekly: 17.38
1352313547
byok_usage_monthly: 17.38
1352413548
is_free_tier: false
13549+
is_management_key: false
1352513550
is_provisioning_key: false
1352613551
limit_remaining: 74.5
1352713552
limit_reset: monthly
@@ -13546,6 +13571,7 @@ paths:
1354613571
byok_usage_weekly: 17.38
1354713572
byok_usage_monthly: 17.38
1354813573
is_free_tier: false
13574+
is_management_key: false
1354913575
is_provisioning_key: false
1355013576
limit_remaining: 74.5
1355113577
limit_reset: monthly

0 commit comments

Comments
 (0)