ruicode 0.0.0-stage → 0.69.0

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