@hosty-sdk/app 0.47.0 → 0.48.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.
@@ -0,0 +1,2800 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:hosty:agent-event:1",
4
+ "$ref": "#/$defs/Event",
5
+ "$defs": {
6
+ "ProviderRef": {
7
+ "type": "object",
8
+ "properties": {
9
+ "appId": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 256
13
+ },
14
+ "installationId": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 256
18
+ },
19
+ "key": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 256
23
+ }
24
+ },
25
+ "required": [
26
+ "appId",
27
+ "installationId",
28
+ "key"
29
+ ],
30
+ "additionalProperties": false
31
+ },
32
+ "QualifiedRef": {
33
+ "type": "object",
34
+ "properties": {
35
+ "provider": {
36
+ "$ref": "#/$defs/ProviderRef"
37
+ },
38
+ "id": {
39
+ "type": "string",
40
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
41
+ }
42
+ },
43
+ "required": [
44
+ "provider",
45
+ "id"
46
+ ],
47
+ "additionalProperties": false
48
+ },
49
+ "Instruction": {
50
+ "type": "object",
51
+ "properties": {
52
+ "id": {
53
+ "type": "string",
54
+ "minLength": 1,
55
+ "maxLength": 128
56
+ },
57
+ "text": {
58
+ "type": "string",
59
+ "maxLength": 262144
60
+ }
61
+ },
62
+ "required": [
63
+ "id",
64
+ "text"
65
+ ],
66
+ "additionalProperties": false
67
+ },
68
+ "Skill": {
69
+ "type": "object",
70
+ "properties": {
71
+ "skillId": {
72
+ "type": "string",
73
+ "pattern": "^[a-f0-9]{64}$"
74
+ },
75
+ "expectedDigest": {
76
+ "type": "string",
77
+ "pattern": "^[a-f0-9]{64}$"
78
+ }
79
+ },
80
+ "required": [
81
+ "skillId"
82
+ ],
83
+ "additionalProperties": false
84
+ },
85
+ "McpTarget": {
86
+ "oneOf": [
87
+ {
88
+ "type": "object",
89
+ "properties": {
90
+ "kind": {
91
+ "const": "core"
92
+ }
93
+ },
94
+ "required": [
95
+ "kind"
96
+ ],
97
+ "additionalProperties": false
98
+ },
99
+ {
100
+ "type": "object",
101
+ "properties": {
102
+ "kind": {
103
+ "const": "app"
104
+ },
105
+ "appId": {
106
+ "type": "string",
107
+ "minLength": 1,
108
+ "maxLength": 256
109
+ },
110
+ "installationId": {
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "maxLength": 256
114
+ },
115
+ "key": {
116
+ "type": "string",
117
+ "minLength": 1,
118
+ "maxLength": 256
119
+ }
120
+ },
121
+ "required": [
122
+ "kind",
123
+ "appId",
124
+ "installationId",
125
+ "key"
126
+ ],
127
+ "additionalProperties": false
128
+ }
129
+ ]
130
+ },
131
+ "McpPolicy": {
132
+ "type": "object",
133
+ "properties": {
134
+ "default": {
135
+ "enum": [
136
+ "ask",
137
+ "run"
138
+ ]
139
+ },
140
+ "autoAllowReadOnly": {
141
+ "type": "boolean"
142
+ },
143
+ "tools": {
144
+ "type": "object",
145
+ "maxProperties": 512,
146
+ "propertyNames": {
147
+ "type": "string",
148
+ "minLength": 1,
149
+ "maxLength": 256
150
+ },
151
+ "additionalProperties": {
152
+ "oneOf": [
153
+ {
154
+ "type": "object",
155
+ "properties": {
156
+ "mode": {
157
+ "const": "run"
158
+ },
159
+ "definition": {
160
+ "type": "string",
161
+ "pattern": "^[a-f0-9]{64}$"
162
+ }
163
+ },
164
+ "required": [
165
+ "mode",
166
+ "definition"
167
+ ],
168
+ "additionalProperties": false
169
+ },
170
+ {
171
+ "type": "object",
172
+ "properties": {
173
+ "mode": {
174
+ "enum": [
175
+ "ask",
176
+ "disabled"
177
+ ]
178
+ }
179
+ },
180
+ "required": [
181
+ "mode"
182
+ ],
183
+ "additionalProperties": false
184
+ }
185
+ ]
186
+ }
187
+ }
188
+ },
189
+ "required": [
190
+ "default"
191
+ ],
192
+ "additionalProperties": false
193
+ },
194
+ "McpSelection": {
195
+ "type": "object",
196
+ "properties": {
197
+ "targets": {
198
+ "type": "array",
199
+ "maxItems": 16,
200
+ "items": {
201
+ "type": "object",
202
+ "properties": {
203
+ "target": {
204
+ "$ref": "#/$defs/McpTarget"
205
+ },
206
+ "tools": {
207
+ "type": "array",
208
+ "maxItems": 512,
209
+ "items": {
210
+ "type": "string",
211
+ "minLength": 1,
212
+ "maxLength": 256
213
+ },
214
+ "uniqueItems": true
215
+ },
216
+ "policy": {
217
+ "$ref": "#/$defs/McpPolicy"
218
+ }
219
+ },
220
+ "required": [
221
+ "target"
222
+ ],
223
+ "additionalProperties": false
224
+ }
225
+ },
226
+ "connections": {
227
+ "type": "array",
228
+ "maxItems": 16,
229
+ "items": {
230
+ "type": "object",
231
+ "properties": {
232
+ "id": {
233
+ "type": "string",
234
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
235
+ },
236
+ "revision": {
237
+ "type": "string",
238
+ "pattern": "^[1-9][0-9]{0,39}$"
239
+ }
240
+ },
241
+ "required": [
242
+ "id",
243
+ "revision"
244
+ ],
245
+ "additionalProperties": false
246
+ }
247
+ }
248
+ },
249
+ "required": [],
250
+ "additionalProperties": false
251
+ },
252
+ "Configuration": {
253
+ "type": "object",
254
+ "properties": {
255
+ "connection": {
256
+ "type": "object",
257
+ "properties": {
258
+ "id": {
259
+ "type": "string",
260
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
261
+ },
262
+ "revision": {
263
+ "type": "string",
264
+ "pattern": "^[1-9][0-9]{0,39}$"
265
+ }
266
+ },
267
+ "required": [
268
+ "id",
269
+ "revision"
270
+ ],
271
+ "additionalProperties": false
272
+ },
273
+ "instructions": {
274
+ "type": "array",
275
+ "maxItems": 16,
276
+ "items": {
277
+ "$ref": "#/$defs/Instruction"
278
+ }
279
+ },
280
+ "systemPrompt": {
281
+ "type": "object",
282
+ "properties": {
283
+ "mode": {
284
+ "const": "append"
285
+ },
286
+ "text": {
287
+ "type": "string",
288
+ "maxLength": 262144
289
+ }
290
+ },
291
+ "required": [
292
+ "mode",
293
+ "text"
294
+ ],
295
+ "additionalProperties": false
296
+ },
297
+ "skills": {
298
+ "type": "array",
299
+ "maxItems": 202,
300
+ "items": {
301
+ "$ref": "#/$defs/Skill"
302
+ }
303
+ },
304
+ "nativeTools": {
305
+ "enum": [
306
+ "provider_default",
307
+ "none"
308
+ ]
309
+ },
310
+ "approvalMode": {
311
+ "enum": [
312
+ "normal",
313
+ "autonomous"
314
+ ]
315
+ },
316
+ "predictions": {
317
+ "type": "object",
318
+ "properties": {
319
+ "enabled": {
320
+ "type": "boolean"
321
+ }
322
+ },
323
+ "required": [
324
+ "enabled"
325
+ ],
326
+ "additionalProperties": false
327
+ },
328
+ "subagents": {
329
+ "type": "object",
330
+ "properties": {
331
+ "enabled": {
332
+ "type": "boolean"
333
+ },
334
+ "maxConcurrency": {
335
+ "type": "integer",
336
+ "minimum": 1,
337
+ "maximum": 128
338
+ }
339
+ },
340
+ "required": [
341
+ "enabled"
342
+ ],
343
+ "additionalProperties": false
344
+ }
345
+ },
346
+ "required": [
347
+ "connection"
348
+ ],
349
+ "additionalProperties": false
350
+ },
351
+ "SessionCreate": {
352
+ "type": "object",
353
+ "properties": {
354
+ "configuration": {
355
+ "$ref": "#/$defs/Configuration"
356
+ },
357
+ "requiredCapabilities": {
358
+ "type": "array",
359
+ "maxItems": 128,
360
+ "items": {
361
+ "type": "string",
362
+ "minLength": 1,
363
+ "maxLength": 256,
364
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)*$"
365
+ },
366
+ "uniqueItems": true
367
+ },
368
+ "correlation": {
369
+ "type": "object",
370
+ "properties": {
371
+ "conversation": {
372
+ "$ref": "#/$defs/QualifiedRef"
373
+ },
374
+ "task": {
375
+ "$ref": "#/$defs/QualifiedRef"
376
+ }
377
+ },
378
+ "required": [],
379
+ "additionalProperties": false
380
+ }
381
+ },
382
+ "required": [
383
+ "configuration"
384
+ ],
385
+ "additionalProperties": false
386
+ },
387
+ "ConfigurationCreate": {
388
+ "type": "object",
389
+ "properties": {
390
+ "requestId": {
391
+ "type": "string",
392
+ "format": "uuid"
393
+ },
394
+ "expectedSessionRevision": {
395
+ "type": "string",
396
+ "pattern": "^[1-9][0-9]{0,39}$"
397
+ },
398
+ "configuration": {
399
+ "$ref": "#/$defs/Configuration"
400
+ },
401
+ "requiredCapabilities": {
402
+ "type": "array",
403
+ "maxItems": 128,
404
+ "items": {
405
+ "type": "string",
406
+ "minLength": 1,
407
+ "maxLength": 256,
408
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)*$"
409
+ },
410
+ "uniqueItems": true
411
+ }
412
+ },
413
+ "required": [
414
+ "requestId",
415
+ "expectedSessionRevision",
416
+ "configuration"
417
+ ],
418
+ "additionalProperties": false
419
+ },
420
+ "Attachment": {
421
+ "type": "object",
422
+ "properties": {
423
+ "owner": {
424
+ "$ref": "#/$defs/ProviderRef"
425
+ },
426
+ "id": {
427
+ "type": "string",
428
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
429
+ },
430
+ "digest": {
431
+ "type": "string",
432
+ "pattern": "^[a-f0-9]{64}$"
433
+ },
434
+ "sizeBytes": {
435
+ "type": "integer",
436
+ "minimum": 0,
437
+ "maximum": 9007199254740991
438
+ },
439
+ "mediaType": {
440
+ "type": "string",
441
+ "minLength": 1,
442
+ "maxLength": 128
443
+ },
444
+ "name": {
445
+ "type": "string",
446
+ "minLength": 1,
447
+ "maxLength": 256
448
+ }
449
+ },
450
+ "required": [
451
+ "owner",
452
+ "id",
453
+ "digest",
454
+ "sizeBytes",
455
+ "mediaType"
456
+ ],
457
+ "additionalProperties": false
458
+ },
459
+ "AttachmentChunk": {
460
+ "type": "object",
461
+ "properties": {
462
+ "digest": {
463
+ "type": "string",
464
+ "pattern": "^[a-f0-9]{64}$"
465
+ },
466
+ "sizeBytes": {
467
+ "type": "integer",
468
+ "minimum": 0,
469
+ "maximum": 26214400
470
+ },
471
+ "mediaType": {
472
+ "type": "string",
473
+ "minLength": 1,
474
+ "maxLength": 128
475
+ },
476
+ "name": {
477
+ "type": "string",
478
+ "minLength": 1,
479
+ "maxLength": 256
480
+ },
481
+ "count": {
482
+ "type": "integer",
483
+ "minimum": 1,
484
+ "maximum": 50
485
+ },
486
+ "data": {
487
+ "type": "string",
488
+ "maxLength": 699052,
489
+ "contentEncoding": "base64"
490
+ }
491
+ },
492
+ "required": [
493
+ "digest",
494
+ "sizeBytes",
495
+ "mediaType",
496
+ "count",
497
+ "data"
498
+ ],
499
+ "additionalProperties": false
500
+ },
501
+ "AttachmentChunkReceipt": {
502
+ "type": "object",
503
+ "properties": {
504
+ "attachment": {
505
+ "oneOf": [
506
+ {
507
+ "$ref": "#/$defs/Attachment"
508
+ },
509
+ {
510
+ "type": "null"
511
+ }
512
+ ]
513
+ },
514
+ "received": {
515
+ "type": "array",
516
+ "maxItems": 50,
517
+ "items": {
518
+ "type": "integer",
519
+ "minimum": 0,
520
+ "maximum": 49
521
+ },
522
+ "uniqueItems": true
523
+ }
524
+ },
525
+ "required": [
526
+ "attachment",
527
+ "received"
528
+ ],
529
+ "additionalProperties": false
530
+ },
531
+ "Resource": {
532
+ "type": "object",
533
+ "properties": {
534
+ "kind": {
535
+ "type": "string",
536
+ "minLength": 1,
537
+ "maxLength": 64
538
+ },
539
+ "id": {
540
+ "type": "string",
541
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
542
+ },
543
+ "revision": {
544
+ "type": "string",
545
+ "minLength": 1,
546
+ "maxLength": 256
547
+ },
548
+ "provider": {
549
+ "$ref": "#/$defs/ProviderRef"
550
+ }
551
+ },
552
+ "required": [
553
+ "kind",
554
+ "id",
555
+ "revision"
556
+ ],
557
+ "additionalProperties": false
558
+ },
559
+ "Selection": {
560
+ "type": "object",
561
+ "properties": {
562
+ "model": {
563
+ "type": [
564
+ "string",
565
+ "null"
566
+ ],
567
+ "maxLength": 256
568
+ },
569
+ "reasoningEffort": {
570
+ "type": [
571
+ "string",
572
+ "null"
573
+ ],
574
+ "maxLength": 256
575
+ }
576
+ },
577
+ "required": [
578
+ "model",
579
+ "reasoningEffort"
580
+ ],
581
+ "additionalProperties": false
582
+ },
583
+ "RunInput": {
584
+ "type": "object",
585
+ "properties": {
586
+ "expectedSessionRevision": {
587
+ "type": "string",
588
+ "pattern": "^[1-9][0-9]{0,39}$"
589
+ },
590
+ "configurationRevision": {
591
+ "type": "string",
592
+ "pattern": "^[1-9][0-9]{0,39}$"
593
+ },
594
+ "continuation": {
595
+ "enum": [
596
+ "start",
597
+ "resume"
598
+ ]
599
+ },
600
+ "input": {
601
+ "oneOf": [
602
+ {
603
+ "type": "object",
604
+ "properties": {
605
+ "text": {
606
+ "type": "string",
607
+ "minLength": 1,
608
+ "maxLength": 1048576
609
+ },
610
+ "attachments": {
611
+ "type": "array",
612
+ "maxItems": 20,
613
+ "items": {
614
+ "$ref": "#/$defs/Attachment"
615
+ }
616
+ }
617
+ },
618
+ "required": [
619
+ "text"
620
+ ],
621
+ "additionalProperties": false
622
+ },
623
+ {
624
+ "type": "object",
625
+ "properties": {
626
+ "decisionResponseRef": {
627
+ "type": "object",
628
+ "properties": {
629
+ "runId": {
630
+ "type": "string",
631
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
632
+ },
633
+ "requestId": {
634
+ "type": "string",
635
+ "format": "uuid"
636
+ }
637
+ },
638
+ "required": [
639
+ "runId",
640
+ "requestId"
641
+ ],
642
+ "additionalProperties": false
643
+ }
644
+ },
645
+ "required": [
646
+ "decisionResponseRef"
647
+ ],
648
+ "additionalProperties": false
649
+ }
650
+ ]
651
+ },
652
+ "context": {
653
+ "type": "array",
654
+ "maxItems": 16,
655
+ "items": {
656
+ "$ref": "#/$defs/Instruction"
657
+ }
658
+ },
659
+ "selection": {
660
+ "$ref": "#/$defs/Selection"
661
+ },
662
+ "resources": {
663
+ "type": "array",
664
+ "maxItems": 16,
665
+ "items": {
666
+ "$ref": "#/$defs/Resource"
667
+ }
668
+ },
669
+ "mcp": {
670
+ "$ref": "#/$defs/McpSelection"
671
+ },
672
+ "requiredCapabilities": {
673
+ "type": "array",
674
+ "maxItems": 128,
675
+ "items": {
676
+ "type": "string",
677
+ "minLength": 1,
678
+ "maxLength": 256,
679
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)*$"
680
+ },
681
+ "uniqueItems": true
682
+ },
683
+ "limits": {
684
+ "type": "object",
685
+ "properties": {
686
+ "maxDurationMs": {
687
+ "type": "integer",
688
+ "minimum": 1,
689
+ "maximum": 9007199254740991
690
+ },
691
+ "maxOutputTokens": {
692
+ "type": "integer",
693
+ "minimum": 1,
694
+ "maximum": 9007199254740991
695
+ },
696
+ "maxToolCalls": {
697
+ "type": "integer",
698
+ "minimum": 1,
699
+ "maximum": 9007199254740991
700
+ }
701
+ },
702
+ "required": [],
703
+ "additionalProperties": false
704
+ }
705
+ },
706
+ "required": [
707
+ "expectedSessionRevision",
708
+ "configurationRevision",
709
+ "continuation",
710
+ "input"
711
+ ],
712
+ "additionalProperties": false
713
+ },
714
+ "DecisionResponse": {
715
+ "oneOf": [
716
+ {
717
+ "type": "object",
718
+ "properties": {
719
+ "kind": {
720
+ "const": "approval"
721
+ },
722
+ "decision": {
723
+ "enum": [
724
+ "allow",
725
+ "deny"
726
+ ]
727
+ },
728
+ "message": {
729
+ "type": "string",
730
+ "maxLength": 65536
731
+ }
732
+ },
733
+ "required": [
734
+ "kind",
735
+ "decision"
736
+ ],
737
+ "additionalProperties": false
738
+ },
739
+ {
740
+ "type": "object",
741
+ "properties": {
742
+ "kind": {
743
+ "const": "question"
744
+ },
745
+ "answers": {
746
+ "type": "object",
747
+ "maxProperties": 128,
748
+ "propertyNames": {
749
+ "type": "string",
750
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
751
+ },
752
+ "additionalProperties": {
753
+ "oneOf": [
754
+ {
755
+ "type": "string",
756
+ "maxLength": 65536
757
+ },
758
+ {
759
+ "type": "array",
760
+ "maxItems": 128,
761
+ "items": {
762
+ "type": "string",
763
+ "maxLength": 65536
764
+ }
765
+ }
766
+ ]
767
+ }
768
+ }
769
+ },
770
+ "required": [
771
+ "kind",
772
+ "answers"
773
+ ],
774
+ "additionalProperties": false
775
+ }
776
+ ]
777
+ },
778
+ "ResponseInput": {
779
+ "type": "object",
780
+ "properties": {
781
+ "requestId": {
782
+ "type": "string",
783
+ "format": "uuid"
784
+ },
785
+ "expectedGeneration": {
786
+ "type": "string",
787
+ "format": "uuid"
788
+ },
789
+ "expectedRevision": {
790
+ "type": "string",
791
+ "pattern": "^[1-9][0-9]{0,39}$"
792
+ },
793
+ "decisionId": {
794
+ "type": "string",
795
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
796
+ },
797
+ "decisionRevision": {
798
+ "type": "string",
799
+ "pattern": "^[1-9][0-9]{0,39}$"
800
+ },
801
+ "response": {
802
+ "$ref": "#/$defs/DecisionResponse"
803
+ }
804
+ },
805
+ "required": [
806
+ "requestId",
807
+ "expectedGeneration",
808
+ "expectedRevision",
809
+ "decisionId",
810
+ "decisionRevision",
811
+ "response"
812
+ ],
813
+ "additionalProperties": false
814
+ },
815
+ "CancelInput": {
816
+ "oneOf": [
817
+ {
818
+ "type": "object",
819
+ "properties": {
820
+ "requestId": {
821
+ "type": "string",
822
+ "format": "uuid"
823
+ },
824
+ "expectedGeneration": {
825
+ "type": "string",
826
+ "format": "uuid"
827
+ },
828
+ "expectedRevision": {
829
+ "type": "string",
830
+ "pattern": "^[1-9][0-9]{0,39}$"
831
+ }
832
+ },
833
+ "required": [
834
+ "requestId",
835
+ "expectedGeneration",
836
+ "expectedRevision"
837
+ ],
838
+ "additionalProperties": false
839
+ },
840
+ {
841
+ "type": "object",
842
+ "properties": {
843
+ "requestId": {
844
+ "type": "string",
845
+ "format": "uuid"
846
+ },
847
+ "fenceIfNotAdmitted": {
848
+ "type": "object",
849
+ "properties": {
850
+ "sessionId": {
851
+ "type": "string",
852
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
853
+ },
854
+ "startDigest": {
855
+ "type": "string",
856
+ "pattern": "^[a-f0-9]{64}$"
857
+ }
858
+ },
859
+ "required": [
860
+ "sessionId",
861
+ "startDigest"
862
+ ],
863
+ "additionalProperties": false
864
+ }
865
+ },
866
+ "required": [
867
+ "requestId",
868
+ "fenceIfNotAdmitted"
869
+ ],
870
+ "additionalProperties": false
871
+ }
872
+ ]
873
+ },
874
+ "ControlInput": {
875
+ "oneOf": [
876
+ {
877
+ "type": "object",
878
+ "properties": {
879
+ "requestId": {
880
+ "type": "string",
881
+ "format": "uuid"
882
+ },
883
+ "expectedGeneration": {
884
+ "type": "string",
885
+ "format": "uuid"
886
+ },
887
+ "expectedRevision": {
888
+ "type": "string",
889
+ "pattern": "^[1-9][0-9]{0,39}$"
890
+ },
891
+ "command": {
892
+ "const": "park"
893
+ },
894
+ "decisionId": {
895
+ "type": "string",
896
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
897
+ },
898
+ "decisionRevision": {
899
+ "type": "string",
900
+ "pattern": "^[1-9][0-9]{0,39}$"
901
+ },
902
+ "reason": {
903
+ "type": "string",
904
+ "minLength": 1,
905
+ "maxLength": 8192
906
+ }
907
+ },
908
+ "required": [
909
+ "requestId",
910
+ "expectedGeneration",
911
+ "expectedRevision",
912
+ "command",
913
+ "decisionId",
914
+ "decisionRevision"
915
+ ],
916
+ "additionalProperties": false
917
+ },
918
+ {
919
+ "type": "object",
920
+ "properties": {
921
+ "requestId": {
922
+ "type": "string",
923
+ "format": "uuid"
924
+ },
925
+ "expectedGeneration": {
926
+ "type": "string",
927
+ "format": "uuid"
928
+ },
929
+ "expectedRevision": {
930
+ "type": "string",
931
+ "pattern": "^[1-9][0-9]{0,39}$"
932
+ },
933
+ "command": {
934
+ "const": "barrier"
935
+ },
936
+ "barrierId": {
937
+ "type": "string",
938
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
939
+ },
940
+ "kind": {
941
+ "enum": [
942
+ "task_adoption",
943
+ "child_wait",
944
+ "source_rebind",
945
+ "limits",
946
+ "human_input"
947
+ ]
948
+ },
949
+ "generation": {
950
+ "type": "string",
951
+ "pattern": "^[1-9][0-9]{0,39}$"
952
+ },
953
+ "acknowledgedSequence": {
954
+ "type": "string",
955
+ "pattern": "^(0|[1-9][0-9]{0,39})$"
956
+ },
957
+ "snapshot": {
958
+ "type": "string",
959
+ "minLength": 1,
960
+ "maxLength": 8192
961
+ }
962
+ },
963
+ "required": [
964
+ "requestId",
965
+ "expectedGeneration",
966
+ "expectedRevision",
967
+ "command",
968
+ "barrierId",
969
+ "kind",
970
+ "generation",
971
+ "acknowledgedSequence"
972
+ ],
973
+ "additionalProperties": false
974
+ },
975
+ {
976
+ "type": "object",
977
+ "properties": {
978
+ "requestId": {
979
+ "type": "string",
980
+ "format": "uuid"
981
+ },
982
+ "expectedGeneration": {
983
+ "type": "string",
984
+ "format": "uuid"
985
+ },
986
+ "expectedRevision": {
987
+ "type": "string",
988
+ "pattern": "^[1-9][0-9]{0,39}$"
989
+ },
990
+ "command": {
991
+ "const": "reconcile"
992
+ },
993
+ "stopped": {
994
+ "const": true
995
+ },
996
+ "evidence": {
997
+ "type": "string",
998
+ "minLength": 1,
999
+ "maxLength": 8192
1000
+ }
1001
+ },
1002
+ "required": [
1003
+ "requestId",
1004
+ "expectedGeneration",
1005
+ "expectedRevision",
1006
+ "command",
1007
+ "stopped"
1008
+ ],
1009
+ "additionalProperties": false
1010
+ },
1011
+ {
1012
+ "type": "object",
1013
+ "properties": {
1014
+ "requestId": {
1015
+ "type": "string",
1016
+ "format": "uuid"
1017
+ },
1018
+ "expectedGeneration": {
1019
+ "type": "string",
1020
+ "format": "uuid"
1021
+ },
1022
+ "expectedRevision": {
1023
+ "type": "string",
1024
+ "pattern": "^[1-9][0-9]{0,39}$"
1025
+ },
1026
+ "command": {
1027
+ "const": "liveConfigure"
1028
+ },
1029
+ "mcp": {
1030
+ "$ref": "#/$defs/McpSelection"
1031
+ }
1032
+ },
1033
+ "required": [
1034
+ "requestId",
1035
+ "expectedGeneration",
1036
+ "expectedRevision",
1037
+ "command",
1038
+ "mcp"
1039
+ ],
1040
+ "additionalProperties": false
1041
+ },
1042
+ {
1043
+ "type": "object",
1044
+ "properties": {
1045
+ "requestId": {
1046
+ "type": "string",
1047
+ "format": "uuid"
1048
+ },
1049
+ "expectedGeneration": {
1050
+ "type": "string",
1051
+ "format": "uuid"
1052
+ },
1053
+ "expectedRevision": {
1054
+ "type": "string",
1055
+ "pattern": "^[1-9][0-9]{0,39}$"
1056
+ },
1057
+ "command": {
1058
+ "const": "mcpPolicy"
1059
+ },
1060
+ "mcp": {
1061
+ "$ref": "#/$defs/McpSelection"
1062
+ }
1063
+ },
1064
+ "required": [
1065
+ "requestId",
1066
+ "expectedGeneration",
1067
+ "expectedRevision",
1068
+ "command",
1069
+ "mcp"
1070
+ ],
1071
+ "additionalProperties": false
1072
+ },
1073
+ {
1074
+ "type": "object",
1075
+ "properties": {
1076
+ "requestId": {
1077
+ "type": "string",
1078
+ "format": "uuid"
1079
+ },
1080
+ "expectedGeneration": {
1081
+ "type": "string",
1082
+ "format": "uuid"
1083
+ },
1084
+ "expectedRevision": {
1085
+ "type": "string",
1086
+ "pattern": "^[1-9][0-9]{0,39}$"
1087
+ },
1088
+ "command": {
1089
+ "const": "predictions"
1090
+ },
1091
+ "enabled": {
1092
+ "type": "boolean"
1093
+ }
1094
+ },
1095
+ "required": [
1096
+ "requestId",
1097
+ "expectedGeneration",
1098
+ "expectedRevision",
1099
+ "command",
1100
+ "enabled"
1101
+ ],
1102
+ "additionalProperties": false
1103
+ }
1104
+ ]
1105
+ },
1106
+ "Source": {
1107
+ "type": "object",
1108
+ "properties": {
1109
+ "agentId": {
1110
+ "type": "string",
1111
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1112
+ },
1113
+ "parentAgentId": {
1114
+ "type": "string",
1115
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1116
+ },
1117
+ "parentToolCallId": {
1118
+ "type": "string",
1119
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1120
+ }
1121
+ },
1122
+ "required": [
1123
+ "agentId"
1124
+ ],
1125
+ "additionalProperties": false
1126
+ },
1127
+ "PendingDecision": {
1128
+ "type": "object",
1129
+ "properties": {
1130
+ "id": {
1131
+ "type": "string",
1132
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1133
+ },
1134
+ "revision": {
1135
+ "type": "string",
1136
+ "pattern": "^[1-9][0-9]{0,39}$"
1137
+ },
1138
+ "kind": {
1139
+ "enum": [
1140
+ "approval",
1141
+ "question"
1142
+ ]
1143
+ },
1144
+ "delivery": {
1145
+ "enum": [
1146
+ "continue_run",
1147
+ "next_turn"
1148
+ ]
1149
+ },
1150
+ "source": {
1151
+ "$ref": "#/$defs/Source"
1152
+ },
1153
+ "title": {
1154
+ "type": "string",
1155
+ "minLength": 1,
1156
+ "maxLength": 65536
1157
+ },
1158
+ "toolCallId": {
1159
+ "type": "string",
1160
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1161
+ },
1162
+ "toolName": {
1163
+ "type": "string",
1164
+ "minLength": 1,
1165
+ "maxLength": 256
1166
+ },
1167
+ "input": {},
1168
+ "questions": {
1169
+ "type": "array",
1170
+ "maxItems": 128,
1171
+ "items": {
1172
+ "type": "object",
1173
+ "properties": {
1174
+ "id": {
1175
+ "type": "string",
1176
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1177
+ },
1178
+ "text": {
1179
+ "type": "string",
1180
+ "minLength": 1,
1181
+ "maxLength": 65536
1182
+ },
1183
+ "header": {
1184
+ "type": "string",
1185
+ "minLength": 1,
1186
+ "maxLength": 1024
1187
+ },
1188
+ "allowText": {
1189
+ "type": "boolean"
1190
+ },
1191
+ "multiple": {
1192
+ "type": "boolean"
1193
+ },
1194
+ "required": {
1195
+ "type": "boolean"
1196
+ },
1197
+ "options": {
1198
+ "type": "array",
1199
+ "maxItems": 128,
1200
+ "items": {
1201
+ "type": "object",
1202
+ "properties": {
1203
+ "id": {
1204
+ "type": "string",
1205
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1206
+ },
1207
+ "label": {
1208
+ "type": "string",
1209
+ "minLength": 1,
1210
+ "maxLength": 8192
1211
+ },
1212
+ "description": {
1213
+ "type": "string",
1214
+ "minLength": 1,
1215
+ "maxLength": 8192
1216
+ },
1217
+ "preview": {
1218
+ "type": "string",
1219
+ "minLength": 1,
1220
+ "maxLength": 65536
1221
+ }
1222
+ },
1223
+ "required": [
1224
+ "id",
1225
+ "label"
1226
+ ],
1227
+ "additionalProperties": false
1228
+ }
1229
+ }
1230
+ },
1231
+ "required": [
1232
+ "id",
1233
+ "text"
1234
+ ],
1235
+ "additionalProperties": false
1236
+ }
1237
+ }
1238
+ },
1239
+ "required": [
1240
+ "id",
1241
+ "revision",
1242
+ "kind",
1243
+ "delivery"
1244
+ ],
1245
+ "additionalProperties": true
1246
+ },
1247
+ "Result": {
1248
+ "type": "object",
1249
+ "properties": {
1250
+ "status": {
1251
+ "enum": [
1252
+ "succeeded",
1253
+ "failed",
1254
+ "cancelled"
1255
+ ]
1256
+ },
1257
+ "messageId": {
1258
+ "type": "string",
1259
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1260
+ },
1261
+ "text": {
1262
+ "type": "string",
1263
+ "maxLength": 1048576
1264
+ },
1265
+ "value": {},
1266
+ "schemaValid": {
1267
+ "type": "boolean"
1268
+ },
1269
+ "error": {
1270
+ "$ref": "#/$defs/ErrorDetail"
1271
+ }
1272
+ },
1273
+ "required": [
1274
+ "status"
1275
+ ],
1276
+ "additionalProperties": true
1277
+ },
1278
+ "Message": {
1279
+ "type": "object",
1280
+ "properties": {
1281
+ "id": {
1282
+ "type": "string",
1283
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1284
+ },
1285
+ "source": {
1286
+ "$ref": "#/$defs/Source"
1287
+ },
1288
+ "role": {
1289
+ "enum": [
1290
+ "assistant",
1291
+ "user",
1292
+ "system"
1293
+ ]
1294
+ },
1295
+ "text": {
1296
+ "type": "string",
1297
+ "maxLength": 1048576
1298
+ },
1299
+ "state": {
1300
+ "enum": [
1301
+ "streaming",
1302
+ "complete",
1303
+ "interrupted"
1304
+ ]
1305
+ }
1306
+ },
1307
+ "required": [
1308
+ "id",
1309
+ "role",
1310
+ "text",
1311
+ "state"
1312
+ ],
1313
+ "additionalProperties": true
1314
+ },
1315
+ "Tool": {
1316
+ "type": "object",
1317
+ "properties": {
1318
+ "id": {
1319
+ "type": "string",
1320
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1321
+ },
1322
+ "source": {
1323
+ "$ref": "#/$defs/Source"
1324
+ },
1325
+ "name": {
1326
+ "type": "string",
1327
+ "minLength": 1,
1328
+ "maxLength": 256
1329
+ },
1330
+ "input": {},
1331
+ "output": {
1332
+ "type": "string",
1333
+ "maxLength": 1048576
1334
+ },
1335
+ "state": {
1336
+ "enum": [
1337
+ "running",
1338
+ "completed",
1339
+ "failed",
1340
+ "cancelled",
1341
+ "unknown"
1342
+ ]
1343
+ },
1344
+ "truncated": {
1345
+ "type": "boolean"
1346
+ },
1347
+ "command": {
1348
+ "type": "object",
1349
+ "properties": {
1350
+ "status": {
1351
+ "enum": [
1352
+ "completed",
1353
+ "failed",
1354
+ "cancelled",
1355
+ "unknown"
1356
+ ]
1357
+ },
1358
+ "exitCode": {
1359
+ "type": "integer"
1360
+ },
1361
+ "durationMs": {
1362
+ "type": "integer",
1363
+ "minimum": 0
1364
+ },
1365
+ "summary": {
1366
+ "type": "string",
1367
+ "minLength": 1,
1368
+ "maxLength": 65536
1369
+ }
1370
+ },
1371
+ "required": [
1372
+ "status"
1373
+ ],
1374
+ "additionalProperties": false
1375
+ }
1376
+ },
1377
+ "required": [
1378
+ "id",
1379
+ "name",
1380
+ "state"
1381
+ ],
1382
+ "additionalProperties": true
1383
+ },
1384
+ "RunSnapshot": {
1385
+ "type": "object",
1386
+ "properties": {
1387
+ "ref": {
1388
+ "$ref": "#/$defs/QualifiedRef"
1389
+ },
1390
+ "sessionId": {
1391
+ "type": "string",
1392
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1393
+ },
1394
+ "generation": {
1395
+ "type": "string",
1396
+ "format": "uuid"
1397
+ },
1398
+ "revision": {
1399
+ "type": "string",
1400
+ "pattern": "^(0|[1-9][0-9]{0,39})$"
1401
+ },
1402
+ "state": {
1403
+ "enum": [
1404
+ "queued",
1405
+ "running",
1406
+ "waiting_for_input",
1407
+ "succeeded",
1408
+ "failed",
1409
+ "cancelled",
1410
+ "unknown"
1411
+ ]
1412
+ },
1413
+ "phase": {
1414
+ "enum": [
1415
+ "preparing",
1416
+ "executing",
1417
+ "waiting",
1418
+ "finalizing",
1419
+ "cancelling",
1420
+ "parked",
1421
+ "interrupted",
1422
+ "terminal"
1423
+ ]
1424
+ },
1425
+ "stopConfirmed": {
1426
+ "type": "boolean"
1427
+ },
1428
+ "freshness": {
1429
+ "enum": [
1430
+ "current",
1431
+ "last_known",
1432
+ "unavailable"
1433
+ ]
1434
+ },
1435
+ "observedAt": {
1436
+ "type": "string",
1437
+ "format": "date-time"
1438
+ },
1439
+ "configurationRevision": {
1440
+ "type": "string",
1441
+ "pattern": "^[1-9][0-9]{0,39}$"
1442
+ },
1443
+ "lastSequence": {
1444
+ "type": "string",
1445
+ "pattern": "^(0|[1-9][0-9]{0,39})$"
1446
+ },
1447
+ "cursor": {
1448
+ "type": "string",
1449
+ "minLength": 1,
1450
+ "maxLength": 8192
1451
+ },
1452
+ "pending": {
1453
+ "type": "array",
1454
+ "maxItems": 256,
1455
+ "items": {
1456
+ "$ref": "#/$defs/PendingDecision"
1457
+ }
1458
+ },
1459
+ "effects": {
1460
+ "type": "object",
1461
+ "properties": {
1462
+ "certainty": {
1463
+ "enum": [
1464
+ "known",
1465
+ "unknown"
1466
+ ]
1467
+ },
1468
+ "unresolvedCallIds": {
1469
+ "type": "array",
1470
+ "maxItems": 1024,
1471
+ "items": {
1472
+ "type": "string",
1473
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1474
+ },
1475
+ "uniqueItems": true
1476
+ }
1477
+ },
1478
+ "required": [
1479
+ "certainty",
1480
+ "unresolvedCallIds"
1481
+ ],
1482
+ "additionalProperties": false
1483
+ },
1484
+ "result": {
1485
+ "$ref": "#/$defs/Result"
1486
+ },
1487
+ "messages": {
1488
+ "type": "array",
1489
+ "maxItems": 4096,
1490
+ "items": {
1491
+ "$ref": "#/$defs/Message"
1492
+ }
1493
+ },
1494
+ "tools": {
1495
+ "type": "array",
1496
+ "maxItems": 4096,
1497
+ "items": {
1498
+ "$ref": "#/$defs/Tool"
1499
+ }
1500
+ },
1501
+ "agents": {
1502
+ "type": "array",
1503
+ "maxItems": 1024,
1504
+ "items": {
1505
+ "type": "object",
1506
+ "properties": {
1507
+ "agentId": {
1508
+ "type": "string",
1509
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1510
+ },
1511
+ "parentAgentId": {
1512
+ "type": "string",
1513
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1514
+ },
1515
+ "parentToolCallId": {
1516
+ "type": "string",
1517
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1518
+ },
1519
+ "state": {
1520
+ "enum": [
1521
+ "queued",
1522
+ "running",
1523
+ "waiting_for_input",
1524
+ "succeeded",
1525
+ "failed",
1526
+ "cancelled",
1527
+ "unknown"
1528
+ ]
1529
+ },
1530
+ "stopConfirmed": {
1531
+ "type": "boolean"
1532
+ }
1533
+ },
1534
+ "required": [
1535
+ "agentId",
1536
+ "state"
1537
+ ],
1538
+ "additionalProperties": true
1539
+ }
1540
+ },
1541
+ "selection": {
1542
+ "type": "object",
1543
+ "properties": {
1544
+ "requested": {
1545
+ "$ref": "#/$defs/Selection"
1546
+ },
1547
+ "effective": {
1548
+ "$ref": "#/$defs/Selection"
1549
+ }
1550
+ },
1551
+ "required": [
1552
+ "requested",
1553
+ "effective"
1554
+ ],
1555
+ "additionalProperties": false
1556
+ },
1557
+ "admissionRef": {
1558
+ "type": "string",
1559
+ "minLength": 1,
1560
+ "maxLength": 256
1561
+ },
1562
+ "coverage": {
1563
+ "type": "object",
1564
+ "properties": {
1565
+ "messages": {
1566
+ "enum": [
1567
+ "complete",
1568
+ "truncated"
1569
+ ]
1570
+ },
1571
+ "tools": {
1572
+ "enum": [
1573
+ "complete",
1574
+ "truncated"
1575
+ ]
1576
+ },
1577
+ "decisions": {
1578
+ "enum": [
1579
+ "complete",
1580
+ "truncated"
1581
+ ]
1582
+ }
1583
+ },
1584
+ "required": [
1585
+ "messages",
1586
+ "tools"
1587
+ ],
1588
+ "additionalProperties": false
1589
+ },
1590
+ "executionUsage": {
1591
+ "type": "object",
1592
+ "properties": {
1593
+ "sequence": {
1594
+ "type": "string",
1595
+ "pattern": "^(0|[1-9][0-9]{0,39})$"
1596
+ },
1597
+ "activeMs": {
1598
+ "type": "integer",
1599
+ "minimum": 0,
1600
+ "maximum": 9007199254740991
1601
+ },
1602
+ "unknown": {
1603
+ "type": "boolean"
1604
+ }
1605
+ },
1606
+ "required": [
1607
+ "sequence",
1608
+ "activeMs",
1609
+ "unknown"
1610
+ ],
1611
+ "additionalProperties": false
1612
+ },
1613
+ "latestContext": {
1614
+ "type": "object",
1615
+ "properties": {
1616
+ "sequence": {
1617
+ "type": "string",
1618
+ "pattern": "^[1-9][0-9]{0,39}$"
1619
+ },
1620
+ "usage": {
1621
+ "type": [
1622
+ "object",
1623
+ "null"
1624
+ ],
1625
+ "additionalProperties": true
1626
+ }
1627
+ },
1628
+ "required": [
1629
+ "sequence",
1630
+ "usage"
1631
+ ],
1632
+ "additionalProperties": false,
1633
+ "description": "Latest root context.updated observation within the snapshot watermark; its canonical positive sequence is at most lastSequence. Null usage explicitly clears the observation. Absence means no retained observation. Payloads share the bounded snapshot/event JSON byte allowance."
1634
+ },
1635
+ "decisions": {
1636
+ "type": "array",
1637
+ "maxItems": 256,
1638
+ "items": {
1639
+ "type": "object",
1640
+ "properties": {
1641
+ "decision": {
1642
+ "$ref": "#/$defs/PendingDecision"
1643
+ },
1644
+ "state": {
1645
+ "enum": [
1646
+ "pending",
1647
+ "resolved",
1648
+ "superseded",
1649
+ "unknown"
1650
+ ]
1651
+ },
1652
+ "response": {
1653
+ "$ref": "#/$defs/DecisionResponse"
1654
+ }
1655
+ },
1656
+ "required": [
1657
+ "decision",
1658
+ "state"
1659
+ ],
1660
+ "additionalProperties": false
1661
+ }
1662
+ },
1663
+ "pendingContinuations": {
1664
+ "type": "array",
1665
+ "maxItems": 256,
1666
+ "items": {
1667
+ "type": "object",
1668
+ "properties": {
1669
+ "requestId": {
1670
+ "type": "string",
1671
+ "format": "uuid"
1672
+ },
1673
+ "run": {
1674
+ "$ref": "#/$defs/QualifiedRef"
1675
+ },
1676
+ "state": {
1677
+ "enum": [
1678
+ "pending",
1679
+ "awaiting_authorization",
1680
+ "admitted",
1681
+ "superseded"
1682
+ ]
1683
+ }
1684
+ },
1685
+ "required": [
1686
+ "requestId",
1687
+ "run",
1688
+ "state"
1689
+ ],
1690
+ "additionalProperties": false
1691
+ }
1692
+ }
1693
+ },
1694
+ "required": [
1695
+ "ref",
1696
+ "sessionId",
1697
+ "generation",
1698
+ "revision",
1699
+ "state",
1700
+ "phase",
1701
+ "stopConfirmed",
1702
+ "freshness",
1703
+ "observedAt",
1704
+ "configurationRevision",
1705
+ "lastSequence",
1706
+ "cursor",
1707
+ "pending",
1708
+ "effects"
1709
+ ],
1710
+ "additionalProperties": true
1711
+ },
1712
+ "Session": {
1713
+ "type": "object",
1714
+ "properties": {
1715
+ "ref": {
1716
+ "$ref": "#/$defs/QualifiedRef"
1717
+ },
1718
+ "revision": {
1719
+ "type": "string",
1720
+ "pattern": "^[1-9][0-9]{0,39}$"
1721
+ },
1722
+ "configurationRevision": {
1723
+ "type": "string",
1724
+ "pattern": "^[1-9][0-9]{0,39}$"
1725
+ },
1726
+ "configurationDigest": {
1727
+ "type": "string",
1728
+ "pattern": "^[a-f0-9]{64}$"
1729
+ },
1730
+ "nativeState": {
1731
+ "enum": [
1732
+ "not_created",
1733
+ "available",
1734
+ "missing",
1735
+ "unavailable",
1736
+ "unknown"
1737
+ ]
1738
+ },
1739
+ "activeRun": {
1740
+ "oneOf": [
1741
+ {
1742
+ "$ref": "#/$defs/QualifiedRef"
1743
+ },
1744
+ {
1745
+ "type": "null"
1746
+ }
1747
+ ]
1748
+ },
1749
+ "resolvedSkills": {
1750
+ "type": "array",
1751
+ "maxItems": 202,
1752
+ "items": {
1753
+ "type": "object",
1754
+ "properties": {
1755
+ "skillId": {
1756
+ "type": "string",
1757
+ "pattern": "^[a-f0-9]{64}$"
1758
+ },
1759
+ "digest": {
1760
+ "type": "string",
1761
+ "pattern": "^[a-f0-9]{64}$"
1762
+ }
1763
+ },
1764
+ "required": [
1765
+ "skillId",
1766
+ "digest"
1767
+ ],
1768
+ "additionalProperties": false
1769
+ }
1770
+ },
1771
+ "configuration": {
1772
+ "$ref": "#/$defs/Configuration"
1773
+ },
1774
+ "correlation": {
1775
+ "type": "object",
1776
+ "properties": {
1777
+ "conversation": {
1778
+ "$ref": "#/$defs/QualifiedRef"
1779
+ },
1780
+ "task": {
1781
+ "$ref": "#/$defs/QualifiedRef"
1782
+ }
1783
+ },
1784
+ "required": [],
1785
+ "additionalProperties": false
1786
+ }
1787
+ },
1788
+ "required": [
1789
+ "ref",
1790
+ "revision",
1791
+ "configurationRevision",
1792
+ "configurationDigest",
1793
+ "nativeState",
1794
+ "activeRun",
1795
+ "resolvedSkills"
1796
+ ],
1797
+ "additionalProperties": true
1798
+ },
1799
+ "ControlReceipt": {
1800
+ "type": "object",
1801
+ "properties": {
1802
+ "requestId": {
1803
+ "type": "string",
1804
+ "format": "uuid"
1805
+ },
1806
+ "state": {
1807
+ "enum": [
1808
+ "accepted",
1809
+ "applied",
1810
+ "rejected",
1811
+ "superseded",
1812
+ "unknown"
1813
+ ]
1814
+ },
1815
+ "run": {
1816
+ "$ref": "#/$defs/QualifiedRef"
1817
+ },
1818
+ "revision": {
1819
+ "type": "string",
1820
+ "pattern": "^(0|[1-9][0-9]{0,39})$"
1821
+ },
1822
+ "generation": {
1823
+ "type": "string",
1824
+ "format": "uuid"
1825
+ },
1826
+ "error": {
1827
+ "$ref": "#/$defs/ErrorDetail"
1828
+ },
1829
+ "continuation": {
1830
+ "type": "object",
1831
+ "properties": {
1832
+ "run": {
1833
+ "$ref": "#/$defs/QualifiedRef"
1834
+ },
1835
+ "state": {
1836
+ "enum": [
1837
+ "pending",
1838
+ "awaiting_authorization",
1839
+ "admitted",
1840
+ "superseded"
1841
+ ]
1842
+ }
1843
+ },
1844
+ "required": [
1845
+ "run",
1846
+ "state"
1847
+ ],
1848
+ "additionalProperties": false
1849
+ }
1850
+ },
1851
+ "required": [
1852
+ "requestId",
1853
+ "state",
1854
+ "run",
1855
+ "revision"
1856
+ ],
1857
+ "additionalProperties": true
1858
+ },
1859
+ "ErrorDetail": {
1860
+ "type": "object",
1861
+ "properties": {
1862
+ "code": {
1863
+ "type": "string",
1864
+ "minLength": 1,
1865
+ "maxLength": 256
1866
+ },
1867
+ "message": {
1868
+ "type": "string",
1869
+ "maxLength": 8192
1870
+ },
1871
+ "retryable": {
1872
+ "type": "boolean"
1873
+ },
1874
+ "requestId": {
1875
+ "type": "string",
1876
+ "format": "uuid"
1877
+ },
1878
+ "details": {
1879
+ "type": "object",
1880
+ "additionalProperties": true
1881
+ }
1882
+ },
1883
+ "required": [
1884
+ "code",
1885
+ "message",
1886
+ "retryable"
1887
+ ],
1888
+ "additionalProperties": true
1889
+ },
1890
+ "Error": {
1891
+ "type": "object",
1892
+ "properties": {
1893
+ "error": {
1894
+ "$ref": "#/$defs/ErrorDetail"
1895
+ }
1896
+ },
1897
+ "required": [
1898
+ "error"
1899
+ ],
1900
+ "additionalProperties": false
1901
+ },
1902
+ "Connection": {
1903
+ "type": "object",
1904
+ "properties": {
1905
+ "id": {
1906
+ "type": "string",
1907
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
1908
+ },
1909
+ "revision": {
1910
+ "type": "string",
1911
+ "pattern": "^[1-9][0-9]{0,39}$"
1912
+ },
1913
+ "name": {
1914
+ "type": "string",
1915
+ "minLength": 1,
1916
+ "maxLength": 256
1917
+ },
1918
+ "ready": {
1919
+ "type": "boolean"
1920
+ },
1921
+ "reason": {
1922
+ "type": "string",
1923
+ "minLength": 1,
1924
+ "maxLength": 8192
1925
+ },
1926
+ "capabilities": {
1927
+ "type": "array",
1928
+ "maxItems": 128,
1929
+ "items": {
1930
+ "type": "string",
1931
+ "minLength": 1,
1932
+ "maxLength": 256,
1933
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)*$"
1934
+ },
1935
+ "uniqueItems": true
1936
+ }
1937
+ },
1938
+ "required": [
1939
+ "id",
1940
+ "revision",
1941
+ "name",
1942
+ "ready"
1943
+ ],
1944
+ "additionalProperties": true
1945
+ },
1946
+ "ModelCatalog": {
1947
+ "type": "object",
1948
+ "properties": {
1949
+ "revision": {
1950
+ "type": "string",
1951
+ "minLength": 1,
1952
+ "maxLength": 256
1953
+ },
1954
+ "models": {
1955
+ "type": "array",
1956
+ "maxItems": 1000,
1957
+ "items": {
1958
+ "type": "object",
1959
+ "properties": {
1960
+ "id": {
1961
+ "type": "string",
1962
+ "minLength": 1,
1963
+ "maxLength": 256
1964
+ },
1965
+ "name": {
1966
+ "type": "string",
1967
+ "minLength": 1,
1968
+ "maxLength": 256
1969
+ },
1970
+ "reasoningEfforts": {
1971
+ "type": "array",
1972
+ "maxItems": 128,
1973
+ "items": {
1974
+ "type": [
1975
+ "string",
1976
+ "null"
1977
+ ],
1978
+ "maxLength": 256
1979
+ }
1980
+ },
1981
+ "defaultReasoningEffort": {
1982
+ "type": [
1983
+ "string",
1984
+ "null"
1985
+ ],
1986
+ "maxLength": 256
1987
+ },
1988
+ "capabilities": {
1989
+ "type": "array",
1990
+ "maxItems": 128,
1991
+ "items": {
1992
+ "type": "string",
1993
+ "minLength": 1,
1994
+ "maxLength": 256,
1995
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)*$"
1996
+ },
1997
+ "uniqueItems": true
1998
+ },
1999
+ "unavailableReason": {
2000
+ "type": "string",
2001
+ "minLength": 1,
2002
+ "maxLength": 8192
2003
+ }
2004
+ },
2005
+ "required": [
2006
+ "id",
2007
+ "reasoningEfforts"
2008
+ ],
2009
+ "additionalProperties": true
2010
+ }
2011
+ },
2012
+ "defaultModel": {
2013
+ "type": [
2014
+ "string",
2015
+ "null"
2016
+ ],
2017
+ "maxLength": 256
2018
+ },
2019
+ "nextCursor": {
2020
+ "type": [
2021
+ "string",
2022
+ "null"
2023
+ ],
2024
+ "maxLength": 8192
2025
+ }
2026
+ },
2027
+ "required": [
2028
+ "revision",
2029
+ "models",
2030
+ "defaultModel"
2031
+ ],
2032
+ "additionalProperties": true
2033
+ },
2034
+ "Capabilities": {
2035
+ "type": "object",
2036
+ "properties": {
2037
+ "version": {
2038
+ "const": 1
2039
+ },
2040
+ "eventVersions": {
2041
+ "type": "array",
2042
+ "maxItems": 16,
2043
+ "items": {
2044
+ "type": "string",
2045
+ "minLength": 1,
2046
+ "maxLength": 256
2047
+ },
2048
+ "uniqueItems": true
2049
+ },
2050
+ "capabilities": {
2051
+ "type": "array",
2052
+ "maxItems": 128,
2053
+ "items": {
2054
+ "type": "string",
2055
+ "minLength": 1,
2056
+ "maxLength": 256,
2057
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z][a-z0-9-]*)*$"
2058
+ },
2059
+ "uniqueItems": true
2060
+ },
2061
+ "limits": {
2062
+ "type": "object",
2063
+ "properties": {
2064
+ "maxCommandBytes": {
2065
+ "type": "integer",
2066
+ "minimum": 1,
2067
+ "maximum": 9007199254740991
2068
+ },
2069
+ "maxEventBytes": {
2070
+ "type": "integer",
2071
+ "minimum": 1,
2072
+ "maximum": 9007199254740991
2073
+ },
2074
+ "maxSnapshotBytes": {
2075
+ "type": "integer",
2076
+ "minimum": 1,
2077
+ "maximum": 9007199254740991
2078
+ },
2079
+ "maxReplayBytes": {
2080
+ "type": "integer",
2081
+ "minimum": 1,
2082
+ "maximum": 9007199254740991
2083
+ },
2084
+ "replayRetentionMs": {
2085
+ "type": "integer",
2086
+ "minimum": 1,
2087
+ "maximum": 9007199254740991
2088
+ },
2089
+ "maxControls": {
2090
+ "type": "integer",
2091
+ "minimum": 1,
2092
+ "maximum": 9007199254740991
2093
+ },
2094
+ "maxPageSize": {
2095
+ "type": "integer",
2096
+ "minimum": 1,
2097
+ "maximum": 9007199254740991
2098
+ },
2099
+ "maxDurationMs": {
2100
+ "type": "integer",
2101
+ "minimum": 1,
2102
+ "maximum": 9007199254740991
2103
+ },
2104
+ "maxSkillSnapshotBytes": {
2105
+ "type": "integer",
2106
+ "minimum": 1,
2107
+ "maximum": 9007199254740991
2108
+ },
2109
+ "maxSkillSnapshotFiles": {
2110
+ "type": "integer",
2111
+ "minimum": 1,
2112
+ "maximum": 9007199254740991
2113
+ }
2114
+ },
2115
+ "required": [
2116
+ "maxCommandBytes",
2117
+ "maxEventBytes",
2118
+ "maxSnapshotBytes",
2119
+ "maxReplayBytes",
2120
+ "replayRetentionMs",
2121
+ "maxControls",
2122
+ "maxPageSize"
2123
+ ],
2124
+ "additionalProperties": true
2125
+ },
2126
+ "configuration": {
2127
+ "type": "object",
2128
+ "properties": {
2129
+ "resumeCompatible": {
2130
+ "type": "array",
2131
+ "maxItems": 32,
2132
+ "items": {
2133
+ "type": "string",
2134
+ "minLength": 1,
2135
+ "maxLength": 256
2136
+ },
2137
+ "uniqueItems": true
2138
+ }
2139
+ },
2140
+ "required": [
2141
+ "resumeCompatible"
2142
+ ],
2143
+ "additionalProperties": false
2144
+ }
2145
+ },
2146
+ "required": [
2147
+ "version",
2148
+ "eventVersions",
2149
+ "capabilities",
2150
+ "limits",
2151
+ "configuration"
2152
+ ],
2153
+ "additionalProperties": true
2154
+ },
2155
+ "Event": {
2156
+ "type": "object",
2157
+ "properties": {
2158
+ "schemaVersion": {
2159
+ "const": "agent-event.1"
2160
+ },
2161
+ "runId": {
2162
+ "type": "string",
2163
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2164
+ },
2165
+ "generation": {
2166
+ "type": "string",
2167
+ "format": "uuid"
2168
+ },
2169
+ "sequence": {
2170
+ "type": "string",
2171
+ "pattern": "^[1-9][0-9]{0,39}$"
2172
+ },
2173
+ "revision": {
2174
+ "type": "string",
2175
+ "pattern": "^(0|[1-9][0-9]{0,39})$"
2176
+ },
2177
+ "occurredAt": {
2178
+ "type": "string",
2179
+ "format": "date-time"
2180
+ },
2181
+ "type": {
2182
+ "enum": [
2183
+ "run.updated",
2184
+ "session.bound",
2185
+ "selection.updated",
2186
+ "message.started",
2187
+ "message.delta",
2188
+ "message.completed",
2189
+ "tool.started",
2190
+ "tool.output",
2191
+ "tool.completed",
2192
+ "decision.requested",
2193
+ "decision.updated",
2194
+ "decision.resolved",
2195
+ "control.updated",
2196
+ "result.available",
2197
+ "usage.updated",
2198
+ "context.updated",
2199
+ "agent.updated",
2200
+ "warning",
2201
+ "extension"
2202
+ ]
2203
+ },
2204
+ "source": {
2205
+ "$ref": "#/$defs/Source"
2206
+ },
2207
+ "data": {
2208
+ "type": "object",
2209
+ "additionalProperties": true
2210
+ }
2211
+ },
2212
+ "required": [
2213
+ "schemaVersion",
2214
+ "runId",
2215
+ "generation",
2216
+ "sequence",
2217
+ "revision",
2218
+ "occurredAt",
2219
+ "type",
2220
+ "source",
2221
+ "data"
2222
+ ],
2223
+ "additionalProperties": false,
2224
+ "allOf": [
2225
+ {
2226
+ "if": {
2227
+ "properties": {
2228
+ "type": {
2229
+ "const": "run.updated"
2230
+ }
2231
+ }
2232
+ },
2233
+ "then": {
2234
+ "properties": {
2235
+ "data": {
2236
+ "type": "object",
2237
+ "properties": {
2238
+ "snapshot": {
2239
+ "$ref": "#/$defs/RunSnapshot"
2240
+ }
2241
+ },
2242
+ "required": [
2243
+ "snapshot"
2244
+ ],
2245
+ "additionalProperties": true
2246
+ }
2247
+ }
2248
+ }
2249
+ },
2250
+ {
2251
+ "if": {
2252
+ "properties": {
2253
+ "type": {
2254
+ "const": "session.bound"
2255
+ }
2256
+ }
2257
+ },
2258
+ "then": {
2259
+ "properties": {
2260
+ "data": {
2261
+ "type": "object",
2262
+ "properties": {
2263
+ "sessionId": {
2264
+ "type": "string",
2265
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2266
+ }
2267
+ },
2268
+ "required": [
2269
+ "sessionId"
2270
+ ],
2271
+ "additionalProperties": true
2272
+ }
2273
+ }
2274
+ }
2275
+ },
2276
+ {
2277
+ "if": {
2278
+ "properties": {
2279
+ "type": {
2280
+ "const": "selection.updated"
2281
+ }
2282
+ }
2283
+ },
2284
+ "then": {
2285
+ "properties": {
2286
+ "data": {
2287
+ "type": "object",
2288
+ "additionalProperties": true
2289
+ }
2290
+ }
2291
+ }
2292
+ },
2293
+ {
2294
+ "if": {
2295
+ "properties": {
2296
+ "type": {
2297
+ "const": "message.started"
2298
+ }
2299
+ }
2300
+ },
2301
+ "then": {
2302
+ "properties": {
2303
+ "data": {
2304
+ "type": "object",
2305
+ "properties": {
2306
+ "messageId": {
2307
+ "type": "string",
2308
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2309
+ },
2310
+ "text": {
2311
+ "type": "string"
2312
+ }
2313
+ },
2314
+ "required": [
2315
+ "messageId"
2316
+ ],
2317
+ "additionalProperties": true
2318
+ }
2319
+ }
2320
+ }
2321
+ },
2322
+ {
2323
+ "if": {
2324
+ "properties": {
2325
+ "type": {
2326
+ "const": "message.delta"
2327
+ }
2328
+ }
2329
+ },
2330
+ "then": {
2331
+ "properties": {
2332
+ "data": {
2333
+ "type": "object",
2334
+ "properties": {
2335
+ "messageId": {
2336
+ "type": "string",
2337
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2338
+ },
2339
+ "text": {
2340
+ "type": "string"
2341
+ }
2342
+ },
2343
+ "required": [
2344
+ "messageId",
2345
+ "text"
2346
+ ],
2347
+ "additionalProperties": true
2348
+ }
2349
+ }
2350
+ }
2351
+ },
2352
+ {
2353
+ "if": {
2354
+ "properties": {
2355
+ "type": {
2356
+ "const": "message.completed"
2357
+ }
2358
+ }
2359
+ },
2360
+ "then": {
2361
+ "properties": {
2362
+ "data": {
2363
+ "type": "object",
2364
+ "properties": {
2365
+ "messageId": {
2366
+ "type": "string",
2367
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2368
+ },
2369
+ "text": {
2370
+ "type": "string"
2371
+ }
2372
+ },
2373
+ "required": [
2374
+ "messageId"
2375
+ ],
2376
+ "additionalProperties": true
2377
+ }
2378
+ }
2379
+ }
2380
+ },
2381
+ {
2382
+ "if": {
2383
+ "properties": {
2384
+ "type": {
2385
+ "const": "tool.started"
2386
+ }
2387
+ }
2388
+ },
2389
+ "then": {
2390
+ "properties": {
2391
+ "data": {
2392
+ "type": "object",
2393
+ "properties": {
2394
+ "toolCallId": {
2395
+ "type": "string",
2396
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2397
+ },
2398
+ "name": {
2399
+ "type": "string",
2400
+ "minLength": 1,
2401
+ "maxLength": 256
2402
+ },
2403
+ "output": {
2404
+ "type": "string"
2405
+ }
2406
+ },
2407
+ "required": [
2408
+ "toolCallId"
2409
+ ],
2410
+ "additionalProperties": true
2411
+ }
2412
+ }
2413
+ }
2414
+ },
2415
+ {
2416
+ "if": {
2417
+ "properties": {
2418
+ "type": {
2419
+ "const": "tool.output"
2420
+ }
2421
+ }
2422
+ },
2423
+ "then": {
2424
+ "properties": {
2425
+ "data": {
2426
+ "type": "object",
2427
+ "properties": {
2428
+ "toolCallId": {
2429
+ "type": "string",
2430
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2431
+ },
2432
+ "name": {
2433
+ "type": "string",
2434
+ "minLength": 1,
2435
+ "maxLength": 256
2436
+ },
2437
+ "output": {
2438
+ "type": "string"
2439
+ }
2440
+ },
2441
+ "required": [
2442
+ "toolCallId",
2443
+ "output"
2444
+ ],
2445
+ "additionalProperties": true
2446
+ }
2447
+ }
2448
+ }
2449
+ },
2450
+ {
2451
+ "if": {
2452
+ "properties": {
2453
+ "type": {
2454
+ "const": "tool.completed"
2455
+ }
2456
+ }
2457
+ },
2458
+ "then": {
2459
+ "properties": {
2460
+ "data": {
2461
+ "type": "object",
2462
+ "properties": {
2463
+ "toolCallId": {
2464
+ "type": "string",
2465
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2466
+ },
2467
+ "name": {
2468
+ "type": "string",
2469
+ "minLength": 1,
2470
+ "maxLength": 256
2471
+ },
2472
+ "output": {
2473
+ "type": "string"
2474
+ }
2475
+ },
2476
+ "required": [
2477
+ "toolCallId"
2478
+ ],
2479
+ "additionalProperties": true
2480
+ }
2481
+ }
2482
+ }
2483
+ },
2484
+ {
2485
+ "if": {
2486
+ "properties": {
2487
+ "type": {
2488
+ "const": "decision.requested"
2489
+ }
2490
+ }
2491
+ },
2492
+ "then": {
2493
+ "properties": {
2494
+ "data": {
2495
+ "type": "object",
2496
+ "properties": {
2497
+ "decisionId": {
2498
+ "type": "string",
2499
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2500
+ },
2501
+ "decision": {
2502
+ "$ref": "#/$defs/PendingDecision"
2503
+ }
2504
+ },
2505
+ "required": [
2506
+ "decisionId"
2507
+ ],
2508
+ "additionalProperties": true
2509
+ }
2510
+ }
2511
+ }
2512
+ },
2513
+ {
2514
+ "if": {
2515
+ "properties": {
2516
+ "type": {
2517
+ "const": "decision.updated"
2518
+ }
2519
+ }
2520
+ },
2521
+ "then": {
2522
+ "properties": {
2523
+ "data": {
2524
+ "type": "object",
2525
+ "properties": {
2526
+ "decisionId": {
2527
+ "type": "string",
2528
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2529
+ },
2530
+ "decision": {
2531
+ "$ref": "#/$defs/PendingDecision"
2532
+ }
2533
+ },
2534
+ "required": [
2535
+ "decisionId"
2536
+ ],
2537
+ "additionalProperties": true
2538
+ }
2539
+ }
2540
+ }
2541
+ },
2542
+ {
2543
+ "if": {
2544
+ "properties": {
2545
+ "type": {
2546
+ "const": "decision.resolved"
2547
+ }
2548
+ }
2549
+ },
2550
+ "then": {
2551
+ "properties": {
2552
+ "data": {
2553
+ "type": "object",
2554
+ "properties": {
2555
+ "decisionId": {
2556
+ "type": "string",
2557
+ "pattern": "^[A-Za-z0-9_-]{1,256}$"
2558
+ },
2559
+ "decision": {
2560
+ "$ref": "#/$defs/PendingDecision"
2561
+ }
2562
+ },
2563
+ "required": [
2564
+ "decisionId"
2565
+ ],
2566
+ "additionalProperties": true
2567
+ }
2568
+ }
2569
+ }
2570
+ },
2571
+ {
2572
+ "if": {
2573
+ "properties": {
2574
+ "type": {
2575
+ "const": "control.updated"
2576
+ }
2577
+ }
2578
+ },
2579
+ "then": {
2580
+ "properties": {
2581
+ "data": {
2582
+ "type": "object",
2583
+ "properties": {
2584
+ "requestId": {
2585
+ "type": "string",
2586
+ "format": "uuid"
2587
+ },
2588
+ "receipt": {
2589
+ "$ref": "#/$defs/ControlReceipt"
2590
+ }
2591
+ },
2592
+ "required": [
2593
+ "requestId"
2594
+ ],
2595
+ "additionalProperties": true
2596
+ }
2597
+ }
2598
+ }
2599
+ },
2600
+ {
2601
+ "if": {
2602
+ "properties": {
2603
+ "type": {
2604
+ "const": "result.available"
2605
+ }
2606
+ }
2607
+ },
2608
+ "then": {
2609
+ "properties": {
2610
+ "data": {
2611
+ "type": "object",
2612
+ "additionalProperties": true
2613
+ }
2614
+ }
2615
+ }
2616
+ },
2617
+ {
2618
+ "if": {
2619
+ "properties": {
2620
+ "type": {
2621
+ "const": "usage.updated"
2622
+ }
2623
+ }
2624
+ },
2625
+ "then": {
2626
+ "properties": {
2627
+ "data": {
2628
+ "type": "object",
2629
+ "additionalProperties": true
2630
+ }
2631
+ }
2632
+ }
2633
+ },
2634
+ {
2635
+ "if": {
2636
+ "properties": {
2637
+ "type": {
2638
+ "const": "context.updated"
2639
+ }
2640
+ }
2641
+ },
2642
+ "then": {
2643
+ "properties": {
2644
+ "data": {
2645
+ "type": "object",
2646
+ "properties": {
2647
+ "usage": {
2648
+ "type": [
2649
+ "object",
2650
+ "null"
2651
+ ],
2652
+ "additionalProperties": true
2653
+ }
2654
+ },
2655
+ "required": [
2656
+ "usage"
2657
+ ],
2658
+ "additionalProperties": true
2659
+ }
2660
+ }
2661
+ }
2662
+ },
2663
+ {
2664
+ "if": {
2665
+ "properties": {
2666
+ "type": {
2667
+ "const": "agent.updated"
2668
+ }
2669
+ }
2670
+ },
2671
+ "then": {
2672
+ "properties": {
2673
+ "data": {
2674
+ "type": "object",
2675
+ "additionalProperties": true
2676
+ }
2677
+ }
2678
+ }
2679
+ },
2680
+ {
2681
+ "if": {
2682
+ "properties": {
2683
+ "type": {
2684
+ "const": "warning"
2685
+ }
2686
+ }
2687
+ },
2688
+ "then": {
2689
+ "properties": {
2690
+ "data": {
2691
+ "type": "object",
2692
+ "additionalProperties": true
2693
+ }
2694
+ }
2695
+ }
2696
+ },
2697
+ {
2698
+ "if": {
2699
+ "properties": {
2700
+ "type": {
2701
+ "const": "extension"
2702
+ }
2703
+ }
2704
+ },
2705
+ "then": {
2706
+ "properties": {
2707
+ "data": {
2708
+ "type": "object",
2709
+ "properties": {
2710
+ "namespace": {
2711
+ "type": "string",
2712
+ "minLength": 1,
2713
+ "maxLength": 256
2714
+ },
2715
+ "required": {
2716
+ "const": false
2717
+ },
2718
+ "payload": {}
2719
+ },
2720
+ "required": [
2721
+ "namespace"
2722
+ ],
2723
+ "additionalProperties": true
2724
+ }
2725
+ }
2726
+ }
2727
+ }
2728
+ ]
2729
+ },
2730
+ "SessionPage": {
2731
+ "type": "object",
2732
+ "properties": {
2733
+ "sessions": {
2734
+ "type": "array",
2735
+ "maxItems": 100,
2736
+ "items": {
2737
+ "$ref": "#/$defs/Session"
2738
+ }
2739
+ },
2740
+ "nextCursor": {
2741
+ "type": [
2742
+ "string",
2743
+ "null"
2744
+ ],
2745
+ "maxLength": 8192
2746
+ }
2747
+ },
2748
+ "required": [
2749
+ "sessions",
2750
+ "nextCursor"
2751
+ ],
2752
+ "additionalProperties": false
2753
+ },
2754
+ "ConnectionPage": {
2755
+ "type": "object",
2756
+ "properties": {
2757
+ "connections": {
2758
+ "type": "array",
2759
+ "maxItems": 100,
2760
+ "items": {
2761
+ "$ref": "#/$defs/Connection"
2762
+ }
2763
+ },
2764
+ "nextCursor": {
2765
+ "type": [
2766
+ "string",
2767
+ "null"
2768
+ ],
2769
+ "maxLength": 8192
2770
+ }
2771
+ },
2772
+ "required": [
2773
+ "connections",
2774
+ "nextCursor"
2775
+ ],
2776
+ "additionalProperties": false
2777
+ },
2778
+ "ConnectionUsage": {
2779
+ "type": "object",
2780
+ "properties": {
2781
+ "observedAt": {
2782
+ "type": "string",
2783
+ "format": "date-time"
2784
+ },
2785
+ "available": {
2786
+ "type": "boolean"
2787
+ },
2788
+ "data": {
2789
+ "type": "object",
2790
+ "additionalProperties": true
2791
+ }
2792
+ },
2793
+ "required": [
2794
+ "observedAt",
2795
+ "available"
2796
+ ],
2797
+ "additionalProperties": true
2798
+ }
2799
+ }
2800
+ }