@mhome/conversation-protocol 3.12.1 → 3.13.1

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 (30) hide show
  1. package/README.md +44 -0
  2. package/fixtures/talk/audio-transcribe.request.json +9 -0
  3. package/fixtures/talk/audio-transcribe.response.json +8 -0
  4. package/fixtures/talk/audio-upload-prepare.request.json +11 -0
  5. package/fixtures/talk/audio-upload-prepare.response.json +12 -0
  6. package/fixtures/talk/changed.event.json +9 -0
  7. package/fixtures/talk/interaction-answer.request.json +13 -0
  8. package/fixtures/talk/interaction-answer.response.json +8 -0
  9. package/fixtures/talk/media-resolve.request.json +8 -0
  10. package/fixtures/talk/media-resolve.response.json +22 -0
  11. package/fixtures/talk/reply-read.request.json +12 -0
  12. package/fixtures/talk/reply-read.response.json +15 -0
  13. package/fixtures/talk/request-cancel.request.json +8 -0
  14. package/fixtures/talk/request-cancel.response.json +9 -0
  15. package/fixtures/talk/request-get.request.json +8 -0
  16. package/fixtures/talk/request-get.response.json +34 -0
  17. package/fixtures/talk/speech-prepare.request.json +12 -0
  18. package/fixtures/talk/speech-prepare.response.json +9 -0
  19. package/fixtures/talk/turn-submit.request.json +10 -0
  20. package/fixtures/talk/turn-submit.response.json +9 -0
  21. package/fixtures/talk/view-agent_failed.response.json +34 -0
  22. package/fixtures/talk/view-completed.response.json +34 -0
  23. package/fixtures/talk/view-get.request.json +5 -0
  24. package/fixtures/talk/view-get.response.json +45 -0
  25. package/fixtures/talk/view-interrupted.response.json +34 -0
  26. package/fixtures/talk/view-system_failed.response.json +34 -0
  27. package/manifest/targets.v1.json +23 -2
  28. package/package.json +1 -1
  29. package/protocol.json +3 -2
  30. package/schema/pod-talk.v1.schema.json +1689 -0
