Skip to content

Commit 3a2db10

Browse files
author
OpenRouter SDK Bot
committed
chore: update OpenAPI spec [sdk-bot]
1 parent 073eb25 commit 3a2db10

1 file changed

Lines changed: 54 additions & 1 deletion

File tree

.speakeasy/in.openapi.yaml

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4516,6 +4516,7 @@ components:
45164516
allowed_models: null
45174517
allowed_user_ids: null
45184518
created_at: '2025-08-24T10:30:00Z'
4519+
declared_zdr: null
45194520
disabled: false
45204521
id: '11111111-2222-3333-4444-555555555555'
45214522
is_byok_only: false
@@ -4559,6 +4560,12 @@ components:
45594560
description: 'ISO timestamp of when the credential was created.'
45604561
example: '2025-08-24T10:30:00Z'
45614562
type: 'string'
4563+
declared_zdr:
4564+
description: 'Your declaration of whether the upstream provider account behind this credential has zero data retention (ZDR). `null` inherits OpenRouter''s data policy for the provider''s endpoint; `true` declares the account ZDR so requests that require ZDR may route to this credential even when the shared endpoint retains data; `false` declares it non-ZDR so such requests never route to it. Self-declared and not verified by OpenRouter.'
4565+
example: null
4566+
type:
4567+
- 'boolean'
4568+
- 'null'
45624569
disabled:
45634570
description: 'Whether this credential is currently disabled.'
45644571
example: false
@@ -4612,6 +4619,7 @@ components:
46124619
- 'is_fallback'
46134620
- 'is_required'
46144621
- 'is_byok_only'
4622+
- 'declared_zdr'
46154623
- 'allowed_models'
46164624
- 'allowed_api_key_hashes'
46174625
- 'allowed_user_ids'
@@ -7310,6 +7318,12 @@ components:
73107318
type:
73117319
- 'array'
73127320
- 'null'
7321+
declared_zdr:
7322+
description: 'Your declaration of whether the upstream provider account behind this credential has zero data retention (ZDR). `null` inherits OpenRouter''s data policy for the provider''s endpoint; `true` declares the account ZDR so requests that require ZDR may route to this credential even when the shared endpoint retains data; `false` declares it non-ZDR so such requests never route to it. Self-declared and not verified by OpenRouter. Defaults to `null`.'
7323+
example: null
7324+
type:
7325+
- 'boolean'
7326+
- 'null'
73137327
disabled:
73147328
description: 'Whether this credential should be created in a disabled state.'
73157329
example: false
@@ -7356,6 +7370,7 @@ components:
73567370
allowed_models: null
73577371
allowed_user_ids: null
73587372
created_at: '2025-08-24T10:30:00Z'
7373+
declared_zdr: null
73597374
disabled: false
73607375
id: '11111111-2222-3333-4444-555555555555'
73617376
is_byok_only: false
@@ -10446,6 +10461,7 @@ components:
1044610461
allowed_models: null
1044710462
allowed_user_ids: null
1044810463
created_at: '2025-08-24T10:30:00Z'
10464+
declared_zdr: null
1044910465
disabled: false
1045010466
id: '11111111-2222-3333-4444-555555555555'
1045110467
is_byok_only: false
@@ -12741,6 +12757,25 @@ components:
1274112757
required:
1274212758
- 'cached_tokens'
1274312759
type: 'object'
12760+
InternChatSteeredResponse:
12761+
description: 'The message was delivered into the turn already running on the same session. Its effect is streamed on that turn, not here.'
12762+
example:
12763+
session_id: 'sess_01j9x0k4q7v8r2t3m6n5p8w9y1'
12764+
status: 'steered'
12765+
properties:
12766+
session_id:
12767+
description: 'The session of the running turn the message was delivered to.'
12768+
example: 'sess_01j9x0k4q7v8r2t3m6n5p8w9y1'
12769+
type: 'string'
12770+
status:
12771+
description: 'The message was handed to the turn already running on this session.'
12772+
enum:
12773+
- 'steered'
12774+
type: 'string'
12775+
required:
12776+
- 'session_id'
12777+
- 'status'
12778+
type: 'object'
1274412779
InternChatStreamError:
1274512780
description: 'A failure after the response headers were sent. The chunk that carries it has `finish_reason: "error"`, then the final empty-`choices` chunk and `[DONE]` follow. Reasons here are `attachment_failed`, `busy`, `client_closed_request`, `interaction_not_pending`, `interaction_unknown`, `intern_unreachable`, `run_ended`, `stream_severed`, `timeout` or `turn_failed`. `run_ended` reports an ending the intern confirmed, such as a cancellation or a deadline, while `stream_severed` reports a connection lost without that confirmation.'
1274612781
example:
@@ -13149,6 +13184,7 @@ components:
1314913184
allowed_models: null
1315013185
allowed_user_ids: null
1315113186
created_at: '2025-08-24T10:30:00Z'
13187+
declared_zdr: null
1315213188
disabled: false
1315313189
id: '11111111-2222-3333-4444-555555555555'
1315413190
is_byok_only: false
@@ -27582,6 +27618,12 @@ components:
2758227618
type:
2758327619
- 'array'
2758427620
- 'null'
27621+
declared_zdr:
27622+
description: 'Your declaration of whether the upstream provider account behind this credential has zero data retention (ZDR). `null` inherits OpenRouter''s data policy for the provider''s endpoint; `true` declares the account ZDR so requests that require ZDR may route to this credential even when the shared endpoint retains data; `false` declares it non-ZDR so such requests never route to it. Self-declared and not verified by OpenRouter. Omit to leave the stored value unchanged; `null` clears the declaration.'
27623+
example: null
27624+
type:
27625+
- 'boolean'
27626+
- 'null'
2758527627
disabled:
2758627628
description: 'Whether this credential is disabled.'
2758727629
example: false
@@ -27618,6 +27660,7 @@ components:
2761827660
allowed_models: null
2761927661
allowed_user_ids: null
2762027662
created_at: '2025-08-24T10:30:00Z'
27663+
declared_zdr: null
2762127664
disabled: false
2762227665
id: '11111111-2222-3333-4444-555555555555'
2762327666
is_byok_only: false
@@ -31299,6 +31342,7 @@ paths:
3129931342
allowed_models: null
3130031343
allowed_user_ids: null
3130131344
created_at: '2025-08-24T10:30:00Z'
31345+
declared_zdr: null
3130231346
disabled: false
3130331347
id: '11111111-2222-3333-4444-555555555555'
3130431348
is_byok_only: false
@@ -31381,6 +31425,7 @@ paths:
3138131425
allowed_models: null
3138231426
allowed_user_ids: null
3138331427
created_at: '2025-08-24T10:30:00Z'
31428+
declared_zdr: null
3138431429
disabled: false
3138531430
id: '11111111-2222-3333-4444-555555555555'
3138631431
is_byok_only: false
@@ -31518,6 +31563,7 @@ paths:
3151831563
allowed_models: null
3151931564
allowed_user_ids: null
3152031565
created_at: '2025-08-24T10:30:00Z'
31566+
declared_zdr: null
3152131567
disabled: false
3152231568
id: '11111111-2222-3333-4444-555555555555'
3152331569
is_byok_only: false
@@ -31597,6 +31643,7 @@ paths:
3159731643
allowed_models: null
3159831644
allowed_user_ids: null
3159931645
created_at: '2025-08-24T10:30:00Z'
31646+
declared_zdr: null
3160031647
disabled: false
3160131648
id: '11111111-2222-3333-4444-555555555555'
3160231649
is_byok_only: false
@@ -36812,6 +36859,12 @@ paths:
3681236859
$ref: '#/components/schemas/InternChatStreamingResponse'
3681336860
x-speakeasy-sse-sentinel: '[DONE]'
3681436861
description: 'The streamed completion. Chunks carry text, then a finish chunk: `finish_reason: "stop"` when the turn is complete, `finish_reason: "tool_calls"` when the intern is waiting for an answer, or `finish_reason: "error"` for a failure after this status. A final chunk with empty `choices` follows in every case, carrying `session_id` and `usage` (`null` unless the intern reported usage, and always `null` after `tool_calls`), and the stream ends with `data: [DONE]`.'
36862+
'202':
36863+
content:
36864+
application/json:
36865+
schema:
36866+
$ref: '#/components/schemas/InternChatSteeredResponse'
36867+
description: 'A turn is already running on this intern for the same `session_id`, and the message was delivered into it instead of starting a new turn. Nothing streams here: the intern takes the message up on the running turn, whose stream continues on the request that started it. Sent only for a `user` message with a `session_id`; a `tool` reply, a request without a `session_id`, or one for another session gets `409 busy`, as does a message the intern could not take.'
3681536868
'400':
3681636869
content:
3681736870
application/json:
@@ -36883,7 +36936,7 @@ paths:
3688336936
retryable: false
3688436937
schema:
3688536938
$ref: '#/components/schemas/InternChatErrorResponse'
36886-
description: 'The intern is not running (`intern_not_ready`), another turn is already running on this intern (`busy`), the question is no longer waiting (`interaction_not_pending`), or another request is already attached to the run (`attachment_failed`). The turn lock is per intern, not per session. `intern_not_ready` and `busy` report `retryable: true`, and a `busy` refusal carries `Retry-After`.'
36939+
description: 'The intern is not running (`intern_not_ready`), another turn is already running on this intern for a different session, for no session, or for a `tool` reply (`busy`), the question is no longer waiting (`interaction_not_pending`), or another request is already attached to the run (`attachment_failed`). The turn lock is per intern, not per session. `intern_not_ready` and `busy` report `retryable: true`, and a `busy` refusal carries `Retry-After`.'
3688736940
headers:
3688836941
Retry-After:
3688936942
description: 'Seconds to wait before retrying this request. Present only on a `busy` refusal.'

0 commit comments

Comments
 (0)