@roll-agent/relay-protocol 0.4.1 → 0.5.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.
Files changed (35) hide show
  1. package/README.md +4 -0
  2. package/dist/control.d.ts +31 -0
  3. package/dist/control.js +6 -0
  4. package/dist/index.d.ts +1893 -2
  5. package/dist/index.js +92 -2
  6. package/dist/schema/roll-relay-protocol-v1.3.schema.json +4606 -0
  7. package/fixtures/v1.3/invalid-approval-projection-raw-input-leak.json +19 -0
  8. package/fixtures/v1.3/invalid-authentication-local-only.json +12 -0
  9. package/fixtures/v1.3/invalid-context-recovery-notes.json +22 -0
  10. package/fixtures/v1.3/invalid-file-picker-local-only.json +12 -0
  11. package/fixtures/v1.3/invalid-interaction-cancelled-reason-leak.json +10 -0
  12. package/fixtures/v1.3/invalid-interaction-resolved-result-leak.json +18 -0
  13. package/fixtures/v1.3/invalid-legacy-approval-candidate.json +7 -0
  14. package/fixtures/v1.3/invalid-legacy-approval-respond.json +7 -0
  15. package/fixtures/v1.3/invalid-n-minus-one-device-connect.json +6 -0
  16. package/fixtures/v1.3/invalid-non-normal-sensitivity.json +21 -0
  17. package/fixtures/v1.3/invalid-runtime-event-tool-input-leak.json +22 -0
  18. package/fixtures/v1.3/invalid-runtime-event-tool-output-leak.json +21 -0
  19. package/fixtures/v1.3/invalid-user-input-projection-secret-leak.json +22 -0
  20. package/fixtures/v1.3/manifest.json +489 -0
  21. package/fixtures/v1.3/valid-context-recovery.json +21 -0
  22. package/fixtures/v1.3/valid-device-connect.json +6 -0
  23. package/fixtures/v1.3/valid-interaction-cancelled.json +9 -0
  24. package/fixtures/v1.3/valid-interaction-candidate-user-input.json +25 -0
  25. package/fixtures/v1.3/valid-interaction-request-approval.json +17 -0
  26. package/fixtures/v1.3/valid-interaction-request-user-input.json +40 -0
  27. package/fixtures/v1.3/valid-interaction-resolved.json +9 -0
  28. package/fixtures/v1.3/valid-runtime-ack.json +5 -0
  29. package/fixtures/v1.3/valid-runtime-encrypted-interaction.json +10 -0
  30. package/fixtures/v1.3/valid-runtime-event-runtime-n-minus-one.json +16 -0
  31. package/fixtures/v1.3/valid-runtime-event.json +16 -0
  32. package/fixtures/v1.3/valid-runtime-gap.json +7 -0
  33. package/fixtures/v1.3/valid-runtime-request.json +10 -0
  34. package/fixtures/v1.3/valid-runtime-response.json +8 -0
  35. package/package.json +4 -3