@@ -0,0 +1,1689 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:mhome:conversation-api:pod-talk:v1",
4
+ "title": "Pod Talk bounded presentation frames",
5
+ "description": "String maxima are additional guards. Implementations enforce UTF-8 byte budgets and the final escaped MWS envelope: 65536 bytes, changed 2048 bytes. Audio travels over binary HTTP only.",
6
+ "oneOf": [
7
+ {
8
+ "type": "object",
9
+ "additionalProperties": false,
10
+ "properties": {
11
+ "target": {
12
+ "const": "/pod/talk/view/get"
13
+ },
14
+ "direction": {
15
+ "const": "request"
16
+ },
17
+ "body": {
18
+ "$ref": "#/$defs/view_get_input"
19
+ }
20
+ },
21
+ "required": [
22
+ "target",
23
+ "direction",
24
+ "body"
25
+ ]
26
+ },
27
+ {
28
+ "type": "object",
29
+ "additionalProperties": false,
30
+ "properties": {
31
+ "target": {
32
+ "const": "/pod/talk/view/get"
33
+ },
34
+ "direction": {
35
+ "const": "response"
36
+ },
37
+ "body": {
38
+ "$ref": "#/$defs/view"
39
+ }
40
+ },
41
+ "required": [
42
+ "target",
43
+ "direction",
44
+ "body"
45
+ ]
46
+ },
47
+ {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "properties": {
51
+ "target": {
52
+ "const": "/pod/talk/turn/submit"
53
+ },
54
+ "direction": {
55
+ "const": "request"
56
+ },
57
+ "body": {
58
+ "$ref": "#/$defs/turn_submit_input"
59
+ }
60
+ },
61
+ "required": [
62
+ "target",
63
+ "direction",
64
+ "body"
65
+ ]
66
+ },
67
+ {
68
+ "type": "object",
69
+ "additionalProperties": false,
70
+ "properties": {
71
+ "target": {
72
+ "const": "/pod/talk/turn/submit"
73
+ },
74
+ "direction": {
75
+ "const": "response"
76
+ },
77
+ "body": {
78
+ "$ref": "#/$defs/receipt"
79
+ }
80
+ },
81
+ "required": [
82
+ "target",
83
+ "direction",
84
+ "body"
85
+ ]
86
+ },
87
+ {
88
+ "type": "object",
89
+ "additionalProperties": false,
90
+ "properties": {
91
+ "target": {
92
+ "const": "/pod/talk/request/get"
93
+ },
94
+ "direction": {
95
+ "const": "request"
96
+ },
97
+ "body": {
98
+ "$ref": "#/$defs/request_get_input"
99
+ }
100
+ },
101
+ "required": [
102
+ "target",
103
+ "direction",
104
+ "body"
105
+ ]
106
+ },
107
+ {
108
+ "type": "object",
109
+ "additionalProperties": false,
110
+ "properties": {
111
+ "target": {
112
+ "const": "/pod/talk/request/get"
113
+ },
114
+ "direction": {
115
+ "const": "response"
116
+ },
117
+ "body": {
118
+ "$ref": "#/$defs/result"
119
+ }
120
+ },
121
+ "required": [
122
+ "target",
123
+ "direction",
124
+ "body"
125
+ ]
126
+ },
127
+ {
128
+ "type": "object",
129
+ "additionalProperties": false,
130
+ "properties": {
131
+ "target": {
132
+ "const": "/pod/talk/request/cancel"
133
+ },
134
+ "direction": {
135
+ "const": "request"
136
+ },
137
+ "body": {
138
+ "$ref": "#/$defs/request_cancel_input"
139
+ }
140
+ },
141
+ "required": [
142
+ "target",
143
+ "direction",
144
+ "body"
145
+ ]
146
+ },
147
+ {
148
+ "type": "object",
149
+ "additionalProperties": false,
150
+ "properties": {
151
+ "target": {
152
+ "const": "/pod/talk/request/cancel"
153
+ },
154
+ "direction": {
155
+ "const": "response"
156
+ },
157
+ "body": {
158
+ "$ref": "#/$defs/cancel"
159
+ }
160
+ },
161
+ "required": [
162
+ "target",
163
+ "direction",
164
+ "body"
165
+ ]
166
+ },
167
+ {
168
+ "type": "object",
169
+ "additionalProperties": false,
170
+ "properties": {
171
+ "target": {
172
+ "const": "/pod/talk/reply/read"
173
+ },
174
+ "direction": {
175
+ "const": "request"
176
+ },
177
+ "body": {
178
+ "$ref": "#/$defs/reply_read_input"
179
+ }
180
+ },
181
+ "required": [
182
+ "target",
183
+ "direction",
184
+ "body"
185
+ ]
186
+ },
187
+ {
188
+ "type": "object",
189
+ "additionalProperties": false,
190
+ "properties": {
191
+ "target": {
192
+ "const": "/pod/talk/reply/read"
193
+ },
194
+ "direction": {
195
+ "const": "response"
196
+ },
197
+ "body": {
198
+ "$ref": "#/$defs/reply"
199
+ }
200
+ },
201
+ "required": [
202
+ "target",
203
+ "direction",
204
+ "body"
205
+ ]
206
+ },
207
+ {
208
+ "type": "object",
209
+ "additionalProperties": false,
210
+ "properties": {
211
+ "target": {
212
+ "const": "/pod/talk/interaction/answer"
213
+ },
214
+ "direction": {
215
+ "const": "request"
216
+ },
217
+ "body": {
218
+ "$ref": "#/$defs/interaction_answer_input"
219
+ }
220
+ },
221
+ "required": [
222
+ "target",
223
+ "direction",
224
+ "body"
225
+ ]
226
+ },
227
+ {
228
+ "type": "object",
229
+ "additionalProperties": false,
230
+ "properties": {
231
+ "target": {
232
+ "const": "/pod/talk/interaction/answer"
233
+ },
234
+ "direction": {
235
+ "const": "response"
236
+ },
237
+ "body": {
238
+ "$ref": "#/$defs/answer"
239
+ }
240
+ },
241
+ "required": [
242
+ "target",
243
+ "direction",
244
+ "body"
245
+ ]
246
+ },
247
+ {
248
+ "type": "object",
249
+ "additionalProperties": false,
250
+ "properties": {
251
+ "target": {
252
+ "const": "/pod/talk/audio/upload/prepare"
253
+ },
254
+ "direction": {
255
+ "const": "request"
256
+ },
257
+ "body": {
258
+ "$ref": "#/$defs/audio_upload_prepare_input"
259
+ }
260
+ },
261
+ "required": [
262
+ "target",
263
+ "direction",
264
+ "body"
265
+ ]
266
+ },
267
+ {
268
+ "type": "object",
269
+ "additionalProperties": false,
270
+ "properties": {
271
+ "target": {
272
+ "const": "/pod/talk/audio/upload/prepare"
273
+ },
274
+ "direction": {
275
+ "const": "response"
276
+ },
277
+ "body": {
278
+ "$ref": "#/$defs/upload"
279
+ }
280
+ },
281
+ "required": [
282
+ "target",
283
+ "direction",
284
+ "body"
285
+ ]
286
+ },
287
+ {
288
+ "type": "object",
289
+ "additionalProperties": false,
290
+ "properties": {
291
+ "target": {
292
+ "const": "/pod/talk/audio/transcribe"
293
+ },
294
+ "direction": {
295
+ "const": "request"
296
+ },
297
+ "body": {
298
+ "$ref": "#/$defs/audio_transcribe_input"
299
+ }
300
+ },
301
+ "required": [
302
+ "target",
303
+ "direction",
304
+ "body"
305
+ ]
306
+ },
307
+ {
308
+ "type": "object",
309
+ "additionalProperties": false,
310
+ "properties": {
311
+ "target": {
312
+ "const": "/pod/talk/audio/transcribe"
313
+ },
314
+ "direction": {
315
+ "const": "response"
316
+ },
317
+ "body": {
318
+ "$ref": "#/$defs/transcript"
319
+ }
320
+ },
321
+ "required": [
322
+ "target",
323
+ "direction",
324
+ "body"
325
+ ]
326
+ },
327
+ {
328
+ "type": "object",
329
+ "additionalProperties": false,
330
+ "properties": {
331
+ "target": {
332
+ "const": "/pod/talk/speech/prepare"
333
+ },
334
+ "direction": {
335
+ "const": "request"
336
+ },
337
+ "body": {
338
+ "$ref": "#/$defs/speech_prepare_input"
339
+ }
340
+ },
341
+ "required": [
342
+ "target",
343
+ "direction",
344
+ "body"
345
+ ]
346
+ },
347
+ {
348
+ "type": "object",
349
+ "additionalProperties": false,
350
+ "properties": {
351
+ "target": {
352
+ "const": "/pod/talk/speech/prepare"
353
+ },
354
+ "direction": {
355
+ "const": "response"
356
+ },
357
+ "body": {
358
+ "$ref": "#/$defs/speech"
359
+ }
360
+ },
361
+ "required": [
362
+ "target",
363
+ "direction",
364
+ "body"
365
+ ]
366
+ },
367
+ {
368
+ "type": "object",
369
+ "additionalProperties": false,
370
+ "properties": {
371
+ "target": {
372
+ "const": "/pod/talk/media/resolve"
373
+ },
374
+ "direction": {
375
+ "const": "request"
376
+ },
377
+ "body": {
378
+ "$ref": "#/$defs/media_resolve_input"
379
+ }
380
+ },
381
+ "required": [
382
+ "target",
383
+ "direction",
384
+ "body"
385
+ ]
386
+ },
387
+ {
388
+ "type": "object",
389
+ "additionalProperties": false,
390
+ "properties": {
391
+ "target": {
392
+ "const": "/pod/talk/media/resolve"
393
+ },
394
+ "direction": {
395
+ "const": "response"
396
+ },
397
+ "body": {
398
+ "$ref": "#/$defs/resolved"
399
+ }
400
+ },
401
+ "required": [
402
+ "target",
403
+ "direction",
404
+ "body"
405
+ ]
406
+ },
407
+ {
408
+ "type": "object",
409
+ "additionalProperties": false,
410
+ "properties": {
411
+ "target": {
412
+ "const": "/pod/talk/changed"
413
+ },
414
+ "direction": {
415
+ "const": "event"
416
+ },
417
+ "body": {
418
+ "$ref": "#/$defs/changed"
419
+ }
420
+ },
421
+ "required": [
422
+ "target",
423
+ "direction",
424
+ "body"
425
+ ]
426
+ }
427
+ ],
428
+ "$defs": {
429
+ "id": {
430
+ "type": "string",
431
+ "minLength": 1,
432
+ "maxLength": 256,
433
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
434
+ },
435
+ "context": {
436
+ "type": "object",
437
+ "additionalProperties": false,
438
+ "properties": {
439
+ "ownerId": {
440
+ "type": "string",
441
+ "minLength": 1,
442
+ "maxLength": 256,
443
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
444
+ },
445
+ "scopeId": {
446
+ "type": "string",
447
+ "minLength": 1,
448
+ "maxLength": 256,
449
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
450
+ },
451
+ "surfaceId": {
452
+ "type": "string",
453
+ "minLength": 1,
454
+ "maxLength": 256,
455
+ "pattern": "^cs1:(cp|cg):[A-Za-z0-9_-]+$"
456
+ },
457
+ "threadId": {
458
+ "anyOf": [
459
+ {
460
+ "type": "string",
461
+ "minLength": 1,
462
+ "maxLength": 256,
463
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
464
+ },
465
+ {
466
+ "type": "null"
467
+ }
468
+ ]
469
+ },
470
+ "controlVersion": {
471
+ "type": "string",
472
+ "pattern": "^[0-9]{20}:[0-9]{20}$"
473
+ },
474
+ "historyVersion": {
475
+ "type": "string",
476
+ "pattern": "^[0-9]{1,20}$"
477
+ }
478
+ },
479
+ "required": [
480
+ "ownerId",
481
+ "scopeId",
482
+ "surfaceId",
483
+ "threadId",
484
+ "controlVersion",
485
+ "historyVersion"
486
+ ]
487
+ },
488
+ "capabilities": {
489
+ "type": "object",
490
+ "additionalProperties": false,
491
+ "properties": {
492
+ "submit": {
493
+ "type": "boolean"
494
+ },
495
+ "answer": {
496
+ "type": "boolean"
497
+ },
498
+ "transcribe": {
499
+ "type": "boolean"
500
+ },
501
+ "speak": {
502
+ "type": "boolean"
503
+ },
504
+ "unavailableReason": {
505
+ "anyOf": [
506
+ {
507
+ "type": "string",
508
+ "minLength": 0,
509
+ "maxLength": 256
510
+ },
511
+ {
512
+ "type": "null"
513
+ }
514
+ ]
515
+ }
516
+ },
517
+ "required": [
518
+ "submit",
519
+ "answer",
520
+ "transcribe",
521
+ "speak",
522
+ "unavailableReason"
523
+ ]
524
+ },
525
+ "pending": {
526
+ "type": "object",
527
+ "additionalProperties": false,
528
+ "properties": {
529
+ "threadId": {
530
+ "type": "string",
531
+ "minLength": 1,
532
+ "maxLength": 256,
533
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
534
+ },
535
+ "requestId": {
536
+ "type": "string",
537
+ "minLength": 1,
538
+ "maxLength": 256,
539
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
540
+ },
541
+ "batchId": {
542
+ "type": "string",
543
+ "minLength": 1,
544
+ "maxLength": 256,
545
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
546
+ },
547
+ "text": {
548
+ "type": "string",
549
+ "minLength": 0,
550
+ "maxLength": 4096
551
+ },
552
+ "actionCount": {
553
+ "type": "integer",
554
+ "minimum": 0,
555
+ "maximum": 4294967295
556
+ },
557
+ "complete": {
558
+ "type": "boolean"
559
+ },
560
+ "canApprove": {
561
+ "type": "boolean"
562
+ }
563
+ },
564
+ "required": [
565
+ "threadId",
566
+ "requestId",
567
+ "batchId",
568
+ "text",
569
+ "actionCount",
570
+ "complete",
571
+ "canApprove"
572
+ ]
573
+ },
574
+ "reply": {
575
+ "type": "object",
576
+ "additionalProperties": false,
577
+ "properties": {
578
+ "threadId": {
579
+ "type": "string",
580
+ "minLength": 1,
581
+ "maxLength": 256,
582
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
583
+ },
584
+ "requestId": {
585
+ "type": "string",
586
+ "minLength": 1,
587
+ "maxLength": 256,
588
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
589
+ },
590
+ "messageId": {
591
+ "type": "string",
592
+ "minLength": 1,
593
+ "maxLength": 256,
594
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
595
+ },
596
+ "contentRevision": {
597
+ "type": "string",
598
+ "minLength": 1,
599
+ "maxLength": 256,
600
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
601
+ },
602
+ "offset": {
603
+ "type": "integer",
604
+ "minimum": 0,
605
+ "maximum": 4294967295
606
+ },
607
+ "nextOffset": {
608
+ "anyOf": [
609
+ {
610
+ "type": "integer",
611
+ "minimum": 0,
612
+ "maximum": 4294967295
613
+ },
614
+ {
615
+ "type": "null"
616
+ }
617
+ ]
618
+ },
619
+ "previousOffset": {
620
+ "anyOf": [
621
+ {
622
+ "type": "integer",
623
+ "minimum": 0,
624
+ "maximum": 4294967295
625
+ },
626
+ {
627
+ "type": "null"
628
+ }
629
+ ]
630
+ },
631
+ "text": {
632
+ "type": "string",
633
+ "minLength": 0,
634
+ "maxLength": 16384
635
+ },
636
+ "hasUnsupportedParts": {
637
+ "type": "boolean"
638
+ }
639
+ },
640
+ "required": [
641
+ "threadId",
642
+ "requestId",
643
+ "messageId",
644
+ "contentRevision",
645
+ "offset",
646
+ "nextOffset",
647
+ "previousOffset",
648
+ "text",
649
+ "hasUnsupportedParts"
650
+ ]
651
+ },
652
+ "outcome": {
653
+ "type": "object",
654
+ "additionalProperties": false,
655
+ "properties": {
656
+ "status": {
657
+ "enum": [
658
+ "completed",
659
+ "interaction_required",
660
+ "interrupted",
661
+ "agent_failed",
662
+ "system_failed"
663
+ ]
664
+ },
665
+ "errorCode": {
666
+ "anyOf": [
667
+ {
668
+ "type": "string",
669
+ "minLength": 0,
670
+ "maxLength": 64
671
+ },
672
+ {
673
+ "type": "null"
674
+ }
675
+ ]
676
+ },
677
+ "message": {
678
+ "anyOf": [
679
+ {
680
+ "type": "string",
681
+ "minLength": 0,
682
+ "maxLength": 1024
683
+ },
684
+ {
685
+ "type": "null"
686
+ }
687
+ ]
688
+ }
689
+ },
690
+ "required": [
691
+ "status",
692
+ "errorCode",
693
+ "message"
694
+ ]
695
+ },
696
+ "view": {
697
+ "type": "object",
698
+ "additionalProperties": false,
699
+ "properties": {
700
+ "context": {
701
+ "$ref": "#/$defs/context"
702
+ },
703
+ "capabilities": {
704
+ "$ref": "#/$defs/capabilities"
705
+ },
706
+ "phase": {
707
+ "enum": [
708
+ "unknown",
709
+ "idle",
710
+ "queued",
711
+ "running",
712
+ "pending",
713
+ "settled"
714
+ ]
715
+ },
716
+ "activeRequestId": {
717
+ "anyOf": [
718
+ {
719
+ "type": "string",
720
+ "minLength": 1,
721
+ "maxLength": 256,
722
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
723
+ },
724
+ {
725
+ "type": "null"
726
+ }
727
+ ]
728
+ },
729
+ "queueCount": {
730
+ "type": "integer",
731
+ "minimum": 0,
732
+ "maximum": 4294967295
733
+ },
734
+ "pending": {
735
+ "anyOf": [
736
+ {
737
+ "$ref": "#/$defs/pending"
738
+ },
739
+ {
740
+ "type": "null"
741
+ }
742
+ ]
743
+ },
744
+ "reply": {
745
+ "anyOf": [
746
+ {
747
+ "$ref": "#/$defs/reply"
748
+ },
749
+ {
750
+ "type": "null"
751
+ }
752
+ ]
753
+ },
754
+ "settlement": {
755
+ "anyOf": [
756
+ {
757
+ "$ref": "#/$defs/settlement"
758
+ },
759
+ {
760
+ "type": "null"
761
+ }
762
+ ]
763
+ }
764
+ },
765
+ "required": [
766
+ "context",
767
+ "capabilities",
768
+ "phase",
769
+ "activeRequestId",
770
+ "queueCount",
771
+ "pending",
772
+ "reply",
773
+ "settlement"
774
+ ],
775
+ "allOf": [
776
+ {
777
+ "if": {
778
+ "properties": {
779
+ "phase": {
780
+ "const": "settled"
781
+ }
782
+ }
783
+ },
784
+ "then": {
785
+ "properties": {
786
+ "settlement": {
787
+ "$ref": "#/$defs/settlement"
788
+ }
789
+ }
790
+ },
791
+ "else": {
792
+ "properties": {
793
+ "settlement": {
794
+ "type": "null"
795
+ }
796
+ }
797
+ }
798
+ }
799
+ ]
800
+ },
801
+ "result": {
802
+ "type": "object",
803
+ "additionalProperties": false,
804
+ "properties": {
805
+ "context": {
806
+ "$ref": "#/$defs/context"
807
+ },
808
+ "requestId": {
809
+ "type": "string",
810
+ "minLength": 1,
811
+ "maxLength": 256,
812
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
813
+ },
814
+ "admission": {
815
+ "anyOf": [
816
+ {
817
+ "enum": [
818
+ "waiting_handoff",
819
+ "bound",
820
+ "cancelled",
821
+ "failed"
822
+ ]
823
+ },
824
+ {
825
+ "type": "null"
826
+ }
827
+ ]
828
+ },
829
+ "phase": {
830
+ "enum": [
831
+ "unknown",
832
+ "idle",
833
+ "queued",
834
+ "running",
835
+ "pending",
836
+ "settled"
837
+ ]
838
+ },
839
+ "outcome": {
840
+ "anyOf": [
841
+ {
842
+ "$ref": "#/$defs/outcome"
843
+ },
844
+ {
845
+ "type": "null"
846
+ }
847
+ ]
848
+ },
849
+ "pending": {
850
+ "anyOf": [
851
+ {
852
+ "$ref": "#/$defs/pending"
853
+ },
854
+ {
855
+ "type": "null"
856
+ }
857
+ ]
858
+ },
859
+ "reply": {
860
+ "anyOf": [
861
+ {
862
+ "$ref": "#/$defs/reply"
863
+ },
864
+ {
865
+ "type": "null"
866
+ }
867
+ ]
868
+ }
869
+ },
870
+ "required": [
871
+ "context",
872
+ "requestId",
873
+ "admission",
874
+ "phase",
875
+ "outcome",
876
+ "pending",
877
+ "reply"
878
+ ]
879
+ },
880
+ "receipt": {
881
+ "type": "object",
882
+ "additionalProperties": false,
883
+ "properties": {
884
+ "requestId": {
885
+ "type": "string",
886
+ "minLength": 1,
887
+ "maxLength": 256,
888
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
889
+ },
890
+ "threadId": {
891
+ "anyOf": [
892
+ {
893
+ "type": "string",
894
+ "minLength": 1,
895
+ "maxLength": 256,
896
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
897
+ },
898
+ {
899
+ "type": "null"
900
+ }
901
+ ]
902
+ },
903
+ "disposition": {
904
+ "enum": [
905
+ "scheduled",
906
+ "queued",
907
+ "duplicate",
908
+ "blocked_pending_interaction"
909
+ ]
910
+ }
911
+ },
912
+ "required": [
913
+ "requestId",
914
+ "threadId",
915
+ "disposition"
916
+ ]
917
+ },
918
+ "cancel": {
919
+ "type": "object",
920
+ "additionalProperties": false,
921
+ "required": [
922
+ "requestId",
923
+ "phase",
924
+ "outcome"
925
+ ],
926
+ "properties": {
927
+ "requestId": {
928
+ "$ref": "#/$defs/id"
929
+ },
930
+ "phase": {
931
+ "enum": [
932
+ "admission_waiting",
933
+ "waiting",
934
+ "running"
935
+ ]
936
+ },
937
+ "outcome": {
938
+ "enum": [
939
+ "cancelled",
940
+ "cancelling"
941
+ ]
942
+ },
943
+ "queueVersion": {
944
+ "type": "integer",
945
+ "minimum": 0
946
+ },
947
+ "admissionVersion": {
948
+ "type": "integer",
949
+ "minimum": 0
950
+ }
951
+ }
952
+ },
953
+ "changed": {
954
+ "type": "object",
955
+ "additionalProperties": false,
956
+ "properties": {
957
+ "ownerId": {
958
+ "type": "string",
959
+ "minLength": 1,
960
+ "maxLength": 256,
961
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
962
+ },
963
+ "scopeId": {
964
+ "type": "string",
965
+ "minLength": 1,
966
+ "maxLength": 256,
967
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
968
+ },
969
+ "surfaceId": {
970
+ "type": "string",
971
+ "minLength": 1,
972
+ "maxLength": 256,
973
+ "pattern": "^cs1:(cp|cg):[A-Za-z0-9_-]+$"
974
+ }
975
+ },
976
+ "required": [
977
+ "ownerId",
978
+ "scopeId",
979
+ "surfaceId"
980
+ ]
981
+ },
982
+ "answer": {
983
+ "type": "object",
984
+ "additionalProperties": false,
985
+ "properties": {
986
+ "operationId": {
987
+ "type": "string",
988
+ "minLength": 1,
989
+ "maxLength": 256,
990
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
991
+ },
992
+ "disposition": {
993
+ "enum": [
994
+ "accepted",
995
+ "clarify",
996
+ "resolved",
997
+ "expired",
998
+ "unsupported"
999
+ ]
1000
+ }
1001
+ },
1002
+ "required": [
1003
+ "operationId",
1004
+ "disposition"
1005
+ ]
1006
+ },
1007
+ "upload": {
1008
+ "type": "object",
1009
+ "additionalProperties": false,
1010
+ "required": [
1011
+ "uploadId",
1012
+ "url",
1013
+ "headers",
1014
+ "expiresAtUnixMs"
1015
+ ],
1016
+ "properties": {
1017
+ "uploadId": {
1018
+ "type": "string",
1019
+ "minLength": 1
1020
+ },
1021
+ "url": {
1022
+ "type": "string",
1023
+ "pattern": "^https?://",
1024
+ "maxLength": 4096
1025
+ },
1026
+ "headers": {
1027
+ "type": "object",
1028
+ "additionalProperties": {
1029
+ "type": "string",
1030
+ "maxLength": 512
1031
+ },
1032
+ "maxProperties": 8
1033
+ },
1034
+ "expiresAtUnixMs": {
1035
+ "type": "integer",
1036
+ "minimum": 1,
1037
+ "maximum": 9007199254740991
1038
+ },
1039
+ "hostIdentity": {
1040
+ "type": "object",
1041
+ "additionalProperties": false,
1042
+ "required": [
1043
+ "hostId",
1044
+ "publicKey"
1045
+ ],
1046
+ "properties": {
1047
+ "hostId": {
1048
+ "type": "string",
1049
+ "minLength": 1
1050
+ },
1051
+ "publicKey": {
1052
+ "type": "object",
1053
+ "additionalProperties": false,
1054
+ "required": [
1055
+ "x",
1056
+ "y"
1057
+ ],
1058
+ "properties": {
1059
+ "x": {
1060
+ "type": "string",
1061
+ "pattern": "^[A-Za-z0-9_-]{43}$"
1062
+ },
1063
+ "y": {
1064
+ "type": "string",
1065
+ "pattern": "^[A-Za-z0-9_-]{43}$"
1066
+ }
1067
+ }
1068
+ }
1069
+ }
1070
+ }
1071
+ }
1072
+ },
1073
+ "descriptor": {
1074
+ "type": "object",
1075
+ "additionalProperties": false,
1076
+ "required": [
1077
+ "uri",
1078
+ "kind",
1079
+ "mimeType",
1080
+ "sizeBytes",
1081
+ "delivery"
1082
+ ],
1083
+ "properties": {
1084
+ "uri": {
1085
+ "type": "string",
1086
+ "pattern": "^meow-artifact://v3/",
1087
+ "maxLength": 2048
1088
+ },
1089
+ "kind": {
1090
+ "const": "AUDIO"
1091
+ },
1092
+ "mimeType": {
1093
+ "const": "audio/wav"
1094
+ },
1095
+ "sizeBytes": {
1096
+ "type": "integer",
1097
+ "minimum": 44,
1098
+ "maximum": 1536044
1099
+ },
1100
+ "width": {
1101
+ "type": "integer",
1102
+ "minimum": 1,
1103
+ "maximum": 2147483647
1104
+ },
1105
+ "height": {
1106
+ "type": "integer",
1107
+ "minimum": 1,
1108
+ "maximum": 2147483647
1109
+ },
1110
+ "durationMillis": {
1111
+ "type": "integer",
1112
+ "minimum": 1,
1113
+ "maximum": 9007199254740991
1114
+ },
1115
+ "delivery": {
1116
+ "type": "object",
1117
+ "additionalProperties": false,
1118
+ "properties": {
1119
+ "type": {
1120
+ "const": "SIGNED_URL"
1121
+ },
1122
+ "url": {
1123
+ "type": "string",
1124
+ "minLength": 1,
1125
+ "maxLength": 4096,
1126
+ "pattern": "^https?://"
1127
+ },
1128
+ "expiresAtUnixMs": {
1129
+ "type": "integer",
1130
+ "minimum": 0,
1131
+ "maximum": 9007199254740991
1132
+ }
1133
+ },
1134
+ "required": [
1135
+ "type",
1136
+ "url",
1137
+ "expiresAtUnixMs"
1138
+ ]
1139
+ },
1140
+ "hostIdentity": {
1141
+ "type": "object",
1142
+ "additionalProperties": false,
1143
+ "required": [
1144
+ "hostId",
1145
+ "publicKey"
1146
+ ],
1147
+ "properties": {
1148
+ "hostId": {
1149
+ "type": "string",
1150
+ "minLength": 1
1151
+ },
1152
+ "publicKey": {
1153
+ "type": "object",
1154
+ "additionalProperties": false,
1155
+ "required": [
1156
+ "x",
1157
+ "y"
1158
+ ],
1159
+ "properties": {
1160
+ "x": {
1161
+ "type": "string",
1162
+ "pattern": "^[A-Za-z0-9_-]{43}$"
1163
+ },
1164
+ "y": {
1165
+ "type": "string",
1166
+ "pattern": "^[A-Za-z0-9_-]{43}$"
1167
+ }
1168
+ }
1169
+ }
1170
+ }
1171
+ },
1172
+ "expiresAtUnixMs": {
1173
+ "type": "integer",
1174
+ "minimum": 1
1175
+ },
1176
+ "identity": {
1177
+ "enum": [
1178
+ "auto",
1179
+ "man"
1180
+ ],
1181
+ "default": "auto"
1182
+ },
1183
+ "retention": {
1184
+ "enum": [
1185
+ "std",
1186
+ "tmp"
1187
+ ],
1188
+ "default": "std"
1189
+ }
1190
+ },
1191
+ "allOf": [
1192
+ {
1193
+ "if": {
1194
+ "properties": {
1195
+ "retention": {
1196
+ "const": "tmp"
1197
+ }
1198
+ },
1199
+ "required": [
1200
+ "retention"
1201
+ ]
1202
+ },
1203
+ "then": {
1204
+ "properties": {
1205
+ "expiresAtUnixMs": {}
1206
+ },
1207
+ "required": [
1208
+ "expiresAtUnixMs"
1209
+ ]
1210
+ },
1211
+ "else": {
1212
+ "not": {
1213
+ "properties": {
1214
+ "expiresAtUnixMs": {}
1215
+ },
1216
+ "required": [
1217
+ "expiresAtUnixMs"
1218
+ ]
1219
+ }
1220
+ }
1221
+ }
1222
+ ]
1223
+ },
1224
+ "resolved": {
1225
+ "type": "object",
1226
+ "additionalProperties": false,
1227
+ "properties": {
1228
+ "descriptor": {
1229
+ "$ref": "#/$defs/descriptor"
1230
+ },
1231
+ "sha256": {
1232
+ "type": "string",
1233
+ "pattern": "^[a-f0-9]{64}$"
1234
+ }
1235
+ },
1236
+ "required": [
1237
+ "descriptor",
1238
+ "sha256"
1239
+ ]
1240
+ },
1241
+ "transcript": {
1242
+ "type": "object",
1243
+ "additionalProperties": false,
1244
+ "properties": {
1245
+ "operationId": {
1246
+ "type": "string",
1247
+ "minLength": 1,
1248
+ "maxLength": 256,
1249
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1250
+ },
1251
+ "text": {
1252
+ "type": "string",
1253
+ "minLength": 1,
1254
+ "maxLength": 4096,
1255
+ "not": {
1256
+ "pattern": "\\u0000"
1257
+ }
1258
+ }
1259
+ },
1260
+ "required": [
1261
+ "operationId",
1262
+ "text"
1263
+ ]
1264
+ },
1265
+ "speech": {
1266
+ "type": "object",
1267
+ "additionalProperties": false,
1268
+ "properties": {
1269
+ "operationId": {
1270
+ "type": "string",
1271
+ "minLength": 1,
1272
+ "maxLength": 256,
1273
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1274
+ },
1275
+ "uri": {
1276
+ "anyOf": [
1277
+ {
1278
+ "type": "string",
1279
+ "minLength": 1,
1280
+ "maxLength": 4096,
1281
+ "pattern": "^meow-artifact://v3/"
1282
+ },
1283
+ {
1284
+ "type": "null"
1285
+ }
1286
+ ]
1287
+ },
1288
+ "textOnlyReason": {
1289
+ "anyOf": [
1290
+ {
1291
+ "type": "string",
1292
+ "minLength": 0,
1293
+ "maxLength": 256
1294
+ },
1295
+ {
1296
+ "type": "null"
1297
+ }
1298
+ ]
1299
+ }
1300
+ },
1301
+ "required": [
1302
+ "operationId",
1303
+ "uri",
1304
+ "textOnlyReason"
1305
+ ]
1306
+ },
1307
+ "view_get_input": {
1308
+ "type": "object",
1309
+ "additionalProperties": false,
1310
+ "properties": {},
1311
+ "required": []
1312
+ },
1313
+ "turn_submit_input": {
1314
+ "type": "object",
1315
+ "additionalProperties": false,
1316
+ "properties": {
1317
+ "ownerId": {
1318
+ "type": "string",
1319
+ "minLength": 1,
1320
+ "maxLength": 256,
1321
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1322
+ },
1323
+ "requestId": {
1324
+ "type": "string",
1325
+ "minLength": 1,
1326
+ "maxLength": 256,
1327
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1328
+ },
1329
+ "text": {
1330
+ "type": "string",
1331
+ "minLength": 1,
1332
+ "maxLength": 4096,
1333
+ "not": {
1334
+ "pattern": "\\u0000"
1335
+ }
1336
+ },
1337
+ "occurredAtUnixMs": {
1338
+ "type": "integer",
1339
+ "minimum": 0,
1340
+ "maximum": 9007199254740991
1341
+ }
1342
+ },
1343
+ "required": [
1344
+ "ownerId",
1345
+ "requestId",
1346
+ "text",
1347
+ "occurredAtUnixMs"
1348
+ ]
1349
+ },
1350
+ "request_get_input": {
1351
+ "type": "object",
1352
+ "additionalProperties": false,
1353
+ "properties": {
1354
+ "ownerId": {
1355
+ "type": "string",
1356
+ "minLength": 1,
1357
+ "maxLength": 256,
1358
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1359
+ },
1360
+ "requestId": {
1361
+ "type": "string",
1362
+ "minLength": 1,
1363
+ "maxLength": 256,
1364
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1365
+ }
1366
+ },
1367
+ "required": [
1368
+ "ownerId",
1369
+ "requestId"
1370
+ ]
1371
+ },
1372
+ "request_cancel_input": {
1373
+ "type": "object",
1374
+ "additionalProperties": false,
1375
+ "properties": {
1376
+ "ownerId": {
1377
+ "type": "string",
1378
+ "minLength": 1,
1379
+ "maxLength": 256,
1380
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1381
+ },
1382
+ "requestId": {
1383
+ "type": "string",
1384
+ "minLength": 1,
1385
+ "maxLength": 256,
1386
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1387
+ },
1388
+ "threadId": {
1389
+ "anyOf": [
1390
+ {
1391
+ "type": "string",
1392
+ "minLength": 1,
1393
+ "maxLength": 256,
1394
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1395
+ },
1396
+ {
1397
+ "type": "null"
1398
+ }
1399
+ ]
1400
+ }
1401
+ },
1402
+ "required": [
1403
+ "ownerId",
1404
+ "requestId"
1405
+ ]
1406
+ },
1407
+ "reply_read_input": {
1408
+ "type": "object",
1409
+ "additionalProperties": false,
1410
+ "properties": {
1411
+ "ownerId": {
1412
+ "type": "string",
1413
+ "minLength": 1,
1414
+ "maxLength": 256,
1415
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1416
+ },
1417
+ "threadId": {
1418
+ "type": "string",
1419
+ "minLength": 1,
1420
+ "maxLength": 256,
1421
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1422
+ },
1423
+ "requestId": {
1424
+ "type": "string",
1425
+ "minLength": 1,
1426
+ "maxLength": 256,
1427
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1428
+ },
1429
+ "messageId": {
1430
+ "type": "string",
1431
+ "minLength": 1,
1432
+ "maxLength": 256,
1433
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1434
+ },
1435
+ "contentRevision": {
1436
+ "type": "string",
1437
+ "minLength": 1,
1438
+ "maxLength": 256,
1439
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1440
+ },
1441
+ "offset": {
1442
+ "type": "integer",
1443
+ "minimum": 0,
1444
+ "maximum": 4294967295
1445
+ }
1446
+ },
1447
+ "required": [
1448
+ "ownerId",
1449
+ "threadId",
1450
+ "requestId",
1451
+ "messageId",
1452
+ "contentRevision",
1453
+ "offset"
1454
+ ]
1455
+ },
1456
+ "interaction_answer_input": {
1457
+ "type": "object",
1458
+ "additionalProperties": false,
1459
+ "properties": {
1460
+ "ownerId": {
1461
+ "type": "string",
1462
+ "minLength": 1,
1463
+ "maxLength": 256,
1464
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1465
+ },
1466
+ "threadId": {
1467
+ "type": "string",
1468
+ "minLength": 1,
1469
+ "maxLength": 256,
1470
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1471
+ },
1472
+ "requestId": {
1473
+ "type": "string",
1474
+ "minLength": 1,
1475
+ "maxLength": 256,
1476
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1477
+ },
1478
+ "batchId": {
1479
+ "type": "string",
1480
+ "minLength": 1,
1481
+ "maxLength": 256,
1482
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1483
+ },
1484
+ "operationId": {
1485
+ "type": "string",
1486
+ "minLength": 1,
1487
+ "maxLength": 256,
1488
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1489
+ },
1490
+ "text": {
1491
+ "type": "string",
1492
+ "minLength": 1,
1493
+ "maxLength": 4096,
1494
+ "not": {
1495
+ "pattern": "\\u0000"
1496
+ }
1497
+ },
1498
+ "occurredAtUnixMs": {
1499
+ "type": "integer",
1500
+ "minimum": 0,
1501
+ "maximum": 9007199254740991
1502
+ }
1503
+ },
1504
+ "required": [
1505
+ "ownerId",
1506
+ "threadId",
1507
+ "requestId",
1508
+ "batchId",
1509
+ "operationId",
1510
+ "text",
1511
+ "occurredAtUnixMs"
1512
+ ]
1513
+ },
1514
+ "audio_upload_prepare_input": {
1515
+ "type": "object",
1516
+ "additionalProperties": false,
1517
+ "properties": {
1518
+ "ownerId": {
1519
+ "type": "string",
1520
+ "minLength": 1,
1521
+ "maxLength": 256,
1522
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1523
+ },
1524
+ "operationId": {
1525
+ "type": "string",
1526
+ "minLength": 1,
1527
+ "maxLength": 256,
1528
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1529
+ },
1530
+ "sizeBytes": {
1531
+ "type": "integer",
1532
+ "minimum": 9644,
1533
+ "maximum": 960044
1534
+ },
1535
+ "durationMs": {
1536
+ "type": "integer",
1537
+ "minimum": 300,
1538
+ "maximum": 30000
1539
+ },
1540
+ "sha256": {
1541
+ "type": "string",
1542
+ "pattern": "^[a-f0-9]{64}$"
1543
+ }
1544
+ },
1545
+ "required": [
1546
+ "ownerId",
1547
+ "operationId",
1548
+ "sizeBytes",
1549
+ "durationMs",
1550
+ "sha256"
1551
+ ]
1552
+ },
1553
+ "audio_transcribe_input": {
1554
+ "type": "object",
1555
+ "additionalProperties": false,
1556
+ "properties": {
1557
+ "ownerId": {
1558
+ "type": "string",
1559
+ "minLength": 1,
1560
+ "maxLength": 256,
1561
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1562
+ },
1563
+ "operationId": {
1564
+ "type": "string",
1565
+ "minLength": 1,
1566
+ "maxLength": 256,
1567
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1568
+ },
1569
+ "uri": {
1570
+ "type": "string",
1571
+ "minLength": 1,
1572
+ "maxLength": 4096
1573
+ }
1574
+ },
1575
+ "required": [
1576
+ "ownerId",
1577
+ "operationId",
1578
+ "uri"
1579
+ ]
1580
+ },
1581
+ "speech_prepare_input": {
1582
+ "type": "object",
1583
+ "additionalProperties": false,
1584
+ "properties": {
1585
+ "ownerId": {
1586
+ "type": "string",
1587
+ "minLength": 1,
1588
+ "maxLength": 256,
1589
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1590
+ },
1591
+ "threadId": {
1592
+ "type": "string",
1593
+ "minLength": 1,
1594
+ "maxLength": 256,
1595
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1596
+ },
1597
+ "requestId": {
1598
+ "type": "string",
1599
+ "minLength": 1,
1600
+ "maxLength": 256,
1601
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1602
+ },
1603
+ "messageId": {
1604
+ "type": "string",
1605
+ "minLength": 1,
1606
+ "maxLength": 256,
1607
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1608
+ },
1609
+ "contentRevision": {
1610
+ "type": "string",
1611
+ "minLength": 1,
1612
+ "maxLength": 256,
1613
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1614
+ },
1615
+ "operationId": {
1616
+ "type": "string",
1617
+ "minLength": 1,
1618
+ "maxLength": 256,
1619
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1620
+ }
1621
+ },
1622
+ "required": [
1623
+ "ownerId",
1624
+ "threadId",
1625
+ "requestId",
1626
+ "messageId",
1627
+ "contentRevision",
1628
+ "operationId"
1629
+ ]
1630
+ },
1631
+ "media_resolve_input": {
1632
+ "type": "object",
1633
+ "additionalProperties": false,
1634
+ "properties": {
1635
+ "ownerId": {
1636
+ "type": "string",
1637
+ "minLength": 1,
1638
+ "maxLength": 256,
1639
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1640
+ },
1641
+ "uri": {
1642
+ "type": "string",
1643
+ "minLength": 1,
1644
+ "maxLength": 4096
1645
+ }
1646
+ },
1647
+ "required": [
1648
+ "ownerId",
1649
+ "uri"
1650
+ ]
1651
+ },
1652
+ "settlement": {
1653
+ "type": "object",
1654
+ "additionalProperties": false,
1655
+ "properties": {
1656
+ "requestId": {
1657
+ "type": "string",
1658
+ "minLength": 1,
1659
+ "maxLength": 256,
1660
+ "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
1661
+ },
1662
+ "outcome": {
1663
+ "type": "object",
1664
+ "allOf": [
1665
+ {
1666
+ "$ref": "#/$defs/outcome"
1667
+ },
1668
+ {
1669
+ "properties": {
1670
+ "status": {
1671
+ "enum": [
1672
+ "completed",
1673
+ "interrupted",
1674
+ "agent_failed",
1675
+ "system_failed"
1676
+ ]
1677
+ }
1678
+ }
1679
+ }
1680
+ ]
1681
+ }
1682
+ },
1683
+ "required": [
1684
+ "requestId",
1685
+ "outcome"
1686
+ ]
1687
+ }
1688
+ }
1689
+ }