@gakr-gakr/codex 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.
Files changed (86) hide show
  1. package/autobot.plugin.json +374 -0
  2. package/doctor-contract-api.ts +68 -0
  3. package/harness.ts +72 -0
  4. package/index.ts +124 -0
  5. package/media-understanding-provider.ts +521 -0
  6. package/package.json +40 -0
  7. package/prompt-overlay.ts +21 -0
  8. package/provider-catalog.ts +83 -0
  9. package/provider-discovery.ts +45 -0
  10. package/provider.ts +243 -0
  11. package/src/app-server/app-inventory-cache.ts +324 -0
  12. package/src/app-server/approval-bridge.ts +1211 -0
  13. package/src/app-server/auth-bridge.ts +614 -0
  14. package/src/app-server/capabilities.ts +27 -0
  15. package/src/app-server/client-factory.ts +24 -0
  16. package/src/app-server/client.ts +715 -0
  17. package/src/app-server/compact.ts +512 -0
  18. package/src/app-server/computer-use.ts +683 -0
  19. package/src/app-server/config.ts +1038 -0
  20. package/src/app-server/context-engine-projection.ts +403 -0
  21. package/src/app-server/dynamic-tool-diagnostics.ts +73 -0
  22. package/src/app-server/dynamic-tool-profile.ts +70 -0
  23. package/src/app-server/dynamic-tools.ts +623 -0
  24. package/src/app-server/elicitation-bridge.ts +783 -0
  25. package/src/app-server/event-projector.ts +2065 -0
  26. package/src/app-server/image-payload-sanitizer.ts +167 -0
  27. package/src/app-server/local-runtime-attribution.ts +39 -0
  28. package/src/app-server/managed-binary.ts +193 -0
  29. package/src/app-server/models.ts +172 -0
  30. package/src/app-server/native-hook-relay.ts +150 -0
  31. package/src/app-server/native-subagent-task-mirror.ts +497 -0
  32. package/src/app-server/plugin-activation.ts +283 -0
  33. package/src/app-server/plugin-app-cache-key.ts +74 -0
  34. package/src/app-server/plugin-approval-roundtrip.ts +122 -0
  35. package/src/app-server/plugin-inventory.ts +357 -0
  36. package/src/app-server/plugin-thread-config.ts +455 -0
  37. package/src/app-server/protocol-generated/json/DynamicToolCallParams.json +33 -0
  38. package/src/app-server/protocol-generated/json/v2/ErrorNotification.json +199 -0
  39. package/src/app-server/protocol-generated/json/v2/GetAccountResponse.json +102 -0
  40. package/src/app-server/protocol-generated/json/v2/ModelListResponse.json +227 -0
  41. package/src/app-server/protocol-generated/json/v2/ThreadResumeResponse.json +2630 -0
  42. package/src/app-server/protocol-generated/json/v2/ThreadStartResponse.json +2630 -0
  43. package/src/app-server/protocol-generated/json/v2/TurnCompletedNotification.json +1659 -0
  44. package/src/app-server/protocol-generated/json/v2/TurnStartResponse.json +1655 -0
  45. package/src/app-server/protocol-validators.ts +203 -0
  46. package/src/app-server/protocol.ts +520 -0
  47. package/src/app-server/rate-limit-cache.ts +48 -0
  48. package/src/app-server/rate-limits.ts +583 -0
  49. package/src/app-server/request.ts +73 -0
  50. package/src/app-server/run-attempt.ts +4862 -0
  51. package/src/app-server/session-binding.ts +398 -0
  52. package/src/app-server/session-history.ts +44 -0
  53. package/src/app-server/shared-client.ts +289 -0
  54. package/src/app-server/side-question.ts +1009 -0
  55. package/src/app-server/test-support.ts +48 -0
  56. package/src/app-server/thread-lifecycle.ts +959 -0
  57. package/src/app-server/timeout.ts +9 -0
  58. package/src/app-server/tool-progress-normalization.ts +77 -0
  59. package/src/app-server/trajectory.ts +368 -0
  60. package/src/app-server/transcript-mirror.ts +208 -0
  61. package/src/app-server/transport-stdio.ts +107 -0
  62. package/src/app-server/transport-websocket.ts +90 -0
  63. package/src/app-server/transport.ts +117 -0
  64. package/src/app-server/user-input-bridge.ts +316 -0
  65. package/src/app-server/version.ts +4 -0
  66. package/src/app-server/vision-tools.ts +12 -0
  67. package/src/command-account.ts +544 -0
  68. package/src/command-formatters.ts +426 -0
  69. package/src/command-handlers.ts +2021 -0
  70. package/src/command-plugins-management.ts +137 -0
  71. package/src/command-rpc.ts +142 -0
  72. package/src/commands.ts +65 -0
  73. package/src/conversation-binding-data.ts +124 -0
  74. package/src/conversation-binding.ts +561 -0
  75. package/src/conversation-control.ts +303 -0
  76. package/src/conversation-turn-collector.ts +186 -0
  77. package/src/conversation-turn-input.ts +106 -0
  78. package/src/migration/apply.ts +501 -0
  79. package/src/migration/helpers.ts +55 -0
  80. package/src/migration/plan.ts +461 -0
  81. package/src/migration/provider.ts +41 -0
  82. package/src/migration/source.ts +643 -0
  83. package/src/migration/targets.ts +25 -0
  84. package/src/node-cli-sessions.ts +711 -0
  85. package/test-api.ts +95 -0
  86. package/tsconfig.json +16 -0
