@drisp/protocol 0.6.0 → 0.6.2

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,1090 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "const": "hello"
10
+ },
11
+ "role": {
12
+ "type": "string",
13
+ "const": "runner"
14
+ },
15
+ "protocol": {
16
+ "type": "object",
17
+ "properties": {
18
+ "major": {
19
+ "type": "number",
20
+ "const": 2
21
+ },
22
+ "minor": {
23
+ "type": "integer",
24
+ "minimum": 0,
25
+ "maximum": 9007199254740991
26
+ }
27
+ },
28
+ "required": [
29
+ "major",
30
+ "minor"
31
+ ],
32
+ "additionalProperties": false
33
+ },
34
+ "runnerId": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 160
38
+ },
39
+ "installationId": {
40
+ "type": "string",
41
+ "minLength": 1,
42
+ "maxLength": 160
43
+ },
44
+ "softwareVersion": {
45
+ "type": "string",
46
+ "maxLength": 128
47
+ },
48
+ "capabilities": {
49
+ "maxItems": 64,
50
+ "type": "array",
51
+ "items": {
52
+ "type": "string",
53
+ "maxLength": 128
54
+ }
55
+ },
56
+ "workflows": {
57
+ "maxItems": 256,
58
+ "type": "array",
59
+ "items": {
60
+ "type": "object",
61
+ "properties": {
62
+ "name": {
63
+ "type": "string",
64
+ "minLength": 1
65
+ },
66
+ "version": {
67
+ "type": "string"
68
+ },
69
+ "source": {
70
+ "oneOf": [
71
+ {
72
+ "type": "object",
73
+ "properties": {
74
+ "kind": {
75
+ "type": "string",
76
+ "const": "builtin"
77
+ }
78
+ },
79
+ "required": [
80
+ "kind"
81
+ ],
82
+ "additionalProperties": false
83
+ },
84
+ {
85
+ "type": "object",
86
+ "properties": {
87
+ "kind": {
88
+ "type": "string",
89
+ "const": "marketplace-remote"
90
+ },
91
+ "ref": {
92
+ "type": "string"
93
+ }
94
+ },
95
+ "required": [
96
+ "kind",
97
+ "ref"
98
+ ],
99
+ "additionalProperties": false
100
+ },
101
+ {
102
+ "type": "object",
103
+ "properties": {
104
+ "kind": {
105
+ "type": "string",
106
+ "const": "marketplace-local"
107
+ },
108
+ "repoDir": {
109
+ "type": "string"
110
+ },
111
+ "workflowName": {
112
+ "type": "string"
113
+ }
114
+ },
115
+ "required": [
116
+ "kind",
117
+ "repoDir",
118
+ "workflowName"
119
+ ],
120
+ "additionalProperties": false
121
+ },
122
+ {
123
+ "type": "object",
124
+ "properties": {
125
+ "kind": {
126
+ "type": "string",
127
+ "const": "filesystem"
128
+ },
129
+ "path": {
130
+ "type": "string"
131
+ }
132
+ },
133
+ "required": [
134
+ "kind",
135
+ "path"
136
+ ],
137
+ "additionalProperties": false
138
+ },
139
+ {
140
+ "type": "object",
141
+ "properties": {
142
+ "kind": {
143
+ "type": "string",
144
+ "const": "unknown"
145
+ }
146
+ },
147
+ "required": [
148
+ "kind"
149
+ ],
150
+ "additionalProperties": false
151
+ }
152
+ ]
153
+ }
154
+ },
155
+ "required": [
156
+ "name",
157
+ "source"
158
+ ],
159
+ "additionalProperties": false
160
+ }
161
+ },
162
+ "readiness": {
163
+ "type": "object",
164
+ "properties": {
165
+ "claude-code": {
166
+ "type": "object",
167
+ "properties": {
168
+ "installed": {
169
+ "type": "boolean"
170
+ },
171
+ "signedIn": {
172
+ "type": "boolean"
173
+ }
174
+ },
175
+ "required": [
176
+ "installed",
177
+ "signedIn"
178
+ ],
179
+ "additionalProperties": false
180
+ },
181
+ "codex": {
182
+ "type": "object",
183
+ "properties": {
184
+ "installed": {
185
+ "type": "boolean"
186
+ },
187
+ "signedIn": {
188
+ "type": "boolean"
189
+ }
190
+ },
191
+ "required": [
192
+ "installed",
193
+ "signedIn"
194
+ ],
195
+ "additionalProperties": false
196
+ }
197
+ },
198
+ "additionalProperties": false
199
+ },
200
+ "control": {
201
+ "type": "object",
202
+ "properties": {
203
+ "firstRetainedSeq": {
204
+ "type": "integer",
205
+ "minimum": 0,
206
+ "maximum": 9007199254740991
207
+ },
208
+ "lastProducedSeq": {
209
+ "type": "integer",
210
+ "minimum": 0,
211
+ "maximum": 9007199254740991
212
+ }
213
+ },
214
+ "required": [
215
+ "firstRetainedSeq",
216
+ "lastProducedSeq"
217
+ ],
218
+ "additionalProperties": false
219
+ }
220
+ },
221
+ "required": [
222
+ "type",
223
+ "role",
224
+ "protocol",
225
+ "runnerId",
226
+ "installationId",
227
+ "softwareVersion",
228
+ "capabilities",
229
+ "control"
230
+ ],
231
+ "additionalProperties": false
232
+ },
233
+ {
234
+ "type": "object",
235
+ "properties": {
236
+ "type": {
237
+ "type": "string",
238
+ "const": "control.batch"
239
+ },
240
+ "firstSeq": {
241
+ "type": "integer",
242
+ "minimum": 0,
243
+ "maximum": 9007199254740991
244
+ },
245
+ "records": {
246
+ "minItems": 1,
247
+ "maxItems": 128,
248
+ "type": "array",
249
+ "items": {
250
+ "oneOf": [
251
+ {
252
+ "type": "object",
253
+ "properties": {
254
+ "kind": {
255
+ "type": "string",
256
+ "const": "workflows.changed"
257
+ },
258
+ "workflows": {
259
+ "maxItems": 256,
260
+ "type": "array",
261
+ "items": {
262
+ "type": "object",
263
+ "properties": {
264
+ "name": {
265
+ "type": "string",
266
+ "minLength": 1
267
+ },
268
+ "version": {
269
+ "type": "string"
270
+ },
271
+ "source": {
272
+ "oneOf": [
273
+ {
274
+ "type": "object",
275
+ "properties": {
276
+ "kind": {
277
+ "type": "string",
278
+ "const": "builtin"
279
+ }
280
+ },
281
+ "required": [
282
+ "kind"
283
+ ],
284
+ "additionalProperties": false
285
+ },
286
+ {
287
+ "type": "object",
288
+ "properties": {
289
+ "kind": {
290
+ "type": "string",
291
+ "const": "marketplace-remote"
292
+ },
293
+ "ref": {
294
+ "type": "string"
295
+ }
296
+ },
297
+ "required": [
298
+ "kind",
299
+ "ref"
300
+ ],
301
+ "additionalProperties": false
302
+ },
303
+ {
304
+ "type": "object",
305
+ "properties": {
306
+ "kind": {
307
+ "type": "string",
308
+ "const": "marketplace-local"
309
+ },
310
+ "repoDir": {
311
+ "type": "string"
312
+ },
313
+ "workflowName": {
314
+ "type": "string"
315
+ }
316
+ },
317
+ "required": [
318
+ "kind",
319
+ "repoDir",
320
+ "workflowName"
321
+ ],
322
+ "additionalProperties": false
323
+ },
324
+ {
325
+ "type": "object",
326
+ "properties": {
327
+ "kind": {
328
+ "type": "string",
329
+ "const": "filesystem"
330
+ },
331
+ "path": {
332
+ "type": "string"
333
+ }
334
+ },
335
+ "required": [
336
+ "kind",
337
+ "path"
338
+ ],
339
+ "additionalProperties": false
340
+ },
341
+ {
342
+ "type": "object",
343
+ "properties": {
344
+ "kind": {
345
+ "type": "string",
346
+ "const": "unknown"
347
+ }
348
+ },
349
+ "required": [
350
+ "kind"
351
+ ],
352
+ "additionalProperties": false
353
+ }
354
+ ]
355
+ }
356
+ },
357
+ "required": [
358
+ "name",
359
+ "source"
360
+ ],
361
+ "additionalProperties": false
362
+ }
363
+ }
364
+ },
365
+ "required": [
366
+ "kind",
367
+ "workflows"
368
+ ],
369
+ "additionalProperties": false
370
+ },
371
+ {
372
+ "type": "object",
373
+ "properties": {
374
+ "kind": {
375
+ "type": "string",
376
+ "const": "readiness.changed"
377
+ },
378
+ "readiness": {
379
+ "type": "object",
380
+ "properties": {
381
+ "claude-code": {
382
+ "type": "object",
383
+ "properties": {
384
+ "installed": {
385
+ "type": "boolean"
386
+ },
387
+ "signedIn": {
388
+ "type": "boolean"
389
+ }
390
+ },
391
+ "required": [
392
+ "installed",
393
+ "signedIn"
394
+ ],
395
+ "additionalProperties": false
396
+ },
397
+ "codex": {
398
+ "type": "object",
399
+ "properties": {
400
+ "installed": {
401
+ "type": "boolean"
402
+ },
403
+ "signedIn": {
404
+ "type": "boolean"
405
+ }
406
+ },
407
+ "required": [
408
+ "installed",
409
+ "signedIn"
410
+ ],
411
+ "additionalProperties": false
412
+ }
413
+ },
414
+ "additionalProperties": false
415
+ }
416
+ },
417
+ "required": [
418
+ "kind",
419
+ "readiness"
420
+ ],
421
+ "additionalProperties": false
422
+ },
423
+ {
424
+ "type": "object",
425
+ "properties": {
426
+ "kind": {
427
+ "type": "string",
428
+ "const": "assignment.accepted"
429
+ },
430
+ "runId": {
431
+ "type": "string",
432
+ "minLength": 1,
433
+ "maxLength": 160
434
+ },
435
+ "attemptId": {
436
+ "type": "string",
437
+ "minLength": 1,
438
+ "maxLength": 160
439
+ }
440
+ },
441
+ "required": [
442
+ "kind",
443
+ "runId",
444
+ "attemptId"
445
+ ],
446
+ "additionalProperties": false
447
+ },
448
+ {
449
+ "type": "object",
450
+ "properties": {
451
+ "kind": {
452
+ "type": "string",
453
+ "const": "assignment.rejected"
454
+ },
455
+ "runId": {
456
+ "type": "string",
457
+ "minLength": 1,
458
+ "maxLength": 160
459
+ },
460
+ "attemptId": {
461
+ "type": "string",
462
+ "minLength": 1,
463
+ "maxLength": 160
464
+ },
465
+ "reason": {
466
+ "type": "string",
467
+ "maxLength": 1024
468
+ }
469
+ },
470
+ "required": [
471
+ "kind",
472
+ "runId",
473
+ "attemptId",
474
+ "reason"
475
+ ],
476
+ "additionalProperties": false
477
+ },
478
+ {
479
+ "type": "object",
480
+ "properties": {
481
+ "kind": {
482
+ "type": "string",
483
+ "const": "run.started"
484
+ },
485
+ "runId": {
486
+ "type": "string",
487
+ "minLength": 1,
488
+ "maxLength": 160
489
+ },
490
+ "attemptId": {
491
+ "type": "string",
492
+ "minLength": 1,
493
+ "maxLength": 160
494
+ },
495
+ "executionRevision": {
496
+ "type": "integer",
497
+ "minimum": 0,
498
+ "maximum": 9007199254740991
499
+ },
500
+ "emittedAt": {
501
+ "type": "string",
502
+ "format": "date-time",
503
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
504
+ },
505
+ "workflow": {
506
+ "type": "object",
507
+ "properties": {
508
+ "name": {
509
+ "type": "string",
510
+ "minLength": 1,
511
+ "maxLength": 128
512
+ },
513
+ "version": {
514
+ "type": "string",
515
+ "minLength": 1,
516
+ "maxLength": 128
517
+ }
518
+ },
519
+ "required": [
520
+ "name"
521
+ ],
522
+ "additionalProperties": false
523
+ }
524
+ },
525
+ "required": [
526
+ "kind",
527
+ "runId",
528
+ "attemptId",
529
+ "executionRevision",
530
+ "emittedAt"
531
+ ],
532
+ "additionalProperties": false
533
+ },
534
+ {
535
+ "type": "object",
536
+ "properties": {
537
+ "kind": {
538
+ "type": "string",
539
+ "const": "run.resumed"
540
+ },
541
+ "runId": {
542
+ "type": "string",
543
+ "minLength": 1,
544
+ "maxLength": 160
545
+ },
546
+ "attemptId": {
547
+ "type": "string",
548
+ "minLength": 1,
549
+ "maxLength": 160
550
+ },
551
+ "executionRevision": {
552
+ "type": "integer",
553
+ "minimum": 0,
554
+ "maximum": 9007199254740991
555
+ },
556
+ "emittedAt": {
557
+ "type": "string",
558
+ "format": "date-time",
559
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
560
+ }
561
+ },
562
+ "required": [
563
+ "kind",
564
+ "runId",
565
+ "attemptId",
566
+ "executionRevision",
567
+ "emittedAt"
568
+ ],
569
+ "additionalProperties": false
570
+ },
571
+ {
572
+ "type": "object",
573
+ "properties": {
574
+ "kind": {
575
+ "type": "string",
576
+ "const": "run.attention"
577
+ },
578
+ "runId": {
579
+ "type": "string",
580
+ "minLength": 1,
581
+ "maxLength": 160
582
+ },
583
+ "attemptId": {
584
+ "type": "string",
585
+ "minLength": 1,
586
+ "maxLength": 160
587
+ },
588
+ "executionRevision": {
589
+ "type": "integer",
590
+ "minimum": 0,
591
+ "maximum": 9007199254740991
592
+ },
593
+ "emittedAt": {
594
+ "type": "string",
595
+ "format": "date-time",
596
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
597
+ },
598
+ "interruption": {
599
+ "type": "object",
600
+ "properties": {
601
+ "interruptionId": {
602
+ "type": "string",
603
+ "minLength": 1,
604
+ "maxLength": 160
605
+ },
606
+ "revision": {
607
+ "type": "integer",
608
+ "minimum": 0,
609
+ "maximum": 9007199254740991
610
+ },
611
+ "kind": {
612
+ "type": "string",
613
+ "enum": [
614
+ "permission",
615
+ "question",
616
+ "guidance",
617
+ "recovery"
618
+ ]
619
+ },
620
+ "message": {
621
+ "type": "string",
622
+ "maxLength": 16384
623
+ },
624
+ "requestId": {
625
+ "type": "string",
626
+ "minLength": 1,
627
+ "maxLength": 160
628
+ }
629
+ },
630
+ "required": [
631
+ "interruptionId",
632
+ "revision",
633
+ "kind",
634
+ "message"
635
+ ],
636
+ "additionalProperties": false
637
+ },
638
+ "occupancy": {
639
+ "type": "string",
640
+ "enum": [
641
+ "held",
642
+ "released"
643
+ ]
644
+ },
645
+ "historyThrough": {
646
+ "type": "integer",
647
+ "minimum": 0,
648
+ "maximum": 9007199254740991
649
+ },
650
+ "continuation": {
651
+ "oneOf": [
652
+ {
653
+ "type": "object",
654
+ "properties": {
655
+ "kind": {
656
+ "type": "string",
657
+ "const": "live_request"
658
+ }
659
+ },
660
+ "required": [
661
+ "kind"
662
+ ],
663
+ "additionalProperties": false
664
+ },
665
+ {
666
+ "type": "object",
667
+ "properties": {
668
+ "kind": {
669
+ "type": "string",
670
+ "const": "local_checkpoint"
671
+ },
672
+ "checkpointId": {
673
+ "type": "string",
674
+ "minLength": 1,
675
+ "maxLength": 160
676
+ }
677
+ },
678
+ "required": [
679
+ "kind",
680
+ "checkpointId"
681
+ ],
682
+ "additionalProperties": false
683
+ },
684
+ {
685
+ "type": "object",
686
+ "properties": {
687
+ "kind": {
688
+ "type": "string",
689
+ "const": "portable_checkpoint"
690
+ },
691
+ "checkpointId": {
692
+ "type": "string",
693
+ "minLength": 1,
694
+ "maxLength": 160
695
+ }
696
+ },
697
+ "required": [
698
+ "kind",
699
+ "checkpointId"
700
+ ],
701
+ "additionalProperties": false
702
+ },
703
+ {
704
+ "type": "object",
705
+ "properties": {
706
+ "kind": {
707
+ "type": "string",
708
+ "const": "repair_required"
709
+ },
710
+ "detail": {
711
+ "type": "string",
712
+ "maxLength": 4096
713
+ }
714
+ },
715
+ "required": [
716
+ "kind",
717
+ "detail"
718
+ ],
719
+ "additionalProperties": false
720
+ }
721
+ ]
722
+ }
723
+ },
724
+ "required": [
725
+ "kind",
726
+ "runId",
727
+ "attemptId",
728
+ "executionRevision",
729
+ "emittedAt",
730
+ "interruption",
731
+ "occupancy",
732
+ "historyThrough",
733
+ "continuation"
734
+ ],
735
+ "additionalProperties": false
736
+ },
737
+ {
738
+ "type": "object",
739
+ "properties": {
740
+ "kind": {
741
+ "type": "string",
742
+ "const": "run.finished"
743
+ },
744
+ "runId": {
745
+ "type": "string",
746
+ "minLength": 1,
747
+ "maxLength": 160
748
+ },
749
+ "attemptId": {
750
+ "type": "string",
751
+ "minLength": 1,
752
+ "maxLength": 160
753
+ },
754
+ "executionRevision": {
755
+ "type": "integer",
756
+ "minimum": 0,
757
+ "maximum": 9007199254740991
758
+ },
759
+ "emittedAt": {
760
+ "type": "string",
761
+ "format": "date-time",
762
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
763
+ },
764
+ "status": {
765
+ "type": "string",
766
+ "enum": [
767
+ "completed",
768
+ "failed",
769
+ "cancelled"
770
+ ]
771
+ },
772
+ "historyThrough": {
773
+ "type": "integer",
774
+ "minimum": 0,
775
+ "maximum": 9007199254740991
776
+ },
777
+ "workspaceUnavailable": {
778
+ "type": "boolean",
779
+ "const": true
780
+ }
781
+ },
782
+ "required": [
783
+ "kind",
784
+ "runId",
785
+ "attemptId",
786
+ "executionRevision",
787
+ "emittedAt",
788
+ "status",
789
+ "historyThrough"
790
+ ],
791
+ "additionalProperties": false
792
+ },
793
+ {
794
+ "type": "object",
795
+ "properties": {
796
+ "kind": {
797
+ "type": "string",
798
+ "const": "command.applied"
799
+ },
800
+ "runId": {
801
+ "type": "string",
802
+ "minLength": 1,
803
+ "maxLength": 160
804
+ },
805
+ "attemptId": {
806
+ "type": "string",
807
+ "minLength": 1,
808
+ "maxLength": 160
809
+ },
810
+ "commandId": {
811
+ "type": "string",
812
+ "minLength": 1,
813
+ "maxLength": 160
814
+ }
815
+ },
816
+ "required": [
817
+ "kind",
818
+ "runId",
819
+ "attemptId",
820
+ "commandId"
821
+ ],
822
+ "additionalProperties": false
823
+ },
824
+ {
825
+ "type": "object",
826
+ "properties": {
827
+ "kind": {
828
+ "type": "string",
829
+ "const": "command.rejected"
830
+ },
831
+ "runId": {
832
+ "type": "string",
833
+ "minLength": 1,
834
+ "maxLength": 160
835
+ },
836
+ "attemptId": {
837
+ "type": "string",
838
+ "minLength": 1,
839
+ "maxLength": 160
840
+ },
841
+ "commandId": {
842
+ "type": "string",
843
+ "minLength": 1,
844
+ "maxLength": 160
845
+ },
846
+ "reason": {
847
+ "type": "string",
848
+ "maxLength": 1024
849
+ }
850
+ },
851
+ "required": [
852
+ "kind",
853
+ "runId",
854
+ "attemptId",
855
+ "commandId",
856
+ "reason"
857
+ ],
858
+ "additionalProperties": false
859
+ },
860
+ {
861
+ "type": "object",
862
+ "properties": {
863
+ "kind": {
864
+ "type": "string",
865
+ "const": "revoked_not_started"
866
+ },
867
+ "runId": {
868
+ "type": "string",
869
+ "minLength": 1,
870
+ "maxLength": 160
871
+ },
872
+ "attemptId": {
873
+ "type": "string",
874
+ "minLength": 1,
875
+ "maxLength": 160
876
+ }
877
+ },
878
+ "required": [
879
+ "kind",
880
+ "runId",
881
+ "attemptId"
882
+ ],
883
+ "additionalProperties": false
884
+ }
885
+ ]
886
+ }
887
+ }
888
+ },
889
+ "required": [
890
+ "type",
891
+ "firstSeq",
892
+ "records"
893
+ ],
894
+ "additionalProperties": false
895
+ },
896
+ {
897
+ "type": "object",
898
+ "properties": {
899
+ "type": {
900
+ "type": "string",
901
+ "const": "history.batch"
902
+ },
903
+ "runId": {
904
+ "type": "string",
905
+ "minLength": 1,
906
+ "maxLength": 160
907
+ },
908
+ "firstSeq": {
909
+ "type": "integer",
910
+ "minimum": 0,
911
+ "maximum": 9007199254740991
912
+ },
913
+ "records": {
914
+ "minItems": 1,
915
+ "maxItems": 128,
916
+ "type": "array",
917
+ "items": {
918
+ "type": "object",
919
+ "properties": {
920
+ "eventId": {
921
+ "type": "string",
922
+ "minLength": 1,
923
+ "maxLength": 160
924
+ },
925
+ "attemptId": {
926
+ "type": "string",
927
+ "minLength": 1,
928
+ "maxLength": 160
929
+ },
930
+ "emittedAt": {
931
+ "type": "string",
932
+ "format": "date-time",
933
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
934
+ },
935
+ "kind": {
936
+ "type": "string",
937
+ "minLength": 1,
938
+ "maxLength": 128
939
+ },
940
+ "data": {
941
+ "$ref": "#/$defs/__schema0"
942
+ }
943
+ },
944
+ "required": [
945
+ "eventId",
946
+ "attemptId",
947
+ "emittedAt",
948
+ "kind",
949
+ "data"
950
+ ],
951
+ "additionalProperties": false
952
+ }
953
+ }
954
+ },
955
+ "required": [
956
+ "type",
957
+ "runId",
958
+ "firstSeq",
959
+ "records"
960
+ ],
961
+ "additionalProperties": false
962
+ },
963
+ {
964
+ "type": "object",
965
+ "properties": {
966
+ "type": {
967
+ "type": "string",
968
+ "const": "ping"
969
+ },
970
+ "nonce": {
971
+ "type": "string",
972
+ "minLength": 1,
973
+ "maxLength": 160
974
+ }
975
+ },
976
+ "required": [
977
+ "type",
978
+ "nonce"
979
+ ],
980
+ "additionalProperties": false
981
+ },
982
+ {
983
+ "type": "object",
984
+ "properties": {
985
+ "type": {
986
+ "type": "string",
987
+ "const": "reconcile.page"
988
+ },
989
+ "inventoryId": {
990
+ "default": "single-page",
991
+ "type": "string",
992
+ "minLength": 1,
993
+ "maxLength": 160
994
+ },
995
+ "page": {
996
+ "default": 0,
997
+ "type": "integer",
998
+ "minimum": 0,
999
+ "maximum": 9007199254740991
1000
+ },
1001
+ "complete": {
1002
+ "type": "boolean"
1003
+ },
1004
+ "runs": {
1005
+ "maxItems": 128,
1006
+ "type": "array",
1007
+ "items": {
1008
+ "type": "object",
1009
+ "properties": {
1010
+ "runId": {
1011
+ "type": "string",
1012
+ "minLength": 1,
1013
+ "maxLength": 160
1014
+ },
1015
+ "attemptId": {
1016
+ "type": "string",
1017
+ "minLength": 1,
1018
+ "maxLength": 160
1019
+ },
1020
+ "executionRevision": {
1021
+ "type": "integer",
1022
+ "minimum": 0,
1023
+ "maximum": 9007199254740991
1024
+ },
1025
+ "phase": {
1026
+ "type": "string",
1027
+ "enum": [
1028
+ "admitted",
1029
+ "prepared",
1030
+ "executing",
1031
+ "parked",
1032
+ "terminal",
1033
+ "recovery"
1034
+ ]
1035
+ }
1036
+ },
1037
+ "required": [
1038
+ "runId",
1039
+ "attemptId",
1040
+ "executionRevision",
1041
+ "phase"
1042
+ ],
1043
+ "additionalProperties": false
1044
+ }
1045
+ }
1046
+ },
1047
+ "required": [
1048
+ "type",
1049
+ "inventoryId",
1050
+ "page",
1051
+ "complete",
1052
+ "runs"
1053
+ ],
1054
+ "additionalProperties": false
1055
+ }
1056
+ ],
1057
+ "$defs": {
1058
+ "__schema0": {
1059
+ "anyOf": [
1060
+ {
1061
+ "type": "string"
1062
+ },
1063
+ {
1064
+ "type": "number"
1065
+ },
1066
+ {
1067
+ "type": "boolean"
1068
+ },
1069
+ {
1070
+ "type": "null"
1071
+ },
1072
+ {
1073
+ "type": "array",
1074
+ "items": {
1075
+ "$ref": "#/$defs/__schema0"
1076
+ }
1077
+ },
1078
+ {
1079
+ "type": "object",
1080
+ "propertyNames": {
1081
+ "type": "string"
1082
+ },
1083
+ "additionalProperties": {
1084
+ "$ref": "#/$defs/__schema0"
1085
+ }
1086
+ }
1087
+ ]
1088
+ }
1089
+ }
1090
+ }