Skip to content

Commit 1501180

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1294)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent a31b2a9 commit 1501180

1 file changed

Lines changed: 47 additions & 23 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 47 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10856,7 +10856,7 @@ components:
1085610856
type: 'langfuse'
1085710857
properties:
1085810858
api_key_hashes:
10859-
description: 'Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. `null` or omitted means all keys. Must contain at least one hash if provided.'
10859+
description: 'Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. `null` or omitted means all keys. Must contain at least one hash if provided. A workspace-scoped management key can only name API keys in its own workspace; any other hash returns 400.'
1086010860
example: null
1086110861
items:
1086210862
type: 'string'
@@ -10946,7 +10946,7 @@ components:
1094610946
example: 'langfuse'
1094710947
type: 'string'
1094810948
workspace_id:
10949-
description: 'Optional workspace ID. Defaults to the authenticated entity''s default workspace.'
10949+
description: 'Optional workspace ID. Defaults to the authenticated entity''s default workspace, or a workspace-scoped management key''s own workspace.'
1095010950
example: '550e8400-e29b-41d4-a716-446655440000'
1095110951
format: 'uuid'
1095210952
type: 'string'
@@ -12604,7 +12604,7 @@ components:
1260412604
type: 'object'
1260512605
ExtractionAsset:
1260612606
additionalProperties: false
12607-
description: 'An image or PDF sent once and referenced by its key in the `assets` map. `data_base64` is the file in standard base64 with no `data:` prefix. PDF is read by document models only.'
12607+
description: 'An image or PDF sent once and referenced by its key in the `assets` map. `data_base64` is the file in standard base64 with no `data:` prefix. Which formats are read is model-specific: a format the model cannot read fails with a 400.'
1260812608
properties:
1260912609
data_base64:
1261012610
minLength: 1
@@ -12615,6 +12615,7 @@ components:
1261512615
- 'png'
1261612616
- 'jpg'
1261712617
- 'jpeg'
12618+
- 'webp'
1261812619
- 'pdf'
1261912620
type: 'string'
1262012621
type:
@@ -12646,7 +12647,7 @@ components:
1264612647
- 'document'
1264712648
type: 'string'
1264812649
span:
12649-
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.'
12650+
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. Absent for an answer that has no offsets in the state text, for example a null answer, one read from an image or a document, or one the provider returned without offsets that delimit it.'
1265012651
items:
1265112652
type: 'integer'
1265212653
maxItems: 2
@@ -12684,6 +12685,9 @@ components:
1268412685
enum:
1268512686
- 'date'
1268612687
type: 'string'
12688+
unit:
12689+
description: 'Unit label for the value.'
12690+
type: 'string'
1268712691
required:
1268812692
- 'type'
1268912693
type: 'object'
@@ -12707,7 +12711,7 @@ components:
1270712711
- 'document'
1270812712
type: 'string'
1270912713
span:
12710-
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.'
12714+
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. Absent for an answer that has no offsets in the state text, for example a null answer, one read from an image or a document, or one the provider returned without offsets that delimit it.'
1271112715
items:
1271212716
type: 'integer'
1271312717
maxItems: 2
@@ -12745,6 +12749,9 @@ components:
1274512749
enum:
1274612750
- 'datetime'
1274712751
type: 'string'
12752+
unit:
12753+
description: 'Unit label for the value.'
12754+
type: 'string'
1274812755
required:
1274912756
- 'type'
1275012757
type: 'object'
@@ -12769,7 +12776,7 @@ components:
1276912776
- 'document'
1277012777
type: 'string'
1277112778
span:
12772-
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.'
12779+
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. Absent for an answer that has no offsets in the state text, for example a null answer, one read from an image or a document, or one the provider returned without offsets that delimit it.'
1277312780
items:
1277412781
type: 'integer'
1277512782
maxItems: 2
@@ -12807,6 +12814,7 @@ components:
1280712814
description: 'What the field should contain.'
1280812815
type: 'string'
1280912816
integer:
12817+
description: 'Whole numbers only.'
1281012818
type: 'boolean'
1281112819
null_threshold:
1281212820
description: 'Probability of null above which `value` is null. Default 0.5.'
@@ -12917,7 +12925,7 @@ components:
1291712925
type: 'number'
1291812926
- type: 'string'
1291912927
null_threshold:
12920-
description: 'Probability of null above which `value` is null. Default 0.5.'
12928+
description: 'Not read on this field type: no model takes a null threshold here, and a request that sets it fails with a 400.'
1292112929
format: 'double'
1292212930
maximum: 1
1292312931
minimum: 0
@@ -12943,6 +12951,7 @@ components:
1294312951
- 'estimate'
1294412952
type: 'string'
1294512953
unit:
12954+
description: 'Unit label for the value.'
1294612955
type: 'string'
1294712956
required:
1294812957
- 'type'
@@ -13059,7 +13068,7 @@ components:
1305913068
type: 'number'
1306013069
- type: 'string'
1306113070
null_threshold:
13062-
description: 'Probability of null above which `value` is null. Default 0.5.'
13071+
description: 'Not read on this field type: no model takes a null threshold here, and a request that sets it fails with a 400.'
1306313072
format: 'double'
1306413073
maximum: 1
1306513074
minimum: 0
@@ -13085,6 +13094,7 @@ components:
1308513094
- 'forecast'
1308613095
type: 'string'
1308713096
unit:
13097+
description: 'Unit label for the value.'
1308813098
type: 'string'
1308913099
required:
1309013100
- 'type'
@@ -13171,7 +13181,7 @@ components:
1317113181
- 'document'
1317213182
type: 'string'
1317313183
spans:
13174-
description: 'One span per item of `value`, in the same order; null for an item that has no offsets in the state text (read from an image or a document).'
13184+
description: 'One span per item of `value`, in the same order; null for an item that has no offsets in the state text: one read from an image or a document, or one the provider returned without offsets that delimit it.'
1317513185
items:
1317613186
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.'
1317713187
items:
@@ -13214,6 +13224,9 @@ components:
1321413224
instructions:
1321513225
description: 'What the field should contain.'
1321613226
type: 'string'
13227+
integer:
13228+
description: 'Whole numbers only. Lists of numbers only.'
13229+
type: 'boolean'
1321713230
items:
1321813231
enum:
1321913232
- 'text'
@@ -13230,6 +13243,9 @@ components:
1323013243
enum:
1323113244
- 'list'
1323213245
type: 'string'
13246+
unit:
13247+
description: 'Unit label for the value.'
13248+
type: 'string'
1323313249
required:
1323413250
- 'type'
1323513251
- 'items'
@@ -13255,7 +13271,7 @@ components:
1325513271
- 'document'
1325613272
type: 'string'
1325713273
span:
13258-
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.'
13274+
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. Absent for an answer that has no offsets in the state text, for example a null answer, one read from an image or a document, or one the provider returned without offsets that delimit it.'
1325913275
items:
1326013276
type: 'integer'
1326113277
maxItems: 2
@@ -13290,6 +13306,7 @@ components:
1329013306
description: 'What the field should contain.'
1329113307
type: 'string'
1329213308
integer:
13309+
description: 'Whole numbers only.'
1329313310
type: 'boolean'
1329413311
null_threshold:
1329513312
description: 'Probability of null above which `value` is null. Default 0.5.'
@@ -13302,6 +13319,7 @@ components:
1330213319
- 'number'
1330313320
type: 'string'
1330413321
unit:
13322+
description: 'Unit label for the value.'
1330513323
type: 'string'
1330613324
required:
1330713325
- 'type'
@@ -13332,7 +13350,7 @@ components:
1333213350
assets:
1333313351
additionalProperties:
1333413352
$ref: '#/components/schemas/ExtractionAsset'
13335-
description: 'Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once. A `state` that is exactly the sole asset''s key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), needs that form: any other text around the key is state text and is rejected with 400.'
13353+
description: 'Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once, unless `state` is empty or omitted, in which case the assets are read without a reference. A `state` that is exactly the sole asset''s key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), takes that form or an empty or omitted `state`: any other text around the key is state text and is rejected with 400.'
1333613354
type: 'object'
1333713355
fields:
1333813356
additionalProperties:
@@ -13377,7 +13395,8 @@ components:
1337713395
maxLength: 256
1337813396
type: 'string'
1337913397
state:
13380-
description: 'The text to read from. May be empty only when the request carries image assets.'
13398+
default: ''
13399+
description: 'The text to read from. May be empty or omitted only when the request carries assets, which are then read without being referenced by key.'
1338113400
type: 'string'
1338213401
trace:
1338313402
$ref: '#/components/schemas/TraceConfig'
@@ -13386,7 +13405,6 @@ components:
1338613405
type: 'string'
1338713406
required:
1338813407
- 'model'
13389-
- 'state'
1339013408
- 'fields'
1339113409
type: 'object'
1339213410
ExtractionsResponse:
@@ -13480,7 +13498,7 @@ components:
1348013498
- 'document'
1348113499
type: 'string'
1348213500
span:
13483-
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.'
13501+
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. Absent for an answer that has no offsets in the state text, for example a null answer, one read from an image or a document, or one the provider returned without offsets that delimit it.'
1348413502
items:
1348513503
type: 'integer'
1348613504
maxItems: 2
@@ -13518,6 +13536,9 @@ components:
1351813536
enum:
1351913537
- 'text'
1352013538
type: 'string'
13539+
unit:
13540+
description: 'Unit label for the value.'
13541+
type: 'string'
1352113542
required:
1352213543
- 'type'
1352313544
type: 'object'
@@ -13541,7 +13562,7 @@ components:
1354113562
- 'document'
1354213563
type: 'string'
1354313564
span:
13544-
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.'
13565+
description: 'Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. Absent for an answer that has no offsets in the state text, for example a null answer, one read from an image or a document, or one the provider returned without offsets that delimit it.'
1354513566
items:
1354613567
type: 'integer'
1354713568
maxItems: 2
@@ -13579,6 +13600,9 @@ components:
1357913600
enum:
1358013601
- 'time'
1358113602
type: 'string'
13603+
unit:
13604+
description: 'Unit label for the value.'
13605+
type: 'string'
1358213606
required:
1358313607
- 'type'
1358413608
type: 'object'
@@ -36575,7 +36599,7 @@ components:
3657536599
name: 'Updated Langfuse'
3657636600
properties:
3657736601
api_key_hashes:
36578-
description: 'Optional allowlist of OpenRouter API key hashes. `null` clears the filter (all keys). Omitting leaves the current value. Must contain at least one hash if provided.'
36602+
description: 'Optional allowlist of OpenRouter API key hashes. `null` clears the filter (all keys). Omitting leaves the current value, including any API key from another workspace that an organization-scoped key attached. Must contain at least one hash if provided. A workspace-scoped management key can only name API keys in its own workspace; any other hash returns 400.'
3657936603
example: null
3658036604
items:
3658136605
type: 'string'
@@ -52375,7 +52399,7 @@ paths:
5237552399
- 'OAuth'
5237652400
/observability/destinations:
5237752401
get:
52378-
description: 'List the observability destinations configured for the authenticated entity''s default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
52402+
description: 'List the observability destinations configured for the authenticated entity''s default workspace, or a workspace-scoped management key''s own workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. A workspace-scoped management key can only list its own workspace; any other `workspace_id` returns 403. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
5237952403
operationId: 'listObservabilityDestinations'
5238052404
parameters:
5238152405
- description: 'Number of records to skip for pagination'
@@ -52401,12 +52425,12 @@ paths:
5240152425
maximum: 100
5240252426
minimum: 1
5240352427
type: 'integer'
52404-
- description: 'Optional workspace ID to filter by. Defaults to the authenticated entity''s default workspace.'
52428+
- description: 'Optional workspace ID to filter by. Defaults to the authenticated entity''s default workspace, or a workspace-scoped management key''s own workspace.'
5240552429
in: 'query'
5240652430
name: 'workspace_id'
5240752431
required: false
5240852432
schema:
52409-
description: 'Optional workspace ID to filter by. Defaults to the authenticated entity''s default workspace.'
52433+
description: 'Optional workspace ID to filter by. Defaults to the authenticated entity''s default workspace, or a workspace-scoped management key''s own workspace.'
5241052434
example: '550e8400-e29b-41d4-a716-446655440000'
5241152435
format: 'uuid'
5241252436
type: 'string'
@@ -52497,7 +52521,7 @@ paths:
5249752521
results: '$.data'
5249852522
type: 'offsetLimit'
5249952523
post:
52500-
description: 'Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity''s default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
52524+
description: 'Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity''s default workspace, or a workspace-scoped management key''s own workspace; use the `workspace_id` body field to scope to a different workspace. A workspace-scoped management key can only create in its own workspace; any other `workspace_id` returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
5250152525
operationId: 'createObservabilityDestination'
5250252526
requestBody:
5250352527
content:
@@ -52598,7 +52622,7 @@ paths:
5259852622
x-speakeasy-name-override: 'create'
5259952623
/observability/destinations/{id}:
5260052624
delete:
52601-
description: 'Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
52625+
description: 'Delete an existing observability destination. This performs a soft delete. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
5260252626
operationId: 'deleteObservabilityDestination'
5260352627
parameters:
5260452628
- description: 'The destination ID (UUID).'
@@ -52664,7 +52688,7 @@ paths:
5266452688
- 'Observability'
5266552689
x-speakeasy-name-override: 'delete'
5266652690
get:
52667-
description: 'Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
52691+
description: 'Fetch a single observability destination by its UUID. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
5266852692
operationId: 'getObservabilityDestination'
5266952693
parameters:
5267052694
- description: 'The destination ID (UUID).'
@@ -52751,7 +52775,7 @@ paths:
5275152775
- 'Observability'
5275252776
x-speakeasy-name-override: 'get'
5275352777
patch:
52754-
description: 'Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
52778+
description: 'Update an existing observability destination. Only the fields provided in the request body are updated. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
5275552779
operationId: 'updateObservabilityDestination'
5275652780
parameters:
5275752781
- description: 'The destination ID (UUID).'

0 commit comments

Comments
 (0)