@hollis-labs/surface-genui 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1078 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/hollis-labs/substrate/genui/contract/1",
4
+ "title": "GenUI contract 1",
5
+ "$defs": {
6
+ "Subject": {
7
+ "type": "object",
8
+ "properties": {
9
+ "kind": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 128
13
+ },
14
+ "id": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 256
18
+ }
19
+ },
20
+ "required": [
21
+ "kind",
22
+ "id"
23
+ ],
24
+ "additionalProperties": false
25
+ },
26
+ "Basis": {
27
+ "type": "object",
28
+ "properties": {
29
+ "revision": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 128
33
+ },
34
+ "projectionRevision": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 128
38
+ }
39
+ },
40
+ "required": [
41
+ "revision"
42
+ ],
43
+ "additionalProperties": false
44
+ },
45
+ "Action": {
46
+ "type": "object",
47
+ "properties": {
48
+ "id": {
49
+ "type": "string",
50
+ "minLength": 8,
51
+ "maxLength": 256
52
+ },
53
+ "subject": {
54
+ "$ref": "#/$defs/Subject"
55
+ },
56
+ "risk": {
57
+ "enum": [
58
+ "low",
59
+ "medium",
60
+ "high"
61
+ ]
62
+ },
63
+ "basis": {
64
+ "$ref": "#/$defs/Basis"
65
+ },
66
+ "confirmation": {
67
+ "type": "string",
68
+ "minLength": 1,
69
+ "maxLength": 8192
70
+ }
71
+ },
72
+ "required": [
73
+ "id",
74
+ "subject",
75
+ "basis"
76
+ ],
77
+ "additionalProperties": false
78
+ },
79
+ "JSONValue": {
80
+ "oneOf": [
81
+ {
82
+ "type": "null"
83
+ },
84
+ {
85
+ "type": "boolean"
86
+ },
87
+ {
88
+ "type": "integer",
89
+ "minimum": -9007199254740991,
90
+ "maximum": 9007199254740991
91
+ },
92
+ {
93
+ "type": "string",
94
+ "maxLength": 16384
95
+ },
96
+ {
97
+ "type": "array",
98
+ "items": {
99
+ "$ref": "#/$defs/JSONValue"
100
+ },
101
+ "minItems": 0,
102
+ "maxItems": 256
103
+ },
104
+ {
105
+ "type": "object",
106
+ "maxProperties": 256,
107
+ "propertyNames": {
108
+ "maxLength": 256
109
+ },
110
+ "additionalProperties": {
111
+ "$ref": "#/$defs/JSONValue"
112
+ }
113
+ }
114
+ ]
115
+ },
116
+ "Input": {
117
+ "type": "object",
118
+ "maxProperties": 256,
119
+ "propertyNames": {
120
+ "maxLength": 256
121
+ },
122
+ "additionalProperties": {
123
+ "$ref": "#/$defs/JSONValue"
124
+ }
125
+ },
126
+ "CallArgs": {
127
+ "type": "object",
128
+ "properties": {
129
+ "genui_action": {
130
+ "$ref": "#/$defs/Action"
131
+ },
132
+ "input": {
133
+ "$ref": "#/$defs/Input"
134
+ }
135
+ },
136
+ "required": [
137
+ "genui_action",
138
+ "input"
139
+ ],
140
+ "additionalProperties": false
141
+ },
142
+ "FunctionCall": {
143
+ "type": "object",
144
+ "properties": {
145
+ "@call": {
146
+ "const": "genui_action"
147
+ },
148
+ "catalogId": {
149
+ "const": "urn:hollis-labs:genui:catalog:1"
150
+ },
151
+ "args": {
152
+ "$ref": "#/$defs/CallArgs"
153
+ }
154
+ },
155
+ "required": [
156
+ "@call",
157
+ "args"
158
+ ],
159
+ "additionalProperties": false
160
+ },
161
+ "Call": {
162
+ "type": "object",
163
+ "properties": {
164
+ "version": {
165
+ "const": "1.0"
166
+ },
167
+ "callAgentFunction": {
168
+ "type": "object",
169
+ "properties": {
170
+ "surfaceId": {
171
+ "type": "string",
172
+ "minLength": 1,
173
+ "maxLength": 256
174
+ },
175
+ "functionCallId": {
176
+ "type": "string",
177
+ "minLength": 1,
178
+ "maxLength": 256
179
+ },
180
+ "callFunction": {
181
+ "$ref": "#/$defs/FunctionCall"
182
+ }
183
+ },
184
+ "required": [
185
+ "surfaceId",
186
+ "functionCallId",
187
+ "callFunction"
188
+ ],
189
+ "additionalProperties": false
190
+ }
191
+ },
192
+ "required": [
193
+ "version",
194
+ "callAgentFunction"
195
+ ],
196
+ "additionalProperties": false
197
+ },
198
+ "Confirm": {
199
+ "type": "object",
200
+ "properties": {
201
+ "what": {
202
+ "type": "string",
203
+ "minLength": 1,
204
+ "maxLength": 4096
205
+ },
206
+ "scope": {
207
+ "type": "array",
208
+ "items": {
209
+ "type": "string",
210
+ "minLength": 1,
211
+ "maxLength": 256
212
+ },
213
+ "minItems": 1,
214
+ "maxItems": 32
215
+ },
216
+ "ttlMs": {
217
+ "type": "integer",
218
+ "minimum": 1,
219
+ "maximum": 86400000
220
+ },
221
+ "who": {
222
+ "type": "string",
223
+ "minLength": 1,
224
+ "maxLength": 256
225
+ }
226
+ },
227
+ "required": [
228
+ "what",
229
+ "scope",
230
+ "ttlMs"
231
+ ],
232
+ "additionalProperties": false
233
+ },
234
+ "RefusedReason": {
235
+ "enum": [
236
+ "unsupported-action",
237
+ "invalid-arguments",
238
+ "denied",
239
+ "unregistered-route",
240
+ "unresolved-target",
241
+ "stale-owner",
242
+ "absent-scope",
243
+ "cancelled"
244
+ ]
245
+ },
246
+ "Outcome": {
247
+ "oneOf": [
248
+ {
249
+ "type": "object",
250
+ "properties": {
251
+ "status": {
252
+ "const": "ok"
253
+ },
254
+ "result": {
255
+ "$ref": "#/$defs/JSONValue"
256
+ },
257
+ "receipt": {
258
+ "type": "string",
259
+ "minLength": 1,
260
+ "maxLength": 256
261
+ }
262
+ },
263
+ "required": [
264
+ "status"
265
+ ],
266
+ "additionalProperties": false
267
+ },
268
+ {
269
+ "type": "object",
270
+ "properties": {
271
+ "status": {
272
+ "const": "accepted"
273
+ },
274
+ "handle": {
275
+ "type": "string",
276
+ "minLength": 1,
277
+ "maxLength": 256
278
+ },
279
+ "poll": {
280
+ "type": "boolean"
281
+ }
282
+ },
283
+ "required": [
284
+ "status",
285
+ "handle"
286
+ ],
287
+ "additionalProperties": false
288
+ },
289
+ {
290
+ "type": "object",
291
+ "properties": {
292
+ "status": {
293
+ "const": "needs_confirmation"
294
+ },
295
+ "confirm": {
296
+ "$ref": "#/$defs/Confirm"
297
+ }
298
+ },
299
+ "required": [
300
+ "status",
301
+ "confirm"
302
+ ],
303
+ "additionalProperties": false
304
+ },
305
+ {
306
+ "type": "object",
307
+ "properties": {
308
+ "status": {
309
+ "const": "refused"
310
+ },
311
+ "reason": {
312
+ "$ref": "#/$defs/RefusedReason"
313
+ }
314
+ },
315
+ "required": [
316
+ "status",
317
+ "reason"
318
+ ],
319
+ "additionalProperties": false
320
+ },
321
+ {
322
+ "type": "object",
323
+ "properties": {
324
+ "status": {
325
+ "const": "conflict"
326
+ },
327
+ "recorded": {
328
+ "$ref": "#/$defs/Outcome"
329
+ }
330
+ },
331
+ "required": [
332
+ "status",
333
+ "recorded"
334
+ ],
335
+ "additionalProperties": false
336
+ },
337
+ {
338
+ "type": "object",
339
+ "properties": {
340
+ "status": {
341
+ "const": "stale"
342
+ },
343
+ "current": {
344
+ "$ref": "#/$defs/Basis"
345
+ }
346
+ },
347
+ "required": [
348
+ "status",
349
+ "current"
350
+ ],
351
+ "additionalProperties": false
352
+ },
353
+ {
354
+ "type": "object",
355
+ "properties": {
356
+ "status": {
357
+ "const": "canceled"
358
+ },
359
+ "cause": {
360
+ "type": "string",
361
+ "minLength": 1,
362
+ "maxLength": 256
363
+ }
364
+ },
365
+ "required": [
366
+ "status"
367
+ ],
368
+ "additionalProperties": false
369
+ },
370
+ {
371
+ "type": "object",
372
+ "properties": {
373
+ "status": {
374
+ "const": "expired"
375
+ }
376
+ },
377
+ "required": [
378
+ "status"
379
+ ],
380
+ "additionalProperties": false
381
+ },
382
+ {
383
+ "type": "object",
384
+ "properties": {
385
+ "status": {
386
+ "const": "superseded"
387
+ },
388
+ "by": {
389
+ "type": "string",
390
+ "minLength": 1,
391
+ "maxLength": 256
392
+ }
393
+ },
394
+ "required": [
395
+ "status"
396
+ ],
397
+ "additionalProperties": false
398
+ },
399
+ {
400
+ "type": "object",
401
+ "properties": {
402
+ "status": {
403
+ "const": "failed"
404
+ },
405
+ "code": {
406
+ "type": "string",
407
+ "minLength": 1,
408
+ "maxLength": 256
409
+ },
410
+ "message": {
411
+ "type": "string",
412
+ "minLength": 1,
413
+ "maxLength": 4096
414
+ },
415
+ "detail": {
416
+ "$ref": "#/$defs/JSONValue"
417
+ }
418
+ },
419
+ "required": [
420
+ "status",
421
+ "code",
422
+ "message"
423
+ ],
424
+ "additionalProperties": false
425
+ }
426
+ ]
427
+ },
428
+ "ProtocolError": {
429
+ "type": "object",
430
+ "properties": {
431
+ "code": {
432
+ "type": "string",
433
+ "minLength": 1,
434
+ "maxLength": 256
435
+ },
436
+ "message": {
437
+ "type": "string",
438
+ "minLength": 1,
439
+ "maxLength": 4096
440
+ }
441
+ },
442
+ "required": [
443
+ "code",
444
+ "message"
445
+ ],
446
+ "additionalProperties": false
447
+ },
448
+ "FunctionResponse": {
449
+ "oneOf": [
450
+ {
451
+ "type": "object",
452
+ "properties": {
453
+ "functionCallId": {
454
+ "type": "string",
455
+ "minLength": 1,
456
+ "maxLength": 256
457
+ },
458
+ "value": {
459
+ "$ref": "#/$defs/Outcome"
460
+ }
461
+ },
462
+ "required": [
463
+ "functionCallId",
464
+ "value"
465
+ ],
466
+ "additionalProperties": false
467
+ },
468
+ {
469
+ "type": "object",
470
+ "properties": {
471
+ "functionCallId": {
472
+ "type": "string",
473
+ "minLength": 1,
474
+ "maxLength": 256
475
+ },
476
+ "error": {
477
+ "$ref": "#/$defs/ProtocolError"
478
+ }
479
+ },
480
+ "required": [
481
+ "functionCallId",
482
+ "error"
483
+ ],
484
+ "additionalProperties": false
485
+ }
486
+ ]
487
+ },
488
+ "Response": {
489
+ "type": "object",
490
+ "properties": {
491
+ "version": {
492
+ "const": "1.0"
493
+ },
494
+ "agentFunctionResponse": {
495
+ "$ref": "#/$defs/FunctionResponse"
496
+ }
497
+ },
498
+ "required": [
499
+ "version",
500
+ "agentFunctionResponse"
501
+ ],
502
+ "additionalProperties": false
503
+ },
504
+ "Choice": {
505
+ "type": "object",
506
+ "properties": {
507
+ "label": {
508
+ "type": "string",
509
+ "minLength": 1,
510
+ "maxLength": 256
511
+ },
512
+ "callFunction": {
513
+ "$ref": "#/$defs/FunctionCall"
514
+ }
515
+ },
516
+ "required": [
517
+ "label",
518
+ "callFunction"
519
+ ],
520
+ "additionalProperties": false
521
+ },
522
+ "ViewState": {
523
+ "enum": [
524
+ "ready",
525
+ "loading",
526
+ "empty",
527
+ "error",
528
+ "stale",
529
+ "conflict",
530
+ "expired"
531
+ ]
532
+ },
533
+ "Change": {
534
+ "type": "object",
535
+ "properties": {
536
+ "label": {
537
+ "type": "string",
538
+ "minLength": 1,
539
+ "maxLength": 256
540
+ },
541
+ "before": {
542
+ "type": "string",
543
+ "maxLength": 4096
544
+ },
545
+ "after": {
546
+ "type": "string",
547
+ "maxLength": 4096
548
+ }
549
+ },
550
+ "required": [
551
+ "label",
552
+ "before",
553
+ "after"
554
+ ],
555
+ "additionalProperties": false
556
+ },
557
+ "ApprovalProps": {
558
+ "type": "object",
559
+ "properties": {
560
+ "title": {
561
+ "type": "string",
562
+ "minLength": 1,
563
+ "maxLength": 256
564
+ },
565
+ "summary": {
566
+ "type": "string",
567
+ "maxLength": 4096
568
+ },
569
+ "changes": {
570
+ "type": "array",
571
+ "items": {
572
+ "$ref": "#/$defs/Change"
573
+ },
574
+ "minItems": 0,
575
+ "maxItems": 64
576
+ },
577
+ "choices": {
578
+ "type": "array",
579
+ "items": {
580
+ "$ref": "#/$defs/Choice"
581
+ },
582
+ "minItems": 1,
583
+ "maxItems": 4
584
+ },
585
+ "state": {
586
+ "$ref": "#/$defs/ViewState"
587
+ }
588
+ },
589
+ "required": [
590
+ "title",
591
+ "changes",
592
+ "choices",
593
+ "state"
594
+ ],
595
+ "additionalProperties": false
596
+ },
597
+ "FormField": {
598
+ "type": "object",
599
+ "properties": {
600
+ "key": {
601
+ "type": "string",
602
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
603
+ "maxLength": 64
604
+ },
605
+ "label": {
606
+ "type": "string",
607
+ "minLength": 1,
608
+ "maxLength": 256
609
+ },
610
+ "type": {
611
+ "enum": [
612
+ "text",
613
+ "textarea",
614
+ "checkbox",
615
+ "integer"
616
+ ]
617
+ },
618
+ "required": {
619
+ "type": "boolean"
620
+ },
621
+ "help": {
622
+ "type": "string",
623
+ "maxLength": 1024
624
+ },
625
+ "min": {
626
+ "type": "integer",
627
+ "minimum": -9007199254740991,
628
+ "maximum": 9007199254740991
629
+ },
630
+ "max": {
631
+ "type": "integer",
632
+ "minimum": -9007199254740991,
633
+ "maximum": 9007199254740991
634
+ },
635
+ "maxLength": {
636
+ "type": "integer",
637
+ "minimum": 1,
638
+ "maximum": 16384
639
+ }
640
+ },
641
+ "required": [
642
+ "key",
643
+ "label",
644
+ "type",
645
+ "required"
646
+ ],
647
+ "additionalProperties": false
648
+ },
649
+ "FormProps": {
650
+ "type": "object",
651
+ "properties": {
652
+ "title": {
653
+ "type": "string",
654
+ "minLength": 1,
655
+ "maxLength": 256
656
+ },
657
+ "fields": {
658
+ "type": "array",
659
+ "items": {
660
+ "$ref": "#/$defs/FormField"
661
+ },
662
+ "minItems": 1,
663
+ "maxItems": 32
664
+ },
665
+ "submit": {
666
+ "$ref": "#/$defs/Choice"
667
+ },
668
+ "state": {
669
+ "$ref": "#/$defs/ViewState"
670
+ }
671
+ },
672
+ "required": [
673
+ "title",
674
+ "fields",
675
+ "submit",
676
+ "state"
677
+ ],
678
+ "additionalProperties": false
679
+ },
680
+ "ListItem": {
681
+ "type": "object",
682
+ "properties": {
683
+ "id": {
684
+ "type": "string",
685
+ "minLength": 1,
686
+ "maxLength": 256
687
+ },
688
+ "title": {
689
+ "type": "string",
690
+ "minLength": 1,
691
+ "maxLength": 256
692
+ },
693
+ "summary": {
694
+ "type": "string",
695
+ "maxLength": 1024
696
+ }
697
+ },
698
+ "required": [
699
+ "id",
700
+ "title"
701
+ ],
702
+ "additionalProperties": false
703
+ },
704
+ "ListDetailProps": {
705
+ "type": "object",
706
+ "properties": {
707
+ "title": {
708
+ "type": "string",
709
+ "minLength": 1,
710
+ "maxLength": 256
711
+ },
712
+ "items": {
713
+ "type": "array",
714
+ "items": {
715
+ "$ref": "#/$defs/ListItem"
716
+ },
717
+ "minItems": 0,
718
+ "maxItems": 128
719
+ },
720
+ "selectedId": {
721
+ "type": "string",
722
+ "minLength": 1,
723
+ "maxLength": 256
724
+ },
725
+ "detail": {
726
+ "type": "object",
727
+ "properties": {
728
+ "title": {
729
+ "type": "string",
730
+ "minLength": 1,
731
+ "maxLength": 256
732
+ },
733
+ "body": {
734
+ "type": "string",
735
+ "maxLength": 16384
736
+ }
737
+ },
738
+ "required": [
739
+ "title",
740
+ "body"
741
+ ],
742
+ "additionalProperties": false
743
+ },
744
+ "state": {
745
+ "$ref": "#/$defs/ViewState"
746
+ }
747
+ },
748
+ "required": [
749
+ "title",
750
+ "items",
751
+ "state"
752
+ ],
753
+ "additionalProperties": false
754
+ },
755
+ "Root": {
756
+ "oneOf": [
757
+ {
758
+ "type": "object",
759
+ "properties": {
760
+ "id": {
761
+ "const": "root"
762
+ },
763
+ "component": {
764
+ "const": "GenuiApproval"
765
+ },
766
+ "props": {
767
+ "$ref": "#/$defs/ApprovalProps"
768
+ }
769
+ },
770
+ "required": [
771
+ "id",
772
+ "component",
773
+ "props"
774
+ ],
775
+ "additionalProperties": false
776
+ },
777
+ {
778
+ "type": "object",
779
+ "properties": {
780
+ "id": {
781
+ "const": "root"
782
+ },
783
+ "component": {
784
+ "const": "GenuiForm"
785
+ },
786
+ "props": {
787
+ "$ref": "#/$defs/FormProps"
788
+ }
789
+ },
790
+ "required": [
791
+ "id",
792
+ "component",
793
+ "props"
794
+ ],
795
+ "additionalProperties": false
796
+ },
797
+ {
798
+ "type": "object",
799
+ "properties": {
800
+ "id": {
801
+ "const": "root"
802
+ },
803
+ "component": {
804
+ "const": "GenuiListDetail"
805
+ },
806
+ "props": {
807
+ "$ref": "#/$defs/ListDetailProps"
808
+ }
809
+ },
810
+ "required": [
811
+ "id",
812
+ "component",
813
+ "props"
814
+ ],
815
+ "additionalProperties": false
816
+ }
817
+ ]
818
+ },
819
+ "Pattern": {
820
+ "type": "object",
821
+ "properties": {
822
+ "id": {
823
+ "enum": [
824
+ "approval",
825
+ "form",
826
+ "list_detail"
827
+ ]
828
+ },
829
+ "version": {
830
+ "const": "1.0.0"
831
+ }
832
+ },
833
+ "required": [
834
+ "id",
835
+ "version"
836
+ ],
837
+ "additionalProperties": false
838
+ },
839
+ "Metadata": {
840
+ "type": "object",
841
+ "properties": {
842
+ "extensions": {
843
+ "type": "object",
844
+ "properties": {
845
+ "genui_surface": {
846
+ "type": "object",
847
+ "properties": {
848
+ "contract_version": {
849
+ "const": "1"
850
+ }
851
+ },
852
+ "required": [
853
+ "contract_version"
854
+ ],
855
+ "additionalProperties": false
856
+ },
857
+ "genui_pattern": {
858
+ "$ref": "#/$defs/Pattern"
859
+ }
860
+ },
861
+ "required": [
862
+ "genui_surface",
863
+ "genui_pattern"
864
+ ],
865
+ "additionalProperties": false
866
+ }
867
+ },
868
+ "required": [
869
+ "extensions"
870
+ ],
871
+ "additionalProperties": false
872
+ },
873
+ "DataModel": {
874
+ "type": "object",
875
+ "properties": {
876
+ "draft": {
877
+ "$ref": "#/$defs/Input"
878
+ }
879
+ },
880
+ "required": [],
881
+ "additionalProperties": false
882
+ },
883
+ "CreateSurface": {
884
+ "type": "object",
885
+ "properties": {
886
+ "surfaceId": {
887
+ "type": "string",
888
+ "minLength": 1,
889
+ "maxLength": 256
890
+ },
891
+ "catalogId": {
892
+ "const": "urn:hollis-labs:genui:catalog:1"
893
+ },
894
+ "components": {
895
+ "type": "array",
896
+ "items": {
897
+ "$ref": "#/$defs/Root"
898
+ },
899
+ "minItems": 1,
900
+ "maxItems": 1
901
+ },
902
+ "dataModel": {
903
+ "$ref": "#/$defs/DataModel"
904
+ },
905
+ "metadata": {
906
+ "$ref": "#/$defs/Metadata"
907
+ }
908
+ },
909
+ "required": [
910
+ "surfaceId",
911
+ "catalogId",
912
+ "components",
913
+ "dataModel",
914
+ "metadata"
915
+ ],
916
+ "additionalProperties": false
917
+ },
918
+ "SurfaceMessage": {
919
+ "type": "object",
920
+ "properties": {
921
+ "version": {
922
+ "const": "1.0"
923
+ },
924
+ "createSurface": {
925
+ "$ref": "#/$defs/CreateSurface"
926
+ }
927
+ },
928
+ "required": [
929
+ "version",
930
+ "createSurface"
931
+ ],
932
+ "additionalProperties": false
933
+ },
934
+ "Envelope": {
935
+ "type": "object",
936
+ "properties": {
937
+ "v": {
938
+ "const": 1
939
+ },
940
+ "id": {
941
+ "type": "string",
942
+ "minLength": 1,
943
+ "maxLength": 256
944
+ },
945
+ "type": {
946
+ "const": "genui.declarative-surface"
947
+ },
948
+ "typeVersion": {
949
+ "const": "1.0.0"
950
+ },
951
+ "title": {
952
+ "type": "string",
953
+ "minLength": 1,
954
+ "maxLength": 256
955
+ },
956
+ "context": {
957
+ "type": "string",
958
+ "minLength": 1,
959
+ "maxLength": 4096
960
+ },
961
+ "presentation": {
962
+ "enum": [
963
+ "inline",
964
+ "modal",
965
+ "drawer",
966
+ "fullscreen"
967
+ ]
968
+ },
969
+ "data": {
970
+ "$ref": "#/$defs/SurfaceMessage"
971
+ }
972
+ },
973
+ "required": [
974
+ "v",
975
+ "id",
976
+ "type",
977
+ "typeVersion",
978
+ "data"
979
+ ],
980
+ "additionalProperties": false
981
+ },
982
+ "UnknownOutcome": {
983
+ "type": "object",
984
+ "properties": {
985
+ "status": {
986
+ "type": "string",
987
+ "minLength": 1,
988
+ "maxLength": 128,
989
+ "not": {
990
+ "enum": [
991
+ "ok",
992
+ "accepted",
993
+ "needs_confirmation",
994
+ "refused",
995
+ "conflict",
996
+ "stale",
997
+ "canceled",
998
+ "expired",
999
+ "superseded",
1000
+ "failed",
1001
+ "partial"
1002
+ ]
1003
+ }
1004
+ }
1005
+ },
1006
+ "required": [
1007
+ "status"
1008
+ ],
1009
+ "additionalProperties": {
1010
+ "$ref": "#/$defs/JSONValue"
1011
+ },
1012
+ "maxProperties": 256
1013
+ },
1014
+ "ReceiverFunctionResponse": {
1015
+ "oneOf": [
1016
+ {
1017
+ "type": "object",
1018
+ "properties": {
1019
+ "functionCallId": {
1020
+ "type": "string",
1021
+ "minLength": 1,
1022
+ "maxLength": 256
1023
+ },
1024
+ "value": {
1025
+ "oneOf": [
1026
+ {
1027
+ "$ref": "#/$defs/Outcome"
1028
+ },
1029
+ {
1030
+ "$ref": "#/$defs/UnknownOutcome"
1031
+ }
1032
+ ]
1033
+ }
1034
+ },
1035
+ "required": [
1036
+ "functionCallId",
1037
+ "value"
1038
+ ],
1039
+ "additionalProperties": false
1040
+ },
1041
+ {
1042
+ "type": "object",
1043
+ "properties": {
1044
+ "functionCallId": {
1045
+ "type": "string",
1046
+ "minLength": 1,
1047
+ "maxLength": 256
1048
+ },
1049
+ "error": {
1050
+ "$ref": "#/$defs/ProtocolError"
1051
+ }
1052
+ },
1053
+ "required": [
1054
+ "functionCallId",
1055
+ "error"
1056
+ ],
1057
+ "additionalProperties": false
1058
+ }
1059
+ ]
1060
+ },
1061
+ "ReceiverResponse": {
1062
+ "type": "object",
1063
+ "properties": {
1064
+ "version": {
1065
+ "const": "1.0"
1066
+ },
1067
+ "agentFunctionResponse": {
1068
+ "$ref": "#/$defs/ReceiverFunctionResponse"
1069
+ }
1070
+ },
1071
+ "required": [
1072
+ "version",
1073
+ "agentFunctionResponse"
1074
+ ],
1075
+ "additionalProperties": false
1076
+ }
1077
+ }
1078
+ }