@@ -0,0 +1,4606 @@
1
+ {
2
+ "anyOf": [
3
+ {
4
+ "readOnly": true,
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "const": "device.connect"
10
+ },
11
+ "protocolVersion": {
12
+ "type": "string",
13
+ "const": "1.3"
14
+ },
15
+ "deviceId": {
16
+ "type": "string",
17
+ "format": "uuid",
18
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
19
+ },
20
+ "pairingToken": {
21
+ "type": "string",
22
+ "minLength": 16
23
+ }
24
+ },
25
+ "required": ["type", "protocolVersion", "deviceId", "pairingToken"],
26
+ "additionalProperties": false
27
+ },
28
+ {
29
+ "readOnly": true,
30
+ "type": "object",
31
+ "properties": {
32
+ "type": {
33
+ "type": "string",
34
+ "const": "runtime.request"
35
+ },
36
+ "requestId": {
37
+ "type": "string",
38
+ "format": "uuid",
39
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
40
+ },
41
+ "workspaceId": {
42
+ "type": "string",
43
+ "format": "uuid",
44
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
45
+ },
46
+ "method": {
47
+ "type": "string",
48
+ "enum": [
49
+ "initialize",
50
+ "thread.list",
51
+ "thread.create",
52
+ "thread.open",
53
+ "thread.snapshot",
54
+ "thread.rename",
55
+ "thread.delete",
56
+ "thread.detach",
57
+ "thread.capabilities",
58
+ "turn.start",
59
+ "turn.cancel",
60
+ "operation.get",
61
+ "interaction.candidate",
62
+ "operation.result.get"
63
+ ]
64
+ },
65
+ "params": {
66
+ "$ref": "#/$defs/sharedSchema0"
67
+ }
68
+ },
69
+ "required": ["type", "requestId", "workspaceId", "method", "params"],
70
+ "additionalProperties": false
71
+ },
72
+ {
73
+ "readOnly": true,
74
+ "type": "object",
75
+ "properties": {
76
+ "type": {
77
+ "type": "string",
78
+ "const": "runtime.response"
79
+ },
80
+ "requestId": {
81
+ "type": "string",
82
+ "format": "uuid",
83
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
84
+ },
85
+ "workspaceId": {
86
+ "type": "string",
87
+ "format": "uuid",
88
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
89
+ },
90
+ "result": {
91
+ "$ref": "#/$defs/sharedSchema0"
92
+ },
93
+ "error": {
94
+ "readOnly": true,
95
+ "type": "object",
96
+ "properties": {
97
+ "code": {
98
+ "type": "string",
99
+ "minLength": 1
100
+ },
101
+ "message": {
102
+ "type": "string"
103
+ },
104
+ "retryable": {
105
+ "type": "boolean"
106
+ }
107
+ },
108
+ "required": ["code", "message", "retryable"],
109
+ "additionalProperties": false
110
+ }
111
+ },
112
+ "required": ["type", "requestId", "workspaceId"],
113
+ "additionalProperties": false
114
+ },
115
+ {
116
+ "readOnly": true,
117
+ "type": "object",
118
+ "properties": {
119
+ "type": {
120
+ "type": "string",
121
+ "const": "runtime.event"
122
+ },
123
+ "workspaceId": {
124
+ "type": "string",
125
+ "format": "uuid",
126
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
127
+ },
128
+ "relaySequence": {
129
+ "type": "integer",
130
+ "minimum": 0,
131
+ "maximum": 9007199254740991
132
+ },
133
+ "event": {
134
+ "readOnly": true,
135
+ "type": "object",
136
+ "properties": {
137
+ "protocolVersion": {
138
+ "type": "string",
139
+ "enum": ["1.1", "1.0"]
140
+ },
141
+ "runtimeInstanceId": {
142
+ "type": "string",
143
+ "format": "uuid",
144
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
145
+ },
146
+ "sequence": {
147
+ "type": "integer",
148
+ "minimum": 0,
149
+ "maximum": 9007199254740991
150
+ },
151
+ "timestamp": {
152
+ "type": "string",
153
+ "format": "date-time",
154
+ "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|([+-]\\d{2}:\\d{2})))$"
155
+ },
156
+ "threadId": {
157
+ "type": "string",
158
+ "format": "uuid",
159
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
160
+ },
161
+ "turnId": {
162
+ "type": "string",
163
+ "format": "uuid",
164
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
165
+ },
166
+ "event": {
167
+ "anyOf": [
168
+ {
169
+ "anyOf": [
170
+ {
171
+ "readOnly": true,
172
+ "type": "object",
173
+ "properties": {
174
+ "type": {
175
+ "type": "string",
176
+ "const": "turn.started"
177
+ }
178
+ },
179
+ "required": ["type"],
180
+ "additionalProperties": false
181
+ },
182
+ {
183
+ "readOnly": true,
184
+ "type": "object",
185
+ "properties": {
186
+ "type": {
187
+ "type": "string",
188
+ "const": "message.started"
189
+ },
190
+ "streamId": {
191
+ "type": "string",
192
+ "format": "uuid",
193
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
194
+ }
195
+ },
196
+ "required": ["type", "streamId"],
197
+ "additionalProperties": false
198
+ },
199
+ {
200
+ "readOnly": true,
201
+ "type": "object",
202
+ "properties": {
203
+ "type": {
204
+ "type": "string",
205
+ "const": "message.delta"
206
+ },
207
+ "streamId": {
208
+ "type": "string",
209
+ "format": "uuid",
210
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
211
+ },
212
+ "delta": {
213
+ "type": "string"
214
+ }
215
+ },
216
+ "required": ["type", "streamId", "delta"],
217
+ "additionalProperties": false
218
+ },
219
+ {
220
+ "readOnly": true,
221
+ "type": "object",
222
+ "properties": {
223
+ "type": {
224
+ "type": "string",
225
+ "const": "message.completed"
226
+ },
227
+ "streamId": {
228
+ "type": "string",
229
+ "format": "uuid",
230
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
231
+ },
232
+ "text": {
233
+ "type": "string"
234
+ }
235
+ },
236
+ "required": ["type", "streamId", "text"],
237
+ "additionalProperties": false
238
+ },
239
+ {
240
+ "readOnly": true,
241
+ "type": "object",
242
+ "properties": {
243
+ "type": {
244
+ "type": "string",
245
+ "const": "reasoning.summary.delta"
246
+ },
247
+ "reasoningId": {
248
+ "type": "string",
249
+ "minLength": 1
250
+ },
251
+ "delta": {
252
+ "type": "string"
253
+ }
254
+ },
255
+ "required": ["type", "reasoningId", "delta"],
256
+ "additionalProperties": false
257
+ },
258
+ {
259
+ "readOnly": true,
260
+ "type": "object",
261
+ "properties": {
262
+ "type": {
263
+ "type": "string",
264
+ "const": "tool.started"
265
+ },
266
+ "toolCallId": {
267
+ "type": "string",
268
+ "minLength": 1
269
+ },
270
+ "agentName": {
271
+ "type": "string",
272
+ "minLength": 1
273
+ },
274
+ "toolName": {
275
+ "type": "string",
276
+ "minLength": 1
277
+ }
278
+ },
279
+ "required": [
280
+ "type",
281
+ "toolCallId",
282
+ "agentName",
283
+ "toolName"
284
+ ],
285
+ "additionalProperties": false
286
+ },
287
+ {
288
+ "readOnly": true,
289
+ "type": "object",
290
+ "properties": {
291
+ "type": {
292
+ "type": "string",
293
+ "const": "tool.completed"
294
+ },
295
+ "toolCallId": {
296
+ "type": "string",
297
+ "minLength": 1
298
+ },
299
+ "agentName": {
300
+ "type": "string",
301
+ "minLength": 1
302
+ },
303
+ "toolName": {
304
+ "type": "string",
305
+ "minLength": 1
306
+ },
307
+ "outcome": {
308
+ "readOnly": true,
309
+ "type": "object",
310
+ "properties": {
311
+ "kind": {
312
+ "type": "string",
313
+ "enum": [
314
+ "success",
315
+ "user_rejected",
316
+ "policy_denied",
317
+ "invalid_input",
318
+ "cancelled",
319
+ "tool_failed"
320
+ ]
321
+ }
322
+ },
323
+ "required": ["kind"],
324
+ "additionalProperties": false
325
+ }
326
+ },
327
+ "required": [
328
+ "type",
329
+ "toolCallId",
330
+ "agentName",
331
+ "toolName"
332
+ ],
333
+ "additionalProperties": false
334
+ },
335
+ {
336
+ "readOnly": true,
337
+ "type": "object",
338
+ "properties": {
339
+ "type": {
340
+ "type": "string",
341
+ "const": "approval.required"
342
+ },
343
+ "approval": {
344
+ "readOnly": true,
345
+ "type": "object",
346
+ "properties": {
347
+ "approvalId": {
348
+ "type": "string",
349
+ "format": "uuid",
350
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
351
+ },
352
+ "agentName": {
353
+ "type": "string",
354
+ "minLength": 1
355
+ },
356
+ "toolName": {
357
+ "type": "string",
358
+ "minLength": 1
359
+ },
360
+ "explanation": {
361
+ "type": "string",
362
+ "minLength": 1,
363
+ "maxLength": 100
364
+ }
365
+ },
366
+ "required": ["approvalId", "agentName", "toolName"],
367
+ "additionalProperties": false
368
+ }
369
+ },
370
+ "required": ["type", "approval"],
371
+ "additionalProperties": false
372
+ },
373
+ {
374
+ "readOnly": true,
375
+ "type": "object",
376
+ "properties": {
377
+ "type": {
378
+ "type": "string",
379
+ "const": "approval.resolved"
380
+ },
381
+ "approvalId": {
382
+ "type": "string",
383
+ "format": "uuid",
384
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
385
+ },
386
+ "resolution": {
387
+ "anyOf": [
388
+ {
389
+ "readOnly": true,
390
+ "type": "object",
391
+ "properties": {
392
+ "status": {
393
+ "type": "string",
394
+ "const": "resolved"
395
+ },
396
+ "decision": {
397
+ "type": "string",
398
+ "enum": ["approve", "reject"]
399
+ }
400
+ },
401
+ "required": ["status", "decision"],
402
+ "additionalProperties": false
403
+ },
404
+ {
405
+ "readOnly": true,
406
+ "type": "object",
407
+ "properties": {
408
+ "status": {
409
+ "type": "string",
410
+ "const": "cancelled"
411
+ }
412
+ },
413
+ "required": ["status"],
414
+ "additionalProperties": false
415
+ },
416
+ {
417
+ "readOnly": true,
418
+ "type": "object",
419
+ "properties": {
420
+ "status": {
421
+ "type": "string",
422
+ "const": "expired"
423
+ }
424
+ },
425
+ "required": ["status"],
426
+ "additionalProperties": false
427
+ }
428
+ ]
429
+ }
430
+ },
431
+ "required": ["type", "approvalId", "resolution"],
432
+ "additionalProperties": false
433
+ },
434
+ {
435
+ "readOnly": true,
436
+ "type": "object",
437
+ "properties": {
438
+ "type": {
439
+ "type": "string",
440
+ "const": "turn.completed"
441
+ }
442
+ },
443
+ "required": ["type"],
444
+ "additionalProperties": false
445
+ },
446
+ {
447
+ "readOnly": true,
448
+ "type": "object",
449
+ "properties": {
450
+ "type": {
451
+ "type": "string",
452
+ "const": "turn.cancelled"
453
+ }
454
+ },
455
+ "required": ["type"],
456
+ "additionalProperties": false
457
+ },
458
+ {
459
+ "readOnly": true,
460
+ "type": "object",
461
+ "properties": {
462
+ "type": {
463
+ "type": "string",
464
+ "const": "turn.failed"
465
+ },
466
+ "stage": {
467
+ "type": "string",
468
+ "enum": ["bootstrap", "plan", "execute"]
469
+ }
470
+ },
471
+ "required": ["type", "stage"],
472
+ "additionalProperties": false
473
+ },
474
+ {
475
+ "readOnly": true,
476
+ "type": "object",
477
+ "properties": {
478
+ "type": {
479
+ "type": "string",
480
+ "const": "capabilities.changed"
481
+ }
482
+ },
483
+ "required": ["type"],
484
+ "additionalProperties": false
485
+ }
486
+ ]
487
+ },
488
+ {
489
+ "readOnly": true,
490
+ "type": "object",
491
+ "properties": {
492
+ "type": {
493
+ "type": "string",
494
+ "const": "tool.completed"
495
+ },
496
+ "toolCallId": {
497
+ "type": "string",
498
+ "minLength": 1
499
+ },
500
+ "agentName": {
501
+ "type": "string",
502
+ "minLength": 1
503
+ },
504
+ "toolName": {
505
+ "type": "string",
506
+ "minLength": 1
507
+ },
508
+ "outcome": {
509
+ "readOnly": true,
510
+ "type": "object",
511
+ "properties": {
512
+ "kind": {
513
+ "type": "string",
514
+ "enum": [
515
+ "success",
516
+ "user_rejected",
517
+ "policy_denied",
518
+ "invalid_input",
519
+ "cancelled",
520
+ "tool_failed"
521
+ ]
522
+ }
523
+ },
524
+ "required": ["kind"],
525
+ "additionalProperties": false
526
+ },
527
+ "appOutput": {
528
+ "readOnly": true,
529
+ "anyOf": [
530
+ {
531
+ "readOnly": true,
532
+ "type": "object",
533
+ "properties": {
534
+ "status": {
535
+ "type": "string",
536
+ "const": "rejected"
537
+ },
538
+ "reason": {
539
+ "type": "string",
540
+ "enum": ["credential_field", "credential_value"]
541
+ },
542
+ "field": {
543
+ "type": "string",
544
+ "maxLength": 64
545
+ }
546
+ },
547
+ "required": ["status", "reason"],
548
+ "additionalProperties": false
549
+ },
550
+ {
551
+ "type": "object",
552
+ "properties": {
553
+ "status": {
554
+ "type": "string",
555
+ "const": "available"
556
+ },
557
+ "schemaId": {
558
+ "type": "string",
559
+ "minLength": 1,
560
+ "maxLength": 256
561
+ },
562
+ "schemaVersion": {
563
+ "type": "integer",
564
+ "exclusiveMinimum": 0,
565
+ "maximum": 9007199254740991
566
+ }
567
+ },
568
+ "required": ["status", "schemaId", "schemaVersion"],
569
+ "additionalProperties": false
570
+ },
571
+ {
572
+ "type": "object",
573
+ "properties": {
574
+ "status": {
575
+ "type": "string",
576
+ "enum": [
577
+ "not_provided",
578
+ "invalid",
579
+ "too_large",
580
+ "expired",
581
+ "denied"
582
+ ]
583
+ }
584
+ },
585
+ "required": ["status"],
586
+ "additionalProperties": false
587
+ }
588
+ ]
589
+ },
590
+ "operationId": {
591
+ "type": "string",
592
+ "format": "uuid",
593
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
594
+ }
595
+ },
596
+ "required": ["type", "toolCallId", "agentName", "toolName"],
597
+ "additionalProperties": false
598
+ },
599
+ {
600
+ "readOnly": true,
601
+ "type": "object",
602
+ "properties": {
603
+ "type": {
604
+ "type": "string",
605
+ "const": "context.recovery.changed"
606
+ },
607
+ "contextRecovery": {
608
+ "anyOf": [
609
+ {
610
+ "readOnly": true,
611
+ "type": "object",
612
+ "properties": {
613
+ "checkpointId": {
614
+ "type": "string",
615
+ "format": "uuid",
616
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
617
+ },
618
+ "required": {
619
+ "type": "boolean"
620
+ },
621
+ "unextracted": {
622
+ "type": "boolean"
623
+ },
624
+ "requiredItemCount": {
625
+ "type": "integer",
626
+ "minimum": 0,
627
+ "maximum": 9007199254740991
628
+ }
629
+ },
630
+ "required": [
631
+ "checkpointId",
632
+ "required",
633
+ "unextracted",
634
+ "requiredItemCount"
635
+ ],
636
+ "additionalProperties": false
637
+ },
638
+ {
639
+ "type": "null"
640
+ }
641
+ ]
642
+ }
643
+ },
644
+ "required": ["type", "contextRecovery"],
645
+ "additionalProperties": false
646
+ }
647
+ ]
648
+ }
649
+ },
650
+ "required": [
651
+ "protocolVersion",
652
+ "runtimeInstanceId",
653
+ "sequence",
654
+ "timestamp",
655
+ "threadId",
656
+ "event"
657
+ ],
658
+ "additionalProperties": false
659
+ }
660
+ },
661
+ "required": ["type", "workspaceId", "relaySequence", "event"],
662
+ "additionalProperties": false
663
+ },
664
+ {
665
+ "readOnly": true,
666
+ "type": "object",
667
+ "properties": {
668
+ "type": {
669
+ "type": "string",
670
+ "const": "runtime.ack"
671
+ },
672
+ "workspaceId": {
673
+ "type": "string",
674
+ "format": "uuid",
675
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
676
+ },
677
+ "throughRelaySequence": {
678
+ "type": "integer",
679
+ "minimum": -1,
680
+ "maximum": 9007199254740991
681
+ }
682
+ },
683
+ "required": ["type", "workspaceId", "throughRelaySequence"],
684
+ "additionalProperties": false
685
+ },
686
+ {
687
+ "readOnly": true,
688
+ "type": "object",
689
+ "properties": {
690
+ "type": {
691
+ "type": "string",
692
+ "const": "runtime.gap"
693
+ },
694
+ "workspaceId": {
695
+ "type": "string",
696
+ "format": "uuid",
697
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
698
+ },
699
+ "fromRelaySequence": {
700
+ "type": "integer",
701
+ "minimum": 0,
702
+ "maximum": 9007199254740991
703
+ },
704
+ "throughRelaySequence": {
705
+ "type": "integer",
706
+ "minimum": 0,
707
+ "maximum": 9007199254740991
708
+ },
709
+ "recovery": {
710
+ "type": "string",
711
+ "const": "thread.snapshot"
712
+ }
713
+ },
714
+ "required": [
715
+ "type",
716
+ "workspaceId",
717
+ "fromRelaySequence",
718
+ "throughRelaySequence",
719
+ "recovery"
720
+ ],
721
+ "additionalProperties": false
722
+ },
723
+ {
724
+ "readOnly": true,
725
+ "type": "object",
726
+ "properties": {
727
+ "type": {
728
+ "type": "string",
729
+ "const": "runtime.encrypted"
730
+ },
731
+ "workspaceId": {
732
+ "type": "string",
733
+ "format": "uuid",
734
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
735
+ },
736
+ "envelopeId": {
737
+ "type": "string",
738
+ "format": "uuid",
739
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
740
+ },
741
+ "payloadKind": {
742
+ "type": "string",
743
+ "enum": ["request", "response", "event", "interaction"]
744
+ },
745
+ "requestId": {
746
+ "type": "string",
747
+ "format": "uuid",
748
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
749
+ },
750
+ "relaySequence": {
751
+ "type": "integer",
752
+ "minimum": 0,
753
+ "maximum": 9007199254740991
754
+ },
755
+ "algorithm": {
756
+ "type": "string",
757
+ "minLength": 1
758
+ },
759
+ "nonce": {
760
+ "type": "string",
761
+ "minLength": 1
762
+ },
763
+ "ciphertext": {
764
+ "type": "string",
765
+ "minLength": 1
766
+ }
767
+ },
768
+ "required": [
769
+ "type",
770
+ "workspaceId",
771
+ "envelopeId",
772
+ "payloadKind",
773
+ "algorithm",
774
+ "nonce",
775
+ "ciphertext"
776
+ ],
777
+ "additionalProperties": false
778
+ },
779
+ {
780
+ "anyOf": [
781
+ {
782
+ "readOnly": true,
783
+ "type": "object",
784
+ "properties": {
785
+ "type": {
786
+ "type": "string",
787
+ "const": "interaction.request"
788
+ },
789
+ "workspaceId": {
790
+ "type": "string",
791
+ "format": "uuid",
792
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
793
+ },
794
+ "relaySequence": {
795
+ "type": "integer",
796
+ "minimum": 0,
797
+ "maximum": 9007199254740991
798
+ },
799
+ "interactionId": {
800
+ "type": "string",
801
+ "format": "uuid",
802
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
803
+ },
804
+ "threadId": {
805
+ "type": "string",
806
+ "format": "uuid",
807
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
808
+ },
809
+ "turnId": {
810
+ "type": "string",
811
+ "format": "uuid",
812
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
813
+ },
814
+ "expiresAt": {
815
+ "type": "string",
816
+ "format": "date-time",
817
+ "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|([+-]\\d{2}:\\d{2})))$"
818
+ },
819
+ "sensitivity": {
820
+ "type": "string",
821
+ "const": "normal"
822
+ },
823
+ "method": {
824
+ "type": "string",
825
+ "const": "approval.request"
826
+ },
827
+ "projection": {
828
+ "readOnly": true,
829
+ "type": "object",
830
+ "properties": {
831
+ "approvalId": {
832
+ "type": "string",
833
+ "format": "uuid",
834
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
835
+ },
836
+ "agentName": {
837
+ "type": "string",
838
+ "minLength": 1
839
+ },
840
+ "toolName": {
841
+ "type": "string",
842
+ "minLength": 1
843
+ },
844
+ "explanation": {
845
+ "type": "string",
846
+ "minLength": 1,
847
+ "maxLength": 100
848
+ }
849
+ },
850
+ "required": ["approvalId", "agentName", "toolName"],
851
+ "additionalProperties": false
852
+ }
853
+ },
854
+ "required": [
855
+ "type",
856
+ "workspaceId",
857
+ "relaySequence",
858
+ "interactionId",
859
+ "threadId",
860
+ "turnId",
861
+ "expiresAt",
862
+ "sensitivity",
863
+ "method",
864
+ "projection"
865
+ ],
866
+ "additionalProperties": false
867
+ },
868
+ {
869
+ "readOnly": true,
870
+ "type": "object",
871
+ "properties": {
872
+ "type": {
873
+ "type": "string",
874
+ "const": "interaction.request"
875
+ },
876
+ "workspaceId": {
877
+ "type": "string",
878
+ "format": "uuid",
879
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
880
+ },
881
+ "relaySequence": {
882
+ "type": "integer",
883
+ "minimum": 0,
884
+ "maximum": 9007199254740991
885
+ },
886
+ "interactionId": {
887
+ "type": "string",
888
+ "format": "uuid",
889
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
890
+ },
891
+ "threadId": {
892
+ "type": "string",
893
+ "format": "uuid",
894
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
895
+ },
896
+ "turnId": {
897
+ "type": "string",
898
+ "format": "uuid",
899
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
900
+ },
901
+ "expiresAt": {
902
+ "type": "string",
903
+ "format": "date-time",
904
+ "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|([+-]\\d{2}:\\d{2})))$"
905
+ },
906
+ "sensitivity": {
907
+ "type": "string",
908
+ "const": "normal"
909
+ },
910
+ "method": {
911
+ "type": "string",
912
+ "const": "userInput.request"
913
+ },
914
+ "projection": {
915
+ "readOnly": true,
916
+ "type": "object",
917
+ "properties": {
918
+ "title": {
919
+ "type": "string",
920
+ "minLength": 1,
921
+ "maxLength": 200
922
+ },
923
+ "description": {
924
+ "type": "string",
925
+ "minLength": 1,
926
+ "maxLength": 500
927
+ },
928
+ "controls": {
929
+ "minItems": 1,
930
+ "maxItems": 16,
931
+ "type": "array",
932
+ "items": {
933
+ "anyOf": [
934
+ {
935
+ "readOnly": true,
936
+ "type": "object",
937
+ "properties": {
938
+ "type": {
939
+ "type": "string",
940
+ "const": "text"
941
+ },
942
+ "id": {
943
+ "type": "string",
944
+ "minLength": 1,
945
+ "maxLength": 64
946
+ },
947
+ "label": {
948
+ "type": "string",
949
+ "minLength": 1,
950
+ "maxLength": 200
951
+ },
952
+ "description": {
953
+ "type": "string",
954
+ "minLength": 1,
955
+ "maxLength": 500
956
+ },
957
+ "required": {
958
+ "type": "boolean"
959
+ },
960
+ "minLength": {
961
+ "type": "integer",
962
+ "minimum": 0,
963
+ "maximum": 10000
964
+ },
965
+ "maxLength": {
966
+ "type": "integer",
967
+ "minimum": 0,
968
+ "maximum": 10000
969
+ }
970
+ },
971
+ "required": ["type", "id", "label", "required"],
972
+ "additionalProperties": false
973
+ },
974
+ {
975
+ "readOnly": true,
976
+ "type": "object",
977
+ "properties": {
978
+ "type": {
979
+ "type": "string",
980
+ "const": "multiline"
981
+ },
982
+ "id": {
983
+ "type": "string",
984
+ "minLength": 1,
985
+ "maxLength": 64
986
+ },
987
+ "label": {
988
+ "type": "string",
989
+ "minLength": 1,
990
+ "maxLength": 200
991
+ },
992
+ "description": {
993
+ "type": "string",
994
+ "minLength": 1,
995
+ "maxLength": 500
996
+ },
997
+ "required": {
998
+ "type": "boolean"
999
+ },
1000
+ "minLength": {
1001
+ "type": "integer",
1002
+ "minimum": 0,
1003
+ "maximum": 10000
1004
+ },
1005
+ "maxLength": {
1006
+ "type": "integer",
1007
+ "minimum": 0,
1008
+ "maximum": 10000
1009
+ }
1010
+ },
1011
+ "required": ["type", "id", "label", "required"],
1012
+ "additionalProperties": false
1013
+ },
1014
+ {
1015
+ "readOnly": true,
1016
+ "type": "object",
1017
+ "properties": {
1018
+ "type": {
1019
+ "type": "string",
1020
+ "const": "number"
1021
+ },
1022
+ "id": {
1023
+ "type": "string",
1024
+ "minLength": 1,
1025
+ "maxLength": 64
1026
+ },
1027
+ "label": {
1028
+ "type": "string",
1029
+ "minLength": 1,
1030
+ "maxLength": 200
1031
+ },
1032
+ "description": {
1033
+ "type": "string",
1034
+ "minLength": 1,
1035
+ "maxLength": 500
1036
+ },
1037
+ "required": {
1038
+ "type": "boolean"
1039
+ },
1040
+ "min": {
1041
+ "type": "number"
1042
+ },
1043
+ "max": {
1044
+ "type": "number"
1045
+ },
1046
+ "integer": {
1047
+ "type": "boolean"
1048
+ }
1049
+ },
1050
+ "required": ["type", "id", "label", "required"],
1051
+ "additionalProperties": false
1052
+ },
1053
+ {
1054
+ "readOnly": true,
1055
+ "type": "object",
1056
+ "properties": {
1057
+ "type": {
1058
+ "type": "string",
1059
+ "const": "boolean"
1060
+ },
1061
+ "id": {
1062
+ "type": "string",
1063
+ "minLength": 1,
1064
+ "maxLength": 64
1065
+ },
1066
+ "label": {
1067
+ "type": "string",
1068
+ "minLength": 1,
1069
+ "maxLength": 200
1070
+ },
1071
+ "description": {
1072
+ "type": "string",
1073
+ "minLength": 1,
1074
+ "maxLength": 500
1075
+ },
1076
+ "required": {
1077
+ "type": "boolean"
1078
+ }
1079
+ },
1080
+ "required": ["type", "id", "label", "required"],
1081
+ "additionalProperties": false
1082
+ },
1083
+ {
1084
+ "readOnly": true,
1085
+ "type": "object",
1086
+ "properties": {
1087
+ "type": {
1088
+ "type": "string",
1089
+ "const": "choice"
1090
+ },
1091
+ "id": {
1092
+ "type": "string",
1093
+ "minLength": 1,
1094
+ "maxLength": 64
1095
+ },
1096
+ "label": {
1097
+ "type": "string",
1098
+ "minLength": 1,
1099
+ "maxLength": 200
1100
+ },
1101
+ "description": {
1102
+ "type": "string",
1103
+ "minLength": 1,
1104
+ "maxLength": 500
1105
+ },
1106
+ "required": {
1107
+ "type": "boolean"
1108
+ },
1109
+ "multiple": {
1110
+ "type": "boolean"
1111
+ },
1112
+ "options": {
1113
+ "minItems": 1,
1114
+ "maxItems": 50,
1115
+ "type": "array",
1116
+ "items": {
1117
+ "readOnly": true,
1118
+ "type": "object",
1119
+ "properties": {
1120
+ "id": {
1121
+ "type": "string",
1122
+ "minLength": 1,
1123
+ "maxLength": 64
1124
+ },
1125
+ "label": {
1126
+ "type": "string",
1127
+ "minLength": 1,
1128
+ "maxLength": 200
1129
+ },
1130
+ "description": {
1131
+ "type": "string",
1132
+ "minLength": 1,
1133
+ "maxLength": 500
1134
+ }
1135
+ },
1136
+ "required": ["id", "label"],
1137
+ "additionalProperties": false
1138
+ }
1139
+ },
1140
+ "minSelections": {
1141
+ "type": "integer",
1142
+ "minimum": 0,
1143
+ "maximum": 50
1144
+ },
1145
+ "maxSelections": {
1146
+ "type": "integer",
1147
+ "minimum": 1,
1148
+ "maximum": 50
1149
+ }
1150
+ },
1151
+ "required": [
1152
+ "type",
1153
+ "id",
1154
+ "label",
1155
+ "required",
1156
+ "multiple",
1157
+ "options"
1158
+ ],
1159
+ "additionalProperties": false
1160
+ }
1161
+ ]
1162
+ }
1163
+ }
1164
+ },
1165
+ "required": ["controls"],
1166
+ "additionalProperties": false
1167
+ }
1168
+ },
1169
+ "required": [
1170
+ "type",
1171
+ "workspaceId",
1172
+ "relaySequence",
1173
+ "interactionId",
1174
+ "threadId",
1175
+ "turnId",
1176
+ "expiresAt",
1177
+ "sensitivity",
1178
+ "method",
1179
+ "projection"
1180
+ ],
1181
+ "additionalProperties": false
1182
+ }
1183
+ ]
1184
+ },
1185
+ {
1186
+ "readOnly": true,
1187
+ "type": "object",
1188
+ "properties": {
1189
+ "type": {
1190
+ "type": "string",
1191
+ "const": "interaction.resolved"
1192
+ },
1193
+ "workspaceId": {
1194
+ "type": "string",
1195
+ "format": "uuid",
1196
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1197
+ },
1198
+ "relaySequence": {
1199
+ "type": "integer",
1200
+ "minimum": 0,
1201
+ "maximum": 9007199254740991
1202
+ },
1203
+ "interactionId": {
1204
+ "type": "string",
1205
+ "format": "uuid",
1206
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1207
+ },
1208
+ "threadId": {
1209
+ "type": "string",
1210
+ "format": "uuid",
1211
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1212
+ },
1213
+ "turnId": {
1214
+ "type": "string",
1215
+ "format": "uuid",
1216
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1217
+ },
1218
+ "method": {
1219
+ "type": "string",
1220
+ "enum": ["approval.request", "userInput.request"]
1221
+ }
1222
+ },
1223
+ "required": [
1224
+ "type",
1225
+ "workspaceId",
1226
+ "relaySequence",
1227
+ "interactionId",
1228
+ "threadId",
1229
+ "turnId",
1230
+ "method"
1231
+ ],
1232
+ "additionalProperties": false
1233
+ },
1234
+ {
1235
+ "readOnly": true,
1236
+ "type": "object",
1237
+ "properties": {
1238
+ "type": {
1239
+ "type": "string",
1240
+ "const": "interaction.cancelled"
1241
+ },
1242
+ "workspaceId": {
1243
+ "type": "string",
1244
+ "format": "uuid",
1245
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1246
+ },
1247
+ "relaySequence": {
1248
+ "type": "integer",
1249
+ "minimum": 0,
1250
+ "maximum": 9007199254740991
1251
+ },
1252
+ "interactionId": {
1253
+ "type": "string",
1254
+ "format": "uuid",
1255
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1256
+ },
1257
+ "threadId": {
1258
+ "type": "string",
1259
+ "format": "uuid",
1260
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1261
+ },
1262
+ "turnId": {
1263
+ "type": "string",
1264
+ "format": "uuid",
1265
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1266
+ },
1267
+ "method": {
1268
+ "type": "string",
1269
+ "enum": ["approval.request", "userInput.request"]
1270
+ }
1271
+ },
1272
+ "required": [
1273
+ "type",
1274
+ "workspaceId",
1275
+ "relaySequence",
1276
+ "interactionId",
1277
+ "threadId",
1278
+ "turnId",
1279
+ "method"
1280
+ ],
1281
+ "additionalProperties": false
1282
+ }
1283
+ ],
1284
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1285
+ "$id": "urn:roll-agent:schema:relay-protocol:1.3",
1286
+ "title": "Roll Relay Protocol v1.3",
1287
+ "description": "Versioned Companion Relay frames shared by Browser, Cloud Relay and Companion.",
1288
+ "$defs": {
1289
+ "relayMessage": {
1290
+ "anyOf": [
1291
+ {
1292
+ "readOnly": true,
1293
+ "type": "object",
1294
+ "properties": {
1295
+ "type": {
1296
+ "type": "string",
1297
+ "const": "device.connect"
1298
+ },
1299
+ "protocolVersion": {
1300
+ "type": "string",
1301
+ "const": "1.3"
1302
+ },
1303
+ "deviceId": {
1304
+ "type": "string",
1305
+ "format": "uuid",
1306
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1307
+ },
1308
+ "pairingToken": {
1309
+ "type": "string",
1310
+ "minLength": 16
1311
+ }
1312
+ },
1313
+ "required": ["type", "protocolVersion", "deviceId", "pairingToken"],
1314
+ "additionalProperties": false
1315
+ },
1316
+ {
1317
+ "readOnly": true,
1318
+ "type": "object",
1319
+ "properties": {
1320
+ "type": {
1321
+ "type": "string",
1322
+ "const": "runtime.request"
1323
+ },
1324
+ "requestId": {
1325
+ "type": "string",
1326
+ "format": "uuid",
1327
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1328
+ },
1329
+ "workspaceId": {
1330
+ "type": "string",
1331
+ "format": "uuid",
1332
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1333
+ },
1334
+ "method": {
1335
+ "type": "string",
1336
+ "enum": [
1337
+ "initialize",
1338
+ "thread.list",
1339
+ "thread.create",
1340
+ "thread.open",
1341
+ "thread.snapshot",
1342
+ "thread.rename",
1343
+ "thread.delete",
1344
+ "thread.detach",
1345
+ "thread.capabilities",
1346
+ "turn.start",
1347
+ "turn.cancel",
1348
+ "operation.get",
1349
+ "interaction.candidate",
1350
+ "operation.result.get"
1351
+ ]
1352
+ },
1353
+ "params": {
1354
+ "$ref": "#/$defs/sharedSchema0"
1355
+ }
1356
+ },
1357
+ "required": ["type", "requestId", "workspaceId", "method", "params"],
1358
+ "additionalProperties": false
1359
+ },
1360
+ {
1361
+ "readOnly": true,
1362
+ "type": "object",
1363
+ "properties": {
1364
+ "type": {
1365
+ "type": "string",
1366
+ "const": "runtime.response"
1367
+ },
1368
+ "requestId": {
1369
+ "type": "string",
1370
+ "format": "uuid",
1371
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1372
+ },
1373
+ "workspaceId": {
1374
+ "type": "string",
1375
+ "format": "uuid",
1376
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1377
+ },
1378
+ "result": {
1379
+ "$ref": "#/$defs/sharedSchema0"
1380
+ },
1381
+ "error": {
1382
+ "readOnly": true,
1383
+ "type": "object",
1384
+ "properties": {
1385
+ "code": {
1386
+ "type": "string",
1387
+ "minLength": 1
1388
+ },
1389
+ "message": {
1390
+ "type": "string"
1391
+ },
1392
+ "retryable": {
1393
+ "type": "boolean"
1394
+ }
1395
+ },
1396
+ "required": ["code", "message", "retryable"],
1397
+ "additionalProperties": false
1398
+ }
1399
+ },
1400
+ "required": ["type", "requestId", "workspaceId"],
1401
+ "additionalProperties": false
1402
+ },
1403
+ {
1404
+ "readOnly": true,
1405
+ "type": "object",
1406
+ "properties": {
1407
+ "type": {
1408
+ "type": "string",
1409
+ "const": "runtime.event"
1410
+ },
1411
+ "workspaceId": {
1412
+ "type": "string",
1413
+ "format": "uuid",
1414
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1415
+ },
1416
+ "relaySequence": {
1417
+ "type": "integer",
1418
+ "minimum": 0,
1419
+ "maximum": 9007199254740991
1420
+ },
1421
+ "event": {
1422
+ "readOnly": true,
1423
+ "type": "object",
1424
+ "properties": {
1425
+ "protocolVersion": {
1426
+ "type": "string",
1427
+ "enum": ["1.1", "1.0"]
1428
+ },
1429
+ "runtimeInstanceId": {
1430
+ "type": "string",
1431
+ "format": "uuid",
1432
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1433
+ },
1434
+ "sequence": {
1435
+ "type": "integer",
1436
+ "minimum": 0,
1437
+ "maximum": 9007199254740991
1438
+ },
1439
+ "timestamp": {
1440
+ "type": "string",
1441
+ "format": "date-time",
1442
+ "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|([+-]\\d{2}:\\d{2})))$"
1443
+ },
1444
+ "threadId": {
1445
+ "type": "string",
1446
+ "format": "uuid",
1447
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1448
+ },
1449
+ "turnId": {
1450
+ "type": "string",
1451
+ "format": "uuid",
1452
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1453
+ },
1454
+ "event": {
1455
+ "anyOf": [
1456
+ {
1457
+ "anyOf": [
1458
+ {
1459
+ "readOnly": true,
1460
+ "type": "object",
1461
+ "properties": {
1462
+ "type": {
1463
+ "type": "string",
1464
+ "const": "turn.started"
1465
+ }
1466
+ },
1467
+ "required": ["type"],
1468
+ "additionalProperties": false
1469
+ },
1470
+ {
1471
+ "readOnly": true,
1472
+ "type": "object",
1473
+ "properties": {
1474
+ "type": {
1475
+ "type": "string",
1476
+ "const": "message.started"
1477
+ },
1478
+ "streamId": {
1479
+ "type": "string",
1480
+ "format": "uuid",
1481
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1482
+ }
1483
+ },
1484
+ "required": ["type", "streamId"],
1485
+ "additionalProperties": false
1486
+ },
1487
+ {
1488
+ "readOnly": true,
1489
+ "type": "object",
1490
+ "properties": {
1491
+ "type": {
1492
+ "type": "string",
1493
+ "const": "message.delta"
1494
+ },
1495
+ "streamId": {
1496
+ "type": "string",
1497
+ "format": "uuid",
1498
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1499
+ },
1500
+ "delta": {
1501
+ "type": "string"
1502
+ }
1503
+ },
1504
+ "required": ["type", "streamId", "delta"],
1505
+ "additionalProperties": false
1506
+ },
1507
+ {
1508
+ "readOnly": true,
1509
+ "type": "object",
1510
+ "properties": {
1511
+ "type": {
1512
+ "type": "string",
1513
+ "const": "message.completed"
1514
+ },
1515
+ "streamId": {
1516
+ "type": "string",
1517
+ "format": "uuid",
1518
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1519
+ },
1520
+ "text": {
1521
+ "type": "string"
1522
+ }
1523
+ },
1524
+ "required": ["type", "streamId", "text"],
1525
+ "additionalProperties": false
1526
+ },
1527
+ {
1528
+ "readOnly": true,
1529
+ "type": "object",
1530
+ "properties": {
1531
+ "type": {
1532
+ "type": "string",
1533
+ "const": "reasoning.summary.delta"
1534
+ },
1535
+ "reasoningId": {
1536
+ "type": "string",
1537
+ "minLength": 1
1538
+ },
1539
+ "delta": {
1540
+ "type": "string"
1541
+ }
1542
+ },
1543
+ "required": ["type", "reasoningId", "delta"],
1544
+ "additionalProperties": false
1545
+ },
1546
+ {
1547
+ "readOnly": true,
1548
+ "type": "object",
1549
+ "properties": {
1550
+ "type": {
1551
+ "type": "string",
1552
+ "const": "tool.started"
1553
+ },
1554
+ "toolCallId": {
1555
+ "type": "string",
1556
+ "minLength": 1
1557
+ },
1558
+ "agentName": {
1559
+ "type": "string",
1560
+ "minLength": 1
1561
+ },
1562
+ "toolName": {
1563
+ "type": "string",
1564
+ "minLength": 1
1565
+ }
1566
+ },
1567
+ "required": [
1568
+ "type",
1569
+ "toolCallId",
1570
+ "agentName",
1571
+ "toolName"
1572
+ ],
1573
+ "additionalProperties": false
1574
+ },
1575
+ {
1576
+ "readOnly": true,
1577
+ "type": "object",
1578
+ "properties": {
1579
+ "type": {
1580
+ "type": "string",
1581
+ "const": "tool.completed"
1582
+ },
1583
+ "toolCallId": {
1584
+ "type": "string",
1585
+ "minLength": 1
1586
+ },
1587
+ "agentName": {
1588
+ "type": "string",
1589
+ "minLength": 1
1590
+ },
1591
+ "toolName": {
1592
+ "type": "string",
1593
+ "minLength": 1
1594
+ },
1595
+ "outcome": {
1596
+ "readOnly": true,
1597
+ "type": "object",
1598
+ "properties": {
1599
+ "kind": {
1600
+ "type": "string",
1601
+ "enum": [
1602
+ "success",
1603
+ "user_rejected",
1604
+ "policy_denied",
1605
+ "invalid_input",
1606
+ "cancelled",
1607
+ "tool_failed"
1608
+ ]
1609
+ }
1610
+ },
1611
+ "required": ["kind"],
1612
+ "additionalProperties": false
1613
+ }
1614
+ },
1615
+ "required": [
1616
+ "type",
1617
+ "toolCallId",
1618
+ "agentName",
1619
+ "toolName"
1620
+ ],
1621
+ "additionalProperties": false
1622
+ },
1623
+ {
1624
+ "readOnly": true,
1625
+ "type": "object",
1626
+ "properties": {
1627
+ "type": {
1628
+ "type": "string",
1629
+ "const": "approval.required"
1630
+ },
1631
+ "approval": {
1632
+ "readOnly": true,
1633
+ "type": "object",
1634
+ "properties": {
1635
+ "approvalId": {
1636
+ "type": "string",
1637
+ "format": "uuid",
1638
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1639
+ },
1640
+ "agentName": {
1641
+ "type": "string",
1642
+ "minLength": 1
1643
+ },
1644
+ "toolName": {
1645
+ "type": "string",
1646
+ "minLength": 1
1647
+ },
1648
+ "explanation": {
1649
+ "type": "string",
1650
+ "minLength": 1,
1651
+ "maxLength": 100
1652
+ }
1653
+ },
1654
+ "required": [
1655
+ "approvalId",
1656
+ "agentName",
1657
+ "toolName"
1658
+ ],
1659
+ "additionalProperties": false
1660
+ }
1661
+ },
1662
+ "required": ["type", "approval"],
1663
+ "additionalProperties": false
1664
+ },
1665
+ {
1666
+ "readOnly": true,
1667
+ "type": "object",
1668
+ "properties": {
1669
+ "type": {
1670
+ "type": "string",
1671
+ "const": "approval.resolved"
1672
+ },
1673
+ "approvalId": {
1674
+ "type": "string",
1675
+ "format": "uuid",
1676
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1677
+ },
1678
+ "resolution": {
1679
+ "anyOf": [
1680
+ {
1681
+ "readOnly": true,
1682
+ "type": "object",
1683
+ "properties": {
1684
+ "status": {
1685
+ "type": "string",
1686
+ "const": "resolved"
1687
+ },
1688
+ "decision": {
1689
+ "type": "string",
1690
+ "enum": ["approve", "reject"]
1691
+ }
1692
+ },
1693
+ "required": ["status", "decision"],
1694
+ "additionalProperties": false
1695
+ },
1696
+ {
1697
+ "readOnly": true,
1698
+ "type": "object",
1699
+ "properties": {
1700
+ "status": {
1701
+ "type": "string",
1702
+ "const": "cancelled"
1703
+ }
1704
+ },
1705
+ "required": ["status"],
1706
+ "additionalProperties": false
1707
+ },
1708
+ {
1709
+ "readOnly": true,
1710
+ "type": "object",
1711
+ "properties": {
1712
+ "status": {
1713
+ "type": "string",
1714
+ "const": "expired"
1715
+ }
1716
+ },
1717
+ "required": ["status"],
1718
+ "additionalProperties": false
1719
+ }
1720
+ ]
1721
+ }
1722
+ },
1723
+ "required": ["type", "approvalId", "resolution"],
1724
+ "additionalProperties": false
1725
+ },
1726
+ {
1727
+ "readOnly": true,
1728
+ "type": "object",
1729
+ "properties": {
1730
+ "type": {
1731
+ "type": "string",
1732
+ "const": "turn.completed"
1733
+ }
1734
+ },
1735
+ "required": ["type"],
1736
+ "additionalProperties": false
1737
+ },
1738
+ {
1739
+ "readOnly": true,
1740
+ "type": "object",
1741
+ "properties": {
1742
+ "type": {
1743
+ "type": "string",
1744
+ "const": "turn.cancelled"
1745
+ }
1746
+ },
1747
+ "required": ["type"],
1748
+ "additionalProperties": false
1749
+ },
1750
+ {
1751
+ "readOnly": true,
1752
+ "type": "object",
1753
+ "properties": {
1754
+ "type": {
1755
+ "type": "string",
1756
+ "const": "turn.failed"
1757
+ },
1758
+ "stage": {
1759
+ "type": "string",
1760
+ "enum": ["bootstrap", "plan", "execute"]
1761
+ }
1762
+ },
1763
+ "required": ["type", "stage"],
1764
+ "additionalProperties": false
1765
+ },
1766
+ {
1767
+ "readOnly": true,
1768
+ "type": "object",
1769
+ "properties": {
1770
+ "type": {
1771
+ "type": "string",
1772
+ "const": "capabilities.changed"
1773
+ }
1774
+ },
1775
+ "required": ["type"],
1776
+ "additionalProperties": false
1777
+ }
1778
+ ]
1779
+ },
1780
+ {
1781
+ "readOnly": true,
1782
+ "type": "object",
1783
+ "properties": {
1784
+ "type": {
1785
+ "type": "string",
1786
+ "const": "tool.completed"
1787
+ },
1788
+ "toolCallId": {
1789
+ "type": "string",
1790
+ "minLength": 1
1791
+ },
1792
+ "agentName": {
1793
+ "type": "string",
1794
+ "minLength": 1
1795
+ },
1796
+ "toolName": {
1797
+ "type": "string",
1798
+ "minLength": 1
1799
+ },
1800
+ "outcome": {
1801
+ "readOnly": true,
1802
+ "type": "object",
1803
+ "properties": {
1804
+ "kind": {
1805
+ "type": "string",
1806
+ "enum": [
1807
+ "success",
1808
+ "user_rejected",
1809
+ "policy_denied",
1810
+ "invalid_input",
1811
+ "cancelled",
1812
+ "tool_failed"
1813
+ ]
1814
+ }
1815
+ },
1816
+ "required": ["kind"],
1817
+ "additionalProperties": false
1818
+ },
1819
+ "appOutput": {
1820
+ "readOnly": true,
1821
+ "anyOf": [
1822
+ {
1823
+ "readOnly": true,
1824
+ "type": "object",
1825
+ "properties": {
1826
+ "status": {
1827
+ "type": "string",
1828
+ "const": "rejected"
1829
+ },
1830
+ "reason": {
1831
+ "type": "string",
1832
+ "enum": [
1833
+ "credential_field",
1834
+ "credential_value"
1835
+ ]
1836
+ },
1837
+ "field": {
1838
+ "type": "string",
1839
+ "maxLength": 64
1840
+ }
1841
+ },
1842
+ "required": ["status", "reason"],
1843
+ "additionalProperties": false
1844
+ },
1845
+ {
1846
+ "type": "object",
1847
+ "properties": {
1848
+ "status": {
1849
+ "type": "string",
1850
+ "const": "available"
1851
+ },
1852
+ "schemaId": {
1853
+ "type": "string",
1854
+ "minLength": 1,
1855
+ "maxLength": 256
1856
+ },
1857
+ "schemaVersion": {
1858
+ "type": "integer",
1859
+ "exclusiveMinimum": 0,
1860
+ "maximum": 9007199254740991
1861
+ }
1862
+ },
1863
+ "required": [
1864
+ "status",
1865
+ "schemaId",
1866
+ "schemaVersion"
1867
+ ],
1868
+ "additionalProperties": false
1869
+ },
1870
+ {
1871
+ "type": "object",
1872
+ "properties": {
1873
+ "status": {
1874
+ "type": "string",
1875
+ "enum": [
1876
+ "not_provided",
1877
+ "invalid",
1878
+ "too_large",
1879
+ "expired",
1880
+ "denied"
1881
+ ]
1882
+ }
1883
+ },
1884
+ "required": ["status"],
1885
+ "additionalProperties": false
1886
+ }
1887
+ ]
1888
+ },
1889
+ "operationId": {
1890
+ "type": "string",
1891
+ "format": "uuid",
1892
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1893
+ }
1894
+ },
1895
+ "required": [
1896
+ "type",
1897
+ "toolCallId",
1898
+ "agentName",
1899
+ "toolName"
1900
+ ],
1901
+ "additionalProperties": false
1902
+ },
1903
+ {
1904
+ "readOnly": true,
1905
+ "type": "object",
1906
+ "properties": {
1907
+ "type": {
1908
+ "type": "string",
1909
+ "const": "context.recovery.changed"
1910
+ },
1911
+ "contextRecovery": {
1912
+ "anyOf": [
1913
+ {
1914
+ "readOnly": true,
1915
+ "type": "object",
1916
+ "properties": {
1917
+ "checkpointId": {
1918
+ "type": "string",
1919
+ "format": "uuid",
1920
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1921
+ },
1922
+ "required": {
1923
+ "type": "boolean"
1924
+ },
1925
+ "unextracted": {
1926
+ "type": "boolean"
1927
+ },
1928
+ "requiredItemCount": {
1929
+ "type": "integer",
1930
+ "minimum": 0,
1931
+ "maximum": 9007199254740991
1932
+ }
1933
+ },
1934
+ "required": [
1935
+ "checkpointId",
1936
+ "required",
1937
+ "unextracted",
1938
+ "requiredItemCount"
1939
+ ],
1940
+ "additionalProperties": false
1941
+ },
1942
+ {
1943
+ "type": "null"
1944
+ }
1945
+ ]
1946
+ }
1947
+ },
1948
+ "required": ["type", "contextRecovery"],
1949
+ "additionalProperties": false
1950
+ }
1951
+ ]
1952
+ }
1953
+ },
1954
+ "required": [
1955
+ "protocolVersion",
1956
+ "runtimeInstanceId",
1957
+ "sequence",
1958
+ "timestamp",
1959
+ "threadId",
1960
+ "event"
1961
+ ],
1962
+ "additionalProperties": false
1963
+ }
1964
+ },
1965
+ "required": ["type", "workspaceId", "relaySequence", "event"],
1966
+ "additionalProperties": false
1967
+ },
1968
+ {
1969
+ "readOnly": true,
1970
+ "type": "object",
1971
+ "properties": {
1972
+ "type": {
1973
+ "type": "string",
1974
+ "const": "runtime.ack"
1975
+ },
1976
+ "workspaceId": {
1977
+ "type": "string",
1978
+ "format": "uuid",
1979
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
1980
+ },
1981
+ "throughRelaySequence": {
1982
+ "type": "integer",
1983
+ "minimum": -1,
1984
+ "maximum": 9007199254740991
1985
+ }
1986
+ },
1987
+ "required": ["type", "workspaceId", "throughRelaySequence"],
1988
+ "additionalProperties": false
1989
+ },
1990
+ {
1991
+ "readOnly": true,
1992
+ "type": "object",
1993
+ "properties": {
1994
+ "type": {
1995
+ "type": "string",
1996
+ "const": "runtime.gap"
1997
+ },
1998
+ "workspaceId": {
1999
+ "type": "string",
2000
+ "format": "uuid",
2001
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2002
+ },
2003
+ "fromRelaySequence": {
2004
+ "type": "integer",
2005
+ "minimum": 0,
2006
+ "maximum": 9007199254740991
2007
+ },
2008
+ "throughRelaySequence": {
2009
+ "type": "integer",
2010
+ "minimum": 0,
2011
+ "maximum": 9007199254740991
2012
+ },
2013
+ "recovery": {
2014
+ "type": "string",
2015
+ "const": "thread.snapshot"
2016
+ }
2017
+ },
2018
+ "required": [
2019
+ "type",
2020
+ "workspaceId",
2021
+ "fromRelaySequence",
2022
+ "throughRelaySequence",
2023
+ "recovery"
2024
+ ],
2025
+ "additionalProperties": false
2026
+ },
2027
+ {
2028
+ "readOnly": true,
2029
+ "type": "object",
2030
+ "properties": {
2031
+ "type": {
2032
+ "type": "string",
2033
+ "const": "runtime.encrypted"
2034
+ },
2035
+ "workspaceId": {
2036
+ "type": "string",
2037
+ "format": "uuid",
2038
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2039
+ },
2040
+ "envelopeId": {
2041
+ "type": "string",
2042
+ "format": "uuid",
2043
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2044
+ },
2045
+ "payloadKind": {
2046
+ "type": "string",
2047
+ "enum": ["request", "response", "event", "interaction"]
2048
+ },
2049
+ "requestId": {
2050
+ "type": "string",
2051
+ "format": "uuid",
2052
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2053
+ },
2054
+ "relaySequence": {
2055
+ "type": "integer",
2056
+ "minimum": 0,
2057
+ "maximum": 9007199254740991
2058
+ },
2059
+ "algorithm": {
2060
+ "type": "string",
2061
+ "minLength": 1
2062
+ },
2063
+ "nonce": {
2064
+ "type": "string",
2065
+ "minLength": 1
2066
+ },
2067
+ "ciphertext": {
2068
+ "type": "string",
2069
+ "minLength": 1
2070
+ }
2071
+ },
2072
+ "required": [
2073
+ "type",
2074
+ "workspaceId",
2075
+ "envelopeId",
2076
+ "payloadKind",
2077
+ "algorithm",
2078
+ "nonce",
2079
+ "ciphertext"
2080
+ ],
2081
+ "additionalProperties": false
2082
+ },
2083
+ {
2084
+ "anyOf": [
2085
+ {
2086
+ "readOnly": true,
2087
+ "type": "object",
2088
+ "properties": {
2089
+ "type": {
2090
+ "type": "string",
2091
+ "const": "interaction.request"
2092
+ },
2093
+ "workspaceId": {
2094
+ "type": "string",
2095
+ "format": "uuid",
2096
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2097
+ },
2098
+ "relaySequence": {
2099
+ "type": "integer",
2100
+ "minimum": 0,
2101
+ "maximum": 9007199254740991
2102
+ },
2103
+ "interactionId": {
2104
+ "type": "string",
2105
+ "format": "uuid",
2106
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2107
+ },
2108
+ "threadId": {
2109
+ "type": "string",
2110
+ "format": "uuid",
2111
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2112
+ },
2113
+ "turnId": {
2114
+ "type": "string",
2115
+ "format": "uuid",
2116
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2117
+ },
2118
+ "expiresAt": {
2119
+ "type": "string",
2120
+ "format": "date-time",
2121
+ "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|([+-]\\d{2}:\\d{2})))$"
2122
+ },
2123
+ "sensitivity": {
2124
+ "type": "string",
2125
+ "const": "normal"
2126
+ },
2127
+ "method": {
2128
+ "type": "string",
2129
+ "const": "approval.request"
2130
+ },
2131
+ "projection": {
2132
+ "readOnly": true,
2133
+ "type": "object",
2134
+ "properties": {
2135
+ "approvalId": {
2136
+ "type": "string",
2137
+ "format": "uuid",
2138
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2139
+ },
2140
+ "agentName": {
2141
+ "type": "string",
2142
+ "minLength": 1
2143
+ },
2144
+ "toolName": {
2145
+ "type": "string",
2146
+ "minLength": 1
2147
+ },
2148
+ "explanation": {
2149
+ "type": "string",
2150
+ "minLength": 1,
2151
+ "maxLength": 100
2152
+ }
2153
+ },
2154
+ "required": ["approvalId", "agentName", "toolName"],
2155
+ "additionalProperties": false
2156
+ }
2157
+ },
2158
+ "required": [
2159
+ "type",
2160
+ "workspaceId",
2161
+ "relaySequence",
2162
+ "interactionId",
2163
+ "threadId",
2164
+ "turnId",
2165
+ "expiresAt",
2166
+ "sensitivity",
2167
+ "method",
2168
+ "projection"
2169
+ ],
2170
+ "additionalProperties": false
2171
+ },
2172
+ {
2173
+ "readOnly": true,
2174
+ "type": "object",
2175
+ "properties": {
2176
+ "type": {
2177
+ "type": "string",
2178
+ "const": "interaction.request"
2179
+ },
2180
+ "workspaceId": {
2181
+ "type": "string",
2182
+ "format": "uuid",
2183
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2184
+ },
2185
+ "relaySequence": {
2186
+ "type": "integer",
2187
+ "minimum": 0,
2188
+ "maximum": 9007199254740991
2189
+ },
2190
+ "interactionId": {
2191
+ "type": "string",
2192
+ "format": "uuid",
2193
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2194
+ },
2195
+ "threadId": {
2196
+ "type": "string",
2197
+ "format": "uuid",
2198
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2199
+ },
2200
+ "turnId": {
2201
+ "type": "string",
2202
+ "format": "uuid",
2203
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2204
+ },
2205
+ "expiresAt": {
2206
+ "type": "string",
2207
+ "format": "date-time",
2208
+ "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|([+-]\\d{2}:\\d{2})))$"
2209
+ },
2210
+ "sensitivity": {
2211
+ "type": "string",
2212
+ "const": "normal"
2213
+ },
2214
+ "method": {
2215
+ "type": "string",
2216
+ "const": "userInput.request"
2217
+ },
2218
+ "projection": {
2219
+ "readOnly": true,
2220
+ "type": "object",
2221
+ "properties": {
2222
+ "title": {
2223
+ "type": "string",
2224
+ "minLength": 1,
2225
+ "maxLength": 200
2226
+ },
2227
+ "description": {
2228
+ "type": "string",
2229
+ "minLength": 1,
2230
+ "maxLength": 500
2231
+ },
2232
+ "controls": {
2233
+ "minItems": 1,
2234
+ "maxItems": 16,
2235
+ "type": "array",
2236
+ "items": {
2237
+ "anyOf": [
2238
+ {
2239
+ "readOnly": true,
2240
+ "type": "object",
2241
+ "properties": {
2242
+ "type": {
2243
+ "type": "string",
2244
+ "const": "text"
2245
+ },
2246
+ "id": {
2247
+ "type": "string",
2248
+ "minLength": 1,
2249
+ "maxLength": 64
2250
+ },
2251
+ "label": {
2252
+ "type": "string",
2253
+ "minLength": 1,
2254
+ "maxLength": 200
2255
+ },
2256
+ "description": {
2257
+ "type": "string",
2258
+ "minLength": 1,
2259
+ "maxLength": 500
2260
+ },
2261
+ "required": {
2262
+ "type": "boolean"
2263
+ },
2264
+ "minLength": {
2265
+ "type": "integer",
2266
+ "minimum": 0,
2267
+ "maximum": 10000
2268
+ },
2269
+ "maxLength": {
2270
+ "type": "integer",
2271
+ "minimum": 0,
2272
+ "maximum": 10000
2273
+ }
2274
+ },
2275
+ "required": ["type", "id", "label", "required"],
2276
+ "additionalProperties": false
2277
+ },
2278
+ {
2279
+ "readOnly": true,
2280
+ "type": "object",
2281
+ "properties": {
2282
+ "type": {
2283
+ "type": "string",
2284
+ "const": "multiline"
2285
+ },
2286
+ "id": {
2287
+ "type": "string",
2288
+ "minLength": 1,
2289
+ "maxLength": 64
2290
+ },
2291
+ "label": {
2292
+ "type": "string",
2293
+ "minLength": 1,
2294
+ "maxLength": 200
2295
+ },
2296
+ "description": {
2297
+ "type": "string",
2298
+ "minLength": 1,
2299
+ "maxLength": 500
2300
+ },
2301
+ "required": {
2302
+ "type": "boolean"
2303
+ },
2304
+ "minLength": {
2305
+ "type": "integer",
2306
+ "minimum": 0,
2307
+ "maximum": 10000
2308
+ },
2309
+ "maxLength": {
2310
+ "type": "integer",
2311
+ "minimum": 0,
2312
+ "maximum": 10000
2313
+ }
2314
+ },
2315
+ "required": ["type", "id", "label", "required"],
2316
+ "additionalProperties": false
2317
+ },
2318
+ {
2319
+ "readOnly": true,
2320
+ "type": "object",
2321
+ "properties": {
2322
+ "type": {
2323
+ "type": "string",
2324
+ "const": "number"
2325
+ },
2326
+ "id": {
2327
+ "type": "string",
2328
+ "minLength": 1,
2329
+ "maxLength": 64
2330
+ },
2331
+ "label": {
2332
+ "type": "string",
2333
+ "minLength": 1,
2334
+ "maxLength": 200
2335
+ },
2336
+ "description": {
2337
+ "type": "string",
2338
+ "minLength": 1,
2339
+ "maxLength": 500
2340
+ },
2341
+ "required": {
2342
+ "type": "boolean"
2343
+ },
2344
+ "min": {
2345
+ "type": "number"
2346
+ },
2347
+ "max": {
2348
+ "type": "number"
2349
+ },
2350
+ "integer": {
2351
+ "type": "boolean"
2352
+ }
2353
+ },
2354
+ "required": ["type", "id", "label", "required"],
2355
+ "additionalProperties": false
2356
+ },
2357
+ {
2358
+ "readOnly": true,
2359
+ "type": "object",
2360
+ "properties": {
2361
+ "type": {
2362
+ "type": "string",
2363
+ "const": "boolean"
2364
+ },
2365
+ "id": {
2366
+ "type": "string",
2367
+ "minLength": 1,
2368
+ "maxLength": 64
2369
+ },
2370
+ "label": {
2371
+ "type": "string",
2372
+ "minLength": 1,
2373
+ "maxLength": 200
2374
+ },
2375
+ "description": {
2376
+ "type": "string",
2377
+ "minLength": 1,
2378
+ "maxLength": 500
2379
+ },
2380
+ "required": {
2381
+ "type": "boolean"
2382
+ }
2383
+ },
2384
+ "required": ["type", "id", "label", "required"],
2385
+ "additionalProperties": false
2386
+ },
2387
+ {
2388
+ "readOnly": true,
2389
+ "type": "object",
2390
+ "properties": {
2391
+ "type": {
2392
+ "type": "string",
2393
+ "const": "choice"
2394
+ },
2395
+ "id": {
2396
+ "type": "string",
2397
+ "minLength": 1,
2398
+ "maxLength": 64
2399
+ },
2400
+ "label": {
2401
+ "type": "string",
2402
+ "minLength": 1,
2403
+ "maxLength": 200
2404
+ },
2405
+ "description": {
2406
+ "type": "string",
2407
+ "minLength": 1,
2408
+ "maxLength": 500
2409
+ },
2410
+ "required": {
2411
+ "type": "boolean"
2412
+ },
2413
+ "multiple": {
2414
+ "type": "boolean"
2415
+ },
2416
+ "options": {
2417
+ "minItems": 1,
2418
+ "maxItems": 50,
2419
+ "type": "array",
2420
+ "items": {
2421
+ "readOnly": true,
2422
+ "type": "object",
2423
+ "properties": {
2424
+ "id": {
2425
+ "type": "string",
2426
+ "minLength": 1,
2427
+ "maxLength": 64
2428
+ },
2429
+ "label": {
2430
+ "type": "string",
2431
+ "minLength": 1,
2432
+ "maxLength": 200
2433
+ },
2434
+ "description": {
2435
+ "type": "string",
2436
+ "minLength": 1,
2437
+ "maxLength": 500
2438
+ }
2439
+ },
2440
+ "required": ["id", "label"],
2441
+ "additionalProperties": false
2442
+ }
2443
+ },
2444
+ "minSelections": {
2445
+ "type": "integer",
2446
+ "minimum": 0,
2447
+ "maximum": 50
2448
+ },
2449
+ "maxSelections": {
2450
+ "type": "integer",
2451
+ "minimum": 1,
2452
+ "maximum": 50
2453
+ }
2454
+ },
2455
+ "required": [
2456
+ "type",
2457
+ "id",
2458
+ "label",
2459
+ "required",
2460
+ "multiple",
2461
+ "options"
2462
+ ],
2463
+ "additionalProperties": false
2464
+ }
2465
+ ]
2466
+ }
2467
+ }
2468
+ },
2469
+ "required": ["controls"],
2470
+ "additionalProperties": false
2471
+ }
2472
+ },
2473
+ "required": [
2474
+ "type",
2475
+ "workspaceId",
2476
+ "relaySequence",
2477
+ "interactionId",
2478
+ "threadId",
2479
+ "turnId",
2480
+ "expiresAt",
2481
+ "sensitivity",
2482
+ "method",
2483
+ "projection"
2484
+ ],
2485
+ "additionalProperties": false
2486
+ }
2487
+ ]
2488
+ },
2489
+ {
2490
+ "readOnly": true,
2491
+ "type": "object",
2492
+ "properties": {
2493
+ "type": {
2494
+ "type": "string",
2495
+ "const": "interaction.resolved"
2496
+ },
2497
+ "workspaceId": {
2498
+ "type": "string",
2499
+ "format": "uuid",
2500
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2501
+ },
2502
+ "relaySequence": {
2503
+ "type": "integer",
2504
+ "minimum": 0,
2505
+ "maximum": 9007199254740991
2506
+ },
2507
+ "interactionId": {
2508
+ "type": "string",
2509
+ "format": "uuid",
2510
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2511
+ },
2512
+ "threadId": {
2513
+ "type": "string",
2514
+ "format": "uuid",
2515
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2516
+ },
2517
+ "turnId": {
2518
+ "type": "string",
2519
+ "format": "uuid",
2520
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2521
+ },
2522
+ "method": {
2523
+ "type": "string",
2524
+ "enum": ["approval.request", "userInput.request"]
2525
+ }
2526
+ },
2527
+ "required": [
2528
+ "type",
2529
+ "workspaceId",
2530
+ "relaySequence",
2531
+ "interactionId",
2532
+ "threadId",
2533
+ "turnId",
2534
+ "method"
2535
+ ],
2536
+ "additionalProperties": false
2537
+ },
2538
+ {
2539
+ "readOnly": true,
2540
+ "type": "object",
2541
+ "properties": {
2542
+ "type": {
2543
+ "type": "string",
2544
+ "const": "interaction.cancelled"
2545
+ },
2546
+ "workspaceId": {
2547
+ "type": "string",
2548
+ "format": "uuid",
2549
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2550
+ },
2551
+ "relaySequence": {
2552
+ "type": "integer",
2553
+ "minimum": 0,
2554
+ "maximum": 9007199254740991
2555
+ },
2556
+ "interactionId": {
2557
+ "type": "string",
2558
+ "format": "uuid",
2559
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2560
+ },
2561
+ "threadId": {
2562
+ "type": "string",
2563
+ "format": "uuid",
2564
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2565
+ },
2566
+ "turnId": {
2567
+ "type": "string",
2568
+ "format": "uuid",
2569
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2570
+ },
2571
+ "method": {
2572
+ "type": "string",
2573
+ "enum": ["approval.request", "userInput.request"]
2574
+ }
2575
+ },
2576
+ "required": [
2577
+ "type",
2578
+ "workspaceId",
2579
+ "relaySequence",
2580
+ "interactionId",
2581
+ "threadId",
2582
+ "turnId",
2583
+ "method"
2584
+ ],
2585
+ "additionalProperties": false
2586
+ }
2587
+ ]
2588
+ },
2589
+ "initializeParams": {
2590
+ "readOnly": true,
2591
+ "type": "object",
2592
+ "properties": {
2593
+ "protocolVersions": {
2594
+ "minItems": 1,
2595
+ "type": "array",
2596
+ "items": {
2597
+ "type": "string",
2598
+ "minLength": 1
2599
+ }
2600
+ },
2601
+ "client": {
2602
+ "readOnly": true,
2603
+ "type": "object",
2604
+ "properties": {
2605
+ "name": {
2606
+ "type": "string",
2607
+ "minLength": 1,
2608
+ "maxLength": 100
2609
+ },
2610
+ "version": {
2611
+ "type": "string",
2612
+ "minLength": 1,
2613
+ "maxLength": 100
2614
+ }
2615
+ },
2616
+ "required": ["name", "version"],
2617
+ "additionalProperties": false
2618
+ }
2619
+ },
2620
+ "required": ["protocolVersions", "client"],
2621
+ "additionalProperties": false
2622
+ },
2623
+ "initializeResult": {
2624
+ "readOnly": true,
2625
+ "type": "object",
2626
+ "properties": {
2627
+ "protocolVersion": {
2628
+ "type": "string",
2629
+ "enum": ["1.1", "1.0"]
2630
+ },
2631
+ "runtimeInstanceId": {
2632
+ "type": "string",
2633
+ "format": "uuid",
2634
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2635
+ },
2636
+ "server": {
2637
+ "readOnly": true,
2638
+ "type": "object",
2639
+ "properties": {
2640
+ "name": {
2641
+ "type": "string",
2642
+ "minLength": 1,
2643
+ "maxLength": 100
2644
+ },
2645
+ "version": {
2646
+ "type": "string",
2647
+ "minLength": 1,
2648
+ "maxLength": 100
2649
+ },
2650
+ "runtimeVersion": {
2651
+ "type": "string",
2652
+ "minLength": 1,
2653
+ "maxLength": 100
2654
+ }
2655
+ },
2656
+ "required": ["name", "version", "runtimeVersion"],
2657
+ "additionalProperties": false
2658
+ },
2659
+ "features": {
2660
+ "type": "array",
2661
+ "items": {
2662
+ "type": "string",
2663
+ "enum": [
2664
+ "thread-management",
2665
+ "snapshots",
2666
+ "turns",
2667
+ "approvals",
2668
+ "tool-streaming",
2669
+ "reasoning-summary",
2670
+ "operation-projection",
2671
+ "process-local-sequence"
2672
+ ]
2673
+ }
2674
+ },
2675
+ "limits": {
2676
+ "readOnly": true,
2677
+ "type": "object",
2678
+ "properties": {
2679
+ "maxFrameBytes": {
2680
+ "type": "integer",
2681
+ "exclusiveMinimum": 0,
2682
+ "maximum": 9007199254740991
2683
+ },
2684
+ "maxPageSize": {
2685
+ "type": "integer",
2686
+ "exclusiveMinimum": 0,
2687
+ "maximum": 9007199254740991
2688
+ },
2689
+ "eventReplay": {
2690
+ "type": "boolean",
2691
+ "const": false
2692
+ },
2693
+ "idempotencyCacheEntries": {
2694
+ "type": "integer",
2695
+ "exclusiveMinimum": 0,
2696
+ "maximum": 9007199254740991
2697
+ }
2698
+ },
2699
+ "required": [
2700
+ "maxFrameBytes",
2701
+ "maxPageSize",
2702
+ "eventReplay",
2703
+ "idempotencyCacheEntries"
2704
+ ],
2705
+ "additionalProperties": false
2706
+ }
2707
+ },
2708
+ "required": [
2709
+ "protocolVersion",
2710
+ "runtimeInstanceId",
2711
+ "server",
2712
+ "features",
2713
+ "limits"
2714
+ ],
2715
+ "additionalProperties": false
2716
+ },
2717
+ "threadListParams": {
2718
+ "readOnly": true,
2719
+ "type": "object",
2720
+ "properties": {
2721
+ "cursor": {
2722
+ "type": "string",
2723
+ "pattern": "^\\d+$"
2724
+ },
2725
+ "limit": {
2726
+ "default": 100,
2727
+ "type": "integer",
2728
+ "minimum": 1,
2729
+ "maximum": 500
2730
+ }
2731
+ },
2732
+ "required": ["limit"],
2733
+ "additionalProperties": false
2734
+ },
2735
+ "threadListResult": {
2736
+ "readOnly": true,
2737
+ "type": "object",
2738
+ "properties": {
2739
+ "items": {
2740
+ "type": "array",
2741
+ "items": {
2742
+ "readOnly": true,
2743
+ "type": "object",
2744
+ "properties": {
2745
+ "id": {
2746
+ "type": "string",
2747
+ "format": "uuid",
2748
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2749
+ },
2750
+ "title": {
2751
+ "type": "string"
2752
+ },
2753
+ "model": {
2754
+ "type": "string"
2755
+ },
2756
+ "createdAt": {
2757
+ "type": "string",
2758
+ "format": "date-time",
2759
+ "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|([+-]\\d{2}:\\d{2})))$"
2760
+ },
2761
+ "updatedAt": {
2762
+ "type": "string",
2763
+ "format": "date-time",
2764
+ "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|([+-]\\d{2}:\\d{2})))$"
2765
+ },
2766
+ "messageCount": {
2767
+ "type": "integer",
2768
+ "minimum": 0,
2769
+ "maximum": 9007199254740991
2770
+ }
2771
+ },
2772
+ "required": ["id", "createdAt", "updatedAt", "messageCount"],
2773
+ "additionalProperties": false
2774
+ }
2775
+ },
2776
+ "nextCursor": {
2777
+ "anyOf": [
2778
+ {
2779
+ "type": "string",
2780
+ "pattern": "^\\d+$"
2781
+ },
2782
+ {
2783
+ "type": "null"
2784
+ }
2785
+ ]
2786
+ }
2787
+ },
2788
+ "required": ["items", "nextCursor"],
2789
+ "additionalProperties": false
2790
+ },
2791
+ "threadCreateParams": {
2792
+ "readOnly": true,
2793
+ "type": "object",
2794
+ "properties": {
2795
+ "requestId": {
2796
+ "type": "string",
2797
+ "format": "uuid",
2798
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2799
+ },
2800
+ "title": {
2801
+ "type": "string",
2802
+ "minLength": 1,
2803
+ "maxLength": 200
2804
+ }
2805
+ },
2806
+ "required": ["requestId"],
2807
+ "additionalProperties": false
2808
+ },
2809
+ "threadCreateResult": {
2810
+ "readOnly": true,
2811
+ "type": "object",
2812
+ "properties": {
2813
+ "thread": {
2814
+ "readOnly": true,
2815
+ "type": "object",
2816
+ "properties": {
2817
+ "id": {
2818
+ "type": "string",
2819
+ "format": "uuid",
2820
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2821
+ },
2822
+ "title": {
2823
+ "type": "string"
2824
+ },
2825
+ "model": {
2826
+ "type": "string"
2827
+ },
2828
+ "createdAt": {
2829
+ "type": "string",
2830
+ "format": "date-time",
2831
+ "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|([+-]\\d{2}:\\d{2})))$"
2832
+ },
2833
+ "updatedAt": {
2834
+ "type": "string",
2835
+ "format": "date-time",
2836
+ "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|([+-]\\d{2}:\\d{2})))$"
2837
+ },
2838
+ "messageCount": {
2839
+ "type": "integer",
2840
+ "minimum": 0,
2841
+ "maximum": 9007199254740991
2842
+ }
2843
+ },
2844
+ "required": ["id", "createdAt", "updatedAt", "messageCount"],
2845
+ "additionalProperties": false
2846
+ }
2847
+ },
2848
+ "required": ["thread"],
2849
+ "additionalProperties": false
2850
+ },
2851
+ "threadOpenParams": {
2852
+ "readOnly": true,
2853
+ "type": "object",
2854
+ "properties": {
2855
+ "threadId": {
2856
+ "type": "string",
2857
+ "format": "uuid",
2858
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2859
+ }
2860
+ },
2861
+ "required": ["threadId"],
2862
+ "additionalProperties": false
2863
+ },
2864
+ "threadOpenResult": {
2865
+ "readOnly": true,
2866
+ "type": "object",
2867
+ "properties": {
2868
+ "thread": {
2869
+ "readOnly": true,
2870
+ "type": "object",
2871
+ "properties": {
2872
+ "id": {
2873
+ "type": "string",
2874
+ "format": "uuid",
2875
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2876
+ },
2877
+ "title": {
2878
+ "type": "string"
2879
+ },
2880
+ "model": {
2881
+ "type": "string"
2882
+ },
2883
+ "createdAt": {
2884
+ "type": "string",
2885
+ "format": "date-time",
2886
+ "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|([+-]\\d{2}:\\d{2})))$"
2887
+ },
2888
+ "updatedAt": {
2889
+ "type": "string",
2890
+ "format": "date-time",
2891
+ "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|([+-]\\d{2}:\\d{2})))$"
2892
+ },
2893
+ "messageCount": {
2894
+ "type": "integer",
2895
+ "minimum": 0,
2896
+ "maximum": 9007199254740991
2897
+ }
2898
+ },
2899
+ "required": ["id", "createdAt", "updatedAt", "messageCount"],
2900
+ "additionalProperties": false
2901
+ },
2902
+ "messages": {
2903
+ "readOnly": true,
2904
+ "type": "object",
2905
+ "properties": {
2906
+ "items": {
2907
+ "type": "array",
2908
+ "items": {
2909
+ "readOnly": true,
2910
+ "type": "object",
2911
+ "properties": {
2912
+ "sequence": {
2913
+ "type": "integer",
2914
+ "minimum": 0,
2915
+ "maximum": 9007199254740991
2916
+ },
2917
+ "role": {
2918
+ "type": "string",
2919
+ "enum": ["user", "assistant"]
2920
+ },
2921
+ "createdAt": {
2922
+ "type": "string",
2923
+ "format": "date-time",
2924
+ "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|([+-]\\d{2}:\\d{2})))$"
2925
+ },
2926
+ "parts": {
2927
+ "type": "array",
2928
+ "items": {
2929
+ "readOnly": true,
2930
+ "type": "object",
2931
+ "properties": {
2932
+ "type": {
2933
+ "type": "string",
2934
+ "const": "text"
2935
+ },
2936
+ "text": {
2937
+ "type": "string"
2938
+ }
2939
+ },
2940
+ "required": ["type", "text"],
2941
+ "additionalProperties": false
2942
+ }
2943
+ }
2944
+ },
2945
+ "required": ["sequence", "role", "createdAt", "parts"],
2946
+ "additionalProperties": false
2947
+ }
2948
+ },
2949
+ "nextBeforeSequence": {
2950
+ "anyOf": [
2951
+ {
2952
+ "type": "integer",
2953
+ "minimum": 0,
2954
+ "maximum": 9007199254740991
2955
+ },
2956
+ {
2957
+ "type": "null"
2958
+ }
2959
+ ]
2960
+ }
2961
+ },
2962
+ "required": ["items", "nextBeforeSequence"],
2963
+ "additionalProperties": false
2964
+ },
2965
+ "operations": {
2966
+ "readOnly": true,
2967
+ "type": "object",
2968
+ "properties": {
2969
+ "items": {
2970
+ "type": "array",
2971
+ "items": {
2972
+ "readOnly": true,
2973
+ "type": "object",
2974
+ "properties": {
2975
+ "id": {
2976
+ "type": "string",
2977
+ "format": "uuid",
2978
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
2979
+ },
2980
+ "sequence": {
2981
+ "type": "integer",
2982
+ "minimum": 0,
2983
+ "maximum": 9007199254740991
2984
+ },
2985
+ "toolCallId": {
2986
+ "type": "string",
2987
+ "minLength": 1
2988
+ },
2989
+ "agentName": {
2990
+ "type": "string",
2991
+ "minLength": 1
2992
+ },
2993
+ "toolName": {
2994
+ "type": "string",
2995
+ "minLength": 1
2996
+ },
2997
+ "createdAt": {
2998
+ "type": "string",
2999
+ "format": "date-time",
3000
+ "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|([+-]\\d{2}:\\d{2})))$"
3001
+ },
3002
+ "outcome": {
3003
+ "readOnly": true,
3004
+ "type": "object",
3005
+ "properties": {
3006
+ "kind": {
3007
+ "type": "string",
3008
+ "enum": [
3009
+ "success",
3010
+ "user_rejected",
3011
+ "policy_denied",
3012
+ "invalid_input",
3013
+ "cancelled",
3014
+ "tool_failed"
3015
+ ]
3016
+ },
3017
+ "reason": {
3018
+ "type": "string"
3019
+ }
3020
+ },
3021
+ "required": ["kind"],
3022
+ "additionalProperties": false
3023
+ },
3024
+ "display": {
3025
+ "$ref": "#/$defs/sharedSchema0"
3026
+ },
3027
+ "appOutput": {
3028
+ "readOnly": true,
3029
+ "anyOf": [
3030
+ {
3031
+ "readOnly": true,
3032
+ "type": "object",
3033
+ "properties": {
3034
+ "status": {
3035
+ "type": "string",
3036
+ "const": "rejected"
3037
+ },
3038
+ "reason": {
3039
+ "type": "string",
3040
+ "enum": ["credential_field", "credential_value"]
3041
+ },
3042
+ "field": {
3043
+ "type": "string",
3044
+ "maxLength": 64
3045
+ }
3046
+ },
3047
+ "required": ["status", "reason"],
3048
+ "additionalProperties": false
3049
+ },
3050
+ {
3051
+ "type": "object",
3052
+ "properties": {
3053
+ "status": {
3054
+ "type": "string",
3055
+ "const": "available"
3056
+ },
3057
+ "schemaId": {
3058
+ "type": "string",
3059
+ "minLength": 1,
3060
+ "maxLength": 256
3061
+ },
3062
+ "schemaVersion": {
3063
+ "type": "integer",
3064
+ "exclusiveMinimum": 0,
3065
+ "maximum": 9007199254740991
3066
+ }
3067
+ },
3068
+ "required": ["status", "schemaId", "schemaVersion"],
3069
+ "additionalProperties": false
3070
+ },
3071
+ {
3072
+ "type": "object",
3073
+ "properties": {
3074
+ "status": {
3075
+ "type": "string",
3076
+ "enum": [
3077
+ "not_provided",
3078
+ "invalid",
3079
+ "too_large",
3080
+ "expired",
3081
+ "denied"
3082
+ ]
3083
+ }
3084
+ },
3085
+ "required": ["status"],
3086
+ "additionalProperties": false
3087
+ }
3088
+ ]
3089
+ }
3090
+ },
3091
+ "required": [
3092
+ "id",
3093
+ "sequence",
3094
+ "toolCallId",
3095
+ "agentName",
3096
+ "toolName",
3097
+ "createdAt",
3098
+ "outcome",
3099
+ "display"
3100
+ ],
3101
+ "additionalProperties": false
3102
+ }
3103
+ },
3104
+ "nextBeforeSequence": {
3105
+ "anyOf": [
3106
+ {
3107
+ "type": "integer",
3108
+ "minimum": 0,
3109
+ "maximum": 9007199254740991
3110
+ },
3111
+ {
3112
+ "type": "null"
3113
+ }
3114
+ ]
3115
+ }
3116
+ },
3117
+ "required": ["items", "nextBeforeSequence"],
3118
+ "additionalProperties": false
3119
+ },
3120
+ "activeTurn": {
3121
+ "readOnly": true,
3122
+ "type": "object",
3123
+ "properties": {
3124
+ "id": {
3125
+ "type": "string",
3126
+ "format": "uuid",
3127
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3128
+ },
3129
+ "status": {
3130
+ "type": "string",
3131
+ "enum": ["running", "cancelling"]
3132
+ },
3133
+ "startedAt": {
3134
+ "type": "string",
3135
+ "format": "date-time",
3136
+ "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|([+-]\\d{2}:\\d{2})))$"
3137
+ }
3138
+ },
3139
+ "required": ["id", "status", "startedAt"],
3140
+ "additionalProperties": false
3141
+ },
3142
+ "pendingApprovals": {
3143
+ "type": "array",
3144
+ "items": {
3145
+ "readOnly": true,
3146
+ "type": "object",
3147
+ "properties": {
3148
+ "id": {
3149
+ "type": "string",
3150
+ "format": "uuid",
3151
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3152
+ },
3153
+ "turnId": {
3154
+ "type": "string",
3155
+ "format": "uuid",
3156
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3157
+ },
3158
+ "agentName": {
3159
+ "type": "string",
3160
+ "minLength": 1
3161
+ },
3162
+ "toolName": {
3163
+ "type": "string",
3164
+ "minLength": 1
3165
+ },
3166
+ "preview": {
3167
+ "$ref": "#/$defs/sharedSchema0"
3168
+ },
3169
+ "reason": {
3170
+ "type": "string"
3171
+ }
3172
+ },
3173
+ "required": ["id", "turnId", "agentName", "toolName", "preview"],
3174
+ "additionalProperties": false
3175
+ }
3176
+ },
3177
+ "transcriptCompleteness": {
3178
+ "type": "string",
3179
+ "enum": ["complete", "legacy_snapshot"]
3180
+ },
3181
+ "contextRecovery": {
3182
+ "anyOf": [
3183
+ {
3184
+ "readOnly": true,
3185
+ "type": "object",
3186
+ "properties": {
3187
+ "checkpointId": {
3188
+ "type": "string",
3189
+ "format": "uuid",
3190
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3191
+ },
3192
+ "required": {
3193
+ "type": "boolean"
3194
+ },
3195
+ "unextracted": {
3196
+ "type": "boolean"
3197
+ },
3198
+ "requiredItemCount": {
3199
+ "type": "integer",
3200
+ "minimum": 0,
3201
+ "maximum": 9007199254740991
3202
+ }
3203
+ },
3204
+ "required": [
3205
+ "checkpointId",
3206
+ "required",
3207
+ "unextracted",
3208
+ "requiredItemCount"
3209
+ ],
3210
+ "additionalProperties": false
3211
+ },
3212
+ {
3213
+ "type": "null"
3214
+ }
3215
+ ]
3216
+ }
3217
+ },
3218
+ "required": [
3219
+ "thread",
3220
+ "messages",
3221
+ "operations",
3222
+ "pendingApprovals",
3223
+ "transcriptCompleteness",
3224
+ "contextRecovery"
3225
+ ],
3226
+ "additionalProperties": false
3227
+ },
3228
+ "threadSnapshotParams": {
3229
+ "readOnly": true,
3230
+ "type": "object",
3231
+ "properties": {
3232
+ "threadId": {
3233
+ "type": "string",
3234
+ "format": "uuid",
3235
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3236
+ },
3237
+ "messageBeforeSequence": {
3238
+ "type": "integer",
3239
+ "minimum": 0,
3240
+ "maximum": 9007199254740991
3241
+ },
3242
+ "operationBeforeSequence": {
3243
+ "type": "integer",
3244
+ "minimum": 0,
3245
+ "maximum": 9007199254740991
3246
+ },
3247
+ "limit": {
3248
+ "default": 100,
3249
+ "type": "integer",
3250
+ "minimum": 1,
3251
+ "maximum": 500
3252
+ }
3253
+ },
3254
+ "required": ["threadId", "limit"],
3255
+ "additionalProperties": false
3256
+ },
3257
+ "threadSnapshotResult": {
3258
+ "readOnly": true,
3259
+ "type": "object",
3260
+ "properties": {
3261
+ "thread": {
3262
+ "readOnly": true,
3263
+ "type": "object",
3264
+ "properties": {
3265
+ "id": {
3266
+ "type": "string",
3267
+ "format": "uuid",
3268
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3269
+ },
3270
+ "title": {
3271
+ "type": "string"
3272
+ },
3273
+ "model": {
3274
+ "type": "string"
3275
+ },
3276
+ "createdAt": {
3277
+ "type": "string",
3278
+ "format": "date-time",
3279
+ "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|([+-]\\d{2}:\\d{2})))$"
3280
+ },
3281
+ "updatedAt": {
3282
+ "type": "string",
3283
+ "format": "date-time",
3284
+ "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|([+-]\\d{2}:\\d{2})))$"
3285
+ },
3286
+ "messageCount": {
3287
+ "type": "integer",
3288
+ "minimum": 0,
3289
+ "maximum": 9007199254740991
3290
+ }
3291
+ },
3292
+ "required": ["id", "createdAt", "updatedAt", "messageCount"],
3293
+ "additionalProperties": false
3294
+ },
3295
+ "messages": {
3296
+ "readOnly": true,
3297
+ "type": "object",
3298
+ "properties": {
3299
+ "items": {
3300
+ "type": "array",
3301
+ "items": {
3302
+ "readOnly": true,
3303
+ "type": "object",
3304
+ "properties": {
3305
+ "sequence": {
3306
+ "type": "integer",
3307
+ "minimum": 0,
3308
+ "maximum": 9007199254740991
3309
+ },
3310
+ "role": {
3311
+ "type": "string",
3312
+ "enum": ["user", "assistant"]
3313
+ },
3314
+ "createdAt": {
3315
+ "type": "string",
3316
+ "format": "date-time",
3317
+ "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|([+-]\\d{2}:\\d{2})))$"
3318
+ },
3319
+ "parts": {
3320
+ "type": "array",
3321
+ "items": {
3322
+ "readOnly": true,
3323
+ "type": "object",
3324
+ "properties": {
3325
+ "type": {
3326
+ "type": "string",
3327
+ "const": "text"
3328
+ },
3329
+ "text": {
3330
+ "type": "string"
3331
+ }
3332
+ },
3333
+ "required": ["type", "text"],
3334
+ "additionalProperties": false
3335
+ }
3336
+ }
3337
+ },
3338
+ "required": ["sequence", "role", "createdAt", "parts"],
3339
+ "additionalProperties": false
3340
+ }
3341
+ },
3342
+ "nextBeforeSequence": {
3343
+ "anyOf": [
3344
+ {
3345
+ "type": "integer",
3346
+ "minimum": 0,
3347
+ "maximum": 9007199254740991
3348
+ },
3349
+ {
3350
+ "type": "null"
3351
+ }
3352
+ ]
3353
+ }
3354
+ },
3355
+ "required": ["items", "nextBeforeSequence"],
3356
+ "additionalProperties": false
3357
+ },
3358
+ "operations": {
3359
+ "readOnly": true,
3360
+ "type": "object",
3361
+ "properties": {
3362
+ "items": {
3363
+ "type": "array",
3364
+ "items": {
3365
+ "readOnly": true,
3366
+ "type": "object",
3367
+ "properties": {
3368
+ "id": {
3369
+ "type": "string",
3370
+ "format": "uuid",
3371
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3372
+ },
3373
+ "sequence": {
3374
+ "type": "integer",
3375
+ "minimum": 0,
3376
+ "maximum": 9007199254740991
3377
+ },
3378
+ "toolCallId": {
3379
+ "type": "string",
3380
+ "minLength": 1
3381
+ },
3382
+ "agentName": {
3383
+ "type": "string",
3384
+ "minLength": 1
3385
+ },
3386
+ "toolName": {
3387
+ "type": "string",
3388
+ "minLength": 1
3389
+ },
3390
+ "createdAt": {
3391
+ "type": "string",
3392
+ "format": "date-time",
3393
+ "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|([+-]\\d{2}:\\d{2})))$"
3394
+ },
3395
+ "outcome": {
3396
+ "readOnly": true,
3397
+ "type": "object",
3398
+ "properties": {
3399
+ "kind": {
3400
+ "type": "string",
3401
+ "enum": [
3402
+ "success",
3403
+ "user_rejected",
3404
+ "policy_denied",
3405
+ "invalid_input",
3406
+ "cancelled",
3407
+ "tool_failed"
3408
+ ]
3409
+ },
3410
+ "reason": {
3411
+ "type": "string"
3412
+ }
3413
+ },
3414
+ "required": ["kind"],
3415
+ "additionalProperties": false
3416
+ },
3417
+ "display": {
3418
+ "$ref": "#/$defs/sharedSchema0"
3419
+ },
3420
+ "appOutput": {
3421
+ "readOnly": true,
3422
+ "anyOf": [
3423
+ {
3424
+ "readOnly": true,
3425
+ "type": "object",
3426
+ "properties": {
3427
+ "status": {
3428
+ "type": "string",
3429
+ "const": "rejected"
3430
+ },
3431
+ "reason": {
3432
+ "type": "string",
3433
+ "enum": ["credential_field", "credential_value"]
3434
+ },
3435
+ "field": {
3436
+ "type": "string",
3437
+ "maxLength": 64
3438
+ }
3439
+ },
3440
+ "required": ["status", "reason"],
3441
+ "additionalProperties": false
3442
+ },
3443
+ {
3444
+ "type": "object",
3445
+ "properties": {
3446
+ "status": {
3447
+ "type": "string",
3448
+ "const": "available"
3449
+ },
3450
+ "schemaId": {
3451
+ "type": "string",
3452
+ "minLength": 1,
3453
+ "maxLength": 256
3454
+ },
3455
+ "schemaVersion": {
3456
+ "type": "integer",
3457
+ "exclusiveMinimum": 0,
3458
+ "maximum": 9007199254740991
3459
+ }
3460
+ },
3461
+ "required": ["status", "schemaId", "schemaVersion"],
3462
+ "additionalProperties": false
3463
+ },
3464
+ {
3465
+ "type": "object",
3466
+ "properties": {
3467
+ "status": {
3468
+ "type": "string",
3469
+ "enum": [
3470
+ "not_provided",
3471
+ "invalid",
3472
+ "too_large",
3473
+ "expired",
3474
+ "denied"
3475
+ ]
3476
+ }
3477
+ },
3478
+ "required": ["status"],
3479
+ "additionalProperties": false
3480
+ }
3481
+ ]
3482
+ }
3483
+ },
3484
+ "required": [
3485
+ "id",
3486
+ "sequence",
3487
+ "toolCallId",
3488
+ "agentName",
3489
+ "toolName",
3490
+ "createdAt",
3491
+ "outcome",
3492
+ "display"
3493
+ ],
3494
+ "additionalProperties": false
3495
+ }
3496
+ },
3497
+ "nextBeforeSequence": {
3498
+ "anyOf": [
3499
+ {
3500
+ "type": "integer",
3501
+ "minimum": 0,
3502
+ "maximum": 9007199254740991
3503
+ },
3504
+ {
3505
+ "type": "null"
3506
+ }
3507
+ ]
3508
+ }
3509
+ },
3510
+ "required": ["items", "nextBeforeSequence"],
3511
+ "additionalProperties": false
3512
+ },
3513
+ "activeTurn": {
3514
+ "readOnly": true,
3515
+ "type": "object",
3516
+ "properties": {
3517
+ "id": {
3518
+ "type": "string",
3519
+ "format": "uuid",
3520
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3521
+ },
3522
+ "status": {
3523
+ "type": "string",
3524
+ "enum": ["running", "cancelling"]
3525
+ },
3526
+ "startedAt": {
3527
+ "type": "string",
3528
+ "format": "date-time",
3529
+ "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|([+-]\\d{2}:\\d{2})))$"
3530
+ }
3531
+ },
3532
+ "required": ["id", "status", "startedAt"],
3533
+ "additionalProperties": false
3534
+ },
3535
+ "pendingApprovals": {
3536
+ "type": "array",
3537
+ "items": {
3538
+ "readOnly": true,
3539
+ "type": "object",
3540
+ "properties": {
3541
+ "id": {
3542
+ "type": "string",
3543
+ "format": "uuid",
3544
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3545
+ },
3546
+ "turnId": {
3547
+ "type": "string",
3548
+ "format": "uuid",
3549
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3550
+ },
3551
+ "agentName": {
3552
+ "type": "string",
3553
+ "minLength": 1
3554
+ },
3555
+ "toolName": {
3556
+ "type": "string",
3557
+ "minLength": 1
3558
+ },
3559
+ "preview": {
3560
+ "$ref": "#/$defs/sharedSchema0"
3561
+ },
3562
+ "reason": {
3563
+ "type": "string"
3564
+ }
3565
+ },
3566
+ "required": ["id", "turnId", "agentName", "toolName", "preview"],
3567
+ "additionalProperties": false
3568
+ }
3569
+ },
3570
+ "transcriptCompleteness": {
3571
+ "type": "string",
3572
+ "enum": ["complete", "legacy_snapshot"]
3573
+ },
3574
+ "contextRecovery": {
3575
+ "anyOf": [
3576
+ {
3577
+ "readOnly": true,
3578
+ "type": "object",
3579
+ "properties": {
3580
+ "checkpointId": {
3581
+ "type": "string",
3582
+ "format": "uuid",
3583
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3584
+ },
3585
+ "required": {
3586
+ "type": "boolean"
3587
+ },
3588
+ "unextracted": {
3589
+ "type": "boolean"
3590
+ },
3591
+ "requiredItemCount": {
3592
+ "type": "integer",
3593
+ "minimum": 0,
3594
+ "maximum": 9007199254740991
3595
+ }
3596
+ },
3597
+ "required": [
3598
+ "checkpointId",
3599
+ "required",
3600
+ "unextracted",
3601
+ "requiredItemCount"
3602
+ ],
3603
+ "additionalProperties": false
3604
+ },
3605
+ {
3606
+ "type": "null"
3607
+ }
3608
+ ]
3609
+ }
3610
+ },
3611
+ "required": [
3612
+ "thread",
3613
+ "messages",
3614
+ "operations",
3615
+ "pendingApprovals",
3616
+ "transcriptCompleteness",
3617
+ "contextRecovery"
3618
+ ],
3619
+ "additionalProperties": false
3620
+ },
3621
+ "threadRenameParams": {
3622
+ "readOnly": true,
3623
+ "type": "object",
3624
+ "properties": {
3625
+ "requestId": {
3626
+ "type": "string",
3627
+ "format": "uuid",
3628
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3629
+ },
3630
+ "threadId": {
3631
+ "type": "string",
3632
+ "format": "uuid",
3633
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3634
+ },
3635
+ "title": {
3636
+ "type": "string",
3637
+ "minLength": 1,
3638
+ "maxLength": 200
3639
+ }
3640
+ },
3641
+ "required": ["requestId", "threadId", "title"],
3642
+ "additionalProperties": false
3643
+ },
3644
+ "threadRenameResult": {
3645
+ "readOnly": true,
3646
+ "type": "object",
3647
+ "properties": {
3648
+ "thread": {
3649
+ "readOnly": true,
3650
+ "type": "object",
3651
+ "properties": {
3652
+ "id": {
3653
+ "type": "string",
3654
+ "format": "uuid",
3655
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3656
+ },
3657
+ "title": {
3658
+ "type": "string"
3659
+ },
3660
+ "model": {
3661
+ "type": "string"
3662
+ },
3663
+ "createdAt": {
3664
+ "type": "string",
3665
+ "format": "date-time",
3666
+ "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|([+-]\\d{2}:\\d{2})))$"
3667
+ },
3668
+ "updatedAt": {
3669
+ "type": "string",
3670
+ "format": "date-time",
3671
+ "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|([+-]\\d{2}:\\d{2})))$"
3672
+ },
3673
+ "messageCount": {
3674
+ "type": "integer",
3675
+ "minimum": 0,
3676
+ "maximum": 9007199254740991
3677
+ }
3678
+ },
3679
+ "required": ["id", "createdAt", "updatedAt", "messageCount"],
3680
+ "additionalProperties": false
3681
+ }
3682
+ },
3683
+ "required": ["thread"],
3684
+ "additionalProperties": false
3685
+ },
3686
+ "threadDeleteParams": {
3687
+ "readOnly": true,
3688
+ "type": "object",
3689
+ "properties": {
3690
+ "requestId": {
3691
+ "type": "string",
3692
+ "format": "uuid",
3693
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3694
+ },
3695
+ "threadId": {
3696
+ "type": "string",
3697
+ "format": "uuid",
3698
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3699
+ }
3700
+ },
3701
+ "required": ["requestId", "threadId"],
3702
+ "additionalProperties": false
3703
+ },
3704
+ "threadDeleteResult": {
3705
+ "readOnly": true,
3706
+ "type": "object",
3707
+ "properties": {
3708
+ "deleted": {
3709
+ "type": "boolean",
3710
+ "const": true
3711
+ }
3712
+ },
3713
+ "required": ["deleted"],
3714
+ "additionalProperties": false
3715
+ },
3716
+ "threadDetachParams": {
3717
+ "readOnly": true,
3718
+ "type": "object",
3719
+ "properties": {
3720
+ "requestId": {
3721
+ "type": "string",
3722
+ "format": "uuid",
3723
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3724
+ },
3725
+ "threadId": {
3726
+ "type": "string",
3727
+ "format": "uuid",
3728
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3729
+ }
3730
+ },
3731
+ "required": ["requestId", "threadId"],
3732
+ "additionalProperties": false
3733
+ },
3734
+ "threadDetachResult": {
3735
+ "readOnly": true,
3736
+ "type": "object",
3737
+ "properties": {
3738
+ "detached": {
3739
+ "type": "boolean"
3740
+ }
3741
+ },
3742
+ "required": ["detached"],
3743
+ "additionalProperties": false
3744
+ },
3745
+ "threadCapabilitiesParams": {
3746
+ "readOnly": true,
3747
+ "type": "object",
3748
+ "properties": {
3749
+ "threadId": {
3750
+ "type": "string",
3751
+ "format": "uuid",
3752
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3753
+ }
3754
+ },
3755
+ "required": ["threadId"],
3756
+ "additionalProperties": false
3757
+ },
3758
+ "threadCapabilitiesResult": {
3759
+ "readOnly": true,
3760
+ "type": "object",
3761
+ "properties": {
3762
+ "manifest": {
3763
+ "$ref": "#/$defs/sharedSchema0"
3764
+ }
3765
+ },
3766
+ "required": ["manifest"],
3767
+ "additionalProperties": false
3768
+ },
3769
+ "turnStartParams": {
3770
+ "readOnly": true,
3771
+ "type": "object",
3772
+ "properties": {
3773
+ "requestId": {
3774
+ "type": "string",
3775
+ "format": "uuid",
3776
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3777
+ },
3778
+ "threadId": {
3779
+ "type": "string",
3780
+ "format": "uuid",
3781
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3782
+ },
3783
+ "turnId": {
3784
+ "type": "string",
3785
+ "format": "uuid",
3786
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3787
+ },
3788
+ "input": {
3789
+ "readOnly": true,
3790
+ "type": "object",
3791
+ "properties": {
3792
+ "text": {
3793
+ "type": "string",
3794
+ "minLength": 1
3795
+ }
3796
+ },
3797
+ "required": ["text"],
3798
+ "additionalProperties": false
3799
+ }
3800
+ },
3801
+ "required": ["requestId", "threadId", "turnId", "input"],
3802
+ "additionalProperties": false
3803
+ },
3804
+ "turnStartResult": {
3805
+ "readOnly": true,
3806
+ "type": "object",
3807
+ "properties": {
3808
+ "accepted": {
3809
+ "type": "boolean",
3810
+ "const": true
3811
+ },
3812
+ "turnId": {
3813
+ "type": "string",
3814
+ "format": "uuid",
3815
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3816
+ }
3817
+ },
3818
+ "required": ["accepted", "turnId"],
3819
+ "additionalProperties": false
3820
+ },
3821
+ "turnCancelParams": {
3822
+ "readOnly": true,
3823
+ "type": "object",
3824
+ "properties": {
3825
+ "requestId": {
3826
+ "type": "string",
3827
+ "format": "uuid",
3828
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3829
+ },
3830
+ "threadId": {
3831
+ "type": "string",
3832
+ "format": "uuid",
3833
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3834
+ },
3835
+ "turnId": {
3836
+ "type": "string",
3837
+ "format": "uuid",
3838
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3839
+ }
3840
+ },
3841
+ "required": ["requestId", "threadId", "turnId"],
3842
+ "additionalProperties": false
3843
+ },
3844
+ "turnCancelResult": {
3845
+ "readOnly": true,
3846
+ "type": "object",
3847
+ "properties": {
3848
+ "cancelling": {
3849
+ "type": "boolean"
3850
+ }
3851
+ },
3852
+ "required": ["cancelling"],
3853
+ "additionalProperties": false
3854
+ },
3855
+ "operationGetParams": {
3856
+ "readOnly": true,
3857
+ "type": "object",
3858
+ "properties": {
3859
+ "threadId": {
3860
+ "type": "string",
3861
+ "format": "uuid",
3862
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3863
+ },
3864
+ "operationId": {
3865
+ "type": "string",
3866
+ "format": "uuid",
3867
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3868
+ }
3869
+ },
3870
+ "required": ["threadId", "operationId"],
3871
+ "additionalProperties": false
3872
+ },
3873
+ "operationGetResult": {
3874
+ "readOnly": true,
3875
+ "type": "object",
3876
+ "properties": {
3877
+ "operation": {
3878
+ "anyOf": [
3879
+ {
3880
+ "readOnly": true,
3881
+ "type": "object",
3882
+ "properties": {
3883
+ "id": {
3884
+ "type": "string",
3885
+ "format": "uuid",
3886
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
3887
+ },
3888
+ "sequence": {
3889
+ "type": "integer",
3890
+ "minimum": 0,
3891
+ "maximum": 9007199254740991
3892
+ },
3893
+ "toolCallId": {
3894
+ "type": "string",
3895
+ "minLength": 1
3896
+ },
3897
+ "agentName": {
3898
+ "type": "string",
3899
+ "minLength": 1
3900
+ },
3901
+ "toolName": {
3902
+ "type": "string",
3903
+ "minLength": 1
3904
+ },
3905
+ "createdAt": {
3906
+ "type": "string",
3907
+ "format": "date-time",
3908
+ "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|([+-]\\d{2}:\\d{2})))$"
3909
+ },
3910
+ "outcome": {
3911
+ "readOnly": true,
3912
+ "type": "object",
3913
+ "properties": {
3914
+ "kind": {
3915
+ "type": "string",
3916
+ "enum": [
3917
+ "success",
3918
+ "user_rejected",
3919
+ "policy_denied",
3920
+ "invalid_input",
3921
+ "cancelled",
3922
+ "tool_failed"
3923
+ ]
3924
+ },
3925
+ "reason": {
3926
+ "type": "string"
3927
+ }
3928
+ },
3929
+ "required": ["kind"],
3930
+ "additionalProperties": false
3931
+ },
3932
+ "display": {
3933
+ "$ref": "#/$defs/sharedSchema0"
3934
+ },
3935
+ "appOutput": {
3936
+ "readOnly": true,
3937
+ "anyOf": [
3938
+ {
3939
+ "readOnly": true,
3940
+ "type": "object",
3941
+ "properties": {
3942
+ "status": {
3943
+ "type": "string",
3944
+ "const": "rejected"
3945
+ },
3946
+ "reason": {
3947
+ "type": "string",
3948
+ "enum": ["credential_field", "credential_value"]
3949
+ },
3950
+ "field": {
3951
+ "type": "string",
3952
+ "maxLength": 64
3953
+ }
3954
+ },
3955
+ "required": ["status", "reason"],
3956
+ "additionalProperties": false
3957
+ },
3958
+ {
3959
+ "type": "object",
3960
+ "properties": {
3961
+ "status": {
3962
+ "type": "string",
3963
+ "const": "available"
3964
+ },
3965
+ "schemaId": {
3966
+ "type": "string",
3967
+ "minLength": 1,
3968
+ "maxLength": 256
3969
+ },
3970
+ "schemaVersion": {
3971
+ "type": "integer",
3972
+ "exclusiveMinimum": 0,
3973
+ "maximum": 9007199254740991
3974
+ }
3975
+ },
3976
+ "required": ["status", "schemaId", "schemaVersion"],
3977
+ "additionalProperties": false
3978
+ },
3979
+ {
3980
+ "type": "object",
3981
+ "properties": {
3982
+ "status": {
3983
+ "type": "string",
3984
+ "enum": [
3985
+ "not_provided",
3986
+ "invalid",
3987
+ "too_large",
3988
+ "expired",
3989
+ "denied"
3990
+ ]
3991
+ }
3992
+ },
3993
+ "required": ["status"],
3994
+ "additionalProperties": false
3995
+ }
3996
+ ]
3997
+ }
3998
+ },
3999
+ "required": [
4000
+ "id",
4001
+ "sequence",
4002
+ "toolCallId",
4003
+ "agentName",
4004
+ "toolName",
4005
+ "createdAt",
4006
+ "outcome",
4007
+ "display"
4008
+ ],
4009
+ "additionalProperties": false
4010
+ },
4011
+ {
4012
+ "type": "null"
4013
+ }
4014
+ ]
4015
+ }
4016
+ },
4017
+ "required": ["operation"],
4018
+ "additionalProperties": false
4019
+ },
4020
+ "interactionCandidateParams": {
4021
+ "anyOf": [
4022
+ {
4023
+ "readOnly": true,
4024
+ "type": "object",
4025
+ "properties": {
4026
+ "interactionId": {
4027
+ "type": "string",
4028
+ "format": "uuid",
4029
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
4030
+ },
4031
+ "threadId": {
4032
+ "type": "string",
4033
+ "format": "uuid",
4034
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
4035
+ },
4036
+ "turnId": {
4037
+ "type": "string",
4038
+ "format": "uuid",
4039
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
4040
+ },
4041
+ "method": {
4042
+ "type": "string",
4043
+ "const": "approval.request"
4044
+ },
4045
+ "candidate": {
4046
+ "anyOf": [
4047
+ {
4048
+ "readOnly": true,
4049
+ "type": "object",
4050
+ "properties": {
4051
+ "decision": {
4052
+ "type": "string",
4053
+ "const": "approve"
4054
+ }
4055
+ },
4056
+ "required": ["decision"],
4057
+ "additionalProperties": false
4058
+ },
4059
+ {
4060
+ "readOnly": true,
4061
+ "type": "object",
4062
+ "properties": {
4063
+ "decision": {
4064
+ "type": "string",
4065
+ "const": "reject"
4066
+ },
4067
+ "reason": {
4068
+ "type": "string",
4069
+ "minLength": 1
4070
+ }
4071
+ },
4072
+ "required": ["decision"],
4073
+ "additionalProperties": false
4074
+ }
4075
+ ]
4076
+ }
4077
+ },
4078
+ "required": [
4079
+ "interactionId",
4080
+ "threadId",
4081
+ "turnId",
4082
+ "method",
4083
+ "candidate"
4084
+ ],
4085
+ "additionalProperties": false
4086
+ },
4087
+ {
4088
+ "readOnly": true,
4089
+ "type": "object",
4090
+ "properties": {
4091
+ "interactionId": {
4092
+ "type": "string",
4093
+ "format": "uuid",
4094
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
4095
+ },
4096
+ "threadId": {
4097
+ "type": "string",
4098
+ "format": "uuid",
4099
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
4100
+ },
4101
+ "turnId": {
4102
+ "type": "string",
4103
+ "format": "uuid",
4104
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
4105
+ },
4106
+ "method": {
4107
+ "type": "string",
4108
+ "const": "userInput.request"
4109
+ },
4110
+ "candidate": {
4111
+ "anyOf": [
4112
+ {
4113
+ "readOnly": true,
4114
+ "type": "object",
4115
+ "properties": {
4116
+ "status": {
4117
+ "type": "string",
4118
+ "const": "submitted"
4119
+ },
4120
+ "values": {
4121
+ "maxItems": 16,
4122
+ "type": "array",
4123
+ "items": {
4124
+ "readOnly": true,
4125
+ "type": "object",
4126
+ "properties": {
4127
+ "id": {
4128
+ "type": "string",
4129
+ "minLength": 1,
4130
+ "maxLength": 64
4131
+ },
4132
+ "value": {
4133
+ "anyOf": [
4134
+ {
4135
+ "type": "string",
4136
+ "maxLength": 10000
4137
+ },
4138
+ {
4139
+ "type": "number"
4140
+ },
4141
+ {
4142
+ "type": "boolean"
4143
+ },
4144
+ {
4145
+ "maxItems": 50,
4146
+ "type": "array",
4147
+ "items": {
4148
+ "type": "string",
4149
+ "maxLength": 64
4150
+ }
4151
+ }
4152
+ ]
4153
+ }
4154
+ },
4155
+ "required": ["id", "value"],
4156
+ "additionalProperties": false
4157
+ }
4158
+ }
4159
+ },
4160
+ "required": ["status", "values"],
4161
+ "additionalProperties": false
4162
+ },
4163
+ {
4164
+ "readOnly": true,
4165
+ "type": "object",
4166
+ "properties": {
4167
+ "status": {
4168
+ "type": "string",
4169
+ "const": "cancelled"
4170
+ },
4171
+ "reason": {
4172
+ "type": "string",
4173
+ "minLength": 1,
4174
+ "maxLength": 500
4175
+ }
4176
+ },
4177
+ "required": ["status"],
4178
+ "additionalProperties": false
4179
+ }
4180
+ ]
4181
+ }
4182
+ },
4183
+ "required": [
4184
+ "interactionId",
4185
+ "threadId",
4186
+ "turnId",
4187
+ "method",
4188
+ "candidate"
4189
+ ],
4190
+ "additionalProperties": false
4191
+ }
4192
+ ]
4193
+ },
4194
+ "interactionCandidateResult": {
4195
+ "readOnly": true,
4196
+ "type": "object",
4197
+ "properties": {
4198
+ "accepted": {
4199
+ "type": "boolean",
4200
+ "const": true
4201
+ }
4202
+ },
4203
+ "required": ["accepted"],
4204
+ "additionalProperties": false
4205
+ },
4206
+ "operationResultGetParams": {
4207
+ "readOnly": true,
4208
+ "type": "object",
4209
+ "properties": {
4210
+ "threadId": {
4211
+ "type": "string",
4212
+ "format": "uuid",
4213
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
4214
+ },
4215
+ "operationId": {
4216
+ "type": "string",
4217
+ "format": "uuid",
4218
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
4219
+ }
4220
+ },
4221
+ "required": ["threadId", "operationId"],
4222
+ "additionalProperties": false
4223
+ },
4224
+ "operationResultGetResult": {
4225
+ "readOnly": true,
4226
+ "type": "object",
4227
+ "properties": {
4228
+ "result": {
4229
+ "anyOf": [
4230
+ {
4231
+ "readOnly": true,
4232
+ "type": "object",
4233
+ "properties": {
4234
+ "threadId": {
4235
+ "type": "string",
4236
+ "format": "uuid",
4237
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
4238
+ },
4239
+ "operationId": {
4240
+ "type": "string",
4241
+ "format": "uuid",
4242
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$"
4243
+ },
4244
+ "agentName": {
4245
+ "type": "string",
4246
+ "minLength": 1
4247
+ },
4248
+ "toolName": {
4249
+ "type": "string",
4250
+ "minLength": 1
4251
+ },
4252
+ "createdAt": {
4253
+ "type": "string",
4254
+ "format": "date-time",
4255
+ "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|([+-]\\d{2}:\\d{2})))$"
4256
+ },
4257
+ "output": {
4258
+ "readOnly": true,
4259
+ "anyOf": [
4260
+ {
4261
+ "readOnly": true,
4262
+ "type": "object",
4263
+ "properties": {
4264
+ "status": {
4265
+ "type": "string",
4266
+ "const": "rejected"
4267
+ },
4268
+ "reason": {
4269
+ "type": "string",
4270
+ "enum": ["credential_field", "credential_value"]
4271
+ },
4272
+ "field": {
4273
+ "type": "string",
4274
+ "maxLength": 64
4275
+ }
4276
+ },
4277
+ "required": ["status", "reason"],
4278
+ "additionalProperties": false
4279
+ },
4280
+ {
4281
+ "type": "object",
4282
+ "properties": {
4283
+ "status": {
4284
+ "type": "string",
4285
+ "const": "available"
4286
+ },
4287
+ "schemaId": {
4288
+ "type": "string",
4289
+ "minLength": 1,
4290
+ "maxLength": 256
4291
+ },
4292
+ "schemaVersion": {
4293
+ "type": "integer",
4294
+ "exclusiveMinimum": 0,
4295
+ "maximum": 9007199254740991
4296
+ },
4297
+ "remoteReadable": {
4298
+ "type": "boolean"
4299
+ },
4300
+ "data": {
4301
+ "type": "object",
4302
+ "propertyNames": {
4303
+ "type": "string"
4304
+ },
4305
+ "additionalProperties": {
4306
+ "$ref": "#/$defs/sharedSchema1"
4307
+ }
4308
+ },
4309
+ "fallbackText": {
4310
+ "type": "string",
4311
+ "maxLength": 4096
4312
+ }
4313
+ },
4314
+ "required": [
4315
+ "status",
4316
+ "schemaId",
4317
+ "schemaVersion",
4318
+ "remoteReadable",
4319
+ "data",
4320
+ "fallbackText"
4321
+ ],
4322
+ "additionalProperties": false
4323
+ },
4324
+ {
4325
+ "type": "object",
4326
+ "properties": {
4327
+ "status": {
4328
+ "type": "string",
4329
+ "enum": [
4330
+ "not_provided",
4331
+ "invalid",
4332
+ "too_large",
4333
+ "expired",
4334
+ "denied"
4335
+ ]
4336
+ }
4337
+ },
4338
+ "required": ["status"],
4339
+ "additionalProperties": false
4340
+ }
4341
+ ]
4342
+ }
4343
+ },
4344
+ "required": [
4345
+ "threadId",
4346
+ "operationId",
4347
+ "agentName",
4348
+ "toolName",
4349
+ "createdAt",
4350
+ "output"
4351
+ ],
4352
+ "additionalProperties": false
4353
+ },
4354
+ {
4355
+ "type": "null"
4356
+ }
4357
+ ]
4358
+ }
4359
+ },
4360
+ "required": ["result"],
4361
+ "additionalProperties": false
4362
+ },
4363
+ "sharedSchema0": {
4364
+ "anyOf": [
4365
+ {
4366
+ "type": "string"
4367
+ },
4368
+ {
4369
+ "type": "number"
4370
+ },
4371
+ {
4372
+ "type": "boolean"
4373
+ },
4374
+ {
4375
+ "type": "null"
4376
+ },
4377
+ {
4378
+ "type": "array",
4379
+ "items": {
4380
+ "$ref": "#/$defs/sharedSchema0"
4381
+ }
4382
+ },
4383
+ {
4384
+ "type": "object",
4385
+ "propertyNames": {
4386
+ "type": "string"
4387
+ },
4388
+ "additionalProperties": {
4389
+ "$ref": "#/$defs/sharedSchema0"
4390
+ }
4391
+ }
4392
+ ]
4393
+ },
4394
+ "sharedSchema1": {
4395
+ "anyOf": [
4396
+ {
4397
+ "type": "string"
4398
+ },
4399
+ {
4400
+ "type": "number"
4401
+ },
4402
+ {
4403
+ "type": "boolean"
4404
+ },
4405
+ {
4406
+ "type": "null"
4407
+ },
4408
+ {
4409
+ "type": "array",
4410
+ "items": {
4411
+ "$ref": "#/$defs/sharedSchema1"
4412
+ }
4413
+ },
4414
+ {
4415
+ "type": "object",
4416
+ "propertyNames": {
4417
+ "type": "string"
4418
+ },
4419
+ "additionalProperties": {
4420
+ "$ref": "#/$defs/sharedSchema1"
4421
+ }
4422
+ }
4423
+ ]
4424
+ }
4425
+ },
4426
+ "x-roll-relay-protocol-version": "1.3",
4427
+ "x-roll-message-types": [
4428
+ "device.connect",
4429
+ "runtime.request",
4430
+ "runtime.response",
4431
+ "runtime.event",
4432
+ "runtime.ack",
4433
+ "runtime.gap",
4434
+ "runtime.encrypted",
4435
+ "interaction.request",
4436
+ "interaction.resolved",
4437
+ "interaction.cancelled"
4438
+ ],
4439
+ "x-roll-request-methods": [
4440
+ "initialize",
4441
+ "thread.list",
4442
+ "thread.create",
4443
+ "thread.open",
4444
+ "thread.snapshot",
4445
+ "thread.rename",
4446
+ "thread.delete",
4447
+ "thread.detach",
4448
+ "thread.capabilities",
4449
+ "turn.start",
4450
+ "turn.cancel",
4451
+ "operation.get",
4452
+ "interaction.candidate",
4453
+ "operation.result.get"
4454
+ ],
4455
+ "x-roll-request-method-dispositions": {
4456
+ "initialize": "local-only",
4457
+ "thread.list": "query",
4458
+ "thread.create": "mutation",
4459
+ "thread.open": "query",
4460
+ "thread.snapshot": "query",
4461
+ "thread.rename": "mutation",
4462
+ "thread.delete": "mutation",
4463
+ "thread.detach": "mutation",
4464
+ "thread.capabilities": "query",
4465
+ "turn.start": "mutation",
4466
+ "turn.cancel": "mutation",
4467
+ "operation.get": "query",
4468
+ "interaction.candidate": "mutation",
4469
+ "operation.result.get": "query"
4470
+ },
4471
+ "x-roll-mutation-methods": [
4472
+ "thread.create",
4473
+ "thread.rename",
4474
+ "thread.delete",
4475
+ "thread.detach",
4476
+ "turn.start",
4477
+ "turn.cancel",
4478
+ "interaction.candidate"
4479
+ ],
4480
+ "x-roll-relay-error-retryability": {
4481
+ "RELAY_PROTOCOL_VERSION_UNSUPPORTED": false,
4482
+ "RELAY_INVALID_FRAME": false,
4483
+ "INVALID_PARAMS": false,
4484
+ "RELAY_REQUEST_ID_CONFLICT": false,
4485
+ "WORKSPACE_NOT_FOUND": false,
4486
+ "RELAY_ENCRYPTION_REQUIRED": false,
4487
+ "ENCRYPTED_PAYLOAD_INVALID": false,
4488
+ "LocalApprovalDeniedError": false,
4489
+ "LocalConfirmationRequiredError": false,
4490
+ "COMPANION_ERROR": false
4491
+ },
4492
+ "x-roll-request-method-schemas": {
4493
+ "initialize": {
4494
+ "params": {
4495
+ "$ref": "#/$defs/initializeParams"
4496
+ },
4497
+ "result": {
4498
+ "$ref": "#/$defs/initializeResult"
4499
+ }
4500
+ },
4501
+ "thread.list": {
4502
+ "params": {
4503
+ "$ref": "#/$defs/threadListParams"
4504
+ },
4505
+ "result": {
4506
+ "$ref": "#/$defs/threadListResult"
4507
+ }
4508
+ },
4509
+ "thread.create": {
4510
+ "params": {
4511
+ "$ref": "#/$defs/threadCreateParams"
4512
+ },
4513
+ "result": {
4514
+ "$ref": "#/$defs/threadCreateResult"
4515
+ }
4516
+ },
4517
+ "thread.open": {
4518
+ "params": {
4519
+ "$ref": "#/$defs/threadOpenParams"
4520
+ },
4521
+ "result": {
4522
+ "$ref": "#/$defs/threadOpenResult"
4523
+ }
4524
+ },
4525
+ "thread.snapshot": {
4526
+ "params": {
4527
+ "$ref": "#/$defs/threadSnapshotParams"
4528
+ },
4529
+ "result": {
4530
+ "$ref": "#/$defs/threadSnapshotResult"
4531
+ }
4532
+ },
4533
+ "thread.rename": {
4534
+ "params": {
4535
+ "$ref": "#/$defs/threadRenameParams"
4536
+ },
4537
+ "result": {
4538
+ "$ref": "#/$defs/threadRenameResult"
4539
+ }
4540
+ },
4541
+ "thread.delete": {
4542
+ "params": {
4543
+ "$ref": "#/$defs/threadDeleteParams"
4544
+ },
4545
+ "result": {
4546
+ "$ref": "#/$defs/threadDeleteResult"
4547
+ }
4548
+ },
4549
+ "thread.detach": {
4550
+ "params": {
4551
+ "$ref": "#/$defs/threadDetachParams"
4552
+ },
4553
+ "result": {
4554
+ "$ref": "#/$defs/threadDetachResult"
4555
+ }
4556
+ },
4557
+ "thread.capabilities": {
4558
+ "params": {
4559
+ "$ref": "#/$defs/threadCapabilitiesParams"
4560
+ },
4561
+ "result": {
4562
+ "$ref": "#/$defs/threadCapabilitiesResult"
4563
+ }
4564
+ },
4565
+ "turn.start": {
4566
+ "params": {
4567
+ "$ref": "#/$defs/turnStartParams"
4568
+ },
4569
+ "result": {
4570
+ "$ref": "#/$defs/turnStartResult"
4571
+ }
4572
+ },
4573
+ "turn.cancel": {
4574
+ "params": {
4575
+ "$ref": "#/$defs/turnCancelParams"
4576
+ },
4577
+ "result": {
4578
+ "$ref": "#/$defs/turnCancelResult"
4579
+ }
4580
+ },
4581
+ "operation.get": {
4582
+ "params": {
4583
+ "$ref": "#/$defs/operationGetParams"
4584
+ },
4585
+ "result": {
4586
+ "$ref": "#/$defs/operationGetResult"
4587
+ }
4588
+ },
4589
+ "interaction.candidate": {
4590
+ "params": {
4591
+ "$ref": "#/$defs/interactionCandidateParams"
4592
+ },
4593
+ "result": {
4594
+ "$ref": "#/$defs/interactionCandidateResult"
4595
+ }
4596
+ },
4597
+ "operation.result.get": {
4598
+ "params": {
4599
+ "$ref": "#/$defs/operationResultGetParams"
4600
+ },
4601
+ "result": {
4602
+ "$ref": "#/$defs/operationResultGetResult"
4603
+ }
4604
+ }
4605
+ }
4606
+ }