@@ -0,0 +1,2630 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "ThreadResumeResponse",
4
+ "type": "object",
5
+ "required": [
6
+ "approvalPolicy",
7
+ "approvalsReviewer",
8
+ "cwd",
9
+ "model",
10
+ "modelProvider",
11
+ "sandbox",
12
+ "thread"
13
+ ],
14
+ "properties": {
15
+ "activePermissionProfile": {
16
+ "description": "Named or implicit built-in profile that produced the active permissions, when known.",
17
+ "default": null,
18
+ "anyOf": [
19
+ {
20
+ "$ref": "#/definitions/ActivePermissionProfile"
21
+ },
22
+ {
23
+ "type": "null"
24
+ }
25
+ ]
26
+ },
27
+ "approvalPolicy": {
28
+ "$ref": "#/definitions/AskForApproval"
29
+ },
30
+ "approvalsReviewer": {
31
+ "description": "Reviewer currently used for approval requests on this thread.",
32
+ "allOf": [
33
+ {
34
+ "$ref": "#/definitions/ApprovalsReviewer"
35
+ }
36
+ ]
37
+ },
38
+ "cwd": {
39
+ "$ref": "#/definitions/AbsolutePathBuf"
40
+ },
41
+ "instructionSources": {
42
+ "description": "Instruction source files currently loaded for this thread.",
43
+ "default": [],
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "#/definitions/AbsolutePathBuf"
47
+ }
48
+ },
49
+ "model": {
50
+ "type": "string"
51
+ },
52
+ "modelProvider": {
53
+ "type": "string"
54
+ },
55
+ "permissionProfile": {
56
+ "description": "Full active permissions for this thread. `activePermissionProfile` carries display/provenance metadata for this runtime profile.",
57
+ "default": null,
58
+ "anyOf": [
59
+ {
60
+ "$ref": "#/definitions/PermissionProfile"
61
+ },
62
+ {
63
+ "type": "null"
64
+ }
65
+ ]
66
+ },
67
+ "reasoningEffort": {
68
+ "anyOf": [
69
+ {
70
+ "$ref": "#/definitions/ReasoningEffort"
71
+ },
72
+ {
73
+ "type": "null"
74
+ }
75
+ ]
76
+ },
77
+ "runtimeWorkspaceRoots": {
78
+ "description": "Thread-scoped runtime workspace roots used to materialize `:workspace_roots`.",
79
+ "default": [],
80
+ "type": "array",
81
+ "items": {
82
+ "$ref": "#/definitions/AbsolutePathBuf"
83
+ }
84
+ },
85
+ "sandbox": {
86
+ "description": "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `permissionProfile` when they need exact runtime permissions.",
87
+ "allOf": [
88
+ {
89
+ "$ref": "#/definitions/SandboxPolicy"
90
+ }
91
+ ]
92
+ },
93
+ "serviceTier": {
94
+ "type": [
95
+ "string",
96
+ "null"
97
+ ]
98
+ },
99
+ "thread": {
100
+ "$ref": "#/definitions/Thread"
101
+ }
102
+ },
103
+ "definitions": {
104
+ "AbsolutePathBuf": {
105
+ "description": "A path that is guaranteed to be absolute and normalized (though it is not guaranteed to be canonicalized or exist on the filesystem).\n\nIMPORTANT: When deserializing an `AbsolutePathBuf`, a base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path being deserialized is already absolute.",
106
+ "type": "string"
107
+ },
108
+ "ActivePermissionProfile": {
109
+ "type": "object",
110
+ "required": [
111
+ "id"
112
+ ],
113
+ "properties": {
114
+ "extends": {
115
+ "description": "Parent profile identifier once permissions profiles support inheritance. This is currently always `null`.",
116
+ "default": null,
117
+ "type": [
118
+ "string",
119
+ "null"
120
+ ]
121
+ },
122
+ "id": {
123
+ "description": "Identifier from `default_permissions` or the implicit built-in default, such as `:workspace` or a user-defined `[permissions.<id>]` profile.",
124
+ "type": "string"
125
+ }
126
+ }
127
+ },
128
+ "AgentPath": {
129
+ "type": "string"
130
+ },
131
+ "ApprovalsReviewer": {
132
+ "description": "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
133
+ "type": "string",
134
+ "enum": [
135
+ "user",
136
+ "auto_review",
137
+ "guardian_subagent"
138
+ ]
139
+ },
140
+ "AskForApproval": {
141
+ "oneOf": [
142
+ {
143
+ "type": "string",
144
+ "enum": [
145
+ "untrusted",
146
+ "on-failure",
147
+ "on-request",
148
+ "never"
149
+ ]
150
+ },
151
+ {
152
+ "type": "object",
153
+ "required": [
154
+ "granular"
155
+ ],
156
+ "properties": {
157
+ "granular": {
158
+ "type": "object",
159
+ "required": [
160
+ "mcp_elicitations",
161
+ "rules",
162
+ "sandbox_approval"
163
+ ],
164
+ "properties": {
165
+ "mcp_elicitations": {
166
+ "type": "boolean"
167
+ },
168
+ "request_permissions": {
169
+ "default": false,
170
+ "type": "boolean"
171
+ },
172
+ "rules": {
173
+ "type": "boolean"
174
+ },
175
+ "sandbox_approval": {
176
+ "type": "boolean"
177
+ },
178
+ "skill_approval": {
179
+ "default": false,
180
+ "type": "boolean"
181
+ }
182
+ }
183
+ }
184
+ },
185
+ "additionalProperties": false,
186
+ "title": "GranularAskForApproval"
187
+ }
188
+ ]
189
+ },
190
+ "ByteRange": {
191
+ "type": "object",
192
+ "required": [
193
+ "end",
194
+ "start"
195
+ ],
196
+ "properties": {
197
+ "end": {
198
+ "type": "integer",
199
+ "format": "uint",
200
+ "minimum": 0
201
+ },
202
+ "start": {
203
+ "type": "integer",
204
+ "format": "uint",
205
+ "minimum": 0
206
+ }
207
+ }
208
+ },
209
+ "CodexErrorInfo": {
210
+ "description": "This translation layer make sure that we expose codex error code in camel case.\n\nWhen an upstream HTTP status is available (for example, from the Responses API or a provider), it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.",
211
+ "oneOf": [
212
+ {
213
+ "type": "string",
214
+ "enum": [
215
+ "contextWindowExceeded",
216
+ "usageLimitExceeded",
217
+ "serverOverloaded",
218
+ "cyberPolicy",
219
+ "internalServerError",
220
+ "unauthorized",
221
+ "badRequest",
222
+ "threadRollbackFailed",
223
+ "sandboxError",
224
+ "other"
225
+ ]
226
+ },
227
+ {
228
+ "type": "object",
229
+ "required": [
230
+ "httpConnectionFailed"
231
+ ],
232
+ "properties": {
233
+ "httpConnectionFailed": {
234
+ "type": "object",
235
+ "properties": {
236
+ "httpStatusCode": {
237
+ "type": [
238
+ "integer",
239
+ "null"
240
+ ],
241
+ "format": "uint16",
242
+ "minimum": 0
243
+ }
244
+ }
245
+ }
246
+ },
247
+ "additionalProperties": false,
248
+ "title": "HttpConnectionFailedCodexErrorInfo"
249
+ },
250
+ {
251
+ "description": "Failed to connect to the response SSE stream.",
252
+ "type": "object",
253
+ "required": [
254
+ "responseStreamConnectionFailed"
255
+ ],
256
+ "properties": {
257
+ "responseStreamConnectionFailed": {
258
+ "type": "object",
259
+ "properties": {
260
+ "httpStatusCode": {
261
+ "type": [
262
+ "integer",
263
+ "null"
264
+ ],
265
+ "format": "uint16",
266
+ "minimum": 0
267
+ }
268
+ }
269
+ }
270
+ },
271
+ "additionalProperties": false,
272
+ "title": "ResponseStreamConnectionFailedCodexErrorInfo"
273
+ },
274
+ {
275
+ "description": "The response SSE stream disconnected in the middle of a turn before completion.",
276
+ "type": "object",
277
+ "required": [
278
+ "responseStreamDisconnected"
279
+ ],
280
+ "properties": {
281
+ "responseStreamDisconnected": {
282
+ "type": "object",
283
+ "properties": {
284
+ "httpStatusCode": {
285
+ "type": [
286
+ "integer",
287
+ "null"
288
+ ],
289
+ "format": "uint16",
290
+ "minimum": 0
291
+ }
292
+ }
293
+ }
294
+ },
295
+ "additionalProperties": false,
296
+ "title": "ResponseStreamDisconnectedCodexErrorInfo"
297
+ },
298
+ {
299
+ "description": "Reached the retry limit for responses.",
300
+ "type": "object",
301
+ "required": [
302
+ "responseTooManyFailedAttempts"
303
+ ],
304
+ "properties": {
305
+ "responseTooManyFailedAttempts": {
306
+ "type": "object",
307
+ "properties": {
308
+ "httpStatusCode": {
309
+ "type": [
310
+ "integer",
311
+ "null"
312
+ ],
313
+ "format": "uint16",
314
+ "minimum": 0
315
+ }
316
+ }
317
+ }
318
+ },
319
+ "additionalProperties": false,
320
+ "title": "ResponseTooManyFailedAttemptsCodexErrorInfo"
321
+ },
322
+ {
323
+ "description": "Returned when `turn/start` or `turn/steer` is submitted while the current active turn cannot accept same-turn steering, for example `/review` or manual `/compact`.",
324
+ "type": "object",
325
+ "required": [
326
+ "activeTurnNotSteerable"
327
+ ],
328
+ "properties": {
329
+ "activeTurnNotSteerable": {
330
+ "type": "object",
331
+ "required": [
332
+ "turnKind"
333
+ ],
334
+ "properties": {
335
+ "turnKind": {
336
+ "$ref": "#/definitions/NonSteerableTurnKind"
337
+ }
338
+ }
339
+ }
340
+ },
341
+ "additionalProperties": false,
342
+ "title": "ActiveTurnNotSteerableCodexErrorInfo"
343
+ }
344
+ ]
345
+ },
346
+ "CollabAgentState": {
347
+ "type": "object",
348
+ "required": [
349
+ "status"
350
+ ],
351
+ "properties": {
352
+ "message": {
353
+ "type": [
354
+ "string",
355
+ "null"
356
+ ]
357
+ },
358
+ "status": {
359
+ "$ref": "#/definitions/CollabAgentStatus"
360
+ }
361
+ }
362
+ },
363
+ "CollabAgentStatus": {
364
+ "type": "string",
365
+ "enum": [
366
+ "pendingInit",
367
+ "running",
368
+ "interrupted",
369
+ "completed",
370
+ "errored",
371
+ "shutdown",
372
+ "notFound"
373
+ ]
374
+ },
375
+ "CollabAgentTool": {
376
+ "type": "string",
377
+ "enum": [
378
+ "spawnAgent",
379
+ "sendInput",
380
+ "resumeAgent",
381
+ "wait",
382
+ "closeAgent"
383
+ ]
384
+ },
385
+ "CollabAgentToolCallStatus": {
386
+ "type": "string",
387
+ "enum": [
388
+ "inProgress",
389
+ "completed",
390
+ "failed"
391
+ ]
392
+ },
393
+ "CommandAction": {
394
+ "oneOf": [
395
+ {
396
+ "type": "object",
397
+ "required": [
398
+ "command",
399
+ "name",
400
+ "path",
401
+ "type"
402
+ ],
403
+ "properties": {
404
+ "command": {
405
+ "type": "string"
406
+ },
407
+ "name": {
408
+ "type": "string"
409
+ },
410
+ "path": {
411
+ "$ref": "#/definitions/AbsolutePathBuf"
412
+ },
413
+ "type": {
414
+ "type": "string",
415
+ "enum": [
416
+ "read"
417
+ ],
418
+ "title": "ReadCommandActionType"
419
+ }
420
+ },
421
+ "title": "ReadCommandAction"
422
+ },
423
+ {
424
+ "type": "object",
425
+ "required": [
426
+ "command",
427
+ "type"
428
+ ],
429
+ "properties": {
430
+ "command": {
431
+ "type": "string"
432
+ },
433
+ "path": {
434
+ "type": [
435
+ "string",
436
+ "null"
437
+ ]
438
+ },
439
+ "type": {
440
+ "type": "string",
441
+ "enum": [
442
+ "listFiles"
443
+ ],
444
+ "title": "ListFilesCommandActionType"
445
+ }
446
+ },
447
+ "title": "ListFilesCommandAction"
448
+ },
449
+ {
450
+ "type": "object",
451
+ "required": [
452
+ "command",
453
+ "type"
454
+ ],
455
+ "properties": {
456
+ "command": {
457
+ "type": "string"
458
+ },
459
+ "path": {
460
+ "type": [
461
+ "string",
462
+ "null"
463
+ ]
464
+ },
465
+ "query": {
466
+ "type": [
467
+ "string",
468
+ "null"
469
+ ]
470
+ },
471
+ "type": {
472
+ "type": "string",
473
+ "enum": [
474
+ "search"
475
+ ],
476
+ "title": "SearchCommandActionType"
477
+ }
478
+ },
479
+ "title": "SearchCommandAction"
480
+ },
481
+ {
482
+ "type": "object",
483
+ "required": [
484
+ "command",
485
+ "type"
486
+ ],
487
+ "properties": {
488
+ "command": {
489
+ "type": "string"
490
+ },
491
+ "type": {
492
+ "type": "string",
493
+ "enum": [
494
+ "unknown"
495
+ ],
496
+ "title": "UnknownCommandActionType"
497
+ }
498
+ },
499
+ "title": "UnknownCommandAction"
500
+ }
501
+ ]
502
+ },
503
+ "CommandExecutionSource": {
504
+ "type": "string",
505
+ "enum": [
506
+ "agent",
507
+ "userShell",
508
+ "unifiedExecStartup",
509
+ "unifiedExecInteraction"
510
+ ]
511
+ },
512
+ "CommandExecutionStatus": {
513
+ "type": "string",
514
+ "enum": [
515
+ "inProgress",
516
+ "completed",
517
+ "failed",
518
+ "declined"
519
+ ]
520
+ },
521
+ "DynamicToolCallOutputContentItem": {
522
+ "oneOf": [
523
+ {
524
+ "type": "object",
525
+ "required": [
526
+ "text",
527
+ "type"
528
+ ],
529
+ "properties": {
530
+ "text": {
531
+ "type": "string"
532
+ },
533
+ "type": {
534
+ "type": "string",
535
+ "enum": [
536
+ "inputText"
537
+ ],
538
+ "title": "InputTextDynamicToolCallOutputContentItemType"
539
+ }
540
+ },
541
+ "title": "InputTextDynamicToolCallOutputContentItem"
542
+ },
543
+ {
544
+ "type": "object",
545
+ "required": [
546
+ "imageUrl",
547
+ "type"
548
+ ],
549
+ "properties": {
550
+ "imageUrl": {
551
+ "type": "string"
552
+ },
553
+ "type": {
554
+ "type": "string",
555
+ "enum": [
556
+ "inputImage"
557
+ ],
558
+ "title": "InputImageDynamicToolCallOutputContentItemType"
559
+ }
560
+ },
561
+ "title": "InputImageDynamicToolCallOutputContentItem"
562
+ }
563
+ ]
564
+ },
565
+ "DynamicToolCallStatus": {
566
+ "type": "string",
567
+ "enum": [
568
+ "inProgress",
569
+ "completed",
570
+ "failed"
571
+ ]
572
+ },
573
+ "FileSystemAccessMode": {
574
+ "type": "string",
575
+ "enum": [
576
+ "read",
577
+ "write",
578
+ "none"
579
+ ]
580
+ },
581
+ "FileSystemPath": {
582
+ "oneOf": [
583
+ {
584
+ "type": "object",
585
+ "required": [
586
+ "path",
587
+ "type"
588
+ ],
589
+ "properties": {
590
+ "path": {
591
+ "$ref": "#/definitions/AbsolutePathBuf"
592
+ },
593
+ "type": {
594
+ "type": "string",
595
+ "enum": [
596
+ "path"
597
+ ],
598
+ "title": "PathFileSystemPathType"
599
+ }
600
+ },
601
+ "title": "PathFileSystemPath"
602
+ },
603
+ {
604
+ "type": "object",
605
+ "required": [
606
+ "pattern",
607
+ "type"
608
+ ],
609
+ "properties": {
610
+ "pattern": {
611
+ "type": "string"
612
+ },
613
+ "type": {
614
+ "type": "string",
615
+ "enum": [
616
+ "glob_pattern"
617
+ ],
618
+ "title": "GlobPatternFileSystemPathType"
619
+ }
620
+ },
621
+ "title": "GlobPatternFileSystemPath"
622
+ },
623
+ {
624
+ "type": "object",
625
+ "required": [
626
+ "type",
627
+ "value"
628
+ ],
629
+ "properties": {
630
+ "type": {
631
+ "type": "string",
632
+ "enum": [
633
+ "special"
634
+ ],
635
+ "title": "SpecialFileSystemPathType"
636
+ },
637
+ "value": {
638
+ "$ref": "#/definitions/FileSystemSpecialPath"
639
+ }
640
+ },
641
+ "title": "SpecialFileSystemPath"
642
+ }
643
+ ]
644
+ },
645
+ "FileSystemSandboxEntry": {
646
+ "type": "object",
647
+ "required": [
648
+ "access",
649
+ "path"
650
+ ],
651
+ "properties": {
652
+ "access": {
653
+ "$ref": "#/definitions/FileSystemAccessMode"
654
+ },
655
+ "path": {
656
+ "$ref": "#/definitions/FileSystemPath"
657
+ }
658
+ }
659
+ },
660
+ "FileSystemSpecialPath": {
661
+ "oneOf": [
662
+ {
663
+ "type": "object",
664
+ "required": [
665
+ "kind"
666
+ ],
667
+ "properties": {
668
+ "kind": {
669
+ "type": "string",
670
+ "enum": [
671
+ "root"
672
+ ]
673
+ }
674
+ },
675
+ "title": "RootFileSystemSpecialPath"
676
+ },
677
+ {
678
+ "type": "object",
679
+ "required": [
680
+ "kind"
681
+ ],
682
+ "properties": {
683
+ "kind": {
684
+ "type": "string",
685
+ "enum": [
686
+ "minimal"
687
+ ]
688
+ }
689
+ },
690
+ "title": "MinimalFileSystemSpecialPath"
691
+ },
692
+ {
693
+ "type": "object",
694
+ "required": [
695
+ "kind"
696
+ ],
697
+ "properties": {
698
+ "kind": {
699
+ "type": "string",
700
+ "enum": [
701
+ "project_roots"
702
+ ]
703
+ },
704
+ "subpath": {
705
+ "type": [
706
+ "string",
707
+ "null"
708
+ ]
709
+ }
710
+ },
711
+ "title": "KindFileSystemSpecialPath"
712
+ },
713
+ {
714
+ "type": "object",
715
+ "required": [
716
+ "kind"
717
+ ],
718
+ "properties": {
719
+ "kind": {
720
+ "type": "string",
721
+ "enum": [
722
+ "tmpdir"
723
+ ]
724
+ }
725
+ },
726
+ "title": "TmpdirFileSystemSpecialPath"
727
+ },
728
+ {
729
+ "type": "object",
730
+ "required": [
731
+ "kind"
732
+ ],
733
+ "properties": {
734
+ "kind": {
735
+ "type": "string",
736
+ "enum": [
737
+ "slash_tmp"
738
+ ]
739
+ }
740
+ },
741
+ "title": "SlashTmpFileSystemSpecialPath"
742
+ },
743
+ {
744
+ "type": "object",
745
+ "required": [
746
+ "kind",
747
+ "path"
748
+ ],
749
+ "properties": {
750
+ "kind": {
751
+ "type": "string",
752
+ "enum": [
753
+ "unknown"
754
+ ]
755
+ },
756
+ "path": {
757
+ "type": "string"
758
+ },
759
+ "subpath": {
760
+ "type": [
761
+ "string",
762
+ "null"
763
+ ]
764
+ }
765
+ }
766
+ }
767
+ ]
768
+ },
769
+ "FileUpdateChange": {
770
+ "type": "object",
771
+ "required": [
772
+ "diff",
773
+ "kind",
774
+ "path"
775
+ ],
776
+ "properties": {
777
+ "diff": {
778
+ "type": "string"
779
+ },
780
+ "kind": {
781
+ "$ref": "#/definitions/PatchChangeKind"
782
+ },
783
+ "path": {
784
+ "type": "string"
785
+ }
786
+ }
787
+ },
788
+ "GitInfo": {
789
+ "type": "object",
790
+ "properties": {
791
+ "branch": {
792
+ "type": [
793
+ "string",
794
+ "null"
795
+ ]
796
+ },
797
+ "originUrl": {
798
+ "type": [
799
+ "string",
800
+ "null"
801
+ ]
802
+ },
803
+ "sha": {
804
+ "type": [
805
+ "string",
806
+ "null"
807
+ ]
808
+ }
809
+ }
810
+ },
811
+ "HookPromptFragment": {
812
+ "type": "object",
813
+ "required": [
814
+ "hookRunId",
815
+ "text"
816
+ ],
817
+ "properties": {
818
+ "hookRunId": {
819
+ "type": "string"
820
+ },
821
+ "text": {
822
+ "type": "string"
823
+ }
824
+ }
825
+ },
826
+ "McpToolCallError": {
827
+ "type": "object",
828
+ "required": [
829
+ "message"
830
+ ],
831
+ "properties": {
832
+ "message": {
833
+ "type": "string"
834
+ }
835
+ }
836
+ },
837
+ "McpToolCallResult": {
838
+ "type": "object",
839
+ "required": [
840
+ "content"
841
+ ],
842
+ "properties": {
843
+ "_meta": true,
844
+ "content": {
845
+ "type": "array",
846
+ "items": true
847
+ },
848
+ "structuredContent": true
849
+ }
850
+ },
851
+ "McpToolCallStatus": {
852
+ "type": "string",
853
+ "enum": [
854
+ "inProgress",
855
+ "completed",
856
+ "failed"
857
+ ]
858
+ },
859
+ "MemoryCitation": {
860
+ "type": "object",
861
+ "required": [
862
+ "entries",
863
+ "threadIds"
864
+ ],
865
+ "properties": {
866
+ "entries": {
867
+ "type": "array",
868
+ "items": {
869
+ "$ref": "#/definitions/MemoryCitationEntry"
870
+ }
871
+ },
872
+ "threadIds": {
873
+ "type": "array",
874
+ "items": {
875
+ "type": "string"
876
+ }
877
+ }
878
+ }
879
+ },
880
+ "MemoryCitationEntry": {
881
+ "type": "object",
882
+ "required": [
883
+ "lineEnd",
884
+ "lineStart",
885
+ "note",
886
+ "path"
887
+ ],
888
+ "properties": {
889
+ "lineEnd": {
890
+ "type": "integer",
891
+ "format": "uint32",
892
+ "minimum": 0
893
+ },
894
+ "lineStart": {
895
+ "type": "integer",
896
+ "format": "uint32",
897
+ "minimum": 0
898
+ },
899
+ "note": {
900
+ "type": "string"
901
+ },
902
+ "path": {
903
+ "type": "string"
904
+ }
905
+ }
906
+ },
907
+ "MessagePhase": {
908
+ "description": "Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.",
909
+ "oneOf": [
910
+ {
911
+ "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",
912
+ "type": "string",
913
+ "enum": [
914
+ "commentary"
915
+ ]
916
+ },
917
+ {
918
+ "description": "The assistant's terminal answer text for the current turn.",
919
+ "type": "string",
920
+ "enum": [
921
+ "final_answer"
922
+ ]
923
+ }
924
+ ]
925
+ },
926
+ "NetworkAccess": {
927
+ "type": "string",
928
+ "enum": [
929
+ "restricted",
930
+ "enabled"
931
+ ]
932
+ },
933
+ "NonSteerableTurnKind": {
934
+ "type": "string",
935
+ "enum": [
936
+ "review",
937
+ "compact"
938
+ ]
939
+ },
940
+ "PatchApplyStatus": {
941
+ "type": "string",
942
+ "enum": [
943
+ "inProgress",
944
+ "completed",
945
+ "failed",
946
+ "declined"
947
+ ]
948
+ },
949
+ "PatchChangeKind": {
950
+ "oneOf": [
951
+ {
952
+ "type": "object",
953
+ "required": [
954
+ "type"
955
+ ],
956
+ "properties": {
957
+ "type": {
958
+ "type": "string",
959
+ "enum": [
960
+ "add"
961
+ ],
962
+ "title": "AddPatchChangeKindType"
963
+ }
964
+ },
965
+ "title": "AddPatchChangeKind"
966
+ },
967
+ {
968
+ "type": "object",
969
+ "required": [
970
+ "type"
971
+ ],
972
+ "properties": {
973
+ "type": {
974
+ "type": "string",
975
+ "enum": [
976
+ "delete"
977
+ ],
978
+ "title": "DeletePatchChangeKindType"
979
+ }
980
+ },
981
+ "title": "DeletePatchChangeKind"
982
+ },
983
+ {
984
+ "type": "object",
985
+ "required": [
986
+ "type"
987
+ ],
988
+ "properties": {
989
+ "move_path": {
990
+ "type": [
991
+ "string",
992
+ "null"
993
+ ]
994
+ },
995
+ "type": {
996
+ "type": "string",
997
+ "enum": [
998
+ "update"
999
+ ],
1000
+ "title": "UpdatePatchChangeKindType"
1001
+ }
1002
+ },
1003
+ "title": "UpdatePatchChangeKind"
1004
+ }
1005
+ ]
1006
+ },
1007
+ "PermissionProfile": {
1008
+ "oneOf": [
1009
+ {
1010
+ "description": "Codex owns sandbox construction for this profile.",
1011
+ "type": "object",
1012
+ "required": [
1013
+ "fileSystem",
1014
+ "network",
1015
+ "type"
1016
+ ],
1017
+ "properties": {
1018
+ "fileSystem": {
1019
+ "$ref": "#/definitions/PermissionProfileFileSystemPermissions"
1020
+ },
1021
+ "network": {
1022
+ "$ref": "#/definitions/PermissionProfileNetworkPermissions"
1023
+ },
1024
+ "type": {
1025
+ "type": "string",
1026
+ "enum": [
1027
+ "managed"
1028
+ ],
1029
+ "title": "ManagedPermissionProfileType"
1030
+ }
1031
+ },
1032
+ "title": "ManagedPermissionProfile"
1033
+ },
1034
+ {
1035
+ "description": "Do not apply an outer sandbox.",
1036
+ "type": "object",
1037
+ "required": [
1038
+ "type"
1039
+ ],
1040
+ "properties": {
1041
+ "type": {
1042
+ "type": "string",
1043
+ "enum": [
1044
+ "disabled"
1045
+ ],
1046
+ "title": "DisabledPermissionProfileType"
1047
+ }
1048
+ },
1049
+ "title": "DisabledPermissionProfile"
1050
+ },
1051
+ {
1052
+ "description": "Filesystem isolation is enforced by an external caller.",
1053
+ "type": "object",
1054
+ "required": [
1055
+ "network",
1056
+ "type"
1057
+ ],
1058
+ "properties": {
1059
+ "network": {
1060
+ "$ref": "#/definitions/PermissionProfileNetworkPermissions"
1061
+ },
1062
+ "type": {
1063
+ "type": "string",
1064
+ "enum": [
1065
+ "external"
1066
+ ],
1067
+ "title": "ExternalPermissionProfileType"
1068
+ }
1069
+ },
1070
+ "title": "ExternalPermissionProfile"
1071
+ }
1072
+ ]
1073
+ },
1074
+ "PermissionProfileFileSystemPermissions": {
1075
+ "oneOf": [
1076
+ {
1077
+ "type": "object",
1078
+ "required": [
1079
+ "entries",
1080
+ "type"
1081
+ ],
1082
+ "properties": {
1083
+ "entries": {
1084
+ "type": "array",
1085
+ "items": {
1086
+ "$ref": "#/definitions/FileSystemSandboxEntry"
1087
+ }
1088
+ },
1089
+ "globScanMaxDepth": {
1090
+ "type": [
1091
+ "integer",
1092
+ "null"
1093
+ ],
1094
+ "format": "uint",
1095
+ "minimum": 1
1096
+ },
1097
+ "type": {
1098
+ "type": "string",
1099
+ "enum": [
1100
+ "restricted"
1101
+ ],
1102
+ "title": "RestrictedPermissionProfileFileSystemPermissionsType"
1103
+ }
1104
+ },
1105
+ "title": "RestrictedPermissionProfileFileSystemPermissions"
1106
+ },
1107
+ {
1108
+ "type": "object",
1109
+ "required": [
1110
+ "type"
1111
+ ],
1112
+ "properties": {
1113
+ "type": {
1114
+ "type": "string",
1115
+ "enum": [
1116
+ "unrestricted"
1117
+ ],
1118
+ "title": "UnrestrictedPermissionProfileFileSystemPermissionsType"
1119
+ }
1120
+ },
1121
+ "title": "UnrestrictedPermissionProfileFileSystemPermissions"
1122
+ }
1123
+ ]
1124
+ },
1125
+ "PermissionProfileNetworkPermissions": {
1126
+ "type": "object",
1127
+ "required": [
1128
+ "enabled"
1129
+ ],
1130
+ "properties": {
1131
+ "enabled": {
1132
+ "type": "boolean"
1133
+ }
1134
+ }
1135
+ },
1136
+ "ReasoningEffort": {
1137
+ "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
1138
+ "type": "string",
1139
+ "enum": [
1140
+ "none",
1141
+ "minimal",
1142
+ "low",
1143
+ "medium",
1144
+ "high",
1145
+ "xhigh"
1146
+ ]
1147
+ },
1148
+ "SandboxPolicy": {
1149
+ "oneOf": [
1150
+ {
1151
+ "type": "object",
1152
+ "required": [
1153
+ "type"
1154
+ ],
1155
+ "properties": {
1156
+ "type": {
1157
+ "type": "string",
1158
+ "enum": [
1159
+ "dangerFullAccess"
1160
+ ],
1161
+ "title": "DangerFullAccessSandboxPolicyType"
1162
+ }
1163
+ },
1164
+ "title": "DangerFullAccessSandboxPolicy"
1165
+ },
1166
+ {
1167
+ "type": "object",
1168
+ "required": [
1169
+ "type"
1170
+ ],
1171
+ "properties": {
1172
+ "networkAccess": {
1173
+ "default": false,
1174
+ "type": "boolean"
1175
+ },
1176
+ "type": {
1177
+ "type": "string",
1178
+ "enum": [
1179
+ "readOnly"
1180
+ ],
1181
+ "title": "ReadOnlySandboxPolicyType"
1182
+ }
1183
+ },
1184
+ "title": "ReadOnlySandboxPolicy"
1185
+ },
1186
+ {
1187
+ "type": "object",
1188
+ "required": [
1189
+ "type"
1190
+ ],
1191
+ "properties": {
1192
+ "networkAccess": {
1193
+ "default": "restricted",
1194
+ "allOf": [
1195
+ {
1196
+ "$ref": "#/definitions/NetworkAccess"
1197
+ }
1198
+ ]
1199
+ },
1200
+ "type": {
1201
+ "type": "string",
1202
+ "enum": [
1203
+ "externalSandbox"
1204
+ ],
1205
+ "title": "ExternalSandboxSandboxPolicyType"
1206
+ }
1207
+ },
1208
+ "title": "ExternalSandboxSandboxPolicy"
1209
+ },
1210
+ {
1211
+ "type": "object",
1212
+ "required": [
1213
+ "type"
1214
+ ],
1215
+ "properties": {
1216
+ "excludeSlashTmp": {
1217
+ "default": false,
1218
+ "type": "boolean"
1219
+ },
1220
+ "excludeTmpdirEnvVar": {
1221
+ "default": false,
1222
+ "type": "boolean"
1223
+ },
1224
+ "networkAccess": {
1225
+ "default": false,
1226
+ "type": "boolean"
1227
+ },
1228
+ "type": {
1229
+ "type": "string",
1230
+ "enum": [
1231
+ "workspaceWrite"
1232
+ ],
1233
+ "title": "WorkspaceWriteSandboxPolicyType"
1234
+ },
1235
+ "writableRoots": {
1236
+ "default": [],
1237
+ "type": "array",
1238
+ "items": {
1239
+ "$ref": "#/definitions/AbsolutePathBuf"
1240
+ }
1241
+ }
1242
+ },
1243
+ "title": "WorkspaceWriteSandboxPolicy"
1244
+ }
1245
+ ]
1246
+ },
1247
+ "SessionSource": {
1248
+ "oneOf": [
1249
+ {
1250
+ "type": "string",
1251
+ "enum": [
1252
+ "cli",
1253
+ "vscode",
1254
+ "exec",
1255
+ "appServer",
1256
+ "unknown"
1257
+ ]
1258
+ },
1259
+ {
1260
+ "type": "object",
1261
+ "required": [
1262
+ "custom"
1263
+ ],
1264
+ "properties": {
1265
+ "custom": {
1266
+ "type": "string"
1267
+ }
1268
+ },
1269
+ "additionalProperties": false,
1270
+ "title": "CustomSessionSource"
1271
+ },
1272
+ {
1273
+ "type": "object",
1274
+ "required": [
1275
+ "subAgent"
1276
+ ],
1277
+ "properties": {
1278
+ "subAgent": {
1279
+ "$ref": "#/definitions/SubAgentSource"
1280
+ }
1281
+ },
1282
+ "additionalProperties": false,
1283
+ "title": "SubAgentSessionSource"
1284
+ }
1285
+ ]
1286
+ },
1287
+ "SubAgentSource": {
1288
+ "oneOf": [
1289
+ {
1290
+ "type": "string",
1291
+ "enum": [
1292
+ "review",
1293
+ "compact",
1294
+ "memory_consolidation"
1295
+ ]
1296
+ },
1297
+ {
1298
+ "type": "object",
1299
+ "required": [
1300
+ "thread_spawn"
1301
+ ],
1302
+ "properties": {
1303
+ "thread_spawn": {
1304
+ "type": "object",
1305
+ "required": [
1306
+ "depth",
1307
+ "parent_thread_id"
1308
+ ],
1309
+ "properties": {
1310
+ "agent_nickname": {
1311
+ "default": null,
1312
+ "type": [
1313
+ "string",
1314
+ "null"
1315
+ ]
1316
+ },
1317
+ "agent_path": {
1318
+ "default": null,
1319
+ "anyOf": [
1320
+ {
1321
+ "$ref": "#/definitions/AgentPath"
1322
+ },
1323
+ {
1324
+ "type": "null"
1325
+ }
1326
+ ]
1327
+ },
1328
+ "agent_role": {
1329
+ "default": null,
1330
+ "type": [
1331
+ "string",
1332
+ "null"
1333
+ ]
1334
+ },
1335
+ "depth": {
1336
+ "type": "integer",
1337
+ "format": "int32"
1338
+ },
1339
+ "parent_thread_id": {
1340
+ "$ref": "#/definitions/ThreadId"
1341
+ }
1342
+ }
1343
+ }
1344
+ },
1345
+ "additionalProperties": false,
1346
+ "title": "ThreadSpawnSubAgentSource"
1347
+ },
1348
+ {
1349
+ "type": "object",
1350
+ "required": [
1351
+ "other"
1352
+ ],
1353
+ "properties": {
1354
+ "other": {
1355
+ "type": "string"
1356
+ }
1357
+ },
1358
+ "additionalProperties": false,
1359
+ "title": "OtherSubAgentSource"
1360
+ }
1361
+ ]
1362
+ },
1363
+ "TextElement": {
1364
+ "type": "object",
1365
+ "required": [
1366
+ "byteRange"
1367
+ ],
1368
+ "properties": {
1369
+ "byteRange": {
1370
+ "description": "Byte range in the parent `text` buffer that this element occupies.",
1371
+ "allOf": [
1372
+ {
1373
+ "$ref": "#/definitions/ByteRange"
1374
+ }
1375
+ ]
1376
+ },
1377
+ "placeholder": {
1378
+ "description": "Optional human-readable placeholder for the element, displayed in the UI.",
1379
+ "type": [
1380
+ "string",
1381
+ "null"
1382
+ ]
1383
+ }
1384
+ }
1385
+ },
1386
+ "Thread": {
1387
+ "type": "object",
1388
+ "required": [
1389
+ "cliVersion",
1390
+ "createdAt",
1391
+ "cwd",
1392
+ "ephemeral",
1393
+ "id",
1394
+ "modelProvider",
1395
+ "preview",
1396
+ "sessionId",
1397
+ "source",
1398
+ "status",
1399
+ "turns",
1400
+ "updatedAt"
1401
+ ],
1402
+ "properties": {
1403
+ "agentNickname": {
1404
+ "description": "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.",
1405
+ "type": [
1406
+ "string",
1407
+ "null"
1408
+ ]
1409
+ },
1410
+ "agentRole": {
1411
+ "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
1412
+ "type": [
1413
+ "string",
1414
+ "null"
1415
+ ]
1416
+ },
1417
+ "cliVersion": {
1418
+ "description": "Version of the CLI that created the thread.",
1419
+ "type": "string"
1420
+ },
1421
+ "createdAt": {
1422
+ "description": "Unix timestamp (in seconds) when the thread was created.",
1423
+ "type": "integer",
1424
+ "format": "int64"
1425
+ },
1426
+ "cwd": {
1427
+ "description": "Working directory captured for the thread.",
1428
+ "allOf": [
1429
+ {
1430
+ "$ref": "#/definitions/AbsolutePathBuf"
1431
+ }
1432
+ ]
1433
+ },
1434
+ "ephemeral": {
1435
+ "description": "Whether the thread is ephemeral and should not be materialized on disk.",
1436
+ "type": "boolean"
1437
+ },
1438
+ "forkedFromId": {
1439
+ "description": "Source thread id when this thread was created by forking another thread.",
1440
+ "type": [
1441
+ "string",
1442
+ "null"
1443
+ ]
1444
+ },
1445
+ "gitInfo": {
1446
+ "description": "Optional Git metadata captured when the thread was created.",
1447
+ "anyOf": [
1448
+ {
1449
+ "$ref": "#/definitions/GitInfo"
1450
+ },
1451
+ {
1452
+ "type": "null"
1453
+ }
1454
+ ]
1455
+ },
1456
+ "id": {
1457
+ "type": "string"
1458
+ },
1459
+ "modelProvider": {
1460
+ "description": "Model provider used for this thread (for example, 'openai').",
1461
+ "type": "string"
1462
+ },
1463
+ "name": {
1464
+ "description": "Optional user-facing thread title.",
1465
+ "type": [
1466
+ "string",
1467
+ "null"
1468
+ ]
1469
+ },
1470
+ "path": {
1471
+ "description": "[UNSTABLE] Path to the thread on disk.",
1472
+ "type": [
1473
+ "string",
1474
+ "null"
1475
+ ]
1476
+ },
1477
+ "preview": {
1478
+ "description": "Usually the first user message in the thread, if available.",
1479
+ "type": "string"
1480
+ },
1481
+ "sessionId": {
1482
+ "description": "Session id shared by threads that belong to the same session tree.",
1483
+ "type": "string"
1484
+ },
1485
+ "source": {
1486
+ "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).",
1487
+ "allOf": [
1488
+ {
1489
+ "$ref": "#/definitions/SessionSource"
1490
+ }
1491
+ ]
1492
+ },
1493
+ "status": {
1494
+ "description": "Current runtime status for the thread.",
1495
+ "allOf": [
1496
+ {
1497
+ "$ref": "#/definitions/ThreadStatus"
1498
+ }
1499
+ ]
1500
+ },
1501
+ "threadSource": {
1502
+ "description": "Optional analytics source classification for this thread.",
1503
+ "anyOf": [
1504
+ {
1505
+ "$ref": "#/definitions/ThreadSource"
1506
+ },
1507
+ {
1508
+ "type": "null"
1509
+ }
1510
+ ]
1511
+ },
1512
+ "turns": {
1513
+ "description": "Only populated on `thread/resume`, `thread/rollback`, `thread/fork`, and `thread/read` (when `includeTurns` is true) responses. For all other responses and notifications returning a Thread, the turns field will be an empty list.",
1514
+ "type": "array",
1515
+ "items": {
1516
+ "$ref": "#/definitions/Turn"
1517
+ }
1518
+ },
1519
+ "updatedAt": {
1520
+ "description": "Unix timestamp (in seconds) when the thread was last updated.",
1521
+ "type": "integer",
1522
+ "format": "int64"
1523
+ }
1524
+ }
1525
+ },
1526
+ "ThreadActiveFlag": {
1527
+ "type": "string",
1528
+ "enum": [
1529
+ "waitingOnApproval",
1530
+ "waitingOnUserInput"
1531
+ ]
1532
+ },
1533
+ "ThreadId": {
1534
+ "type": "string"
1535
+ },
1536
+ "ThreadItem": {
1537
+ "oneOf": [
1538
+ {
1539
+ "type": "object",
1540
+ "required": [
1541
+ "content",
1542
+ "id",
1543
+ "type"
1544
+ ],
1545
+ "properties": {
1546
+ "content": {
1547
+ "type": "array",
1548
+ "items": {
1549
+ "$ref": "#/definitions/UserInput"
1550
+ }
1551
+ },
1552
+ "id": {
1553
+ "type": "string"
1554
+ },
1555
+ "type": {
1556
+ "type": "string",
1557
+ "enum": [
1558
+ "userMessage"
1559
+ ],
1560
+ "title": "UserMessageThreadItemType"
1561
+ }
1562
+ },
1563
+ "title": "UserMessageThreadItem"
1564
+ },
1565
+ {
1566
+ "type": "object",
1567
+ "required": [
1568
+ "fragments",
1569
+ "id",
1570
+ "type"
1571
+ ],
1572
+ "properties": {
1573
+ "fragments": {
1574
+ "type": "array",
1575
+ "items": {
1576
+ "$ref": "#/definitions/HookPromptFragment"
1577
+ }
1578
+ },
1579
+ "id": {
1580
+ "type": "string"
1581
+ },
1582
+ "type": {
1583
+ "type": "string",
1584
+ "enum": [
1585
+ "hookPrompt"
1586
+ ],
1587
+ "title": "HookPromptThreadItemType"
1588
+ }
1589
+ },
1590
+ "title": "HookPromptThreadItem"
1591
+ },
1592
+ {
1593
+ "type": "object",
1594
+ "required": [
1595
+ "id",
1596
+ "text",
1597
+ "type"
1598
+ ],
1599
+ "properties": {
1600
+ "id": {
1601
+ "type": "string"
1602
+ },
1603
+ "memoryCitation": {
1604
+ "default": null,
1605
+ "anyOf": [
1606
+ {
1607
+ "$ref": "#/definitions/MemoryCitation"
1608
+ },
1609
+ {
1610
+ "type": "null"
1611
+ }
1612
+ ]
1613
+ },
1614
+ "phase": {
1615
+ "default": null,
1616
+ "anyOf": [
1617
+ {
1618
+ "$ref": "#/definitions/MessagePhase"
1619
+ },
1620
+ {
1621
+ "type": "null"
1622
+ }
1623
+ ]
1624
+ },
1625
+ "text": {
1626
+ "type": "string"
1627
+ },
1628
+ "type": {
1629
+ "type": "string",
1630
+ "enum": [
1631
+ "agentMessage"
1632
+ ],
1633
+ "title": "AgentMessageThreadItemType"
1634
+ }
1635
+ },
1636
+ "title": "AgentMessageThreadItem"
1637
+ },
1638
+ {
1639
+ "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.",
1640
+ "type": "object",
1641
+ "required": [
1642
+ "id",
1643
+ "text",
1644
+ "type"
1645
+ ],
1646
+ "properties": {
1647
+ "id": {
1648
+ "type": "string"
1649
+ },
1650
+ "text": {
1651
+ "type": "string"
1652
+ },
1653
+ "type": {
1654
+ "type": "string",
1655
+ "enum": [
1656
+ "plan"
1657
+ ],
1658
+ "title": "PlanThreadItemType"
1659
+ }
1660
+ },
1661
+ "title": "PlanThreadItem"
1662
+ },
1663
+ {
1664
+ "type": "object",
1665
+ "required": [
1666
+ "id",
1667
+ "type"
1668
+ ],
1669
+ "properties": {
1670
+ "content": {
1671
+ "default": [],
1672
+ "type": "array",
1673
+ "items": {
1674
+ "type": "string"
1675
+ }
1676
+ },
1677
+ "id": {
1678
+ "type": "string"
1679
+ },
1680
+ "summary": {
1681
+ "default": [],
1682
+ "type": "array",
1683
+ "items": {
1684
+ "type": "string"
1685
+ }
1686
+ },
1687
+ "type": {
1688
+ "type": "string",
1689
+ "enum": [
1690
+ "reasoning"
1691
+ ],
1692
+ "title": "ReasoningThreadItemType"
1693
+ }
1694
+ },
1695
+ "title": "ReasoningThreadItem"
1696
+ },
1697
+ {
1698
+ "type": "object",
1699
+ "required": [
1700
+ "command",
1701
+ "commandActions",
1702
+ "cwd",
1703
+ "id",
1704
+ "status",
1705
+ "type"
1706
+ ],
1707
+ "properties": {
1708
+ "aggregatedOutput": {
1709
+ "description": "The command's output, aggregated from stdout and stderr.",
1710
+ "type": [
1711
+ "string",
1712
+ "null"
1713
+ ]
1714
+ },
1715
+ "command": {
1716
+ "description": "The command to be executed.",
1717
+ "type": "string"
1718
+ },
1719
+ "commandActions": {
1720
+ "description": "A best-effort parsing of the command to understand the action(s) it will perform. This returns a list of CommandAction objects because a single shell command may be composed of many commands piped together.",
1721
+ "type": "array",
1722
+ "items": {
1723
+ "$ref": "#/definitions/CommandAction"
1724
+ }
1725
+ },
1726
+ "cwd": {
1727
+ "description": "The command's working directory.",
1728
+ "allOf": [
1729
+ {
1730
+ "$ref": "#/definitions/AbsolutePathBuf"
1731
+ }
1732
+ ]
1733
+ },
1734
+ "durationMs": {
1735
+ "description": "The duration of the command execution in milliseconds.",
1736
+ "type": [
1737
+ "integer",
1738
+ "null"
1739
+ ],
1740
+ "format": "int64"
1741
+ },
1742
+ "exitCode": {
1743
+ "description": "The command's exit code.",
1744
+ "type": [
1745
+ "integer",
1746
+ "null"
1747
+ ],
1748
+ "format": "int32"
1749
+ },
1750
+ "id": {
1751
+ "type": "string"
1752
+ },
1753
+ "processId": {
1754
+ "description": "Identifier for the underlying PTY process (when available).",
1755
+ "type": [
1756
+ "string",
1757
+ "null"
1758
+ ]
1759
+ },
1760
+ "source": {
1761
+ "default": "agent",
1762
+ "allOf": [
1763
+ {
1764
+ "$ref": "#/definitions/CommandExecutionSource"
1765
+ }
1766
+ ]
1767
+ },
1768
+ "status": {
1769
+ "$ref": "#/definitions/CommandExecutionStatus"
1770
+ },
1771
+ "type": {
1772
+ "type": "string",
1773
+ "enum": [
1774
+ "commandExecution"
1775
+ ],
1776
+ "title": "CommandExecutionThreadItemType"
1777
+ }
1778
+ },
1779
+ "title": "CommandExecutionThreadItem"
1780
+ },
1781
+ {
1782
+ "type": "object",
1783
+ "required": [
1784
+ "changes",
1785
+ "id",
1786
+ "status",
1787
+ "type"
1788
+ ],
1789
+ "properties": {
1790
+ "changes": {
1791
+ "type": "array",
1792
+ "items": {
1793
+ "$ref": "#/definitions/FileUpdateChange"
1794
+ }
1795
+ },
1796
+ "id": {
1797
+ "type": "string"
1798
+ },
1799
+ "status": {
1800
+ "$ref": "#/definitions/PatchApplyStatus"
1801
+ },
1802
+ "type": {
1803
+ "type": "string",
1804
+ "enum": [
1805
+ "fileChange"
1806
+ ],
1807
+ "title": "FileChangeThreadItemType"
1808
+ }
1809
+ },
1810
+ "title": "FileChangeThreadItem"
1811
+ },
1812
+ {
1813
+ "type": "object",
1814
+ "required": [
1815
+ "arguments",
1816
+ "id",
1817
+ "server",
1818
+ "status",
1819
+ "tool",
1820
+ "type"
1821
+ ],
1822
+ "properties": {
1823
+ "arguments": true,
1824
+ "durationMs": {
1825
+ "description": "The duration of the MCP tool call in milliseconds.",
1826
+ "type": [
1827
+ "integer",
1828
+ "null"
1829
+ ],
1830
+ "format": "int64"
1831
+ },
1832
+ "error": {
1833
+ "anyOf": [
1834
+ {
1835
+ "$ref": "#/definitions/McpToolCallError"
1836
+ },
1837
+ {
1838
+ "type": "null"
1839
+ }
1840
+ ]
1841
+ },
1842
+ "id": {
1843
+ "type": "string"
1844
+ },
1845
+ "mcpAppResourceUri": {
1846
+ "type": [
1847
+ "string",
1848
+ "null"
1849
+ ]
1850
+ },
1851
+ "result": {
1852
+ "anyOf": [
1853
+ {
1854
+ "$ref": "#/definitions/McpToolCallResult"
1855
+ },
1856
+ {
1857
+ "type": "null"
1858
+ }
1859
+ ]
1860
+ },
1861
+ "server": {
1862
+ "type": "string"
1863
+ },
1864
+ "status": {
1865
+ "$ref": "#/definitions/McpToolCallStatus"
1866
+ },
1867
+ "tool": {
1868
+ "type": "string"
1869
+ },
1870
+ "type": {
1871
+ "type": "string",
1872
+ "enum": [
1873
+ "mcpToolCall"
1874
+ ],
1875
+ "title": "McpToolCallThreadItemType"
1876
+ }
1877
+ },
1878
+ "title": "McpToolCallThreadItem"
1879
+ },
1880
+ {
1881
+ "type": "object",
1882
+ "required": [
1883
+ "arguments",
1884
+ "id",
1885
+ "status",
1886
+ "tool",
1887
+ "type"
1888
+ ],
1889
+ "properties": {
1890
+ "arguments": true,
1891
+ "contentItems": {
1892
+ "type": [
1893
+ "array",
1894
+ "null"
1895
+ ],
1896
+ "items": {
1897
+ "$ref": "#/definitions/DynamicToolCallOutputContentItem"
1898
+ }
1899
+ },
1900
+ "durationMs": {
1901
+ "description": "The duration of the dynamic tool call in milliseconds.",
1902
+ "type": [
1903
+ "integer",
1904
+ "null"
1905
+ ],
1906
+ "format": "int64"
1907
+ },
1908
+ "id": {
1909
+ "type": "string"
1910
+ },
1911
+ "namespace": {
1912
+ "type": [
1913
+ "string",
1914
+ "null"
1915
+ ]
1916
+ },
1917
+ "status": {
1918
+ "$ref": "#/definitions/DynamicToolCallStatus"
1919
+ },
1920
+ "success": {
1921
+ "type": [
1922
+ "boolean",
1923
+ "null"
1924
+ ]
1925
+ },
1926
+ "tool": {
1927
+ "type": "string"
1928
+ },
1929
+ "type": {
1930
+ "type": "string",
1931
+ "enum": [
1932
+ "dynamicToolCall"
1933
+ ],
1934
+ "title": "DynamicToolCallThreadItemType"
1935
+ }
1936
+ },
1937
+ "title": "DynamicToolCallThreadItem"
1938
+ },
1939
+ {
1940
+ "type": "object",
1941
+ "required": [
1942
+ "agentsStates",
1943
+ "id",
1944
+ "receiverThreadIds",
1945
+ "senderThreadId",
1946
+ "status",
1947
+ "tool",
1948
+ "type"
1949
+ ],
1950
+ "properties": {
1951
+ "agentsStates": {
1952
+ "description": "Last known status of the target agents, when available.",
1953
+ "type": "object",
1954
+ "additionalProperties": {
1955
+ "$ref": "#/definitions/CollabAgentState"
1956
+ }
1957
+ },
1958
+ "id": {
1959
+ "description": "Unique identifier for this collab tool call.",
1960
+ "type": "string"
1961
+ },
1962
+ "model": {
1963
+ "description": "Model requested for the spawned agent, when applicable.",
1964
+ "type": [
1965
+ "string",
1966
+ "null"
1967
+ ]
1968
+ },
1969
+ "prompt": {
1970
+ "description": "Prompt text sent as part of the collab tool call, when available.",
1971
+ "type": [
1972
+ "string",
1973
+ "null"
1974
+ ]
1975
+ },
1976
+ "reasoningEffort": {
1977
+ "description": "Reasoning effort requested for the spawned agent, when applicable.",
1978
+ "anyOf": [
1979
+ {
1980
+ "$ref": "#/definitions/ReasoningEffort"
1981
+ },
1982
+ {
1983
+ "type": "null"
1984
+ }
1985
+ ]
1986
+ },
1987
+ "receiverThreadIds": {
1988
+ "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.",
1989
+ "type": "array",
1990
+ "items": {
1991
+ "type": "string"
1992
+ }
1993
+ },
1994
+ "senderThreadId": {
1995
+ "description": "Thread ID of the agent issuing the collab request.",
1996
+ "type": "string"
1997
+ },
1998
+ "status": {
1999
+ "description": "Current status of the collab tool call.",
2000
+ "allOf": [
2001
+ {
2002
+ "$ref": "#/definitions/CollabAgentToolCallStatus"
2003
+ }
2004
+ ]
2005
+ },
2006
+ "tool": {
2007
+ "description": "Name of the collab tool that was invoked.",
2008
+ "allOf": [
2009
+ {
2010
+ "$ref": "#/definitions/CollabAgentTool"
2011
+ }
2012
+ ]
2013
+ },
2014
+ "type": {
2015
+ "type": "string",
2016
+ "enum": [
2017
+ "collabAgentToolCall"
2018
+ ],
2019
+ "title": "CollabAgentToolCallThreadItemType"
2020
+ }
2021
+ },
2022
+ "title": "CollabAgentToolCallThreadItem"
2023
+ },
2024
+ {
2025
+ "type": "object",
2026
+ "required": [
2027
+ "id",
2028
+ "query",
2029
+ "type"
2030
+ ],
2031
+ "properties": {
2032
+ "action": {
2033
+ "anyOf": [
2034
+ {
2035
+ "$ref": "#/definitions/WebSearchAction"
2036
+ },
2037
+ {
2038
+ "type": "null"
2039
+ }
2040
+ ]
2041
+ },
2042
+ "id": {
2043
+ "type": "string"
2044
+ },
2045
+ "query": {
2046
+ "type": "string"
2047
+ },
2048
+ "type": {
2049
+ "type": "string",
2050
+ "enum": [
2051
+ "webSearch"
2052
+ ],
2053
+ "title": "WebSearchThreadItemType"
2054
+ }
2055
+ },
2056
+ "title": "WebSearchThreadItem"
2057
+ },
2058
+ {
2059
+ "type": "object",
2060
+ "required": [
2061
+ "id",
2062
+ "path",
2063
+ "type"
2064
+ ],
2065
+ "properties": {
2066
+ "id": {
2067
+ "type": "string"
2068
+ },
2069
+ "path": {
2070
+ "$ref": "#/definitions/AbsolutePathBuf"
2071
+ },
2072
+ "type": {
2073
+ "type": "string",
2074
+ "enum": [
2075
+ "imageView"
2076
+ ],
2077
+ "title": "ImageViewThreadItemType"
2078
+ }
2079
+ },
2080
+ "title": "ImageViewThreadItem"
2081
+ },
2082
+ {
2083
+ "type": "object",
2084
+ "required": [
2085
+ "id",
2086
+ "result",
2087
+ "status",
2088
+ "type"
2089
+ ],
2090
+ "properties": {
2091
+ "id": {
2092
+ "type": "string"
2093
+ },
2094
+ "result": {
2095
+ "type": "string"
2096
+ },
2097
+ "revisedPrompt": {
2098
+ "type": [
2099
+ "string",
2100
+ "null"
2101
+ ]
2102
+ },
2103
+ "savedPath": {
2104
+ "anyOf": [
2105
+ {
2106
+ "$ref": "#/definitions/AbsolutePathBuf"
2107
+ },
2108
+ {
2109
+ "type": "null"
2110
+ }
2111
+ ]
2112
+ },
2113
+ "status": {
2114
+ "type": "string"
2115
+ },
2116
+ "type": {
2117
+ "type": "string",
2118
+ "enum": [
2119
+ "imageGeneration"
2120
+ ],
2121
+ "title": "ImageGenerationThreadItemType"
2122
+ }
2123
+ },
2124
+ "title": "ImageGenerationThreadItem"
2125
+ },
2126
+ {
2127
+ "type": "object",
2128
+ "required": [
2129
+ "id",
2130
+ "review",
2131
+ "type"
2132
+ ],
2133
+ "properties": {
2134
+ "id": {
2135
+ "type": "string"
2136
+ },
2137
+ "review": {
2138
+ "type": "string"
2139
+ },
2140
+ "type": {
2141
+ "type": "string",
2142
+ "enum": [
2143
+ "enteredReviewMode"
2144
+ ],
2145
+ "title": "EnteredReviewModeThreadItemType"
2146
+ }
2147
+ },
2148
+ "title": "EnteredReviewModeThreadItem"
2149
+ },
2150
+ {
2151
+ "type": "object",
2152
+ "required": [
2153
+ "id",
2154
+ "review",
2155
+ "type"
2156
+ ],
2157
+ "properties": {
2158
+ "id": {
2159
+ "type": "string"
2160
+ },
2161
+ "review": {
2162
+ "type": "string"
2163
+ },
2164
+ "type": {
2165
+ "type": "string",
2166
+ "enum": [
2167
+ "exitedReviewMode"
2168
+ ],
2169
+ "title": "ExitedReviewModeThreadItemType"
2170
+ }
2171
+ },
2172
+ "title": "ExitedReviewModeThreadItem"
2173
+ },
2174
+ {
2175
+ "type": "object",
2176
+ "required": [
2177
+ "id",
2178
+ "type"
2179
+ ],
2180
+ "properties": {
2181
+ "id": {
2182
+ "type": "string"
2183
+ },
2184
+ "type": {
2185
+ "type": "string",
2186
+ "enum": [
2187
+ "contextCompaction"
2188
+ ],
2189
+ "title": "ContextCompactionThreadItemType"
2190
+ }
2191
+ },
2192
+ "title": "ContextCompactionThreadItem"
2193
+ }
2194
+ ]
2195
+ },
2196
+ "ThreadSource": {
2197
+ "type": "string",
2198
+ "enum": [
2199
+ "user",
2200
+ "subagent",
2201
+ "memory_consolidation"
2202
+ ]
2203
+ },
2204
+ "ThreadStatus": {
2205
+ "oneOf": [
2206
+ {
2207
+ "type": "object",
2208
+ "required": [
2209
+ "type"
2210
+ ],
2211
+ "properties": {
2212
+ "type": {
2213
+ "type": "string",
2214
+ "enum": [
2215
+ "notLoaded"
2216
+ ],
2217
+ "title": "NotLoadedThreadStatusType"
2218
+ }
2219
+ },
2220
+ "title": "NotLoadedThreadStatus"
2221
+ },
2222
+ {
2223
+ "type": "object",
2224
+ "required": [
2225
+ "type"
2226
+ ],
2227
+ "properties": {
2228
+ "type": {
2229
+ "type": "string",
2230
+ "enum": [
2231
+ "idle"
2232
+ ],
2233
+ "title": "IdleThreadStatusType"
2234
+ }
2235
+ },
2236
+ "title": "IdleThreadStatus"
2237
+ },
2238
+ {
2239
+ "type": "object",
2240
+ "required": [
2241
+ "type"
2242
+ ],
2243
+ "properties": {
2244
+ "type": {
2245
+ "type": "string",
2246
+ "enum": [
2247
+ "systemError"
2248
+ ],
2249
+ "title": "SystemErrorThreadStatusType"
2250
+ }
2251
+ },
2252
+ "title": "SystemErrorThreadStatus"
2253
+ },
2254
+ {
2255
+ "type": "object",
2256
+ "required": [
2257
+ "activeFlags",
2258
+ "type"
2259
+ ],
2260
+ "properties": {
2261
+ "activeFlags": {
2262
+ "type": "array",
2263
+ "items": {
2264
+ "$ref": "#/definitions/ThreadActiveFlag"
2265
+ }
2266
+ },
2267
+ "type": {
2268
+ "type": "string",
2269
+ "enum": [
2270
+ "active"
2271
+ ],
2272
+ "title": "ActiveThreadStatusType"
2273
+ }
2274
+ },
2275
+ "title": "ActiveThreadStatus"
2276
+ }
2277
+ ]
2278
+ },
2279
+ "Turn": {
2280
+ "type": "object",
2281
+ "required": [
2282
+ "id",
2283
+ "items",
2284
+ "status"
2285
+ ],
2286
+ "properties": {
2287
+ "completedAt": {
2288
+ "description": "Unix timestamp (in seconds) when the turn completed.",
2289
+ "type": [
2290
+ "integer",
2291
+ "null"
2292
+ ],
2293
+ "format": "int64"
2294
+ },
2295
+ "durationMs": {
2296
+ "description": "Duration between turn start and completion in milliseconds, if known.",
2297
+ "type": [
2298
+ "integer",
2299
+ "null"
2300
+ ],
2301
+ "format": "int64"
2302
+ },
2303
+ "error": {
2304
+ "description": "Only populated when the Turn's status is failed.",
2305
+ "anyOf": [
2306
+ {
2307
+ "$ref": "#/definitions/TurnError"
2308
+ },
2309
+ {
2310
+ "type": "null"
2311
+ }
2312
+ ]
2313
+ },
2314
+ "id": {
2315
+ "type": "string"
2316
+ },
2317
+ "items": {
2318
+ "description": "Thread items currently included in this turn payload.",
2319
+ "type": "array",
2320
+ "items": {
2321
+ "$ref": "#/definitions/ThreadItem"
2322
+ }
2323
+ },
2324
+ "itemsView": {
2325
+ "description": "Describes how much of `items` has been loaded for this turn.",
2326
+ "default": "full",
2327
+ "allOf": [
2328
+ {
2329
+ "$ref": "#/definitions/TurnItemsView"
2330
+ }
2331
+ ]
2332
+ },
2333
+ "startedAt": {
2334
+ "description": "Unix timestamp (in seconds) when the turn started.",
2335
+ "type": [
2336
+ "integer",
2337
+ "null"
2338
+ ],
2339
+ "format": "int64"
2340
+ },
2341
+ "status": {
2342
+ "$ref": "#/definitions/TurnStatus"
2343
+ }
2344
+ }
2345
+ },
2346
+ "TurnError": {
2347
+ "type": "object",
2348
+ "required": [
2349
+ "message"
2350
+ ],
2351
+ "properties": {
2352
+ "additionalDetails": {
2353
+ "default": null,
2354
+ "type": [
2355
+ "string",
2356
+ "null"
2357
+ ]
2358
+ },
2359
+ "codexErrorInfo": {
2360
+ "anyOf": [
2361
+ {
2362
+ "$ref": "#/definitions/CodexErrorInfo"
2363
+ },
2364
+ {
2365
+ "type": "null"
2366
+ }
2367
+ ]
2368
+ },
2369
+ "message": {
2370
+ "type": "string"
2371
+ }
2372
+ }
2373
+ },
2374
+ "TurnItemsView": {
2375
+ "oneOf": [
2376
+ {
2377
+ "description": "`items` was not loaded for this turn. The field is intentionally empty.",
2378
+ "type": "string",
2379
+ "enum": [
2380
+ "notLoaded"
2381
+ ]
2382
+ },
2383
+ {
2384
+ "description": "`items` contains only a display summary for this turn.",
2385
+ "type": "string",
2386
+ "enum": [
2387
+ "summary"
2388
+ ]
2389
+ },
2390
+ {
2391
+ "description": "`items` contains every ThreadItem available from persisted app-server history for this turn.",
2392
+ "type": "string",
2393
+ "enum": [
2394
+ "full"
2395
+ ]
2396
+ }
2397
+ ]
2398
+ },
2399
+ "TurnStatus": {
2400
+ "type": "string",
2401
+ "enum": [
2402
+ "completed",
2403
+ "interrupted",
2404
+ "failed",
2405
+ "inProgress"
2406
+ ]
2407
+ },
2408
+ "UserInput": {
2409
+ "oneOf": [
2410
+ {
2411
+ "type": "object",
2412
+ "required": [
2413
+ "text",
2414
+ "type"
2415
+ ],
2416
+ "properties": {
2417
+ "text": {
2418
+ "type": "string"
2419
+ },
2420
+ "text_elements": {
2421
+ "description": "UI-defined spans within `text` used to render or persist special elements.",
2422
+ "default": [],
2423
+ "type": "array",
2424
+ "items": {
2425
+ "$ref": "#/definitions/TextElement"
2426
+ }
2427
+ },
2428
+ "type": {
2429
+ "type": "string",
2430
+ "enum": [
2431
+ "text"
2432
+ ],
2433
+ "title": "TextUserInputType"
2434
+ }
2435
+ },
2436
+ "title": "TextUserInput"
2437
+ },
2438
+ {
2439
+ "type": "object",
2440
+ "required": [
2441
+ "type",
2442
+ "url"
2443
+ ],
2444
+ "properties": {
2445
+ "type": {
2446
+ "type": "string",
2447
+ "enum": [
2448
+ "image"
2449
+ ],
2450
+ "title": "ImageUserInputType"
2451
+ },
2452
+ "url": {
2453
+ "type": "string"
2454
+ }
2455
+ },
2456
+ "title": "ImageUserInput"
2457
+ },
2458
+ {
2459
+ "type": "object",
2460
+ "required": [
2461
+ "path",
2462
+ "type"
2463
+ ],
2464
+ "properties": {
2465
+ "path": {
2466
+ "type": "string"
2467
+ },
2468
+ "type": {
2469
+ "type": "string",
2470
+ "enum": [
2471
+ "localImage"
2472
+ ],
2473
+ "title": "LocalImageUserInputType"
2474
+ }
2475
+ },
2476
+ "title": "LocalImageUserInput"
2477
+ },
2478
+ {
2479
+ "type": "object",
2480
+ "required": [
2481
+ "name",
2482
+ "path",
2483
+ "type"
2484
+ ],
2485
+ "properties": {
2486
+ "name": {
2487
+ "type": "string"
2488
+ },
2489
+ "path": {
2490
+ "type": "string"
2491
+ },
2492
+ "type": {
2493
+ "type": "string",
2494
+ "enum": [
2495
+ "skill"
2496
+ ],
2497
+ "title": "SkillUserInputType"
2498
+ }
2499
+ },
2500
+ "title": "SkillUserInput"
2501
+ },
2502
+ {
2503
+ "type": "object",
2504
+ "required": [
2505
+ "name",
2506
+ "path",
2507
+ "type"
2508
+ ],
2509
+ "properties": {
2510
+ "name": {
2511
+ "type": "string"
2512
+ },
2513
+ "path": {
2514
+ "type": "string"
2515
+ },
2516
+ "type": {
2517
+ "type": "string",
2518
+ "enum": [
2519
+ "mention"
2520
+ ],
2521
+ "title": "MentionUserInputType"
2522
+ }
2523
+ },
2524
+ "title": "MentionUserInput"
2525
+ }
2526
+ ]
2527
+ },
2528
+ "WebSearchAction": {
2529
+ "oneOf": [
2530
+ {
2531
+ "type": "object",
2532
+ "required": [
2533
+ "type"
2534
+ ],
2535
+ "properties": {
2536
+ "queries": {
2537
+ "type": [
2538
+ "array",
2539
+ "null"
2540
+ ],
2541
+ "items": {
2542
+ "type": "string"
2543
+ }
2544
+ },
2545
+ "query": {
2546
+ "type": [
2547
+ "string",
2548
+ "null"
2549
+ ]
2550
+ },
2551
+ "type": {
2552
+ "type": "string",
2553
+ "enum": [
2554
+ "search"
2555
+ ],
2556
+ "title": "SearchWebSearchActionType"
2557
+ }
2558
+ },
2559
+ "title": "SearchWebSearchAction"
2560
+ },
2561
+ {
2562
+ "type": "object",
2563
+ "required": [
2564
+ "type"
2565
+ ],
2566
+ "properties": {
2567
+ "type": {
2568
+ "type": "string",
2569
+ "enum": [
2570
+ "openPage"
2571
+ ],
2572
+ "title": "OpenPageWebSearchActionType"
2573
+ },
2574
+ "url": {
2575
+ "type": [
2576
+ "string",
2577
+ "null"
2578
+ ]
2579
+ }
2580
+ },
2581
+ "title": "OpenPageWebSearchAction"
2582
+ },
2583
+ {
2584
+ "type": "object",
2585
+ "required": [
2586
+ "type"
2587
+ ],
2588
+ "properties": {
2589
+ "pattern": {
2590
+ "type": [
2591
+ "string",
2592
+ "null"
2593
+ ]
2594
+ },
2595
+ "type": {
2596
+ "type": "string",
2597
+ "enum": [
2598
+ "findInPage"
2599
+ ],
2600
+ "title": "FindInPageWebSearchActionType"
2601
+ },
2602
+ "url": {
2603
+ "type": [
2604
+ "string",
2605
+ "null"
2606
+ ]
2607
+ }
2608
+ },
2609
+ "title": "FindInPageWebSearchAction"
2610
+ },
2611
+ {
2612
+ "type": "object",
2613
+ "required": [
2614
+ "type"
2615
+ ],
2616
+ "properties": {
2617
+ "type": {
2618
+ "type": "string",
2619
+ "enum": [
2620
+ "other"
2621
+ ],
2622
+ "title": "OtherWebSearchActionType"
2623
+ }
2624
+ },
2625
+ "title": "OtherWebSearchAction"
2626
+ }
2627
+ ]
2628
+ }
2629
+ }
2630
+ }