Skip to content
Merged
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
51 changes: 50 additions & 1 deletion .speakeasy/in.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7307,6 +7307,7 @@ components:
default_text_model: 'openai/gpt-4o'
description: 'Production environment workspace'
id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
io_logging_api_key_ids: null
io_logging_sampling_rate: 1
is_data_discount_logging_enabled: true
Expand Down Expand Up @@ -9491,6 +9492,7 @@ components:
default_text_model: 'openai/gpt-4o'
description: 'Production environment workspace'
id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
io_logging_api_key_ids: null
io_logging_sampling_rate: 1
is_data_discount_logging_enabled: true
Expand Down Expand Up @@ -11569,12 +11571,17 @@ components:
reset_interval: 'monthly'
updated_at: '2025-08-24T15:45:00Z'
workspace_id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
properties:
data:
description: 'List of budgets configured for the workspace'
items:
$ref: '#/components/schemas/WorkspaceBudget'
type: 'array'
include_byok_in_budgets:
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).'
example: false
type: 'boolean'
required:
- 'data'
type: 'object'
Expand Down Expand Up @@ -11612,6 +11619,7 @@ components:
default_text_model: 'openai/gpt-4o'
description: 'Production environment workspace'
id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
io_logging_api_key_ids: null
io_logging_sampling_rate: 1
is_data_discount_logging_enabled: true
Expand Down Expand Up @@ -13614,6 +13622,8 @@ components:
is_moderated: true
max_completion_tokens: 4096
properties:
alias_target:
$ref: '#/components/schemas/ModelAliasTarget'
architecture:
$ref: '#/components/schemas/ModelArchitecture'
benchmarks:
Expand Down Expand Up @@ -13702,6 +13712,22 @@ components:
- 'supported_voices'
- 'links'
type: 'object'
ModelAliasTarget:
description: 'Concrete model targeted by this tilde-latest alias, when applicable'
example:
name: 'Claude Sonnet 4.5'
slug: 'anthropic/claude-sonnet-4.5'
properties:
name:
description: 'Human-readable name of the concrete model targeted by this alias'
type: 'string'
slug:
description: 'Routable model ID of the concrete target, matching that model row''s id'
type: 'string'
required:
- 'slug'
- 'name'
type: 'object'
ModelArchitecture:
description: 'Model architecture information'
example:
Expand Down Expand Up @@ -23721,6 +23747,7 @@ components:
default_text_model: 'openai/gpt-4o'
description: 'Production environment workspace'
id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
io_logging_api_key_ids: null
io_logging_sampling_rate: 1
is_data_discount_logging_enabled: true
Expand All @@ -23739,8 +23766,13 @@ components:
type: 'object'
UpsertWorkspaceBudgetRequest:
example:
include_byok_in_budgets: true
limit_usd: 100
properties:
include_byok_in_budgets:
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.'
example: true
type: 'boolean'
limit_usd:
description: 'Spending limit in USD. Must be greater than 0.'
example: 100
Expand All @@ -23758,11 +23790,16 @@ components:
reset_interval: 'monthly'
updated_at: '2025-08-24T15:45:00Z'
workspace_id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: true
properties:
data:
allOf:
- $ref: '#/components/schemas/WorkspaceBudget'
- description: 'The created or updated budget'
include_byok_in_budgets:
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).'
example: true
type: 'boolean'
required:
- 'data'
type: 'object'
Expand Down Expand Up @@ -24632,6 +24669,7 @@ components:
default_text_model: 'openai/gpt-4o'
description: 'Production environment workspace'
id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
io_logging_api_key_ids: null
io_logging_sampling_rate: 1
is_data_discount_logging_enabled: true
Expand Down Expand Up @@ -24685,6 +24723,10 @@ components:
example: '550e8400-e29b-41d4-a716-446655440000'
format: 'uuid'
type: 'string'
include_byok_in_budgets:
description: 'Whether BYOK (bring-your-own-key) spend counts toward this workspace''s budgets. Set it via the workspace budget endpoints.'
example: false
type: 'boolean'
io_logging_api_key_ids:
description: 'Optional array of API key IDs to filter I/O logging. Null means all keys are logged.'
example: null
Expand Down Expand Up @@ -35713,6 +35755,7 @@ paths:
default_text_model: 'openai/gpt-4o'
description: 'Production environment workspace'
id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
io_logging_api_key_ids: null
io_logging_sampling_rate: 1
is_data_discount_logging_enabled: true
Expand Down Expand Up @@ -35790,6 +35833,7 @@ paths:
default_text_model: 'openai/gpt-4o'
description: 'Production environment workspace'
id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
io_logging_api_key_ids: null
io_logging_sampling_rate: 1
is_data_discount_logging_enabled: true
Expand Down Expand Up @@ -35949,6 +35993,7 @@ paths:
default_text_model: 'openai/gpt-4o'
description: 'Production environment workspace'
id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
io_logging_api_key_ids: null
io_logging_sampling_rate: 1
is_data_discount_logging_enabled: true
Expand Down Expand Up @@ -36030,6 +36075,7 @@ paths:
default_text_model: 'openai/gpt-4o'
description: 'Production environment workspace'
id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
io_logging_api_key_ids: null
io_logging_sampling_rate: 1
is_data_discount_logging_enabled: true
Expand Down Expand Up @@ -36121,6 +36167,7 @@ paths:
reset_interval: 'monthly'
updated_at: '2025-08-24T15:45:00Z'
workspace_id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: false
schema:
$ref: '#/components/schemas/ListWorkspaceBudgetsResponse'
description: 'Budgets retrieved successfully'
Expand Down Expand Up @@ -36223,7 +36270,7 @@ paths:
- 'Workspaces'
x-speakeasy-name-override: 'deleteBudget'
put:
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.'
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.'
operationId: 'upsertWorkspaceBudget'
parameters:
- description: 'The workspace ID (UUID) or slug'
Expand All @@ -36246,6 +36293,7 @@ paths:
content:
application/json:
example:
include_byok_in_budgets: true
limit_usd: 100
schema:
$ref: '#/components/schemas/UpsertWorkspaceBudgetRequest'
Expand All @@ -36262,6 +36310,7 @@ paths:
reset_interval: 'monthly'
updated_at: '2025-08-24T15:45:00Z'
workspace_id: '550e8400-e29b-41d4-a716-446655440000'
include_byok_in_budgets: true
schema:
$ref: '#/components/schemas/UpsertWorkspaceBudgetResponse'
description: 'Budget created or updated successfully'
Expand Down
Loading