@inf-monkeys-tech/monkeys 1.0.20 → 1.0.21

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,1501 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "contract": {
8
+ "type": "string",
9
+ "const": "AgentSessionEvent"
10
+ },
11
+ "eventId": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "maxLength": 256
15
+ },
16
+ "sessionId": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 256
20
+ },
21
+ "runId": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 256
25
+ },
26
+ "sourceMessageId": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "maxLength": 256
30
+ },
31
+ "sequence": {
32
+ "type": "integer",
33
+ "minimum": 0,
34
+ "maximum": 9007199254740991
35
+ },
36
+ "idempotencyKey": {
37
+ "type": "string",
38
+ "minLength": 1,
39
+ "maxLength": 256
40
+ },
41
+ "occurredAt": {
42
+ "type": "string",
43
+ "format": "date-time",
44
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
45
+ },
46
+ "eventType": {
47
+ "type": "string",
48
+ "const": "message"
49
+ },
50
+ "payload": {
51
+ "type": "object",
52
+ "properties": {
53
+ "messageId": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 256
57
+ },
58
+ "role": {
59
+ "type": "string",
60
+ "enum": [
61
+ "user",
62
+ "assistant",
63
+ "system"
64
+ ]
65
+ },
66
+ "operation": {
67
+ "default": "append",
68
+ "type": "string",
69
+ "enum": [
70
+ "append",
71
+ "replace"
72
+ ]
73
+ },
74
+ "parts": {
75
+ "type": "array",
76
+ "items": {
77
+ "$ref": "#/$defs/__schema0"
78
+ }
79
+ },
80
+ "status": {
81
+ "type": "string",
82
+ "enum": [
83
+ "streaming",
84
+ "completed",
85
+ "failed"
86
+ ]
87
+ }
88
+ },
89
+ "required": [
90
+ "messageId",
91
+ "role",
92
+ "operation",
93
+ "parts"
94
+ ],
95
+ "additionalProperties": false
96
+ }
97
+ },
98
+ "required": [
99
+ "contract",
100
+ "eventId",
101
+ "sessionId",
102
+ "sequence",
103
+ "idempotencyKey",
104
+ "occurredAt",
105
+ "eventType",
106
+ "payload"
107
+ ],
108
+ "additionalProperties": false
109
+ },
110
+ {
111
+ "type": "object",
112
+ "properties": {
113
+ "contract": {
114
+ "type": "string",
115
+ "const": "AgentSessionEvent"
116
+ },
117
+ "eventId": {
118
+ "type": "string",
119
+ "minLength": 1,
120
+ "maxLength": 256
121
+ },
122
+ "sessionId": {
123
+ "type": "string",
124
+ "minLength": 1,
125
+ "maxLength": 256
126
+ },
127
+ "runId": {
128
+ "type": "string",
129
+ "minLength": 1,
130
+ "maxLength": 256
131
+ },
132
+ "sourceMessageId": {
133
+ "type": "string",
134
+ "minLength": 1,
135
+ "maxLength": 256
136
+ },
137
+ "sequence": {
138
+ "type": "integer",
139
+ "minimum": 0,
140
+ "maximum": 9007199254740991
141
+ },
142
+ "idempotencyKey": {
143
+ "type": "string",
144
+ "minLength": 1,
145
+ "maxLength": 256
146
+ },
147
+ "occurredAt": {
148
+ "type": "string",
149
+ "format": "date-time",
150
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
151
+ },
152
+ "eventType": {
153
+ "type": "string",
154
+ "const": "reasoning"
155
+ },
156
+ "payload": {
157
+ "type": "object",
158
+ "properties": {
159
+ "reasoningId": {
160
+ "type": "string",
161
+ "minLength": 1,
162
+ "maxLength": 256
163
+ },
164
+ "text": {
165
+ "type": "string"
166
+ },
167
+ "status": {
168
+ "type": "string",
169
+ "enum": [
170
+ "streaming",
171
+ "completed"
172
+ ]
173
+ }
174
+ },
175
+ "required": [
176
+ "reasoningId",
177
+ "text",
178
+ "status"
179
+ ],
180
+ "additionalProperties": false
181
+ }
182
+ },
183
+ "required": [
184
+ "contract",
185
+ "eventId",
186
+ "sessionId",
187
+ "sequence",
188
+ "idempotencyKey",
189
+ "occurredAt",
190
+ "eventType",
191
+ "payload"
192
+ ],
193
+ "additionalProperties": false
194
+ },
195
+ {
196
+ "type": "object",
197
+ "properties": {
198
+ "contract": {
199
+ "type": "string",
200
+ "const": "AgentSessionEvent"
201
+ },
202
+ "eventId": {
203
+ "type": "string",
204
+ "minLength": 1,
205
+ "maxLength": 256
206
+ },
207
+ "sessionId": {
208
+ "type": "string",
209
+ "minLength": 1,
210
+ "maxLength": 256
211
+ },
212
+ "runId": {
213
+ "type": "string",
214
+ "minLength": 1,
215
+ "maxLength": 256
216
+ },
217
+ "sourceMessageId": {
218
+ "type": "string",
219
+ "minLength": 1,
220
+ "maxLength": 256
221
+ },
222
+ "sequence": {
223
+ "type": "integer",
224
+ "minimum": 0,
225
+ "maximum": 9007199254740991
226
+ },
227
+ "idempotencyKey": {
228
+ "type": "string",
229
+ "minLength": 1,
230
+ "maxLength": 256
231
+ },
232
+ "occurredAt": {
233
+ "type": "string",
234
+ "format": "date-time",
235
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
236
+ },
237
+ "eventType": {
238
+ "type": "string",
239
+ "const": "plan"
240
+ },
241
+ "payload": {
242
+ "type": "object",
243
+ "properties": {
244
+ "planId": {
245
+ "type": "string",
246
+ "minLength": 1,
247
+ "maxLength": 256
248
+ },
249
+ "title": {
250
+ "type": "string"
251
+ },
252
+ "status": {
253
+ "type": "string",
254
+ "enum": [
255
+ "pending",
256
+ "running",
257
+ "completed",
258
+ "failed"
259
+ ]
260
+ },
261
+ "steps": {
262
+ "type": "array",
263
+ "items": {
264
+ "type": "object",
265
+ "properties": {
266
+ "id": {
267
+ "type": "string",
268
+ "minLength": 1,
269
+ "maxLength": 256
270
+ },
271
+ "title": {
272
+ "type": "string"
273
+ },
274
+ "status": {
275
+ "type": "string",
276
+ "enum": [
277
+ "pending",
278
+ "running",
279
+ "completed",
280
+ "failed",
281
+ "skipped"
282
+ ]
283
+ }
284
+ },
285
+ "required": [
286
+ "id",
287
+ "title",
288
+ "status"
289
+ ],
290
+ "additionalProperties": false
291
+ }
292
+ }
293
+ },
294
+ "required": [
295
+ "planId",
296
+ "status",
297
+ "steps"
298
+ ],
299
+ "additionalProperties": false
300
+ }
301
+ },
302
+ "required": [
303
+ "contract",
304
+ "eventId",
305
+ "sessionId",
306
+ "sequence",
307
+ "idempotencyKey",
308
+ "occurredAt",
309
+ "eventType",
310
+ "payload"
311
+ ],
312
+ "additionalProperties": false
313
+ },
314
+ {
315
+ "type": "object",
316
+ "properties": {
317
+ "contract": {
318
+ "type": "string",
319
+ "const": "AgentSessionEvent"
320
+ },
321
+ "eventId": {
322
+ "type": "string",
323
+ "minLength": 1,
324
+ "maxLength": 256
325
+ },
326
+ "sessionId": {
327
+ "type": "string",
328
+ "minLength": 1,
329
+ "maxLength": 256
330
+ },
331
+ "runId": {
332
+ "type": "string",
333
+ "minLength": 1,
334
+ "maxLength": 256
335
+ },
336
+ "sourceMessageId": {
337
+ "type": "string",
338
+ "minLength": 1,
339
+ "maxLength": 256
340
+ },
341
+ "sequence": {
342
+ "type": "integer",
343
+ "minimum": 0,
344
+ "maximum": 9007199254740991
345
+ },
346
+ "idempotencyKey": {
347
+ "type": "string",
348
+ "minLength": 1,
349
+ "maxLength": 256
350
+ },
351
+ "occurredAt": {
352
+ "type": "string",
353
+ "format": "date-time",
354
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
355
+ },
356
+ "eventType": {
357
+ "type": "string",
358
+ "const": "task"
359
+ },
360
+ "payload": {
361
+ "type": "object",
362
+ "properties": {
363
+ "taskId": {
364
+ "type": "string",
365
+ "minLength": 1,
366
+ "maxLength": 256
367
+ },
368
+ "title": {
369
+ "type": "string"
370
+ },
371
+ "status": {
372
+ "type": "string",
373
+ "enum": [
374
+ "pending",
375
+ "running",
376
+ "completed",
377
+ "failed",
378
+ "skipped"
379
+ ]
380
+ },
381
+ "detail": {
382
+ "type": "string"
383
+ }
384
+ },
385
+ "required": [
386
+ "taskId",
387
+ "title",
388
+ "status"
389
+ ],
390
+ "additionalProperties": false
391
+ }
392
+ },
393
+ "required": [
394
+ "contract",
395
+ "eventId",
396
+ "sessionId",
397
+ "sequence",
398
+ "idempotencyKey",
399
+ "occurredAt",
400
+ "eventType",
401
+ "payload"
402
+ ],
403
+ "additionalProperties": false
404
+ },
405
+ {
406
+ "type": "object",
407
+ "properties": {
408
+ "contract": {
409
+ "type": "string",
410
+ "const": "AgentSessionEvent"
411
+ },
412
+ "eventId": {
413
+ "type": "string",
414
+ "minLength": 1,
415
+ "maxLength": 256
416
+ },
417
+ "sessionId": {
418
+ "type": "string",
419
+ "minLength": 1,
420
+ "maxLength": 256
421
+ },
422
+ "runId": {
423
+ "type": "string",
424
+ "minLength": 1,
425
+ "maxLength": 256
426
+ },
427
+ "sourceMessageId": {
428
+ "type": "string",
429
+ "minLength": 1,
430
+ "maxLength": 256
431
+ },
432
+ "sequence": {
433
+ "type": "integer",
434
+ "minimum": 0,
435
+ "maximum": 9007199254740991
436
+ },
437
+ "idempotencyKey": {
438
+ "type": "string",
439
+ "minLength": 1,
440
+ "maxLength": 256
441
+ },
442
+ "occurredAt": {
443
+ "type": "string",
444
+ "format": "date-time",
445
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
446
+ },
447
+ "eventType": {
448
+ "type": "string",
449
+ "const": "tool"
450
+ },
451
+ "payload": {
452
+ "type": "object",
453
+ "properties": {
454
+ "toolCallId": {
455
+ "type": "string",
456
+ "minLength": 1,
457
+ "maxLength": 256
458
+ },
459
+ "toolName": {
460
+ "type": "string",
461
+ "minLength": 1
462
+ },
463
+ "status": {
464
+ "type": "string",
465
+ "enum": [
466
+ "pending",
467
+ "running",
468
+ "completed",
469
+ "failed",
470
+ "denied"
471
+ ]
472
+ },
473
+ "input": {
474
+ "$ref": "#/$defs/__schema0"
475
+ },
476
+ "output": {
477
+ "$ref": "#/$defs/__schema0"
478
+ },
479
+ "error": {
480
+ "type": "string"
481
+ },
482
+ "startedAt": {
483
+ "type": "string",
484
+ "format": "date-time",
485
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
486
+ },
487
+ "completedAt": {
488
+ "type": "string",
489
+ "format": "date-time",
490
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
491
+ }
492
+ },
493
+ "required": [
494
+ "toolCallId",
495
+ "toolName",
496
+ "status"
497
+ ],
498
+ "additionalProperties": false
499
+ }
500
+ },
501
+ "required": [
502
+ "contract",
503
+ "eventId",
504
+ "sessionId",
505
+ "sequence",
506
+ "idempotencyKey",
507
+ "occurredAt",
508
+ "eventType",
509
+ "payload"
510
+ ],
511
+ "additionalProperties": false
512
+ },
513
+ {
514
+ "type": "object",
515
+ "properties": {
516
+ "contract": {
517
+ "type": "string",
518
+ "const": "AgentSessionEvent"
519
+ },
520
+ "eventId": {
521
+ "type": "string",
522
+ "minLength": 1,
523
+ "maxLength": 256
524
+ },
525
+ "sessionId": {
526
+ "type": "string",
527
+ "minLength": 1,
528
+ "maxLength": 256
529
+ },
530
+ "runId": {
531
+ "type": "string",
532
+ "minLength": 1,
533
+ "maxLength": 256
534
+ },
535
+ "sourceMessageId": {
536
+ "type": "string",
537
+ "minLength": 1,
538
+ "maxLength": 256
539
+ },
540
+ "sequence": {
541
+ "type": "integer",
542
+ "minimum": 0,
543
+ "maximum": 9007199254740991
544
+ },
545
+ "idempotencyKey": {
546
+ "type": "string",
547
+ "minLength": 1,
548
+ "maxLength": 256
549
+ },
550
+ "occurredAt": {
551
+ "type": "string",
552
+ "format": "date-time",
553
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
554
+ },
555
+ "eventType": {
556
+ "type": "string",
557
+ "const": "approval"
558
+ },
559
+ "payload": {
560
+ "type": "object",
561
+ "properties": {
562
+ "approvalId": {
563
+ "type": "string",
564
+ "minLength": 1,
565
+ "maxLength": 256
566
+ },
567
+ "toolCallId": {
568
+ "type": "string",
569
+ "minLength": 1,
570
+ "maxLength": 256
571
+ },
572
+ "status": {
573
+ "type": "string",
574
+ "enum": [
575
+ "requested",
576
+ "approved",
577
+ "rejected",
578
+ "expired"
579
+ ]
580
+ },
581
+ "title": {
582
+ "type": "string"
583
+ },
584
+ "description": {
585
+ "type": "string"
586
+ },
587
+ "requestedAction": {
588
+ "$ref": "#/$defs/__schema0"
589
+ }
590
+ },
591
+ "required": [
592
+ "approvalId",
593
+ "status",
594
+ "title"
595
+ ],
596
+ "additionalProperties": false
597
+ }
598
+ },
599
+ "required": [
600
+ "contract",
601
+ "eventId",
602
+ "sessionId",
603
+ "sequence",
604
+ "idempotencyKey",
605
+ "occurredAt",
606
+ "eventType",
607
+ "payload"
608
+ ],
609
+ "additionalProperties": false
610
+ },
611
+ {
612
+ "type": "object",
613
+ "properties": {
614
+ "contract": {
615
+ "type": "string",
616
+ "const": "AgentSessionEvent"
617
+ },
618
+ "eventId": {
619
+ "type": "string",
620
+ "minLength": 1,
621
+ "maxLength": 256
622
+ },
623
+ "sessionId": {
624
+ "type": "string",
625
+ "minLength": 1,
626
+ "maxLength": 256
627
+ },
628
+ "runId": {
629
+ "type": "string",
630
+ "minLength": 1,
631
+ "maxLength": 256
632
+ },
633
+ "sourceMessageId": {
634
+ "type": "string",
635
+ "minLength": 1,
636
+ "maxLength": 256
637
+ },
638
+ "sequence": {
639
+ "type": "integer",
640
+ "minimum": 0,
641
+ "maximum": 9007199254740991
642
+ },
643
+ "idempotencyKey": {
644
+ "type": "string",
645
+ "minLength": 1,
646
+ "maxLength": 256
647
+ },
648
+ "occurredAt": {
649
+ "type": "string",
650
+ "format": "date-time",
651
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
652
+ },
653
+ "eventType": {
654
+ "type": "string",
655
+ "const": "status"
656
+ },
657
+ "payload": {
658
+ "type": "object",
659
+ "properties": {
660
+ "status": {
661
+ "type": "string",
662
+ "enum": [
663
+ "queued",
664
+ "running",
665
+ "waiting_approval",
666
+ "stopping",
667
+ "stopped",
668
+ "completed",
669
+ "failed"
670
+ ]
671
+ },
672
+ "detail": {
673
+ "type": "string"
674
+ },
675
+ "startedAt": {
676
+ "type": "string",
677
+ "format": "date-time",
678
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
679
+ },
680
+ "stoppingRequestedAt": {
681
+ "type": "string",
682
+ "format": "date-time",
683
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
684
+ },
685
+ "stoppedAt": {
686
+ "type": "string",
687
+ "format": "date-time",
688
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
689
+ },
690
+ "completedAt": {
691
+ "type": "string",
692
+ "format": "date-time",
693
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
694
+ },
695
+ "failedAt": {
696
+ "type": "string",
697
+ "format": "date-time",
698
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
699
+ },
700
+ "durationMs": {
701
+ "type": "number",
702
+ "minimum": 0
703
+ }
704
+ },
705
+ "required": [
706
+ "status"
707
+ ],
708
+ "additionalProperties": false
709
+ }
710
+ },
711
+ "required": [
712
+ "contract",
713
+ "eventId",
714
+ "sessionId",
715
+ "sequence",
716
+ "idempotencyKey",
717
+ "occurredAt",
718
+ "eventType",
719
+ "payload"
720
+ ],
721
+ "additionalProperties": false
722
+ },
723
+ {
724
+ "type": "object",
725
+ "properties": {
726
+ "contract": {
727
+ "type": "string",
728
+ "const": "AgentSessionEvent"
729
+ },
730
+ "eventId": {
731
+ "type": "string",
732
+ "minLength": 1,
733
+ "maxLength": 256
734
+ },
735
+ "sessionId": {
736
+ "type": "string",
737
+ "minLength": 1,
738
+ "maxLength": 256
739
+ },
740
+ "runId": {
741
+ "type": "string",
742
+ "minLength": 1,
743
+ "maxLength": 256
744
+ },
745
+ "sourceMessageId": {
746
+ "type": "string",
747
+ "minLength": 1,
748
+ "maxLength": 256
749
+ },
750
+ "sequence": {
751
+ "type": "integer",
752
+ "minimum": 0,
753
+ "maximum": 9007199254740991
754
+ },
755
+ "idempotencyKey": {
756
+ "type": "string",
757
+ "minLength": 1,
758
+ "maxLength": 256
759
+ },
760
+ "occurredAt": {
761
+ "type": "string",
762
+ "format": "date-time",
763
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
764
+ },
765
+ "eventType": {
766
+ "type": "string",
767
+ "const": "artifact"
768
+ },
769
+ "payload": {
770
+ "type": "object",
771
+ "properties": {
772
+ "artifactId": {
773
+ "type": "string",
774
+ "minLength": 1,
775
+ "maxLength": 256
776
+ },
777
+ "name": {
778
+ "type": "string",
779
+ "minLength": 1
780
+ },
781
+ "kind": {
782
+ "type": "string",
783
+ "enum": [
784
+ "file",
785
+ "image",
786
+ "video",
787
+ "audio",
788
+ "web",
789
+ "other"
790
+ ]
791
+ },
792
+ "status": {
793
+ "type": "string",
794
+ "enum": [
795
+ "pending",
796
+ "ready",
797
+ "failed"
798
+ ]
799
+ },
800
+ "mimeType": {
801
+ "type": "string"
802
+ },
803
+ "url": {
804
+ "type": "string",
805
+ "format": "uri"
806
+ },
807
+ "size": {
808
+ "type": "integer",
809
+ "minimum": 0,
810
+ "maximum": 9007199254740991
811
+ },
812
+ "sourceEventId": {
813
+ "type": "string",
814
+ "minLength": 1,
815
+ "maxLength": 256
816
+ }
817
+ },
818
+ "required": [
819
+ "artifactId",
820
+ "name",
821
+ "kind",
822
+ "status"
823
+ ],
824
+ "additionalProperties": false
825
+ }
826
+ },
827
+ "required": [
828
+ "contract",
829
+ "eventId",
830
+ "sessionId",
831
+ "sequence",
832
+ "idempotencyKey",
833
+ "occurredAt",
834
+ "eventType",
835
+ "payload"
836
+ ],
837
+ "additionalProperties": false
838
+ },
839
+ {
840
+ "type": "object",
841
+ "properties": {
842
+ "contract": {
843
+ "type": "string",
844
+ "const": "AgentSessionEvent"
845
+ },
846
+ "eventId": {
847
+ "type": "string",
848
+ "minLength": 1,
849
+ "maxLength": 256
850
+ },
851
+ "sessionId": {
852
+ "type": "string",
853
+ "minLength": 1,
854
+ "maxLength": 256
855
+ },
856
+ "runId": {
857
+ "type": "string",
858
+ "minLength": 1,
859
+ "maxLength": 256
860
+ },
861
+ "sourceMessageId": {
862
+ "type": "string",
863
+ "minLength": 1,
864
+ "maxLength": 256
865
+ },
866
+ "sequence": {
867
+ "type": "integer",
868
+ "minimum": 0,
869
+ "maximum": 9007199254740991
870
+ },
871
+ "idempotencyKey": {
872
+ "type": "string",
873
+ "minLength": 1,
874
+ "maxLength": 256
875
+ },
876
+ "occurredAt": {
877
+ "type": "string",
878
+ "format": "date-time",
879
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
880
+ },
881
+ "eventType": {
882
+ "type": "string",
883
+ "const": "usage"
884
+ },
885
+ "payload": {
886
+ "type": "object",
887
+ "properties": {
888
+ "inputTokens": {
889
+ "type": "integer",
890
+ "minimum": 0,
891
+ "maximum": 9007199254740991
892
+ },
893
+ "outputTokens": {
894
+ "type": "integer",
895
+ "minimum": 0,
896
+ "maximum": 9007199254740991
897
+ },
898
+ "totalTokens": {
899
+ "type": "integer",
900
+ "minimum": 0,
901
+ "maximum": 9007199254740991
902
+ },
903
+ "contextTokens": {
904
+ "type": "integer",
905
+ "minimum": 0,
906
+ "maximum": 9007199254740991
907
+ },
908
+ "contextWindow": {
909
+ "type": "integer",
910
+ "exclusiveMinimum": 0,
911
+ "maximum": 9007199254740991
912
+ }
913
+ },
914
+ "additionalProperties": false
915
+ }
916
+ },
917
+ "required": [
918
+ "contract",
919
+ "eventId",
920
+ "sessionId",
921
+ "sequence",
922
+ "idempotencyKey",
923
+ "occurredAt",
924
+ "eventType",
925
+ "payload"
926
+ ],
927
+ "additionalProperties": false
928
+ },
929
+ {
930
+ "type": "object",
931
+ "properties": {
932
+ "contract": {
933
+ "type": "string",
934
+ "const": "AgentSessionEvent"
935
+ },
936
+ "eventId": {
937
+ "type": "string",
938
+ "minLength": 1,
939
+ "maxLength": 256
940
+ },
941
+ "sessionId": {
942
+ "type": "string",
943
+ "minLength": 1,
944
+ "maxLength": 256
945
+ },
946
+ "runId": {
947
+ "type": "string",
948
+ "minLength": 1,
949
+ "maxLength": 256
950
+ },
951
+ "sourceMessageId": {
952
+ "type": "string",
953
+ "minLength": 1,
954
+ "maxLength": 256
955
+ },
956
+ "sequence": {
957
+ "type": "integer",
958
+ "minimum": 0,
959
+ "maximum": 9007199254740991
960
+ },
961
+ "idempotencyKey": {
962
+ "type": "string",
963
+ "minLength": 1,
964
+ "maxLength": 256
965
+ },
966
+ "occurredAt": {
967
+ "type": "string",
968
+ "format": "date-time",
969
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
970
+ },
971
+ "eventType": {
972
+ "type": "string",
973
+ "const": "resume"
974
+ },
975
+ "payload": {
976
+ "type": "object",
977
+ "properties": {
978
+ "resumable": {
979
+ "type": "boolean"
980
+ },
981
+ "state": {
982
+ "type": "object",
983
+ "propertyNames": {
984
+ "type": "string"
985
+ },
986
+ "additionalProperties": {
987
+ "$ref": "#/$defs/__schema0"
988
+ }
989
+ },
990
+ "reason": {
991
+ "type": "string"
992
+ }
993
+ },
994
+ "required": [
995
+ "resumable"
996
+ ],
997
+ "additionalProperties": false
998
+ }
999
+ },
1000
+ "required": [
1001
+ "contract",
1002
+ "eventId",
1003
+ "sessionId",
1004
+ "sequence",
1005
+ "idempotencyKey",
1006
+ "occurredAt",
1007
+ "eventType",
1008
+ "payload"
1009
+ ],
1010
+ "additionalProperties": false
1011
+ },
1012
+ {
1013
+ "type": "object",
1014
+ "properties": {
1015
+ "contract": {
1016
+ "type": "string",
1017
+ "const": "AgentSessionEvent"
1018
+ },
1019
+ "eventId": {
1020
+ "type": "string",
1021
+ "minLength": 1,
1022
+ "maxLength": 256
1023
+ },
1024
+ "sessionId": {
1025
+ "type": "string",
1026
+ "minLength": 1,
1027
+ "maxLength": 256
1028
+ },
1029
+ "runId": {
1030
+ "type": "string",
1031
+ "minLength": 1,
1032
+ "maxLength": 256
1033
+ },
1034
+ "sourceMessageId": {
1035
+ "type": "string",
1036
+ "minLength": 1,
1037
+ "maxLength": 256
1038
+ },
1039
+ "sequence": {
1040
+ "type": "integer",
1041
+ "minimum": 0,
1042
+ "maximum": 9007199254740991
1043
+ },
1044
+ "idempotencyKey": {
1045
+ "type": "string",
1046
+ "minLength": 1,
1047
+ "maxLength": 256
1048
+ },
1049
+ "occurredAt": {
1050
+ "type": "string",
1051
+ "format": "date-time",
1052
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1053
+ },
1054
+ "eventType": {
1055
+ "type": "string",
1056
+ "const": "error"
1057
+ },
1058
+ "payload": {
1059
+ "type": "object",
1060
+ "properties": {
1061
+ "code": {
1062
+ "type": "string",
1063
+ "minLength": 1
1064
+ },
1065
+ "message": {
1066
+ "type": "string"
1067
+ },
1068
+ "retryable": {
1069
+ "type": "boolean"
1070
+ },
1071
+ "sourceEventId": {
1072
+ "type": "string",
1073
+ "minLength": 1,
1074
+ "maxLength": 256
1075
+ },
1076
+ "details": {
1077
+ "type": "object",
1078
+ "propertyNames": {
1079
+ "type": "string"
1080
+ },
1081
+ "additionalProperties": {
1082
+ "$ref": "#/$defs/__schema0"
1083
+ }
1084
+ }
1085
+ },
1086
+ "required": [
1087
+ "code",
1088
+ "message",
1089
+ "retryable"
1090
+ ],
1091
+ "additionalProperties": false
1092
+ }
1093
+ },
1094
+ "required": [
1095
+ "contract",
1096
+ "eventId",
1097
+ "sessionId",
1098
+ "sequence",
1099
+ "idempotencyKey",
1100
+ "occurredAt",
1101
+ "eventType",
1102
+ "payload"
1103
+ ],
1104
+ "additionalProperties": false
1105
+ },
1106
+ {
1107
+ "type": "object",
1108
+ "properties": {
1109
+ "contract": {
1110
+ "type": "string",
1111
+ "const": "AgentSessionEvent"
1112
+ },
1113
+ "eventId": {
1114
+ "type": "string",
1115
+ "minLength": 1,
1116
+ "maxLength": 256
1117
+ },
1118
+ "sessionId": {
1119
+ "type": "string",
1120
+ "minLength": 1,
1121
+ "maxLength": 256
1122
+ },
1123
+ "runId": {
1124
+ "type": "string",
1125
+ "minLength": 1,
1126
+ "maxLength": 256
1127
+ },
1128
+ "sourceMessageId": {
1129
+ "type": "string",
1130
+ "minLength": 1,
1131
+ "maxLength": 256
1132
+ },
1133
+ "sequence": {
1134
+ "type": "integer",
1135
+ "minimum": 0,
1136
+ "maximum": 9007199254740991
1137
+ },
1138
+ "idempotencyKey": {
1139
+ "type": "string",
1140
+ "minLength": 1,
1141
+ "maxLength": 256
1142
+ },
1143
+ "occurredAt": {
1144
+ "type": "string",
1145
+ "format": "date-time",
1146
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1147
+ },
1148
+ "eventType": {
1149
+ "type": "string",
1150
+ "const": "diff"
1151
+ },
1152
+ "payload": {
1153
+ "type": "object",
1154
+ "properties": {
1155
+ "path": {
1156
+ "type": "string",
1157
+ "minLength": 1
1158
+ },
1159
+ "status": {
1160
+ "type": "string",
1161
+ "enum": [
1162
+ "added",
1163
+ "modified",
1164
+ "deleted",
1165
+ "renamed"
1166
+ ]
1167
+ },
1168
+ "patch": {
1169
+ "type": "string"
1170
+ }
1171
+ },
1172
+ "required": [
1173
+ "path",
1174
+ "status"
1175
+ ],
1176
+ "additionalProperties": false
1177
+ }
1178
+ },
1179
+ "required": [
1180
+ "contract",
1181
+ "eventId",
1182
+ "sessionId",
1183
+ "sequence",
1184
+ "idempotencyKey",
1185
+ "occurredAt",
1186
+ "eventType",
1187
+ "payload"
1188
+ ],
1189
+ "additionalProperties": false
1190
+ },
1191
+ {
1192
+ "type": "object",
1193
+ "properties": {
1194
+ "contract": {
1195
+ "type": "string",
1196
+ "const": "AgentSessionEvent"
1197
+ },
1198
+ "eventId": {
1199
+ "type": "string",
1200
+ "minLength": 1,
1201
+ "maxLength": 256
1202
+ },
1203
+ "sessionId": {
1204
+ "type": "string",
1205
+ "minLength": 1,
1206
+ "maxLength": 256
1207
+ },
1208
+ "runId": {
1209
+ "type": "string",
1210
+ "minLength": 1,
1211
+ "maxLength": 256
1212
+ },
1213
+ "sourceMessageId": {
1214
+ "type": "string",
1215
+ "minLength": 1,
1216
+ "maxLength": 256
1217
+ },
1218
+ "sequence": {
1219
+ "type": "integer",
1220
+ "minimum": 0,
1221
+ "maximum": 9007199254740991
1222
+ },
1223
+ "idempotencyKey": {
1224
+ "type": "string",
1225
+ "minLength": 1,
1226
+ "maxLength": 256
1227
+ },
1228
+ "occurredAt": {
1229
+ "type": "string",
1230
+ "format": "date-time",
1231
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1232
+ },
1233
+ "eventType": {
1234
+ "type": "string",
1235
+ "const": "workspace-file"
1236
+ },
1237
+ "payload": {
1238
+ "type": "object",
1239
+ "properties": {
1240
+ "path": {
1241
+ "type": "string",
1242
+ "minLength": 1
1243
+ },
1244
+ "operation": {
1245
+ "type": "string",
1246
+ "enum": [
1247
+ "upsert",
1248
+ "delete"
1249
+ ]
1250
+ },
1251
+ "mimeType": {
1252
+ "type": "string"
1253
+ },
1254
+ "size": {
1255
+ "type": "integer",
1256
+ "minimum": 0,
1257
+ "maximum": 9007199254740991
1258
+ }
1259
+ },
1260
+ "required": [
1261
+ "path",
1262
+ "operation"
1263
+ ],
1264
+ "additionalProperties": false
1265
+ }
1266
+ },
1267
+ "required": [
1268
+ "contract",
1269
+ "eventId",
1270
+ "sessionId",
1271
+ "sequence",
1272
+ "idempotencyKey",
1273
+ "occurredAt",
1274
+ "eventType",
1275
+ "payload"
1276
+ ],
1277
+ "additionalProperties": false
1278
+ },
1279
+ {
1280
+ "type": "object",
1281
+ "properties": {
1282
+ "contract": {
1283
+ "type": "string",
1284
+ "const": "AgentSessionEvent"
1285
+ },
1286
+ "eventId": {
1287
+ "type": "string",
1288
+ "minLength": 1,
1289
+ "maxLength": 256
1290
+ },
1291
+ "sessionId": {
1292
+ "type": "string",
1293
+ "minLength": 1,
1294
+ "maxLength": 256
1295
+ },
1296
+ "runId": {
1297
+ "type": "string",
1298
+ "minLength": 1,
1299
+ "maxLength": 256
1300
+ },
1301
+ "sourceMessageId": {
1302
+ "type": "string",
1303
+ "minLength": 1,
1304
+ "maxLength": 256
1305
+ },
1306
+ "sequence": {
1307
+ "type": "integer",
1308
+ "minimum": 0,
1309
+ "maximum": 9007199254740991
1310
+ },
1311
+ "idempotencyKey": {
1312
+ "type": "string",
1313
+ "minLength": 1,
1314
+ "maxLength": 256
1315
+ },
1316
+ "occurredAt": {
1317
+ "type": "string",
1318
+ "format": "date-time",
1319
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1320
+ },
1321
+ "eventType": {
1322
+ "type": "string",
1323
+ "const": "terminal"
1324
+ },
1325
+ "payload": {
1326
+ "type": "object",
1327
+ "properties": {
1328
+ "terminalId": {
1329
+ "type": "string",
1330
+ "minLength": 1,
1331
+ "maxLength": 256
1332
+ },
1333
+ "stream": {
1334
+ "type": "string",
1335
+ "enum": [
1336
+ "stdin",
1337
+ "stdout",
1338
+ "stderr",
1339
+ "status"
1340
+ ]
1341
+ },
1342
+ "chunk": {
1343
+ "type": "string"
1344
+ },
1345
+ "exitCode": {
1346
+ "type": "integer",
1347
+ "minimum": -9007199254740991,
1348
+ "maximum": 9007199254740991
1349
+ }
1350
+ },
1351
+ "required": [
1352
+ "terminalId",
1353
+ "stream",
1354
+ "chunk"
1355
+ ],
1356
+ "additionalProperties": false
1357
+ }
1358
+ },
1359
+ "required": [
1360
+ "contract",
1361
+ "eventId",
1362
+ "sessionId",
1363
+ "sequence",
1364
+ "idempotencyKey",
1365
+ "occurredAt",
1366
+ "eventType",
1367
+ "payload"
1368
+ ],
1369
+ "additionalProperties": false
1370
+ },
1371
+ {
1372
+ "type": "object",
1373
+ "properties": {
1374
+ "contract": {
1375
+ "type": "string",
1376
+ "const": "AgentSessionEvent"
1377
+ },
1378
+ "eventId": {
1379
+ "type": "string",
1380
+ "minLength": 1,
1381
+ "maxLength": 256
1382
+ },
1383
+ "sessionId": {
1384
+ "type": "string",
1385
+ "minLength": 1,
1386
+ "maxLength": 256
1387
+ },
1388
+ "runId": {
1389
+ "type": "string",
1390
+ "minLength": 1,
1391
+ "maxLength": 256
1392
+ },
1393
+ "sourceMessageId": {
1394
+ "type": "string",
1395
+ "minLength": 1,
1396
+ "maxLength": 256
1397
+ },
1398
+ "sequence": {
1399
+ "type": "integer",
1400
+ "minimum": 0,
1401
+ "maximum": 9007199254740991
1402
+ },
1403
+ "idempotencyKey": {
1404
+ "type": "string",
1405
+ "minLength": 1,
1406
+ "maxLength": 256
1407
+ },
1408
+ "occurredAt": {
1409
+ "type": "string",
1410
+ "format": "date-time",
1411
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
1412
+ },
1413
+ "eventType": {
1414
+ "type": "string",
1415
+ "const": "test-result"
1416
+ },
1417
+ "payload": {
1418
+ "type": "object",
1419
+ "properties": {
1420
+ "testId": {
1421
+ "type": "string",
1422
+ "minLength": 1,
1423
+ "maxLength": 256
1424
+ },
1425
+ "name": {
1426
+ "type": "string"
1427
+ },
1428
+ "status": {
1429
+ "type": "string",
1430
+ "enum": [
1431
+ "running",
1432
+ "passed",
1433
+ "failed",
1434
+ "skipped"
1435
+ ]
1436
+ },
1437
+ "durationMs": {
1438
+ "type": "number",
1439
+ "minimum": 0
1440
+ },
1441
+ "output": {
1442
+ "type": "string"
1443
+ }
1444
+ },
1445
+ "required": [
1446
+ "testId",
1447
+ "name",
1448
+ "status"
1449
+ ],
1450
+ "additionalProperties": false
1451
+ }
1452
+ },
1453
+ "required": [
1454
+ "contract",
1455
+ "eventId",
1456
+ "sessionId",
1457
+ "sequence",
1458
+ "idempotencyKey",
1459
+ "occurredAt",
1460
+ "eventType",
1461
+ "payload"
1462
+ ],
1463
+ "additionalProperties": false
1464
+ }
1465
+ ],
1466
+ "$defs": {
1467
+ "__schema0": {
1468
+ "anyOf": [
1469
+ {
1470
+ "type": "string"
1471
+ },
1472
+ {
1473
+ "type": "number"
1474
+ },
1475
+ {
1476
+ "type": "boolean"
1477
+ },
1478
+ {
1479
+ "type": "null"
1480
+ },
1481
+ {
1482
+ "type": "array",
1483
+ "items": {
1484
+ "$ref": "#/$defs/__schema0"
1485
+ }
1486
+ },
1487
+ {
1488
+ "type": "object",
1489
+ "propertyNames": {
1490
+ "type": "string"
1491
+ },
1492
+ "additionalProperties": {
1493
+ "$ref": "#/$defs/__schema0"
1494
+ }
1495
+ }
1496
+ ]
1497
+ }
1498
+ },
1499
+ "$id": "https://schemas.infmonkeys.com/contracts/agent-session-run-event.schema.json",
1500
+ "title": "agent-session-run-event"
1501
+ }