Skip to content

Commit ed0cdcf

Browse files
author
OpenRouter SDK Bot
committed
chore: update OpenAPI spec [sdk-bot]
1 parent e57a5cb commit ed0cdcf

1 file changed

Lines changed: 50 additions & 1 deletion

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7307,6 +7307,7 @@ components:
73077307
default_text_model: 'openai/gpt-4o'
73087308
description: 'Production environment workspace'
73097309
id: '550e8400-e29b-41d4-a716-446655440000'
7310+
include_byok_in_budgets: false
73107311
io_logging_api_key_ids: null
73117312
io_logging_sampling_rate: 1
73127313
is_data_discount_logging_enabled: true
@@ -9491,6 +9492,7 @@ components:
94919492
default_text_model: 'openai/gpt-4o'
94929493
description: 'Production environment workspace'
94939494
id: '550e8400-e29b-41d4-a716-446655440000'
9495+
include_byok_in_budgets: false
94949496
io_logging_api_key_ids: null
94959497
io_logging_sampling_rate: 1
94969498
is_data_discount_logging_enabled: true
@@ -11569,12 +11571,17 @@ components:
1156911571
reset_interval: 'monthly'
1157011572
updated_at: '2025-08-24T15:45:00Z'
1157111573
workspace_id: '550e8400-e29b-41d4-a716-446655440000'
11574+
include_byok_in_budgets: false
1157211575
properties:
1157311576
data:
1157411577
description: 'List of budgets configured for the workspace'
1157511578
items:
1157611579
$ref: '#/components/schemas/WorkspaceBudget'
1157711580
type: 'array'
11581+
include_byok_in_budgets:
11582+
description: 'Whether BYOK (bring-your-own-key) spend is included when enforcing the workspace''s budgets. This is a workspace-wide setting that applies to all budget intervals (daily, weekly, monthly, and lifetime).'
11583+
example: false
11584+
type: 'boolean'
1157811585
required:
1157911586
- 'data'
1158011587
type: 'object'
@@ -11612,6 +11619,7 @@ components:
1161211619
default_text_model: 'openai/gpt-4o'
1161311620
description: 'Production environment workspace'
1161411621
id: '550e8400-e29b-41d4-a716-446655440000'
11622+
include_byok_in_budgets: false
1161511623
io_logging_api_key_ids: null
1161611624
io_logging_sampling_rate: 1
1161711625
is_data_discount_logging_enabled: true
@@ -13614,6 +13622,8 @@ components:
1361413622
is_moderated: true
1361513623
max_completion_tokens: 4096
1361613624
properties:
13625+
alias_target:
13626+
$ref: '#/components/schemas/ModelAliasTarget'
1361713627
architecture:
1361813628
$ref: '#/components/schemas/ModelArchitecture'
1361913629
benchmarks:
@@ -13702,6 +13712,22 @@ components:
1370213712
- 'supported_voices'
1370313713
- 'links'
1370413714
type: 'object'
13715+
ModelAliasTarget:
13716+
description: 'Concrete model targeted by this tilde-latest alias, when applicable'
13717+
example:
13718+
name: 'Claude Sonnet 4.5'
13719+
slug: 'anthropic/claude-sonnet-4.5'
13720+
properties:
13721+
name:
13722+
description: 'Human-readable name of the concrete model targeted by this alias'
13723+
type: 'string'
13724+
slug:
13725+
description: 'Routable model ID of the concrete target, matching that model row''s id'
13726+
type: 'string'
13727+
required:
13728+
- 'slug'
13729+
- 'name'
13730+
type: 'object'
1370513731
ModelArchitecture:
1370613732
description: 'Model architecture information'
1370713733
example:
@@ -23721,6 +23747,7 @@ components:
2372123747
default_text_model: 'openai/gpt-4o'
2372223748
description: 'Production environment workspace'
2372323749
id: '550e8400-e29b-41d4-a716-446655440000'
23750+
include_byok_in_budgets: false
2372423751
io_logging_api_key_ids: null
2372523752
io_logging_sampling_rate: 1
2372623753
is_data_discount_logging_enabled: true
@@ -23739,8 +23766,13 @@ components:
2373923766
type: 'object'
2374023767
UpsertWorkspaceBudgetRequest:
2374123768
example:
23769+
include_byok_in_budgets: true
2374223770
limit_usd: 100
2374323771
properties:
23772+
include_byok_in_budgets:
23773+
description: 'Whether to include BYOK (bring-your-own-key) spend when enforcing the workspace''s budgets. This is a workspace-wide setting: it applies to every budget interval (daily, weekly, monthly, and lifetime), not just the interval being upserted in this request. Omit to leave the current setting unchanged.'
23774+
example: true
23775+
type: 'boolean'
2374423776
limit_usd:
2374523777
description: 'Spending limit in USD. Must be greater than 0.'
2374623778
example: 100
@@ -23758,11 +23790,16 @@ components:
2375823790
reset_interval: 'monthly'
2375923791
updated_at: '2025-08-24T15:45:00Z'
2376023792
workspace_id: '550e8400-e29b-41d4-a716-446655440000'
23793+
include_byok_in_budgets: true
2376123794
properties:
2376223795
data:
2376323796
allOf:
2376423797
- $ref: '#/components/schemas/WorkspaceBudget'
2376523798
- description: 'The created or updated budget'
23799+
include_byok_in_budgets:
23800+
description: 'Whether BYOK (bring-your-own-key) spend is included when enforcing the workspace''s budgets. This is a workspace-wide setting that applies to all budget intervals (daily, weekly, monthly, and lifetime).'
23801+
example: true
23802+
type: 'boolean'
2376623803
required:
2376723804
- 'data'
2376823805
type: 'object'
@@ -24632,6 +24669,7 @@ components:
2463224669
default_text_model: 'openai/gpt-4o'
2463324670
description: 'Production environment workspace'
2463424671
id: '550e8400-e29b-41d4-a716-446655440000'
24672+
include_byok_in_budgets: false
2463524673
io_logging_api_key_ids: null
2463624674
io_logging_sampling_rate: 1
2463724675
is_data_discount_logging_enabled: true
@@ -24685,6 +24723,10 @@ components:
2468524723
example: '550e8400-e29b-41d4-a716-446655440000'
2468624724
format: 'uuid'
2468724725
type: 'string'
24726+
include_byok_in_budgets:
24727+
description: 'Whether BYOK (bring-your-own-key) spend counts toward this workspace''s budgets. Set it via the workspace budget endpoints.'
24728+
example: false
24729+
type: 'boolean'
2468824730
io_logging_api_key_ids:
2468924731
description: 'Optional array of API key IDs to filter I/O logging. Null means all keys are logged.'
2469024732
example: null
@@ -35713,6 +35755,7 @@ paths:
3571335755
default_text_model: 'openai/gpt-4o'
3571435756
description: 'Production environment workspace'
3571535757
id: '550e8400-e29b-41d4-a716-446655440000'
35758+
include_byok_in_budgets: false
3571635759
io_logging_api_key_ids: null
3571735760
io_logging_sampling_rate: 1
3571835761
is_data_discount_logging_enabled: true
@@ -35790,6 +35833,7 @@ paths:
3579035833
default_text_model: 'openai/gpt-4o'
3579135834
description: 'Production environment workspace'
3579235835
id: '550e8400-e29b-41d4-a716-446655440000'
35836+
include_byok_in_budgets: false
3579335837
io_logging_api_key_ids: null
3579435838
io_logging_sampling_rate: 1
3579535839
is_data_discount_logging_enabled: true
@@ -35949,6 +35993,7 @@ paths:
3594935993
default_text_model: 'openai/gpt-4o'
3595035994
description: 'Production environment workspace'
3595135995
id: '550e8400-e29b-41d4-a716-446655440000'
35996+
include_byok_in_budgets: false
3595235997
io_logging_api_key_ids: null
3595335998
io_logging_sampling_rate: 1
3595435999
is_data_discount_logging_enabled: true
@@ -36030,6 +36075,7 @@ paths:
3603036075
default_text_model: 'openai/gpt-4o'
3603136076
description: 'Production environment workspace'
3603236077
id: '550e8400-e29b-41d4-a716-446655440000'
36078+
include_byok_in_budgets: false
3603336079
io_logging_api_key_ids: null
3603436080
io_logging_sampling_rate: 1
3603536081
is_data_discount_logging_enabled: true
@@ -36121,6 +36167,7 @@ paths:
3612136167
reset_interval: 'monthly'
3612236168
updated_at: '2025-08-24T15:45:00Z'
3612336169
workspace_id: '550e8400-e29b-41d4-a716-446655440000'
36170+
include_byok_in_budgets: false
3612436171
schema:
3612536172
$ref: '#/components/schemas/ListWorkspaceBudgetsResponse'
3612636173
description: 'Budgets retrieved successfully'
@@ -36223,7 +36270,7 @@ paths:
3622336270
- 'Workspaces'
3622436271
x-speakeasy-name-override: 'deleteBudget'
3622536272
put:
36226-
description: 'Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). [Management key](/docs/guides/overview/auth/management-api-keys) required.'
36273+
description: 'Create or update the budget for a given interval. Budget limits must strictly decrease as the interval narrows (lifetime > monthly > weekly > daily). The optional `include_byok_in_budgets` flag is a workspace-wide setting: when provided it applies to every budget interval for the workspace, not just the interval in this request. Note that a change made here is applied to budget enforcement immediately, but an already-open workspace settings page in the web dashboard may keep showing the previous value until it is reloaded. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
3622736274
operationId: 'upsertWorkspaceBudget'
3622836275
parameters:
3622936276
- description: 'The workspace ID (UUID) or slug'
@@ -36246,6 +36293,7 @@ paths:
3624636293
content:
3624736294
application/json:
3624836295
example:
36296+
include_byok_in_budgets: true
3624936297
limit_usd: 100
3625036298
schema:
3625136299
$ref: '#/components/schemas/UpsertWorkspaceBudgetRequest'
@@ -36262,6 +36310,7 @@ paths:
3626236310
reset_interval: 'monthly'
3626336311
updated_at: '2025-08-24T15:45:00Z'
3626436312
workspace_id: '550e8400-e29b-41d4-a716-446655440000'
36313+
include_byok_in_budgets: true
3626536314
schema:
3626636315
$ref: '#/components/schemas/UpsertWorkspaceBudgetResponse'
3626736316
description: 'Budget created or updated successfully'

0 commit comments

Comments
 (0)