ruicode 0.0.0-stage → 0.67.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wire.d.ts ADDED
@@ -0,0 +1,4066 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/v1/host-info": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ get?: never;
14
+ put?: never;
15
+ /** The Host's identity, capacity and provider routes. Also the readiness probe. */
16
+ post: operations["hostInfo"];
17
+ delete?: never;
18
+ options?: never;
19
+ head?: never;
20
+ patch?: never;
21
+ trace?: never;
22
+ };
23
+ "/v1/control/host-stop": {
24
+ parameters: {
25
+ query?: never;
26
+ header?: never;
27
+ path?: never;
28
+ cookie?: never;
29
+ };
30
+ get?: never;
31
+ put?: never;
32
+ /** Stops the Host after its work drains. */
33
+ post: operations["hostStop"];
34
+ delete?: never;
35
+ options?: never;
36
+ head?: never;
37
+ patch?: never;
38
+ trace?: never;
39
+ };
40
+ "/v1/control/host-pause": {
41
+ parameters: {
42
+ query?: never;
43
+ header?: never;
44
+ path?: never;
45
+ cookie?: never;
46
+ };
47
+ get?: never;
48
+ put?: never;
49
+ /** Holds every new Turn while paused, or releases them. Running work continues. */
50
+ post: operations["hostPause"];
51
+ delete?: never;
52
+ options?: never;
53
+ head?: never;
54
+ patch?: never;
55
+ trace?: never;
56
+ };
57
+ "/v1/configure": {
58
+ parameters: {
59
+ query?: never;
60
+ header?: never;
61
+ path?: never;
62
+ cookie?: never;
63
+ };
64
+ get?: never;
65
+ put?: never;
66
+ /** Creates or reconfigures a Session. Retried by its key. */
67
+ post: operations["configure"];
68
+ delete?: never;
69
+ options?: never;
70
+ head?: never;
71
+ patch?: never;
72
+ trace?: never;
73
+ };
74
+ "/v1/message": {
75
+ parameters: {
76
+ query?: never;
77
+ header?: never;
78
+ path?: never;
79
+ cookie?: never;
80
+ };
81
+ get?: never;
82
+ put?: never;
83
+ /** Sends a Message to a Session, or creates the Session when `session` is empty. Retried by its key. Each `/name` word in the text that names a skill in the recipient's catalog appends that skill to what the model reads; the text is saved as written. Only an empty `session` carries (and requires) `configuration`; `require_model` is allowed only with it. The body starts with the client environment, `X-Rui-Environment-Bytes` long, before the JSON. */
84
+ post: operations["message"];
85
+ delete?: never;
86
+ options?: never;
87
+ head?: never;
88
+ patch?: never;
89
+ trace?: never;
90
+ };
91
+ "/v1/control/session-stop": {
92
+ parameters: {
93
+ query?: never;
94
+ header?: never;
95
+ path?: never;
96
+ cookie?: never;
97
+ };
98
+ get?: never;
99
+ put?: never;
100
+ /** Stops a Session's current and queued work. Retried by its key. */
101
+ post: operations["sessionStop"];
102
+ delete?: never;
103
+ options?: never;
104
+ head?: never;
105
+ patch?: never;
106
+ trace?: never;
107
+ };
108
+ "/v1/control/session-archive": {
109
+ parameters: {
110
+ query?: never;
111
+ header?: never;
112
+ path?: never;
113
+ cookie?: never;
114
+ };
115
+ get?: never;
116
+ put?: never;
117
+ /** Archives or restores a Session. Archiving stops current and queued work. Retried by its key. */
118
+ post: operations["sessionArchive"];
119
+ delete?: never;
120
+ options?: never;
121
+ head?: never;
122
+ patch?: never;
123
+ trace?: never;
124
+ };
125
+ "/v1/control/model-interruption": {
126
+ parameters: {
127
+ query?: never;
128
+ header?: never;
129
+ path?: never;
130
+ cookie?: never;
131
+ };
132
+ get?: never;
133
+ put?: never;
134
+ /** Interrupts one model Operation. Retried by its key. */
135
+ post: operations["modelInterruption"];
136
+ delete?: never;
137
+ options?: never;
138
+ head?: never;
139
+ patch?: never;
140
+ trace?: never;
141
+ };
142
+ "/v1/control/permission-decision": {
143
+ parameters: {
144
+ query?: never;
145
+ header?: never;
146
+ path?: never;
147
+ cookie?: never;
148
+ };
149
+ get?: never;
150
+ put?: never;
151
+ /** Allows or denies one Action that waits for permission. Retried by its key. */
152
+ post: operations["permissionDecision"];
153
+ delete?: never;
154
+ options?: never;
155
+ head?: never;
156
+ patch?: never;
157
+ trace?: never;
158
+ };
159
+ "/v1/observe-command": {
160
+ parameters: {
161
+ query?: never;
162
+ header?: never;
163
+ path?: never;
164
+ cookie?: never;
165
+ };
166
+ get?: never;
167
+ put?: never;
168
+ /** What became of the command sent with this key. */
169
+ post: operations["observeCommand"];
170
+ delete?: never;
171
+ options?: never;
172
+ head?: never;
173
+ patch?: never;
174
+ trace?: never;
175
+ };
176
+ "/v1/read-result": {
177
+ parameters: {
178
+ query?: never;
179
+ header?: never;
180
+ path?: never;
181
+ cookie?: never;
182
+ };
183
+ get?: never;
184
+ put?: never;
185
+ /** The answer text of the Message sent with this key. */
186
+ post: operations["readResult"];
187
+ delete?: never;
188
+ options?: never;
189
+ head?: never;
190
+ patch?: never;
191
+ trace?: never;
192
+ };
193
+ "/v1/read-action-call-id": {
194
+ parameters: {
195
+ query?: never;
196
+ header?: never;
197
+ path?: never;
198
+ cookie?: never;
199
+ };
200
+ get?: never;
201
+ put?: never;
202
+ /** The provider's call id of one Action. */
203
+ post: operations["readActionCallId"];
204
+ delete?: never;
205
+ options?: never;
206
+ head?: never;
207
+ patch?: never;
208
+ trace?: never;
209
+ };
210
+ "/v1/read-action-arguments": {
211
+ parameters: {
212
+ query?: never;
213
+ header?: never;
214
+ path?: never;
215
+ cookie?: never;
216
+ };
217
+ get?: never;
218
+ put?: never;
219
+ /** The arguments of one Action. */
220
+ post: operations["readActionArguments"];
221
+ delete?: never;
222
+ options?: never;
223
+ head?: never;
224
+ patch?: never;
225
+ trace?: never;
226
+ };
227
+ "/v1/inspect-session": {
228
+ parameters: {
229
+ query?: never;
230
+ header?: never;
231
+ path?: never;
232
+ cookie?: never;
233
+ };
234
+ get?: never;
235
+ put?: never;
236
+ /** A Session's report, or one failed provider response. */
237
+ post: operations["inspectSession"];
238
+ delete?: never;
239
+ options?: never;
240
+ head?: never;
241
+ patch?: never;
242
+ trace?: never;
243
+ };
244
+ "/v1/list-sessions": {
245
+ parameters: {
246
+ query?: never;
247
+ header?: never;
248
+ path?: never;
249
+ cookie?: never;
250
+ };
251
+ get?: never;
252
+ put?: never;
253
+ /** One page of Sessions, newest first, or what changed since a token. `through` and `after_reference` appear together, only with `since`; token reads start with zero `after` and `ceiling`. */
254
+ post: operations["listSessions"];
255
+ delete?: never;
256
+ options?: never;
257
+ head?: never;
258
+ patch?: never;
259
+ trace?: never;
260
+ };
261
+ "/v1/conversation-page": {
262
+ parameters: {
263
+ query?: never;
264
+ header?: never;
265
+ path?: never;
266
+ cookie?: never;
267
+ };
268
+ get?: never;
269
+ put?: never;
270
+ /** One page of a Session's conversation, newest first. */
271
+ post: operations["conversationPage"];
272
+ delete?: never;
273
+ options?: never;
274
+ head?: never;
275
+ patch?: never;
276
+ trace?: never;
277
+ };
278
+ "/v1/conversation-content": {
279
+ parameters: {
280
+ query?: never;
281
+ header?: never;
282
+ path?: never;
283
+ cookie?: never;
284
+ };
285
+ get?: never;
286
+ put?: never;
287
+ /** The content of one conversation item. */
288
+ post: operations["conversationContent"];
289
+ delete?: never;
290
+ options?: never;
291
+ head?: never;
292
+ patch?: never;
293
+ trace?: never;
294
+ };
295
+ "/v1/activity-search": {
296
+ parameters: {
297
+ query?: never;
298
+ header?: never;
299
+ path?: never;
300
+ cookie?: never;
301
+ };
302
+ get?: never;
303
+ put?: never;
304
+ /** Search public Session activity newest first with bounded snippets. */
305
+ post: operations["activitySearch"];
306
+ delete?: never;
307
+ options?: never;
308
+ head?: never;
309
+ patch?: never;
310
+ trace?: never;
311
+ };
312
+ "/v1/activity-page": {
313
+ parameters: {
314
+ query?: never;
315
+ header?: never;
316
+ path?: never;
317
+ cookie?: never;
318
+ };
319
+ get?: never;
320
+ put?: never;
321
+ /** One page of a Session's activity feed, with its work and queue at the page's boundary. */
322
+ post: operations["activityPage"];
323
+ delete?: never;
324
+ options?: never;
325
+ head?: never;
326
+ patch?: never;
327
+ trace?: never;
328
+ };
329
+ "/v1/activity-content": {
330
+ parameters: {
331
+ query?: never;
332
+ header?: never;
333
+ path?: never;
334
+ cookie?: never;
335
+ };
336
+ get?: never;
337
+ put?: never;
338
+ /** The content of one activity row. */
339
+ post: operations["activityContent"];
340
+ delete?: never;
341
+ options?: never;
342
+ head?: never;
343
+ patch?: never;
344
+ trace?: never;
345
+ };
346
+ "/v1/skill-suggestions": {
347
+ parameters: {
348
+ query?: never;
349
+ header?: never;
350
+ path?: never;
351
+ cookie?: never;
352
+ };
353
+ get?: never;
354
+ put?: never;
355
+ /** Bounded skill metadata from a Session catalog or prospective Workspace discovery. */
356
+ post: operations["skillSuggestions"];
357
+ delete?: never;
358
+ options?: never;
359
+ head?: never;
360
+ patch?: never;
361
+ trace?: never;
362
+ };
363
+ "/v1/model-list": {
364
+ parameters: {
365
+ query?: never;
366
+ header?: never;
367
+ path?: never;
368
+ cookie?: never;
369
+ };
370
+ get?: never;
371
+ put?: never;
372
+ /** The models each served provider offers. */
373
+ post: operations["modelList"];
374
+ delete?: never;
375
+ options?: never;
376
+ head?: never;
377
+ patch?: never;
378
+ trace?: never;
379
+ };
380
+ }
381
+ export type webhooks = Record<string, never>;
382
+ export interface components {
383
+ schemas: {
384
+ ActivityContentRequest: {
385
+ /** @constant */
386
+ version: "13";
387
+ /** @constant */
388
+ kind: "activity_content";
389
+ store: string;
390
+ session: string;
391
+ position: components["schemas"]["Decimal"];
392
+ ordinal: components["schemas"]["Decimal"];
393
+ };
394
+ ActivityItem: {
395
+ position: components["schemas"]["Decimal"];
396
+ ordinal: components["schemas"]["Decimal"];
397
+ at: components["schemas"]["Decimal"];
398
+ value: {
399
+ admission: {
400
+ admission: components["schemas"]["Decimal"];
401
+ key: string;
402
+ turn: components["schemas"]["Decimal"] | null;
403
+ /** @enum {string} */
404
+ state: "queued" | "applied" | "excluded";
405
+ admitted_at: components["schemas"]["Decimal"];
406
+ sender: components["schemas"]["NamedPeer"] | null;
407
+ content: components["schemas"]["ActivityItemContent"];
408
+ };
409
+ };
410
+ } | {
411
+ position: components["schemas"]["Decimal"];
412
+ ordinal: components["schemas"]["Decimal"];
413
+ at: components["schemas"]["Decimal"];
414
+ value: {
415
+ user: {
416
+ admission: components["schemas"]["Decimal"];
417
+ key: string;
418
+ turn: components["schemas"]["Decimal"] | null;
419
+ /** @enum {string} */
420
+ state: "queued" | "applied" | "excluded";
421
+ admitted_at: components["schemas"]["Decimal"];
422
+ sender: components["schemas"]["NamedPeer"] | null;
423
+ content: components["schemas"]["ActivityItemContent"];
424
+ };
425
+ };
426
+ } | {
427
+ position: components["schemas"]["Decimal"];
428
+ ordinal: components["schemas"]["Decimal"];
429
+ at: components["schemas"]["Decimal"];
430
+ value: {
431
+ assistant: {
432
+ content: components["schemas"]["ActivityItemContent"];
433
+ final: boolean;
434
+ };
435
+ };
436
+ } | {
437
+ position: components["schemas"]["Decimal"];
438
+ ordinal: components["schemas"]["Decimal"];
439
+ at: components["schemas"]["Decimal"];
440
+ value: {
441
+ call: {
442
+ operation: components["schemas"]["Decimal"];
443
+ turn: components["schemas"]["Decimal"];
444
+ call_ordinal: components["schemas"]["Decimal"];
445
+ action: components["schemas"]["Decimal"] | null;
446
+ /** @enum {unknown} */
447
+ rejection: "unknown_tool" | "invalid_arguments" | null;
448
+ fields: [
449
+ components["schemas"]["ActivityItemContent"],
450
+ components["schemas"]["ActivityItemContent"],
451
+ components["schemas"]["ActivityItemContent"]
452
+ ];
453
+ };
454
+ };
455
+ } | {
456
+ position: components["schemas"]["Decimal"];
457
+ ordinal: components["schemas"]["Decimal"];
458
+ at: components["schemas"]["Decimal"];
459
+ value: {
460
+ tool_result: {
461
+ content: components["schemas"]["ActivityItemContent"];
462
+ presentation: components["schemas"]["ToolPresentation"];
463
+ };
464
+ };
465
+ } | {
466
+ position: components["schemas"]["Decimal"];
467
+ ordinal: components["schemas"]["Decimal"];
468
+ at: components["schemas"]["Decimal"];
469
+ value: {
470
+ hosted_call: {
471
+ presentation: components["schemas"]["ToolPresentation"];
472
+ };
473
+ };
474
+ } | {
475
+ position: components["schemas"]["Decimal"];
476
+ ordinal: components["schemas"]["Decimal"];
477
+ at: components["schemas"]["Decimal"];
478
+ value: {
479
+ turn_ended: {
480
+ session: string;
481
+ turn: components["schemas"]["Decimal"];
482
+ operation: components["schemas"]["Decimal"];
483
+ /** @enum {string} */
484
+ ending: "done" | "context_full" | "provider_refused" | "provider_unavailable" | "stopped" | "interrupted" | "failed";
485
+ code: string;
486
+ content: components["schemas"]["ActivityItemContent"] | null;
487
+ };
488
+ };
489
+ } | {
490
+ position: components["schemas"]["Decimal"];
491
+ ordinal: components["schemas"]["Decimal"];
492
+ at: components["schemas"]["Decimal"];
493
+ value: {
494
+ stop: {
495
+ key: string;
496
+ turn: components["schemas"]["Decimal"] | null;
497
+ cutoff: components["schemas"]["Decimal"];
498
+ /** @enum {string} */
499
+ completion: "pending" | "completed";
500
+ };
501
+ };
502
+ } | {
503
+ position: components["schemas"]["Decimal"];
504
+ ordinal: components["schemas"]["Decimal"];
505
+ at: components["schemas"]["Decimal"];
506
+ value: {
507
+ sent: {
508
+ admission: components["schemas"]["Decimal"];
509
+ admitted_at: components["schemas"]["Decimal"];
510
+ target: components["schemas"]["NamedPeer"];
511
+ content: components["schemas"]["ActivityItemContent"];
512
+ };
513
+ };
514
+ } | {
515
+ position: components["schemas"]["Decimal"];
516
+ ordinal: components["schemas"]["Decimal"];
517
+ at: components["schemas"]["Decimal"];
518
+ value: {
519
+ send_failed: {
520
+ key: string;
521
+ target: components["schemas"]["NamedPeer"] | null;
522
+ code: string;
523
+ };
524
+ };
525
+ } | {
526
+ position: components["schemas"]["Decimal"];
527
+ ordinal: components["schemas"]["Decimal"];
528
+ at: components["schemas"]["Decimal"];
529
+ value: {
530
+ received: {
531
+ admission: components["schemas"]["Decimal"];
532
+ key: string;
533
+ turn: components["schemas"]["Decimal"] | null;
534
+ /** @enum {string} */
535
+ state: "queued" | "applied" | "excluded";
536
+ admitted_at: components["schemas"]["Decimal"];
537
+ sender: components["schemas"]["NamedPeer"] | null;
538
+ content: components["schemas"]["ActivityItemContent"];
539
+ };
540
+ };
541
+ } | {
542
+ position: components["schemas"]["Decimal"];
543
+ ordinal: components["schemas"]["Decimal"];
544
+ at: components["schemas"]["Decimal"];
545
+ value: {
546
+ approval_requested: {
547
+ session: string;
548
+ action: components["schemas"]["Decimal"];
549
+ operation: components["schemas"]["Decimal"];
550
+ call_ordinal: components["schemas"]["Decimal"];
551
+ };
552
+ };
553
+ } | {
554
+ position: components["schemas"]["Decimal"];
555
+ ordinal: components["schemas"]["Decimal"];
556
+ at: components["schemas"]["Decimal"];
557
+ value: {
558
+ session_changed: {
559
+ revision: components["schemas"]["Decimal"];
560
+ /** @enum {string} */
561
+ field: "provider" | "model" | "instructions" | "tools" | "loaded_tools" | "permission_mode" | "output_schema" | "compaction_trigger" | "output_reservation" | "reasoning_effort" | "label" | "reasoning_effort_refused";
562
+ provider_text: string | null;
563
+ };
564
+ };
565
+ } | {
566
+ position: components["schemas"]["Decimal"];
567
+ ordinal: components["schemas"]["Decimal"];
568
+ at: components["schemas"]["Decimal"];
569
+ value: {
570
+ compacted: {
571
+ operation: components["schemas"]["Decimal"];
572
+ dropped: components["schemas"]["Decimal"];
573
+ };
574
+ };
575
+ };
576
+ ActivityItemContent: {
577
+ bytes: components["schemas"]["Decimal"];
578
+ sha256: string;
579
+ };
580
+ ActivityPageReply: {
581
+ /** @constant */
582
+ version: "13";
583
+ /** @constant */
584
+ type: "activity_page";
585
+ end: components["schemas"]["Decimal"];
586
+ /** @enum {string} */
587
+ direction: "forward" | "backward";
588
+ items: components["schemas"]["ActivityItem"][];
589
+ more: boolean;
590
+ call_activity: components["schemas"]["CallActivity"];
591
+ queued: components["schemas"]["Queued"];
592
+ work: components["schemas"]["PageWork"];
593
+ /** @constant */
594
+ delta: "full";
595
+ since: string | null;
596
+ } | {
597
+ /** @constant */
598
+ version: "13";
599
+ /** @constant */
600
+ type: "activity_page";
601
+ /** @constant */
602
+ delta: "not_modified";
603
+ since: string;
604
+ };
605
+ ActivityPageRequest: {
606
+ /** @constant */
607
+ version: "13";
608
+ /** @constant */
609
+ kind: "activity_page";
610
+ store: string;
611
+ session: string;
612
+ end: components["schemas"]["Decimal"] | null;
613
+ position: components["schemas"]["Decimal"];
614
+ ordinal: components["schemas"]["Decimal"] | null;
615
+ /** @enum {string} */
616
+ direction: "forward" | "backward";
617
+ /** @description Each at most once, in the order the enum lists them. */
618
+ kinds: ("admission" | "user" | "assistant" | "call" | "tool_result" | "hosted_call" | "turn_ended" | "stop" | "sent" | "send_failed" | "received" | "approval_requested" | "session_changed" | "compacted")[];
619
+ limit: components["schemas"]["Decimal"];
620
+ since?: string | null;
621
+ };
622
+ ActivitySearchFactsCursor: {
623
+ position: components["schemas"]["Decimal"];
624
+ ordinal: components["schemas"]["Decimal"];
625
+ };
626
+ ActivitySearchFactsHit: {
627
+ snippet: string;
628
+ offset: components["schemas"]["Decimal"];
629
+ length: components["schemas"]["Decimal"];
630
+ };
631
+ ActivitySearchItem: {
632
+ position: components["schemas"]["Decimal"];
633
+ ordinal: components["schemas"]["Decimal"];
634
+ /** @enum {string} */
635
+ kind: "admission" | "user" | "assistant" | "call" | "tool_result" | "hosted_call" | "turn_ended" | "stop" | "sent" | "send_failed" | "received" | "approval_requested" | "session_changed" | "compacted";
636
+ hits: components["schemas"]["ActivitySearchFactsHit"][];
637
+ };
638
+ ActivitySearchReply: {
639
+ /** @constant */
640
+ version: "13";
641
+ /** @constant */
642
+ type: "activity_search";
643
+ items: components["schemas"]["ActivitySearchItem"][];
644
+ next: components["schemas"]["ActivitySearchFactsCursor"] | null;
645
+ };
646
+ ActivitySearchRequest: {
647
+ /** @constant */
648
+ version: "13";
649
+ /** @constant */
650
+ kind: "activity_search";
651
+ store: string;
652
+ session: string;
653
+ query: string;
654
+ /** @description Each at most once, in the order the enum lists them. */
655
+ kinds?: ("admission" | "user" | "assistant" | "call" | "tool_result" | "hosted_call" | "turn_ended" | "stop" | "sent" | "send_failed" | "received" | "approval_requested" | "session_changed" | "compacted")[];
656
+ before_position?: components["schemas"]["Decimal"] | null;
657
+ before_ordinal?: components["schemas"]["Decimal"] | null;
658
+ limit?: components["schemas"]["Decimal"];
659
+ };
660
+ AgentSpec: {
661
+ model: string;
662
+ instructions?: string;
663
+ tools: string[];
664
+ loadedTools?: string[];
665
+ /** @enum {string} */
666
+ permissionMode: "ask" | "bypass";
667
+ /** @description Optional JSON output schema object; null clears it. */
668
+ outputSchema?: Record<string, never> | null;
669
+ compactAt: number | null;
670
+ outputReservation?: number | null;
671
+ /** @enum {string|null} */
672
+ effort: null | "none" | "low" | "medium" | "high" | "xhigh" | "max";
673
+ label?: string | null;
674
+ /** @enum {string} */
675
+ provider?: "codex" | "openai";
676
+ workspace?: string;
677
+ };
678
+ CallActivity: {
679
+ total: components["schemas"]["Decimal"];
680
+ entries: {
681
+ operation: components["schemas"]["Decimal"];
682
+ ordinal: components["schemas"]["Decimal"];
683
+ presentation: components["schemas"]["ToolPresentation"];
684
+ }[];
685
+ };
686
+ Configuration: {
687
+ workspace?: string;
688
+ provider?: string;
689
+ model?: string;
690
+ /** @description Text of any length, saved as content. */
691
+ instructions?: string;
692
+ /** @description None repeated; the names' bytes total at most x-rui-max-bytes. Each must be a tool the Host offers. */
693
+ tools?: string[];
694
+ /** @description None repeated; the names' bytes total at most x-rui-max-bytes. Each must be a tool the Host offers. */
695
+ loadedTools?: string[];
696
+ permissionMode?: string;
697
+ outputSchema?: {
698
+ [key: string]: unknown;
699
+ } | null;
700
+ compactAt?: number | null;
701
+ outputReservation?: number | null;
702
+ effort?: string | null;
703
+ label?: string | null;
704
+ parent?: string;
705
+ };
706
+ ConfigureConflictReply: {
707
+ /** @constant */
708
+ version: "13";
709
+ /** @constant */
710
+ type: "configuration_reply";
711
+ answer: {
712
+ /** @constant */
713
+ status: "conflict";
714
+ /** @constant */
715
+ replayed: false;
716
+ session: string;
717
+ /** @constant */
718
+ code: "idempotency_key_conflict";
719
+ };
720
+ execution: {
721
+ /** @constant */
722
+ status: "unavailable";
723
+ /** @constant */
724
+ reason: "direct_reply_does_not_wait_for_model_processing";
725
+ };
726
+ };
727
+ ConfigureReply: {
728
+ /** @constant */
729
+ version: "13";
730
+ /** @constant */
731
+ type: "configuration_reply";
732
+ answer: {
733
+ /** @constant */
734
+ status: "accepted";
735
+ replayed: boolean;
736
+ session: string;
737
+ revision: components["schemas"]["Decimal"];
738
+ created: boolean;
739
+ };
740
+ execution: {
741
+ /** @constant */
742
+ status: "unavailable";
743
+ /** @constant */
744
+ reason: "direct_reply_does_not_wait_for_model_processing";
745
+ };
746
+ } | {
747
+ /** @constant */
748
+ version: "13";
749
+ /** @constant */
750
+ type: "configuration_reply";
751
+ answer: {
752
+ /** @constant */
753
+ status: "accepted";
754
+ replayed: boolean;
755
+ session: string;
756
+ revision: components["schemas"]["Decimal"];
757
+ /** @constant */
758
+ created: false;
759
+ /** @enum {string} */
760
+ skills: "reloaded" | "unchanged";
761
+ };
762
+ execution: {
763
+ /** @constant */
764
+ status: "unavailable";
765
+ /** @constant */
766
+ reason: "direct_reply_does_not_wait_for_model_processing";
767
+ };
768
+ } | {
769
+ /** @constant */
770
+ version: "13";
771
+ /** @constant */
772
+ type: "configuration_reply";
773
+ answer: {
774
+ /** @constant */
775
+ status: "rejected";
776
+ replayed: boolean;
777
+ session: string;
778
+ /** @enum {string} */
779
+ code: "invalid_session_reference" | "unknown_session" | "unsupported_permission_mode" | "unsupported_provider" | "invalid_model" | "model_capability_unavailable" | "invalid_output_schema" | "invalid_compaction_trigger" | "compact_at_too_large" | "invalid_output_reservation" | "unsupported_reasoning_effort" | "unknown_tool" | "mcp_server_unavailable" | "provider_tool_missing" | "loaded_tools_not_in_tools" | "loaded_tools_unreachable" | "invalid_label" | "incomplete_initial_configuration" | "unknown_preset" | "preset_on_update" | "parent_on_update" | "parent_provider_forbidden" | "parent_workspace_forbidden" | "tools_not_in_parent" | "permission_mode_wider_than_parent" | "invalid_workspace" | "workspace_is_immutable" | "provider_is_immutable" | "model_is_immutable" | "revision_exhausted" | "skills_unavailable";
780
+ message: string | null;
781
+ };
782
+ execution: {
783
+ /** @constant */
784
+ status: "unavailable";
785
+ /** @constant */
786
+ reason: "direct_reply_does_not_wait_for_model_processing";
787
+ };
788
+ };
789
+ ConfigureRequest: {
790
+ /** @constant */
791
+ version: "13";
792
+ /** @constant */
793
+ kind: "configure";
794
+ store: string;
795
+ key: string;
796
+ session: string;
797
+ configuration: components["schemas"]["Configuration"];
798
+ /** @constant */
799
+ reload_skills?: true;
800
+ /** @constant */
801
+ require_model?: true;
802
+ preset?: string;
803
+ };
804
+ ConversationContentRequest: {
805
+ /** @constant */
806
+ version: "13";
807
+ /** @constant */
808
+ kind: "conversation_content";
809
+ store: string;
810
+ session: string;
811
+ position: components["schemas"]["Decimal"];
812
+ ordinal: components["schemas"]["Decimal"];
813
+ /** @constant */
814
+ start: "0";
815
+ /** @constant */
816
+ stream?: true;
817
+ };
818
+ ConversationPageReply: {
819
+ /** @constant */
820
+ version: "13";
821
+ /** @constant */
822
+ type: "conversation_page";
823
+ /** @constant */
824
+ direction: "newest_first";
825
+ end: components["schemas"]["Decimal"];
826
+ items: ({
827
+ position: components["schemas"]["Decimal"];
828
+ ordinal: components["schemas"]["Decimal"];
829
+ /** @constant */
830
+ kind: "user";
831
+ content: {
832
+ bytes: components["schemas"]["Decimal"];
833
+ sha256: string;
834
+ /** @constant */
835
+ display: "omitted";
836
+ };
837
+ } | {
838
+ position: components["schemas"]["Decimal"];
839
+ ordinal: components["schemas"]["Decimal"];
840
+ /** @constant */
841
+ kind: "user";
842
+ content: {
843
+ bytes: components["schemas"]["Decimal"];
844
+ sha256: string;
845
+ /** @constant */
846
+ display: "omitted";
847
+ };
848
+ admitted_at: components["schemas"]["Decimal"];
849
+ sender: components["schemas"]["NamedPeer"] | null;
850
+ } | {
851
+ position: components["schemas"]["Decimal"];
852
+ ordinal: components["schemas"]["Decimal"];
853
+ /** @constant */
854
+ kind: "assistant";
855
+ content: {
856
+ bytes: components["schemas"]["Decimal"];
857
+ sha256: string;
858
+ /** @constant */
859
+ display: "omitted";
860
+ };
861
+ } | {
862
+ position: components["schemas"]["Decimal"];
863
+ ordinal: components["schemas"]["Decimal"];
864
+ /** @constant */
865
+ kind: "tool_result";
866
+ content: {
867
+ bytes: components["schemas"]["Decimal"];
868
+ sha256: string;
869
+ /** @constant */
870
+ display: "omitted";
871
+ };
872
+ } | {
873
+ position: components["schemas"]["Decimal"];
874
+ ordinal: components["schemas"]["Decimal"];
875
+ /** @constant */
876
+ kind: "tool_result";
877
+ content: {
878
+ bytes: components["schemas"]["Decimal"];
879
+ sha256: string;
880
+ /** @constant */
881
+ display: "omitted";
882
+ };
883
+ presentation: components["schemas"]["ToolPresentation"];
884
+ } | {
885
+ position: components["schemas"]["Decimal"];
886
+ ordinal: components["schemas"]["Decimal"];
887
+ /** @constant */
888
+ kind: "hosted_call";
889
+ } | {
890
+ position: components["schemas"]["Decimal"];
891
+ ordinal: components["schemas"]["Decimal"];
892
+ /** @constant */
893
+ kind: "hosted_call";
894
+ presentation: components["schemas"]["ToolPresentation"];
895
+ })[];
896
+ /** @constant */
897
+ more: false;
898
+ } | {
899
+ /** @constant */
900
+ version: "13";
901
+ /** @constant */
902
+ type: "conversation_page";
903
+ /** @constant */
904
+ direction: "newest_first";
905
+ end: components["schemas"]["Decimal"];
906
+ items: ({
907
+ position: components["schemas"]["Decimal"];
908
+ ordinal: components["schemas"]["Decimal"];
909
+ /** @constant */
910
+ kind: "user";
911
+ content: {
912
+ bytes: components["schemas"]["Decimal"];
913
+ sha256: string;
914
+ /** @constant */
915
+ display: "omitted";
916
+ };
917
+ } | {
918
+ position: components["schemas"]["Decimal"];
919
+ ordinal: components["schemas"]["Decimal"];
920
+ /** @constant */
921
+ kind: "user";
922
+ content: {
923
+ bytes: components["schemas"]["Decimal"];
924
+ sha256: string;
925
+ /** @constant */
926
+ display: "omitted";
927
+ };
928
+ admitted_at: components["schemas"]["Decimal"];
929
+ sender: components["schemas"]["NamedPeer"] | null;
930
+ } | {
931
+ position: components["schemas"]["Decimal"];
932
+ ordinal: components["schemas"]["Decimal"];
933
+ /** @constant */
934
+ kind: "assistant";
935
+ content: {
936
+ bytes: components["schemas"]["Decimal"];
937
+ sha256: string;
938
+ /** @constant */
939
+ display: "omitted";
940
+ };
941
+ } | {
942
+ position: components["schemas"]["Decimal"];
943
+ ordinal: components["schemas"]["Decimal"];
944
+ /** @constant */
945
+ kind: "tool_result";
946
+ content: {
947
+ bytes: components["schemas"]["Decimal"];
948
+ sha256: string;
949
+ /** @constant */
950
+ display: "omitted";
951
+ };
952
+ } | {
953
+ position: components["schemas"]["Decimal"];
954
+ ordinal: components["schemas"]["Decimal"];
955
+ /** @constant */
956
+ kind: "tool_result";
957
+ content: {
958
+ bytes: components["schemas"]["Decimal"];
959
+ sha256: string;
960
+ /** @constant */
961
+ display: "omitted";
962
+ };
963
+ presentation: components["schemas"]["ToolPresentation"];
964
+ } | {
965
+ position: components["schemas"]["Decimal"];
966
+ ordinal: components["schemas"]["Decimal"];
967
+ /** @constant */
968
+ kind: "hosted_call";
969
+ } | {
970
+ position: components["schemas"]["Decimal"];
971
+ ordinal: components["schemas"]["Decimal"];
972
+ /** @constant */
973
+ kind: "hosted_call";
974
+ presentation: components["schemas"]["ToolPresentation"];
975
+ })[];
976
+ /** @constant */
977
+ more: true;
978
+ before_position: components["schemas"]["Decimal"];
979
+ before_ordinal: components["schemas"]["Decimal"];
980
+ };
981
+ ConversationPageRequest: {
982
+ /** @constant */
983
+ version: "13";
984
+ /** @constant */
985
+ kind: "conversation_page";
986
+ store: string;
987
+ session: string;
988
+ end: components["schemas"]["Decimal"];
989
+ before_position: components["schemas"]["Decimal"];
990
+ before_ordinal: components["schemas"]["Decimal"];
991
+ };
992
+ /** @description An unsigned 64-bit integer in decimal. */
993
+ Decimal: string;
994
+ ErrorReply: {
995
+ /** @constant */
996
+ version: "13";
997
+ /** @enum {string} */
998
+ type: "invocation_error" | "observation_error" | "busy" | "unsupported" | "host_unavailable" | "result_unavailable" | "action_unavailable" | "conversation_unavailable" | "activity_unavailable" | "failed_response_unavailable";
999
+ code: string;
1000
+ };
1001
+ FirstMessage: {
1002
+ position: components["schemas"]["Decimal"];
1003
+ admission: components["schemas"]["Decimal"];
1004
+ admitted_at: components["schemas"]["Decimal"];
1005
+ sender: components["schemas"]["Peer"] | null;
1006
+ content: components["schemas"]["ActivityItemContent"];
1007
+ };
1008
+ HostInfoReply: {
1009
+ /** @constant */
1010
+ version: "13";
1011
+ /** @constant */
1012
+ type: "host_info";
1013
+ store: string;
1014
+ instance: string;
1015
+ active_capacity: components["schemas"]["Decimal"];
1016
+ intake_capacity: components["schemas"]["Decimal"];
1017
+ descriptor_limit: string;
1018
+ started_at: components["schemas"]["Decimal"];
1019
+ custody_occupied: components["schemas"]["Decimal"];
1020
+ paused: boolean;
1021
+ innodb_doublewrite?: string;
1022
+ capabilities: {
1023
+ /** @constant */
1024
+ bash: true;
1025
+ providers: {
1026
+ /** @enum {string} */
1027
+ codex: "unserved" | "endpoint" | "chatgpt_device" | "key_file";
1028
+ /** @enum {string} */
1029
+ openai: "unserved" | "endpoint" | "chatgpt_device" | "key_file";
1030
+ };
1031
+ };
1032
+ };
1033
+ HostInfoRequest: {
1034
+ /** @constant */
1035
+ version: "13";
1036
+ /** @constant */
1037
+ kind: "host_info";
1038
+ store: string;
1039
+ };
1040
+ HostPauseReply: {
1041
+ /** @constant */
1042
+ version: "13";
1043
+ /** @constant */
1044
+ type: "host_pause_reply";
1045
+ paused: boolean;
1046
+ };
1047
+ HostPauseRequest: {
1048
+ /** @constant */
1049
+ version: "13";
1050
+ /** @constant */
1051
+ kind: "host_pause";
1052
+ store: string;
1053
+ paused: boolean;
1054
+ };
1055
+ HostStopReply: {
1056
+ /** @constant */
1057
+ version: "13";
1058
+ /** @constant */
1059
+ type: "host_stop_reply";
1060
+ /** @constant */
1061
+ status: "acknowledged";
1062
+ };
1063
+ HostStopRequest: {
1064
+ /** @constant */
1065
+ version: "13";
1066
+ /** @constant */
1067
+ kind: "host_stop";
1068
+ store: string;
1069
+ };
1070
+ InspectSessionReply: {
1071
+ /** @constant */
1072
+ version: "13";
1073
+ /** @constant */
1074
+ type: "session_report";
1075
+ /** @constant */
1076
+ delta: "full";
1077
+ since: null;
1078
+ /** @constant */
1079
+ profile: "current";
1080
+ session: components["schemas"]["domainreportCurrentJsonSettings"];
1081
+ /** @enum {string} */
1082
+ archive_state: "active" | "archiving" | "archived";
1083
+ pending_messages: components["schemas"]["Decimal"];
1084
+ work: components["schemas"]["domainreportCurrentJsonWork"];
1085
+ peers: components["schemas"]["PeerFacts"];
1086
+ first_message: components["schemas"]["FirstMessage"] | null;
1087
+ selected_message: string | null;
1088
+ recent_messages: components["schemas"]["domainreportCurrentJsonRecent"][];
1089
+ actions: components["schemas"]["domainreportCurrentJsonActions"];
1090
+ rejected_calls: components["schemas"]["domainreportCurrentJsonRejectedCalls"];
1091
+ actionable_permissions: components["schemas"]["domainreportCurrentJsonActionable"][];
1092
+ execution: components["schemas"]["domainreportExecutionJson"];
1093
+ } | {
1094
+ /** @constant */
1095
+ version: "13";
1096
+ /** @constant */
1097
+ type: "session_report";
1098
+ /** @constant */
1099
+ profile: "full";
1100
+ session: components["schemas"]["domainreportCurrentJsonSettings"];
1101
+ /** @enum {string} */
1102
+ archive_state: "active" | "archiving" | "archived";
1103
+ pending_messages: components["schemas"]["Decimal"];
1104
+ work: components["schemas"]["domainreportCurrentJsonWork"];
1105
+ peers: components["schemas"]["PeerFacts"];
1106
+ first_message: components["schemas"]["FirstMessage"] | null;
1107
+ selected_message: string | null;
1108
+ recent_messages: components["schemas"]["domainreportCurrentJsonRecent"][];
1109
+ actions: components["schemas"]["domainreportCurrentJsonActions"];
1110
+ rejected_calls: components["schemas"]["domainreportCurrentJsonRejectedCalls"];
1111
+ actionable_permissions: components["schemas"]["domainreportCurrentJsonActionable"][];
1112
+ full: components["schemas"]["domainreport_full_shapeFull"];
1113
+ execution: components["schemas"]["domainreportExecutionJson"];
1114
+ } | {
1115
+ /** @constant */
1116
+ version: "13";
1117
+ /** @constant */
1118
+ type: "session_report";
1119
+ /** @constant */
1120
+ delta: "full";
1121
+ since: null;
1122
+ /** @constant */
1123
+ profile: "current";
1124
+ session: null;
1125
+ /** @constant */
1126
+ pending_messages: "0";
1127
+ execution: {
1128
+ /** @constant */
1129
+ status: "unavailable";
1130
+ /** @constant */
1131
+ reason: "session_not_found";
1132
+ };
1133
+ } | {
1134
+ /** @constant */
1135
+ version: "13";
1136
+ /** @constant */
1137
+ type: "session_report";
1138
+ /** @constant */
1139
+ profile: "full";
1140
+ session: null;
1141
+ /** @constant */
1142
+ pending_messages: "0";
1143
+ execution: {
1144
+ /** @constant */
1145
+ status: "unavailable";
1146
+ /** @constant */
1147
+ reason: "session_not_found";
1148
+ };
1149
+ };
1150
+ InspectSessionRequest: {
1151
+ /** @constant */
1152
+ version: "13";
1153
+ /** @constant */
1154
+ kind: "inspect_session";
1155
+ store: string;
1156
+ session: string;
1157
+ since?: string | null;
1158
+ } | {
1159
+ /** @constant */
1160
+ version: "13";
1161
+ /** @constant */
1162
+ kind: "inspect_session";
1163
+ store: string;
1164
+ session: string;
1165
+ /** @constant */
1166
+ profile: "full";
1167
+ } | {
1168
+ /** @constant */
1169
+ version: "13";
1170
+ /** @constant */
1171
+ kind: "inspect_session";
1172
+ store: string;
1173
+ session: string;
1174
+ /** @enum {string} */
1175
+ failed_response: "body" | "metadata";
1176
+ operation: components["schemas"]["Decimal"];
1177
+ attempt: components["schemas"]["Decimal"];
1178
+ };
1179
+ LastLineFields: {
1180
+ position: components["schemas"]["Decimal"];
1181
+ text: string | null;
1182
+ };
1183
+ LaunchFrame: {
1184
+ /** @constant */
1185
+ v: 1;
1186
+ store: string;
1187
+ provider: {
1188
+ /** @constant */
1189
+ kind: "openai_key";
1190
+ baseUrl: string;
1191
+ key: string;
1192
+ caFile?: string | null;
1193
+ };
1194
+ runtimeDir: string;
1195
+ activeCapacity?: number | null;
1196
+ paused?: boolean;
1197
+ presets?: {
1198
+ [key: string]: components["schemas"]["AgentSpec"];
1199
+ };
1200
+ mcpServers?: {
1201
+ name: string;
1202
+ url: string;
1203
+ bearerToken: string;
1204
+ callTimeoutMs?: number;
1205
+ }[];
1206
+ };
1207
+ ListSessionsReply: {
1208
+ /** @constant */
1209
+ version: "13";
1210
+ /** @constant */
1211
+ type: "session_list";
1212
+ sessions: components["schemas"]["SessionRow"][];
1213
+ /** @enum {string} */
1214
+ delta: "not_modified" | "changed" | "full";
1215
+ since: string;
1216
+ next: {
1217
+ after: components["schemas"]["Decimal"];
1218
+ ceiling: components["schemas"]["Decimal"];
1219
+ };
1220
+ } | {
1221
+ /** @constant */
1222
+ version: "13";
1223
+ /** @constant */
1224
+ type: "session_list";
1225
+ sessions: components["schemas"]["SessionRow"][];
1226
+ /** @enum {string} */
1227
+ delta: "not_modified" | "changed" | "full";
1228
+ since: string;
1229
+ next: {
1230
+ through: components["schemas"]["Decimal"];
1231
+ after_reference: string;
1232
+ };
1233
+ } | {
1234
+ /** @constant */
1235
+ version: "13";
1236
+ /** @constant */
1237
+ type: "session_list";
1238
+ sessions: components["schemas"]["SessionRow"][];
1239
+ /** @enum {string} */
1240
+ delta: "not_modified" | "changed" | "full";
1241
+ since: string;
1242
+ next: null;
1243
+ };
1244
+ ListSessionsRequest: {
1245
+ /** @constant */
1246
+ version: "13";
1247
+ /** @constant */
1248
+ kind: "list_sessions";
1249
+ store: string;
1250
+ workspace: string | null;
1251
+ /** @enum {string} */
1252
+ archive?: "active" | "archived" | "all";
1253
+ after: components["schemas"]["Decimal"];
1254
+ ceiling: components["schemas"]["Decimal"];
1255
+ since?: string;
1256
+ through?: components["schemas"]["Decimal"];
1257
+ after_reference?: string;
1258
+ };
1259
+ MessageConflictReply: {
1260
+ /** @constant */
1261
+ version: "13";
1262
+ /** @constant */
1263
+ type: "message_reply";
1264
+ answer: {
1265
+ /** @constant */
1266
+ status: "conflict";
1267
+ /** @constant */
1268
+ replayed: false;
1269
+ session: string;
1270
+ /** @constant */
1271
+ code: "idempotency_key_conflict";
1272
+ };
1273
+ execution: {
1274
+ /** @constant */
1275
+ status: "queued";
1276
+ };
1277
+ };
1278
+ MessageRecoveryJson: {
1279
+ unknown_outcomes: {
1280
+ action: components["schemas"]["Decimal"];
1281
+ operation: components["schemas"]["Decimal"];
1282
+ call: components["schemas"]["Decimal"];
1283
+ description: string | null;
1284
+ at: components["schemas"]["Decimal"];
1285
+ }[];
1286
+ more: boolean;
1287
+ };
1288
+ MessageReply: {
1289
+ /** @constant */
1290
+ version: "13";
1291
+ /** @constant */
1292
+ type: "message_reply";
1293
+ answer: {
1294
+ /** @constant */
1295
+ status: "accepted";
1296
+ replayed: boolean;
1297
+ session: string;
1298
+ admission: components["schemas"]["Decimal"];
1299
+ };
1300
+ input: {
1301
+ /** @constant */
1302
+ type: "text";
1303
+ bytes: components["schemas"]["Decimal"];
1304
+ sha256: string;
1305
+ };
1306
+ queue: {
1307
+ /** @constant */
1308
+ status: "queued";
1309
+ admission: components["schemas"]["Decimal"];
1310
+ };
1311
+ execution: {
1312
+ /** @constant */
1313
+ status: "queued";
1314
+ };
1315
+ } | {
1316
+ /** @constant */
1317
+ version: "13";
1318
+ /** @constant */
1319
+ type: "message_reply";
1320
+ answer: {
1321
+ /** @constant */
1322
+ status: "rejected";
1323
+ replayed: boolean;
1324
+ session: string;
1325
+ /** @enum {string} */
1326
+ code: "session_archiving" | "invalid_session_reference" | "unknown_session" | "invalid_sender_handle" | "unsupported_permission_mode" | "unsupported_provider" | "invalid_model" | "model_capability_unavailable" | "invalid_output_schema" | "invalid_compaction_trigger" | "compact_at_too_large" | "invalid_output_reservation" | "unsupported_reasoning_effort" | "unknown_tool" | "mcp_server_unavailable" | "provider_tool_missing" | "loaded_tools_not_in_tools" | "loaded_tools_unreachable" | "invalid_label" | "incomplete_initial_configuration" | "unknown_preset" | "preset_on_update" | "parent_on_update" | "parent_provider_forbidden" | "parent_workspace_forbidden" | "tools_not_in_parent" | "permission_mode_wider_than_parent" | "invalid_workspace" | "workspace_is_immutable" | "provider_is_immutable" | "model_is_immutable" | "revision_exhausted" | "skills_unavailable" | "skill_file_unavailable" | "skill_file_too_large" | "skill_text_invalid";
1327
+ message: string | null;
1328
+ };
1329
+ input: {
1330
+ /** @constant */
1331
+ type: "text";
1332
+ bytes: components["schemas"]["Decimal"];
1333
+ sha256: string;
1334
+ };
1335
+ execution: {
1336
+ /** @constant */
1337
+ status: "queued";
1338
+ };
1339
+ };
1340
+ MessageRequest: {
1341
+ /** @constant */
1342
+ version: "13";
1343
+ /** @constant */
1344
+ kind: "message";
1345
+ store: string;
1346
+ key: string;
1347
+ session: string;
1348
+ sender: {
1349
+ store: string;
1350
+ session: string;
1351
+ } | null;
1352
+ sender_handle: string | null;
1353
+ configuration?: components["schemas"]["Configuration"];
1354
+ text: {
1355
+ /** @constant */
1356
+ state: "value";
1357
+ /** @description Text of any length, saved as content. */
1358
+ value: string;
1359
+ };
1360
+ /** @constant */
1361
+ require_model?: true;
1362
+ };
1363
+ ModelInterruptionConflictReply: {
1364
+ /** @constant */
1365
+ version: "13";
1366
+ /** @constant */
1367
+ type: "model_interruption_reply";
1368
+ answer: {
1369
+ /** @constant */
1370
+ status: "conflict";
1371
+ /** @constant */
1372
+ replayed: false;
1373
+ target: {
1374
+ session: string;
1375
+ turn: components["schemas"]["Decimal"];
1376
+ operation: components["schemas"]["Decimal"];
1377
+ };
1378
+ /** @constant */
1379
+ code: "idempotency_key_conflict";
1380
+ };
1381
+ };
1382
+ ModelInterruptionReply: {
1383
+ /** @constant */
1384
+ version: "13";
1385
+ /** @constant */
1386
+ type: "model_interruption_reply";
1387
+ answer: {
1388
+ /** @constant */
1389
+ status: "accepted";
1390
+ replayed: boolean;
1391
+ target: {
1392
+ session: string;
1393
+ turn: components["schemas"]["Decimal"];
1394
+ operation: components["schemas"]["Decimal"];
1395
+ };
1396
+ };
1397
+ } | {
1398
+ /** @constant */
1399
+ version: "13";
1400
+ /** @constant */
1401
+ type: "model_interruption_reply";
1402
+ answer: {
1403
+ /** @constant */
1404
+ status: "rejected";
1405
+ replayed: boolean;
1406
+ target: {
1407
+ session: string;
1408
+ turn: components["schemas"]["Decimal"];
1409
+ operation: components["schemas"]["Decimal"];
1410
+ };
1411
+ /** @enum {string} */
1412
+ code: "invalid_session_reference" | "invalid_target" | "unknown_session" | "unknown_operation" | "target_mismatch" | "operation_resolved";
1413
+ };
1414
+ };
1415
+ ModelInterruptionRequest: {
1416
+ /** @constant */
1417
+ version: "13";
1418
+ /** @constant */
1419
+ kind: "model_interruption";
1420
+ store: string;
1421
+ key: string;
1422
+ target: {
1423
+ session: string;
1424
+ turn: components["schemas"]["Decimal"];
1425
+ operation: components["schemas"]["Decimal"];
1426
+ };
1427
+ };
1428
+ ModelListEntry: {
1429
+ /** @enum {string} */
1430
+ provider: "codex" | "openai";
1431
+ /** @enum {string} */
1432
+ source: "catalog" | "pending" | "catalog_fallback" | "live";
1433
+ models: {
1434
+ id: string;
1435
+ known: boolean;
1436
+ }[];
1437
+ };
1438
+ ModelListReply: {
1439
+ /** @constant */
1440
+ version: "13";
1441
+ /** @constant */
1442
+ type: "model_list";
1443
+ providers: components["schemas"]["ModelListEntry"][];
1444
+ };
1445
+ ModelListRequest: {
1446
+ /** @constant */
1447
+ version: "13";
1448
+ /** @constant */
1449
+ kind: "model_list";
1450
+ store: string;
1451
+ };
1452
+ NamedPeer: {
1453
+ session: string;
1454
+ label: string | null;
1455
+ };
1456
+ ObserveCommandReply: {
1457
+ /** @constant */
1458
+ version: "13";
1459
+ /** @constant */
1460
+ type: "command_observation";
1461
+ key: string;
1462
+ /** @constant */
1463
+ delta: "full";
1464
+ since: null;
1465
+ observation: {
1466
+ /** @constant */
1467
+ status: "absent";
1468
+ };
1469
+ } | {
1470
+ /** @constant */
1471
+ version: "13";
1472
+ /** @constant */
1473
+ type: "command_observation";
1474
+ key: string;
1475
+ /** @constant */
1476
+ delta: "full";
1477
+ since: string | null;
1478
+ observation: {
1479
+ /** @enum {string} */
1480
+ status: "absent" | "accepted" | "rejected";
1481
+ /** @constant */
1482
+ kind: "configure";
1483
+ target: string;
1484
+ } | {
1485
+ /** @enum {string} */
1486
+ status: "absent" | "accepted" | "rejected";
1487
+ /** @constant */
1488
+ kind: "configure";
1489
+ target: string;
1490
+ code: string;
1491
+ } | {
1492
+ /** @enum {string} */
1493
+ status: "absent" | "accepted" | "rejected";
1494
+ /** @constant */
1495
+ kind: "configure";
1496
+ target: string;
1497
+ revision: components["schemas"]["Decimal"];
1498
+ created: boolean;
1499
+ } | {
1500
+ /** @enum {string} */
1501
+ status: "absent" | "accepted" | "rejected";
1502
+ /** @constant */
1503
+ kind: "configure";
1504
+ target: string;
1505
+ code: string;
1506
+ revision: components["schemas"]["Decimal"];
1507
+ created: boolean;
1508
+ };
1509
+ } | {
1510
+ /** @constant */
1511
+ version: "13";
1512
+ /** @constant */
1513
+ type: "command_observation";
1514
+ key: string;
1515
+ /** @constant */
1516
+ delta: "full";
1517
+ since: string | null;
1518
+ observation: {
1519
+ /** @enum {string} */
1520
+ status: "absent" | "accepted" | "rejected";
1521
+ /** @constant */
1522
+ kind: "message";
1523
+ target: string;
1524
+ /** @constant */
1525
+ state: "rejected";
1526
+ } | {
1527
+ /** @enum {string} */
1528
+ status: "absent" | "accepted" | "rejected";
1529
+ /** @constant */
1530
+ kind: "message";
1531
+ target: string;
1532
+ code: string;
1533
+ /** @constant */
1534
+ state: "rejected";
1535
+ } | {
1536
+ /** @enum {string} */
1537
+ status: "absent" | "accepted" | "rejected";
1538
+ /** @constant */
1539
+ kind: "message";
1540
+ target: string;
1541
+ /** @constant */
1542
+ state: "rejected";
1543
+ input: {
1544
+ /** @constant */
1545
+ type: "text";
1546
+ bytes: components["schemas"]["Decimal"];
1547
+ sha256: string;
1548
+ };
1549
+ } | {
1550
+ /** @enum {string} */
1551
+ status: "absent" | "accepted" | "rejected";
1552
+ /** @constant */
1553
+ kind: "message";
1554
+ target: string;
1555
+ code: string;
1556
+ /** @constant */
1557
+ state: "rejected";
1558
+ input: {
1559
+ /** @constant */
1560
+ type: "text";
1561
+ bytes: components["schemas"]["Decimal"];
1562
+ sha256: string;
1563
+ };
1564
+ } | {
1565
+ /** @enum {string} */
1566
+ status: "absent" | "accepted" | "rejected";
1567
+ /** @constant */
1568
+ kind: "message";
1569
+ target: string;
1570
+ /** @constant */
1571
+ state: "queued";
1572
+ input: {
1573
+ /** @constant */
1574
+ type: "text";
1575
+ bytes: components["schemas"]["Decimal"];
1576
+ sha256: string;
1577
+ };
1578
+ queue: {
1579
+ admission: components["schemas"]["Decimal"];
1580
+ admitted_at: components["schemas"]["Decimal"];
1581
+ };
1582
+ work: {
1583
+ state: components["schemas"]["WorkStateJson"];
1584
+ first_action: components["schemas"]["Decimal"] | null;
1585
+ };
1586
+ } | {
1587
+ /** @enum {string} */
1588
+ status: "absent" | "accepted" | "rejected";
1589
+ /** @constant */
1590
+ kind: "message";
1591
+ target: string;
1592
+ code: string;
1593
+ /** @constant */
1594
+ state: "queued";
1595
+ input: {
1596
+ /** @constant */
1597
+ type: "text";
1598
+ bytes: components["schemas"]["Decimal"];
1599
+ sha256: string;
1600
+ };
1601
+ queue: {
1602
+ admission: components["schemas"]["Decimal"];
1603
+ admitted_at: components["schemas"]["Decimal"];
1604
+ };
1605
+ work: {
1606
+ state: components["schemas"]["WorkStateJson"];
1607
+ first_action: components["schemas"]["Decimal"] | null;
1608
+ };
1609
+ } | {
1610
+ /** @enum {string} */
1611
+ status: "absent" | "accepted" | "rejected";
1612
+ /** @constant */
1613
+ kind: "message";
1614
+ target: string;
1615
+ /** @constant */
1616
+ state: "processing";
1617
+ input: {
1618
+ /** @constant */
1619
+ type: "text";
1620
+ bytes: components["schemas"]["Decimal"];
1621
+ sha256: string;
1622
+ };
1623
+ queue: {
1624
+ admission: components["schemas"]["Decimal"];
1625
+ admitted_at: components["schemas"]["Decimal"];
1626
+ };
1627
+ binding: {
1628
+ turn: components["schemas"]["Decimal"];
1629
+ operation: components["schemas"]["Decimal"];
1630
+ attempt: components["schemas"]["Decimal"];
1631
+ };
1632
+ work: {
1633
+ state: components["schemas"]["WorkStateJson"];
1634
+ first_action: components["schemas"]["Decimal"] | null;
1635
+ };
1636
+ } | {
1637
+ /** @enum {string} */
1638
+ status: "absent" | "accepted" | "rejected";
1639
+ /** @constant */
1640
+ kind: "message";
1641
+ target: string;
1642
+ code: string;
1643
+ /** @constant */
1644
+ state: "processing";
1645
+ input: {
1646
+ /** @constant */
1647
+ type: "text";
1648
+ bytes: components["schemas"]["Decimal"];
1649
+ sha256: string;
1650
+ };
1651
+ queue: {
1652
+ admission: components["schemas"]["Decimal"];
1653
+ admitted_at: components["schemas"]["Decimal"];
1654
+ };
1655
+ binding: {
1656
+ turn: components["schemas"]["Decimal"];
1657
+ operation: components["schemas"]["Decimal"];
1658
+ attempt: components["schemas"]["Decimal"];
1659
+ };
1660
+ work: {
1661
+ state: components["schemas"]["WorkStateJson"];
1662
+ first_action: components["schemas"]["Decimal"] | null;
1663
+ };
1664
+ } | {
1665
+ /** @enum {string} */
1666
+ status: "absent" | "accepted" | "rejected";
1667
+ /** @constant */
1668
+ kind: "message";
1669
+ target: string;
1670
+ /** @constant */
1671
+ state: "processing";
1672
+ input: {
1673
+ /** @constant */
1674
+ type: "text";
1675
+ bytes: components["schemas"]["Decimal"];
1676
+ sha256: string;
1677
+ };
1678
+ queue: {
1679
+ admission: components["schemas"]["Decimal"];
1680
+ admitted_at: components["schemas"]["Decimal"];
1681
+ };
1682
+ binding: {
1683
+ turn: components["schemas"]["Decimal"];
1684
+ operation: components["schemas"]["Decimal"];
1685
+ attempt: components["schemas"]["Decimal"];
1686
+ };
1687
+ work: {
1688
+ state: components["schemas"]["WorkStateJson"];
1689
+ first_action: components["schemas"]["Decimal"] | null;
1690
+ };
1691
+ recovery: components["schemas"]["MessageRecoveryJson"];
1692
+ } | {
1693
+ /** @enum {string} */
1694
+ status: "absent" | "accepted" | "rejected";
1695
+ /** @constant */
1696
+ kind: "message";
1697
+ target: string;
1698
+ code: string;
1699
+ /** @constant */
1700
+ state: "processing";
1701
+ input: {
1702
+ /** @constant */
1703
+ type: "text";
1704
+ bytes: components["schemas"]["Decimal"];
1705
+ sha256: string;
1706
+ };
1707
+ queue: {
1708
+ admission: components["schemas"]["Decimal"];
1709
+ admitted_at: components["schemas"]["Decimal"];
1710
+ };
1711
+ binding: {
1712
+ turn: components["schemas"]["Decimal"];
1713
+ operation: components["schemas"]["Decimal"];
1714
+ attempt: components["schemas"]["Decimal"];
1715
+ };
1716
+ work: {
1717
+ state: components["schemas"]["WorkStateJson"];
1718
+ first_action: components["schemas"]["Decimal"] | null;
1719
+ };
1720
+ recovery: components["schemas"]["MessageRecoveryJson"];
1721
+ } | {
1722
+ /** @enum {string} */
1723
+ status: "absent" | "accepted" | "rejected";
1724
+ /** @constant */
1725
+ kind: "message";
1726
+ target: string;
1727
+ /** @constant */
1728
+ state: "waiting_for_permission";
1729
+ input: {
1730
+ /** @constant */
1731
+ type: "text";
1732
+ bytes: components["schemas"]["Decimal"];
1733
+ sha256: string;
1734
+ };
1735
+ queue: {
1736
+ admission: components["schemas"]["Decimal"];
1737
+ admitted_at: components["schemas"]["Decimal"];
1738
+ };
1739
+ work: {
1740
+ state: {
1741
+ /** @constant */
1742
+ kind: "approval";
1743
+ since: components["schemas"]["Decimal"];
1744
+ };
1745
+ first_action: components["schemas"]["Decimal"] | null;
1746
+ };
1747
+ } | {
1748
+ /** @enum {string} */
1749
+ status: "absent" | "accepted" | "rejected";
1750
+ /** @constant */
1751
+ kind: "message";
1752
+ target: string;
1753
+ code: string;
1754
+ /** @constant */
1755
+ state: "waiting_for_permission";
1756
+ input: {
1757
+ /** @constant */
1758
+ type: "text";
1759
+ bytes: components["schemas"]["Decimal"];
1760
+ sha256: string;
1761
+ };
1762
+ queue: {
1763
+ admission: components["schemas"]["Decimal"];
1764
+ admitted_at: components["schemas"]["Decimal"];
1765
+ };
1766
+ work: {
1767
+ state: {
1768
+ /** @constant */
1769
+ kind: "approval";
1770
+ since: components["schemas"]["Decimal"];
1771
+ };
1772
+ first_action: components["schemas"]["Decimal"] | null;
1773
+ };
1774
+ } | {
1775
+ /** @enum {string} */
1776
+ status: "absent" | "accepted" | "rejected";
1777
+ /** @constant */
1778
+ kind: "message";
1779
+ target: string;
1780
+ /** @constant */
1781
+ state: "waiting_for_permission";
1782
+ input: {
1783
+ /** @constant */
1784
+ type: "text";
1785
+ bytes: components["schemas"]["Decimal"];
1786
+ sha256: string;
1787
+ };
1788
+ queue: {
1789
+ admission: components["schemas"]["Decimal"];
1790
+ admitted_at: components["schemas"]["Decimal"];
1791
+ };
1792
+ binding: {
1793
+ turn: components["schemas"]["Decimal"];
1794
+ operation: components["schemas"]["Decimal"];
1795
+ attempt: components["schemas"]["Decimal"];
1796
+ };
1797
+ work: {
1798
+ state: {
1799
+ /** @constant */
1800
+ kind: "approval";
1801
+ since: components["schemas"]["Decimal"];
1802
+ };
1803
+ first_action: components["schemas"]["Decimal"] | null;
1804
+ };
1805
+ } | {
1806
+ /** @enum {string} */
1807
+ status: "absent" | "accepted" | "rejected";
1808
+ /** @constant */
1809
+ kind: "message";
1810
+ target: string;
1811
+ code: string;
1812
+ /** @constant */
1813
+ state: "waiting_for_permission";
1814
+ input: {
1815
+ /** @constant */
1816
+ type: "text";
1817
+ bytes: components["schemas"]["Decimal"];
1818
+ sha256: string;
1819
+ };
1820
+ queue: {
1821
+ admission: components["schemas"]["Decimal"];
1822
+ admitted_at: components["schemas"]["Decimal"];
1823
+ };
1824
+ binding: {
1825
+ turn: components["schemas"]["Decimal"];
1826
+ operation: components["schemas"]["Decimal"];
1827
+ attempt: components["schemas"]["Decimal"];
1828
+ };
1829
+ work: {
1830
+ state: {
1831
+ /** @constant */
1832
+ kind: "approval";
1833
+ since: components["schemas"]["Decimal"];
1834
+ };
1835
+ first_action: components["schemas"]["Decimal"] | null;
1836
+ };
1837
+ } | {
1838
+ /** @enum {string} */
1839
+ status: "absent" | "accepted" | "rejected";
1840
+ /** @constant */
1841
+ kind: "message";
1842
+ target: string;
1843
+ /** @constant */
1844
+ state: "waiting_for_permission";
1845
+ input: {
1846
+ /** @constant */
1847
+ type: "text";
1848
+ bytes: components["schemas"]["Decimal"];
1849
+ sha256: string;
1850
+ };
1851
+ queue: {
1852
+ admission: components["schemas"]["Decimal"];
1853
+ admitted_at: components["schemas"]["Decimal"];
1854
+ };
1855
+ binding: {
1856
+ turn: components["schemas"]["Decimal"];
1857
+ operation: components["schemas"]["Decimal"];
1858
+ attempt: components["schemas"]["Decimal"];
1859
+ };
1860
+ work: {
1861
+ state: {
1862
+ /** @constant */
1863
+ kind: "approval";
1864
+ since: components["schemas"]["Decimal"];
1865
+ };
1866
+ first_action: components["schemas"]["Decimal"] | null;
1867
+ };
1868
+ recovery: components["schemas"]["MessageRecoveryJson"];
1869
+ } | {
1870
+ /** @enum {string} */
1871
+ status: "absent" | "accepted" | "rejected";
1872
+ /** @constant */
1873
+ kind: "message";
1874
+ target: string;
1875
+ code: string;
1876
+ /** @constant */
1877
+ state: "waiting_for_permission";
1878
+ input: {
1879
+ /** @constant */
1880
+ type: "text";
1881
+ bytes: components["schemas"]["Decimal"];
1882
+ sha256: string;
1883
+ };
1884
+ queue: {
1885
+ admission: components["schemas"]["Decimal"];
1886
+ admitted_at: components["schemas"]["Decimal"];
1887
+ };
1888
+ binding: {
1889
+ turn: components["schemas"]["Decimal"];
1890
+ operation: components["schemas"]["Decimal"];
1891
+ attempt: components["schemas"]["Decimal"];
1892
+ };
1893
+ work: {
1894
+ state: {
1895
+ /** @constant */
1896
+ kind: "approval";
1897
+ since: components["schemas"]["Decimal"];
1898
+ };
1899
+ first_action: components["schemas"]["Decimal"] | null;
1900
+ };
1901
+ recovery: components["schemas"]["MessageRecoveryJson"];
1902
+ } | {
1903
+ /** @enum {string} */
1904
+ status: "absent" | "accepted" | "rejected";
1905
+ /** @constant */
1906
+ kind: "message";
1907
+ target: string;
1908
+ /** @constant */
1909
+ state: "cancelled";
1910
+ input: {
1911
+ /** @constant */
1912
+ type: "text";
1913
+ bytes: components["schemas"]["Decimal"];
1914
+ sha256: string;
1915
+ };
1916
+ queue: {
1917
+ admission: components["schemas"]["Decimal"];
1918
+ admitted_at: components["schemas"]["Decimal"];
1919
+ };
1920
+ result: {
1921
+ /** @constant */
1922
+ status: "cancelled";
1923
+ code: string;
1924
+ };
1925
+ } | {
1926
+ /** @enum {string} */
1927
+ status: "absent" | "accepted" | "rejected";
1928
+ /** @constant */
1929
+ kind: "message";
1930
+ target: string;
1931
+ code: string;
1932
+ /** @constant */
1933
+ state: "cancelled";
1934
+ input: {
1935
+ /** @constant */
1936
+ type: "text";
1937
+ bytes: components["schemas"]["Decimal"];
1938
+ sha256: string;
1939
+ };
1940
+ queue: {
1941
+ admission: components["schemas"]["Decimal"];
1942
+ admitted_at: components["schemas"]["Decimal"];
1943
+ };
1944
+ result: {
1945
+ /** @constant */
1946
+ status: "cancelled";
1947
+ code: string;
1948
+ };
1949
+ } | {
1950
+ /** @enum {string} */
1951
+ status: "absent" | "accepted" | "rejected";
1952
+ /** @constant */
1953
+ kind: "message";
1954
+ target: string;
1955
+ /** @constant */
1956
+ state: "completed";
1957
+ input: {
1958
+ /** @constant */
1959
+ type: "text";
1960
+ bytes: components["schemas"]["Decimal"];
1961
+ sha256: string;
1962
+ };
1963
+ queue: {
1964
+ admission: components["schemas"]["Decimal"];
1965
+ admitted_at: components["schemas"]["Decimal"];
1966
+ };
1967
+ binding: {
1968
+ turn: components["schemas"]["Decimal"];
1969
+ operation: components["schemas"]["Decimal"];
1970
+ attempt: components["schemas"]["Decimal"];
1971
+ };
1972
+ result: {
1973
+ /** @constant */
1974
+ status: "completed";
1975
+ text: {
1976
+ /** @constant */
1977
+ type: "text";
1978
+ bytes: components["schemas"]["Decimal"];
1979
+ sha256: string;
1980
+ };
1981
+ };
1982
+ } | {
1983
+ /** @enum {string} */
1984
+ status: "absent" | "accepted" | "rejected";
1985
+ /** @constant */
1986
+ kind: "message";
1987
+ target: string;
1988
+ code: string;
1989
+ /** @constant */
1990
+ state: "completed";
1991
+ input: {
1992
+ /** @constant */
1993
+ type: "text";
1994
+ bytes: components["schemas"]["Decimal"];
1995
+ sha256: string;
1996
+ };
1997
+ queue: {
1998
+ admission: components["schemas"]["Decimal"];
1999
+ admitted_at: components["schemas"]["Decimal"];
2000
+ };
2001
+ binding: {
2002
+ turn: components["schemas"]["Decimal"];
2003
+ operation: components["schemas"]["Decimal"];
2004
+ attempt: components["schemas"]["Decimal"];
2005
+ };
2006
+ result: {
2007
+ /** @constant */
2008
+ status: "completed";
2009
+ text: {
2010
+ /** @constant */
2011
+ type: "text";
2012
+ bytes: components["schemas"]["Decimal"];
2013
+ sha256: string;
2014
+ };
2015
+ };
2016
+ } | {
2017
+ /** @enum {string} */
2018
+ status: "absent" | "accepted" | "rejected";
2019
+ /** @constant */
2020
+ kind: "message";
2021
+ target: string;
2022
+ /** @constant */
2023
+ state: "completed";
2024
+ input: {
2025
+ /** @constant */
2026
+ type: "text";
2027
+ bytes: components["schemas"]["Decimal"];
2028
+ sha256: string;
2029
+ };
2030
+ queue: {
2031
+ admission: components["schemas"]["Decimal"];
2032
+ admitted_at: components["schemas"]["Decimal"];
2033
+ };
2034
+ binding: {
2035
+ turn: components["schemas"]["Decimal"];
2036
+ operation: components["schemas"]["Decimal"];
2037
+ attempt: components["schemas"]["Decimal"];
2038
+ };
2039
+ result: {
2040
+ /** @constant */
2041
+ status: "completed";
2042
+ text: {
2043
+ /** @constant */
2044
+ type: "text";
2045
+ bytes: components["schemas"]["Decimal"];
2046
+ sha256: string;
2047
+ };
2048
+ };
2049
+ recovery: components["schemas"]["MessageRecoveryJson"];
2050
+ } | {
2051
+ /** @enum {string} */
2052
+ status: "absent" | "accepted" | "rejected";
2053
+ /** @constant */
2054
+ kind: "message";
2055
+ target: string;
2056
+ code: string;
2057
+ /** @constant */
2058
+ state: "completed";
2059
+ input: {
2060
+ /** @constant */
2061
+ type: "text";
2062
+ bytes: components["schemas"]["Decimal"];
2063
+ sha256: string;
2064
+ };
2065
+ queue: {
2066
+ admission: components["schemas"]["Decimal"];
2067
+ admitted_at: components["schemas"]["Decimal"];
2068
+ };
2069
+ binding: {
2070
+ turn: components["schemas"]["Decimal"];
2071
+ operation: components["schemas"]["Decimal"];
2072
+ attempt: components["schemas"]["Decimal"];
2073
+ };
2074
+ result: {
2075
+ /** @constant */
2076
+ status: "completed";
2077
+ text: {
2078
+ /** @constant */
2079
+ type: "text";
2080
+ bytes: components["schemas"]["Decimal"];
2081
+ sha256: string;
2082
+ };
2083
+ };
2084
+ recovery: components["schemas"]["MessageRecoveryJson"];
2085
+ } | {
2086
+ /** @enum {string} */
2087
+ status: "absent" | "accepted" | "rejected";
2088
+ /** @constant */
2089
+ kind: "message";
2090
+ target: string;
2091
+ /** @constant */
2092
+ state: "cancelled";
2093
+ input: {
2094
+ /** @constant */
2095
+ type: "text";
2096
+ bytes: components["schemas"]["Decimal"];
2097
+ sha256: string;
2098
+ };
2099
+ queue: {
2100
+ admission: components["schemas"]["Decimal"];
2101
+ admitted_at: components["schemas"]["Decimal"];
2102
+ };
2103
+ binding: {
2104
+ turn: components["schemas"]["Decimal"];
2105
+ operation: components["schemas"]["Decimal"];
2106
+ attempt: components["schemas"]["Decimal"];
2107
+ };
2108
+ result: {
2109
+ /** @constant */
2110
+ status: "cancelled";
2111
+ code: string;
2112
+ };
2113
+ } | {
2114
+ /** @enum {string} */
2115
+ status: "absent" | "accepted" | "rejected";
2116
+ /** @constant */
2117
+ kind: "message";
2118
+ target: string;
2119
+ code: string;
2120
+ /** @constant */
2121
+ state: "cancelled";
2122
+ input: {
2123
+ /** @constant */
2124
+ type: "text";
2125
+ bytes: components["schemas"]["Decimal"];
2126
+ sha256: string;
2127
+ };
2128
+ queue: {
2129
+ admission: components["schemas"]["Decimal"];
2130
+ admitted_at: components["schemas"]["Decimal"];
2131
+ };
2132
+ binding: {
2133
+ turn: components["schemas"]["Decimal"];
2134
+ operation: components["schemas"]["Decimal"];
2135
+ attempt: components["schemas"]["Decimal"];
2136
+ };
2137
+ result: {
2138
+ /** @constant */
2139
+ status: "cancelled";
2140
+ code: string;
2141
+ };
2142
+ } | {
2143
+ /** @enum {string} */
2144
+ status: "absent" | "accepted" | "rejected";
2145
+ /** @constant */
2146
+ kind: "message";
2147
+ target: string;
2148
+ /** @constant */
2149
+ state: "cancelled";
2150
+ input: {
2151
+ /** @constant */
2152
+ type: "text";
2153
+ bytes: components["schemas"]["Decimal"];
2154
+ sha256: string;
2155
+ };
2156
+ queue: {
2157
+ admission: components["schemas"]["Decimal"];
2158
+ admitted_at: components["schemas"]["Decimal"];
2159
+ };
2160
+ binding: {
2161
+ turn: components["schemas"]["Decimal"];
2162
+ operation: components["schemas"]["Decimal"];
2163
+ attempt: components["schemas"]["Decimal"];
2164
+ };
2165
+ result: {
2166
+ /** @constant */
2167
+ status: "cancelled";
2168
+ code: string;
2169
+ };
2170
+ recovery: components["schemas"]["MessageRecoveryJson"];
2171
+ } | {
2172
+ /** @enum {string} */
2173
+ status: "absent" | "accepted" | "rejected";
2174
+ /** @constant */
2175
+ kind: "message";
2176
+ target: string;
2177
+ code: string;
2178
+ /** @constant */
2179
+ state: "cancelled";
2180
+ input: {
2181
+ /** @constant */
2182
+ type: "text";
2183
+ bytes: components["schemas"]["Decimal"];
2184
+ sha256: string;
2185
+ };
2186
+ queue: {
2187
+ admission: components["schemas"]["Decimal"];
2188
+ admitted_at: components["schemas"]["Decimal"];
2189
+ };
2190
+ binding: {
2191
+ turn: components["schemas"]["Decimal"];
2192
+ operation: components["schemas"]["Decimal"];
2193
+ attempt: components["schemas"]["Decimal"];
2194
+ };
2195
+ result: {
2196
+ /** @constant */
2197
+ status: "cancelled";
2198
+ code: string;
2199
+ };
2200
+ recovery: components["schemas"]["MessageRecoveryJson"];
2201
+ } | {
2202
+ /** @enum {string} */
2203
+ status: "absent" | "accepted" | "rejected";
2204
+ /** @constant */
2205
+ kind: "message";
2206
+ target: string;
2207
+ /** @constant */
2208
+ state: "failed";
2209
+ input: {
2210
+ /** @constant */
2211
+ type: "text";
2212
+ bytes: components["schemas"]["Decimal"];
2213
+ sha256: string;
2214
+ };
2215
+ queue: {
2216
+ admission: components["schemas"]["Decimal"];
2217
+ admitted_at: components["schemas"]["Decimal"];
2218
+ };
2219
+ binding: {
2220
+ turn: components["schemas"]["Decimal"];
2221
+ operation: components["schemas"]["Decimal"];
2222
+ attempt: components["schemas"]["Decimal"];
2223
+ };
2224
+ result: {
2225
+ /** @constant */
2226
+ status: "failed";
2227
+ code: string;
2228
+ };
2229
+ } | {
2230
+ /** @enum {string} */
2231
+ status: "absent" | "accepted" | "rejected";
2232
+ /** @constant */
2233
+ kind: "message";
2234
+ target: string;
2235
+ code: string;
2236
+ /** @constant */
2237
+ state: "failed";
2238
+ input: {
2239
+ /** @constant */
2240
+ type: "text";
2241
+ bytes: components["schemas"]["Decimal"];
2242
+ sha256: string;
2243
+ };
2244
+ queue: {
2245
+ admission: components["schemas"]["Decimal"];
2246
+ admitted_at: components["schemas"]["Decimal"];
2247
+ };
2248
+ binding: {
2249
+ turn: components["schemas"]["Decimal"];
2250
+ operation: components["schemas"]["Decimal"];
2251
+ attempt: components["schemas"]["Decimal"];
2252
+ };
2253
+ result: {
2254
+ /** @constant */
2255
+ status: "failed";
2256
+ code: string;
2257
+ };
2258
+ } | {
2259
+ /** @enum {string} */
2260
+ status: "absent" | "accepted" | "rejected";
2261
+ /** @constant */
2262
+ kind: "message";
2263
+ target: string;
2264
+ /** @constant */
2265
+ state: "failed";
2266
+ input: {
2267
+ /** @constant */
2268
+ type: "text";
2269
+ bytes: components["schemas"]["Decimal"];
2270
+ sha256: string;
2271
+ };
2272
+ queue: {
2273
+ admission: components["schemas"]["Decimal"];
2274
+ admitted_at: components["schemas"]["Decimal"];
2275
+ };
2276
+ binding: {
2277
+ turn: components["schemas"]["Decimal"];
2278
+ operation: components["schemas"]["Decimal"];
2279
+ attempt: components["schemas"]["Decimal"];
2280
+ };
2281
+ result: {
2282
+ /** @constant */
2283
+ status: "failed";
2284
+ code: string;
2285
+ };
2286
+ recovery: components["schemas"]["MessageRecoveryJson"];
2287
+ } | {
2288
+ /** @enum {string} */
2289
+ status: "absent" | "accepted" | "rejected";
2290
+ /** @constant */
2291
+ kind: "message";
2292
+ target: string;
2293
+ code: string;
2294
+ /** @constant */
2295
+ state: "failed";
2296
+ input: {
2297
+ /** @constant */
2298
+ type: "text";
2299
+ bytes: components["schemas"]["Decimal"];
2300
+ sha256: string;
2301
+ };
2302
+ queue: {
2303
+ admission: components["schemas"]["Decimal"];
2304
+ admitted_at: components["schemas"]["Decimal"];
2305
+ };
2306
+ binding: {
2307
+ turn: components["schemas"]["Decimal"];
2308
+ operation: components["schemas"]["Decimal"];
2309
+ attempt: components["schemas"]["Decimal"];
2310
+ };
2311
+ result: {
2312
+ /** @constant */
2313
+ status: "failed";
2314
+ code: string;
2315
+ };
2316
+ recovery: components["schemas"]["MessageRecoveryJson"];
2317
+ };
2318
+ } | {
2319
+ /** @constant */
2320
+ version: "13";
2321
+ /** @constant */
2322
+ type: "command_observation";
2323
+ key: string;
2324
+ /** @constant */
2325
+ delta: "full";
2326
+ since: string | null;
2327
+ observation: {
2328
+ /** @enum {string} */
2329
+ status: "absent" | "accepted" | "rejected";
2330
+ /** @constant */
2331
+ kind: "session_stop";
2332
+ target: string;
2333
+ } | {
2334
+ /** @enum {string} */
2335
+ status: "absent" | "accepted" | "rejected";
2336
+ /** @constant */
2337
+ kind: "session_stop";
2338
+ target: string;
2339
+ code: string;
2340
+ } | {
2341
+ /** @enum {string} */
2342
+ status: "absent" | "accepted" | "rejected";
2343
+ /** @constant */
2344
+ kind: "session_stop";
2345
+ target: string;
2346
+ selection: {
2347
+ turn: components["schemas"]["Decimal"] | null;
2348
+ admission_cutoff: components["schemas"]["Decimal"];
2349
+ };
2350
+ completion: {
2351
+ /** @enum {string} */
2352
+ status: "pending" | "completed";
2353
+ };
2354
+ } | {
2355
+ /** @enum {string} */
2356
+ status: "absent" | "accepted" | "rejected";
2357
+ /** @constant */
2358
+ kind: "session_stop";
2359
+ target: string;
2360
+ code: string;
2361
+ selection: {
2362
+ turn: components["schemas"]["Decimal"] | null;
2363
+ admission_cutoff: components["schemas"]["Decimal"];
2364
+ };
2365
+ completion: {
2366
+ /** @enum {string} */
2367
+ status: "pending" | "completed";
2368
+ };
2369
+ };
2370
+ } | {
2371
+ /** @constant */
2372
+ version: "13";
2373
+ /** @constant */
2374
+ type: "command_observation";
2375
+ key: string;
2376
+ /** @constant */
2377
+ delta: "full";
2378
+ since: string | null;
2379
+ observation: {
2380
+ /** @enum {string} */
2381
+ status: "absent" | "accepted" | "rejected";
2382
+ /** @constant */
2383
+ kind: "session_archive";
2384
+ target: string;
2385
+ } | {
2386
+ /** @enum {string} */
2387
+ status: "absent" | "accepted" | "rejected";
2388
+ /** @constant */
2389
+ kind: "session_archive";
2390
+ target: string;
2391
+ code: string;
2392
+ } | {
2393
+ /** @enum {string} */
2394
+ status: "absent" | "accepted" | "rejected";
2395
+ /** @constant */
2396
+ kind: "session_archive";
2397
+ target: string;
2398
+ archived: boolean;
2399
+ completion: {
2400
+ /** @enum {string} */
2401
+ status: "pending" | "completed";
2402
+ };
2403
+ } | {
2404
+ /** @enum {string} */
2405
+ status: "absent" | "accepted" | "rejected";
2406
+ /** @constant */
2407
+ kind: "session_archive";
2408
+ target: string;
2409
+ code: string;
2410
+ archived: boolean;
2411
+ completion: {
2412
+ /** @enum {string} */
2413
+ status: "pending" | "completed";
2414
+ };
2415
+ };
2416
+ } | {
2417
+ /** @constant */
2418
+ version: "13";
2419
+ /** @constant */
2420
+ type: "command_observation";
2421
+ key: string;
2422
+ /** @constant */
2423
+ delta: "full";
2424
+ since: string | null;
2425
+ observation: {
2426
+ /** @enum {string} */
2427
+ status: "absent" | "accepted" | "rejected";
2428
+ /** @constant */
2429
+ kind: "model_interruption";
2430
+ target: string;
2431
+ } | {
2432
+ /** @enum {string} */
2433
+ status: "absent" | "accepted" | "rejected";
2434
+ /** @constant */
2435
+ kind: "model_interruption";
2436
+ target: string;
2437
+ code: string;
2438
+ } | {
2439
+ /** @enum {string} */
2440
+ status: "absent" | "accepted" | "rejected";
2441
+ /** @constant */
2442
+ kind: "model_interruption";
2443
+ target: string;
2444
+ interruption_target: {
2445
+ session: string;
2446
+ turn: components["schemas"]["Decimal"];
2447
+ operation: components["schemas"]["Decimal"];
2448
+ };
2449
+ } | {
2450
+ /** @enum {string} */
2451
+ status: "absent" | "accepted" | "rejected";
2452
+ /** @constant */
2453
+ kind: "model_interruption";
2454
+ target: string;
2455
+ code: string;
2456
+ interruption_target: {
2457
+ session: string;
2458
+ turn: components["schemas"]["Decimal"];
2459
+ operation: components["schemas"]["Decimal"];
2460
+ };
2461
+ };
2462
+ } | {
2463
+ /** @constant */
2464
+ version: "13";
2465
+ /** @constant */
2466
+ type: "command_observation";
2467
+ key: string;
2468
+ /** @constant */
2469
+ delta: "full";
2470
+ since: string | null;
2471
+ observation: {
2472
+ /** @enum {string} */
2473
+ status: "absent" | "accepted" | "rejected";
2474
+ /** @constant */
2475
+ kind: "permission_decision";
2476
+ target: string;
2477
+ } | {
2478
+ /** @enum {string} */
2479
+ status: "absent" | "accepted" | "rejected";
2480
+ /** @constant */
2481
+ kind: "permission_decision";
2482
+ target: string;
2483
+ code: string;
2484
+ } | {
2485
+ /** @enum {string} */
2486
+ status: "absent" | "accepted" | "rejected";
2487
+ /** @constant */
2488
+ kind: "permission_decision";
2489
+ target: string;
2490
+ permission_target: {
2491
+ action: components["schemas"]["Decimal"];
2492
+ /** @enum {string} */
2493
+ decision: "allow_once" | "deny";
2494
+ };
2495
+ } | {
2496
+ /** @enum {string} */
2497
+ status: "absent" | "accepted" | "rejected";
2498
+ /** @constant */
2499
+ kind: "permission_decision";
2500
+ target: string;
2501
+ code: string;
2502
+ permission_target: {
2503
+ action: components["schemas"]["Decimal"];
2504
+ /** @enum {string} */
2505
+ decision: "allow_once" | "deny";
2506
+ };
2507
+ };
2508
+ } | {
2509
+ /** @constant */
2510
+ version: "13";
2511
+ /** @constant */
2512
+ type: "command_observation";
2513
+ key: string;
2514
+ /** @constant */
2515
+ delta: "not_modified";
2516
+ since: string;
2517
+ };
2518
+ ObserveCommandRequest: {
2519
+ /** @constant */
2520
+ version: "13";
2521
+ /** @constant */
2522
+ kind: "observe_command";
2523
+ store: string;
2524
+ key: string;
2525
+ since?: string | null;
2526
+ };
2527
+ PageWork: {
2528
+ state: components["schemas"]["WorkStateJson"];
2529
+ turn: components["schemas"]["Decimal"] | null;
2530
+ operation: components["schemas"]["Decimal"] | null;
2531
+ first_action: components["schemas"]["Decimal"] | null;
2532
+ revision: components["schemas"]["Decimal"];
2533
+ workspace: string;
2534
+ };
2535
+ Peer: {
2536
+ session: string;
2537
+ };
2538
+ PeerFacts: {
2539
+ from_person_at: components["schemas"]["Decimal"] | null;
2540
+ };
2541
+ PermissionDecisionConflictReply: {
2542
+ /** @constant */
2543
+ version: "13";
2544
+ /** @constant */
2545
+ type: "permission_decision_reply";
2546
+ answer: {
2547
+ /** @constant */
2548
+ status: "conflict";
2549
+ /** @constant */
2550
+ replayed: false;
2551
+ session: string;
2552
+ action: components["schemas"]["Decimal"];
2553
+ /** @enum {string} */
2554
+ decision: "allow_once" | "deny";
2555
+ /** @constant */
2556
+ code: "idempotency_key_conflict";
2557
+ };
2558
+ };
2559
+ PermissionDecisionReply: {
2560
+ /** @constant */
2561
+ version: "13";
2562
+ /** @constant */
2563
+ type: "permission_decision_reply";
2564
+ answer: {
2565
+ /** @constant */
2566
+ status: "accepted";
2567
+ replayed: boolean;
2568
+ session: string;
2569
+ action: components["schemas"]["Decimal"];
2570
+ /** @enum {string} */
2571
+ decision: "allow_once" | "deny";
2572
+ };
2573
+ } | {
2574
+ /** @constant */
2575
+ version: "13";
2576
+ /** @constant */
2577
+ type: "permission_decision_reply";
2578
+ answer: {
2579
+ /** @constant */
2580
+ status: "rejected";
2581
+ replayed: boolean;
2582
+ session: string;
2583
+ action: components["schemas"]["Decimal"];
2584
+ /** @enum {string} */
2585
+ decision: "allow_once" | "deny";
2586
+ /** @enum {string} */
2587
+ code: "invalid_session_reference" | "invalid_target" | "unknown_session" | "unknown_action" | "target_mismatch" | "action_not_pending";
2588
+ };
2589
+ };
2590
+ PermissionDecisionRequest: {
2591
+ /** @constant */
2592
+ version: "13";
2593
+ /** @constant */
2594
+ kind: "permission_decision";
2595
+ store: string;
2596
+ key: string;
2597
+ session: string;
2598
+ action: components["schemas"]["Decimal"];
2599
+ /** @enum {string} */
2600
+ decision: "allow_once" | "deny";
2601
+ };
2602
+ Queued: {
2603
+ count: components["schemas"]["Decimal"];
2604
+ oldest_position: components["schemas"]["Decimal"];
2605
+ newest_admission: components["schemas"]["Decimal"];
2606
+ newest_position: components["schemas"]["Decimal"];
2607
+ };
2608
+ ReadActionArgumentsRequest: {
2609
+ /** @constant */
2610
+ version: "13";
2611
+ /** @constant */
2612
+ kind: "read_action_arguments";
2613
+ store: string;
2614
+ session: string;
2615
+ action: components["schemas"]["Decimal"];
2616
+ };
2617
+ ReadActionCallIdRequest: {
2618
+ /** @constant */
2619
+ version: "13";
2620
+ /** @constant */
2621
+ kind: "read_action_call_id";
2622
+ store: string;
2623
+ session: string;
2624
+ action: components["schemas"]["Decimal"];
2625
+ };
2626
+ ReadResultRequest: {
2627
+ /** @constant */
2628
+ version: "13";
2629
+ /** @constant */
2630
+ kind: "read_result";
2631
+ store: string;
2632
+ key: string;
2633
+ };
2634
+ SessionArchiveConflictReply: {
2635
+ /** @constant */
2636
+ version: "13";
2637
+ /** @constant */
2638
+ type: "session_archive_reply";
2639
+ answer: {
2640
+ /** @constant */
2641
+ status: "conflict";
2642
+ /** @constant */
2643
+ replayed: false;
2644
+ session: string;
2645
+ /** @constant */
2646
+ code: "idempotency_key_conflict";
2647
+ };
2648
+ completion: {
2649
+ /** @constant */
2650
+ status: "unavailable";
2651
+ };
2652
+ };
2653
+ SessionArchiveReply: {
2654
+ /** @constant */
2655
+ version: "13";
2656
+ /** @constant */
2657
+ type: "session_archive_reply";
2658
+ answer: {
2659
+ /** @constant */
2660
+ status: "accepted";
2661
+ replayed: boolean;
2662
+ session: string;
2663
+ archived: boolean;
2664
+ };
2665
+ completion: {
2666
+ /** @enum {string} */
2667
+ status: "pending" | "completed";
2668
+ };
2669
+ } | {
2670
+ /** @constant */
2671
+ version: "13";
2672
+ /** @constant */
2673
+ type: "session_archive_reply";
2674
+ answer: {
2675
+ /** @constant */
2676
+ status: "rejected";
2677
+ replayed: boolean;
2678
+ session: string;
2679
+ /** @enum {string} */
2680
+ code: "invalid_session_reference" | "unknown_session" | "archive_pending";
2681
+ };
2682
+ completion: {
2683
+ /** @constant */
2684
+ status: "unavailable";
2685
+ };
2686
+ };
2687
+ SessionArchiveRequest: {
2688
+ /** @constant */
2689
+ version: "13";
2690
+ /** @constant */
2691
+ kind: "session_archive";
2692
+ store: string;
2693
+ key: string;
2694
+ session: string;
2695
+ archived?: boolean;
2696
+ };
2697
+ SessionRow: {
2698
+ /** @enum {string} */
2699
+ archive_state: "active" | "archiving" | "archived";
2700
+ reference: string;
2701
+ workspace: string;
2702
+ /** @enum {string} */
2703
+ provider: "codex" | "openai";
2704
+ model: string;
2705
+ /** @description None repeated; the names' bytes total at most x-rui-max-bytes. Each must be a tool the Host offers. */
2706
+ tools: string[];
2707
+ /** @enum {string} */
2708
+ permission_mode: "ask" | "bypass";
2709
+ parent: string | null;
2710
+ label: string | null;
2711
+ created_at: components["schemas"]["Decimal"];
2712
+ revision: components["schemas"]["Decimal"];
2713
+ end: components["schemas"]["Decimal"];
2714
+ first_message: components["schemas"]["FirstMessage"] | null;
2715
+ last_line: components["schemas"]["LastLineFields"] | null;
2716
+ work: components["schemas"]["SessionWork"];
2717
+ peers: components["schemas"]["PeerFacts"];
2718
+ };
2719
+ SessionStopConflictReply: {
2720
+ /** @constant */
2721
+ version: "13";
2722
+ /** @constant */
2723
+ type: "session_stop_reply";
2724
+ answer: {
2725
+ /** @constant */
2726
+ status: "conflict";
2727
+ /** @constant */
2728
+ replayed: false;
2729
+ session: string;
2730
+ /** @constant */
2731
+ code: "idempotency_key_conflict";
2732
+ };
2733
+ completion: {
2734
+ /** @constant */
2735
+ status: "unavailable";
2736
+ };
2737
+ };
2738
+ SessionStopReply: {
2739
+ /** @constant */
2740
+ version: "13";
2741
+ /** @constant */
2742
+ type: "session_stop_reply";
2743
+ answer: {
2744
+ /** @constant */
2745
+ status: "accepted";
2746
+ replayed: boolean;
2747
+ session: string;
2748
+ selection: {
2749
+ turn: components["schemas"]["Decimal"] | null;
2750
+ admission_cutoff: components["schemas"]["Decimal"];
2751
+ };
2752
+ };
2753
+ completion: {
2754
+ /** @enum {string} */
2755
+ status: "pending" | "completed";
2756
+ };
2757
+ } | {
2758
+ /** @constant */
2759
+ version: "13";
2760
+ /** @constant */
2761
+ type: "session_stop_reply";
2762
+ answer: {
2763
+ /** @constant */
2764
+ status: "rejected";
2765
+ replayed: boolean;
2766
+ session: string;
2767
+ /** @enum {string} */
2768
+ code: "invalid_session_reference" | "unknown_session";
2769
+ };
2770
+ completion: {
2771
+ /** @constant */
2772
+ status: "unavailable";
2773
+ };
2774
+ };
2775
+ SessionStopRequest: {
2776
+ /** @constant */
2777
+ version: "13";
2778
+ /** @constant */
2779
+ kind: "session_stop";
2780
+ store: string;
2781
+ key: string;
2782
+ session: string;
2783
+ };
2784
+ SessionWork: {
2785
+ state: components["schemas"]["WorkStateJson"];
2786
+ turn: components["schemas"]["Decimal"] | null;
2787
+ operation: components["schemas"]["Decimal"] | null;
2788
+ first_action: components["schemas"]["Decimal"] | null;
2789
+ };
2790
+ SkillSuggestionsReply: {
2791
+ /** @constant */
2792
+ version: "13";
2793
+ /** @constant */
2794
+ type: "skill_suggestions";
2795
+ revision: components["schemas"]["Decimal"];
2796
+ total: components["schemas"]["Decimal"];
2797
+ entries: {
2798
+ name: string;
2799
+ description: string;
2800
+ }[];
2801
+ };
2802
+ SkillSuggestionsRequest: {
2803
+ /** @constant */
2804
+ version: "13";
2805
+ /** @constant */
2806
+ kind: "skill_suggestions";
2807
+ store: string;
2808
+ session: string;
2809
+ prefix: string;
2810
+ } | {
2811
+ /** @constant */
2812
+ version: "13";
2813
+ /** @constant */
2814
+ kind: "skill_suggestions";
2815
+ store: string;
2816
+ workspace: string;
2817
+ prefix: string;
2818
+ };
2819
+ StartError: {
2820
+ rui_start_error: {
2821
+ /** @enum {string} */
2822
+ code: "launch_frame_invalid" | "invalid_preset" | "store_locked" | "store_schema_missing" | "store_schema_behind" | "mysql_version" | "mariadb" | "read_only_replica" | "durability_innodb_flush_log_at_trx_commit" | "durability_sync_binlog" | "binlog_statement" | "mysql_unreachable" | "mysql_login" | "store_fenced" | "runtime_dir_unusable" | "tool_name_collision";
2823
+ message: string;
2824
+ };
2825
+ };
2826
+ ToolPresentation: {
2827
+ description: string | null;
2828
+ /** @enum {string} */
2829
+ code: "unresolved" | "pending_permission" | "succeeded" | "failed" | "timed_out" | "indeterminate" | "storage_failed" | "spawn_failed" | "cancelled" | "infrastructure_shutdown" | "denied" | "unknown_tool" | "invalid_arguments";
2830
+ publication_position: components["schemas"]["Decimal"] | null;
2831
+ };
2832
+ WorkStateJson: {
2833
+ /** @enum {string} */
2834
+ kind: "idle" | "pending" | "working" | "retrying" | "bash" | "approval" | "stopping" | "finished" | "failed" | "stopped";
2835
+ since: components["schemas"]["Decimal"];
2836
+ } | {
2837
+ /** @constant */
2838
+ kind: "retrying";
2839
+ since: components["schemas"]["Decimal"];
2840
+ due_at_ms: components["schemas"]["Decimal"];
2841
+ cause: string;
2842
+ attempt: components["schemas"]["Decimal"];
2843
+ } | {
2844
+ /** @constant */
2845
+ kind: "bash";
2846
+ since: components["schemas"]["Decimal"];
2847
+ call: components["schemas"]["Decimal"];
2848
+ description: string | null;
2849
+ running: components["schemas"]["Decimal"];
2850
+ approvals: components["schemas"]["Decimal"];
2851
+ } | {
2852
+ /** @constant */
2853
+ kind: "bash";
2854
+ since: components["schemas"]["Decimal"];
2855
+ description: string | null;
2856
+ running: components["schemas"]["Decimal"];
2857
+ approvals: components["schemas"]["Decimal"];
2858
+ } | {
2859
+ /** @constant */
2860
+ kind: "failed";
2861
+ since: components["schemas"]["Decimal"];
2862
+ code: string;
2863
+ resets_at: components["schemas"]["Decimal"] | null;
2864
+ } | {
2865
+ /** @constant */
2866
+ kind: "stopped";
2867
+ since: components["schemas"]["Decimal"];
2868
+ /** @enum {string} */
2869
+ cause: "stop" | "interruption";
2870
+ };
2871
+ domainreportCurrentJsonActionable: {
2872
+ action: components["schemas"]["Decimal"];
2873
+ permission_revision: components["schemas"]["Decimal"];
2874
+ };
2875
+ domainreportCurrentJsonActions: {
2876
+ count: components["schemas"]["Decimal"];
2877
+ unresolved: components["schemas"]["domainreportCurrentJsonUnresolved"][];
2878
+ resolved: components["schemas"]["domainreportCurrentJsonResolved"][];
2879
+ };
2880
+ domainreportCurrentJsonOutcome: {
2881
+ code: string;
2882
+ content: components["schemas"]["ActivityItemContent"] | null;
2883
+ };
2884
+ domainreportCurrentJsonRecent: {
2885
+ turn: components["schemas"]["Decimal"];
2886
+ message: string;
2887
+ outcome: string;
2888
+ };
2889
+ domainreportCurrentJsonRejected: {
2890
+ parent_operation: components["schemas"]["Decimal"];
2891
+ call_ordinal: components["schemas"]["Decimal"];
2892
+ code: string;
2893
+ acceptance_position: components["schemas"]["Decimal"];
2894
+ result: components["schemas"]["domainreportCurrentJsonTextReference"];
2895
+ name: components["schemas"]["domainreportCurrentJsonTextReference"];
2896
+ call_id: components["schemas"]["domainreportCurrentJsonTextReference"];
2897
+ arguments: components["schemas"]["domainreportCurrentJsonTextReference"];
2898
+ presentation: components["schemas"]["ToolPresentation"];
2899
+ };
2900
+ domainreportCurrentJsonRejectedCalls: {
2901
+ count: components["schemas"]["Decimal"];
2902
+ items: components["schemas"]["domainreportCurrentJsonRejected"][];
2903
+ };
2904
+ domainreportCurrentJsonResolved: {
2905
+ action: components["schemas"]["Decimal"];
2906
+ parent_operation: components["schemas"]["Decimal"];
2907
+ call_ordinal: components["schemas"]["Decimal"];
2908
+ code: string;
2909
+ acceptance_position: components["schemas"]["Decimal"];
2910
+ result: components["schemas"]["domainreportCurrentJsonTextReference"];
2911
+ presentation: components["schemas"]["ToolPresentation"];
2912
+ };
2913
+ domainreportCurrentJsonSettings: {
2914
+ reference: string;
2915
+ parent: string | null;
2916
+ workspace: string;
2917
+ /** @enum {string} */
2918
+ provider: "codex" | "openai";
2919
+ model: string;
2920
+ compaction_trigger: components["schemas"]["Decimal"];
2921
+ context_estimate: components["schemas"]["Decimal"] | null;
2922
+ output_reservation: components["schemas"]["Decimal"];
2923
+ compaction_trigger_override: components["schemas"]["Decimal"] | null;
2924
+ output_reservation_override: components["schemas"]["Decimal"] | null;
2925
+ /** @enum {unknown} */
2926
+ reasoning_effort: "none" | "low" | "medium" | "high" | "xhigh" | "max" | null;
2927
+ /** @enum {unknown} */
2928
+ reasoning_effort_override: "none" | "low" | "medium" | "high" | "xhigh" | "max" | null;
2929
+ revision: components["schemas"]["Decimal"];
2930
+ /** @description None repeated; the names' bytes total at most x-rui-max-bytes. Each must be a tool the Host offers. */
2931
+ tools: string[];
2932
+ /** @description None repeated; the names' bytes total at most x-rui-max-bytes. Each must be a tool the Host offers. */
2933
+ loaded_tools: string[];
2934
+ /** @enum {string} */
2935
+ permission_mode: "ask" | "bypass";
2936
+ instructions: components["schemas"]["ActivityItemContent"];
2937
+ output_schema: components["schemas"]["ActivityItemContent"] | null;
2938
+ label: string | null;
2939
+ created_at: components["schemas"]["Decimal"];
2940
+ };
2941
+ domainreportCurrentJsonTextReference: {
2942
+ /** @constant */
2943
+ type: "text";
2944
+ bytes: components["schemas"]["Decimal"];
2945
+ sha256: string;
2946
+ };
2947
+ domainreportCurrentJsonUnresolved: {
2948
+ action: components["schemas"]["Decimal"];
2949
+ parent_operation: components["schemas"]["Decimal"];
2950
+ call_ordinal: components["schemas"]["Decimal"];
2951
+ /** @enum {string} */
2952
+ tool: "bash" | "find_tools" | "message_agent" | "read_transcript" | "skill" | "start_agent" | "web_search";
2953
+ permission_revision: components["schemas"]["Decimal"];
2954
+ /** @enum {string} */
2955
+ authorization: "core" | "pending" | "bypass" | "allow_once";
2956
+ call_id: components["schemas"]["domainreportCurrentJsonTextReference"];
2957
+ arguments: components["schemas"]["domainreportCurrentJsonTextReference"];
2958
+ presentation: components["schemas"]["ToolPresentation"];
2959
+ } | {
2960
+ action: components["schemas"]["Decimal"];
2961
+ parent_operation: components["schemas"]["Decimal"];
2962
+ call_ordinal: components["schemas"]["Decimal"];
2963
+ tool: string;
2964
+ permission_revision: components["schemas"]["Decimal"];
2965
+ /** @enum {string} */
2966
+ authorization: "core" | "pending" | "bypass" | "allow_once";
2967
+ call_id: components["schemas"]["domainreportCurrentJsonTextReference"];
2968
+ server: string;
2969
+ arguments: components["schemas"]["domainreportCurrentJsonTextReference"];
2970
+ presentation: components["schemas"]["ToolPresentation"];
2971
+ };
2972
+ domainreportCurrentJsonWork: {
2973
+ state: components["schemas"]["WorkStateJson"];
2974
+ turn: components["schemas"]["Decimal"] | null;
2975
+ operation: components["schemas"]["Decimal"] | null;
2976
+ first_action: components["schemas"]["Decimal"] | null;
2977
+ latest_outcome: components["schemas"]["domainreportCurrentJsonOutcome"] | null;
2978
+ };
2979
+ domainreportExecutionJson: {
2980
+ /** @constant */
2981
+ status: "partial";
2982
+ dispatch_fenced: boolean;
2983
+ custody_occupied: components["schemas"]["Decimal"];
2984
+ scratch_used_bytes: components["schemas"]["Decimal"];
2985
+ unavailable: [
2986
+ "structured_output"
2987
+ ];
2988
+ };
2989
+ domainreport_full_shapeFull: {
2990
+ session_revisions: components["schemas"]["domainreport_full_shapeFullRevision"][];
2991
+ messages: components["schemas"]["domainreport_full_shapeFullMessage"][];
2992
+ conversation: components["schemas"]["domainreport_full_shapeFullConversation"][];
2993
+ turns: components["schemas"]["domainreport_full_shapeFullTurn"][];
2994
+ model_operations: components["schemas"]["domainreport_full_shapeFullOperation"][];
2995
+ tool_calls: components["schemas"]["domainreport_full_shapeFullCall"][];
2996
+ actions: components["schemas"]["domainreport_full_shapeFullAction"][];
2997
+ permission_decisions: components["schemas"]["domainreport_full_shapeFullDecision"][];
2998
+ session_stops: components["schemas"]["domainreport_full_shapeFullStop"][];
2999
+ model_interruptions: components["schemas"]["domainreport_full_shapeFullInterruption"][];
3000
+ tool_results: components["schemas"]["domainreport_full_shapeFullResult"][];
3001
+ };
3002
+ domainreport_full_shapeFullAction: {
3003
+ action: components["schemas"]["Decimal"];
3004
+ parent_operation: components["schemas"]["Decimal"];
3005
+ call_ordinal: components["schemas"]["Decimal"];
3006
+ permission_revision: components["schemas"]["Decimal"];
3007
+ /** @enum {string} */
3008
+ permission: "denied" | "authorized" | "requested";
3009
+ resolution: string | null;
3010
+ result: components["schemas"]["domainreport_full_shapeFullInline"] | null;
3011
+ acceptance_position: components["schemas"]["Decimal"] | null;
3012
+ };
3013
+ domainreport_full_shapeFullCall: {
3014
+ operation: components["schemas"]["Decimal"];
3015
+ call_ordinal: components["schemas"]["Decimal"];
3016
+ item_ordinal: components["schemas"]["Decimal"];
3017
+ rejection: string | null;
3018
+ acceptance_position: components["schemas"]["Decimal"] | null;
3019
+ name: components["schemas"]["domainreport_full_shapeFullInline"];
3020
+ call_id: components["schemas"]["domainreport_full_shapeFullInline"];
3021
+ arguments: components["schemas"]["domainreport_full_shapeFullInline"];
3022
+ rejection_result: components["schemas"]["domainreport_full_shapeFullInline"] | null;
3023
+ };
3024
+ domainreport_full_shapeFullConversation: {
3025
+ ordinal: components["schemas"]["Decimal"];
3026
+ position: components["schemas"]["Decimal"];
3027
+ /** @enum {string} */
3028
+ kind: "message" | "settings" | "assistant" | "skill";
3029
+ turn: components["schemas"]["Decimal"] | null;
3030
+ source_admission: components["schemas"]["Decimal"] | null;
3031
+ source_revision: components["schemas"]["Decimal"] | null;
3032
+ source_catalog_position: components["schemas"]["Decimal"] | null;
3033
+ source_skill_position: components["schemas"]["Decimal"] | null;
3034
+ source_operation: components["schemas"]["Decimal"] | null;
3035
+ content: components["schemas"]["ActivityItemContent"];
3036
+ };
3037
+ domainreport_full_shapeFullDecision: {
3038
+ command_key: string;
3039
+ action: string;
3040
+ /** @enum {string} */
3041
+ decision: "allow_once" | "deny";
3042
+ /** @enum {string} */
3043
+ status: "accepted" | "rejected";
3044
+ code: string;
3045
+ };
3046
+ domainreport_full_shapeFullExclusion: {
3047
+ /** @constant */
3048
+ code: "session_stopped";
3049
+ command_key: string;
3050
+ };
3051
+ domainreport_full_shapeFullInline: {
3052
+ /** @constant */
3053
+ type: "text";
3054
+ bytes: components["schemas"]["Decimal"];
3055
+ sha256: string;
3056
+ /** @description Text of any length, saved as content. */
3057
+ text: string;
3058
+ };
3059
+ domainreport_full_shapeFullInterruption: {
3060
+ command_key: string;
3061
+ /** @enum {string} */
3062
+ status: "accepted" | "rejected";
3063
+ code: string;
3064
+ turn: string;
3065
+ operation: string;
3066
+ };
3067
+ domainreport_full_shapeFullMessage: {
3068
+ admission: components["schemas"]["Decimal"];
3069
+ command_key: string;
3070
+ content: components["schemas"]["domainreport_full_shapeFullInline"];
3071
+ turn: components["schemas"]["Decimal"] | null;
3072
+ /** @enum {string} */
3073
+ application: "applied" | "pending" | "excluded";
3074
+ exclusion: components["schemas"]["domainreport_full_shapeFullExclusion"] | null;
3075
+ outcome: components["schemas"]["domainreport_full_shapeFullOutcome"] | null;
3076
+ };
3077
+ domainreport_full_shapeFullOperation: {
3078
+ operation: components["schemas"]["Decimal"];
3079
+ turn: components["schemas"]["Decimal"];
3080
+ resolution: components["schemas"]["domainreport_full_shapeFullResolution"] | null;
3081
+ interrupted_by: string | null;
3082
+ settings_revision: components["schemas"]["Decimal"];
3083
+ request_id: string | null;
3084
+ /** @enum {unknown} */
3085
+ reasoning_effort: "none" | "low" | "medium" | "high" | "xhigh" | "max" | null;
3086
+ };
3087
+ domainreport_full_shapeFullOutcome: {
3088
+ code: string;
3089
+ content: components["schemas"]["ActivityItemContent"] | null;
3090
+ };
3091
+ domainreport_full_shapeFullResolution: {
3092
+ code: string;
3093
+ content: components["schemas"]["domainreport_full_shapeFullInline"] | null;
3094
+ };
3095
+ domainreport_full_shapeFullResult: {
3096
+ operation: components["schemas"]["Decimal"];
3097
+ call_ordinal: components["schemas"]["Decimal"];
3098
+ acceptance_position: components["schemas"]["Decimal"];
3099
+ call_id: components["schemas"]["domainreport_full_shapeFullInline"];
3100
+ code: string;
3101
+ result: components["schemas"]["domainreport_full_shapeFullInline"];
3102
+ };
3103
+ domainreport_full_shapeFullRevision: {
3104
+ revision: components["schemas"]["Decimal"];
3105
+ command_key: string;
3106
+ workspace: string;
3107
+ /** @enum {string} */
3108
+ provider: "codex" | "openai";
3109
+ model: string;
3110
+ compaction_trigger: components["schemas"]["Decimal"] | null;
3111
+ output_reservation: components["schemas"]["Decimal"] | null;
3112
+ /** @enum {unknown} */
3113
+ reasoning_effort: "none" | "low" | "medium" | "high" | "xhigh" | "max" | null;
3114
+ label: string | null;
3115
+ /** @description None repeated; the names' bytes total at most x-rui-max-bytes. Each must be a tool the Host offers. */
3116
+ tools: string[];
3117
+ /** @description None repeated; the names' bytes total at most x-rui-max-bytes. Each must be a tool the Host offers. */
3118
+ loaded_tools: string[];
3119
+ /** @enum {string} */
3120
+ permission_mode: "ask" | "bypass";
3121
+ instructions: components["schemas"]["domainreport_full_shapeFullRevisionContent"];
3122
+ output_schema: components["schemas"]["domainreport_full_shapeFullRevisionContent"] | null;
3123
+ };
3124
+ domainreport_full_shapeFullRevisionContent: {
3125
+ /** @constant */
3126
+ type: "text";
3127
+ bytes: components["schemas"]["Decimal"];
3128
+ sha256: string;
3129
+ /** @description Text of any length, saved as content. */
3130
+ text: string;
3131
+ } | {
3132
+ bytes: components["schemas"]["Decimal"];
3133
+ sha256: string;
3134
+ owner: {
3135
+ revision: components["schemas"]["Decimal"];
3136
+ /** @enum {string} */
3137
+ field: "instructions" | "output_schema";
3138
+ };
3139
+ };
3140
+ domainreport_full_shapeFullStop: {
3141
+ command_key: string;
3142
+ /** @enum {string} */
3143
+ status: "accepted" | "rejected";
3144
+ code: string;
3145
+ selected_turn: components["schemas"]["Decimal"] | null;
3146
+ admission_cutoff: components["schemas"]["Decimal"] | null;
3147
+ };
3148
+ domainreport_full_shapeFullTurn: {
3149
+ turn: components["schemas"]["Decimal"];
3150
+ first_admission: components["schemas"]["Decimal"];
3151
+ input_cutoff: components["schemas"]["Decimal"];
3152
+ operation: components["schemas"]["Decimal"];
3153
+ outcome: components["schemas"]["domainreport_full_shapeFullOutcome"] | null;
3154
+ };
3155
+ };
3156
+ responses: never;
3157
+ parameters: {
3158
+ /** @description The wire version this document describes. Any other version is refused. */
3159
+ WireVersion: "13";
3160
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3161
+ HostInstance: string;
3162
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it, and a request without it is refused. */
3163
+ HostInstanceRequired: string;
3164
+ /** @description How many bytes of client environment start the body, before the JSON request. */
3165
+ EnvironmentBytes: string;
3166
+ };
3167
+ requestBodies: never;
3168
+ headers: never;
3169
+ pathItems: never;
3170
+ }
3171
+ export type $defs = Record<string, never>;
3172
+ export interface operations {
3173
+ hostInfo: {
3174
+ parameters: {
3175
+ query?: never;
3176
+ header: {
3177
+ /** @description The wire version this document describes. Any other version is refused. */
3178
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3179
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3180
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3181
+ };
3182
+ path?: never;
3183
+ cookie?: never;
3184
+ };
3185
+ requestBody: {
3186
+ content: {
3187
+ "application/json": components["schemas"]["HostInfoRequest"];
3188
+ };
3189
+ };
3190
+ responses: {
3191
+ /** @description The reply. */
3192
+ 200: {
3193
+ headers: {
3194
+ [name: string]: unknown;
3195
+ };
3196
+ content: {
3197
+ "application/json": components["schemas"]["HostInfoReply"];
3198
+ };
3199
+ };
3200
+ /** @description A refusal or failure. */
3201
+ default: {
3202
+ headers: {
3203
+ [name: string]: unknown;
3204
+ };
3205
+ content: {
3206
+ "application/json": components["schemas"]["ErrorReply"];
3207
+ };
3208
+ };
3209
+ };
3210
+ };
3211
+ hostStop: {
3212
+ parameters: {
3213
+ query?: never;
3214
+ header: {
3215
+ /** @description The wire version this document describes. Any other version is refused. */
3216
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3217
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it, and a request without it is refused. */
3218
+ "X-Rui-Host-Instance": components["parameters"]["HostInstanceRequired"];
3219
+ };
3220
+ path?: never;
3221
+ cookie?: never;
3222
+ };
3223
+ requestBody: {
3224
+ content: {
3225
+ "application/json": components["schemas"]["HostStopRequest"];
3226
+ };
3227
+ };
3228
+ responses: {
3229
+ /** @description The reply. */
3230
+ 200: {
3231
+ headers: {
3232
+ [name: string]: unknown;
3233
+ };
3234
+ content: {
3235
+ "application/json": components["schemas"]["HostStopReply"];
3236
+ };
3237
+ };
3238
+ /** @description A refusal or failure. */
3239
+ default: {
3240
+ headers: {
3241
+ [name: string]: unknown;
3242
+ };
3243
+ content: {
3244
+ "application/json": components["schemas"]["ErrorReply"];
3245
+ };
3246
+ };
3247
+ };
3248
+ };
3249
+ hostPause: {
3250
+ parameters: {
3251
+ query?: never;
3252
+ header: {
3253
+ /** @description The wire version this document describes. Any other version is refused. */
3254
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3255
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3256
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3257
+ };
3258
+ path?: never;
3259
+ cookie?: never;
3260
+ };
3261
+ requestBody: {
3262
+ content: {
3263
+ "application/json": components["schemas"]["HostPauseRequest"];
3264
+ };
3265
+ };
3266
+ responses: {
3267
+ /** @description The reply. */
3268
+ 200: {
3269
+ headers: {
3270
+ [name: string]: unknown;
3271
+ };
3272
+ content: {
3273
+ "application/json": components["schemas"]["HostPauseReply"];
3274
+ };
3275
+ };
3276
+ /** @description A refusal or failure. */
3277
+ default: {
3278
+ headers: {
3279
+ [name: string]: unknown;
3280
+ };
3281
+ content: {
3282
+ "application/json": components["schemas"]["ErrorReply"];
3283
+ };
3284
+ };
3285
+ };
3286
+ };
3287
+ configure: {
3288
+ parameters: {
3289
+ query?: never;
3290
+ header: {
3291
+ /** @description The wire version this document describes. Any other version is refused. */
3292
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3293
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3294
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3295
+ };
3296
+ path?: never;
3297
+ cookie?: never;
3298
+ };
3299
+ requestBody: {
3300
+ content: {
3301
+ "application/json": components["schemas"]["ConfigureRequest"];
3302
+ };
3303
+ };
3304
+ responses: {
3305
+ /** @description The reply. */
3306
+ 200: {
3307
+ headers: {
3308
+ [name: string]: unknown;
3309
+ };
3310
+ content: {
3311
+ "application/json": components["schemas"]["ConfigureReply"];
3312
+ };
3313
+ };
3314
+ /** @description The key was used before with different input (the conflict reply), or the request names another Store or Host instance (a refusal). */
3315
+ 409: {
3316
+ headers: {
3317
+ [name: string]: unknown;
3318
+ };
3319
+ content: {
3320
+ "application/json": components["schemas"]["ConfigureConflictReply"] | components["schemas"]["ErrorReply"];
3321
+ };
3322
+ };
3323
+ /** @description A refusal or failure. */
3324
+ default: {
3325
+ headers: {
3326
+ [name: string]: unknown;
3327
+ };
3328
+ content: {
3329
+ "application/json": components["schemas"]["ErrorReply"];
3330
+ };
3331
+ };
3332
+ };
3333
+ };
3334
+ message: {
3335
+ parameters: {
3336
+ query?: never;
3337
+ header: {
3338
+ /** @description The wire version this document describes. Any other version is refused. */
3339
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3340
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3341
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3342
+ /** @description How many bytes of client environment start the body, before the JSON request. */
3343
+ "X-Rui-Environment-Bytes": components["parameters"]["EnvironmentBytes"];
3344
+ };
3345
+ path?: never;
3346
+ cookie?: never;
3347
+ };
3348
+ requestBody: {
3349
+ content: {
3350
+ "application/json": components["schemas"]["MessageRequest"];
3351
+ };
3352
+ };
3353
+ responses: {
3354
+ /** @description The reply. */
3355
+ 200: {
3356
+ headers: {
3357
+ [name: string]: unknown;
3358
+ };
3359
+ content: {
3360
+ "application/json": components["schemas"]["MessageReply"];
3361
+ };
3362
+ };
3363
+ /** @description The key was used before with different input (the conflict reply), or the request names another Store or Host instance (a refusal). */
3364
+ 409: {
3365
+ headers: {
3366
+ [name: string]: unknown;
3367
+ };
3368
+ content: {
3369
+ "application/json": components["schemas"]["MessageConflictReply"] | components["schemas"]["ErrorReply"];
3370
+ };
3371
+ };
3372
+ /** @description A refusal or failure. */
3373
+ default: {
3374
+ headers: {
3375
+ [name: string]: unknown;
3376
+ };
3377
+ content: {
3378
+ "application/json": components["schemas"]["ErrorReply"];
3379
+ };
3380
+ };
3381
+ };
3382
+ };
3383
+ sessionStop: {
3384
+ parameters: {
3385
+ query?: never;
3386
+ header: {
3387
+ /** @description The wire version this document describes. Any other version is refused. */
3388
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3389
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3390
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3391
+ };
3392
+ path?: never;
3393
+ cookie?: never;
3394
+ };
3395
+ requestBody: {
3396
+ content: {
3397
+ "application/json": components["schemas"]["SessionStopRequest"];
3398
+ };
3399
+ };
3400
+ responses: {
3401
+ /** @description The reply. */
3402
+ 200: {
3403
+ headers: {
3404
+ [name: string]: unknown;
3405
+ };
3406
+ content: {
3407
+ "application/json": components["schemas"]["SessionStopReply"];
3408
+ };
3409
+ };
3410
+ /** @description The key was used before with different input (the conflict reply), or the request names another Store or Host instance (a refusal). */
3411
+ 409: {
3412
+ headers: {
3413
+ [name: string]: unknown;
3414
+ };
3415
+ content: {
3416
+ "application/json": components["schemas"]["SessionStopConflictReply"] | components["schemas"]["ErrorReply"];
3417
+ };
3418
+ };
3419
+ /** @description A refusal or failure. */
3420
+ default: {
3421
+ headers: {
3422
+ [name: string]: unknown;
3423
+ };
3424
+ content: {
3425
+ "application/json": components["schemas"]["ErrorReply"];
3426
+ };
3427
+ };
3428
+ };
3429
+ };
3430
+ sessionArchive: {
3431
+ parameters: {
3432
+ query?: never;
3433
+ header: {
3434
+ /** @description The wire version this document describes. Any other version is refused. */
3435
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3436
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3437
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3438
+ };
3439
+ path?: never;
3440
+ cookie?: never;
3441
+ };
3442
+ requestBody: {
3443
+ content: {
3444
+ "application/json": components["schemas"]["SessionArchiveRequest"];
3445
+ };
3446
+ };
3447
+ responses: {
3448
+ /** @description The reply. */
3449
+ 200: {
3450
+ headers: {
3451
+ [name: string]: unknown;
3452
+ };
3453
+ content: {
3454
+ "application/json": components["schemas"]["SessionArchiveReply"];
3455
+ };
3456
+ };
3457
+ /** @description The key was used before with different input (the conflict reply), or the request names another Store or Host instance (a refusal). */
3458
+ 409: {
3459
+ headers: {
3460
+ [name: string]: unknown;
3461
+ };
3462
+ content: {
3463
+ "application/json": components["schemas"]["SessionArchiveConflictReply"] | components["schemas"]["ErrorReply"];
3464
+ };
3465
+ };
3466
+ /** @description A refusal or failure. */
3467
+ default: {
3468
+ headers: {
3469
+ [name: string]: unknown;
3470
+ };
3471
+ content: {
3472
+ "application/json": components["schemas"]["ErrorReply"];
3473
+ };
3474
+ };
3475
+ };
3476
+ };
3477
+ modelInterruption: {
3478
+ parameters: {
3479
+ query?: never;
3480
+ header: {
3481
+ /** @description The wire version this document describes. Any other version is refused. */
3482
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3483
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3484
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3485
+ };
3486
+ path?: never;
3487
+ cookie?: never;
3488
+ };
3489
+ requestBody: {
3490
+ content: {
3491
+ "application/json": components["schemas"]["ModelInterruptionRequest"];
3492
+ };
3493
+ };
3494
+ responses: {
3495
+ /** @description The reply. */
3496
+ 200: {
3497
+ headers: {
3498
+ [name: string]: unknown;
3499
+ };
3500
+ content: {
3501
+ "application/json": components["schemas"]["ModelInterruptionReply"];
3502
+ };
3503
+ };
3504
+ /** @description The key was used before with different input (the conflict reply), or the request names another Store or Host instance (a refusal). */
3505
+ 409: {
3506
+ headers: {
3507
+ [name: string]: unknown;
3508
+ };
3509
+ content: {
3510
+ "application/json": components["schemas"]["ModelInterruptionConflictReply"] | components["schemas"]["ErrorReply"];
3511
+ };
3512
+ };
3513
+ /** @description A refusal or failure. */
3514
+ default: {
3515
+ headers: {
3516
+ [name: string]: unknown;
3517
+ };
3518
+ content: {
3519
+ "application/json": components["schemas"]["ErrorReply"];
3520
+ };
3521
+ };
3522
+ };
3523
+ };
3524
+ permissionDecision: {
3525
+ parameters: {
3526
+ query?: never;
3527
+ header: {
3528
+ /** @description The wire version this document describes. Any other version is refused. */
3529
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3530
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3531
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3532
+ };
3533
+ path?: never;
3534
+ cookie?: never;
3535
+ };
3536
+ requestBody: {
3537
+ content: {
3538
+ "application/json": components["schemas"]["PermissionDecisionRequest"];
3539
+ };
3540
+ };
3541
+ responses: {
3542
+ /** @description The reply. */
3543
+ 200: {
3544
+ headers: {
3545
+ [name: string]: unknown;
3546
+ };
3547
+ content: {
3548
+ "application/json": components["schemas"]["PermissionDecisionReply"];
3549
+ };
3550
+ };
3551
+ /** @description The key was used before with different input (the conflict reply), or the request names another Store or Host instance (a refusal). */
3552
+ 409: {
3553
+ headers: {
3554
+ [name: string]: unknown;
3555
+ };
3556
+ content: {
3557
+ "application/json": components["schemas"]["PermissionDecisionConflictReply"] | components["schemas"]["ErrorReply"];
3558
+ };
3559
+ };
3560
+ /** @description A refusal or failure. */
3561
+ default: {
3562
+ headers: {
3563
+ [name: string]: unknown;
3564
+ };
3565
+ content: {
3566
+ "application/json": components["schemas"]["ErrorReply"];
3567
+ };
3568
+ };
3569
+ };
3570
+ };
3571
+ observeCommand: {
3572
+ parameters: {
3573
+ query?: never;
3574
+ header: {
3575
+ /** @description The wire version this document describes. Any other version is refused. */
3576
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3577
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3578
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3579
+ };
3580
+ path?: never;
3581
+ cookie?: never;
3582
+ };
3583
+ requestBody: {
3584
+ content: {
3585
+ "application/json": components["schemas"]["ObserveCommandRequest"];
3586
+ };
3587
+ };
3588
+ responses: {
3589
+ /** @description The reply. */
3590
+ 200: {
3591
+ headers: {
3592
+ [name: string]: unknown;
3593
+ };
3594
+ content: {
3595
+ "application/json": components["schemas"]["ObserveCommandReply"];
3596
+ };
3597
+ };
3598
+ /** @description A refusal or failure. */
3599
+ default: {
3600
+ headers: {
3601
+ [name: string]: unknown;
3602
+ };
3603
+ content: {
3604
+ "application/json": components["schemas"]["ErrorReply"];
3605
+ };
3606
+ };
3607
+ };
3608
+ };
3609
+ readResult: {
3610
+ parameters: {
3611
+ query?: never;
3612
+ header: {
3613
+ /** @description The wire version this document describes. Any other version is refused. */
3614
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3615
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3616
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3617
+ };
3618
+ path?: never;
3619
+ cookie?: never;
3620
+ };
3621
+ requestBody: {
3622
+ content: {
3623
+ "application/json": components["schemas"]["ReadResultRequest"];
3624
+ };
3625
+ };
3626
+ responses: {
3627
+ /** @description The content, as text. */
3628
+ 200: {
3629
+ headers: {
3630
+ [name: string]: unknown;
3631
+ };
3632
+ content: {
3633
+ "text/plain": string;
3634
+ };
3635
+ };
3636
+ /** @description A refusal or failure. */
3637
+ default: {
3638
+ headers: {
3639
+ [name: string]: unknown;
3640
+ };
3641
+ content: {
3642
+ "application/json": components["schemas"]["ErrorReply"];
3643
+ };
3644
+ };
3645
+ };
3646
+ };
3647
+ readActionCallId: {
3648
+ parameters: {
3649
+ query?: never;
3650
+ header: {
3651
+ /** @description The wire version this document describes. Any other version is refused. */
3652
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3653
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3654
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3655
+ };
3656
+ path?: never;
3657
+ cookie?: never;
3658
+ };
3659
+ requestBody: {
3660
+ content: {
3661
+ "application/json": components["schemas"]["ReadActionCallIdRequest"];
3662
+ };
3663
+ };
3664
+ responses: {
3665
+ /** @description The content, as text. */
3666
+ 200: {
3667
+ headers: {
3668
+ [name: string]: unknown;
3669
+ };
3670
+ content: {
3671
+ "text/plain": string;
3672
+ };
3673
+ };
3674
+ /** @description A refusal or failure. */
3675
+ default: {
3676
+ headers: {
3677
+ [name: string]: unknown;
3678
+ };
3679
+ content: {
3680
+ "application/json": components["schemas"]["ErrorReply"];
3681
+ };
3682
+ };
3683
+ };
3684
+ };
3685
+ readActionArguments: {
3686
+ parameters: {
3687
+ query?: never;
3688
+ header: {
3689
+ /** @description The wire version this document describes. Any other version is refused. */
3690
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3691
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3692
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3693
+ };
3694
+ path?: never;
3695
+ cookie?: never;
3696
+ };
3697
+ requestBody: {
3698
+ content: {
3699
+ "application/json": components["schemas"]["ReadActionArgumentsRequest"];
3700
+ };
3701
+ };
3702
+ responses: {
3703
+ /** @description The content, as text. */
3704
+ 200: {
3705
+ headers: {
3706
+ [name: string]: unknown;
3707
+ };
3708
+ content: {
3709
+ "text/plain": string;
3710
+ };
3711
+ };
3712
+ /** @description A refusal or failure. */
3713
+ default: {
3714
+ headers: {
3715
+ [name: string]: unknown;
3716
+ };
3717
+ content: {
3718
+ "application/json": components["schemas"]["ErrorReply"];
3719
+ };
3720
+ };
3721
+ };
3722
+ };
3723
+ inspectSession: {
3724
+ parameters: {
3725
+ query?: never;
3726
+ header: {
3727
+ /** @description The wire version this document describes. Any other version is refused. */
3728
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3729
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3730
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3731
+ };
3732
+ path?: never;
3733
+ cookie?: never;
3734
+ };
3735
+ requestBody: {
3736
+ content: {
3737
+ "application/json": components["schemas"]["InspectSessionRequest"];
3738
+ };
3739
+ };
3740
+ responses: {
3741
+ /** @description The Session report, or, for a failed response export, that response's bytes. */
3742
+ 200: {
3743
+ headers: {
3744
+ [name: string]: unknown;
3745
+ };
3746
+ content: {
3747
+ "application/json": components["schemas"]["InspectSessionReply"];
3748
+ "application/octet-stream": string;
3749
+ };
3750
+ };
3751
+ /** @description A refusal or failure. */
3752
+ default: {
3753
+ headers: {
3754
+ [name: string]: unknown;
3755
+ };
3756
+ content: {
3757
+ "application/json": components["schemas"]["ErrorReply"];
3758
+ };
3759
+ };
3760
+ };
3761
+ };
3762
+ listSessions: {
3763
+ parameters: {
3764
+ query?: never;
3765
+ header: {
3766
+ /** @description The wire version this document describes. Any other version is refused. */
3767
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3768
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3769
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3770
+ };
3771
+ path?: never;
3772
+ cookie?: never;
3773
+ };
3774
+ requestBody: {
3775
+ content: {
3776
+ "application/json": components["schemas"]["ListSessionsRequest"];
3777
+ };
3778
+ };
3779
+ responses: {
3780
+ /** @description The reply. */
3781
+ 200: {
3782
+ headers: {
3783
+ [name: string]: unknown;
3784
+ };
3785
+ content: {
3786
+ "application/json": components["schemas"]["ListSessionsReply"];
3787
+ };
3788
+ };
3789
+ /** @description A refusal or failure. */
3790
+ default: {
3791
+ headers: {
3792
+ [name: string]: unknown;
3793
+ };
3794
+ content: {
3795
+ "application/json": components["schemas"]["ErrorReply"];
3796
+ };
3797
+ };
3798
+ };
3799
+ };
3800
+ conversationPage: {
3801
+ parameters: {
3802
+ query?: never;
3803
+ header: {
3804
+ /** @description The wire version this document describes. Any other version is refused. */
3805
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3806
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3807
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3808
+ };
3809
+ path?: never;
3810
+ cookie?: never;
3811
+ };
3812
+ requestBody: {
3813
+ content: {
3814
+ "application/json": components["schemas"]["ConversationPageRequest"];
3815
+ };
3816
+ };
3817
+ responses: {
3818
+ /** @description The reply. */
3819
+ 200: {
3820
+ headers: {
3821
+ [name: string]: unknown;
3822
+ };
3823
+ content: {
3824
+ "application/json": components["schemas"]["ConversationPageReply"];
3825
+ };
3826
+ };
3827
+ /** @description A refusal or failure. */
3828
+ default: {
3829
+ headers: {
3830
+ [name: string]: unknown;
3831
+ };
3832
+ content: {
3833
+ "application/json": components["schemas"]["ErrorReply"];
3834
+ };
3835
+ };
3836
+ };
3837
+ };
3838
+ conversationContent: {
3839
+ parameters: {
3840
+ query?: never;
3841
+ header: {
3842
+ /** @description The wire version this document describes. Any other version is refused. */
3843
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3844
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3845
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3846
+ };
3847
+ path?: never;
3848
+ cookie?: never;
3849
+ };
3850
+ requestBody: {
3851
+ content: {
3852
+ "application/json": components["schemas"]["ConversationContentRequest"];
3853
+ };
3854
+ };
3855
+ responses: {
3856
+ /** @description The content bytes, from the requested offset. */
3857
+ 200: {
3858
+ headers: {
3859
+ [name: string]: unknown;
3860
+ };
3861
+ content: {
3862
+ "application/octet-stream": string;
3863
+ };
3864
+ };
3865
+ /** @description A refusal or failure. */
3866
+ default: {
3867
+ headers: {
3868
+ [name: string]: unknown;
3869
+ };
3870
+ content: {
3871
+ "application/json": components["schemas"]["ErrorReply"];
3872
+ };
3873
+ };
3874
+ };
3875
+ };
3876
+ activitySearch: {
3877
+ parameters: {
3878
+ query?: never;
3879
+ header: {
3880
+ /** @description The wire version this document describes. Any other version is refused. */
3881
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3882
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3883
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3884
+ };
3885
+ path?: never;
3886
+ cookie?: never;
3887
+ };
3888
+ requestBody: {
3889
+ content: {
3890
+ "application/json": components["schemas"]["ActivitySearchRequest"];
3891
+ };
3892
+ };
3893
+ responses: {
3894
+ /** @description The reply. */
3895
+ 200: {
3896
+ headers: {
3897
+ [name: string]: unknown;
3898
+ };
3899
+ content: {
3900
+ "application/json": components["schemas"]["ActivitySearchReply"];
3901
+ };
3902
+ };
3903
+ /** @description A refusal or failure. */
3904
+ default: {
3905
+ headers: {
3906
+ [name: string]: unknown;
3907
+ };
3908
+ content: {
3909
+ "application/json": components["schemas"]["ErrorReply"];
3910
+ };
3911
+ };
3912
+ };
3913
+ };
3914
+ activityPage: {
3915
+ parameters: {
3916
+ query?: never;
3917
+ header: {
3918
+ /** @description The wire version this document describes. Any other version is refused. */
3919
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3920
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3921
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3922
+ };
3923
+ path?: never;
3924
+ cookie?: never;
3925
+ };
3926
+ requestBody: {
3927
+ content: {
3928
+ "application/json": components["schemas"]["ActivityPageRequest"];
3929
+ };
3930
+ };
3931
+ responses: {
3932
+ /** @description The reply. */
3933
+ 200: {
3934
+ headers: {
3935
+ [name: string]: unknown;
3936
+ };
3937
+ content: {
3938
+ "application/json": components["schemas"]["ActivityPageReply"];
3939
+ };
3940
+ };
3941
+ /** @description A refusal or failure. */
3942
+ default: {
3943
+ headers: {
3944
+ [name: string]: unknown;
3945
+ };
3946
+ content: {
3947
+ "application/json": components["schemas"]["ErrorReply"];
3948
+ };
3949
+ };
3950
+ };
3951
+ };
3952
+ activityContent: {
3953
+ parameters: {
3954
+ query?: never;
3955
+ header: {
3956
+ /** @description The wire version this document describes. Any other version is refused. */
3957
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3958
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3959
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3960
+ };
3961
+ path?: never;
3962
+ cookie?: never;
3963
+ };
3964
+ requestBody: {
3965
+ content: {
3966
+ "application/json": components["schemas"]["ActivityContentRequest"];
3967
+ };
3968
+ };
3969
+ responses: {
3970
+ /** @description The content bytes, from the requested offset. */
3971
+ 200: {
3972
+ headers: {
3973
+ [name: string]: unknown;
3974
+ };
3975
+ content: {
3976
+ "application/octet-stream": string;
3977
+ };
3978
+ };
3979
+ /** @description A refusal or failure. */
3980
+ default: {
3981
+ headers: {
3982
+ [name: string]: unknown;
3983
+ };
3984
+ content: {
3985
+ "application/json": components["schemas"]["ErrorReply"];
3986
+ };
3987
+ };
3988
+ };
3989
+ };
3990
+ skillSuggestions: {
3991
+ parameters: {
3992
+ query?: never;
3993
+ header: {
3994
+ /** @description The wire version this document describes. Any other version is refused. */
3995
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
3996
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
3997
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
3998
+ };
3999
+ path?: never;
4000
+ cookie?: never;
4001
+ };
4002
+ requestBody: {
4003
+ content: {
4004
+ "application/json": components["schemas"]["SkillSuggestionsRequest"];
4005
+ };
4006
+ };
4007
+ responses: {
4008
+ /** @description The reply. */
4009
+ 200: {
4010
+ headers: {
4011
+ [name: string]: unknown;
4012
+ };
4013
+ content: {
4014
+ "application/json": components["schemas"]["SkillSuggestionsReply"];
4015
+ };
4016
+ };
4017
+ /** @description A refusal or failure. */
4018
+ default: {
4019
+ headers: {
4020
+ [name: string]: unknown;
4021
+ };
4022
+ content: {
4023
+ "application/json": components["schemas"]["ErrorReply"];
4024
+ };
4025
+ };
4026
+ };
4027
+ };
4028
+ modelList: {
4029
+ parameters: {
4030
+ query?: never;
4031
+ header: {
4032
+ /** @description The wire version this document describes. Any other version is refused. */
4033
+ "X-Rui-Wire-Version": components["parameters"]["WireVersion"];
4034
+ /** @description The Host instance (from host-info) the request is meant for; a different instance refuses it. */
4035
+ "X-Rui-Host-Instance"?: components["parameters"]["HostInstance"];
4036
+ };
4037
+ path?: never;
4038
+ cookie?: never;
4039
+ };
4040
+ requestBody: {
4041
+ content: {
4042
+ "application/json": components["schemas"]["ModelListRequest"];
4043
+ };
4044
+ };
4045
+ responses: {
4046
+ /** @description The reply. */
4047
+ 200: {
4048
+ headers: {
4049
+ [name: string]: unknown;
4050
+ };
4051
+ content: {
4052
+ "application/json": components["schemas"]["ModelListReply"];
4053
+ };
4054
+ };
4055
+ /** @description A refusal or failure. */
4056
+ default: {
4057
+ headers: {
4058
+ [name: string]: unknown;
4059
+ };
4060
+ content: {
4061
+ "application/json": components["schemas"]["ErrorReply"];
4062
+ };
4063
+ };
4064
+ };
4065
+ };
4066
+ }