You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .speakeasy/in.openapi.yaml
+54-1Lines changed: 54 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4516,6 +4516,7 @@ components:
4516
4516
allowed_models: null
4517
4517
allowed_user_ids: null
4518
4518
created_at: '2025-08-24T10:30:00Z'
4519
+
declared_zdr: null
4519
4520
disabled: false
4520
4521
id: '11111111-2222-3333-4444-555555555555'
4521
4522
is_byok_only: false
@@ -4559,6 +4560,12 @@ components:
4559
4560
description: 'ISO timestamp of when the credential was created.'
4560
4561
example: '2025-08-24T10:30:00Z'
4561
4562
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'
4562
4569
disabled:
4563
4570
description: 'Whether this credential is currently disabled.'
4564
4571
example: false
@@ -4612,6 +4619,7 @@ components:
4612
4619
- 'is_fallback'
4613
4620
- 'is_required'
4614
4621
- 'is_byok_only'
4622
+
- 'declared_zdr'
4615
4623
- 'allowed_models'
4616
4624
- 'allowed_api_key_hashes'
4617
4625
- 'allowed_user_ids'
@@ -7310,6 +7318,12 @@ components:
7310
7318
type:
7311
7319
- 'array'
7312
7320
- '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'
7313
7327
disabled:
7314
7328
description: 'Whether this credential should be created in a disabled state.'
7315
7329
example: false
@@ -7356,6 +7370,7 @@ components:
7356
7370
allowed_models: null
7357
7371
allowed_user_ids: null
7358
7372
created_at: '2025-08-24T10:30:00Z'
7373
+
declared_zdr: null
7359
7374
disabled: false
7360
7375
id: '11111111-2222-3333-4444-555555555555'
7361
7376
is_byok_only: false
@@ -10446,6 +10461,7 @@ components:
10446
10461
allowed_models: null
10447
10462
allowed_user_ids: null
10448
10463
created_at: '2025-08-24T10:30:00Z'
10464
+
declared_zdr: null
10449
10465
disabled: false
10450
10466
id: '11111111-2222-3333-4444-555555555555'
10451
10467
is_byok_only: false
@@ -12741,6 +12757,25 @@ components:
12741
12757
required:
12742
12758
- 'cached_tokens'
12743
12759
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'
12744
12779
InternChatStreamError:
12745
12780
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.'
12746
12781
example:
@@ -13149,6 +13184,7 @@ components:
13149
13184
allowed_models: null
13150
13185
allowed_user_ids: null
13151
13186
created_at: '2025-08-24T10:30:00Z'
13187
+
declared_zdr: null
13152
13188
disabled: false
13153
13189
id: '11111111-2222-3333-4444-555555555555'
13154
13190
is_byok_only: false
@@ -27582,6 +27618,12 @@ components:
27582
27618
type:
27583
27619
- 'array'
27584
27620
- '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'
27585
27627
disabled:
27586
27628
description: 'Whether this credential is disabled.'
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]`.'
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.'
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`.'
36887
36940
headers:
36888
36941
Retry-After:
36889
36942
description: 'Seconds to wait before retrying this request. Present only on a `busy` refusal.'
0 commit comments