oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "definitions": {
4 "AbsolutePathBuf": {
5 "type": "string"
6 },
7 "ActivePermissionProfile": {
8 "properties": {
9 "extends": {
10 "default": null,
11 "type": [
12 "string",
13 "null"
14 ]
15 },
16 "id": {
17 "type": "string"
18 }
19 },
20 "required": [
21 "id"
22 ],
23 "type": "object"
24 },
25 "AgentMessageDelivery": {
26 "enum": [
27 "async"
28 ],
29 "type": "string"
30 },
31 "AgentPath": {
32 "type": "string"
33 },
34 "ApprovalsReviewer": {
35 "enum": [
36 "user",
37 "auto_review",
38 "guardian_subagent"
39 ],
40 "type": "string"
41 },
42 "AskForApproval": {
43 "oneOf": [
44 {
45 "enum": [
46 "untrusted",
47 "on-request",
48 "never"
49 ],
50 "type": "string"
51 },
52 {
53 "additionalProperties": false,
54 "properties": {
55 "granular": {
56 "properties": {
57 "mcp_elicitations": {
58 "type": "boolean"
59 },
60 "request_permissions": {
61 "default": false,
62 "type": "boolean"
63 },
64 "rules": {
65 "type": "boolean"
66 },
67 "sandbox_approval": {
68 "type": "boolean"
69 },
70 "skill_approval": {
71 "default": false,
72 "type": "boolean"
73 }
74 },
75 "required": [
76 "mcp_elicitations",
77 "rules",
78 "sandbox_approval"
79 ],
80 "type": "object"
81 }
82 },
83 "required": [
84 "granular"
85 ],
86 "type": "object"
87 }
88 ]
89 },
90 "AsyncUserInputQuestion": {
91 "additionalProperties": false,
92 "properties": {
93 "options": {
94 "items": {
95 "type": "string"
96 },
97 "type": [
98 "array",
99 "null"
100 ]
101 }
102 },
103 "required": [
104 "title"
105 ],
106 "type": "object"
107 },
108 "ByteRange": {
109 "properties": {
110 "end": {
111 "format": "uint",
112 "minimum": 0.0,
113 "type": "integer"
114 },
115 "start": {
116 "format": "uint",
117 "minimum": 0.0,
118 "type": "integer"
119 }
120 },
121 "required": [
122 "end",
123 "start"
124 ],
125 "type": "object"
126 },
127 "CodexErrorInfo": {
128 "anyOf": [
129 {
130 "enum": [
131 "contextWindowExceeded",
132 "sessionBudgetExceeded",
133 "usageLimitExceeded",
134 "rateLimitExceeded",
135 "flexUnavailable",
136 "serverOverloaded",
137 "modelNotFound",
138 "cyberPolicy",
139 "misalignmentPolicyViolation",
140 "tooManyDenials",
141 "internalServerError",
142 "unauthorized",
143 "badRequest",
144 "threadRollbackFailed",
145 "sandboxError",
146 "other"
147 ],
148 "type": "string"
149 },
150 {
151 "additionalProperties": false,
152 "properties": {
153 "httpConnectionFailed": {
154 "properties": {
155 "httpStatusCode": {
156 "format": "uint16",
157 "minimum": 0.0,
158 "type": [
159 "integer",
160 "null"
161 ]
162 }
163 },
164 "type": "object"
165 }
166 },
167 "required": [
168 "httpConnectionFailed"
169 ],
170 "type": "object"
171 },
172 {
173 "additionalProperties": false,
174 "properties": {
175 "responseStreamConnectionFailed": {
176 "properties": {
177 "httpStatusCode": {
178 "format": "uint16",
179 "minimum": 0.0,
180 "type": [
181 "integer",
182 "null"
183 ]
184 }
185 },
186 "type": "object"
187 }
188 },
189 "required": [
190 "responseStreamConnectionFailed"
191 ],
192 "type": "object"
193 },
194 {
195 "additionalProperties": false,
196 "properties": {
197 "responseStreamDisconnected": {
198 "properties": {
199 "httpStatusCode": {
200 "format": "uint16",
201 "minimum": 0.0,
202 "type": [
203 "integer",
204 "null"
205 ]
206 }
207 },
208 "type": "object"
209 }
210 },
211 "required": [
212 "responseStreamDisconnected"
213 ],
214 "type": "object"
215 },
216 {
217 "additionalProperties": false,
218 "properties": {
219 "responseTooManyFailedAttempts": {
220 "properties": {
221 "httpStatusCode": {
222 "format": "uint16",
223 "minimum": 0.0,
224 "type": [
225 "integer",
226 "null"
227 ]
228 }
229 },
230 "type": "object"
231 }
232 },
233 "required": [
234 "responseTooManyFailedAttempts"
235 ],
236 "type": "object"
237 },
238 {
239 "additionalProperties": false,
240 "properties": {
241 "activeTurnNotSteerable": {
242 "properties": {
243 "turnKind": {
244 "$ref": "#/definitions/NonSteerableTurnKind"
245 }
246 },
247 "required": [
248 "turnKind"
249 ],
250 "type": "object"
251 }
252 },
253 "required": [
254 "activeTurnNotSteerable"
255 ],
256 "type": "object"
257 },
258 {
259 "type": [
260 "string",
261 "object"
262 ]
263 }
264 ]
265 },
266 "CollabAgentState": {
267 "properties": {
268 "message": {
269 "type": [
270 "string",
271 "null"
272 ]
273 },
274 "status": {
275 "$ref": "#/definitions/CollabAgentStatus"
276 }
277 },
278 "required": [
279 "status"
280 ],
281 "type": "object"
282 },
283 "CollabAgentStatus": {
284 "enum": [
285 "pendingInit",
286 "running",
287 "interrupted",
288 "completed",
289 "errored",
290 "shutdown",
291 "notFound"
292 ],
293 "type": "string"
294 },
295 "CollabAgentTool": {
296 "enum": [
297 "spawnAgent",
298 "sendInput",
299 "resumeAgent",
300 "wait",
301 "closeAgent",
302 "sendMessage",
303 "followupTask",
304 "interruptAgent",
305 "listAgents"
306 ],
307 "type": "string"
308 },
309 "CollabAgentToolCallStatus": {
310 "enum": [
311 "inProgress",
312 "completed",
313 "failed",
314 "interrupted"
315 ],
316 "type": "string"
317 },
318 "CollaborationMode": {
319 "properties": {
320 "mode": {
321 "$ref": "#/definitions/ModeKind"
322 },
323 "settings": {
324 "$ref": "#/definitions/Settings"
325 }
326 },
327 "required": [
328 "mode",
329 "settings"
330 ],
331 "type": "object"
332 },
333 "CommandAction": {
334 "oneOf": [
335 {
336 "properties": {
337 "command": {
338 "type": "string"
339 },
340 "name": {
341 "type": "string"
342 },
343 "path": {
344 "$ref": "#/definitions/LegacyAppPathString"
345 },
346 "type": {
347 "enum": [
348 "read"
349 ],
350 "type": "string"
351 }
352 },
353 "required": [
354 "command",
355 "name",
356 "path",
357 "type"
358 ],
359 "type": "object"
360 },
361 {
362 "properties": {
363 "command": {
364 "type": "string"
365 },
366 "path": {
367 "type": [
368 "string",
369 "null"
370 ]
371 },
372 "type": {
373 "enum": [
374 "listFiles"
375 ],
376 "type": "string"
377 }
378 },
379 "required": [
380 "command",
381 "type"
382 ],
383 "type": "object"
384 },
385 {
386 "properties": {
387 "command": {
388 "type": "string"
389 },
390 "path": {
391 "type": [
392 "string",
393 "null"
394 ]
395 },
396 "query": {
397 "type": [
398 "string",
399 "null"
400 ]
401 },
402 "type": {
403 "enum": [
404 "search"
405 ],
406 "type": "string"
407 }
408 },
409 "required": [
410 "command",
411 "type"
412 ],
413 "type": "object"
414 },
415 {
416 "properties": {
417 "command": {
418 "type": "string"
419 },
420 "type": {
421 "enum": [
422 "unknown"
423 ],
424 "type": "string"
425 }
426 },
427 "required": [
428 "command",
429 "type"
430 ],
431 "type": "object"
432 }
433 ]
434 },
435 "CommandExecutionSource": {
436 "enum": [
437 "agent",
438 "userShell",
439 "unifiedExecStartup",
440 "unifiedExecInteraction"
441 ],
442 "type": "string"
443 },
444 "CommandExecutionStatus": {
445 "enum": [
446 "inProgress",
447 "completed",
448 "failed",
449 "declined"
450 ],
451 "type": "string"
452 },
453 "DynamicToolCallOutputContentItem": {
454 "oneOf": [
455 {
456 "properties": {
457 "text": {
458 "type": "string"
459 },
460 "type": {
461 "enum": [
462 "inputText"
463 ],
464 "type": "string"
465 }
466 },
467 "required": [
468 "text",
469 "type"
470 ],
471 "type": "object"
472 },
473 {
474 "properties": {
475 "imageUrl": {
476 "type": "string"
477 },
478 "type": {
479 "enum": [
480 "inputImage"
481 ],
482 "type": "string"
483 }
484 },
485 "required": [
486 "imageUrl",
487 "type"
488 ],
489 "type": "object"
490 },
491 {
492 "properties": {
493 "audioUrl": {
494 "type": "string"
495 },
496 "type": {
497 "enum": [
498 "inputAudio"
499 ],
500 "type": "string"
501 }
502 },
503 "required": [
504 "audioUrl",
505 "type"
506 ],
507 "type": "object"
508 }
509 ]
510 },
511 "DynamicToolCallStatus": {
512 "enum": [
513 "inProgress",
514 "completed",
515 "failed"
516 ],
517 "type": "string"
518 },
519 "FileUpdateChange": {
520 "properties": {
521 "diff": {
522 "type": "string"
523 },
524 "kind": {
525 "$ref": "#/definitions/PatchChangeKind"
526 },
527 "path": {
528 "type": "string"
529 }
530 },
531 "required": [
532 "diff",
533 "kind",
534 "path"
535 ],
536 "type": "object"
537 },
538 "FunctionCallOutputBody": {
539 "anyOf": [
540 {
541 "type": "string"
542 },
543 {
544 "items": {
545 "$ref": "#/definitions/FunctionCallOutputContentItem"
546 },
547 "type": "array"
548 }
549 ]
550 },
551 "FunctionCallOutputContentItem": {
552 "oneOf": [
553 {
554 "properties": {
555 "text": {
556 "type": "string"
557 },
558 "type": {
559 "enum": [
560 "input_text"
561 ],
562 "type": "string"
563 }
564 },
565 "required": [
566 "text",
567 "type"
568 ],
569 "type": "object"
570 },
571 {
572 "anyOf": [
573 {
574 "properties": {
575 "image_url": {
576 "type": "string"
577 }
578 },
579 "required": [
580 "image_url"
581 ],
582 "type": "object"
583 },
584 {
585 "properties": {
586 "file_id": {
587 "type": "string"
588 }
589 },
590 "required": [
591 "file_id"
592 ],
593 "type": "object"
594 }
595 ],
596 "properties": {
597 "detail": {
598 "anyOf": [
599 {
600 "$ref": "#/definitions/ImageDetail"
601 },
602 {
603 "type": "null"
604 }
605 ]
606 },
607 "type": {
608 "enum": [
609 "input_image"
610 ],
611 "type": "string"
612 }
613 },
614 "required": [
615 "type"
616 ],
617 "type": "object"
618 },
619 {
620 "properties": {
621 "audio_url": {
622 "type": "string"
623 },
624 "type": {
625 "enum": [
626 "input_audio"
627 ],
628 "type": "string"
629 }
630 },
631 "required": [
632 "audio_url",
633 "type"
634 ],
635 "type": "object"
636 },
637 {
638 "properties": {
639 "encrypted_content": {
640 "type": "string"
641 },
642 "type": {
643 "enum": [
644 "encrypted_content"
645 ],
646 "type": "string"
647 }
648 },
649 "required": [
650 "encrypted_content",
651 "type"
652 ],
653 "type": "object"
654 }
655 ]
656 },
657 "GitInfo": {
658 "properties": {
659 "branch": {
660 "type": [
661 "string",
662 "null"
663 ]
664 },
665 "originUrl": {
666 "type": [
667 "string",
668 "null"
669 ]
670 },
671 "sha": {
672 "type": [
673 "string",
674 "null"
675 ]
676 }
677 },
678 "type": "object"
679 },
680 "HookPromptFragment": {
681 "properties": {
682 "hookRunId": {
683 "type": "string"
684 },
685 "text": {
686 "type": "string"
687 }
688 },
689 "required": [
690 "hookRunId",
691 "text"
692 ],
693 "type": "object"
694 },
695 "ImageDetail": {
696 "enum": [
697 "auto",
698 "low",
699 "high",
700 "original"
701 ],
702 "type": "string"
703 },
704 "ImageGenerationFailure": {
705 "oneOf": [
706 {
707 "properties": {
708 "limitId": {
709 "type": "string"
710 },
711 "resetsAt": {
712 "format": "int64",
713 "type": [
714 "integer",
715 "null"
716 ]
717 },
718 "type": {
719 "enum": [
720 "usageLimitExceeded"
721 ],
722 "type": "string"
723 }
724 },
725 "required": [
726 "limitId",
727 "type"
728 ],
729 "type": "object"
730 }
731 ]
732 },
733 "ImageGenerationInputImage": {
734 "properties": {
735 "path": {
736 "$ref": "#/definitions/AbsolutePathBuf"
737 },
738 "sha256": {
739 "type": "string"
740 }
741 },
742 "required": [
743 "path",
744 "sha256"
745 ],
746 "type": "object"
747 },
748 "LegacyAppPathString": {
749 "type": "string"
750 },
751 "McpAppDisplayMode": {
752 "enum": [
753 "inline",
754 "fullscreen"
755 ],
756 "type": "string"
757 },
758 "McpAppUi": {
759 "properties": {
760 "preferredModelDisplayMode": {
761 "$ref": "#/definitions/McpAppDisplayMode"
762 },
763 "resourceUri": {
764 "type": "string"
765 }
766 },
767 "required": [
768 "preferredModelDisplayMode",
769 "resourceUri"
770 ],
771 "type": "object"
772 },
773 "McpToolCallAppContext": {
774 "properties": {
775 "actionName": {
776 "type": [
777 "string",
778 "null"
779 ]
780 },
781 "appName": {
782 "type": [
783 "string",
784 "null"
785 ]
786 },
787 "connectorId": {
788 "type": "string"
789 },
790 "linkId": {
791 "type": [
792 "string",
793 "null"
794 ]
795 },
796 "resourceUri": {
797 "type": [
798 "string",
799 "null"
800 ]
801 }
802 },
803 "required": [
804 "connectorId"
805 ],
806 "type": "object"
807 },
808 "McpToolCallError": {
809 "properties": {
810 "message": {
811 "type": "string"
812 }
813 },
814 "required": [
815 "message"
816 ],
817 "type": "object"
818 },
819 "McpToolCallResult": {
820 "properties": {
821 "_meta": true,
822 "content": {
823 "items": true,
824 "type": "array"
825 },
826 "structuredContent": true
827 },
828 "required": [
829 "content"
830 ],
831 "type": "object"
832 },
833 "McpToolCallStatus": {
834 "enum": [
835 "inProgress",
836 "completed",
837 "failed"
838 ],
839 "type": "string"
840 },
841 "MemoryCitation": {
842 "properties": {
843 "entries": {
844 "items": {
845 "$ref": "#/definitions/MemoryCitationEntry"
846 },
847 "type": "array"
848 },
849 "threadIds": {
850 "items": {
851 "type": "string"
852 },
853 "type": "array"
854 }
855 },
856 "required": [
857 "entries",
858 "threadIds"
859 ],
860 "type": "object"
861 },
862 "MemoryCitationEntry": {
863 "properties": {
864 "lineEnd": {
865 "format": "uint32",
866 "minimum": 0.0,
867 "type": "integer"
868 },
869 "lineStart": {
870 "format": "uint32",
871 "minimum": 0.0,
872 "type": "integer"
873 },
874 "note": {
875 "type": "string"
876 },
877 "path": {
878 "type": "string"
879 }
880 },
881 "required": [
882 "lineEnd",
883 "lineStart",
884 "note",
885 "path"
886 ],
887 "type": "object"
888 },
889 "MessagePhase": {
890 "oneOf": [
891 {
892 "enum": [
893 "commentary"
894 ],
895 "type": "string"
896 },
897 {
898 "enum": [
899 "partial_answer"
900 ],
901 "type": "string"
902 },
903 {
904 "enum": [
905 "final_answer"
906 ],
907 "type": "string"
908 }
909 ]
910 },
911 "MisalignmentErrorDetails": {
912 "properties": {
913 "detailedExplanation": {
914 "type": [
915 "string",
916 "null"
917 ]
918 },
919 "errorType": {
920 "type": [
921 "string",
922 "null"
923 ]
924 },
925 "reviewTarget": {
926 "type": [
927 "string",
928 "null"
929 ]
930 },
931 "steer": {
932 "anyOf": [
933 {
934 "$ref": "#/definitions/MisalignmentSteer"
935 },
936 {
937 "type": "null"
938 }
939 ]
940 }
941 },
942 "type": "object"
943 },
944 "MisalignmentSteer": {
945 "properties": {
946 "message": {
947 "type": "string"
948 }
949 },
950 "required": [
951 "message"
952 ],
953 "type": "object"
954 },
955 "ModeKind": {
956 "enum": [
957 "plan",
958 "default"
959 ],
960 "type": "string"
961 },
962 "MultiAgentMode": {
963 "oneOf": [
964 {
965 "enum": [
966 "explicitRequestOnly",
967 "proactive"
968 ],
969 "type": "string"
970 },
971 {
972 "additionalProperties": false,
973 "properties": {
974 "custom": {
975 "type": "string"
976 }
977 },
978 "required": [
979 "custom"
980 ],
981 "type": "object"
982 }
983 ]
984 },
985 "NetworkAccess": {
986 "enum": [
987 "restricted",
988 "enabled"
989 ],
990 "type": "string"
991 },
992 "NonSteerableTurnKind": {
993 "enum": [
994 "review",
995 "compact"
996 ],
997 "type": "string"
998 },
999 "PatchApplyStatus": {
1000 "enum": [
1001 "inProgress",
1002 "completed",
1003 "failed",
1004 "declined"
1005 ],
1006 "type": "string"
1007 },
1008 "PatchChangeKind": {
1009 "oneOf": [
1010 {
1011 "properties": {
1012 "type": {
1013 "enum": [
1014 "add"
1015 ],
1016 "type": "string"
1017 }
1018 },
1019 "required": [
1020 "type"
1021 ],
1022 "type": "object"
1023 },
1024 {
1025 "properties": {
1026 "type": {
1027 "enum": [
1028 "delete"
1029 ],
1030 "type": "string"
1031 }
1032 },
1033 "required": [
1034 "type"
1035 ],
1036 "type": "object"
1037 },
1038 {
1039 "properties": {
1040 "move_path": {
1041 "type": [
1042 "string",
1043 "null"
1044 ]
1045 },
1046 "type": {
1047 "enum": [
1048 "update"
1049 ],
1050 "type": "string"
1051 }
1052 },
1053 "required": [
1054 "type"
1055 ],
1056 "type": "object"
1057 }
1058 ]
1059 },
1060 "ReasoningEffort": {
1061 "minLength": 1,
1062 "type": "string"
1063 },
1064 "SandboxPolicy": {
1065 "oneOf": [
1066 {
1067 "properties": {
1068 "type": {
1069 "enum": [
1070 "dangerFullAccess"
1071 ],
1072 "type": "string"
1073 }
1074 },
1075 "required": [
1076 "type"
1077 ],
1078 "type": "object"
1079 },
1080 {
1081 "properties": {
1082 "networkAccess": {
1083 "default": false,
1084 "type": "boolean"
1085 },
1086 "type": {
1087 "enum": [
1088 "readOnly"
1089 ],
1090 "type": "string"
1091 }
1092 },
1093 "required": [
1094 "type"
1095 ],
1096 "type": "object"
1097 },
1098 {
1099 "properties": {
1100 "networkAccess": {
1101 "allOf": [
1102 {
1103 "$ref": "#/definitions/NetworkAccess"
1104 }
1105 ],
1106 "default": "restricted"
1107 },
1108 "type": {
1109 "enum": [
1110 "externalSandbox"
1111 ],
1112 "type": "string"
1113 }
1114 },
1115 "required": [
1116 "type"
1117 ],
1118 "type": "object"
1119 },
1120 {
1121 "properties": {
1122 "excludeSlashTmp": {
1123 "default": false,
1124 "type": "boolean"
1125 },
1126 "excludeTmpdirEnvVar": {
1127 "default": false,
1128 "type": "boolean"
1129 },
1130 "networkAccess": {
1131 "default": false,
1132 "type": "boolean"
1133 },
1134 "type": {
1135 "enum": [
1136 "workspaceWrite"
1137 ],
1138 "type": "string"
1139 },
1140 "writableRoots": {
1141 "default": [],
1142 "items": {
1143 "$ref": "#/definitions/AbsolutePathBuf"
1144 },
1145 "type": "array"
1146 }
1147 },
1148 "required": [
1149 "type"
1150 ],
1151 "type": "object"
1152 }
1153 ]
1154 },
1155 "SessionSource": {
1156 "oneOf": [
1157 {
1158 "enum": [
1159 "cli",
1160 "vscode",
1161 "exec",
1162 "appServer",
1163 "unknown"
1164 ],
1165 "type": "string"
1166 },
1167 {
1168 "additionalProperties": false,
1169 "properties": {
1170 "custom": {
1171 "type": "string"
1172 }
1173 },
1174 "required": [
1175 "custom"
1176 ],
1177 "type": "object"
1178 },
1179 {
1180 "additionalProperties": false,
1181 "properties": {
1182 "subAgent": {
1183 "$ref": "#/definitions/SubAgentSource"
1184 }
1185 },
1186 "required": [
1187 "subAgent"
1188 ],
1189 "type": "object"
1190 }
1191 ]
1192 },
1193 "Settings": {
1194 "properties": {
1195 "developer_instructions": {
1196 "type": [
1197 "string",
1198 "null"
1199 ]
1200 },
1201 "model": {
1202 "type": "string"
1203 },
1204 "reasoning_effort": {
1205 "anyOf": [
1206 {
1207 "$ref": "#/definitions/ReasoningEffort"
1208 },
1209 {
1210 "type": "null"
1211 }
1212 ]
1213 }
1214 },
1215 "required": [
1216 "model"
1217 ],
1218 "type": "object"
1219 },
1220 "SubAgentActivityKind": {
1221 "enum": [
1222 "started",
1223 "interacted",
1224 "interrupted",
1225 "completed"
1226 ],
1227 "type": "string"
1228 },
1229 "SubAgentSource": {
1230 "oneOf": [
1231 {
1232 "enum": [
1233 "review",
1234 "compact",
1235 "memory_consolidation"
1236 ],
1237 "type": "string"
1238 },
1239 {
1240 "additionalProperties": false,
1241 "properties": {
1242 "thread_spawn": {
1243 "properties": {
1244 "agent_nickname": {
1245 "default": null,
1246 "type": [
1247 "string",
1248 "null"
1249 ]
1250 },
1251 "agent_path": {
1252 "anyOf": [
1253 {
1254 "$ref": "#/definitions/AgentPath"
1255 },
1256 {
1257 "type": "null"
1258 }
1259 ],
1260 "default": null
1261 },
1262 "agent_role": {
1263 "default": null,
1264 "type": [
1265 "string",
1266 "null"
1267 ]
1268 },
1269 "depth": {
1270 "format": "int32",
1271 "type": "integer"
1272 },
1273 "parent_thread_id": {
1274 "$ref": "#/definitions/ThreadId"
1275 }
1276 },
1277 "required": [
1278 "depth",
1279 "parent_thread_id"
1280 ],
1281 "type": "object"
1282 }
1283 },
1284 "required": [
1285 "thread_spawn"
1286 ],
1287 "type": "object"
1288 },
1289 {
1290 "additionalProperties": false,
1291 "properties": {
1292 "other": {
1293 "type": "string"
1294 }
1295 },
1296 "required": [
1297 "other"
1298 ],
1299 "type": "object"
1300 }
1301 ]
1302 },
1303 "TextElement": {
1304 "properties": {
1305 "byteRange": {
1306 "allOf": [
1307 {
1308 "$ref": "#/definitions/ByteRange"
1309 }
1310 ]
1311 },
1312 "placeholder": {
1313 "type": [
1314 "string",
1315 "null"
1316 ]
1317 }
1318 },
1319 "required": [
1320 "byteRange"
1321 ],
1322 "type": "object"
1323 },
1324 "Thread": {
1325 "properties": {
1326 "agentNickname": {
1327 "type": [
1328 "string",
1329 "null"
1330 ]
1331 },
1332 "agentRole": {
1333 "type": [
1334 "string",
1335 "null"
1336 ]
1337 },
1338 "canAcceptDirectInput": {
1339 "type": [
1340 "boolean",
1341 "null"
1342 ]
1343 },
1344 "cliVersion": {
1345 "type": "string"
1346 },
1347 "createdAt": {
1348 "format": "int64",
1349 "type": "integer"
1350 },
1351 "cwd": {
1352 "allOf": [
1353 {
1354 "$ref": "#/definitions/AbsolutePathBuf"
1355 }
1356 ]
1357 },
1358 "daybreakEnabled": {
1359 "type": [
1360 "boolean",
1361 "null"
1362 ]
1363 },
1364 "environments": {
1365 "default": null,
1366 "items": {
1367 "$ref": "#/definitions/ThreadEnvironment"
1368 },
1369 "type": [
1370 "array",
1371 "null"
1372 ]
1373 },
1374 "ephemeral": {
1375 "type": "boolean"
1376 },
1377 "extra": {
1378 "anyOf": [
1379 {
1380 "$ref": "#/definitions/ThreadExtra"
1381 },
1382 {
1383 "type": "null"
1384 }
1385 ]
1386 },
1387 "forkedFromId": {
1388 "type": [
1389 "string",
1390 "null"
1391 ]
1392 },
1393 "gitInfo": {
1394 "anyOf": [
1395 {
1396 "$ref": "#/definitions/GitInfo"
1397 },
1398 {
1399 "type": "null"
1400 }
1401 ]
1402 },
1403 "historyMode": {
1404 "allOf": [
1405 {
1406 "$ref": "#/definitions/ThreadHistoryMode"
1407 }
1408 ],
1409 "default": "legacy"
1410 },
1411 "id": {
1412 "type": "string"
1413 },
1414 "model": {
1415 "type": [
1416 "string",
1417 "null"
1418 ]
1419 },
1420 "modelProvider": {
1421 "type": "string"
1422 },
1423 "name": {
1424 "type": [
1425 "string",
1426 "null"
1427 ]
1428 },
1429 "originator": {
1430 "type": [
1431 "string",
1432 "null"
1433 ]
1434 },
1435 "parentThreadId": {
1436 "type": [
1437 "string",
1438 "null"
1439 ]
1440 },
1441 "path": {
1442 "type": [
1443 "string",
1444 "null"
1445 ]
1446 },
1447 "preview": {
1448 "type": "string"
1449 },
1450 "projectId": {
1451 "type": [
1452 "string",
1453 "null"
1454 ]
1455 },
1456 "reasoningEffort": {
1457 "anyOf": [
1458 {
1459 "$ref": "#/definitions/ReasoningEffort"
1460 },
1461 {
1462 "type": "null"
1463 }
1464 ]
1465 },
1466 "recencyAt": {
1467 "format": "int64",
1468 "type": [
1469 "integer",
1470 "null"
1471 ]
1472 },
1473 "section": {
1474 "anyOf": [
1475 {
1476 "$ref": "#/definitions/ThreadSection"
1477 },
1478 {
1479 "type": "null"
1480 }
1481 ],
1482 "default": null
1483 },
1484 "sectionEnteredAt": {
1485 "default": null,
1486 "format": "int64",
1487 "type": [
1488 "integer",
1489 "null"
1490 ]
1491 },
1492 "sessionId": {
1493 "type": "string"
1494 },
1495 "source": {
1496 "allOf": [
1497 {
1498 "$ref": "#/definitions/SessionSource"
1499 }
1500 ]
1501 },
1502 "status": {
1503 "allOf": [
1504 {
1505 "$ref": "#/definitions/ThreadStatus"
1506 }
1507 ]
1508 },
1509 "threadSource": {
1510 "anyOf": [
1511 {
1512 "$ref": "#/definitions/ThreadSource"
1513 },
1514 {
1515 "type": "null"
1516 }
1517 ]
1518 },
1519 "turns": {
1520 "items": {
1521 "$ref": "#/definitions/Turn"
1522 },
1523 "type": "array"
1524 },
1525 "updatedAt": {
1526 "format": "int64",
1527 "type": "integer"
1528 }
1529 },
1530 "required": [
1531 "cliVersion",
1532 "createdAt",
1533 "cwd",
1534 "ephemeral",
1535 "id",
1536 "modelProvider",
1537 "preview",
1538 "projectId",
1539 "sessionId",
1540 "source",
1541 "status",
1542 "turns",
1543 "updatedAt"
1544 ],
1545 "type": "object"
1546 },
1547 "ThreadActiveFlag": {
1548 "enum": [
1549 "waitingOnApproval",
1550 "waitingOnUserInput"
1551 ],
1552 "type": "string"
1553 },
1554 "ThreadEnvironment": {
1555 "properties": {
1556 "cwd": {
1557 "$ref": "#/definitions/LegacyAppPathString"
1558 },
1559 "environmentId": {
1560 "type": "string"
1561 },
1562 "runtimeWorkspaceRoots": {
1563 "items": {
1564 "$ref": "#/definitions/LegacyAppPathString"
1565 },
1566 "type": "array"
1567 }
1568 },
1569 "required": [
1570 "cwd",
1571 "environmentId",
1572 "runtimeWorkspaceRoots"
1573 ],
1574 "type": "object"
1575 },
1576 "ThreadExtra": {
1577 "type": "object"
1578 },
1579 "ThreadHistoryMode": {
1580 "enum": [
1581 "legacy",
1582 "paginated"
1583 ],
1584 "type": "string"
1585 },
1586 "ThreadId": {
1587 "type": "string"
1588 },
1589 "ThreadItem": {
1590 "oneOf": [
1591 {
1592 "properties": {
1593 "clientId": {
1594 "type": [
1595 "string",
1596 "null"
1597 ]
1598 },
1599 "content": {
1600 "items": {
1601 "$ref": "#/definitions/UserInput"
1602 },
1603 "type": "array"
1604 },
1605 "id": {
1606 "type": "string"
1607 },
1608 "type": {
1609 "enum": [
1610 "userMessage"
1611 ],
1612 "type": "string"
1613 }
1614 },
1615 "required": [
1616 "content",
1617 "id",
1618 "type"
1619 ],
1620 "type": "object"
1621 },
1622 {
1623 "properties": {
1624 "fragments": {
1625 "items": {
1626 "$ref": "#/definitions/HookPromptFragment"
1627 },
1628 "type": "array"
1629 },
1630 "id": {
1631 "type": "string"
1632 },
1633 "type": {
1634 "enum": [
1635 "hookPrompt"
1636 ],
1637 "type": "string"
1638 }
1639 },
1640 "required": [
1641 "fragments",
1642 "id",
1643 "type"
1644 ],
1645 "type": "object"
1646 },
1647 {
1648 "properties": {
1649 "delivery": {
1650 "anyOf": [
1651 {
1652 "$ref": "#/definitions/AgentMessageDelivery"
1653 },
1654 {
1655 "type": "null"
1656 }
1657 ],
1658 "default": null
1659 },
1660 "id": {
1661 "type": "string"
1662 },
1663 "memoryCitation": {
1664 "anyOf": [
1665 {
1666 "$ref": "#/definitions/MemoryCitation"
1667 },
1668 {
1669 "type": "null"
1670 }
1671 ],
1672 "default": null
1673 },
1674 "phase": {
1675 "anyOf": [
1676 {
1677 "$ref": "#/definitions/MessagePhase"
1678 },
1679 {
1680 "type": "null"
1681 }
1682 ],
1683 "default": null
1684 },
1685 "questions": {
1686 "default": null,
1687 "items": {
1688 "$ref": "#/definitions/AsyncUserInputQuestion"
1689 },
1690 "type": [
1691 "array",
1692 "null"
1693 ]
1694 },
1695 "text": {
1696 "type": "string"
1697 },
1698 "type": {
1699 "enum": [
1700 "agentMessage"
1701 ],
1702 "type": "string"
1703 }
1704 },
1705 "required": [
1706 "id",
1707 "text",
1708 "type"
1709 ],
1710 "type": "object"
1711 },
1712 {
1713 "properties": {
1714 "id": {
1715 "type": "string"
1716 },
1717 "name": {
1718 "type": "string"
1719 },
1720 "namespace": {
1721 "type": [
1722 "string",
1723 "null"
1724 ]
1725 },
1726 "output": {
1727 "$ref": "#/definitions/FunctionCallOutputBody"
1728 },
1729 "type": {
1730 "enum": [
1731 "functionCallOutput"
1732 ],
1733 "type": "string"
1734 }
1735 },
1736 "required": [
1737 "id",
1738 "name",
1739 "output",
1740 "type"
1741 ],
1742 "type": "object"
1743 },
1744 {
1745 "properties": {
1746 "id": {
1747 "type": "string"
1748 },
1749 "text": {
1750 "type": "string"
1751 },
1752 "type": {
1753 "enum": [
1754 "plan"
1755 ],
1756 "type": "string"
1757 }
1758 },
1759 "required": [
1760 "id",
1761 "text",
1762 "type"
1763 ],
1764 "type": "object"
1765 },
1766 {
1767 "properties": {
1768 "content": {
1769 "default": [],
1770 "items": {
1771 "type": "string"
1772 },
1773 "type": "array"
1774 },
1775 "id": {
1776 "type": "string"
1777 },
1778 "summary": {
1779 "default": [],
1780 "items": {
1781 "type": "string"
1782 },
1783 "type": "array"
1784 },
1785 "type": {
1786 "enum": [
1787 "reasoning"
1788 ],
1789 "type": "string"
1790 }
1791 },
1792 "required": [
1793 "id",
1794 "type"
1795 ],
1796 "type": "object"
1797 },
1798 {
1799 "properties": {
1800 "aggregatedOutput": {
1801 "type": [
1802 "string",
1803 "null"
1804 ]
1805 },
1806 "command": {
1807 "type": "string"
1808 },
1809 "commandActions": {
1810 "items": {
1811 "$ref": "#/definitions/CommandAction"
1812 },
1813 "type": "array"
1814 },
1815 "cwd": {
1816 "allOf": [
1817 {
1818 "$ref": "#/definitions/LegacyAppPathString"
1819 }
1820 ]
1821 },
1822 "durationMs": {
1823 "format": "int64",
1824 "type": [
1825 "integer",
1826 "null"
1827 ]
1828 },
1829 "exitCode": {
1830 "format": "int32",
1831 "type": [
1832 "integer",
1833 "null"
1834 ]
1835 },
1836 "id": {
1837 "type": "string"
1838 },
1839 "pluginId": {
1840 "default": null,
1841 "type": [
1842 "string",
1843 "null"
1844 ]
1845 },
1846 "processId": {
1847 "type": [
1848 "string",
1849 "null"
1850 ]
1851 },
1852 "scriptPath": {
1853 "default": null,
1854 "type": [
1855 "string",
1856 "null"
1857 ]
1858 },
1859 "source": {
1860 "allOf": [
1861 {
1862 "$ref": "#/definitions/CommandExecutionSource"
1863 }
1864 ],
1865 "default": "agent"
1866 },
1867 "status": {
1868 "$ref": "#/definitions/CommandExecutionStatus"
1869 },
1870 "type": {
1871 "enum": [
1872 "commandExecution"
1873 ],
1874 "type": "string"
1875 }
1876 },
1877 "required": [
1878 "command",
1879 "commandActions",
1880 "cwd",
1881 "id",
1882 "status",
1883 "type"
1884 ],
1885 "type": "object"
1886 },
1887 {
1888 "properties": {
1889 "changes": {
1890 "items": {
1891 "$ref": "#/definitions/FileUpdateChange"
1892 },
1893 "type": "array"
1894 },
1895 "id": {
1896 "type": "string"
1897 },
1898 "status": {
1899 "$ref": "#/definitions/PatchApplyStatus"
1900 },
1901 "type": {
1902 "enum": [
1903 "fileChange"
1904 ],
1905 "type": "string"
1906 }
1907 },
1908 "required": [
1909 "changes",
1910 "id",
1911 "status",
1912 "type"
1913 ],
1914 "type": "object"
1915 },
1916 {
1917 "properties": {
1918 "appContext": {
1919 "anyOf": [
1920 {
1921 "$ref": "#/definitions/McpToolCallAppContext"
1922 },
1923 {
1924 "type": "null"
1925 }
1926 ]
1927 },
1928 "arguments": true,
1929 "durationMs": {
1930 "format": "int64",
1931 "type": [
1932 "integer",
1933 "null"
1934 ]
1935 },
1936 "error": {
1937 "anyOf": [
1938 {
1939 "$ref": "#/definitions/McpToolCallError"
1940 },
1941 {
1942 "type": "null"
1943 }
1944 ]
1945 },
1946 "id": {
1947 "type": "string"
1948 },
1949 "mcpAppResourceUri": {
1950 "type": [
1951 "string",
1952 "null"
1953 ]
1954 },
1955 "mcpAppUi": {
1956 "anyOf": [
1957 {
1958 "$ref": "#/definitions/McpAppUi"
1959 },
1960 {
1961 "type": "null"
1962 }
1963 ]
1964 },
1965 "pluginId": {
1966 "type": [
1967 "string",
1968 "null"
1969 ]
1970 },
1971 "readOnlyHint": {
1972 "type": [
1973 "boolean",
1974 "null"
1975 ]
1976 },
1977 "result": {
1978 "anyOf": [
1979 {
1980 "$ref": "#/definitions/McpToolCallResult"
1981 },
1982 {
1983 "type": "null"
1984 }
1985 ]
1986 },
1987 "server": {
1988 "type": "string"
1989 },
1990 "status": {
1991 "$ref": "#/definitions/McpToolCallStatus"
1992 },
1993 "tool": {
1994 "type": "string"
1995 },
1996 "type": {
1997 "enum": [
1998 "mcpToolCall"
1999 ],
2000 "type": "string"
2001 }
2002 },
2003 "required": [
2004 "arguments",
2005 "id",
2006 "server",
2007 "status",
2008 "tool",
2009 "type"
2010 ],
2011 "type": "object"
2012 },
2013 {
2014 "properties": {
2015 "arguments": true,
2016 "contentItems": {
2017 "items": {
2018 "$ref": "#/definitions/DynamicToolCallOutputContentItem"
2019 },
2020 "type": [
2021 "array",
2022 "null"
2023 ]
2024 },
2025 "durationMs": {
2026 "format": "int64",
2027 "type": [
2028 "integer",
2029 "null"
2030 ]
2031 },
2032 "id": {
2033 "type": "string"
2034 },
2035 "namespace": {
2036 "type": [
2037 "string",
2038 "null"
2039 ]
2040 },
2041 "status": {
2042 "$ref": "#/definitions/DynamicToolCallStatus"
2043 },
2044 "success": {
2045 "type": [
2046 "boolean",
2047 "null"
2048 ]
2049 },
2050 "tool": {
2051 "type": "string"
2052 },
2053 "type": {
2054 "enum": [
2055 "dynamicToolCall"
2056 ],
2057 "type": "string"
2058 }
2059 },
2060 "required": [
2061 "arguments",
2062 "id",
2063 "status",
2064 "tool",
2065 "type"
2066 ],
2067 "type": "object"
2068 },
2069 {
2070 "properties": {
2071 "agentsStates": {
2072 "additionalProperties": {
2073 "$ref": "#/definitions/CollabAgentState"
2074 },
2075 "type": "object"
2076 },
2077 "id": {
2078 "type": "string"
2079 },
2080 "model": {
2081 "type": [
2082 "string",
2083 "null"
2084 ]
2085 },
2086 "prompt": {
2087 "type": [
2088 "string",
2089 "null"
2090 ]
2091 },
2092 "reasoningEffort": {
2093 "anyOf": [
2094 {
2095 "$ref": "#/definitions/ReasoningEffort"
2096 },
2097 {
2098 "type": "null"
2099 }
2100 ]
2101 },
2102 "receiverThreadIds": {
2103 "items": {
2104 "type": "string"
2105 },
2106 "type": "array"
2107 },
2108 "senderThreadId": {
2109 "type": "string"
2110 },
2111 "status": {
2112 "allOf": [
2113 {
2114 "$ref": "#/definitions/CollabAgentToolCallStatus"
2115 }
2116 ]
2117 },
2118 "tool": {
2119 "allOf": [
2120 {
2121 "$ref": "#/definitions/CollabAgentTool"
2122 }
2123 ]
2124 },
2125 "type": {
2126 "enum": [
2127 "collabAgentToolCall"
2128 ],
2129 "type": "string"
2130 }
2131 },
2132 "required": [
2133 "agentsStates",
2134 "id",
2135 "receiverThreadIds",
2136 "senderThreadId",
2137 "status",
2138 "tool",
2139 "type"
2140 ],
2141 "type": "object"
2142 },
2143 {
2144 "properties": {
2145 "agentPath": {
2146 "type": "string"
2147 },
2148 "agentThreadId": {
2149 "type": "string"
2150 },
2151 "id": {
2152 "type": "string"
2153 },
2154 "kind": {
2155 "$ref": "#/definitions/SubAgentActivityKind"
2156 },
2157 "model": {
2158 "type": [
2159 "string",
2160 "null"
2161 ]
2162 },
2163 "reasoningEffort": {
2164 "anyOf": [
2165 {
2166 "$ref": "#/definitions/ReasoningEffort"
2167 },
2168 {
2169 "type": "null"
2170 }
2171 ]
2172 },
2173 "type": {
2174 "enum": [
2175 "subAgentActivity"
2176 ],
2177 "type": "string"
2178 }
2179 },
2180 "required": [
2181 "agentPath",
2182 "agentThreadId",
2183 "id",
2184 "kind",
2185 "type"
2186 ],
2187 "type": "object"
2188 },
2189 {
2190 "properties": {
2191 "action": {
2192 "anyOf": [
2193 {
2194 "$ref": "#/definitions/WebSearchAction"
2195 },
2196 {
2197 "type": "null"
2198 }
2199 ]
2200 },
2201 "id": {
2202 "type": "string"
2203 },
2204 "query": {
2205 "type": "string"
2206 },
2207 "results": {
2208 "default": null,
2209 "items": true,
2210 "type": [
2211 "array",
2212 "null"
2213 ]
2214 },
2215 "type": {
2216 "enum": [
2217 "webSearch"
2218 ],
2219 "type": "string"
2220 }
2221 },
2222 "required": [
2223 "id",
2224 "query",
2225 "type"
2226 ],
2227 "type": "object"
2228 },
2229 {
2230 "properties": {
2231 "id": {
2232 "type": "string"
2233 },
2234 "path": {
2235 "$ref": "#/definitions/LegacyAppPathString"
2236 },
2237 "type": {
2238 "enum": [
2239 "imageView"
2240 ],
2241 "type": "string"
2242 }
2243 },
2244 "required": [
2245 "id",
2246 "path",
2247 "type"
2248 ],
2249 "type": "object"
2250 },
2251 {
2252 "properties": {
2253 "durationMs": {
2254 "format": "uint64",
2255 "minimum": 0.0,
2256 "type": "integer"
2257 },
2258 "id": {
2259 "type": "string"
2260 },
2261 "type": {
2262 "enum": [
2263 "sleep"
2264 ],
2265 "type": "string"
2266 }
2267 },
2268 "required": [
2269 "durationMs",
2270 "id",
2271 "type"
2272 ],
2273 "type": "object"
2274 },
2275 {
2276 "anyOf": [
2277 {
2278 "properties": {
2279 "fileId": {
2280 "type": "string"
2281 }
2282 },
2283 "required": [
2284 "fileId"
2285 ],
2286 "type": "object"
2287 },
2288 {
2289 "properties": {
2290 "result": {
2291 "type": "string"
2292 }
2293 },
2294 "required": [
2295 "result"
2296 ],
2297 "type": "object"
2298 }
2299 ],
2300 "properties": {
2301 "failure": {
2302 "anyOf": [
2303 {
2304 "$ref": "#/definitions/ImageGenerationFailure"
2305 },
2306 {
2307 "type": "null"
2308 }
2309 ],
2310 "default": null
2311 },
2312 "id": {
2313 "type": "string"
2314 },
2315 "inputImages": {
2316 "items": {
2317 "$ref": "#/definitions/ImageGenerationInputImage"
2318 },
2319 "type": "array"
2320 },
2321 "revisedPrompt": {
2322 "type": [
2323 "string",
2324 "null"
2325 ]
2326 },
2327 "savedPath": {
2328 "anyOf": [
2329 {
2330 "$ref": "#/definitions/AbsolutePathBuf"
2331 },
2332 {
2333 "type": "null"
2334 }
2335 ]
2336 },
2337 "status": {
2338 "type": "string"
2339 },
2340 "transparentBackground": {
2341 "default": null,
2342 "type": [
2343 "boolean",
2344 "null"
2345 ]
2346 },
2347 "type": {
2348 "enum": [
2349 "imageGeneration"
2350 ],
2351 "type": "string"
2352 }
2353 },
2354 "required": [
2355 "id",
2356 "status",
2357 "type"
2358 ],
2359 "type": "object"
2360 },
2361 {
2362 "properties": {
2363 "id": {
2364 "type": "string"
2365 },
2366 "review": {
2367 "type": "string"
2368 },
2369 "type": {
2370 "enum": [
2371 "enteredReviewMode"
2372 ],
2373 "type": "string"
2374 }
2375 },
2376 "required": [
2377 "id",
2378 "review",
2379 "type"
2380 ],
2381 "type": "object"
2382 },
2383 {
2384 "properties": {
2385 "id": {
2386 "type": "string"
2387 },
2388 "review": {
2389 "type": "string"
2390 },
2391 "type": {
2392 "enum": [
2393 "exitedReviewMode"
2394 ],
2395 "type": "string"
2396 }
2397 },
2398 "required": [
2399 "id",
2400 "review",
2401 "type"
2402 ],
2403 "type": "object"
2404 },
2405 {
2406 "properties": {
2407 "id": {
2408 "type": "string"
2409 },
2410 "type": {
2411 "enum": [
2412 "contextCompaction"
2413 ],
2414 "type": "string"
2415 }
2416 },
2417 "required": [
2418 "id",
2419 "type"
2420 ],
2421 "type": "object"
2422 }
2423 ]
2424 },
2425 "ThreadSection": {
2426 "properties": {
2427 "appearance": {
2428 "anyOf": [
2429 {
2430 "$ref": "#/definitions/ThreadSectionAppearance"
2431 },
2432 {
2433 "type": "null"
2434 }
2435 ],
2436 "default": null
2437 },
2438 "id": {
2439 "type": "string"
2440 },
2441 "name": {
2442 "type": "string"
2443 }
2444 },
2445 "required": [
2446 "id",
2447 "name"
2448 ],
2449 "type": "object"
2450 },
2451 "ThreadSectionAppearance": {
2452 "properties": {
2453 "color": {
2454 "type": [
2455 "string",
2456 "null"
2457 ]
2458 },
2459 "icon": {
2460 "type": [
2461 "string",
2462 "null"
2463 ]
2464 }
2465 },
2466 "type": "object"
2467 },
2468 "ThreadSource": {
2469 "type": "string"
2470 },
2471 "ThreadStatus": {
2472 "oneOf": [
2473 {
2474 "properties": {
2475 "type": {
2476 "enum": [
2477 "notLoaded"
2478 ],
2479 "type": "string"
2480 }
2481 },
2482 "required": [
2483 "type"
2484 ],
2485 "type": "object"
2486 },
2487 {
2488 "properties": {
2489 "type": {
2490 "enum": [
2491 "idle"
2492 ],
2493 "type": "string"
2494 }
2495 },
2496 "required": [
2497 "type"
2498 ],
2499 "type": "object"
2500 },
2501 {
2502 "properties": {
2503 "type": {
2504 "enum": [
2505 "systemError"
2506 ],
2507 "type": "string"
2508 }
2509 },
2510 "required": [
2511 "type"
2512 ],
2513 "type": "object"
2514 },
2515 {
2516 "properties": {
2517 "activeFlags": {
2518 "items": {
2519 "$ref": "#/definitions/ThreadActiveFlag"
2520 },
2521 "type": "array"
2522 },
2523 "type": {
2524 "enum": [
2525 "active"
2526 ],
2527 "type": "string"
2528 }
2529 },
2530 "required": [
2531 "activeFlags",
2532 "type"
2533 ],
2534 "type": "object"
2535 }
2536 ]
2537 },
2538 "Turn": {
2539 "properties": {
2540 "completedAt": {
2541 "format": "int64",
2542 "type": [
2543 "integer",
2544 "null"
2545 ]
2546 },
2547 "durationMs": {
2548 "format": "int64",
2549 "type": [
2550 "integer",
2551 "null"
2552 ]
2553 },
2554 "error": {
2555 "anyOf": [
2556 {
2557 "$ref": "#/definitions/TurnError"
2558 },
2559 {
2560 "type": "null"
2561 }
2562 ]
2563 },
2564 "id": {
2565 "type": "string"
2566 },
2567 "items": {
2568 "items": {
2569 "$ref": "#/definitions/ThreadItem"
2570 },
2571 "type": "array"
2572 },
2573 "itemsView": {
2574 "allOf": [
2575 {
2576 "$ref": "#/definitions/TurnItemsView"
2577 }
2578 ],
2579 "default": "full"
2580 },
2581 "rootTurnId": {
2582 "type": [
2583 "string",
2584 "null"
2585 ]
2586 },
2587 "startedAt": {
2588 "format": "int64",
2589 "type": [
2590 "integer",
2591 "null"
2592 ]
2593 },
2594 "status": {
2595 "$ref": "#/definitions/TurnStatus"
2596 }
2597 },
2598 "required": [
2599 "id",
2600 "items",
2601 "status"
2602 ],
2603 "type": "object"
2604 },
2605 "TurnError": {
2606 "properties": {
2607 "additionalDetails": {
2608 "default": null,
2609 "type": [
2610 "string",
2611 "null"
2612 ]
2613 },
2614 "codexErrorInfo": {
2615 "anyOf": [
2616 {
2617 "$ref": "#/definitions/CodexErrorInfo"
2618 },
2619 {
2620 "type": "null"
2621 }
2622 ]
2623 },
2624 "message": {
2625 "type": "string"
2626 },
2627 "misalignment": {
2628 "anyOf": [
2629 {
2630 "$ref": "#/definitions/MisalignmentErrorDetails"
2631 },
2632 {
2633 "type": "null"
2634 }
2635 ],
2636 "default": null
2637 }
2638 },
2639 "required": [
2640 "message"
2641 ],
2642 "type": "object"
2643 },
2644 "TurnItemsView": {
2645 "oneOf": [
2646 {
2647 "enum": [
2648 "notLoaded"
2649 ],
2650 "type": "string"
2651 },
2652 {
2653 "enum": [
2654 "summary"
2655 ],
2656 "type": "string"
2657 },
2658 {
2659 "enum": [
2660 "full"
2661 ],
2662 "type": "string"
2663 }
2664 ]
2665 },
2666 "TurnStatus": {
2667 "enum": [
2668 "completed",
2669 "interrupted",
2670 "failed",
2671 "inProgress"
2672 ],
2673 "type": "string"
2674 },
2675 "TurnsPage": {
2676 "properties": {
2677 "backwardsCursor": {
2678 "type": [
2679 "string",
2680 "null"
2681 ]
2682 },
2683 "data": {
2684 "items": {
2685 "$ref": "#/definitions/Turn"
2686 },
2687 "type": "array"
2688 },
2689 "nextCursor": {
2690 "type": [
2691 "string",
2692 "null"
2693 ]
2694 }
2695 },
2696 "required": [
2697 "data"
2698 ],
2699 "type": "object"
2700 },
2701 "UserInput": {
2702 "oneOf": [
2703 {
2704 "properties": {
2705 "text": {
2706 "type": "string"
2707 },
2708 "text_elements": {
2709 "default": [],
2710 "items": {
2711 "$ref": "#/definitions/TextElement"
2712 },
2713 "type": "array"
2714 },
2715 "type": {
2716 "enum": [
2717 "text"
2718 ],
2719 "type": "string"
2720 }
2721 },
2722 "required": [
2723 "text",
2724 "type"
2725 ],
2726 "type": "object"
2727 },
2728 {
2729 "anyOf": [
2730 {
2731 "properties": {
2732 "url": {
2733 "type": "string"
2734 }
2735 },
2736 "required": [
2737 "url"
2738 ],
2739 "type": "object"
2740 },
2741 {
2742 "properties": {
2743 "fileId": {
2744 "type": "string"
2745 }
2746 },
2747 "required": [
2748 "fileId"
2749 ],
2750 "type": "object"
2751 }
2752 ],
2753 "properties": {
2754 "detail": {
2755 "anyOf": [
2756 {
2757 "$ref": "#/definitions/ImageDetail"
2758 },
2759 {
2760 "type": "null"
2761 }
2762 ],
2763 "default": null
2764 },
2765 "type": {
2766 "enum": [
2767 "image"
2768 ],
2769 "type": "string"
2770 }
2771 },
2772 "required": [
2773 "type"
2774 ],
2775 "type": "object"
2776 },
2777 {
2778 "properties": {
2779 "detail": {
2780 "anyOf": [
2781 {
2782 "$ref": "#/definitions/ImageDetail"
2783 },
2784 {
2785 "type": "null"
2786 }
2787 ],
2788 "default": null
2789 },
2790 "path": {
2791 "type": "string"
2792 },
2793 "type": {
2794 "enum": [
2795 "localImage"
2796 ],
2797 "type": "string"
2798 }
2799 },
2800 "required": [
2801 "path",
2802 "type"
2803 ],
2804 "type": "object"
2805 },
2806 {
2807 "properties": {
2808 "type": {
2809 "enum": [
2810 "audio"
2811 ],
2812 "type": "string"
2813 },
2814 "url": {
2815 "type": "string"
2816 }
2817 },
2818 "required": [
2819 "type",
2820 "url"
2821 ],
2822 "type": "object"
2823 },
2824 {
2825 "properties": {
2826 "path": {
2827 "type": "string"
2828 },
2829 "type": {
2830 "enum": [
2831 "localAudio"
2832 ],
2833 "type": "string"
2834 }
2835 },
2836 "required": [
2837 "path",
2838 "type"
2839 ],
2840 "type": "object"
2841 },
2842 {
2843 "properties": {
2844 "name": {
2845 "type": "string"
2846 },
2847 "path": {
2848 "type": "string"
2849 },
2850 "type": {
2851 "enum": [
2852 "skill"
2853 ],
2854 "type": "string"
2855 }
2856 },
2857 "required": [
2858 "name",
2859 "path",
2860 "type"
2861 ],
2862 "type": "object"
2863 },
2864 {
2865 "properties": {
2866 "name": {
2867 "type": "string"
2868 },
2869 "path": {
2870 "type": "string"
2871 },
2872 "type": {
2873 "enum": [
2874 "mention"
2875 ],
2876 "type": "string"
2877 }
2878 },
2879 "required": [
2880 "name",
2881 "path",
2882 "type"
2883 ],
2884 "type": "object"
2885 }
2886 ]
2887 },
2888 "WebSearchAction": {
2889 "oneOf": [
2890 {
2891 "properties": {
2892 "queries": {
2893 "items": {
2894 "type": "string"
2895 },
2896 "type": [
2897 "array",
2898 "null"
2899 ]
2900 },
2901 "query": {
2902 "type": [
2903 "string",
2904 "null"
2905 ]
2906 },
2907 "type": {
2908 "enum": [
2909 "search"
2910 ],
2911 "type": "string"
2912 }
2913 },
2914 "required": [
2915 "type"
2916 ],
2917 "type": "object"
2918 },
2919 {
2920 "properties": {
2921 "type": {
2922 "enum": [
2923 "openPage"
2924 ],
2925 "type": "string"
2926 },
2927 "url": {
2928 "type": [
2929 "string",
2930 "null"
2931 ]
2932 }
2933 },
2934 "required": [
2935 "type"
2936 ],
2937 "type": "object"
2938 },
2939 {
2940 "properties": {
2941 "pattern": {
2942 "type": [
2943 "string",
2944 "null"
2945 ]
2946 },
2947 "type": {
2948 "enum": [
2949 "findInPage"
2950 ],
2951 "type": "string"
2952 },
2953 "url": {
2954 "type": [
2955 "string",
2956 "null"
2957 ]
2958 }
2959 },
2960 "required": [
2961 "type"
2962 ],
2963 "type": "object"
2964 },
2965 {
2966 "properties": {
2967 "type": {
2968 "enum": [
2969 "other"
2970 ],
2971 "type": "string"
2972 }
2973 },
2974 "required": [
2975 "type"
2976 ],
2977 "type": "object"
2978 }
2979 ]
2980 }
2981 },
2982 "properties": {
2983 "activePermissionProfile": {
2984 "anyOf": [
2985 {
2986 "$ref": "#/definitions/ActivePermissionProfile"
2987 },
2988 {
2989 "type": "null"
2990 }
2991 ],
2992 "default": null
2993 },
2994 "approvalPolicy": {
2995 "$ref": "#/definitions/AskForApproval"
2996 },
2997 "approvalsReviewer": {
2998 "allOf": [
2999 {
3000 "$ref": "#/definitions/ApprovalsReviewer"
3001 }
3002 ]
3003 },
3004 "collaborationMode": {
3005 "anyOf": [
3006 {
3007 "$ref": "#/definitions/CollaborationMode"
3008 },
3009 {
3010 "type": "null"
3011 }
3012 ]
3013 },
3014 "cwd": {
3015 "$ref": "#/definitions/AbsolutePathBuf"
3016 },
3017 "disabledPluginIds": {
3018 "default": [],
3019 "items": {
3020 "type": "string"
3021 },
3022 "type": "array"
3023 },
3024 "initialTurnsPage": {
3025 "anyOf": [
3026 {
3027 "$ref": "#/definitions/TurnsPage"
3028 },
3029 {
3030 "type": "null"
3031 }
3032 ],
3033 "default": null
3034 },
3035 "instructionSources": {
3036 "default": [],
3037 "items": {
3038 "$ref": "#/definitions/LegacyAppPathString"
3039 },
3040 "type": "array"
3041 },
3042 "itemsBackwardsCursor": {
3043 "default": null,
3044 "type": [
3045 "string",
3046 "null"
3047 ]
3048 },
3049 "model": {
3050 "type": "string"
3051 },
3052 "modelProvider": {
3053 "type": "string"
3054 },
3055 "multiAgentMode": {
3056 "allOf": [
3057 {
3058 "$ref": "#/definitions/MultiAgentMode"
3059 }
3060 ],
3061 "default": "explicitRequestOnly"
3062 },
3063 "reasoningEffort": {
3064 "anyOf": [
3065 {
3066 "$ref": "#/definitions/ReasoningEffort"
3067 },
3068 {
3069 "type": "null"
3070 }
3071 ]
3072 },
3073 "runtimeWorkspaceRoots": {
3074 "default": [],
3075 "items": {
3076 "$ref": "#/definitions/AbsolutePathBuf"
3077 },
3078 "type": "array"
3079 },
3080 "sandbox": {
3081 "allOf": [
3082 {
3083 "$ref": "#/definitions/SandboxPolicy"
3084 }
3085 ]
3086 },
3087 "serviceTier": {
3088 "type": [
3089 "string",
3090 "null"
3091 ]
3092 },
3093 "thread": {
3094 "$ref": "#/definitions/Thread"
3095 },
3096 "turnsBackwardsCursor": {
3097 "default": null,
3098 "type": [
3099 "string",
3100 "null"
3101 ]
3102 }
3103 },
3104 "required": [
3105 "approvalPolicy",
3106 "approvalsReviewer",
3107 "cwd",
3108 "model",
3109 "modelProvider",
3110 "sandbox",
3111 "thread"
3112 ],
3113 "type": "object"
3114}
3115