| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "title": "codewhale-codex-app-server-v2", |
| 4 | "x-contract-version": 1, |
| 5 | "x-upstream": { |
| 6 | "tag": "rust-v0.166.0", |
| 7 | "commit": "6ff1e1ca3b30fc8b914720681fcf5fe62e95f856" |
| 8 | }, |
| 9 | "x-methods": { |
| 10 | "clientRequests": { |
| 11 | "initialize": { |
| 12 | "tier": "A", |
| 13 | "params": "#/definitions/InitializeParams", |
| 14 | "result": "#/definitions/InitializeResponse" |
| 15 | }, |
| 16 | "thread/start": { |
| 17 | "tier": "A", |
| 18 | "params": "#/definitions/ThreadStartParams", |
| 19 | "result": "#/definitions/ThreadStartResponse" |
| 20 | }, |
| 21 | "thread/resume": { |
| 22 | "tier": "A", |
| 23 | "params": "#/definitions/ThreadResumeParams", |
| 24 | "result": "#/definitions/ThreadResumeResponse" |
| 25 | }, |
| 26 | "thread/fork": { |
| 27 | "tier": "A", |
| 28 | "params": "#/definitions/ThreadForkParams", |
| 29 | "result": "#/definitions/ThreadForkResponse" |
| 30 | }, |
| 31 | "thread/archive": { |
| 32 | "tier": "A", |
| 33 | "params": "#/definitions/ThreadArchiveParams", |
| 34 | "result": "#/definitions/ThreadArchiveResponse" |
| 35 | }, |
| 36 | "thread/delete": { |
| 37 | "tier": "B", |
| 38 | "params": "#/definitions/ThreadDeleteParams", |
| 39 | "result": "#/definitions/ThreadDeleteResponse" |
| 40 | }, |
| 41 | "thread/unsubscribe": { |
| 42 | "tier": "A", |
| 43 | "params": "#/definitions/ThreadUnsubscribeParams", |
| 44 | "result": "#/definitions/ThreadUnsubscribeResponse" |
| 45 | }, |
| 46 | "thread/name/set": { |
| 47 | "tier": "A", |
| 48 | "params": "#/definitions/ThreadSetNameParams", |
| 49 | "result": "#/definitions/ThreadSetNameResponse" |
| 50 | }, |
| 51 | "thread/goal/set": { |
| 52 | "tier": "A", |
| 53 | "params": "#/definitions/ThreadGoalSetParams", |
| 54 | "result": "#/definitions/ThreadGoalSetResponse" |
| 55 | }, |
| 56 | "thread/goal/get": { |
| 57 | "tier": "A", |
| 58 | "params": "#/definitions/ThreadGoalGetParams", |
| 59 | "result": "#/definitions/ThreadGoalGetResponse" |
| 60 | }, |
| 61 | "thread/goal/clear": { |
| 62 | "tier": "A", |
| 63 | "params": "#/definitions/ThreadGoalClearParams", |
| 64 | "result": "#/definitions/ThreadGoalClearResponse" |
| 65 | }, |
| 66 | "thread/unarchive": { |
| 67 | "tier": "A", |
| 68 | "params": "#/definitions/ThreadUnarchiveParams", |
| 69 | "result": "#/definitions/ThreadUnarchiveResponse" |
| 70 | }, |
| 71 | "thread/compact/start": { |
| 72 | "tier": "B", |
| 73 | "params": "#/definitions/ThreadCompactStartParams", |
| 74 | "result": "#/definitions/ThreadCompactStartResponse" |
| 75 | }, |
| 76 | "thread/shellCommand": { |
| 77 | "tier": "B", |
| 78 | "params": "#/definitions/ThreadShellCommandParams", |
| 79 | "result": "#/definitions/ThreadShellCommandResponse" |
| 80 | }, |
| 81 | "thread/revert": { |
| 82 | "tier": "B", |
| 83 | "params": "#/definitions/ThreadRevertParams", |
| 84 | "result": "#/definitions/ThreadRevertResponse" |
| 85 | }, |
| 86 | "thread/list": { |
| 87 | "tier": "A", |
| 88 | "params": "#/definitions/ThreadListParams", |
| 89 | "result": "#/definitions/ThreadListResponse" |
| 90 | }, |
| 91 | "thread/loaded/list": { |
| 92 | "tier": "A", |
| 93 | "params": "#/definitions/ThreadLoadedListParams", |
| 94 | "result": "#/definitions/ThreadLoadedListResponse" |
| 95 | }, |
| 96 | "thread/read": { |
| 97 | "tier": "A", |
| 98 | "params": "#/definitions/ThreadReadParams", |
| 99 | "result": "#/definitions/ThreadReadResponse" |
| 100 | }, |
| 101 | "thread/turns/list": { |
| 102 | "tier": "A", |
| 103 | "params": "#/definitions/ThreadTurnsListParams", |
| 104 | "result": "#/definitions/ThreadTurnsListResponse" |
| 105 | }, |
| 106 | "thread/items/list": { |
| 107 | "tier": "A", |
| 108 | "params": "#/definitions/ThreadItemsListParams", |
| 109 | "result": "#/definitions/ThreadItemsListResponse" |
| 110 | }, |
| 111 | "skills/list": { |
| 112 | "tier": "B", |
| 113 | "params": "#/definitions/SkillsListParams", |
| 114 | "result": "#/definitions/SkillsListResponse" |
| 115 | }, |
| 116 | "hooks/list": { |
| 117 | "tier": "B", |
| 118 | "params": "#/definitions/HooksListParams", |
| 119 | "result": "#/definitions/HooksListResponse" |
| 120 | }, |
| 121 | "fs/readFile": { |
| 122 | "tier": "B", |
| 123 | "params": "#/definitions/FsReadFileParams", |
| 124 | "result": "#/definitions/FsReadFileResponse" |
| 125 | }, |
| 126 | "fs/writeFile": { |
| 127 | "tier": "B", |
| 128 | "params": "#/definitions/FsWriteFileParams", |
| 129 | "result": "#/definitions/FsWriteFileResponse" |
| 130 | }, |
| 131 | "fs/createDirectory": { |
| 132 | "tier": "B", |
| 133 | "params": "#/definitions/FsCreateDirectoryParams", |
| 134 | "result": "#/definitions/FsCreateDirectoryResponse" |
| 135 | }, |
| 136 | "fs/getMetadata": { |
| 137 | "tier": "B", |
| 138 | "params": "#/definitions/FsGetMetadataParams", |
| 139 | "result": "#/definitions/FsGetMetadataResponse" |
| 140 | }, |
| 141 | "fs/readDirectory": { |
| 142 | "tier": "B", |
| 143 | "params": "#/definitions/FsReadDirectoryParams", |
| 144 | "result": "#/definitions/FsReadDirectoryResponse" |
| 145 | }, |
| 146 | "fs/remove": { |
| 147 | "tier": "B", |
| 148 | "params": "#/definitions/FsRemoveParams", |
| 149 | "result": "#/definitions/FsRemoveResponse" |
| 150 | }, |
| 151 | "fs/copy": { |
| 152 | "tier": "B", |
| 153 | "params": "#/definitions/FsCopyParams", |
| 154 | "result": "#/definitions/FsCopyResponse" |
| 155 | }, |
| 156 | "fs/watch": { |
| 157 | "tier": "B", |
| 158 | "params": "#/definitions/FsWatchParams", |
| 159 | "result": "#/definitions/FsWatchResponse" |
| 160 | }, |
| 161 | "fs/unwatch": { |
| 162 | "tier": "B", |
| 163 | "params": "#/definitions/FsUnwatchParams", |
| 164 | "result": "#/definitions/FsUnwatchResponse" |
| 165 | }, |
| 166 | "turn/start": { |
| 167 | "tier": "A", |
| 168 | "params": "#/definitions/TurnStartParams", |
| 169 | "result": "#/definitions/TurnStartResponse" |
| 170 | }, |
| 171 | "turn/steer": { |
| 172 | "tier": "A", |
| 173 | "params": "#/definitions/TurnSteerParams", |
| 174 | "result": "#/definitions/TurnSteerResponse" |
| 175 | }, |
| 176 | "turn/interrupt": { |
| 177 | "tier": "A", |
| 178 | "params": "#/definitions/TurnInterruptParams", |
| 179 | "result": "#/definitions/TurnInterruptResponse" |
| 180 | }, |
| 181 | "review/start": { |
| 182 | "tier": "B", |
| 183 | "params": "#/definitions/ReviewStartParams", |
| 184 | "result": "#/definitions/ReviewStartResponse" |
| 185 | }, |
| 186 | "model/list": { |
| 187 | "tier": "B", |
| 188 | "params": "#/definitions/ModelListParams", |
| 189 | "result": "#/definitions/ModelListResponse" |
| 190 | }, |
| 191 | "mcpServerStatus/list": { |
| 192 | "tier": "B", |
| 193 | "params": "#/definitions/ListMcpServerStatusParams", |
| 194 | "result": "#/definitions/ListMcpServerStatusResponse" |
| 195 | }, |
| 196 | "command/exec": { |
| 197 | "tier": "B", |
| 198 | "params": "#/definitions/CommandExecParams", |
| 199 | "result": "#/definitions/CommandExecResponse" |
| 200 | }, |
| 201 | "command/exec/write": { |
| 202 | "tier": "B", |
| 203 | "params": "#/definitions/CommandExecWriteParams", |
| 204 | "result": "#/definitions/CommandExecWriteResponse" |
| 205 | }, |
| 206 | "command/exec/terminate": { |
| 207 | "tier": "B", |
| 208 | "params": "#/definitions/CommandExecTerminateParams", |
| 209 | "result": "#/definitions/CommandExecTerminateResponse" |
| 210 | }, |
| 211 | "command/exec/resize": { |
| 212 | "tier": "B", |
| 213 | "params": "#/definitions/CommandExecResizeParams", |
| 214 | "result": "#/definitions/CommandExecResizeResponse" |
| 215 | }, |
| 216 | "config/read": { |
| 217 | "tier": "B", |
| 218 | "params": "#/definitions/ConfigReadParams", |
| 219 | "result": "#/definitions/ConfigReadResponse" |
| 220 | }, |
| 221 | "config/value/write": { |
| 222 | "tier": "B", |
| 223 | "params": "#/definitions/ConfigValueWriteParams", |
| 224 | "result": "#/definitions/ConfigWriteResponse" |
| 225 | }, |
| 226 | "config/batchWrite": { |
| 227 | "tier": "B", |
| 228 | "params": "#/definitions/ConfigBatchWriteParams", |
| 229 | "result": "#/definitions/ConfigWriteResponse" |
| 230 | } |
| 231 | }, |
| 232 | "clientNotifications": { |
| 233 | "initialized": { |
| 234 | "tier": "A" |
| 235 | } |
| 236 | }, |
| 237 | "serverRequests": { |
| 238 | "item/commandExecution/requestApproval": { |
| 239 | "tier": "A", |
| 240 | "params": "#/definitions/CommandExecutionRequestApprovalParams", |
| 241 | "result": "#/definitions/CommandExecutionRequestApprovalResponse" |
| 242 | }, |
| 243 | "item/fileChange/requestApproval": { |
| 244 | "tier": "A", |
| 245 | "params": "#/definitions/FileChangeRequestApprovalParams", |
| 246 | "result": "#/definitions/FileChangeRequestApprovalResponse" |
| 247 | }, |
| 248 | "item/tool/requestUserInput": { |
| 249 | "tier": "A", |
| 250 | "params": "#/definitions/ToolRequestUserInputParams", |
| 251 | "result": "#/definitions/ToolRequestUserInputResponse" |
| 252 | }, |
| 253 | "item/permissions/requestApproval": { |
| 254 | "tier": "A", |
| 255 | "params": "#/definitions/PermissionsRequestApprovalParams", |
| 256 | "result": "#/definitions/PermissionsRequestApprovalResponse" |
| 257 | }, |
| 258 | "item/tool/call": { |
| 259 | "tier": "A", |
| 260 | "params": "#/definitions/DynamicToolCallParams", |
| 261 | "result": "#/definitions/DynamicToolCallResponse" |
| 262 | } |
| 263 | }, |
| 264 | "serverNotifications": { |
| 265 | "error": { |
| 266 | "tier": "A", |
| 267 | "params": "#/definitions/ErrorNotification" |
| 268 | }, |
| 269 | "thread/started": { |
| 270 | "tier": "A", |
| 271 | "params": "#/definitions/ThreadStartedNotification" |
| 272 | }, |
| 273 | "thread/status/changed": { |
| 274 | "tier": "A", |
| 275 | "params": "#/definitions/ThreadStatusChangedNotification" |
| 276 | }, |
| 277 | "thread/archived": { |
| 278 | "tier": "A", |
| 279 | "params": "#/definitions/ThreadArchivedNotification" |
| 280 | }, |
| 281 | "thread/deleted": { |
| 282 | "tier": "B", |
| 283 | "params": "#/definitions/ThreadDeletedNotification" |
| 284 | }, |
| 285 | "thread/unarchived": { |
| 286 | "tier": "A", |
| 287 | "params": "#/definitions/ThreadUnarchivedNotification" |
| 288 | }, |
| 289 | "thread/closed": { |
| 290 | "tier": "A", |
| 291 | "params": "#/definitions/ThreadClosedNotification" |
| 292 | }, |
| 293 | "thread/reverted": { |
| 294 | "tier": "B", |
| 295 | "params": "#/definitions/ThreadRevertedNotification" |
| 296 | }, |
| 297 | "skills/changed": { |
| 298 | "tier": "B", |
| 299 | "params": "#/definitions/SkillsChangedNotification" |
| 300 | }, |
| 301 | "thread/name/updated": { |
| 302 | "tier": "A", |
| 303 | "params": "#/definitions/ThreadNameUpdatedNotification" |
| 304 | }, |
| 305 | "thread/goal/updated": { |
| 306 | "tier": "A", |
| 307 | "params": "#/definitions/ThreadGoalUpdatedNotification" |
| 308 | }, |
| 309 | "thread/goal/cleared": { |
| 310 | "tier": "A", |
| 311 | "params": "#/definitions/ThreadGoalClearedNotification" |
| 312 | }, |
| 313 | "thread/tokenUsage/updated": { |
| 314 | "tier": "A", |
| 315 | "params": "#/definitions/ThreadTokenUsageUpdatedNotification" |
| 316 | }, |
| 317 | "turn/started": { |
| 318 | "tier": "A", |
| 319 | "params": "#/definitions/TurnStartedNotification" |
| 320 | }, |
| 321 | "turn/completed": { |
| 322 | "tier": "A", |
| 323 | "params": "#/definitions/TurnCompletedNotification" |
| 324 | }, |
| 325 | "turn/diff/updated": { |
| 326 | "tier": "A", |
| 327 | "params": "#/definitions/TurnDiffUpdatedNotification" |
| 328 | }, |
| 329 | "turn/plan/updated": { |
| 330 | "tier": "A", |
| 331 | "params": "#/definitions/TurnPlanUpdatedNotification" |
| 332 | }, |
| 333 | "item/started": { |
| 334 | "tier": "A", |
| 335 | "params": "#/definitions/ItemStartedNotification" |
| 336 | }, |
| 337 | "item/completed": { |
| 338 | "tier": "A", |
| 339 | "params": "#/definitions/ItemCompletedNotification" |
| 340 | }, |
| 341 | "item/agentMessage/delta": { |
| 342 | "tier": "A", |
| 343 | "params": "#/definitions/AgentMessageDeltaNotification" |
| 344 | }, |
| 345 | "item/plan/delta": { |
| 346 | "tier": "A", |
| 347 | "params": "#/definitions/PlanDeltaNotification" |
| 348 | }, |
| 349 | "command/exec/outputDelta": { |
| 350 | "tier": "B", |
| 351 | "params": "#/definitions/CommandExecOutputDeltaNotification" |
| 352 | }, |
| 353 | "item/commandExecution/outputDelta": { |
| 354 | "tier": "A", |
| 355 | "params": "#/definitions/CommandExecutionOutputDeltaNotification" |
| 356 | }, |
| 357 | "item/commandExecution/terminalInteraction": { |
| 358 | "tier": "A", |
| 359 | "params": "#/definitions/TerminalInteractionNotification" |
| 360 | }, |
| 361 | "item/fileChange/outputDelta": { |
| 362 | "tier": "A", |
| 363 | "params": "#/definitions/FileChangeOutputDeltaNotification" |
| 364 | }, |
| 365 | "item/fileChange/patchUpdated": { |
| 366 | "tier": "A", |
| 367 | "params": "#/definitions/FileChangePatchUpdatedNotification" |
| 368 | }, |
| 369 | "serverRequest/resolved": { |
| 370 | "tier": "A", |
| 371 | "params": "#/definitions/ServerRequestResolvedNotification" |
| 372 | }, |
| 373 | "item/mcpToolCall/progress": { |
| 374 | "tier": "A", |
| 375 | "params": "#/definitions/McpToolCallProgressNotification" |
| 376 | }, |
| 377 | "fs/changed": { |
| 378 | "tier": "B", |
| 379 | "params": "#/definitions/FsChangedNotification" |
| 380 | }, |
| 381 | "item/reasoning/summaryTextDelta": { |
| 382 | "tier": "A", |
| 383 | "params": "#/definitions/ReasoningSummaryTextDeltaNotification" |
| 384 | }, |
| 385 | "item/reasoning/summaryPartAdded": { |
| 386 | "tier": "A", |
| 387 | "params": "#/definitions/ReasoningSummaryPartAddedNotification" |
| 388 | }, |
| 389 | "item/reasoning/textDelta": { |
| 390 | "tier": "A", |
| 391 | "params": "#/definitions/ReasoningTextDeltaNotification" |
| 392 | }, |
| 393 | "thread/compacted": { |
| 394 | "tier": "B", |
| 395 | "params": "#/definitions/ContextCompactedNotification" |
| 396 | } |
| 397 | } |
| 398 | }, |
| 399 | "definitions": { |
| 400 | "AbsolutePathBuf": { |
| 401 | "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.", |
| 402 | "type": "string" |
| 403 | }, |
| 404 | "AdditionalFileSystemPermissions": { |
| 405 | "properties": { |
| 406 | "entries": { |
| 407 | "items": { |
| 408 | "$ref": "#/definitions/FileSystemSandboxEntry" |
| 409 | }, |
| 410 | "type": [ |
| 411 | "array", |
| 412 | "null" |
| 413 | ] |
| 414 | }, |
| 415 | "globScanMaxDepth": { |
| 416 | "format": "uint", |
| 417 | "minimum": 1.0, |
| 418 | "type": [ |
| 419 | "integer", |
| 420 | "null" |
| 421 | ] |
| 422 | }, |
| 423 | "read": { |
| 424 | "description": "This will be removed in favor of `entries`.", |
| 425 | "items": { |
| 426 | "$ref": "#/definitions/LegacyAppPathString" |
| 427 | }, |
| 428 | "type": [ |
| 429 | "array", |
| 430 | "null" |
| 431 | ] |
| 432 | }, |
| 433 | "write": { |
| 434 | "description": "This will be removed in favor of `entries`.", |
| 435 | "items": { |
| 436 | "$ref": "#/definitions/LegacyAppPathString" |
| 437 | }, |
| 438 | "type": [ |
| 439 | "array", |
| 440 | "null" |
| 441 | ] |
| 442 | } |
| 443 | }, |
| 444 | "type": "object" |
| 445 | }, |
| 446 | "AdditionalNetworkPermissions": { |
| 447 | "properties": { |
| 448 | "enabled": { |
| 449 | "type": [ |
| 450 | "boolean", |
| 451 | "null" |
| 452 | ] |
| 453 | } |
| 454 | }, |
| 455 | "type": "object" |
| 456 | }, |
| 457 | "AgentMessageDelivery": { |
| 458 | "enum": [ |
| 459 | "async" |
| 460 | ], |
| 461 | "type": "string" |
| 462 | }, |
| 463 | "AgentMessageDeltaNotification": { |
| 464 | "properties": { |
| 465 | "delta": { |
| 466 | "type": "string" |
| 467 | }, |
| 468 | "itemId": { |
| 469 | "type": "string" |
| 470 | }, |
| 471 | "threadId": { |
| 472 | "type": "string" |
| 473 | }, |
| 474 | "turnId": { |
| 475 | "type": "string" |
| 476 | } |
| 477 | }, |
| 478 | "required": [ |
| 479 | "delta", |
| 480 | "itemId", |
| 481 | "threadId", |
| 482 | "turnId" |
| 483 | ], |
| 484 | "title": "AgentMessageDeltaNotification", |
| 485 | "type": "object" |
| 486 | }, |
| 487 | "AgentPath": { |
| 488 | "type": "string" |
| 489 | }, |
| 490 | "AllowDenyRequirement": { |
| 491 | "enum": [ |
| 492 | "allow", |
| 493 | "deny" |
| 494 | ], |
| 495 | "type": "string" |
| 496 | }, |
| 497 | "AnalyticsConfig": { |
| 498 | "additionalProperties": true, |
| 499 | "properties": { |
| 500 | "enabled": { |
| 501 | "type": [ |
| 502 | "boolean", |
| 503 | "null" |
| 504 | ] |
| 505 | } |
| 506 | }, |
| 507 | "type": "object" |
| 508 | }, |
| 509 | "ApprovalsReviewer": { |
| 510 | "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.", |
| 511 | "enum": [ |
| 512 | "user", |
| 513 | "auto_review", |
| 514 | "guardian_subagent" |
| 515 | ], |
| 516 | "type": "string" |
| 517 | }, |
| 518 | "AskForApproval": { |
| 519 | "oneOf": [ |
| 520 | { |
| 521 | "enum": [ |
| 522 | "untrusted", |
| 523 | "on-request", |
| 524 | "never" |
| 525 | ], |
| 526 | "type": "string" |
| 527 | }, |
| 528 | { |
| 529 | "additionalProperties": false, |
| 530 | "properties": { |
| 531 | "granular": { |
| 532 | "properties": { |
| 533 | "mcp_elicitations": { |
| 534 | "type": "boolean" |
| 535 | }, |
| 536 | "request_permissions": { |
| 537 | "default": false, |
| 538 | "type": "boolean" |
| 539 | }, |
| 540 | "rules": { |
| 541 | "type": "boolean" |
| 542 | }, |
| 543 | "sandbox_approval": { |
| 544 | "type": "boolean" |
| 545 | }, |
| 546 | "skill_approval": { |
| 547 | "default": false, |
| 548 | "type": "boolean" |
| 549 | } |
| 550 | }, |
| 551 | "required": [ |
| 552 | "mcp_elicitations", |
| 553 | "rules", |
| 554 | "sandbox_approval" |
| 555 | ], |
| 556 | "type": "object" |
| 557 | } |
| 558 | }, |
| 559 | "required": [ |
| 560 | "granular" |
| 561 | ], |
| 562 | "title": "GranularAskForApproval", |
| 563 | "type": "object" |
| 564 | } |
| 565 | ] |
| 566 | }, |
| 567 | "AsyncUserInputQuestion": { |
| 568 | "additionalProperties": false, |
| 569 | "properties": { |
| 570 | "options": { |
| 571 | "items": { |
| 572 | "type": "string" |
| 573 | }, |
| 574 | "type": [ |
| 575 | "array", |
| 576 | "null" |
| 577 | ] |
| 578 | }, |
| 579 | "title": { |
| 580 | "type": "string" |
| 581 | } |
| 582 | }, |
| 583 | "required": [ |
| 584 | "title" |
| 585 | ], |
| 586 | "type": "object" |
| 587 | }, |
| 588 | "AutoCompactTokenLimitScope": { |
| 589 | "description": "Selects which part of the active context is charged against `model_auto_compact_token_limit`.", |
| 590 | "oneOf": [ |
| 591 | { |
| 592 | "description": "Count the full active context against the limit.", |
| 593 | "enum": [ |
| 594 | "total" |
| 595 | ], |
| 596 | "type": "string" |
| 597 | }, |
| 598 | { |
| 599 | "description": "Count sampled output and later growth after the carried window prefix.", |
| 600 | "enum": [ |
| 601 | "body_after_prefix" |
| 602 | ], |
| 603 | "type": "string" |
| 604 | } |
| 605 | ] |
| 606 | }, |
| 607 | "BrowserUseConfig": { |
| 608 | "properties": { |
| 609 | "allow_history_access": { |
| 610 | "type": [ |
| 611 | "boolean", |
| 612 | "null" |
| 613 | ] |
| 614 | }, |
| 615 | "default_origin_policy": { |
| 616 | "anyOf": [ |
| 617 | { |
| 618 | "$ref": "#/definitions/BrowserUseOriginPolicyConfig" |
| 619 | }, |
| 620 | { |
| 621 | "type": "null" |
| 622 | } |
| 623 | ] |
| 624 | }, |
| 625 | "origins": { |
| 626 | "additionalProperties": { |
| 627 | "$ref": "#/definitions/BrowserUseOriginPolicyConfig" |
| 628 | }, |
| 629 | "type": [ |
| 630 | "object", |
| 631 | "null" |
| 632 | ] |
| 633 | } |
| 634 | }, |
| 635 | "type": "object" |
| 636 | }, |
| 637 | "BrowserUseOriginPolicyConfig": { |
| 638 | "properties": { |
| 639 | "access": { |
| 640 | "anyOf": [ |
| 641 | { |
| 642 | "$ref": "#/definitions/AllowDenyRequirement" |
| 643 | }, |
| 644 | { |
| 645 | "type": "null" |
| 646 | } |
| 647 | ] |
| 648 | }, |
| 649 | "downloads": { |
| 650 | "anyOf": [ |
| 651 | { |
| 652 | "$ref": "#/definitions/AllowDenyRequirement" |
| 653 | }, |
| 654 | { |
| 655 | "type": "null" |
| 656 | } |
| 657 | ] |
| 658 | }, |
| 659 | "full_cdp_access": { |
| 660 | "anyOf": [ |
| 661 | { |
| 662 | "$ref": "#/definitions/AllowDenyRequirement" |
| 663 | }, |
| 664 | { |
| 665 | "type": "null" |
| 666 | } |
| 667 | ] |
| 668 | }, |
| 669 | "uploads": { |
| 670 | "anyOf": [ |
| 671 | { |
| 672 | "$ref": "#/definitions/AllowDenyRequirement" |
| 673 | }, |
| 674 | { |
| 675 | "type": "null" |
| 676 | } |
| 677 | ] |
| 678 | } |
| 679 | }, |
| 680 | "type": "object" |
| 681 | }, |
| 682 | "ByteRange": { |
| 683 | "properties": { |
| 684 | "end": { |
| 685 | "format": "uint", |
| 686 | "minimum": 0.0, |
| 687 | "type": "integer" |
| 688 | }, |
| 689 | "start": { |
| 690 | "format": "uint", |
| 691 | "minimum": 0.0, |
| 692 | "type": "integer" |
| 693 | } |
| 694 | }, |
| 695 | "required": [ |
| 696 | "end", |
| 697 | "start" |
| 698 | ], |
| 699 | "type": "object" |
| 700 | }, |
| 701 | "CapabilityRefusal": { |
| 702 | "type": "object", |
| 703 | "additionalProperties": false, |
| 704 | "properties": { |
| 705 | "code": { |
| 706 | "$ref": "#/definitions/CapabilityRefusalCode" |
| 707 | }, |
| 708 | "method": { |
| 709 | "type": [ |
| 710 | "string", |
| 711 | "null" |
| 712 | ] |
| 713 | }, |
| 714 | "threadId": { |
| 715 | "type": [ |
| 716 | "string", |
| 717 | "null" |
| 718 | ] |
| 719 | } |
| 720 | }, |
| 721 | "required": [ |
| 722 | "code" |
| 723 | ] |
| 724 | }, |
| 725 | "CapabilityRefusalCode": { |
| 726 | "type": "string", |
| 727 | "enum": [ |
| 728 | "unknown_agent", |
| 729 | "not_installed", |
| 730 | "adapter_missing", |
| 731 | "below_min_version", |
| 732 | "needs_sign_in", |
| 733 | "no_acp", |
| 734 | "executor_not_supported", |
| 735 | "environment_not_supported", |
| 736 | "steer_not_supported", |
| 737 | "reopen_not_supported" |
| 738 | ] |
| 739 | }, |
| 740 | "CapabilityRefusalData": { |
| 741 | "type": "object", |
| 742 | "properties": { |
| 743 | "codewhaleRefusal": { |
| 744 | "$ref": "#/definitions/CapabilityRefusal" |
| 745 | } |
| 746 | }, |
| 747 | "required": [ |
| 748 | "codewhaleRefusal" |
| 749 | ] |
| 750 | }, |
| 751 | "ClientInfo": { |
| 752 | "properties": { |
| 753 | "name": { |
| 754 | "type": "string" |
| 755 | }, |
| 756 | "title": { |
| 757 | "type": [ |
| 758 | "string", |
| 759 | "null" |
| 760 | ] |
| 761 | }, |
| 762 | "version": { |
| 763 | "type": "string" |
| 764 | } |
| 765 | }, |
| 766 | "required": [ |
| 767 | "name", |
| 768 | "version" |
| 769 | ], |
| 770 | "type": "object" |
| 771 | }, |
| 772 | "CodexErrorInfo": { |
| 773 | "anyOf": [ |
| 774 | { |
| 775 | "enum": [ |
| 776 | "contextWindowExceeded", |
| 777 | "sessionBudgetExceeded", |
| 778 | "usageLimitExceeded", |
| 779 | "rateLimitExceeded", |
| 780 | "flexUnavailable", |
| 781 | "serverOverloaded", |
| 782 | "modelNotFound", |
| 783 | "policyCapacityUnavailable", |
| 784 | "cyberPolicy", |
| 785 | "misalignmentPolicyViolation", |
| 786 | "tooManyDenials", |
| 787 | "internalServerError", |
| 788 | "unauthorized", |
| 789 | "badRequest", |
| 790 | "threadRollbackFailed", |
| 791 | "sandboxError", |
| 792 | "other" |
| 793 | ], |
| 794 | "type": "string" |
| 795 | }, |
| 796 | { |
| 797 | "additionalProperties": false, |
| 798 | "properties": { |
| 799 | "httpConnectionFailed": { |
| 800 | "properties": { |
| 801 | "httpStatusCode": { |
| 802 | "format": "uint16", |
| 803 | "minimum": 0.0, |
| 804 | "type": [ |
| 805 | "integer", |
| 806 | "null" |
| 807 | ] |
| 808 | } |
| 809 | }, |
| 810 | "type": "object" |
| 811 | } |
| 812 | }, |
| 813 | "required": [ |
| 814 | "httpConnectionFailed" |
| 815 | ], |
| 816 | "title": "HttpConnectionFailedCodexErrorInfo", |
| 817 | "type": "object" |
| 818 | }, |
| 819 | { |
| 820 | "additionalProperties": false, |
| 821 | "description": "Failed to connect to the response SSE stream.", |
| 822 | "properties": { |
| 823 | "responseStreamConnectionFailed": { |
| 824 | "properties": { |
| 825 | "httpStatusCode": { |
| 826 | "format": "uint16", |
| 827 | "minimum": 0.0, |
| 828 | "type": [ |
| 829 | "integer", |
| 830 | "null" |
| 831 | ] |
| 832 | } |
| 833 | }, |
| 834 | "type": "object" |
| 835 | } |
| 836 | }, |
| 837 | "required": [ |
| 838 | "responseStreamConnectionFailed" |
| 839 | ], |
| 840 | "title": "ResponseStreamConnectionFailedCodexErrorInfo", |
| 841 | "type": "object" |
| 842 | }, |
| 843 | { |
| 844 | "additionalProperties": false, |
| 845 | "description": "The response SSE stream disconnected in the middle of a turn before completion.", |
| 846 | "properties": { |
| 847 | "responseStreamDisconnected": { |
| 848 | "properties": { |
| 849 | "httpStatusCode": { |
| 850 | "format": "uint16", |
| 851 | "minimum": 0.0, |
| 852 | "type": [ |
| 853 | "integer", |
| 854 | "null" |
| 855 | ] |
| 856 | } |
| 857 | }, |
| 858 | "type": "object" |
| 859 | } |
| 860 | }, |
| 861 | "required": [ |
| 862 | "responseStreamDisconnected" |
| 863 | ], |
| 864 | "title": "ResponseStreamDisconnectedCodexErrorInfo", |
| 865 | "type": "object" |
| 866 | }, |
| 867 | { |
| 868 | "additionalProperties": false, |
| 869 | "description": "Reached the retry limit for responses.", |
| 870 | "properties": { |
| 871 | "responseTooManyFailedAttempts": { |
| 872 | "properties": { |
| 873 | "httpStatusCode": { |
| 874 | "format": "uint16", |
| 875 | "minimum": 0.0, |
| 876 | "type": [ |
| 877 | "integer", |
| 878 | "null" |
| 879 | ] |
| 880 | } |
| 881 | }, |
| 882 | "type": "object" |
| 883 | } |
| 884 | }, |
| 885 | "required": [ |
| 886 | "responseTooManyFailedAttempts" |
| 887 | ], |
| 888 | "title": "ResponseTooManyFailedAttemptsCodexErrorInfo", |
| 889 | "type": "object" |
| 890 | }, |
| 891 | { |
| 892 | "additionalProperties": false, |
| 893 | "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`.", |
| 894 | "properties": { |
| 895 | "activeTurnNotSteerable": { |
| 896 | "properties": { |
| 897 | "turnKind": { |
| 898 | "$ref": "#/definitions/NonSteerableTurnKind" |
| 899 | } |
| 900 | }, |
| 901 | "required": [ |
| 902 | "turnKind" |
| 903 | ], |
| 904 | "type": "object" |
| 905 | } |
| 906 | }, |
| 907 | "required": [ |
| 908 | "activeTurnNotSteerable" |
| 909 | ], |
| 910 | "title": "ActiveTurnNotSteerableCodexErrorInfo", |
| 911 | "type": "object" |
| 912 | }, |
| 913 | { |
| 914 | "type": [ |
| 915 | "string", |
| 916 | "object" |
| 917 | ] |
| 918 | } |
| 919 | ], |
| 920 | "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." |
| 921 | }, |
| 922 | "CollabAgentState": { |
| 923 | "properties": { |
| 924 | "message": { |
| 925 | "type": [ |
| 926 | "string", |
| 927 | "null" |
| 928 | ] |
| 929 | }, |
| 930 | "status": { |
| 931 | "$ref": "#/definitions/CollabAgentStatus" |
| 932 | } |
| 933 | }, |
| 934 | "required": [ |
| 935 | "status" |
| 936 | ], |
| 937 | "type": "object" |
| 938 | }, |
| 939 | "CollabAgentStatus": { |
| 940 | "enum": [ |
| 941 | "pendingInit", |
| 942 | "running", |
| 943 | "interrupted", |
| 944 | "completed", |
| 945 | "errored", |
| 946 | "shutdown", |
| 947 | "notFound" |
| 948 | ], |
| 949 | "type": "string" |
| 950 | }, |
| 951 | "CollabAgentTool": { |
| 952 | "enum": [ |
| 953 | "spawnAgent", |
| 954 | "sendInput", |
| 955 | "resumeAgent", |
| 956 | "wait", |
| 957 | "closeAgent", |
| 958 | "sendMessage", |
| 959 | "followupTask", |
| 960 | "interruptAgent", |
| 961 | "listAgents" |
| 962 | ], |
| 963 | "type": "string" |
| 964 | }, |
| 965 | "CollabAgentToolCallStatus": { |
| 966 | "enum": [ |
| 967 | "inProgress", |
| 968 | "completed", |
| 969 | "failed", |
| 970 | "interrupted" |
| 971 | ], |
| 972 | "type": "string" |
| 973 | }, |
| 974 | "CollaborationMode": { |
| 975 | "description": "Collaboration mode for a Codex session.", |
| 976 | "properties": { |
| 977 | "mode": { |
| 978 | "$ref": "#/definitions/ModeKind" |
| 979 | }, |
| 980 | "settings": { |
| 981 | "$ref": "#/definitions/Settings" |
| 982 | } |
| 983 | }, |
| 984 | "required": [ |
| 985 | "mode", |
| 986 | "settings" |
| 987 | ], |
| 988 | "type": "object" |
| 989 | }, |
| 990 | "CommandAction": { |
| 991 | "oneOf": [ |
| 992 | { |
| 993 | "properties": { |
| 994 | "command": { |
| 995 | "type": "string" |
| 996 | }, |
| 997 | "name": { |
| 998 | "type": "string" |
| 999 | }, |
| 1000 | "path": { |
| 1001 | "$ref": "#/definitions/LegacyAppPathString" |
| 1002 | }, |
| 1003 | "type": { |
| 1004 | "enum": [ |
| 1005 | "read" |
| 1006 | ], |
| 1007 | "title": "ReadCommandActionType", |
| 1008 | "type": "string" |
| 1009 | } |
| 1010 | }, |
| 1011 | "required": [ |
| 1012 | "command", |
| 1013 | "name", |
| 1014 | "path", |
| 1015 | "type" |
| 1016 | ], |
| 1017 | "title": "ReadCommandAction", |
| 1018 | "type": "object" |
| 1019 | }, |
| 1020 | { |
| 1021 | "properties": { |
| 1022 | "command": { |
| 1023 | "type": "string" |
| 1024 | }, |
| 1025 | "path": { |
| 1026 | "type": [ |
| 1027 | "string", |
| 1028 | "null" |
| 1029 | ] |
| 1030 | }, |
| 1031 | "type": { |
| 1032 | "enum": [ |
| 1033 | "listFiles" |
| 1034 | ], |
| 1035 | "title": "ListFilesCommandActionType", |
| 1036 | "type": "string" |
| 1037 | } |
| 1038 | }, |
| 1039 | "required": [ |
| 1040 | "command", |
| 1041 | "type" |
| 1042 | ], |
| 1043 | "title": "ListFilesCommandAction", |
| 1044 | "type": "object" |
| 1045 | }, |
| 1046 | { |
| 1047 | "properties": { |
| 1048 | "command": { |
| 1049 | "type": "string" |
| 1050 | }, |
| 1051 | "path": { |
| 1052 | "type": [ |
| 1053 | "string", |
| 1054 | "null" |
| 1055 | ] |
| 1056 | }, |
| 1057 | "query": { |
| 1058 | "type": [ |
| 1059 | "string", |
| 1060 | "null" |
| 1061 | ] |
| 1062 | }, |
| 1063 | "type": { |
| 1064 | "enum": [ |
| 1065 | "search" |
| 1066 | ], |
| 1067 | "title": "SearchCommandActionType", |
| 1068 | "type": "string" |
| 1069 | } |
| 1070 | }, |
| 1071 | "required": [ |
| 1072 | "command", |
| 1073 | "type" |
| 1074 | ], |
| 1075 | "title": "SearchCommandAction", |
| 1076 | "type": "object" |
| 1077 | }, |
| 1078 | { |
| 1079 | "properties": { |
| 1080 | "command": { |
| 1081 | "type": "string" |
| 1082 | }, |
| 1083 | "type": { |
| 1084 | "enum": [ |
| 1085 | "unknown" |
| 1086 | ], |
| 1087 | "title": "UnknownCommandActionType", |
| 1088 | "type": "string" |
| 1089 | } |
| 1090 | }, |
| 1091 | "required": [ |
| 1092 | "command", |
| 1093 | "type" |
| 1094 | ], |
| 1095 | "title": "UnknownCommandAction", |
| 1096 | "type": "object" |
| 1097 | } |
| 1098 | ] |
| 1099 | }, |
| 1100 | "CommandExecOutputDeltaNotification": { |
| 1101 | "description": "Base64-encoded output chunk emitted for a streaming `command/exec` request.\n\nThese notifications are connection-scoped. If the originating connection closes, the server terminates the process.", |
| 1102 | "properties": { |
| 1103 | "capReached": { |
| 1104 | "description": "`true` on the final streamed chunk for a stream when `outputBytesCap` truncated later output on that stream.", |
| 1105 | "type": "boolean" |
| 1106 | }, |
| 1107 | "deltaBase64": { |
| 1108 | "description": "Base64-encoded output bytes.", |
| 1109 | "type": "string" |
| 1110 | }, |
| 1111 | "processId": { |
| 1112 | "description": "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", |
| 1113 | "type": "string" |
| 1114 | }, |
| 1115 | "stream": { |
| 1116 | "allOf": [ |
| 1117 | { |
| 1118 | "$ref": "#/definitions/CommandExecOutputStream" |
| 1119 | } |
| 1120 | ], |
| 1121 | "description": "Output stream for this chunk." |
| 1122 | } |
| 1123 | }, |
| 1124 | "required": [ |
| 1125 | "capReached", |
| 1126 | "deltaBase64", |
| 1127 | "processId", |
| 1128 | "stream" |
| 1129 | ], |
| 1130 | "title": "CommandExecOutputDeltaNotification", |
| 1131 | "type": "object" |
| 1132 | }, |
| 1133 | "CommandExecOutputStream": { |
| 1134 | "description": "Stream label for `command/exec/outputDelta` notifications.", |
| 1135 | "oneOf": [ |
| 1136 | { |
| 1137 | "description": "stdout stream. PTY mode multiplexes terminal output here.", |
| 1138 | "enum": [ |
| 1139 | "stdout" |
| 1140 | ], |
| 1141 | "type": "string" |
| 1142 | }, |
| 1143 | { |
| 1144 | "description": "stderr stream.", |
| 1145 | "enum": [ |
| 1146 | "stderr" |
| 1147 | ], |
| 1148 | "type": "string" |
| 1149 | } |
| 1150 | ] |
| 1151 | }, |
| 1152 | "CommandExecParams": { |
| 1153 | "description": "Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.\n\nThe final `command/exec` response is deferred until the process exits and is sent only after all `command/exec/outputDelta` notifications for that connection have been emitted.", |
| 1154 | "properties": { |
| 1155 | "command": { |
| 1156 | "description": "Command argv vector. Empty arrays are rejected.", |
| 1157 | "items": { |
| 1158 | "type": "string" |
| 1159 | }, |
| 1160 | "type": "array" |
| 1161 | }, |
| 1162 | "cwd": { |
| 1163 | "description": "Optional working directory. Defaults to the server cwd.", |
| 1164 | "type": [ |
| 1165 | "string", |
| 1166 | "null" |
| 1167 | ] |
| 1168 | }, |
| 1169 | "disableOutputCap": { |
| 1170 | "description": "Disable stdout/stderr capture truncation for this request.\n\nCannot be combined with `outputBytesCap`.", |
| 1171 | "type": "boolean" |
| 1172 | }, |
| 1173 | "disableTimeout": { |
| 1174 | "description": "Disable the timeout entirely for this request.\n\nCannot be combined with `timeoutMs`.", |
| 1175 | "type": "boolean" |
| 1176 | }, |
| 1177 | "env": { |
| 1178 | "additionalProperties": { |
| 1179 | "type": [ |
| 1180 | "string", |
| 1181 | "null" |
| 1182 | ] |
| 1183 | }, |
| 1184 | "description": "Optional environment overrides merged into the server-computed environment.\n\nMatching names override inherited values. Set a key to `null` to unset an inherited variable.", |
| 1185 | "type": [ |
| 1186 | "object", |
| 1187 | "null" |
| 1188 | ] |
| 1189 | }, |
| 1190 | "outputBytesCap": { |
| 1191 | "description": "Optional per-stream stdout/stderr capture cap in bytes.\n\nWhen omitted, the server default applies. Cannot be combined with `disableOutputCap`.", |
| 1192 | "format": "uint", |
| 1193 | "minimum": 0.0, |
| 1194 | "type": [ |
| 1195 | "integer", |
| 1196 | "null" |
| 1197 | ] |
| 1198 | }, |
| 1199 | "processId": { |
| 1200 | "description": "Optional client-supplied, connection-scoped process id.\n\nRequired for `tty`, `streamStdin`, `streamStdoutStderr`, and follow-up `command/exec/write`, `command/exec/resize`, and `command/exec/terminate` calls. When omitted, buffered execution gets an internal id that is not exposed to the client.", |
| 1201 | "type": [ |
| 1202 | "string", |
| 1203 | "null" |
| 1204 | ] |
| 1205 | }, |
| 1206 | "sandboxPolicy": { |
| 1207 | "anyOf": [ |
| 1208 | { |
| 1209 | "$ref": "#/definitions/SandboxPolicy" |
| 1210 | }, |
| 1211 | { |
| 1212 | "type": "null" |
| 1213 | } |
| 1214 | ], |
| 1215 | "description": "Optional sandbox policy for this command.\n\nUses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted. Cannot be combined with `permissionProfile`." |
| 1216 | }, |
| 1217 | "size": { |
| 1218 | "anyOf": [ |
| 1219 | { |
| 1220 | "$ref": "#/definitions/CommandExecTerminalSize" |
| 1221 | }, |
| 1222 | { |
| 1223 | "type": "null" |
| 1224 | } |
| 1225 | ], |
| 1226 | "description": "Optional initial PTY size in character cells. Only valid when `tty` is true." |
| 1227 | }, |
| 1228 | "streamStdin": { |
| 1229 | "description": "Allow follow-up `command/exec/write` requests to write stdin bytes.\n\nRequires a client-supplied `processId`.", |
| 1230 | "type": "boolean" |
| 1231 | }, |
| 1232 | "streamStdoutStderr": { |
| 1233 | "description": "Stream stdout/stderr via `command/exec/outputDelta` notifications.\n\nStreamed bytes are not duplicated into the final response and require a client-supplied `processId`.", |
| 1234 | "type": "boolean" |
| 1235 | }, |
| 1236 | "timeoutMs": { |
| 1237 | "description": "Optional timeout in milliseconds.\n\nWhen omitted, the server default applies. Cannot be combined with `disableTimeout`.", |
| 1238 | "format": "int64", |
| 1239 | "type": [ |
| 1240 | "integer", |
| 1241 | "null" |
| 1242 | ] |
| 1243 | }, |
| 1244 | "tty": { |
| 1245 | "description": "Enable PTY mode.\n\nThis implies `streamStdin` and `streamStdoutStderr`.", |
| 1246 | "type": "boolean" |
| 1247 | } |
| 1248 | }, |
| 1249 | "required": [ |
| 1250 | "command" |
| 1251 | ], |
| 1252 | "title": "CommandExecParams", |
| 1253 | "type": "object" |
| 1254 | }, |
| 1255 | "CommandExecResizeParams": { |
| 1256 | "description": "Resize a running PTY-backed `command/exec` session.", |
| 1257 | "properties": { |
| 1258 | "processId": { |
| 1259 | "description": "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", |
| 1260 | "type": "string" |
| 1261 | }, |
| 1262 | "size": { |
| 1263 | "allOf": [ |
| 1264 | { |
| 1265 | "$ref": "#/definitions/CommandExecTerminalSize" |
| 1266 | } |
| 1267 | ], |
| 1268 | "description": "New PTY size in character cells." |
| 1269 | } |
| 1270 | }, |
| 1271 | "required": [ |
| 1272 | "processId", |
| 1273 | "size" |
| 1274 | ], |
| 1275 | "title": "CommandExecResizeParams", |
| 1276 | "type": "object" |
| 1277 | }, |
| 1278 | "CommandExecResizeResponse": { |
| 1279 | "description": "Empty success response for `command/exec/resize`.", |
| 1280 | "title": "CommandExecResizeResponse", |
| 1281 | "type": "object" |
| 1282 | }, |
| 1283 | "CommandExecResponse": { |
| 1284 | "description": "Final buffered result for `command/exec`.", |
| 1285 | "properties": { |
| 1286 | "exitCode": { |
| 1287 | "description": "Process exit code.", |
| 1288 | "format": "int32", |
| 1289 | "type": "integer" |
| 1290 | }, |
| 1291 | "stderr": { |
| 1292 | "description": "Buffered stderr capture.\n\nEmpty when stderr was streamed via `command/exec/outputDelta`.", |
| 1293 | "type": "string" |
| 1294 | }, |
| 1295 | "stdout": { |
| 1296 | "description": "Buffered stdout capture.\n\nEmpty when stdout was streamed via `command/exec/outputDelta`.", |
| 1297 | "type": "string" |
| 1298 | } |
| 1299 | }, |
| 1300 | "required": [ |
| 1301 | "exitCode", |
| 1302 | "stderr", |
| 1303 | "stdout" |
| 1304 | ], |
| 1305 | "title": "CommandExecResponse", |
| 1306 | "type": "object" |
| 1307 | }, |
| 1308 | "CommandExecTerminalSize": { |
| 1309 | "description": "PTY size in character cells for `command/exec` PTY sessions.", |
| 1310 | "properties": { |
| 1311 | "cols": { |
| 1312 | "description": "Terminal width in character cells.", |
| 1313 | "format": "uint16", |
| 1314 | "minimum": 0.0, |
| 1315 | "type": "integer" |
| 1316 | }, |
| 1317 | "rows": { |
| 1318 | "description": "Terminal height in character cells.", |
| 1319 | "format": "uint16", |
| 1320 | "minimum": 0.0, |
| 1321 | "type": "integer" |
| 1322 | } |
| 1323 | }, |
| 1324 | "required": [ |
| 1325 | "cols", |
| 1326 | "rows" |
| 1327 | ], |
| 1328 | "type": "object" |
| 1329 | }, |
| 1330 | "CommandExecTerminateParams": { |
| 1331 | "description": "Terminate a running `command/exec` session.", |
| 1332 | "properties": { |
| 1333 | "processId": { |
| 1334 | "description": "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", |
| 1335 | "type": "string" |
| 1336 | } |
| 1337 | }, |
| 1338 | "required": [ |
| 1339 | "processId" |
| 1340 | ], |
| 1341 | "title": "CommandExecTerminateParams", |
| 1342 | "type": "object" |
| 1343 | }, |
| 1344 | "CommandExecTerminateResponse": { |
| 1345 | "description": "Empty success response for `command/exec/terminate`.", |
| 1346 | "title": "CommandExecTerminateResponse", |
| 1347 | "type": "object" |
| 1348 | }, |
| 1349 | "CommandExecWriteParams": { |
| 1350 | "description": "Write stdin bytes to a running `command/exec` session, close stdin, or both.", |
| 1351 | "properties": { |
| 1352 | "closeStdin": { |
| 1353 | "description": "Close stdin after writing `deltaBase64`, if present.", |
| 1354 | "type": "boolean" |
| 1355 | }, |
| 1356 | "deltaBase64": { |
| 1357 | "description": "Optional base64-encoded stdin bytes to write.", |
| 1358 | "type": [ |
| 1359 | "string", |
| 1360 | "null" |
| 1361 | ] |
| 1362 | }, |
| 1363 | "processId": { |
| 1364 | "description": "Client-supplied, connection-scoped `processId` from the original `command/exec` request.", |
| 1365 | "type": "string" |
| 1366 | } |
| 1367 | }, |
| 1368 | "required": [ |
| 1369 | "processId" |
| 1370 | ], |
| 1371 | "title": "CommandExecWriteParams", |
| 1372 | "type": "object" |
| 1373 | }, |
| 1374 | "CommandExecWriteResponse": { |
| 1375 | "description": "Empty success response for `command/exec/write`.", |
| 1376 | "title": "CommandExecWriteResponse", |
| 1377 | "type": "object" |
| 1378 | }, |
| 1379 | "CommandExecutionApprovalDecision": { |
| 1380 | "oneOf": [ |
| 1381 | { |
| 1382 | "description": "User approved the command.", |
| 1383 | "enum": [ |
| 1384 | "accept" |
| 1385 | ], |
| 1386 | "type": "string" |
| 1387 | }, |
| 1388 | { |
| 1389 | "description": "User approved the command and future prompts in the same session-scoped approval cache should run without prompting.", |
| 1390 | "enum": [ |
| 1391 | "acceptForSession" |
| 1392 | ], |
| 1393 | "type": "string" |
| 1394 | }, |
| 1395 | { |
| 1396 | "additionalProperties": false, |
| 1397 | "description": "User approved the command, and wants to apply the proposed execpolicy amendment so future matching commands can run without prompting.", |
| 1398 | "properties": { |
| 1399 | "acceptWithExecpolicyAmendment": { |
| 1400 | "properties": { |
| 1401 | "execpolicy_amendment": { |
| 1402 | "items": { |
| 1403 | "type": "string" |
| 1404 | }, |
| 1405 | "type": "array" |
| 1406 | } |
| 1407 | }, |
| 1408 | "required": [ |
| 1409 | "execpolicy_amendment" |
| 1410 | ], |
| 1411 | "type": "object" |
| 1412 | } |
| 1413 | }, |
| 1414 | "required": [ |
| 1415 | "acceptWithExecpolicyAmendment" |
| 1416 | ], |
| 1417 | "title": "AcceptWithExecpolicyAmendmentCommandExecutionApprovalDecision", |
| 1418 | "type": "object" |
| 1419 | }, |
| 1420 | { |
| 1421 | "additionalProperties": false, |
| 1422 | "description": "User chose a persistent network policy rule (allow/deny) for this host.", |
| 1423 | "properties": { |
| 1424 | "applyNetworkPolicyAmendment": { |
| 1425 | "properties": { |
| 1426 | "network_policy_amendment": { |
| 1427 | "$ref": "#/definitions/NetworkPolicyAmendment" |
| 1428 | } |
| 1429 | }, |
| 1430 | "required": [ |
| 1431 | "network_policy_amendment" |
| 1432 | ], |
| 1433 | "type": "object" |
| 1434 | } |
| 1435 | }, |
| 1436 | "required": [ |
| 1437 | "applyNetworkPolicyAmendment" |
| 1438 | ], |
| 1439 | "title": "ApplyNetworkPolicyAmendmentCommandExecutionApprovalDecision", |
| 1440 | "type": "object" |
| 1441 | }, |
| 1442 | { |
| 1443 | "description": "User denied the command. The agent will continue the turn.", |
| 1444 | "enum": [ |
| 1445 | "decline" |
| 1446 | ], |
| 1447 | "type": "string" |
| 1448 | }, |
| 1449 | { |
| 1450 | "description": "User denied the command. The turn will also be immediately interrupted.", |
| 1451 | "enum": [ |
| 1452 | "cancel" |
| 1453 | ], |
| 1454 | "type": "string" |
| 1455 | } |
| 1456 | ] |
| 1457 | }, |
| 1458 | "CommandExecutionApprovalKind": { |
| 1459 | "description": "Distinguishes a command approval from input sent to an existing terminal.", |
| 1460 | "enum": [ |
| 1461 | "command", |
| 1462 | "writeStdin" |
| 1463 | ], |
| 1464 | "type": "string" |
| 1465 | }, |
| 1466 | "CommandExecutionOutputDeltaNotification": { |
| 1467 | "properties": { |
| 1468 | "delta": { |
| 1469 | "type": "string" |
| 1470 | }, |
| 1471 | "itemId": { |
| 1472 | "type": "string" |
| 1473 | }, |
| 1474 | "threadId": { |
| 1475 | "type": "string" |
| 1476 | }, |
| 1477 | "turnId": { |
| 1478 | "type": "string" |
| 1479 | } |
| 1480 | }, |
| 1481 | "required": [ |
| 1482 | "delta", |
| 1483 | "itemId", |
| 1484 | "threadId", |
| 1485 | "turnId" |
| 1486 | ], |
| 1487 | "title": "CommandExecutionOutputDeltaNotification", |
| 1488 | "type": "object" |
| 1489 | }, |
| 1490 | "CommandExecutionRequestApprovalParams": { |
| 1491 | "properties": { |
| 1492 | "approvalId": { |
| 1493 | "description": "Unique identifier for this specific approval callback.\n\nFor regular shell/unified_exec approvals, this is null.\n\nFor zsh-exec-bridge subcommand approvals, multiple callbacks can belong to one parent `itemId`, so `approvalId` is a distinct opaque callback id (a UUID) used to disambiguate routing. Stdin approvals also use a distinct callback id; inspect `kind` to distinguish them.", |
| 1494 | "type": [ |
| 1495 | "string", |
| 1496 | "null" |
| 1497 | ] |
| 1498 | }, |
| 1499 | "command": { |
| 1500 | "description": "The command to be executed.", |
| 1501 | "type": [ |
| 1502 | "string", |
| 1503 | "null" |
| 1504 | ] |
| 1505 | }, |
| 1506 | "commandActions": { |
| 1507 | "description": "Best-effort parsed command actions for friendly display.", |
| 1508 | "items": { |
| 1509 | "$ref": "#/definitions/CommandAction" |
| 1510 | }, |
| 1511 | "type": [ |
| 1512 | "array", |
| 1513 | "null" |
| 1514 | ] |
| 1515 | }, |
| 1516 | "cwd": { |
| 1517 | "anyOf": [ |
| 1518 | { |
| 1519 | "$ref": "#/definitions/LegacyAppPathString" |
| 1520 | }, |
| 1521 | { |
| 1522 | "type": "null" |
| 1523 | } |
| 1524 | ], |
| 1525 | "description": "The command's working directory." |
| 1526 | }, |
| 1527 | "environmentId": { |
| 1528 | "default": null, |
| 1529 | "description": "Environment in which the command will run.", |
| 1530 | "type": [ |
| 1531 | "string", |
| 1532 | "null" |
| 1533 | ] |
| 1534 | }, |
| 1535 | "itemId": { |
| 1536 | "type": "string" |
| 1537 | }, |
| 1538 | "kind": { |
| 1539 | "allOf": [ |
| 1540 | { |
| 1541 | "$ref": "#/definitions/CommandExecutionApprovalKind" |
| 1542 | } |
| 1543 | ], |
| 1544 | "default": "command", |
| 1545 | "description": "Kind of action under review. Defaults to `command` for older servers." |
| 1546 | }, |
| 1547 | "networkApprovalContext": { |
| 1548 | "anyOf": [ |
| 1549 | { |
| 1550 | "$ref": "#/definitions/NetworkApprovalContext" |
| 1551 | }, |
| 1552 | { |
| 1553 | "type": "null" |
| 1554 | } |
| 1555 | ], |
| 1556 | "description": "Optional context for a managed-network approval prompt." |
| 1557 | }, |
| 1558 | "proposedExecpolicyAmendment": { |
| 1559 | "description": "Optional proposed execpolicy amendment to allow similar commands without prompting.", |
| 1560 | "items": { |
| 1561 | "type": "string" |
| 1562 | }, |
| 1563 | "type": [ |
| 1564 | "array", |
| 1565 | "null" |
| 1566 | ] |
| 1567 | }, |
| 1568 | "proposedNetworkPolicyAmendments": { |
| 1569 | "description": "Optional proposed network policy amendments (allow/deny host) for future requests.", |
| 1570 | "items": { |
| 1571 | "$ref": "#/definitions/NetworkPolicyAmendment" |
| 1572 | }, |
| 1573 | "type": [ |
| 1574 | "array", |
| 1575 | "null" |
| 1576 | ] |
| 1577 | }, |
| 1578 | "reason": { |
| 1579 | "description": "Optional explanatory reason (e.g. request for network access).", |
| 1580 | "type": [ |
| 1581 | "string", |
| 1582 | "null" |
| 1583 | ] |
| 1584 | }, |
| 1585 | "startedAtMs": { |
| 1586 | "description": "Unix timestamp (in milliseconds) when this approval request started.", |
| 1587 | "format": "int64", |
| 1588 | "type": "integer" |
| 1589 | }, |
| 1590 | "threadId": { |
| 1591 | "type": "string" |
| 1592 | }, |
| 1593 | "turnId": { |
| 1594 | "type": "string" |
| 1595 | } |
| 1596 | }, |
| 1597 | "required": [ |
| 1598 | "itemId", |
| 1599 | "startedAtMs", |
| 1600 | "threadId", |
| 1601 | "turnId" |
| 1602 | ], |
| 1603 | "title": "CommandExecutionRequestApprovalParams", |
| 1604 | "type": "object" |
| 1605 | }, |
| 1606 | "CommandExecutionRequestApprovalResponse": { |
| 1607 | "properties": { |
| 1608 | "decision": { |
| 1609 | "$ref": "#/definitions/CommandExecutionApprovalDecision" |
| 1610 | } |
| 1611 | }, |
| 1612 | "required": [ |
| 1613 | "decision" |
| 1614 | ], |
| 1615 | "title": "CommandExecutionRequestApprovalResponse", |
| 1616 | "type": "object" |
| 1617 | }, |
| 1618 | "CommandExecutionSource": { |
| 1619 | "enum": [ |
| 1620 | "agent", |
| 1621 | "userShell", |
| 1622 | "unifiedExecStartup", |
| 1623 | "unifiedExecInteraction" |
| 1624 | ], |
| 1625 | "type": "string" |
| 1626 | }, |
| 1627 | "CommandExecutionStatus": { |
| 1628 | "enum": [ |
| 1629 | "inProgress", |
| 1630 | "completed", |
| 1631 | "failed", |
| 1632 | "declined" |
| 1633 | ], |
| 1634 | "type": "string" |
| 1635 | }, |
| 1636 | "ComputerUseConfig": { |
| 1637 | "properties": { |
| 1638 | "default_app_access": { |
| 1639 | "anyOf": [ |
| 1640 | { |
| 1641 | "$ref": "#/definitions/AllowDenyRequirement" |
| 1642 | }, |
| 1643 | { |
| 1644 | "type": "null" |
| 1645 | } |
| 1646 | ] |
| 1647 | }, |
| 1648 | "macos": { |
| 1649 | "anyOf": [ |
| 1650 | { |
| 1651 | "$ref": "#/definitions/ComputerUseMacosConfig" |
| 1652 | }, |
| 1653 | { |
| 1654 | "type": "null" |
| 1655 | } |
| 1656 | ] |
| 1657 | }, |
| 1658 | "windows": { |
| 1659 | "anyOf": [ |
| 1660 | { |
| 1661 | "$ref": "#/definitions/ComputerUseWindowsConfig" |
| 1662 | }, |
| 1663 | { |
| 1664 | "type": "null" |
| 1665 | } |
| 1666 | ] |
| 1667 | } |
| 1668 | }, |
| 1669 | "type": "object" |
| 1670 | }, |
| 1671 | "ComputerUseMacosConfig": { |
| 1672 | "properties": { |
| 1673 | "bundle_ids": { |
| 1674 | "additionalProperties": { |
| 1675 | "$ref": "#/definitions/AllowDenyRequirement" |
| 1676 | }, |
| 1677 | "type": [ |
| 1678 | "object", |
| 1679 | "null" |
| 1680 | ] |
| 1681 | } |
| 1682 | }, |
| 1683 | "type": "object" |
| 1684 | }, |
| 1685 | "ComputerUseWindowsConfig": { |
| 1686 | "properties": { |
| 1687 | "aumids": { |
| 1688 | "additionalProperties": { |
| 1689 | "$ref": "#/definitions/AllowDenyRequirement" |
| 1690 | }, |
| 1691 | "type": [ |
| 1692 | "object", |
| 1693 | "null" |
| 1694 | ] |
| 1695 | }, |
| 1696 | "exes": { |
| 1697 | "items": { |
| 1698 | "$ref": "#/definitions/ComputerUseWindowsExeConfig" |
| 1699 | }, |
| 1700 | "type": [ |
| 1701 | "array", |
| 1702 | "null" |
| 1703 | ] |
| 1704 | } |
| 1705 | }, |
| 1706 | "type": "object" |
| 1707 | }, |
| 1708 | "ComputerUseWindowsExeConfig": { |
| 1709 | "properties": { |
| 1710 | "access": { |
| 1711 | "$ref": "#/definitions/AllowDenyRequirement" |
| 1712 | }, |
| 1713 | "binary_name": { |
| 1714 | "type": [ |
| 1715 | "string", |
| 1716 | "null" |
| 1717 | ] |
| 1718 | }, |
| 1719 | "product_name": { |
| 1720 | "type": "string" |
| 1721 | }, |
| 1722 | "publisher_name": { |
| 1723 | "type": "string" |
| 1724 | } |
| 1725 | }, |
| 1726 | "required": [ |
| 1727 | "access", |
| 1728 | "product_name", |
| 1729 | "publisher_name" |
| 1730 | ], |
| 1731 | "type": "object" |
| 1732 | }, |
| 1733 | "Config": { |
| 1734 | "additionalProperties": true, |
| 1735 | "properties": { |
| 1736 | "analytics": { |
| 1737 | "anyOf": [ |
| 1738 | { |
| 1739 | "$ref": "#/definitions/AnalyticsConfig" |
| 1740 | }, |
| 1741 | { |
| 1742 | "type": "null" |
| 1743 | } |
| 1744 | ] |
| 1745 | }, |
| 1746 | "approval_policy": { |
| 1747 | "anyOf": [ |
| 1748 | { |
| 1749 | "$ref": "#/definitions/AskForApproval" |
| 1750 | }, |
| 1751 | { |
| 1752 | "type": "null" |
| 1753 | } |
| 1754 | ] |
| 1755 | }, |
| 1756 | "approvals_reviewer": { |
| 1757 | "anyOf": [ |
| 1758 | { |
| 1759 | "$ref": "#/definitions/ApprovalsReviewer" |
| 1760 | }, |
| 1761 | { |
| 1762 | "type": "null" |
| 1763 | } |
| 1764 | ], |
| 1765 | "description": "[UNSTABLE] Optional default for where approval requests are routed for review." |
| 1766 | }, |
| 1767 | "browser_use": { |
| 1768 | "anyOf": [ |
| 1769 | { |
| 1770 | "$ref": "#/definitions/BrowserUseConfig" |
| 1771 | }, |
| 1772 | { |
| 1773 | "type": "null" |
| 1774 | } |
| 1775 | ] |
| 1776 | }, |
| 1777 | "compact_prompt": { |
| 1778 | "type": [ |
| 1779 | "string", |
| 1780 | "null" |
| 1781 | ] |
| 1782 | }, |
| 1783 | "computer_use": { |
| 1784 | "anyOf": [ |
| 1785 | { |
| 1786 | "$ref": "#/definitions/ComputerUseConfig" |
| 1787 | }, |
| 1788 | { |
| 1789 | "type": "null" |
| 1790 | } |
| 1791 | ] |
| 1792 | }, |
| 1793 | "desktop": { |
| 1794 | "additionalProperties": true, |
| 1795 | "type": [ |
| 1796 | "object", |
| 1797 | "null" |
| 1798 | ] |
| 1799 | }, |
| 1800 | "developer_instructions": { |
| 1801 | "type": [ |
| 1802 | "string", |
| 1803 | "null" |
| 1804 | ] |
| 1805 | }, |
| 1806 | "forced_chatgpt_workspace_id": { |
| 1807 | "anyOf": [ |
| 1808 | { |
| 1809 | "$ref": "#/definitions/ForcedChatgptWorkspaceIds" |
| 1810 | }, |
| 1811 | { |
| 1812 | "type": "null" |
| 1813 | } |
| 1814 | ] |
| 1815 | }, |
| 1816 | "forced_login_method": { |
| 1817 | "anyOf": [ |
| 1818 | { |
| 1819 | "$ref": "#/definitions/ForcedLoginMethod" |
| 1820 | }, |
| 1821 | { |
| 1822 | "type": "null" |
| 1823 | } |
| 1824 | ] |
| 1825 | }, |
| 1826 | "instructions": { |
| 1827 | "type": [ |
| 1828 | "string", |
| 1829 | "null" |
| 1830 | ] |
| 1831 | }, |
| 1832 | "model": { |
| 1833 | "type": [ |
| 1834 | "string", |
| 1835 | "null" |
| 1836 | ] |
| 1837 | }, |
| 1838 | "model_auto_compact_token_limit": { |
| 1839 | "format": "int64", |
| 1840 | "type": [ |
| 1841 | "integer", |
| 1842 | "null" |
| 1843 | ] |
| 1844 | }, |
| 1845 | "model_auto_compact_token_limit_scope": { |
| 1846 | "anyOf": [ |
| 1847 | { |
| 1848 | "$ref": "#/definitions/AutoCompactTokenLimitScope" |
| 1849 | }, |
| 1850 | { |
| 1851 | "type": "null" |
| 1852 | } |
| 1853 | ] |
| 1854 | }, |
| 1855 | "model_context_window": { |
| 1856 | "format": "int64", |
| 1857 | "type": [ |
| 1858 | "integer", |
| 1859 | "null" |
| 1860 | ] |
| 1861 | }, |
| 1862 | "model_provider": { |
| 1863 | "type": [ |
| 1864 | "string", |
| 1865 | "null" |
| 1866 | ] |
| 1867 | }, |
| 1868 | "model_reasoning_effort": { |
| 1869 | "anyOf": [ |
| 1870 | { |
| 1871 | "$ref": "#/definitions/ReasoningEffort" |
| 1872 | }, |
| 1873 | { |
| 1874 | "type": "null" |
| 1875 | } |
| 1876 | ] |
| 1877 | }, |
| 1878 | "model_reasoning_summary": { |
| 1879 | "anyOf": [ |
| 1880 | { |
| 1881 | "$ref": "#/definitions/ReasoningSummary" |
| 1882 | }, |
| 1883 | { |
| 1884 | "type": "null" |
| 1885 | } |
| 1886 | ] |
| 1887 | }, |
| 1888 | "model_verbosity": { |
| 1889 | "anyOf": [ |
| 1890 | { |
| 1891 | "$ref": "#/definitions/Verbosity" |
| 1892 | }, |
| 1893 | { |
| 1894 | "type": "null" |
| 1895 | } |
| 1896 | ] |
| 1897 | }, |
| 1898 | "review_model": { |
| 1899 | "type": [ |
| 1900 | "string", |
| 1901 | "null" |
| 1902 | ] |
| 1903 | }, |
| 1904 | "sandbox_mode": { |
| 1905 | "anyOf": [ |
| 1906 | { |
| 1907 | "$ref": "#/definitions/SandboxMode" |
| 1908 | }, |
| 1909 | { |
| 1910 | "type": "null" |
| 1911 | } |
| 1912 | ] |
| 1913 | }, |
| 1914 | "sandbox_workspace_write": { |
| 1915 | "anyOf": [ |
| 1916 | { |
| 1917 | "$ref": "#/definitions/SandboxWorkspaceWrite" |
| 1918 | }, |
| 1919 | { |
| 1920 | "type": "null" |
| 1921 | } |
| 1922 | ] |
| 1923 | }, |
| 1924 | "service_tier": { |
| 1925 | "type": [ |
| 1926 | "string", |
| 1927 | "null" |
| 1928 | ] |
| 1929 | }, |
| 1930 | "tools": { |
| 1931 | "anyOf": [ |
| 1932 | { |
| 1933 | "$ref": "#/definitions/ToolsV2" |
| 1934 | }, |
| 1935 | { |
| 1936 | "type": "null" |
| 1937 | } |
| 1938 | ] |
| 1939 | }, |
| 1940 | "web_search": { |
| 1941 | "anyOf": [ |
| 1942 | { |
| 1943 | "$ref": "#/definitions/WebSearchMode" |
| 1944 | }, |
| 1945 | { |
| 1946 | "type": "null" |
| 1947 | } |
| 1948 | ] |
| 1949 | } |
| 1950 | }, |
| 1951 | "type": "object" |
| 1952 | }, |
| 1953 | "ConfigBatchWriteParams": { |
| 1954 | "properties": { |
| 1955 | "edits": { |
| 1956 | "items": { |
| 1957 | "$ref": "#/definitions/ConfigEdit" |
| 1958 | }, |
| 1959 | "type": "array" |
| 1960 | }, |
| 1961 | "expectedVersion": { |
| 1962 | "type": [ |
| 1963 | "string", |
| 1964 | "null" |
| 1965 | ] |
| 1966 | }, |
| 1967 | "filePath": { |
| 1968 | "description": "Path to the config file to write; defaults to the user's `config.toml` when omitted.", |
| 1969 | "type": [ |
| 1970 | "string", |
| 1971 | "null" |
| 1972 | ] |
| 1973 | }, |
| 1974 | "reloadUserConfig": { |
| 1975 | "description": "When true, hot-reload updated runtime settings into loaded threads after writing. Session-static model, reasoning-effort, Plan-mode reasoning-effort, and service-tier defaults are not reloaded. The deprecated personality setting is also not reloaded.", |
| 1976 | "type": "boolean" |
| 1977 | } |
| 1978 | }, |
| 1979 | "required": [ |
| 1980 | "edits" |
| 1981 | ], |
| 1982 | "title": "ConfigBatchWriteParams", |
| 1983 | "type": "object" |
| 1984 | }, |
| 1985 | "ConfigEdit": { |
| 1986 | "properties": { |
| 1987 | "keyPath": { |
| 1988 | "type": "string" |
| 1989 | }, |
| 1990 | "mergeStrategy": { |
| 1991 | "$ref": "#/definitions/MergeStrategy" |
| 1992 | }, |
| 1993 | "value": true |
| 1994 | }, |
| 1995 | "required": [ |
| 1996 | "keyPath", |
| 1997 | "mergeStrategy", |
| 1998 | "value" |
| 1999 | ], |
| 2000 | "type": "object" |
| 2001 | }, |
| 2002 | "ConfigLayer": { |
| 2003 | "properties": { |
| 2004 | "config": true, |
| 2005 | "disabledReason": { |
| 2006 | "type": [ |
| 2007 | "string", |
| 2008 | "null" |
| 2009 | ] |
| 2010 | }, |
| 2011 | "name": { |
| 2012 | "$ref": "#/definitions/ConfigLayerSource" |
| 2013 | }, |
| 2014 | "version": { |
| 2015 | "type": "string" |
| 2016 | } |
| 2017 | }, |
| 2018 | "required": [ |
| 2019 | "config", |
| 2020 | "name", |
| 2021 | "version" |
| 2022 | ], |
| 2023 | "type": "object" |
| 2024 | }, |
| 2025 | "ConfigLayerMetadata": { |
| 2026 | "properties": { |
| 2027 | "name": { |
| 2028 | "$ref": "#/definitions/ConfigLayerSource" |
| 2029 | }, |
| 2030 | "version": { |
| 2031 | "type": "string" |
| 2032 | } |
| 2033 | }, |
| 2034 | "required": [ |
| 2035 | "name", |
| 2036 | "version" |
| 2037 | ], |
| 2038 | "type": "object" |
| 2039 | }, |
| 2040 | "ConfigLayerSource": { |
| 2041 | "oneOf": [ |
| 2042 | { |
| 2043 | "description": "Default configuration supplied with the installed Codex package.", |
| 2044 | "properties": { |
| 2045 | "file": { |
| 2046 | "allOf": [ |
| 2047 | { |
| 2048 | "$ref": "#/definitions/AbsolutePathBuf" |
| 2049 | } |
| 2050 | ], |
| 2051 | "description": "Path to the packaged default configuration file." |
| 2052 | }, |
| 2053 | "type": { |
| 2054 | "enum": [ |
| 2055 | "packagedDefaults" |
| 2056 | ], |
| 2057 | "title": "PackagedDefaultsConfigLayerSourceType", |
| 2058 | "type": "string" |
| 2059 | } |
| 2060 | }, |
| 2061 | "required": [ |
| 2062 | "file", |
| 2063 | "type" |
| 2064 | ], |
| 2065 | "title": "PackagedDefaultsConfigLayerSource", |
| 2066 | "type": "object" |
| 2067 | }, |
| 2068 | { |
| 2069 | "description": "Managed preferences layer delivered by MDM (macOS only).", |
| 2070 | "properties": { |
| 2071 | "domain": { |
| 2072 | "type": "string" |
| 2073 | }, |
| 2074 | "key": { |
| 2075 | "type": "string" |
| 2076 | }, |
| 2077 | "type": { |
| 2078 | "enum": [ |
| 2079 | "mdm" |
| 2080 | ], |
| 2081 | "title": "MdmConfigLayerSourceType", |
| 2082 | "type": "string" |
| 2083 | } |
| 2084 | }, |
| 2085 | "required": [ |
| 2086 | "domain", |
| 2087 | "key", |
| 2088 | "type" |
| 2089 | ], |
| 2090 | "title": "MdmConfigLayerSource", |
| 2091 | "type": "object" |
| 2092 | }, |
| 2093 | { |
| 2094 | "description": "Managed config layer from a file (usually `managed_config.toml`).", |
| 2095 | "properties": { |
| 2096 | "file": { |
| 2097 | "allOf": [ |
| 2098 | { |
| 2099 | "$ref": "#/definitions/AbsolutePathBuf" |
| 2100 | } |
| 2101 | ], |
| 2102 | "description": "This is the path to the system config.toml file, though it is not guaranteed to exist." |
| 2103 | }, |
| 2104 | "type": { |
| 2105 | "enum": [ |
| 2106 | "system" |
| 2107 | ], |
| 2108 | "title": "SystemConfigLayerSourceType", |
| 2109 | "type": "string" |
| 2110 | } |
| 2111 | }, |
| 2112 | "required": [ |
| 2113 | "file", |
| 2114 | "type" |
| 2115 | ], |
| 2116 | "title": "SystemConfigLayerSource", |
| 2117 | "type": "object" |
| 2118 | }, |
| 2119 | { |
| 2120 | "description": "Enterprise-managed config layer delivered by the cloud config bundle.", |
| 2121 | "properties": { |
| 2122 | "id": { |
| 2123 | "description": "Stable identifier for the delivered layer.", |
| 2124 | "type": "string" |
| 2125 | }, |
| 2126 | "name": { |
| 2127 | "description": "Admin-facing name for the delivered layer. This is surfaced in diagnostics so users know which cloud layer needs administrator attention.", |
| 2128 | "type": "string" |
| 2129 | }, |
| 2130 | "type": { |
| 2131 | "enum": [ |
| 2132 | "enterpriseManaged" |
| 2133 | ], |
| 2134 | "title": "EnterpriseManagedConfigLayerSourceType", |
| 2135 | "type": "string" |
| 2136 | } |
| 2137 | }, |
| 2138 | "required": [ |
| 2139 | "id", |
| 2140 | "name", |
| 2141 | "type" |
| 2142 | ], |
| 2143 | "title": "EnterpriseManagedConfigLayerSource", |
| 2144 | "type": "object" |
| 2145 | }, |
| 2146 | { |
| 2147 | "description": "User config layer from $CODEX_HOME/config.toml. This layer is special in that it is expected to be: - writable by the user - generally outside the workspace directory", |
| 2148 | "properties": { |
| 2149 | "file": { |
| 2150 | "allOf": [ |
| 2151 | { |
| 2152 | "$ref": "#/definitions/AbsolutePathBuf" |
| 2153 | } |
| 2154 | ], |
| 2155 | "description": "This is the path to the user's config.toml file, though it is not guaranteed to exist." |
| 2156 | }, |
| 2157 | "profile": { |
| 2158 | "description": "Name of the selected profile-v2 config layered on top of the base user config, when this layer represents one.", |
| 2159 | "type": [ |
| 2160 | "string", |
| 2161 | "null" |
| 2162 | ] |
| 2163 | }, |
| 2164 | "type": { |
| 2165 | "enum": [ |
| 2166 | "user" |
| 2167 | ], |
| 2168 | "title": "UserConfigLayerSourceType", |
| 2169 | "type": "string" |
| 2170 | } |
| 2171 | }, |
| 2172 | "required": [ |
| 2173 | "file", |
| 2174 | "type" |
| 2175 | ], |
| 2176 | "title": "UserConfigLayerSource", |
| 2177 | "type": "object" |
| 2178 | }, |
| 2179 | { |
| 2180 | "description": "Path to a .codex/ folder within a project. There could be multiple of these between `cwd` and the project/repo root.", |
| 2181 | "properties": { |
| 2182 | "dotCodexFolder": { |
| 2183 | "$ref": "#/definitions/AbsolutePathBuf" |
| 2184 | }, |
| 2185 | "type": { |
| 2186 | "enum": [ |
| 2187 | "project" |
| 2188 | ], |
| 2189 | "title": "ProjectConfigLayerSourceType", |
| 2190 | "type": "string" |
| 2191 | } |
| 2192 | }, |
| 2193 | "required": [ |
| 2194 | "dotCodexFolder", |
| 2195 | "type" |
| 2196 | ], |
| 2197 | "title": "ProjectConfigLayerSource", |
| 2198 | "type": "object" |
| 2199 | }, |
| 2200 | { |
| 2201 | "description": "Session-layer overrides supplied via `-c`/`--config`.", |
| 2202 | "properties": { |
| 2203 | "type": { |
| 2204 | "enum": [ |
| 2205 | "sessionFlags" |
| 2206 | ], |
| 2207 | "title": "SessionFlagsConfigLayerSourceType", |
| 2208 | "type": "string" |
| 2209 | } |
| 2210 | }, |
| 2211 | "required": [ |
| 2212 | "type" |
| 2213 | ], |
| 2214 | "title": "SessionFlagsConfigLayerSource", |
| 2215 | "type": "object" |
| 2216 | }, |
| 2217 | { |
| 2218 | "description": "`managed_config.toml` was designed to be a config that was loaded as the last layer on top of everything else. This scheme did not quite work out as intended, but we keep this variant as a \"best effort\" while we phase out `managed_config.toml` in favor of `requirements.toml`.", |
| 2219 | "properties": { |
| 2220 | "file": { |
| 2221 | "$ref": "#/definitions/AbsolutePathBuf" |
| 2222 | }, |
| 2223 | "type": { |
| 2224 | "enum": [ |
| 2225 | "legacyManagedConfigTomlFromFile" |
| 2226 | ], |
| 2227 | "title": "LegacyManagedConfigTomlFromFileConfigLayerSourceType", |
| 2228 | "type": "string" |
| 2229 | } |
| 2230 | }, |
| 2231 | "required": [ |
| 2232 | "file", |
| 2233 | "type" |
| 2234 | ], |
| 2235 | "title": "LegacyManagedConfigTomlFromFileConfigLayerSource", |
| 2236 | "type": "object" |
| 2237 | }, |
| 2238 | { |
| 2239 | "properties": { |
| 2240 | "type": { |
| 2241 | "enum": [ |
| 2242 | "legacyManagedConfigTomlFromMdm" |
| 2243 | ], |
| 2244 | "title": "LegacyManagedConfigTomlFromMdmConfigLayerSourceType", |
| 2245 | "type": "string" |
| 2246 | } |
| 2247 | }, |
| 2248 | "required": [ |
| 2249 | "type" |
| 2250 | ], |
| 2251 | "title": "LegacyManagedConfigTomlFromMdmConfigLayerSource", |
| 2252 | "type": "object" |
| 2253 | } |
| 2254 | ] |
| 2255 | }, |
| 2256 | "ConfigReadParams": { |
| 2257 | "properties": { |
| 2258 | "cwd": { |
| 2259 | "description": "Optional working directory to resolve project config layers. If specified, return the effective config as seen from that directory (i.e., including any project layers between `cwd` and the project/repo root).", |
| 2260 | "type": [ |
| 2261 | "string", |
| 2262 | "null" |
| 2263 | ] |
| 2264 | }, |
| 2265 | "includeLayers": { |
| 2266 | "type": "boolean" |
| 2267 | } |
| 2268 | }, |
| 2269 | "title": "ConfigReadParams", |
| 2270 | "type": "object" |
| 2271 | }, |
| 2272 | "ConfigReadResponse": { |
| 2273 | "properties": { |
| 2274 | "config": { |
| 2275 | "$ref": "#/definitions/Config" |
| 2276 | }, |
| 2277 | "layers": { |
| 2278 | "items": { |
| 2279 | "$ref": "#/definitions/ConfigLayer" |
| 2280 | }, |
| 2281 | "type": [ |
| 2282 | "array", |
| 2283 | "null" |
| 2284 | ] |
| 2285 | }, |
| 2286 | "origins": { |
| 2287 | "additionalProperties": { |
| 2288 | "$ref": "#/definitions/ConfigLayerMetadata" |
| 2289 | }, |
| 2290 | "type": "object" |
| 2291 | } |
| 2292 | }, |
| 2293 | "required": [ |
| 2294 | "config", |
| 2295 | "origins" |
| 2296 | ], |
| 2297 | "title": "ConfigReadResponse", |
| 2298 | "type": "object" |
| 2299 | }, |
| 2300 | "ConfigValueWriteParams": { |
| 2301 | "properties": { |
| 2302 | "expectedVersion": { |
| 2303 | "type": [ |
| 2304 | "string", |
| 2305 | "null" |
| 2306 | ] |
| 2307 | }, |
| 2308 | "filePath": { |
| 2309 | "description": "Path to the config file to write; defaults to the user's `config.toml` when omitted.", |
| 2310 | "type": [ |
| 2311 | "string", |
| 2312 | "null" |
| 2313 | ] |
| 2314 | }, |
| 2315 | "keyPath": { |
| 2316 | "type": "string" |
| 2317 | }, |
| 2318 | "mergeStrategy": { |
| 2319 | "$ref": "#/definitions/MergeStrategy" |
| 2320 | }, |
| 2321 | "value": true |
| 2322 | }, |
| 2323 | "required": [ |
| 2324 | "keyPath", |
| 2325 | "mergeStrategy", |
| 2326 | "value" |
| 2327 | ], |
| 2328 | "title": "ConfigValueWriteParams", |
| 2329 | "type": "object" |
| 2330 | }, |
| 2331 | "ConfigWriteResponse": { |
| 2332 | "properties": { |
| 2333 | "filePath": { |
| 2334 | "allOf": [ |
| 2335 | { |
| 2336 | "$ref": "#/definitions/AbsolutePathBuf" |
| 2337 | } |
| 2338 | ], |
| 2339 | "description": "Canonical path to the config file that was written." |
| 2340 | }, |
| 2341 | "overriddenMetadata": { |
| 2342 | "anyOf": [ |
| 2343 | { |
| 2344 | "$ref": "#/definitions/OverriddenMetadata" |
| 2345 | }, |
| 2346 | { |
| 2347 | "type": "null" |
| 2348 | } |
| 2349 | ] |
| 2350 | }, |
| 2351 | "status": { |
| 2352 | "$ref": "#/definitions/WriteStatus" |
| 2353 | }, |
| 2354 | "version": { |
| 2355 | "type": "string" |
| 2356 | } |
| 2357 | }, |
| 2358 | "required": [ |
| 2359 | "filePath", |
| 2360 | "status", |
| 2361 | "version" |
| 2362 | ], |
| 2363 | "title": "ConfigWriteResponse", |
| 2364 | "type": "object" |
| 2365 | }, |
| 2366 | "ContextCompactedNotification": { |
| 2367 | "description": "Deprecated: Use `ContextCompaction` item type instead.", |
| 2368 | "properties": { |
| 2369 | "threadId": { |
| 2370 | "type": "string" |
| 2371 | }, |
| 2372 | "turnId": { |
| 2373 | "type": "string" |
| 2374 | } |
| 2375 | }, |
| 2376 | "required": [ |
| 2377 | "threadId", |
| 2378 | "turnId" |
| 2379 | ], |
| 2380 | "title": "ContextCompactedNotification", |
| 2381 | "type": "object" |
| 2382 | }, |
| 2383 | "CyberAccessProgram": { |
| 2384 | "description": "Requested cyber treatment for an OpenAI model turn. Authorization and model-tier restrictions remain server-owned.", |
| 2385 | "enum": [ |
| 2386 | "standard", |
| 2387 | "daybreakBlue", |
| 2388 | "daybreakRed" |
| 2389 | ], |
| 2390 | "type": "string" |
| 2391 | }, |
| 2392 | "DynamicToolCallOutputContentItem": { |
| 2393 | "oneOf": [ |
| 2394 | { |
| 2395 | "properties": { |
| 2396 | "text": { |
| 2397 | "type": "string" |
| 2398 | }, |
| 2399 | "type": { |
| 2400 | "enum": [ |
| 2401 | "inputText" |
| 2402 | ], |
| 2403 | "title": "InputTextDynamicToolCallOutputContentItemType", |
| 2404 | "type": "string" |
| 2405 | } |
| 2406 | }, |
| 2407 | "required": [ |
| 2408 | "text", |
| 2409 | "type" |
| 2410 | ], |
| 2411 | "title": "InputTextDynamicToolCallOutputContentItem", |
| 2412 | "type": "object" |
| 2413 | }, |
| 2414 | { |
| 2415 | "properties": { |
| 2416 | "imageUrl": { |
| 2417 | "type": "string" |
| 2418 | }, |
| 2419 | "type": { |
| 2420 | "enum": [ |
| 2421 | "inputImage" |
| 2422 | ], |
| 2423 | "title": "InputImageDynamicToolCallOutputContentItemType", |
| 2424 | "type": "string" |
| 2425 | } |
| 2426 | }, |
| 2427 | "required": [ |
| 2428 | "imageUrl", |
| 2429 | "type" |
| 2430 | ], |
| 2431 | "title": "InputImageDynamicToolCallOutputContentItem", |
| 2432 | "type": "object" |
| 2433 | }, |
| 2434 | { |
| 2435 | "properties": { |
| 2436 | "audioUrl": { |
| 2437 | "type": "string" |
| 2438 | }, |
| 2439 | "type": { |
| 2440 | "enum": [ |
| 2441 | "inputAudio" |
| 2442 | ], |
| 2443 | "title": "InputAudioDynamicToolCallOutputContentItemType", |
| 2444 | "type": "string" |
| 2445 | } |
| 2446 | }, |
| 2447 | "required": [ |
| 2448 | "audioUrl", |
| 2449 | "type" |
| 2450 | ], |
| 2451 | "title": "InputAudioDynamicToolCallOutputContentItem", |
| 2452 | "type": "object" |
| 2453 | } |
| 2454 | ] |
| 2455 | }, |
| 2456 | "DynamicToolCallParams": { |
| 2457 | "properties": { |
| 2458 | "arguments": true, |
| 2459 | "callId": { |
| 2460 | "type": "string" |
| 2461 | }, |
| 2462 | "namespace": { |
| 2463 | "type": [ |
| 2464 | "string", |
| 2465 | "null" |
| 2466 | ] |
| 2467 | }, |
| 2468 | "threadId": { |
| 2469 | "type": "string" |
| 2470 | }, |
| 2471 | "tool": { |
| 2472 | "type": "string" |
| 2473 | }, |
| 2474 | "turnId": { |
| 2475 | "type": "string" |
| 2476 | } |
| 2477 | }, |
| 2478 | "required": [ |
| 2479 | "arguments", |
| 2480 | "callId", |
| 2481 | "threadId", |
| 2482 | "tool", |
| 2483 | "turnId" |
| 2484 | ], |
| 2485 | "title": "DynamicToolCallParams", |
| 2486 | "type": "object" |
| 2487 | }, |
| 2488 | "DynamicToolCallResponse": { |
| 2489 | "properties": { |
| 2490 | "contentItems": { |
| 2491 | "items": { |
| 2492 | "$ref": "#/definitions/DynamicToolCallOutputContentItem" |
| 2493 | }, |
| 2494 | "type": "array" |
| 2495 | }, |
| 2496 | "success": { |
| 2497 | "type": "boolean" |
| 2498 | } |
| 2499 | }, |
| 2500 | "required": [ |
| 2501 | "contentItems", |
| 2502 | "success" |
| 2503 | ], |
| 2504 | "title": "DynamicToolCallResponse", |
| 2505 | "type": "object" |
| 2506 | }, |
| 2507 | "DynamicToolCallStatus": { |
| 2508 | "enum": [ |
| 2509 | "inProgress", |
| 2510 | "completed", |
| 2511 | "failed" |
| 2512 | ], |
| 2513 | "type": "string" |
| 2514 | }, |
| 2515 | "ErrorNotification": { |
| 2516 | "properties": { |
| 2517 | "error": { |
| 2518 | "$ref": "#/definitions/TurnError" |
| 2519 | }, |
| 2520 | "threadId": { |
| 2521 | "type": "string" |
| 2522 | }, |
| 2523 | "turnId": { |
| 2524 | "type": "string" |
| 2525 | }, |
| 2526 | "willRetry": { |
| 2527 | "type": "boolean" |
| 2528 | } |
| 2529 | }, |
| 2530 | "required": [ |
| 2531 | "error", |
| 2532 | "threadId", |
| 2533 | "turnId", |
| 2534 | "willRetry" |
| 2535 | ], |
| 2536 | "title": "ErrorNotification", |
| 2537 | "type": "object" |
| 2538 | }, |
| 2539 | "FileChangeApprovalDecision": { |
| 2540 | "oneOf": [ |
| 2541 | { |
| 2542 | "description": "User approved the file changes.", |
| 2543 | "enum": [ |
| 2544 | "accept" |
| 2545 | ], |
| 2546 | "type": "string" |
| 2547 | }, |
| 2548 | { |
| 2549 | "description": "User approved the file changes and future changes to the same files should run without prompting.", |
| 2550 | "enum": [ |
| 2551 | "acceptForSession" |
| 2552 | ], |
| 2553 | "type": "string" |
| 2554 | }, |
| 2555 | { |
| 2556 | "description": "User denied the file changes. The agent will continue the turn.", |
| 2557 | "enum": [ |
| 2558 | "decline" |
| 2559 | ], |
| 2560 | "type": "string" |
| 2561 | }, |
| 2562 | { |
| 2563 | "description": "User denied the file changes. The turn will also be immediately interrupted.", |
| 2564 | "enum": [ |
| 2565 | "cancel" |
| 2566 | ], |
| 2567 | "type": "string" |
| 2568 | } |
| 2569 | ] |
| 2570 | }, |
| 2571 | "FileChangeOutputDeltaNotification": { |
| 2572 | "description": "Deprecated legacy notification for `apply_patch` textual output.\n\nThe server no longer emits this notification.", |
| 2573 | "properties": { |
| 2574 | "delta": { |
| 2575 | "type": "string" |
| 2576 | }, |
| 2577 | "itemId": { |
| 2578 | "type": "string" |
| 2579 | }, |
| 2580 | "threadId": { |
| 2581 | "type": "string" |
| 2582 | }, |
| 2583 | "turnId": { |
| 2584 | "type": "string" |
| 2585 | } |
| 2586 | }, |
| 2587 | "required": [ |
| 2588 | "delta", |
| 2589 | "itemId", |
| 2590 | "threadId", |
| 2591 | "turnId" |
| 2592 | ], |
| 2593 | "title": "FileChangeOutputDeltaNotification", |
| 2594 | "type": "object" |
| 2595 | }, |
| 2596 | "FileChangePatchUpdatedNotification": { |
| 2597 | "properties": { |
| 2598 | "changes": { |
| 2599 | "items": { |
| 2600 | "$ref": "#/definitions/FileUpdateChange" |
| 2601 | }, |
| 2602 | "type": "array" |
| 2603 | }, |
| 2604 | "itemId": { |
| 2605 | "type": "string" |
| 2606 | }, |
| 2607 | "threadId": { |
| 2608 | "type": "string" |
| 2609 | }, |
| 2610 | "turnId": { |
| 2611 | "type": "string" |
| 2612 | } |
| 2613 | }, |
| 2614 | "required": [ |
| 2615 | "changes", |
| 2616 | "itemId", |
| 2617 | "threadId", |
| 2618 | "turnId" |
| 2619 | ], |
| 2620 | "title": "FileChangePatchUpdatedNotification", |
| 2621 | "type": "object" |
| 2622 | }, |
| 2623 | "FileChangeRequestApprovalParams": { |
| 2624 | "properties": { |
| 2625 | "grantRoot": { |
| 2626 | "description": "[UNSTABLE] When set, the agent is asking the user to allow writes under this root for the remainder of the session (unclear if this is honored today).", |
| 2627 | "type": [ |
| 2628 | "string", |
| 2629 | "null" |
| 2630 | ] |
| 2631 | }, |
| 2632 | "itemId": { |
| 2633 | "type": "string" |
| 2634 | }, |
| 2635 | "reason": { |
| 2636 | "description": "Optional explanatory reason (e.g. request for extra write access).", |
| 2637 | "type": [ |
| 2638 | "string", |
| 2639 | "null" |
| 2640 | ] |
| 2641 | }, |
| 2642 | "startedAtMs": { |
| 2643 | "description": "Unix timestamp (in milliseconds) when this approval request started.", |
| 2644 | "format": "int64", |
| 2645 | "type": "integer" |
| 2646 | }, |
| 2647 | "threadId": { |
| 2648 | "type": "string" |
| 2649 | }, |
| 2650 | "turnId": { |
| 2651 | "type": "string" |
| 2652 | } |
| 2653 | }, |
| 2654 | "required": [ |
| 2655 | "itemId", |
| 2656 | "startedAtMs", |
| 2657 | "threadId", |
| 2658 | "turnId" |
| 2659 | ], |
| 2660 | "title": "FileChangeRequestApprovalParams", |
| 2661 | "type": "object" |
| 2662 | }, |
| 2663 | "FileChangeRequestApprovalResponse": { |
| 2664 | "properties": { |
| 2665 | "decision": { |
| 2666 | "$ref": "#/definitions/FileChangeApprovalDecision" |
| 2667 | } |
| 2668 | }, |
| 2669 | "required": [ |
| 2670 | "decision" |
| 2671 | ], |
| 2672 | "title": "FileChangeRequestApprovalResponse", |
| 2673 | "type": "object" |
| 2674 | }, |
| 2675 | "FileSystemAccessMode": { |
| 2676 | "enum": [ |
| 2677 | "read", |
| 2678 | "write", |
| 2679 | "deny" |
| 2680 | ], |
| 2681 | "type": "string" |
| 2682 | }, |
| 2683 | "FileSystemPath": { |
| 2684 | "oneOf": [ |
| 2685 | { |
| 2686 | "properties": { |
| 2687 | "path": { |
| 2688 | "$ref": "#/definitions/LegacyAppPathString" |
| 2689 | }, |
| 2690 | "type": { |
| 2691 | "enum": [ |
| 2692 | "path" |
| 2693 | ], |
| 2694 | "title": "PathFileSystemPathType", |
| 2695 | "type": "string" |
| 2696 | } |
| 2697 | }, |
| 2698 | "required": [ |
| 2699 | "path", |
| 2700 | "type" |
| 2701 | ], |
| 2702 | "title": "PathFileSystemPath", |
| 2703 | "type": "object" |
| 2704 | }, |
| 2705 | { |
| 2706 | "properties": { |
| 2707 | "pattern": { |
| 2708 | "type": "string" |
| 2709 | }, |
| 2710 | "type": { |
| 2711 | "enum": [ |
| 2712 | "glob_pattern" |
| 2713 | ], |
| 2714 | "title": "GlobPatternFileSystemPathType", |
| 2715 | "type": "string" |
| 2716 | } |
| 2717 | }, |
| 2718 | "required": [ |
| 2719 | "pattern", |
| 2720 | "type" |
| 2721 | ], |
| 2722 | "title": "GlobPatternFileSystemPath", |
| 2723 | "type": "object" |
| 2724 | }, |
| 2725 | { |
| 2726 | "properties": { |
| 2727 | "type": { |
| 2728 | "enum": [ |
| 2729 | "special" |
| 2730 | ], |
| 2731 | "title": "SpecialFileSystemPathType", |
| 2732 | "type": "string" |
| 2733 | }, |
| 2734 | "value": { |
| 2735 | "$ref": "#/definitions/FileSystemSpecialPath" |
| 2736 | } |
| 2737 | }, |
| 2738 | "required": [ |
| 2739 | "type", |
| 2740 | "value" |
| 2741 | ], |
| 2742 | "title": "SpecialFileSystemPath", |
| 2743 | "type": "object" |
| 2744 | } |
| 2745 | ] |
| 2746 | }, |
| 2747 | "FileSystemSandboxEntry": { |
| 2748 | "properties": { |
| 2749 | "access": { |
| 2750 | "$ref": "#/definitions/FileSystemAccessMode" |
| 2751 | }, |
| 2752 | "path": { |
| 2753 | "$ref": "#/definitions/FileSystemPath" |
| 2754 | } |
| 2755 | }, |
| 2756 | "required": [ |
| 2757 | "access", |
| 2758 | "path" |
| 2759 | ], |
| 2760 | "type": "object" |
| 2761 | }, |
| 2762 | "FileSystemSpecialPath": { |
| 2763 | "oneOf": [ |
| 2764 | { |
| 2765 | "properties": { |
| 2766 | "kind": { |
| 2767 | "enum": [ |
| 2768 | "root" |
| 2769 | ], |
| 2770 | "type": "string" |
| 2771 | } |
| 2772 | }, |
| 2773 | "required": [ |
| 2774 | "kind" |
| 2775 | ], |
| 2776 | "title": "RootFileSystemSpecialPath", |
| 2777 | "type": "object" |
| 2778 | }, |
| 2779 | { |
| 2780 | "properties": { |
| 2781 | "kind": { |
| 2782 | "enum": [ |
| 2783 | "minimal" |
| 2784 | ], |
| 2785 | "type": "string" |
| 2786 | } |
| 2787 | }, |
| 2788 | "required": [ |
| 2789 | "kind" |
| 2790 | ], |
| 2791 | "title": "MinimalFileSystemSpecialPath", |
| 2792 | "type": "object" |
| 2793 | }, |
| 2794 | { |
| 2795 | "properties": { |
| 2796 | "kind": { |
| 2797 | "enum": [ |
| 2798 | "project_roots" |
| 2799 | ], |
| 2800 | "type": "string" |
| 2801 | }, |
| 2802 | "subpath": { |
| 2803 | "anyOf": [ |
| 2804 | { |
| 2805 | "$ref": "#/definitions/LegacyAppPathString" |
| 2806 | }, |
| 2807 | { |
| 2808 | "type": "null" |
| 2809 | } |
| 2810 | ] |
| 2811 | } |
| 2812 | }, |
| 2813 | "required": [ |
| 2814 | "kind" |
| 2815 | ], |
| 2816 | "title": "KindFileSystemSpecialPath", |
| 2817 | "type": "object" |
| 2818 | }, |
| 2819 | { |
| 2820 | "properties": { |
| 2821 | "kind": { |
| 2822 | "enum": [ |
| 2823 | "tmpdir" |
| 2824 | ], |
| 2825 | "type": "string" |
| 2826 | } |
| 2827 | }, |
| 2828 | "required": [ |
| 2829 | "kind" |
| 2830 | ], |
| 2831 | "title": "TmpdirFileSystemSpecialPath", |
| 2832 | "type": "object" |
| 2833 | }, |
| 2834 | { |
| 2835 | "properties": { |
| 2836 | "kind": { |
| 2837 | "enum": [ |
| 2838 | "slash_tmp" |
| 2839 | ], |
| 2840 | "type": "string" |
| 2841 | } |
| 2842 | }, |
| 2843 | "required": [ |
| 2844 | "kind" |
| 2845 | ], |
| 2846 | "title": "SlashTmpFileSystemSpecialPath", |
| 2847 | "type": "object" |
| 2848 | }, |
| 2849 | { |
| 2850 | "properties": { |
| 2851 | "kind": { |
| 2852 | "enum": [ |
| 2853 | "unknown" |
| 2854 | ], |
| 2855 | "type": "string" |
| 2856 | }, |
| 2857 | "path": { |
| 2858 | "type": "string" |
| 2859 | }, |
| 2860 | "subpath": { |
| 2861 | "anyOf": [ |
| 2862 | { |
| 2863 | "$ref": "#/definitions/LegacyAppPathString" |
| 2864 | }, |
| 2865 | { |
| 2866 | "type": "null" |
| 2867 | } |
| 2868 | ] |
| 2869 | } |
| 2870 | }, |
| 2871 | "required": [ |
| 2872 | "kind", |
| 2873 | "path" |
| 2874 | ], |
| 2875 | "type": "object" |
| 2876 | } |
| 2877 | ] |
| 2878 | }, |
| 2879 | "FileUpdateChange": { |
| 2880 | "properties": { |
| 2881 | "diff": { |
| 2882 | "type": "string" |
| 2883 | }, |
| 2884 | "kind": { |
| 2885 | "$ref": "#/definitions/PatchChangeKind" |
| 2886 | }, |
| 2887 | "path": { |
| 2888 | "type": "string" |
| 2889 | } |
| 2890 | }, |
| 2891 | "required": [ |
| 2892 | "diff", |
| 2893 | "kind", |
| 2894 | "path" |
| 2895 | ], |
| 2896 | "type": "object" |
| 2897 | }, |
| 2898 | "ForcedChatgptWorkspaceIds": { |
| 2899 | "anyOf": [ |
| 2900 | { |
| 2901 | "type": "string" |
| 2902 | }, |
| 2903 | { |
| 2904 | "items": { |
| 2905 | "type": "string" |
| 2906 | }, |
| 2907 | "type": "array" |
| 2908 | } |
| 2909 | ], |
| 2910 | "description": "Backward-compatible API shape for ChatGPT workspace login restrictions." |
| 2911 | }, |
| 2912 | "ForcedLoginMethod": { |
| 2913 | "enum": [ |
| 2914 | "chatgpt", |
| 2915 | "api" |
| 2916 | ], |
| 2917 | "type": "string" |
| 2918 | }, |
| 2919 | "FsChangedNotification": { |
| 2920 | "description": "Filesystem watch notification emitted for `fs/watch` subscribers.", |
| 2921 | "properties": { |
| 2922 | "changedPaths": { |
| 2923 | "description": "File or directory paths associated with this event.", |
| 2924 | "items": { |
| 2925 | "$ref": "#/definitions/AbsolutePathBuf" |
| 2926 | }, |
| 2927 | "type": "array" |
| 2928 | }, |
| 2929 | "watchId": { |
| 2930 | "description": "Watch identifier previously provided to `fs/watch`.", |
| 2931 | "type": "string" |
| 2932 | } |
| 2933 | }, |
| 2934 | "required": [ |
| 2935 | "changedPaths", |
| 2936 | "watchId" |
| 2937 | ], |
| 2938 | "title": "FsChangedNotification", |
| 2939 | "type": "object" |
| 2940 | }, |
| 2941 | "FsCopyParams": { |
| 2942 | "description": "Copy a file or directory tree on the host filesystem.", |
| 2943 | "properties": { |
| 2944 | "destinationPath": { |
| 2945 | "allOf": [ |
| 2946 | { |
| 2947 | "$ref": "#/definitions/AbsolutePathBuf" |
| 2948 | } |
| 2949 | ], |
| 2950 | "description": "Absolute destination path." |
| 2951 | }, |
| 2952 | "recursive": { |
| 2953 | "description": "Required for directory copies; ignored for file copies.", |
| 2954 | "type": "boolean" |
| 2955 | }, |
| 2956 | "sourcePath": { |
| 2957 | "allOf": [ |
| 2958 | { |
| 2959 | "$ref": "#/definitions/AbsolutePathBuf" |
| 2960 | } |
| 2961 | ], |
| 2962 | "description": "Absolute source path." |
| 2963 | } |
| 2964 | }, |
| 2965 | "required": [ |
| 2966 | "destinationPath", |
| 2967 | "sourcePath" |
| 2968 | ], |
| 2969 | "title": "FsCopyParams", |
| 2970 | "type": "object" |
| 2971 | }, |
| 2972 | "FsCopyResponse": { |
| 2973 | "description": "Successful response for `fs/copy`.", |
| 2974 | "title": "FsCopyResponse", |
| 2975 | "type": "object" |
| 2976 | }, |
| 2977 | "FsCreateDirectoryParams": { |
| 2978 | "description": "Create a directory on the host filesystem.", |
| 2979 | "properties": { |
| 2980 | "path": { |
| 2981 | "allOf": [ |
| 2982 | { |
| 2983 | "$ref": "#/definitions/AbsolutePathBuf" |
| 2984 | } |
| 2985 | ], |
| 2986 | "description": "Absolute directory path to create." |
| 2987 | }, |
| 2988 | "recursive": { |
| 2989 | "description": "Whether parent directories should also be created. Defaults to `true`.", |
| 2990 | "type": [ |
| 2991 | "boolean", |
| 2992 | "null" |
| 2993 | ] |
| 2994 | } |
| 2995 | }, |
| 2996 | "required": [ |
| 2997 | "path" |
| 2998 | ], |
| 2999 | "title": "FsCreateDirectoryParams", |
| 3000 | "type": "object" |
| 3001 | }, |
| 3002 | "FsCreateDirectoryResponse": { |
| 3003 | "description": "Successful response for `fs/createDirectory`.", |
| 3004 | "title": "FsCreateDirectoryResponse", |
| 3005 | "type": "object" |
| 3006 | }, |
| 3007 | "FsGetMetadataParams": { |
| 3008 | "description": "Request metadata for an absolute path.", |
| 3009 | "properties": { |
| 3010 | "path": { |
| 3011 | "allOf": [ |
| 3012 | { |
| 3013 | "$ref": "#/definitions/AbsolutePathBuf" |
| 3014 | } |
| 3015 | ], |
| 3016 | "description": "Absolute path to inspect." |
| 3017 | } |
| 3018 | }, |
| 3019 | "required": [ |
| 3020 | "path" |
| 3021 | ], |
| 3022 | "title": "FsGetMetadataParams", |
| 3023 | "type": "object" |
| 3024 | }, |
| 3025 | "FsGetMetadataResponse": { |
| 3026 | "description": "Metadata returned by `fs/getMetadata`.", |
| 3027 | "properties": { |
| 3028 | "createdAtMs": { |
| 3029 | "description": "File creation time in Unix milliseconds when available, otherwise `0`.", |
| 3030 | "format": "int64", |
| 3031 | "type": "integer" |
| 3032 | }, |
| 3033 | "isDirectory": { |
| 3034 | "description": "Whether the path resolves to a directory.", |
| 3035 | "type": "boolean" |
| 3036 | }, |
| 3037 | "isFile": { |
| 3038 | "description": "Whether the path resolves to a regular file.", |
| 3039 | "type": "boolean" |
| 3040 | }, |
| 3041 | "isSymlink": { |
| 3042 | "description": "Whether the path itself is a symbolic link.", |
| 3043 | "type": "boolean" |
| 3044 | }, |
| 3045 | "modifiedAtMs": { |
| 3046 | "description": "File modification time in Unix milliseconds when available, otherwise `0`.", |
| 3047 | "format": "int64", |
| 3048 | "type": "integer" |
| 3049 | } |
| 3050 | }, |
| 3051 | "required": [ |
| 3052 | "createdAtMs", |
| 3053 | "isDirectory", |
| 3054 | "isFile", |
| 3055 | "isSymlink", |
| 3056 | "modifiedAtMs" |
| 3057 | ], |
| 3058 | "title": "FsGetMetadataResponse", |
| 3059 | "type": "object" |
| 3060 | }, |
| 3061 | "FsReadDirectoryEntry": { |
| 3062 | "description": "A directory entry returned by `fs/readDirectory`.", |
| 3063 | "properties": { |
| 3064 | "fileName": { |
| 3065 | "description": "Direct child entry name only, not an absolute or relative path.", |
| 3066 | "type": "string" |
| 3067 | }, |
| 3068 | "isDirectory": { |
| 3069 | "description": "Whether this entry resolves to a directory.", |
| 3070 | "type": "boolean" |
| 3071 | }, |
| 3072 | "isFile": { |
| 3073 | "description": "Whether this entry resolves to a regular file.", |
| 3074 | "type": "boolean" |
| 3075 | } |
| 3076 | }, |
| 3077 | "required": [ |
| 3078 | "fileName", |
| 3079 | "isDirectory", |
| 3080 | "isFile" |
| 3081 | ], |
| 3082 | "type": "object" |
| 3083 | }, |
| 3084 | "FsReadDirectoryParams": { |
| 3085 | "description": "List direct child names for a directory.", |
| 3086 | "properties": { |
| 3087 | "path": { |
| 3088 | "allOf": [ |
| 3089 | { |
| 3090 | "$ref": "#/definitions/AbsolutePathBuf" |
| 3091 | } |
| 3092 | ], |
| 3093 | "description": "Absolute directory path to read." |
| 3094 | } |
| 3095 | }, |
| 3096 | "required": [ |
| 3097 | "path" |
| 3098 | ], |
| 3099 | "title": "FsReadDirectoryParams", |
| 3100 | "type": "object" |
| 3101 | }, |
| 3102 | "FsReadDirectoryResponse": { |
| 3103 | "description": "Directory entries returned by `fs/readDirectory`.", |
| 3104 | "properties": { |
| 3105 | "entries": { |
| 3106 | "description": "Direct child entries in the requested directory.", |
| 3107 | "items": { |
| 3108 | "$ref": "#/definitions/FsReadDirectoryEntry" |
| 3109 | }, |
| 3110 | "type": "array" |
| 3111 | } |
| 3112 | }, |
| 3113 | "required": [ |
| 3114 | "entries" |
| 3115 | ], |
| 3116 | "title": "FsReadDirectoryResponse", |
| 3117 | "type": "object" |
| 3118 | }, |
| 3119 | "FsReadFileParams": { |
| 3120 | "description": "Read a file from the host filesystem.", |
| 3121 | "properties": { |
| 3122 | "path": { |
| 3123 | "allOf": [ |
| 3124 | { |
| 3125 | "$ref": "#/definitions/AbsolutePathBuf" |
| 3126 | } |
| 3127 | ], |
| 3128 | "description": "Absolute path to read." |
| 3129 | } |
| 3130 | }, |
| 3131 | "required": [ |
| 3132 | "path" |
| 3133 | ], |
| 3134 | "title": "FsReadFileParams", |
| 3135 | "type": "object" |
| 3136 | }, |
| 3137 | "FsReadFileResponse": { |
| 3138 | "description": "Base64-encoded file contents returned by `fs/readFile`.", |
| 3139 | "properties": { |
| 3140 | "dataBase64": { |
| 3141 | "description": "File contents encoded as base64.", |
| 3142 | "type": "string" |
| 3143 | } |
| 3144 | }, |
| 3145 | "required": [ |
| 3146 | "dataBase64" |
| 3147 | ], |
| 3148 | "title": "FsReadFileResponse", |
| 3149 | "type": "object" |
| 3150 | }, |
| 3151 | "FsRemoveParams": { |
| 3152 | "description": "Remove a file or directory tree from the host filesystem.", |
| 3153 | "properties": { |
| 3154 | "force": { |
| 3155 | "description": "Whether missing paths should be ignored. Defaults to `true`.", |
| 3156 | "type": [ |
| 3157 | "boolean", |
| 3158 | "null" |
| 3159 | ] |
| 3160 | }, |
| 3161 | "path": { |
| 3162 | "allOf": [ |
| 3163 | { |
| 3164 | "$ref": "#/definitions/AbsolutePathBuf" |
| 3165 | } |
| 3166 | ], |
| 3167 | "description": "Absolute path to remove." |
| 3168 | }, |
| 3169 | "recursive": { |
| 3170 | "description": "Whether directory removal should recurse. Defaults to `true`.", |
| 3171 | "type": [ |
| 3172 | "boolean", |
| 3173 | "null" |
| 3174 | ] |
| 3175 | } |
| 3176 | }, |
| 3177 | "required": [ |
| 3178 | "path" |
| 3179 | ], |
| 3180 | "title": "FsRemoveParams", |
| 3181 | "type": "object" |
| 3182 | }, |
| 3183 | "FsRemoveResponse": { |
| 3184 | "description": "Successful response for `fs/remove`.", |
| 3185 | "title": "FsRemoveResponse", |
| 3186 | "type": "object" |
| 3187 | }, |
| 3188 | "FsUnwatchParams": { |
| 3189 | "description": "Stop filesystem watch notifications for a prior `fs/watch`.", |
| 3190 | "properties": { |
| 3191 | "watchId": { |
| 3192 | "description": "Watch identifier previously provided to `fs/watch`.", |
| 3193 | "type": "string" |
| 3194 | } |
| 3195 | }, |
| 3196 | "required": [ |
| 3197 | "watchId" |
| 3198 | ], |
| 3199 | "title": "FsUnwatchParams", |
| 3200 | "type": "object" |
| 3201 | }, |
| 3202 | "FsUnwatchResponse": { |
| 3203 | "description": "Successful response for `fs/unwatch`.", |
| 3204 | "title": "FsUnwatchResponse", |
| 3205 | "type": "object" |
| 3206 | }, |
| 3207 | "FsWatchParams": { |
| 3208 | "description": "Start filesystem watch notifications for an absolute path.", |
| 3209 | "properties": { |
| 3210 | "path": { |
| 3211 | "allOf": [ |
| 3212 | { |
| 3213 | "$ref": "#/definitions/AbsolutePathBuf" |
| 3214 | } |
| 3215 | ], |
| 3216 | "description": "Absolute file or directory path to watch." |
| 3217 | }, |
| 3218 | "watchId": { |
| 3219 | "description": "Connection-scoped watch identifier used for `fs/unwatch` and `fs/changed`.", |
| 3220 | "type": "string" |
| 3221 | } |
| 3222 | }, |
| 3223 | "required": [ |
| 3224 | "path", |
| 3225 | "watchId" |
| 3226 | ], |
| 3227 | "title": "FsWatchParams", |
| 3228 | "type": "object" |
| 3229 | }, |
| 3230 | "FsWatchResponse": { |
| 3231 | "description": "Successful response for `fs/watch`.", |
| 3232 | "properties": { |
| 3233 | "path": { |
| 3234 | "allOf": [ |
| 3235 | { |
| 3236 | "$ref": "#/definitions/AbsolutePathBuf" |
| 3237 | } |
| 3238 | ], |
| 3239 | "description": "Canonicalized path associated with the watch." |
| 3240 | } |
| 3241 | }, |
| 3242 | "required": [ |
| 3243 | "path" |
| 3244 | ], |
| 3245 | "title": "FsWatchResponse", |
| 3246 | "type": "object" |
| 3247 | }, |
| 3248 | "FsWriteFileParams": { |
| 3249 | "description": "Write a file on the host filesystem.", |
| 3250 | "properties": { |
| 3251 | "dataBase64": { |
| 3252 | "description": "File contents encoded as base64.", |
| 3253 | "type": "string" |
| 3254 | }, |
| 3255 | "path": { |
| 3256 | "allOf": [ |
| 3257 | { |
| 3258 | "$ref": "#/definitions/AbsolutePathBuf" |
| 3259 | } |
| 3260 | ], |
| 3261 | "description": "Absolute path to write." |
| 3262 | } |
| 3263 | }, |
| 3264 | "required": [ |
| 3265 | "dataBase64", |
| 3266 | "path" |
| 3267 | ], |
| 3268 | "title": "FsWriteFileParams", |
| 3269 | "type": "object" |
| 3270 | }, |
| 3271 | "FsWriteFileResponse": { |
| 3272 | "description": "Successful response for `fs/writeFile`.", |
| 3273 | "title": "FsWriteFileResponse", |
| 3274 | "type": "object" |
| 3275 | }, |
| 3276 | "FunctionCallOutputBody": { |
| 3277 | "anyOf": [ |
| 3278 | { |
| 3279 | "type": "string" |
| 3280 | }, |
| 3281 | { |
| 3282 | "items": { |
| 3283 | "$ref": "#/definitions/FunctionCallOutputContentItem" |
| 3284 | }, |
| 3285 | "type": "array" |
| 3286 | } |
| 3287 | ] |
| 3288 | }, |
| 3289 | "FunctionCallOutputContentItem": { |
| 3290 | "description": "Responses API compatible content items that can be returned by a tool call. This is a subset of ContentItem with the types we support as function call outputs.", |
| 3291 | "oneOf": [ |
| 3292 | { |
| 3293 | "properties": { |
| 3294 | "text": { |
| 3295 | "type": "string" |
| 3296 | }, |
| 3297 | "type": { |
| 3298 | "enum": [ |
| 3299 | "input_text" |
| 3300 | ], |
| 3301 | "title": "InputTextFunctionCallOutputContentItemType", |
| 3302 | "type": "string" |
| 3303 | } |
| 3304 | }, |
| 3305 | "required": [ |
| 3306 | "text", |
| 3307 | "type" |
| 3308 | ], |
| 3309 | "title": "InputTextFunctionCallOutputContentItem", |
| 3310 | "type": "object" |
| 3311 | }, |
| 3312 | { |
| 3313 | "anyOf": [ |
| 3314 | { |
| 3315 | "properties": { |
| 3316 | "image_url": { |
| 3317 | "type": "string" |
| 3318 | } |
| 3319 | }, |
| 3320 | "required": [ |
| 3321 | "image_url" |
| 3322 | ], |
| 3323 | "title": "ImageUrlFunctionCallOutputContentItem", |
| 3324 | "type": "object" |
| 3325 | }, |
| 3326 | { |
| 3327 | "properties": { |
| 3328 | "file_id": { |
| 3329 | "type": "string" |
| 3330 | } |
| 3331 | }, |
| 3332 | "required": [ |
| 3333 | "file_id" |
| 3334 | ], |
| 3335 | "title": "FileIdFunctionCallOutputContentItem", |
| 3336 | "type": "object" |
| 3337 | } |
| 3338 | ], |
| 3339 | "properties": { |
| 3340 | "detail": { |
| 3341 | "anyOf": [ |
| 3342 | { |
| 3343 | "$ref": "#/definitions/ImageDetail" |
| 3344 | }, |
| 3345 | { |
| 3346 | "type": "null" |
| 3347 | } |
| 3348 | ] |
| 3349 | }, |
| 3350 | "type": { |
| 3351 | "enum": [ |
| 3352 | "input_image" |
| 3353 | ], |
| 3354 | "title": "InputImageFunctionCallOutputContentItemType", |
| 3355 | "type": "string" |
| 3356 | } |
| 3357 | }, |
| 3358 | "required": [ |
| 3359 | "type" |
| 3360 | ], |
| 3361 | "title": "InputImageFunctionCallOutputContentItem", |
| 3362 | "type": "object" |
| 3363 | }, |
| 3364 | { |
| 3365 | "properties": { |
| 3366 | "audio_url": { |
| 3367 | "type": "string" |
| 3368 | }, |
| 3369 | "type": { |
| 3370 | "enum": [ |
| 3371 | "input_audio" |
| 3372 | ], |
| 3373 | "title": "InputAudioFunctionCallOutputContentItemType", |
| 3374 | "type": "string" |
| 3375 | } |
| 3376 | }, |
| 3377 | "required": [ |
| 3378 | "audio_url", |
| 3379 | "type" |
| 3380 | ], |
| 3381 | "title": "InputAudioFunctionCallOutputContentItem", |
| 3382 | "type": "object" |
| 3383 | }, |
| 3384 | { |
| 3385 | "properties": { |
| 3386 | "encrypted_content": { |
| 3387 | "type": "string" |
| 3388 | }, |
| 3389 | "type": { |
| 3390 | "enum": [ |
| 3391 | "encrypted_content" |
| 3392 | ], |
| 3393 | "title": "EncryptedContentFunctionCallOutputContentItemType", |
| 3394 | "type": "string" |
| 3395 | } |
| 3396 | }, |
| 3397 | "required": [ |
| 3398 | "encrypted_content", |
| 3399 | "type" |
| 3400 | ], |
| 3401 | "title": "EncryptedContentFunctionCallOutputContentItem", |
| 3402 | "type": "object" |
| 3403 | } |
| 3404 | ] |
| 3405 | }, |
| 3406 | "GitInfo": { |
| 3407 | "properties": { |
| 3408 | "branch": { |
| 3409 | "type": [ |
| 3410 | "string", |
| 3411 | "null" |
| 3412 | ] |
| 3413 | }, |
| 3414 | "originUrl": { |
| 3415 | "type": [ |
| 3416 | "string", |
| 3417 | "null" |
| 3418 | ] |
| 3419 | }, |
| 3420 | "sha": { |
| 3421 | "type": [ |
| 3422 | "string", |
| 3423 | "null" |
| 3424 | ] |
| 3425 | } |
| 3426 | }, |
| 3427 | "type": "object" |
| 3428 | }, |
| 3429 | "GrantedPermissionProfile": { |
| 3430 | "properties": { |
| 3431 | "fileSystem": { |
| 3432 | "anyOf": [ |
| 3433 | { |
| 3434 | "$ref": "#/definitions/AdditionalFileSystemPermissions" |
| 3435 | }, |
| 3436 | { |
| 3437 | "type": "null" |
| 3438 | } |
| 3439 | ] |
| 3440 | }, |
| 3441 | "network": { |
| 3442 | "anyOf": [ |
| 3443 | { |
| 3444 | "$ref": "#/definitions/AdditionalNetworkPermissions" |
| 3445 | }, |
| 3446 | { |
| 3447 | "type": "null" |
| 3448 | } |
| 3449 | ] |
| 3450 | } |
| 3451 | }, |
| 3452 | "type": "object" |
| 3453 | }, |
| 3454 | "HookErrorInfo": { |
| 3455 | "properties": { |
| 3456 | "message": { |
| 3457 | "type": "string" |
| 3458 | }, |
| 3459 | "path": { |
| 3460 | "type": "string" |
| 3461 | } |
| 3462 | }, |
| 3463 | "required": [ |
| 3464 | "message", |
| 3465 | "path" |
| 3466 | ], |
| 3467 | "type": "object" |
| 3468 | }, |
| 3469 | "HookEventName": { |
| 3470 | "enum": [ |
| 3471 | "preModelRequest", |
| 3472 | "postModelRequest", |
| 3473 | "preToolUse", |
| 3474 | "permissionRequest", |
| 3475 | "postToolUse", |
| 3476 | "preCompact", |
| 3477 | "postCompact", |
| 3478 | "sessionStart", |
| 3479 | "sessionEnd", |
| 3480 | "userPromptSubmit", |
| 3481 | "subagentStart", |
| 3482 | "subagentStop", |
| 3483 | "stop", |
| 3484 | "interrupt" |
| 3485 | ], |
| 3486 | "type": "string" |
| 3487 | }, |
| 3488 | "HookMetadata": { |
| 3489 | "oneOf": [ |
| 3490 | { |
| 3491 | "properties": { |
| 3492 | "async": { |
| 3493 | "default": false, |
| 3494 | "type": "boolean" |
| 3495 | }, |
| 3496 | "command": { |
| 3497 | "type": "string" |
| 3498 | }, |
| 3499 | "handlerType": { |
| 3500 | "enum": [ |
| 3501 | "command" |
| 3502 | ], |
| 3503 | "type": "string" |
| 3504 | } |
| 3505 | }, |
| 3506 | "required": [ |
| 3507 | "command", |
| 3508 | "handlerType" |
| 3509 | ], |
| 3510 | "type": "object" |
| 3511 | }, |
| 3512 | { |
| 3513 | "properties": { |
| 3514 | "handlerType": { |
| 3515 | "enum": [ |
| 3516 | "mcpTool" |
| 3517 | ], |
| 3518 | "type": "string" |
| 3519 | }, |
| 3520 | "server": { |
| 3521 | "type": "string" |
| 3522 | }, |
| 3523 | "tool": { |
| 3524 | "type": "string" |
| 3525 | } |
| 3526 | }, |
| 3527 | "required": [ |
| 3528 | "handlerType", |
| 3529 | "server", |
| 3530 | "tool" |
| 3531 | ], |
| 3532 | "type": "object" |
| 3533 | }, |
| 3534 | { |
| 3535 | "properties": { |
| 3536 | "handlerType": { |
| 3537 | "enum": [ |
| 3538 | "prompt" |
| 3539 | ], |
| 3540 | "type": "string" |
| 3541 | } |
| 3542 | }, |
| 3543 | "required": [ |
| 3544 | "handlerType" |
| 3545 | ], |
| 3546 | "title": "PromptHookMetadata", |
| 3547 | "type": "object" |
| 3548 | }, |
| 3549 | { |
| 3550 | "properties": { |
| 3551 | "handlerType": { |
| 3552 | "enum": [ |
| 3553 | "agent" |
| 3554 | ], |
| 3555 | "type": "string" |
| 3556 | } |
| 3557 | }, |
| 3558 | "required": [ |
| 3559 | "handlerType" |
| 3560 | ], |
| 3561 | "title": "AgentHookMetadata", |
| 3562 | "type": "object" |
| 3563 | } |
| 3564 | ], |
| 3565 | "properties": { |
| 3566 | "additionalContextLimit": { |
| 3567 | "description": "Configured `additionalContext` spill threshold. `null` uses 2,500 tokens; `0` disables spilling.", |
| 3568 | "format": "uint", |
| 3569 | "minimum": 0.0, |
| 3570 | "type": [ |
| 3571 | "integer", |
| 3572 | "null" |
| 3573 | ] |
| 3574 | }, |
| 3575 | "currentHash": { |
| 3576 | "type": "string" |
| 3577 | }, |
| 3578 | "displayOrder": { |
| 3579 | "format": "int64", |
| 3580 | "type": "integer" |
| 3581 | }, |
| 3582 | "enabled": { |
| 3583 | "type": "boolean" |
| 3584 | }, |
| 3585 | "environmentId": { |
| 3586 | "description": "The owning execution environment, if this hook came from its requirements.", |
| 3587 | "type": [ |
| 3588 | "string", |
| 3589 | "null" |
| 3590 | ] |
| 3591 | }, |
| 3592 | "eventName": { |
| 3593 | "$ref": "#/definitions/HookEventName" |
| 3594 | }, |
| 3595 | "isManaged": { |
| 3596 | "type": "boolean" |
| 3597 | }, |
| 3598 | "key": { |
| 3599 | "type": "string" |
| 3600 | }, |
| 3601 | "matcher": { |
| 3602 | "type": [ |
| 3603 | "string", |
| 3604 | "null" |
| 3605 | ] |
| 3606 | }, |
| 3607 | "pluginId": { |
| 3608 | "type": [ |
| 3609 | "string", |
| 3610 | "null" |
| 3611 | ] |
| 3612 | }, |
| 3613 | "source": { |
| 3614 | "$ref": "#/definitions/HookSource" |
| 3615 | }, |
| 3616 | "sourcePath": { |
| 3617 | "$ref": "#/definitions/AbsolutePathBuf" |
| 3618 | }, |
| 3619 | "statusMessage": { |
| 3620 | "type": [ |
| 3621 | "string", |
| 3622 | "null" |
| 3623 | ] |
| 3624 | }, |
| 3625 | "timeoutSec": { |
| 3626 | "format": "uint64", |
| 3627 | "minimum": 0.0, |
| 3628 | "type": "integer" |
| 3629 | }, |
| 3630 | "trustStatus": { |
| 3631 | "$ref": "#/definitions/HookTrustStatus" |
| 3632 | } |
| 3633 | }, |
| 3634 | "required": [ |
| 3635 | "currentHash", |
| 3636 | "displayOrder", |
| 3637 | "enabled", |
| 3638 | "eventName", |
| 3639 | "isManaged", |
| 3640 | "key", |
| 3641 | "source", |
| 3642 | "sourcePath", |
| 3643 | "timeoutSec", |
| 3644 | "trustStatus" |
| 3645 | ], |
| 3646 | "type": "object" |
| 3647 | }, |
| 3648 | "HookPromptFragment": { |
| 3649 | "properties": { |
| 3650 | "hookRunId": { |
| 3651 | "type": "string" |
| 3652 | }, |
| 3653 | "text": { |
| 3654 | "type": "string" |
| 3655 | } |
| 3656 | }, |
| 3657 | "required": [ |
| 3658 | "hookRunId", |
| 3659 | "text" |
| 3660 | ], |
| 3661 | "type": "object" |
| 3662 | }, |
| 3663 | "HookSource": { |
| 3664 | "enum": [ |
| 3665 | "system", |
| 3666 | "user", |
| 3667 | "project", |
| 3668 | "mdm", |
| 3669 | "sessionFlags", |
| 3670 | "plugin", |
| 3671 | "cloudRequirements", |
| 3672 | "cloudManagedConfig", |
| 3673 | "legacyManagedConfigFile", |
| 3674 | "legacyManagedConfigMdm", |
| 3675 | "unknown" |
| 3676 | ], |
| 3677 | "type": "string" |
| 3678 | }, |
| 3679 | "HookTrustStatus": { |
| 3680 | "enum": [ |
| 3681 | "managed", |
| 3682 | "untrusted", |
| 3683 | "trusted", |
| 3684 | "modified" |
| 3685 | ], |
| 3686 | "type": "string" |
| 3687 | }, |
| 3688 | "HooksListEntry": { |
| 3689 | "properties": { |
| 3690 | "cwd": { |
| 3691 | "type": "string" |
| 3692 | }, |
| 3693 | "errors": { |
| 3694 | "items": { |
| 3695 | "$ref": "#/definitions/HookErrorInfo" |
| 3696 | }, |
| 3697 | "type": "array" |
| 3698 | }, |
| 3699 | "hooks": { |
| 3700 | "items": { |
| 3701 | "$ref": "#/definitions/HookMetadata" |
| 3702 | }, |
| 3703 | "type": "array" |
| 3704 | }, |
| 3705 | "warnings": { |
| 3706 | "items": { |
| 3707 | "type": "string" |
| 3708 | }, |
| 3709 | "type": "array" |
| 3710 | } |
| 3711 | }, |
| 3712 | "required": [ |
| 3713 | "cwd", |
| 3714 | "errors", |
| 3715 | "hooks", |
| 3716 | "warnings" |
| 3717 | ], |
| 3718 | "type": "object" |
| 3719 | }, |
| 3720 | "HooksListParams": { |
| 3721 | "properties": { |
| 3722 | "cwds": { |
| 3723 | "description": "Working directories to inspect when no thread is specified. An empty list uses the session cwd.", |
| 3724 | "items": { |
| 3725 | "type": "string" |
| 3726 | }, |
| 3727 | "type": "array" |
| 3728 | }, |
| 3729 | "threadId": { |
| 3730 | "description": "List a loaded thread's hooks, including its selected environments. Omit `cwds` in this mode.", |
| 3731 | "type": [ |
| 3732 | "string", |
| 3733 | "null" |
| 3734 | ] |
| 3735 | } |
| 3736 | }, |
| 3737 | "title": "HooksListParams", |
| 3738 | "type": "object" |
| 3739 | }, |
| 3740 | "HooksListResponse": { |
| 3741 | "properties": { |
| 3742 | "data": { |
| 3743 | "items": { |
| 3744 | "$ref": "#/definitions/HooksListEntry" |
| 3745 | }, |
| 3746 | "type": "array" |
| 3747 | } |
| 3748 | }, |
| 3749 | "required": [ |
| 3750 | "data" |
| 3751 | ], |
| 3752 | "title": "HooksListResponse", |
| 3753 | "type": "object" |
| 3754 | }, |
| 3755 | "ImageDetail": { |
| 3756 | "enum": [ |
| 3757 | "auto", |
| 3758 | "low", |
| 3759 | "high", |
| 3760 | "original" |
| 3761 | ], |
| 3762 | "type": "string" |
| 3763 | }, |
| 3764 | "ImageGenerationFailure": { |
| 3765 | "oneOf": [ |
| 3766 | { |
| 3767 | "properties": { |
| 3768 | "limitId": { |
| 3769 | "type": "string" |
| 3770 | }, |
| 3771 | "resetsAt": { |
| 3772 | "format": "int64", |
| 3773 | "type": [ |
| 3774 | "integer", |
| 3775 | "null" |
| 3776 | ] |
| 3777 | }, |
| 3778 | "type": { |
| 3779 | "enum": [ |
| 3780 | "usageLimitExceeded" |
| 3781 | ], |
| 3782 | "title": "UsageLimitExceededImageGenerationFailureType", |
| 3783 | "type": "string" |
| 3784 | } |
| 3785 | }, |
| 3786 | "required": [ |
| 3787 | "limitId", |
| 3788 | "type" |
| 3789 | ], |
| 3790 | "title": "UsageLimitExceededImageGenerationFailure", |
| 3791 | "type": "object" |
| 3792 | } |
| 3793 | ] |
| 3794 | }, |
| 3795 | "ImageGenerationInputImage": { |
| 3796 | "description": "A local image file successfully read for this exact image-generation request.", |
| 3797 | "properties": { |
| 3798 | "path": { |
| 3799 | "$ref": "#/definitions/AbsolutePathBuf" |
| 3800 | }, |
| 3801 | "sha256": { |
| 3802 | "description": "Lowercase SHA-256 of the file bytes read before image normalization.", |
| 3803 | "type": "string" |
| 3804 | } |
| 3805 | }, |
| 3806 | "required": [ |
| 3807 | "path", |
| 3808 | "sha256" |
| 3809 | ], |
| 3810 | "type": "object" |
| 3811 | }, |
| 3812 | "InitializeCapabilities": { |
| 3813 | "description": "Client-declared capabilities negotiated during initialize.", |
| 3814 | "properties": { |
| 3815 | "experimentalApi": { |
| 3816 | "default": false, |
| 3817 | "description": "Opt into receiving experimental API methods and fields.", |
| 3818 | "type": "boolean" |
| 3819 | }, |
| 3820 | "explicitGatewayOauth": { |
| 3821 | "description": "Use explicit gateway OAuth login instead of automatic browser authorization. Applies to this app-server's gateway runtime; later connections cannot undo it.", |
| 3822 | "type": "boolean" |
| 3823 | }, |
| 3824 | "extensions": { |
| 3825 | "additionalProperties": true, |
| 3826 | "description": "MCP extension settings declared by the app-server client.", |
| 3827 | "type": [ |
| 3828 | "object", |
| 3829 | "null" |
| 3830 | ] |
| 3831 | }, |
| 3832 | "mcpServerOpenaiFormElicitation": { |
| 3833 | "description": "Legacy opt-in for the `openai/form` MCP extension.\n\nNew clients should declare `openai/form` in [`Self::extensions`].", |
| 3834 | "type": "boolean" |
| 3835 | }, |
| 3836 | "optOutNotificationMethods": { |
| 3837 | "description": "Exact notification method names that should be suppressed for this connection (for example `thread/started`).", |
| 3838 | "items": { |
| 3839 | "type": "string" |
| 3840 | }, |
| 3841 | "type": [ |
| 3842 | "array", |
| 3843 | "null" |
| 3844 | ] |
| 3845 | }, |
| 3846 | "requestAttestation": { |
| 3847 | "default": false, |
| 3848 | "description": "Opt into `attestation/generate` requests for upstream `x-oai-attestation`.", |
| 3849 | "type": "boolean" |
| 3850 | } |
| 3851 | }, |
| 3852 | "type": "object" |
| 3853 | }, |
| 3854 | "InitializeParams": { |
| 3855 | "properties": { |
| 3856 | "capabilities": { |
| 3857 | "anyOf": [ |
| 3858 | { |
| 3859 | "$ref": "#/definitions/InitializeCapabilities" |
| 3860 | }, |
| 3861 | { |
| 3862 | "type": "null" |
| 3863 | } |
| 3864 | ] |
| 3865 | }, |
| 3866 | "clientInfo": { |
| 3867 | "$ref": "#/definitions/ClientInfo" |
| 3868 | } |
| 3869 | }, |
| 3870 | "required": [ |
| 3871 | "clientInfo" |
| 3872 | ], |
| 3873 | "title": "InitializeParams", |
| 3874 | "type": "object" |
| 3875 | }, |
| 3876 | "InitializeResponse": { |
| 3877 | "properties": { |
| 3878 | "codexHome": { |
| 3879 | "allOf": [ |
| 3880 | { |
| 3881 | "$ref": "#/definitions/AbsolutePathBuf" |
| 3882 | } |
| 3883 | ], |
| 3884 | "description": "Absolute path to the server's $CODEX_HOME directory." |
| 3885 | }, |
| 3886 | "platformFamily": { |
| 3887 | "description": "Platform family for the running app-server target, for example `\"unix\"` or `\"windows\"`.", |
| 3888 | "type": "string" |
| 3889 | }, |
| 3890 | "platformOs": { |
| 3891 | "description": "Operating system for the running app-server target, for example `\"macos\"`, `\"linux\"`, or `\"windows\"`.", |
| 3892 | "type": "string" |
| 3893 | }, |
| 3894 | "userAgent": { |
| 3895 | "type": "string" |
| 3896 | } |
| 3897 | }, |
| 3898 | "required": [ |
| 3899 | "codexHome", |
| 3900 | "platformFamily", |
| 3901 | "platformOs", |
| 3902 | "userAgent" |
| 3903 | ], |
| 3904 | "title": "InitializeResponse", |
| 3905 | "type": "object" |
| 3906 | }, |
| 3907 | "InputModality": { |
| 3908 | "description": "Canonical user-input modality tags advertised by a model.", |
| 3909 | "oneOf": [ |
| 3910 | { |
| 3911 | "description": "Plain text turns and tool payloads.", |
| 3912 | "enum": [ |
| 3913 | "text" |
| 3914 | ], |
| 3915 | "type": "string" |
| 3916 | }, |
| 3917 | { |
| 3918 | "description": "Image attachments included in user turns.", |
| 3919 | "enum": [ |
| 3920 | "image" |
| 3921 | ], |
| 3922 | "type": "string" |
| 3923 | }, |
| 3924 | { |
| 3925 | "description": "Audio attachments included in user turns.", |
| 3926 | "enum": [ |
| 3927 | "audio" |
| 3928 | ], |
| 3929 | "type": "string" |
| 3930 | } |
| 3931 | ] |
| 3932 | }, |
| 3933 | "ItemCompletedNotification": { |
| 3934 | "properties": { |
| 3935 | "completedAtMs": { |
| 3936 | "description": "Unix timestamp (in milliseconds) when this item lifecycle completed.", |
| 3937 | "format": "int64", |
| 3938 | "type": "integer" |
| 3939 | }, |
| 3940 | "item": { |
| 3941 | "$ref": "#/definitions/ThreadItem" |
| 3942 | }, |
| 3943 | "threadId": { |
| 3944 | "type": "string" |
| 3945 | }, |
| 3946 | "turnId": { |
| 3947 | "type": "string" |
| 3948 | } |
| 3949 | }, |
| 3950 | "required": [ |
| 3951 | "completedAtMs", |
| 3952 | "item", |
| 3953 | "threadId", |
| 3954 | "turnId" |
| 3955 | ], |
| 3956 | "title": "ItemCompletedNotification", |
| 3957 | "type": "object" |
| 3958 | }, |
| 3959 | "ItemStartedNotification": { |
| 3960 | "properties": { |
| 3961 | "item": { |
| 3962 | "$ref": "#/definitions/ThreadItem" |
| 3963 | }, |
| 3964 | "startedAtMs": { |
| 3965 | "description": "Unix timestamp (in milliseconds) when this item lifecycle started.", |
| 3966 | "format": "int64", |
| 3967 | "type": "integer" |
| 3968 | }, |
| 3969 | "threadId": { |
| 3970 | "type": "string" |
| 3971 | }, |
| 3972 | "turnId": { |
| 3973 | "type": "string" |
| 3974 | } |
| 3975 | }, |
| 3976 | "required": [ |
| 3977 | "item", |
| 3978 | "startedAtMs", |
| 3979 | "threadId", |
| 3980 | "turnId" |
| 3981 | ], |
| 3982 | "title": "ItemStartedNotification", |
| 3983 | "type": "object" |
| 3984 | }, |
| 3985 | "LegacyAppPathString": { |
| 3986 | "type": "string" |
| 3987 | }, |
| 3988 | "ListMcpServerStatusParams": { |
| 3989 | "properties": { |
| 3990 | "cursor": { |
| 3991 | "description": "Opaque pagination cursor returned by a previous call.", |
| 3992 | "type": [ |
| 3993 | "string", |
| 3994 | "null" |
| 3995 | ] |
| 3996 | }, |
| 3997 | "detail": { |
| 3998 | "anyOf": [ |
| 3999 | { |
| 4000 | "$ref": "#/definitions/McpServerStatusDetail" |
| 4001 | }, |
| 4002 | { |
| 4003 | "type": "null" |
| 4004 | } |
| 4005 | ], |
| 4006 | "description": "Controls how much MCP inventory data to fetch for each server. Defaults to `Full` when omitted." |
| 4007 | }, |
| 4008 | "limit": { |
| 4009 | "description": "Optional page size; defaults to a server-defined value.", |
| 4010 | "format": "uint32", |
| 4011 | "minimum": 0.0, |
| 4012 | "type": [ |
| 4013 | "integer", |
| 4014 | "null" |
| 4015 | ] |
| 4016 | }, |
| 4017 | "serverName": { |
| 4018 | "description": "Limit discovery to one server. With a thread ID, reuse that thread's MCP connection.", |
| 4019 | "type": [ |
| 4020 | "string", |
| 4021 | "null" |
| 4022 | ] |
| 4023 | }, |
| 4024 | "threadId": { |
| 4025 | "type": [ |
| 4026 | "string", |
| 4027 | "null" |
| 4028 | ] |
| 4029 | } |
| 4030 | }, |
| 4031 | "title": "ListMcpServerStatusParams", |
| 4032 | "type": "object" |
| 4033 | }, |
| 4034 | "ListMcpServerStatusResponse": { |
| 4035 | "properties": { |
| 4036 | "data": { |
| 4037 | "items": { |
| 4038 | "$ref": "#/definitions/McpServerStatus" |
| 4039 | }, |
| 4040 | "type": "array" |
| 4041 | }, |
| 4042 | "nextCursor": { |
| 4043 | "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.", |
| 4044 | "type": [ |
| 4045 | "string", |
| 4046 | "null" |
| 4047 | ] |
| 4048 | } |
| 4049 | }, |
| 4050 | "required": [ |
| 4051 | "data" |
| 4052 | ], |
| 4053 | "title": "ListMcpServerStatusResponse", |
| 4054 | "type": "object" |
| 4055 | }, |
| 4056 | "McpAppDisplayMode": { |
| 4057 | "enum": [ |
| 4058 | "inline", |
| 4059 | "fullscreen" |
| 4060 | ], |
| 4061 | "type": "string" |
| 4062 | }, |
| 4063 | "McpAppUi": { |
| 4064 | "description": "UI resource and display preference for model invocations, captured from the tool descriptor.", |
| 4065 | "properties": { |
| 4066 | "preferredModelDisplayMode": { |
| 4067 | "$ref": "#/definitions/McpAppDisplayMode" |
| 4068 | }, |
| 4069 | "resourceUri": { |
| 4070 | "type": "string" |
| 4071 | } |
| 4072 | }, |
| 4073 | "required": [ |
| 4074 | "preferredModelDisplayMode", |
| 4075 | "resourceUri" |
| 4076 | ], |
| 4077 | "type": "object" |
| 4078 | }, |
| 4079 | "McpAuthStatus": { |
| 4080 | "enum": [ |
| 4081 | "unknown", |
| 4082 | "unsupported", |
| 4083 | "notLoggedIn", |
| 4084 | "bearerToken", |
| 4085 | "oAuth" |
| 4086 | ], |
| 4087 | "type": "string" |
| 4088 | }, |
| 4089 | "McpServerConnectionStatus": { |
| 4090 | "enum": [ |
| 4091 | "notStarted", |
| 4092 | "starting", |
| 4093 | "connected", |
| 4094 | "authenticationRequired", |
| 4095 | "failed", |
| 4096 | "cancelled", |
| 4097 | "disabled" |
| 4098 | ], |
| 4099 | "type": "string" |
| 4100 | }, |
| 4101 | "McpServerInfo": { |
| 4102 | "description": "Presentation metadata advertised by an initialized MCP server.", |
| 4103 | "properties": { |
| 4104 | "description": { |
| 4105 | "type": [ |
| 4106 | "string", |
| 4107 | "null" |
| 4108 | ] |
| 4109 | }, |
| 4110 | "icons": { |
| 4111 | "items": true, |
| 4112 | "type": [ |
| 4113 | "array", |
| 4114 | "null" |
| 4115 | ] |
| 4116 | }, |
| 4117 | "name": { |
| 4118 | "type": "string" |
| 4119 | }, |
| 4120 | "title": { |
| 4121 | "type": [ |
| 4122 | "string", |
| 4123 | "null" |
| 4124 | ] |
| 4125 | }, |
| 4126 | "version": { |
| 4127 | "type": "string" |
| 4128 | }, |
| 4129 | "websiteUrl": { |
| 4130 | "type": [ |
| 4131 | "string", |
| 4132 | "null" |
| 4133 | ] |
| 4134 | } |
| 4135 | }, |
| 4136 | "required": [ |
| 4137 | "name", |
| 4138 | "version" |
| 4139 | ], |
| 4140 | "type": "object" |
| 4141 | }, |
| 4142 | "McpServerStatus": { |
| 4143 | "properties": { |
| 4144 | "authStatus": { |
| 4145 | "$ref": "#/definitions/McpAuthStatus" |
| 4146 | }, |
| 4147 | "httpOrigin": { |
| 4148 | "description": "HTTP origin of the effective configured endpoint, including plugin servers. Excludes credentials, path, query, and fragment; null for non-HTTP transports.", |
| 4149 | "type": [ |
| 4150 | "string", |
| 4151 | "null" |
| 4152 | ] |
| 4153 | }, |
| 4154 | "name": { |
| 4155 | "type": "string" |
| 4156 | }, |
| 4157 | "pluginId": { |
| 4158 | "type": [ |
| 4159 | "string", |
| 4160 | "null" |
| 4161 | ] |
| 4162 | }, |
| 4163 | "resourceTemplates": { |
| 4164 | "items": { |
| 4165 | "$ref": "#/definitions/ResourceTemplate" |
| 4166 | }, |
| 4167 | "type": "array" |
| 4168 | }, |
| 4169 | "resources": { |
| 4170 | "items": { |
| 4171 | "$ref": "#/definitions/Resource" |
| 4172 | }, |
| 4173 | "type": "array" |
| 4174 | }, |
| 4175 | "runtimeStatus": { |
| 4176 | "anyOf": [ |
| 4177 | { |
| 4178 | "$ref": "#/definitions/McpServerConnectionStatus" |
| 4179 | }, |
| 4180 | { |
| 4181 | "type": "null" |
| 4182 | } |
| 4183 | ], |
| 4184 | "description": "Current thread-runtime connection state; null when unavailable or the configuration changed." |
| 4185 | }, |
| 4186 | "serverCapabilities": { |
| 4187 | "description": "Capabilities advertised by the initialized MCP server; null when unavailable." |
| 4188 | }, |
| 4189 | "serverInfo": { |
| 4190 | "anyOf": [ |
| 4191 | { |
| 4192 | "$ref": "#/definitions/McpServerInfo" |
| 4193 | }, |
| 4194 | { |
| 4195 | "type": "null" |
| 4196 | } |
| 4197 | ] |
| 4198 | }, |
| 4199 | "toolListMeta": { |
| 4200 | "description": "Opaque `_meta` from the first page of the corresponding MCP tool catalog. Null when unavailable." |
| 4201 | }, |
| 4202 | "tools": { |
| 4203 | "additionalProperties": { |
| 4204 | "$ref": "#/definitions/Tool" |
| 4205 | }, |
| 4206 | "type": "object" |
| 4207 | }, |
| 4208 | "toolsError": { |
| 4209 | "description": "Tool discovery failed and no catalog was returned. Null when a catalog is returned, including cached or empty catalogs.", |
| 4210 | "type": [ |
| 4211 | "string", |
| 4212 | "null" |
| 4213 | ] |
| 4214 | } |
| 4215 | }, |
| 4216 | "required": [ |
| 4217 | "authStatus", |
| 4218 | "name", |
| 4219 | "resourceTemplates", |
| 4220 | "resources", |
| 4221 | "tools" |
| 4222 | ], |
| 4223 | "type": "object" |
| 4224 | }, |
| 4225 | "McpServerStatusDetail": { |
| 4226 | "enum": [ |
| 4227 | "full", |
| 4228 | "toolsAndAuthOnly" |
| 4229 | ], |
| 4230 | "type": "string" |
| 4231 | }, |
| 4232 | "McpToolCallAppContext": { |
| 4233 | "properties": { |
| 4234 | "actionName": { |
| 4235 | "type": [ |
| 4236 | "string", |
| 4237 | "null" |
| 4238 | ] |
| 4239 | }, |
| 4240 | "appName": { |
| 4241 | "type": [ |
| 4242 | "string", |
| 4243 | "null" |
| 4244 | ] |
| 4245 | }, |
| 4246 | "connectorId": { |
| 4247 | "type": "string" |
| 4248 | }, |
| 4249 | "linkId": { |
| 4250 | "type": [ |
| 4251 | "string", |
| 4252 | "null" |
| 4253 | ] |
| 4254 | }, |
| 4255 | "resourceUri": { |
| 4256 | "type": [ |
| 4257 | "string", |
| 4258 | "null" |
| 4259 | ] |
| 4260 | } |
| 4261 | }, |
| 4262 | "required": [ |
| 4263 | "connectorId" |
| 4264 | ], |
| 4265 | "type": "object" |
| 4266 | }, |
| 4267 | "McpToolCallError": { |
| 4268 | "properties": { |
| 4269 | "message": { |
| 4270 | "type": "string" |
| 4271 | } |
| 4272 | }, |
| 4273 | "required": [ |
| 4274 | "message" |
| 4275 | ], |
| 4276 | "type": "object" |
| 4277 | }, |
| 4278 | "McpToolCallProgressNotification": { |
| 4279 | "properties": { |
| 4280 | "itemId": { |
| 4281 | "type": "string" |
| 4282 | }, |
| 4283 | "message": { |
| 4284 | "type": "string" |
| 4285 | }, |
| 4286 | "threadId": { |
| 4287 | "type": "string" |
| 4288 | }, |
| 4289 | "turnId": { |
| 4290 | "type": "string" |
| 4291 | } |
| 4292 | }, |
| 4293 | "required": [ |
| 4294 | "itemId", |
| 4295 | "message", |
| 4296 | "threadId", |
| 4297 | "turnId" |
| 4298 | ], |
| 4299 | "title": "McpToolCallProgressNotification", |
| 4300 | "type": "object" |
| 4301 | }, |
| 4302 | "McpToolCallResult": { |
| 4303 | "properties": { |
| 4304 | "_meta": true, |
| 4305 | "content": { |
| 4306 | "items": true, |
| 4307 | "type": "array" |
| 4308 | }, |
| 4309 | "structuredContent": true |
| 4310 | }, |
| 4311 | "required": [ |
| 4312 | "content" |
| 4313 | ], |
| 4314 | "type": "object" |
| 4315 | }, |
| 4316 | "McpToolCallStatus": { |
| 4317 | "enum": [ |
| 4318 | "inProgress", |
| 4319 | "completed", |
| 4320 | "failed" |
| 4321 | ], |
| 4322 | "type": "string" |
| 4323 | }, |
| 4324 | "MemoryCitation": { |
| 4325 | "properties": { |
| 4326 | "entries": { |
| 4327 | "items": { |
| 4328 | "$ref": "#/definitions/MemoryCitationEntry" |
| 4329 | }, |
| 4330 | "type": "array" |
| 4331 | }, |
| 4332 | "threadIds": { |
| 4333 | "items": { |
| 4334 | "type": "string" |
| 4335 | }, |
| 4336 | "type": "array" |
| 4337 | } |
| 4338 | }, |
| 4339 | "required": [ |
| 4340 | "entries", |
| 4341 | "threadIds" |
| 4342 | ], |
| 4343 | "type": "object" |
| 4344 | }, |
| 4345 | "MemoryCitationEntry": { |
| 4346 | "properties": { |
| 4347 | "lineEnd": { |
| 4348 | "format": "uint32", |
| 4349 | "minimum": 0.0, |
| 4350 | "type": "integer" |
| 4351 | }, |
| 4352 | "lineStart": { |
| 4353 | "format": "uint32", |
| 4354 | "minimum": 0.0, |
| 4355 | "type": "integer" |
| 4356 | }, |
| 4357 | "note": { |
| 4358 | "type": "string" |
| 4359 | }, |
| 4360 | "path": { |
| 4361 | "type": "string" |
| 4362 | } |
| 4363 | }, |
| 4364 | "required": [ |
| 4365 | "lineEnd", |
| 4366 | "lineStart", |
| 4367 | "note", |
| 4368 | "path" |
| 4369 | ], |
| 4370 | "type": "object" |
| 4371 | }, |
| 4372 | "MergeStrategy": { |
| 4373 | "enum": [ |
| 4374 | "replace", |
| 4375 | "upsert" |
| 4376 | ], |
| 4377 | "type": "string" |
| 4378 | }, |
| 4379 | "MessagePhase": { |
| 4380 | "description": "Classifies assistant text as commentary, a partial answer, or a terminal answer.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.", |
| 4381 | "oneOf": [ |
| 4382 | { |
| 4383 | "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.", |
| 4384 | "enum": [ |
| 4385 | "commentary" |
| 4386 | ], |
| 4387 | "type": "string" |
| 4388 | }, |
| 4389 | { |
| 4390 | "description": "Stable answer text that may be followed by more assistant output or tools.", |
| 4391 | "enum": [ |
| 4392 | "partial_answer" |
| 4393 | ], |
| 4394 | "type": "string" |
| 4395 | }, |
| 4396 | { |
| 4397 | "description": "The assistant's declared terminal answer text for the current turn.", |
| 4398 | "enum": [ |
| 4399 | "final_answer" |
| 4400 | ], |
| 4401 | "type": "string" |
| 4402 | } |
| 4403 | ] |
| 4404 | }, |
| 4405 | "MisalignmentErrorDetails": { |
| 4406 | "properties": { |
| 4407 | "detailedExplanation": { |
| 4408 | "description": "A substantive localized explanation is required before offering continuation.", |
| 4409 | "type": [ |
| 4410 | "string", |
| 4411 | "null" |
| 4412 | ] |
| 4413 | }, |
| 4414 | "errorType": { |
| 4415 | "description": "Open-ended classification; clients must accept categories added by Responses.", |
| 4416 | "type": [ |
| 4417 | "string", |
| 4418 | "null" |
| 4419 | ] |
| 4420 | }, |
| 4421 | "reviewTarget": { |
| 4422 | "description": "Opaque server-issued block target. Presence alone does not enable target-based continuation.", |
| 4423 | "type": [ |
| 4424 | "string", |
| 4425 | "null" |
| 4426 | ] |
| 4427 | }, |
| 4428 | "steer": { |
| 4429 | "anyOf": [ |
| 4430 | { |
| 4431 | "$ref": "#/definitions/MisalignmentSteer" |
| 4432 | }, |
| 4433 | { |
| 4434 | "type": "null" |
| 4435 | } |
| 4436 | ], |
| 4437 | "description": "Instruction to submit as the next turn's user input if continuation is confirmed." |
| 4438 | } |
| 4439 | }, |
| 4440 | "type": "object" |
| 4441 | }, |
| 4442 | "MisalignmentSteer": { |
| 4443 | "properties": { |
| 4444 | "message": { |
| 4445 | "type": "string" |
| 4446 | } |
| 4447 | }, |
| 4448 | "required": [ |
| 4449 | "message" |
| 4450 | ], |
| 4451 | "type": "object" |
| 4452 | }, |
| 4453 | "ModeKind": { |
| 4454 | "description": "Initial collaboration mode to use when the TUI starts.", |
| 4455 | "enum": [ |
| 4456 | "plan", |
| 4457 | "default" |
| 4458 | ], |
| 4459 | "type": "string" |
| 4460 | }, |
| 4461 | "Model": { |
| 4462 | "properties": { |
| 4463 | "additionalSpeedTiers": { |
| 4464 | "default": [], |
| 4465 | "description": "Deprecated: use `serviceTiers` instead.", |
| 4466 | "items": { |
| 4467 | "type": "string" |
| 4468 | }, |
| 4469 | "type": "array" |
| 4470 | }, |
| 4471 | "availabilityNux": { |
| 4472 | "anyOf": [ |
| 4473 | { |
| 4474 | "$ref": "#/definitions/ModelAvailabilityNux" |
| 4475 | }, |
| 4476 | { |
| 4477 | "type": "null" |
| 4478 | } |
| 4479 | ] |
| 4480 | }, |
| 4481 | "availableAccessPrograms": { |
| 4482 | "anyOf": [ |
| 4483 | { |
| 4484 | "$ref": "#/definitions/ModelAccessPrograms" |
| 4485 | }, |
| 4486 | { |
| 4487 | "type": "null" |
| 4488 | } |
| 4489 | ], |
| 4490 | "default": null, |
| 4491 | "description": "Null when the catalog does not provide access-program metadata." |
| 4492 | }, |
| 4493 | "defaultReasoningEffort": { |
| 4494 | "$ref": "#/definitions/ReasoningEffort" |
| 4495 | }, |
| 4496 | "defaultServiceTier": { |
| 4497 | "default": null, |
| 4498 | "description": "Catalog default service tier id for this model, when one is configured.", |
| 4499 | "type": [ |
| 4500 | "string", |
| 4501 | "null" |
| 4502 | ] |
| 4503 | }, |
| 4504 | "description": { |
| 4505 | "type": "string" |
| 4506 | }, |
| 4507 | "displayName": { |
| 4508 | "type": "string" |
| 4509 | }, |
| 4510 | "hidden": { |
| 4511 | "type": "boolean" |
| 4512 | }, |
| 4513 | "id": { |
| 4514 | "type": "string" |
| 4515 | }, |
| 4516 | "inputModalities": { |
| 4517 | "default": [ |
| 4518 | "text", |
| 4519 | "image" |
| 4520 | ], |
| 4521 | "items": { |
| 4522 | "$ref": "#/definitions/InputModality" |
| 4523 | }, |
| 4524 | "type": "array" |
| 4525 | }, |
| 4526 | "isDefault": { |
| 4527 | "type": "boolean" |
| 4528 | }, |
| 4529 | "model": { |
| 4530 | "type": "string" |
| 4531 | }, |
| 4532 | "modelSpecialty": { |
| 4533 | "default": null, |
| 4534 | "type": [ |
| 4535 | "string", |
| 4536 | "null" |
| 4537 | ] |
| 4538 | }, |
| 4539 | "multiAgentVersion": { |
| 4540 | "anyOf": [ |
| 4541 | { |
| 4542 | "$ref": "#/definitions/MultiAgentVersion" |
| 4543 | }, |
| 4544 | { |
| 4545 | "type": "null" |
| 4546 | } |
| 4547 | ], |
| 4548 | "description": "Multi-agent runtime declared by this model, when available." |
| 4549 | }, |
| 4550 | "serviceTiers": { |
| 4551 | "default": [], |
| 4552 | "items": { |
| 4553 | "$ref": "#/definitions/ModelServiceTier" |
| 4554 | }, |
| 4555 | "type": "array" |
| 4556 | }, |
| 4557 | "supportedReasoningEfforts": { |
| 4558 | "items": { |
| 4559 | "$ref": "#/definitions/ReasoningEffortOption" |
| 4560 | }, |
| 4561 | "type": "array" |
| 4562 | }, |
| 4563 | "supportsPersonality": { |
| 4564 | "default": false, |
| 4565 | "description": "@deprecated Always false; models no longer support personality selection.", |
| 4566 | "type": "boolean" |
| 4567 | }, |
| 4568 | "upgrade": { |
| 4569 | "type": [ |
| 4570 | "string", |
| 4571 | "null" |
| 4572 | ] |
| 4573 | }, |
| 4574 | "upgradeInfo": { |
| 4575 | "anyOf": [ |
| 4576 | { |
| 4577 | "$ref": "#/definitions/ModelUpgradeInfo" |
| 4578 | }, |
| 4579 | { |
| 4580 | "type": "null" |
| 4581 | } |
| 4582 | ] |
| 4583 | } |
| 4584 | }, |
| 4585 | "required": [ |
| 4586 | "defaultReasoningEffort", |
| 4587 | "description", |
| 4588 | "displayName", |
| 4589 | "hidden", |
| 4590 | "id", |
| 4591 | "isDefault", |
| 4592 | "model", |
| 4593 | "supportedReasoningEfforts" |
| 4594 | ], |
| 4595 | "type": "object" |
| 4596 | }, |
| 4597 | "ModelAccessPrograms": { |
| 4598 | "description": "Caller-specific explicit access programs advertised by model discovery.", |
| 4599 | "properties": { |
| 4600 | "cyber": { |
| 4601 | "description": "Accepted explicit selections.", |
| 4602 | "items": { |
| 4603 | "$ref": "#/definitions/CyberAccessProgram" |
| 4604 | }, |
| 4605 | "type": "array" |
| 4606 | } |
| 4607 | }, |
| 4608 | "required": [ |
| 4609 | "cyber" |
| 4610 | ], |
| 4611 | "type": "object" |
| 4612 | }, |
| 4613 | "ModelAvailabilityNux": { |
| 4614 | "properties": { |
| 4615 | "message": { |
| 4616 | "type": "string" |
| 4617 | } |
| 4618 | }, |
| 4619 | "required": [ |
| 4620 | "message" |
| 4621 | ], |
| 4622 | "type": "object" |
| 4623 | }, |
| 4624 | "ModelListParams": { |
| 4625 | "properties": { |
| 4626 | "cursor": { |
| 4627 | "description": "Opaque pagination cursor returned by a previous call.", |
| 4628 | "type": [ |
| 4629 | "string", |
| 4630 | "null" |
| 4631 | ] |
| 4632 | }, |
| 4633 | "includeHidden": { |
| 4634 | "description": "When true, include models that are hidden from the default picker list.", |
| 4635 | "type": [ |
| 4636 | "boolean", |
| 4637 | "null" |
| 4638 | ] |
| 4639 | }, |
| 4640 | "limit": { |
| 4641 | "description": "Optional page size; defaults to a reasonable server-side value.", |
| 4642 | "format": "uint32", |
| 4643 | "minimum": 0.0, |
| 4644 | "type": [ |
| 4645 | "integer", |
| 4646 | "null" |
| 4647 | ] |
| 4648 | } |
| 4649 | }, |
| 4650 | "title": "ModelListParams", |
| 4651 | "type": "object" |
| 4652 | }, |
| 4653 | "ModelListResponse": { |
| 4654 | "properties": { |
| 4655 | "data": { |
| 4656 | "items": { |
| 4657 | "$ref": "#/definitions/Model" |
| 4658 | }, |
| 4659 | "type": "array" |
| 4660 | }, |
| 4661 | "nextCursor": { |
| 4662 | "description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.", |
| 4663 | "type": [ |
| 4664 | "string", |
| 4665 | "null" |
| 4666 | ] |
| 4667 | } |
| 4668 | }, |
| 4669 | "required": [ |
| 4670 | "data" |
| 4671 | ], |
| 4672 | "title": "ModelListResponse", |
| 4673 | "type": "object" |
| 4674 | }, |
| 4675 | "ModelServiceTier": { |
| 4676 | "properties": { |
| 4677 | "description": { |
| 4678 | "type": "string" |
| 4679 | }, |
| 4680 | "id": { |
| 4681 | "type": "string" |
| 4682 | }, |
| 4683 | "name": { |
| 4684 | "type": "string" |
| 4685 | } |
| 4686 | }, |
| 4687 | "required": [ |
| 4688 | "description", |
| 4689 | "id", |
| 4690 | "name" |
| 4691 | ], |
| 4692 | "type": "object" |
| 4693 | }, |
| 4694 | "ModelUpgradeInfo": { |
| 4695 | "properties": { |
| 4696 | "migrationMarkdown": { |
| 4697 | "type": [ |
| 4698 | "string", |
| 4699 | "null" |
| 4700 | ] |
| 4701 | }, |
| 4702 | "model": { |
| 4703 | "type": "string" |
| 4704 | }, |
| 4705 | "modelLink": { |
| 4706 | "type": [ |
| 4707 | "string", |
| 4708 | "null" |
| 4709 | ] |
| 4710 | }, |
| 4711 | "retirementAt": { |
| 4712 | "description": "Informational Unix timestamp for this upgrade's scheduled retirement, if known.", |
| 4713 | "format": "int64", |
| 4714 | "type": [ |
| 4715 | "integer", |
| 4716 | "null" |
| 4717 | ] |
| 4718 | }, |
| 4719 | "upgradeCopy": { |
| 4720 | "type": [ |
| 4721 | "string", |
| 4722 | "null" |
| 4723 | ] |
| 4724 | } |
| 4725 | }, |
| 4726 | "required": [ |
| 4727 | "model" |
| 4728 | ], |
| 4729 | "type": "object" |
| 4730 | }, |
| 4731 | "MultiAgentVersion": { |
| 4732 | "description": "Multi-agent runtime supported by a model.", |
| 4733 | "enum": [ |
| 4734 | "disabled", |
| 4735 | "v1", |
| 4736 | "v2" |
| 4737 | ], |
| 4738 | "type": "string" |
| 4739 | }, |
| 4740 | "NetworkAccess": { |
| 4741 | "enum": [ |
| 4742 | "restricted", |
| 4743 | "enabled" |
| 4744 | ], |
| 4745 | "type": "string" |
| 4746 | }, |
| 4747 | "NetworkApprovalContext": { |
| 4748 | "properties": { |
| 4749 | "host": { |
| 4750 | "type": "string" |
| 4751 | }, |
| 4752 | "protocol": { |
| 4753 | "$ref": "#/definitions/NetworkApprovalProtocol" |
| 4754 | } |
| 4755 | }, |
| 4756 | "required": [ |
| 4757 | "host", |
| 4758 | "protocol" |
| 4759 | ], |
| 4760 | "type": "object" |
| 4761 | }, |
| 4762 | "NetworkApprovalProtocol": { |
| 4763 | "enum": [ |
| 4764 | "http", |
| 4765 | "https", |
| 4766 | "socks5Tcp", |
| 4767 | "socks5Udp" |
| 4768 | ], |
| 4769 | "type": "string" |
| 4770 | }, |
| 4771 | "NetworkPolicyAmendment": { |
| 4772 | "properties": { |
| 4773 | "action": { |
| 4774 | "$ref": "#/definitions/NetworkPolicyRuleAction" |
| 4775 | }, |
| 4776 | "host": { |
| 4777 | "type": "string" |
| 4778 | } |
| 4779 | }, |
| 4780 | "required": [ |
| 4781 | "action", |
| 4782 | "host" |
| 4783 | ], |
| 4784 | "type": "object" |
| 4785 | }, |
| 4786 | "NetworkPolicyRuleAction": { |
| 4787 | "enum": [ |
| 4788 | "allow", |
| 4789 | "deny" |
| 4790 | ], |
| 4791 | "type": "string" |
| 4792 | }, |
| 4793 | "NonSteerableTurnKind": { |
| 4794 | "enum": [ |
| 4795 | "review", |
| 4796 | "compact" |
| 4797 | ], |
| 4798 | "type": "string" |
| 4799 | }, |
| 4800 | "OverriddenMetadata": { |
| 4801 | "properties": { |
| 4802 | "effectiveValue": true, |
| 4803 | "message": { |
| 4804 | "type": "string" |
| 4805 | }, |
| 4806 | "overridingLayer": { |
| 4807 | "$ref": "#/definitions/ConfigLayerMetadata" |
| 4808 | } |
| 4809 | }, |
| 4810 | "required": [ |
| 4811 | "effectiveValue", |
| 4812 | "message", |
| 4813 | "overridingLayer" |
| 4814 | ], |
| 4815 | "type": "object" |
| 4816 | }, |
| 4817 | "PatchApplyStatus": { |
| 4818 | "enum": [ |
| 4819 | "inProgress", |
| 4820 | "completed", |
| 4821 | "failed", |
| 4822 | "declined" |
| 4823 | ], |
| 4824 | "type": "string" |
| 4825 | }, |
| 4826 | "PatchChangeKind": { |
| 4827 | "oneOf": [ |
| 4828 | { |
| 4829 | "properties": { |
| 4830 | "type": { |
| 4831 | "enum": [ |
| 4832 | "add" |
| 4833 | ], |
| 4834 | "title": "AddPatchChangeKindType", |
| 4835 | "type": "string" |
| 4836 | } |
| 4837 | }, |
| 4838 | "required": [ |
| 4839 | "type" |
| 4840 | ], |
| 4841 | "title": "AddPatchChangeKind", |
| 4842 | "type": "object" |
| 4843 | }, |
| 4844 | { |
| 4845 | "properties": { |
| 4846 | "type": { |
| 4847 | "enum": [ |
| 4848 | "delete" |
| 4849 | ], |
| 4850 | "title": "DeletePatchChangeKindType", |
| 4851 | "type": "string" |
| 4852 | } |
| 4853 | }, |
| 4854 | "required": [ |
| 4855 | "type" |
| 4856 | ], |
| 4857 | "title": "DeletePatchChangeKind", |
| 4858 | "type": "object" |
| 4859 | }, |
| 4860 | { |
| 4861 | "properties": { |
| 4862 | "move_path": { |
| 4863 | "type": [ |
| 4864 | "string", |
| 4865 | "null" |
| 4866 | ] |
| 4867 | }, |
| 4868 | "type": { |
| 4869 | "enum": [ |
| 4870 | "update" |
| 4871 | ], |
| 4872 | "title": "UpdatePatchChangeKindType", |
| 4873 | "type": "string" |
| 4874 | } |
| 4875 | }, |
| 4876 | "required": [ |
| 4877 | "type" |
| 4878 | ], |
| 4879 | "title": "UpdatePatchChangeKind", |
| 4880 | "type": "object" |
| 4881 | } |
| 4882 | ] |
| 4883 | }, |
| 4884 | "PermissionGrantScope": { |
| 4885 | "enum": [ |
| 4886 | "turn", |
| 4887 | "session" |
| 4888 | ], |
| 4889 | "type": "string" |
| 4890 | }, |
| 4891 | "PermissionsRequestApprovalParams": { |
| 4892 | "properties": { |
| 4893 | "cwd": { |
| 4894 | "$ref": "#/definitions/LegacyAppPathString" |
| 4895 | }, |
| 4896 | "environmentId": { |
| 4897 | "default": null, |
| 4898 | "type": [ |
| 4899 | "string", |
| 4900 | "null" |
| 4901 | ] |
| 4902 | }, |
| 4903 | "itemId": { |
| 4904 | "type": "string" |
| 4905 | }, |
| 4906 | "permissions": { |
| 4907 | "$ref": "#/definitions/RequestPermissionProfile" |
| 4908 | }, |
| 4909 | "reason": { |
| 4910 | "type": [ |
| 4911 | "string", |
| 4912 | "null" |
| 4913 | ] |
| 4914 | }, |
| 4915 | "startedAtMs": { |
| 4916 | "description": "Unix timestamp (in milliseconds) when this approval request started.", |
| 4917 | "format": "int64", |
| 4918 | "type": "integer" |
| 4919 | }, |
| 4920 | "threadId": { |
| 4921 | "type": "string" |
| 4922 | }, |
| 4923 | "turnId": { |
| 4924 | "type": "string" |
| 4925 | } |
| 4926 | }, |
| 4927 | "required": [ |
| 4928 | "cwd", |
| 4929 | "itemId", |
| 4930 | "permissions", |
| 4931 | "startedAtMs", |
| 4932 | "threadId", |
| 4933 | "turnId" |
| 4934 | ], |
| 4935 | "title": "PermissionsRequestApprovalParams", |
| 4936 | "type": "object" |
| 4937 | }, |
| 4938 | "PermissionsRequestApprovalResponse": { |
| 4939 | "properties": { |
| 4940 | "permissions": { |
| 4941 | "$ref": "#/definitions/GrantedPermissionProfile" |
| 4942 | }, |
| 4943 | "scope": { |
| 4944 | "allOf": [ |
| 4945 | { |
| 4946 | "$ref": "#/definitions/PermissionGrantScope" |
| 4947 | } |
| 4948 | ], |
| 4949 | "default": "turn" |
| 4950 | }, |
| 4951 | "strictAutoReview": { |
| 4952 | "description": "Review every subsequent command in this turn before normal sandboxed execution.", |
| 4953 | "type": [ |
| 4954 | "boolean", |
| 4955 | "null" |
| 4956 | ] |
| 4957 | } |
| 4958 | }, |
| 4959 | "required": [ |
| 4960 | "permissions" |
| 4961 | ], |
| 4962 | "title": "PermissionsRequestApprovalResponse", |
| 4963 | "type": "object" |
| 4964 | }, |
| 4965 | "Personality": { |
| 4966 | "description": "Deprecated: `friendly` and `pragmatic` no longer select a style.", |
| 4967 | "enum": [ |
| 4968 | "none", |
| 4969 | "friendly", |
| 4970 | "pragmatic" |
| 4971 | ], |
| 4972 | "type": "string" |
| 4973 | }, |
| 4974 | "PlanDeltaNotification": { |
| 4975 | "description": "EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.", |
| 4976 | "properties": { |
| 4977 | "delta": { |
| 4978 | "type": "string" |
| 4979 | }, |
| 4980 | "itemId": { |
| 4981 | "type": "string" |
| 4982 | }, |
| 4983 | "threadId": { |
| 4984 | "type": "string" |
| 4985 | }, |
| 4986 | "turnId": { |
| 4987 | "type": "string" |
| 4988 | } |
| 4989 | }, |
| 4990 | "required": [ |
| 4991 | "delta", |
| 4992 | "itemId", |
| 4993 | "threadId", |
| 4994 | "turnId" |
| 4995 | ], |
| 4996 | "title": "PlanDeltaNotification", |
| 4997 | "type": "object" |
| 4998 | }, |
| 4999 | "ReasoningEffort": { |
| 5000 | "description": "A non-empty reasoning effort value advertised by the model.", |
| 5001 | "minLength": 1, |
| 5002 | "type": "string" |
| 5003 | }, |
| 5004 | "ReasoningEffortOption": { |
| 5005 | "properties": { |
| 5006 | "description": { |
| 5007 | "type": "string" |
| 5008 | }, |
| 5009 | "reasoningEffort": { |
| 5010 | "$ref": "#/definitions/ReasoningEffort" |
| 5011 | } |
| 5012 | }, |
| 5013 | "required": [ |
| 5014 | "description", |
| 5015 | "reasoningEffort" |
| 5016 | ], |
| 5017 | "type": "object" |
| 5018 | }, |
| 5019 | "ReasoningSummary": { |
| 5020 | "description": "A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries", |
| 5021 | "oneOf": [ |
| 5022 | { |
| 5023 | "enum": [ |
| 5024 | "auto", |
| 5025 | "concise", |
| 5026 | "detailed" |
| 5027 | ], |
| 5028 | "type": "string" |
| 5029 | }, |
| 5030 | { |
| 5031 | "description": "Option to disable reasoning summaries.", |
| 5032 | "enum": [ |
| 5033 | "none" |
| 5034 | ], |
| 5035 | "type": "string" |
| 5036 | } |
| 5037 | ] |
| 5038 | }, |
| 5039 | "ReasoningSummaryPartAddedNotification": { |
| 5040 | "properties": { |
| 5041 | "itemId": { |
| 5042 | "type": "string" |
| 5043 | }, |
| 5044 | "summaryIndex": { |
| 5045 | "format": "int64", |
| 5046 | "type": "integer" |
| 5047 | }, |
| 5048 | "threadId": { |
| 5049 | "type": "string" |
| 5050 | }, |
| 5051 | "turnId": { |
| 5052 | "type": "string" |
| 5053 | } |
| 5054 | }, |
| 5055 | "required": [ |
| 5056 | "itemId", |
| 5057 | "summaryIndex", |
| 5058 | "threadId", |
| 5059 | "turnId" |
| 5060 | ], |
| 5061 | "title": "ReasoningSummaryPartAddedNotification", |
| 5062 | "type": "object" |
| 5063 | }, |
| 5064 | "ReasoningSummaryTextDeltaNotification": { |
| 5065 | "properties": { |
| 5066 | "delta": { |
| 5067 | "type": "string" |
| 5068 | }, |
| 5069 | "itemId": { |
| 5070 | "type": "string" |
| 5071 | }, |
| 5072 | "summaryIndex": { |
| 5073 | "format": "int64", |
| 5074 | "type": "integer" |
| 5075 | }, |
| 5076 | "threadId": { |
| 5077 | "type": "string" |
| 5078 | }, |
| 5079 | "turnId": { |
| 5080 | "type": "string" |
| 5081 | } |
| 5082 | }, |
| 5083 | "required": [ |
| 5084 | "delta", |
| 5085 | "itemId", |
| 5086 | "summaryIndex", |
| 5087 | "threadId", |
| 5088 | "turnId" |
| 5089 | ], |
| 5090 | "title": "ReasoningSummaryTextDeltaNotification", |
| 5091 | "type": "object" |
| 5092 | }, |
| 5093 | "ReasoningTextDeltaNotification": { |
| 5094 | "properties": { |
| 5095 | "contentIndex": { |
| 5096 | "format": "int64", |
| 5097 | "type": "integer" |
| 5098 | }, |
| 5099 | "delta": { |
| 5100 | "type": "string" |
| 5101 | }, |
| 5102 | "itemId": { |
| 5103 | "type": "string" |
| 5104 | }, |
| 5105 | "threadId": { |
| 5106 | "type": "string" |
| 5107 | }, |
| 5108 | "turnId": { |
| 5109 | "type": "string" |
| 5110 | } |
| 5111 | }, |
| 5112 | "required": [ |
| 5113 | "contentIndex", |
| 5114 | "delta", |
| 5115 | "itemId", |
| 5116 | "threadId", |
| 5117 | "turnId" |
| 5118 | ], |
| 5119 | "title": "ReasoningTextDeltaNotification", |
| 5120 | "type": "object" |
| 5121 | }, |
| 5122 | "RequestId": { |
| 5123 | "anyOf": [ |
| 5124 | { |
| 5125 | "type": "string" |
| 5126 | }, |
| 5127 | { |
| 5128 | "format": "int64", |
| 5129 | "type": "integer" |
| 5130 | } |
| 5131 | ] |
| 5132 | }, |
| 5133 | "RequestPermissionProfile": { |
| 5134 | "additionalProperties": false, |
| 5135 | "properties": { |
| 5136 | "fileSystem": { |
| 5137 | "anyOf": [ |
| 5138 | { |
| 5139 | "$ref": "#/definitions/AdditionalFileSystemPermissions" |
| 5140 | }, |
| 5141 | { |
| 5142 | "type": "null" |
| 5143 | } |
| 5144 | ] |
| 5145 | }, |
| 5146 | "network": { |
| 5147 | "anyOf": [ |
| 5148 | { |
| 5149 | "$ref": "#/definitions/AdditionalNetworkPermissions" |
| 5150 | }, |
| 5151 | { |
| 5152 | "type": "null" |
| 5153 | } |
| 5154 | ] |
| 5155 | } |
| 5156 | }, |
| 5157 | "type": "object" |
| 5158 | }, |
| 5159 | "Resource": { |
| 5160 | "description": "A known resource that the server is capable of reading.", |
| 5161 | "properties": { |
| 5162 | "_meta": true, |
| 5163 | "annotations": true, |
| 5164 | "description": { |
| 5165 | "type": [ |
| 5166 | "string", |
| 5167 | "null" |
| 5168 | ] |
| 5169 | }, |
| 5170 | "icons": { |
| 5171 | "items": true, |
| 5172 | "type": [ |
| 5173 | "array", |
| 5174 | "null" |
| 5175 | ] |
| 5176 | }, |
| 5177 | "mimeType": { |
| 5178 | "type": [ |
| 5179 | "string", |
| 5180 | "null" |
| 5181 | ] |
| 5182 | }, |
| 5183 | "name": { |
| 5184 | "type": "string" |
| 5185 | }, |
| 5186 | "size": { |
| 5187 | "format": "int64", |
| 5188 | "type": [ |
| 5189 | "integer", |
| 5190 | "null" |
| 5191 | ] |
| 5192 | }, |
| 5193 | "title": { |
| 5194 | "type": [ |
| 5195 | "string", |
| 5196 | "null" |
| 5197 | ] |
| 5198 | }, |
| 5199 | "uri": { |
| 5200 | "type": "string" |
| 5201 | } |
| 5202 | }, |
| 5203 | "required": [ |
| 5204 | "name", |
| 5205 | "uri" |
| 5206 | ], |
| 5207 | "type": "object" |
| 5208 | }, |
| 5209 | "ResourceTemplate": { |
| 5210 | "description": "A template description for resources available on the server.", |
| 5211 | "properties": { |
| 5212 | "annotations": true, |
| 5213 | "description": { |
| 5214 | "type": [ |
| 5215 | "string", |
| 5216 | "null" |
| 5217 | ] |
| 5218 | }, |
| 5219 | "mimeType": { |
| 5220 | "type": [ |
| 5221 | "string", |
| 5222 | "null" |
| 5223 | ] |
| 5224 | }, |
| 5225 | "name": { |
| 5226 | "type": "string" |
| 5227 | }, |
| 5228 | "title": { |
| 5229 | "type": [ |
| 5230 | "string", |
| 5231 | "null" |
| 5232 | ] |
| 5233 | }, |
| 5234 | "uriTemplate": { |
| 5235 | "type": "string" |
| 5236 | } |
| 5237 | }, |
| 5238 | "required": [ |
| 5239 | "name", |
| 5240 | "uriTemplate" |
| 5241 | ], |
| 5242 | "type": "object" |
| 5243 | }, |
| 5244 | "ReviewDelivery": { |
| 5245 | "enum": [ |
| 5246 | "inline" |
| 5247 | ], |
| 5248 | "type": "string" |
| 5249 | }, |
| 5250 | "ReviewStartParams": { |
| 5251 | "properties": { |
| 5252 | "delivery": { |
| 5253 | "anyOf": [ |
| 5254 | { |
| 5255 | "$ref": "#/definitions/ReviewDelivery" |
| 5256 | }, |
| 5257 | { |
| 5258 | "type": "null" |
| 5259 | } |
| 5260 | ], |
| 5261 | "default": null, |
| 5262 | "description": "Reviews run inline on the supplied thread. Omit this field or pass `inline`. To review on a separate thread, start a thread first and use its id." |
| 5263 | }, |
| 5264 | "target": { |
| 5265 | "$ref": "#/definitions/ReviewTarget" |
| 5266 | }, |
| 5267 | "threadId": { |
| 5268 | "type": "string" |
| 5269 | } |
| 5270 | }, |
| 5271 | "required": [ |
| 5272 | "target", |
| 5273 | "threadId" |
| 5274 | ], |
| 5275 | "title": "ReviewStartParams", |
| 5276 | "type": "object" |
| 5277 | }, |
| 5278 | "ReviewStartResponse": { |
| 5279 | "properties": { |
| 5280 | "reviewThreadId": { |
| 5281 | "description": "The thread id supplied to `review/start`.", |
| 5282 | "type": "string" |
| 5283 | }, |
| 5284 | "turn": { |
| 5285 | "$ref": "#/definitions/Turn" |
| 5286 | } |
| 5287 | }, |
| 5288 | "required": [ |
| 5289 | "reviewThreadId", |
| 5290 | "turn" |
| 5291 | ], |
| 5292 | "title": "ReviewStartResponse", |
| 5293 | "type": "object" |
| 5294 | }, |
| 5295 | "ReviewTarget": { |
| 5296 | "oneOf": [ |
| 5297 | { |
| 5298 | "description": "Review the working tree: staged, unstaged, and untracked files.", |
| 5299 | "properties": { |
| 5300 | "type": { |
| 5301 | "enum": [ |
| 5302 | "uncommittedChanges" |
| 5303 | ], |
| 5304 | "title": "UncommittedChangesReviewTargetType", |
| 5305 | "type": "string" |
| 5306 | } |
| 5307 | }, |
| 5308 | "required": [ |
| 5309 | "type" |
| 5310 | ], |
| 5311 | "title": "UncommittedChangesReviewTarget", |
| 5312 | "type": "object" |
| 5313 | }, |
| 5314 | { |
| 5315 | "description": "Review changes between the current branch and the given base branch.", |
| 5316 | "properties": { |
| 5317 | "branch": { |
| 5318 | "type": "string" |
| 5319 | }, |
| 5320 | "type": { |
| 5321 | "enum": [ |
| 5322 | "baseBranch" |
| 5323 | ], |
| 5324 | "title": "BaseBranchReviewTargetType", |
| 5325 | "type": "string" |
| 5326 | } |
| 5327 | }, |
| 5328 | "required": [ |
| 5329 | "branch", |
| 5330 | "type" |
| 5331 | ], |
| 5332 | "title": "BaseBranchReviewTarget", |
| 5333 | "type": "object" |
| 5334 | }, |
| 5335 | { |
| 5336 | "description": "Review the changes introduced by a specific commit.", |
| 5337 | "properties": { |
| 5338 | "sha": { |
| 5339 | "type": "string" |
| 5340 | }, |
| 5341 | "title": { |
| 5342 | "description": "Optional human-readable label (e.g., commit subject) for UIs.", |
| 5343 | "type": [ |
| 5344 | "string", |
| 5345 | "null" |
| 5346 | ] |
| 5347 | }, |
| 5348 | "type": { |
| 5349 | "enum": [ |
| 5350 | "commit" |
| 5351 | ], |
| 5352 | "title": "CommitReviewTargetType", |
| 5353 | "type": "string" |
| 5354 | } |
| 5355 | }, |
| 5356 | "required": [ |
| 5357 | "sha", |
| 5358 | "type" |
| 5359 | ], |
| 5360 | "title": "CommitReviewTarget", |
| 5361 | "type": "object" |
| 5362 | }, |
| 5363 | { |
| 5364 | "description": "Arbitrary instructions, equivalent to the old free-form prompt.", |
| 5365 | "properties": { |
| 5366 | "instructions": { |
| 5367 | "type": "string" |
| 5368 | }, |
| 5369 | "type": { |
| 5370 | "enum": [ |
| 5371 | "custom" |
| 5372 | ], |
| 5373 | "title": "CustomReviewTargetType", |
| 5374 | "type": "string" |
| 5375 | } |
| 5376 | }, |
| 5377 | "required": [ |
| 5378 | "instructions", |
| 5379 | "type" |
| 5380 | ], |
| 5381 | "title": "CustomReviewTarget", |
| 5382 | "type": "object" |
| 5383 | } |
| 5384 | ] |
| 5385 | }, |
| 5386 | "SandboxMode": { |
| 5387 | "enum": [ |
| 5388 | "read-only", |
| 5389 | "workspace-write", |
| 5390 | "danger-full-access" |
| 5391 | ], |
| 5392 | "type": "string" |
| 5393 | }, |
| 5394 | "SandboxPolicy": { |
| 5395 | "oneOf": [ |
| 5396 | { |
| 5397 | "properties": { |
| 5398 | "type": { |
| 5399 | "enum": [ |
| 5400 | "dangerFullAccess" |
| 5401 | ], |
| 5402 | "title": "DangerFullAccessSandboxPolicyType", |
| 5403 | "type": "string" |
| 5404 | } |
| 5405 | }, |
| 5406 | "required": [ |
| 5407 | "type" |
| 5408 | ], |
| 5409 | "title": "DangerFullAccessSandboxPolicy", |
| 5410 | "type": "object" |
| 5411 | }, |
| 5412 | { |
| 5413 | "properties": { |
| 5414 | "networkAccess": { |
| 5415 | "default": false, |
| 5416 | "type": "boolean" |
| 5417 | }, |
| 5418 | "type": { |
| 5419 | "enum": [ |
| 5420 | "readOnly" |
| 5421 | ], |
| 5422 | "title": "ReadOnlySandboxPolicyType", |
| 5423 | "type": "string" |
| 5424 | } |
| 5425 | }, |
| 5426 | "required": [ |
| 5427 | "type" |
| 5428 | ], |
| 5429 | "title": "ReadOnlySandboxPolicy", |
| 5430 | "type": "object" |
| 5431 | }, |
| 5432 | { |
| 5433 | "properties": { |
| 5434 | "networkAccess": { |
| 5435 | "allOf": [ |
| 5436 | { |
| 5437 | "$ref": "#/definitions/NetworkAccess" |
| 5438 | } |
| 5439 | ], |
| 5440 | "default": "restricted" |
| 5441 | }, |
| 5442 | "type": { |
| 5443 | "enum": [ |
| 5444 | "externalSandbox" |
| 5445 | ], |
| 5446 | "title": "ExternalSandboxSandboxPolicyType", |
| 5447 | "type": "string" |
| 5448 | } |
| 5449 | }, |
| 5450 | "required": [ |
| 5451 | "type" |
| 5452 | ], |
| 5453 | "title": "ExternalSandboxSandboxPolicy", |
| 5454 | "type": "object" |
| 5455 | }, |
| 5456 | { |
| 5457 | "properties": { |
| 5458 | "excludeSlashTmp": { |
| 5459 | "default": false, |
| 5460 | "type": "boolean" |
| 5461 | }, |
| 5462 | "excludeTmpdirEnvVar": { |
| 5463 | "default": false, |
| 5464 | "type": "boolean" |
| 5465 | }, |
| 5466 | "networkAccess": { |
| 5467 | "default": false, |
| 5468 | "type": "boolean" |
| 5469 | }, |
| 5470 | "type": { |
| 5471 | "enum": [ |
| 5472 | "workspaceWrite" |
| 5473 | ], |
| 5474 | "title": "WorkspaceWriteSandboxPolicyType", |
| 5475 | "type": "string" |
| 5476 | }, |
| 5477 | "writableRoots": { |
| 5478 | "default": [], |
| 5479 | "items": { |
| 5480 | "$ref": "#/definitions/AbsolutePathBuf" |
| 5481 | }, |
| 5482 | "type": "array" |
| 5483 | } |
| 5484 | }, |
| 5485 | "required": [ |
| 5486 | "type" |
| 5487 | ], |
| 5488 | "title": "WorkspaceWriteSandboxPolicy", |
| 5489 | "type": "object" |
| 5490 | } |
| 5491 | ] |
| 5492 | }, |
| 5493 | "SandboxWorkspaceWrite": { |
| 5494 | "properties": { |
| 5495 | "exclude_slash_tmp": { |
| 5496 | "default": false, |
| 5497 | "type": "boolean" |
| 5498 | }, |
| 5499 | "exclude_tmpdir_env_var": { |
| 5500 | "default": false, |
| 5501 | "type": "boolean" |
| 5502 | }, |
| 5503 | "network_access": { |
| 5504 | "default": false, |
| 5505 | "type": "boolean" |
| 5506 | }, |
| 5507 | "writable_roots": { |
| 5508 | "default": [], |
| 5509 | "items": { |
| 5510 | "type": "string" |
| 5511 | }, |
| 5512 | "type": "array" |
| 5513 | } |
| 5514 | }, |
| 5515 | "type": "object" |
| 5516 | }, |
| 5517 | "ServerRequestResolvedNotification": { |
| 5518 | "properties": { |
| 5519 | "requestId": { |
| 5520 | "$ref": "#/definitions/RequestId" |
| 5521 | }, |
| 5522 | "threadId": { |
| 5523 | "type": "string" |
| 5524 | } |
| 5525 | }, |
| 5526 | "required": [ |
| 5527 | "requestId", |
| 5528 | "threadId" |
| 5529 | ], |
| 5530 | "title": "ServerRequestResolvedNotification", |
| 5531 | "type": "object" |
| 5532 | }, |
| 5533 | "SessionSource": { |
| 5534 | "oneOf": [ |
| 5535 | { |
| 5536 | "enum": [ |
| 5537 | "cli", |
| 5538 | "vscode", |
| 5539 | "exec", |
| 5540 | "appServer", |
| 5541 | "unknown" |
| 5542 | ], |
| 5543 | "type": "string" |
| 5544 | }, |
| 5545 | { |
| 5546 | "additionalProperties": false, |
| 5547 | "properties": { |
| 5548 | "custom": { |
| 5549 | "type": "string" |
| 5550 | } |
| 5551 | }, |
| 5552 | "required": [ |
| 5553 | "custom" |
| 5554 | ], |
| 5555 | "title": "CustomSessionSource", |
| 5556 | "type": "object" |
| 5557 | }, |
| 5558 | { |
| 5559 | "additionalProperties": false, |
| 5560 | "properties": { |
| 5561 | "subAgent": { |
| 5562 | "$ref": "#/definitions/SubAgentSource" |
| 5563 | } |
| 5564 | }, |
| 5565 | "required": [ |
| 5566 | "subAgent" |
| 5567 | ], |
| 5568 | "title": "SubAgentSessionSource", |
| 5569 | "type": "object" |
| 5570 | } |
| 5571 | ] |
| 5572 | }, |
| 5573 | "Settings": { |
| 5574 | "description": "Settings for a collaboration mode.", |
| 5575 | "properties": { |
| 5576 | "developer_instructions": { |
| 5577 | "type": [ |
| 5578 | "string", |
| 5579 | "null" |
| 5580 | ] |
| 5581 | }, |
| 5582 | "model": { |
| 5583 | "type": "string" |
| 5584 | }, |
| 5585 | "reasoning_effort": { |
| 5586 | "anyOf": [ |
| 5587 | { |
| 5588 | "$ref": "#/definitions/ReasoningEffort" |
| 5589 | }, |
| 5590 | { |
| 5591 | "type": "null" |
| 5592 | } |
| 5593 | ] |
| 5594 | } |
| 5595 | }, |
| 5596 | "required": [ |
| 5597 | "model" |
| 5598 | ], |
| 5599 | "type": "object" |
| 5600 | }, |
| 5601 | "SkillDependencies": { |
| 5602 | "properties": { |
| 5603 | "tools": { |
| 5604 | "items": { |
| 5605 | "$ref": "#/definitions/SkillToolDependency" |
| 5606 | }, |
| 5607 | "type": "array" |
| 5608 | } |
| 5609 | }, |
| 5610 | "required": [ |
| 5611 | "tools" |
| 5612 | ], |
| 5613 | "type": "object" |
| 5614 | }, |
| 5615 | "SkillErrorInfo": { |
| 5616 | "properties": { |
| 5617 | "message": { |
| 5618 | "type": "string" |
| 5619 | }, |
| 5620 | "path": { |
| 5621 | "type": "string" |
| 5622 | } |
| 5623 | }, |
| 5624 | "required": [ |
| 5625 | "message", |
| 5626 | "path" |
| 5627 | ], |
| 5628 | "type": "object" |
| 5629 | }, |
| 5630 | "SkillInterface": { |
| 5631 | "properties": { |
| 5632 | "brandColor": { |
| 5633 | "type": [ |
| 5634 | "string", |
| 5635 | "null" |
| 5636 | ] |
| 5637 | }, |
| 5638 | "defaultPrompt": { |
| 5639 | "type": [ |
| 5640 | "string", |
| 5641 | "null" |
| 5642 | ] |
| 5643 | }, |
| 5644 | "displayName": { |
| 5645 | "type": [ |
| 5646 | "string", |
| 5647 | "null" |
| 5648 | ] |
| 5649 | }, |
| 5650 | "iconLarge": { |
| 5651 | "anyOf": [ |
| 5652 | { |
| 5653 | "$ref": "#/definitions/AbsolutePathBuf" |
| 5654 | }, |
| 5655 | { |
| 5656 | "type": "null" |
| 5657 | } |
| 5658 | ] |
| 5659 | }, |
| 5660 | "iconLargeUrl": { |
| 5661 | "description": "Remote large icon URL from the plugin catalog.", |
| 5662 | "type": [ |
| 5663 | "string", |
| 5664 | "null" |
| 5665 | ] |
| 5666 | }, |
| 5667 | "iconSmall": { |
| 5668 | "anyOf": [ |
| 5669 | { |
| 5670 | "$ref": "#/definitions/AbsolutePathBuf" |
| 5671 | }, |
| 5672 | { |
| 5673 | "type": "null" |
| 5674 | } |
| 5675 | ] |
| 5676 | }, |
| 5677 | "iconSmallUrl": { |
| 5678 | "description": "Remote small icon URL from the plugin catalog.", |
| 5679 | "type": [ |
| 5680 | "string", |
| 5681 | "null" |
| 5682 | ] |
| 5683 | }, |
| 5684 | "shortDescription": { |
| 5685 | "type": [ |
| 5686 | "string", |
| 5687 | "null" |
| 5688 | ] |
| 5689 | } |
| 5690 | }, |
| 5691 | "type": "object" |
| 5692 | }, |
| 5693 | "SkillMetadata": { |
| 5694 | "properties": { |
| 5695 | "dependencies": { |
| 5696 | "anyOf": [ |
| 5697 | { |
| 5698 | "$ref": "#/definitions/SkillDependencies" |
| 5699 | }, |
| 5700 | { |
| 5701 | "type": "null" |
| 5702 | } |
| 5703 | ] |
| 5704 | }, |
| 5705 | "description": { |
| 5706 | "type": "string" |
| 5707 | }, |
| 5708 | "enabled": { |
| 5709 | "type": "boolean" |
| 5710 | }, |
| 5711 | "interface": { |
| 5712 | "anyOf": [ |
| 5713 | { |
| 5714 | "$ref": "#/definitions/SkillInterface" |
| 5715 | }, |
| 5716 | { |
| 5717 | "type": "null" |
| 5718 | } |
| 5719 | ] |
| 5720 | }, |
| 5721 | "name": { |
| 5722 | "type": "string" |
| 5723 | }, |
| 5724 | "path": { |
| 5725 | "$ref": "#/definitions/LegacyAppPathString" |
| 5726 | }, |
| 5727 | "pluginId": { |
| 5728 | "description": "Owning plugin ID, matching `PluginSummary.id`, when known.", |
| 5729 | "type": [ |
| 5730 | "string", |
| 5731 | "null" |
| 5732 | ] |
| 5733 | }, |
| 5734 | "scope": { |
| 5735 | "$ref": "#/definitions/SkillScope" |
| 5736 | }, |
| 5737 | "shortDescription": { |
| 5738 | "description": "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.", |
| 5739 | "type": [ |
| 5740 | "string", |
| 5741 | "null" |
| 5742 | ] |
| 5743 | } |
| 5744 | }, |
| 5745 | "required": [ |
| 5746 | "description", |
| 5747 | "enabled", |
| 5748 | "name", |
| 5749 | "path", |
| 5750 | "scope" |
| 5751 | ], |
| 5752 | "type": "object" |
| 5753 | }, |
| 5754 | "SkillScope": { |
| 5755 | "enum": [ |
| 5756 | "user", |
| 5757 | "repo", |
| 5758 | "system", |
| 5759 | "admin" |
| 5760 | ], |
| 5761 | "type": "string" |
| 5762 | }, |
| 5763 | "SkillToolDependency": { |
| 5764 | "properties": { |
| 5765 | "command": { |
| 5766 | "type": [ |
| 5767 | "string", |
| 5768 | "null" |
| 5769 | ] |
| 5770 | }, |
| 5771 | "description": { |
| 5772 | "type": [ |
| 5773 | "string", |
| 5774 | "null" |
| 5775 | ] |
| 5776 | }, |
| 5777 | "transport": { |
| 5778 | "type": [ |
| 5779 | "string", |
| 5780 | "null" |
| 5781 | ] |
| 5782 | }, |
| 5783 | "type": { |
| 5784 | "type": "string" |
| 5785 | }, |
| 5786 | "url": { |
| 5787 | "type": [ |
| 5788 | "string", |
| 5789 | "null" |
| 5790 | ] |
| 5791 | }, |
| 5792 | "value": { |
| 5793 | "type": "string" |
| 5794 | } |
| 5795 | }, |
| 5796 | "required": [ |
| 5797 | "type", |
| 5798 | "value" |
| 5799 | ], |
| 5800 | "type": "object" |
| 5801 | }, |
| 5802 | "SkillsChangedNotification": { |
| 5803 | "description": "Notification emitted when watched local skill files change.\n\nTreat this as an invalidation signal and re-run `skills/list` with the client's current parameters when refreshed skill metadata is needed.", |
| 5804 | "title": "SkillsChangedNotification", |
| 5805 | "type": "object" |
| 5806 | }, |
| 5807 | "SkillsListEntry": { |
| 5808 | "properties": { |
| 5809 | "cwd": { |
| 5810 | "type": "string" |
| 5811 | }, |
| 5812 | "errors": { |
| 5813 | "items": { |
| 5814 | "$ref": "#/definitions/SkillErrorInfo" |
| 5815 | }, |
| 5816 | "type": "array" |
| 5817 | }, |
| 5818 | "skills": { |
| 5819 | "items": { |
| 5820 | "$ref": "#/definitions/SkillMetadata" |
| 5821 | }, |
| 5822 | "type": "array" |
| 5823 | } |
| 5824 | }, |
| 5825 | "required": [ |
| 5826 | "cwd", |
| 5827 | "errors", |
| 5828 | "skills" |
| 5829 | ], |
| 5830 | "type": "object" |
| 5831 | }, |
| 5832 | "SkillsListParams": { |
| 5833 | "properties": { |
| 5834 | "cwds": { |
| 5835 | "description": "When empty, defaults to the current session working directory.", |
| 5836 | "items": { |
| 5837 | "type": "string" |
| 5838 | }, |
| 5839 | "type": "array" |
| 5840 | }, |
| 5841 | "forceReload": { |
| 5842 | "description": "When true, bypass the skills cache and re-scan skills from disk.", |
| 5843 | "type": "boolean" |
| 5844 | } |
| 5845 | }, |
| 5846 | "title": "SkillsListParams", |
| 5847 | "type": "object" |
| 5848 | }, |
| 5849 | "SkillsListResponse": { |
| 5850 | "properties": { |
| 5851 | "data": { |
| 5852 | "items": { |
| 5853 | "$ref": "#/definitions/SkillsListEntry" |
| 5854 | }, |
| 5855 | "type": "array" |
| 5856 | } |
| 5857 | }, |
| 5858 | "required": [ |
| 5859 | "data" |
| 5860 | ], |
| 5861 | "title": "SkillsListResponse", |
| 5862 | "type": "object" |
| 5863 | }, |
| 5864 | "SortDirection": { |
| 5865 | "enum": [ |
| 5866 | "asc", |
| 5867 | "desc" |
| 5868 | ], |
| 5869 | "type": "string" |
| 5870 | }, |
| 5871 | "SubAgentActivityKind": { |
| 5872 | "enum": [ |
| 5873 | "started", |
| 5874 | "interacted", |
| 5875 | "interrupted", |
| 5876 | "completed" |
| 5877 | ], |
| 5878 | "type": "string" |
| 5879 | }, |
| 5880 | "SubAgentSource": { |
| 5881 | "oneOf": [ |
| 5882 | { |
| 5883 | "enum": [ |
| 5884 | "review", |
| 5885 | "compact", |
| 5886 | "memory_consolidation" |
| 5887 | ], |
| 5888 | "type": "string" |
| 5889 | }, |
| 5890 | { |
| 5891 | "additionalProperties": false, |
| 5892 | "properties": { |
| 5893 | "thread_spawn": { |
| 5894 | "properties": { |
| 5895 | "agent_nickname": { |
| 5896 | "default": null, |
| 5897 | "type": [ |
| 5898 | "string", |
| 5899 | "null" |
| 5900 | ] |
| 5901 | }, |
| 5902 | "agent_path": { |
| 5903 | "anyOf": [ |
| 5904 | { |
| 5905 | "$ref": "#/definitions/AgentPath" |
| 5906 | }, |
| 5907 | { |
| 5908 | "type": "null" |
| 5909 | } |
| 5910 | ], |
| 5911 | "default": null |
| 5912 | }, |
| 5913 | "agent_role": { |
| 5914 | "default": null, |
| 5915 | "type": [ |
| 5916 | "string", |
| 5917 | "null" |
| 5918 | ] |
| 5919 | }, |
| 5920 | "depth": { |
| 5921 | "format": "int32", |
| 5922 | "type": "integer" |
| 5923 | }, |
| 5924 | "parent_thread_id": { |
| 5925 | "$ref": "#/definitions/ThreadId" |
| 5926 | } |
| 5927 | }, |
| 5928 | "required": [ |
| 5929 | "depth", |
| 5930 | "parent_thread_id" |
| 5931 | ], |
| 5932 | "type": "object" |
| 5933 | } |
| 5934 | }, |
| 5935 | "required": [ |
| 5936 | "thread_spawn" |
| 5937 | ], |
| 5938 | "title": "ThreadSpawnSubAgentSource", |
| 5939 | "type": "object" |
| 5940 | }, |
| 5941 | { |
| 5942 | "additionalProperties": false, |
| 5943 | "properties": { |
| 5944 | "other": { |
| 5945 | "type": "string" |
| 5946 | } |
| 5947 | }, |
| 5948 | "required": [ |
| 5949 | "other" |
| 5950 | ], |
| 5951 | "title": "OtherSubAgentSource", |
| 5952 | "type": "object" |
| 5953 | } |
| 5954 | ] |
| 5955 | }, |
| 5956 | "TerminalInteractionNotification": { |
| 5957 | "properties": { |
| 5958 | "itemId": { |
| 5959 | "type": "string" |
| 5960 | }, |
| 5961 | "processId": { |
| 5962 | "type": "string" |
| 5963 | }, |
| 5964 | "stdin": { |
| 5965 | "type": "string" |
| 5966 | }, |
| 5967 | "threadId": { |
| 5968 | "type": "string" |
| 5969 | }, |
| 5970 | "turnId": { |
| 5971 | "type": "string" |
| 5972 | } |
| 5973 | }, |
| 5974 | "required": [ |
| 5975 | "itemId", |
| 5976 | "processId", |
| 5977 | "stdin", |
| 5978 | "threadId", |
| 5979 | "turnId" |
| 5980 | ], |
| 5981 | "title": "TerminalInteractionNotification", |
| 5982 | "type": "object" |
| 5983 | }, |
| 5984 | "TextElement": { |
| 5985 | "properties": { |
| 5986 | "byteRange": { |
| 5987 | "allOf": [ |
| 5988 | { |
| 5989 | "$ref": "#/definitions/ByteRange" |
| 5990 | } |
| 5991 | ], |
| 5992 | "description": "Byte range in the parent `text` buffer that this element occupies." |
| 5993 | }, |
| 5994 | "placeholder": { |
| 5995 | "description": "Optional human-readable placeholder for the element, displayed in the UI.", |
| 5996 | "type": [ |
| 5997 | "string", |
| 5998 | "null" |
| 5999 | ] |
| 6000 | } |
| 6001 | }, |
| 6002 | "required": [ |
| 6003 | "byteRange" |
| 6004 | ], |
| 6005 | "type": "object" |
| 6006 | }, |
| 6007 | "Thread": { |
| 6008 | "properties": { |
| 6009 | "agentNickname": { |
| 6010 | "description": "Optional random unique nickname assigned to an AgentControl-spawned sub-agent.", |
| 6011 | "type": [ |
| 6012 | "string", |
| 6013 | "null" |
| 6014 | ] |
| 6015 | }, |
| 6016 | "agentRole": { |
| 6017 | "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.", |
| 6018 | "type": [ |
| 6019 | "string", |
| 6020 | "null" |
| 6021 | ] |
| 6022 | }, |
| 6023 | "cliVersion": { |
| 6024 | "description": "Version of the CLI that created the thread.", |
| 6025 | "type": "string" |
| 6026 | }, |
| 6027 | "createdAt": { |
| 6028 | "description": "Unix timestamp (in seconds) when the thread was created.", |
| 6029 | "format": "int64", |
| 6030 | "type": "integer" |
| 6031 | }, |
| 6032 | "cwd": { |
| 6033 | "allOf": [ |
| 6034 | { |
| 6035 | "$ref": "#/definitions/AbsolutePathBuf" |
| 6036 | } |
| 6037 | ], |
| 6038 | "description": "Working directory captured for the thread." |
| 6039 | }, |
| 6040 | "ephemeral": { |
| 6041 | "description": "Whether the thread is ephemeral and should not be materialized on disk.", |
| 6042 | "type": "boolean" |
| 6043 | }, |
| 6044 | "forkedFromId": { |
| 6045 | "description": "Source thread id when this thread was created by forking another thread.", |
| 6046 | "type": [ |
| 6047 | "string", |
| 6048 | "null" |
| 6049 | ] |
| 6050 | }, |
| 6051 | "gitInfo": { |
| 6052 | "anyOf": [ |
| 6053 | { |
| 6054 | "$ref": "#/definitions/GitInfo" |
| 6055 | }, |
| 6056 | { |
| 6057 | "type": "null" |
| 6058 | } |
| 6059 | ], |
| 6060 | "description": "Optional Git metadata captured when the thread was created." |
| 6061 | }, |
| 6062 | "historyMode": { |
| 6063 | "allOf": [ |
| 6064 | { |
| 6065 | "$ref": "#/definitions/ThreadHistoryMode" |
| 6066 | } |
| 6067 | ], |
| 6068 | "default": "legacy", |
| 6069 | "description": "Persisted thread history contract selected when this thread was created." |
| 6070 | }, |
| 6071 | "id": { |
| 6072 | "description": "Identifier for this thread. Codex-generated thread IDs are UUIDv7.", |
| 6073 | "type": "string" |
| 6074 | }, |
| 6075 | "model": { |
| 6076 | "description": "Current configured model when loaded, otherwise the latest persisted model. Null when unavailable. This is not per-turn execution telemetry.", |
| 6077 | "type": [ |
| 6078 | "string", |
| 6079 | "null" |
| 6080 | ] |
| 6081 | }, |
| 6082 | "modelProvider": { |
| 6083 | "description": "Model provider used for this thread (for example, 'openai').", |
| 6084 | "type": "string" |
| 6085 | }, |
| 6086 | "name": { |
| 6087 | "description": "Optional user-facing thread title.", |
| 6088 | "type": [ |
| 6089 | "string", |
| 6090 | "null" |
| 6091 | ] |
| 6092 | }, |
| 6093 | "originator": { |
| 6094 | "description": "Originator recorded when the thread was created, independent of its current client or executor. Null when the recorded originator is unavailable.", |
| 6095 | "type": [ |
| 6096 | "string", |
| 6097 | "null" |
| 6098 | ] |
| 6099 | }, |
| 6100 | "parentThreadId": { |
| 6101 | "description": "The ID of the parent thread. This will only be set if this thread is a subagent.", |
| 6102 | "type": [ |
| 6103 | "string", |
| 6104 | "null" |
| 6105 | ] |
| 6106 | }, |
| 6107 | "path": { |
| 6108 | "description": "[UNSTABLE] Path to the thread on disk.", |
| 6109 | "type": [ |
| 6110 | "string", |
| 6111 | "null" |
| 6112 | ] |
| 6113 | }, |
| 6114 | "preview": { |
| 6115 | "description": "Usually the first user message in the thread, if available.", |
| 6116 | "type": "string" |
| 6117 | }, |
| 6118 | "projectId": { |
| 6119 | "description": "Canonical project assignment owned by app-server, if any.", |
| 6120 | "type": [ |
| 6121 | "string", |
| 6122 | "null" |
| 6123 | ] |
| 6124 | }, |
| 6125 | "reasoningEffort": { |
| 6126 | "anyOf": [ |
| 6127 | { |
| 6128 | "$ref": "#/definitions/ReasoningEffort" |
| 6129 | }, |
| 6130 | { |
| 6131 | "type": "null" |
| 6132 | } |
| 6133 | ], |
| 6134 | "description": "Current configured reasoning effort when loaded, otherwise the latest persisted effort. Null when unset or unavailable. This is not per-turn execution telemetry." |
| 6135 | }, |
| 6136 | "recencyAt": { |
| 6137 | "description": "Unix timestamp (in seconds) used for thread recency ordering.", |
| 6138 | "format": "int64", |
| 6139 | "type": [ |
| 6140 | "integer", |
| 6141 | "null" |
| 6142 | ] |
| 6143 | }, |
| 6144 | "section": { |
| 6145 | "anyOf": [ |
| 6146 | { |
| 6147 | "$ref": "#/definitions/ThreadSection" |
| 6148 | }, |
| 6149 | { |
| 6150 | "type": "null" |
| 6151 | } |
| 6152 | ], |
| 6153 | "default": null, |
| 6154 | "description": "The independently persisted section selected for this thread, if any." |
| 6155 | }, |
| 6156 | "sectionEnteredAt": { |
| 6157 | "default": null, |
| 6158 | "description": "Unix timestamp in seconds when the thread entered its current section.", |
| 6159 | "format": "int64", |
| 6160 | "type": [ |
| 6161 | "integer", |
| 6162 | "null" |
| 6163 | ] |
| 6164 | }, |
| 6165 | "sessionId": { |
| 6166 | "description": "Session id shared by threads that belong to the same session tree.", |
| 6167 | "type": "string" |
| 6168 | }, |
| 6169 | "source": { |
| 6170 | "allOf": [ |
| 6171 | { |
| 6172 | "$ref": "#/definitions/SessionSource" |
| 6173 | } |
| 6174 | ], |
| 6175 | "description": "Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.)." |
| 6176 | }, |
| 6177 | "status": { |
| 6178 | "allOf": [ |
| 6179 | { |
| 6180 | "$ref": "#/definitions/ThreadStatus" |
| 6181 | } |
| 6182 | ], |
| 6183 | "description": "Current runtime status for the thread." |
| 6184 | }, |
| 6185 | "threadSource": { |
| 6186 | "anyOf": [ |
| 6187 | { |
| 6188 | "$ref": "#/definitions/ThreadSource" |
| 6189 | }, |
| 6190 | { |
| 6191 | "type": "null" |
| 6192 | } |
| 6193 | ], |
| 6194 | "description": "Optional analytics source classification for this thread." |
| 6195 | }, |
| 6196 | "turns": { |
| 6197 | "description": "Only populated on `thread/resume`, `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.", |
| 6198 | "items": { |
| 6199 | "$ref": "#/definitions/Turn" |
| 6200 | }, |
| 6201 | "type": "array" |
| 6202 | }, |
| 6203 | "updatedAt": { |
| 6204 | "description": "Unix timestamp (in seconds) when the thread was last updated.", |
| 6205 | "format": "int64", |
| 6206 | "type": "integer" |
| 6207 | }, |
| 6208 | "executor": { |
| 6209 | "anyOf": [ |
| 6210 | { |
| 6211 | "$ref": "#/definitions/ThreadExecutor" |
| 6212 | }, |
| 6213 | { |
| 6214 | "type": "null" |
| 6215 | } |
| 6216 | ] |
| 6217 | }, |
| 6218 | "environment": { |
| 6219 | "anyOf": [ |
| 6220 | { |
| 6221 | "$ref": "#/definitions/ThreadPlacement" |
| 6222 | }, |
| 6223 | { |
| 6224 | "type": "null" |
| 6225 | } |
| 6226 | ] |
| 6227 | } |
| 6228 | }, |
| 6229 | "required": [ |
| 6230 | "cliVersion", |
| 6231 | "createdAt", |
| 6232 | "cwd", |
| 6233 | "ephemeral", |
| 6234 | "id", |
| 6235 | "modelProvider", |
| 6236 | "preview", |
| 6237 | "projectId", |
| 6238 | "sessionId", |
| 6239 | "source", |
| 6240 | "status", |
| 6241 | "turns", |
| 6242 | "updatedAt" |
| 6243 | ], |
| 6244 | "type": "object" |
| 6245 | }, |
| 6246 | "ThreadActiveFlag": { |
| 6247 | "enum": [ |
| 6248 | "waitingOnApproval", |
| 6249 | "waitingOnUserInput" |
| 6250 | ], |
| 6251 | "type": "string" |
| 6252 | }, |
| 6253 | "ThreadArchiveParams": { |
| 6254 | "properties": { |
| 6255 | "threadId": { |
| 6256 | "type": "string" |
| 6257 | } |
| 6258 | }, |
| 6259 | "required": [ |
| 6260 | "threadId" |
| 6261 | ], |
| 6262 | "title": "ThreadArchiveParams", |
| 6263 | "type": "object" |
| 6264 | }, |
| 6265 | "ThreadArchiveResponse": { |
| 6266 | "title": "ThreadArchiveResponse", |
| 6267 | "type": "object" |
| 6268 | }, |
| 6269 | "ThreadArchivedNotification": { |
| 6270 | "properties": { |
| 6271 | "threadId": { |
| 6272 | "type": "string" |
| 6273 | } |
| 6274 | }, |
| 6275 | "required": [ |
| 6276 | "threadId" |
| 6277 | ], |
| 6278 | "title": "ThreadArchivedNotification", |
| 6279 | "type": "object" |
| 6280 | }, |
| 6281 | "ThreadClosedNotification": { |
| 6282 | "properties": { |
| 6283 | "threadId": { |
| 6284 | "type": "string" |
| 6285 | } |
| 6286 | }, |
| 6287 | "required": [ |
| 6288 | "threadId" |
| 6289 | ], |
| 6290 | "title": "ThreadClosedNotification", |
| 6291 | "type": "object" |
| 6292 | }, |
| 6293 | "ThreadCompactStartParams": { |
| 6294 | "properties": { |
| 6295 | "threadId": { |
| 6296 | "type": "string" |
| 6297 | } |
| 6298 | }, |
| 6299 | "required": [ |
| 6300 | "threadId" |
| 6301 | ], |
| 6302 | "title": "ThreadCompactStartParams", |
| 6303 | "type": "object" |
| 6304 | }, |
| 6305 | "ThreadCompactStartResponse": { |
| 6306 | "title": "ThreadCompactStartResponse", |
| 6307 | "type": "object" |
| 6308 | }, |
| 6309 | "ThreadDeleteParams": { |
| 6310 | "properties": { |
| 6311 | "threadId": { |
| 6312 | "type": "string" |
| 6313 | } |
| 6314 | }, |
| 6315 | "required": [ |
| 6316 | "threadId" |
| 6317 | ], |
| 6318 | "title": "ThreadDeleteParams", |
| 6319 | "type": "object" |
| 6320 | }, |
| 6321 | "ThreadDeleteResponse": { |
| 6322 | "title": "ThreadDeleteResponse", |
| 6323 | "type": "object" |
| 6324 | }, |
| 6325 | "ThreadDeletedNotification": { |
| 6326 | "properties": { |
| 6327 | "threadId": { |
| 6328 | "type": "string" |
| 6329 | } |
| 6330 | }, |
| 6331 | "required": [ |
| 6332 | "threadId" |
| 6333 | ], |
| 6334 | "title": "ThreadDeletedNotification", |
| 6335 | "type": "object" |
| 6336 | }, |
| 6337 | "ThreadExecutor": { |
| 6338 | "type": "object", |
| 6339 | "properties": { |
| 6340 | "kind": { |
| 6341 | "type": "string" |
| 6342 | }, |
| 6343 | "agentId": { |
| 6344 | "type": "string" |
| 6345 | }, |
| 6346 | "agentName": { |
| 6347 | "type": [ |
| 6348 | "string", |
| 6349 | "null" |
| 6350 | ] |
| 6351 | } |
| 6352 | }, |
| 6353 | "required": [ |
| 6354 | "kind", |
| 6355 | "agentId" |
| 6356 | ] |
| 6357 | }, |
| 6358 | "ThreadForkParams": { |
| 6359 | "description": "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using a non-empty path, the thread_id param will be ignored. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.", |
| 6360 | "properties": { |
| 6361 | "approvalPolicy": { |
| 6362 | "anyOf": [ |
| 6363 | { |
| 6364 | "$ref": "#/definitions/AskForApproval" |
| 6365 | }, |
| 6366 | { |
| 6367 | "type": "null" |
| 6368 | } |
| 6369 | ] |
| 6370 | }, |
| 6371 | "approvalsReviewer": { |
| 6372 | "anyOf": [ |
| 6373 | { |
| 6374 | "$ref": "#/definitions/ApprovalsReviewer" |
| 6375 | }, |
| 6376 | { |
| 6377 | "type": "null" |
| 6378 | } |
| 6379 | ], |
| 6380 | "description": "Override where approval requests are routed for review on this thread and subsequent turns." |
| 6381 | }, |
| 6382 | "baseInstructions": { |
| 6383 | "type": [ |
| 6384 | "string", |
| 6385 | "null" |
| 6386 | ] |
| 6387 | }, |
| 6388 | "config": { |
| 6389 | "additionalProperties": true, |
| 6390 | "type": [ |
| 6391 | "object", |
| 6392 | "null" |
| 6393 | ] |
| 6394 | }, |
| 6395 | "cwd": { |
| 6396 | "type": [ |
| 6397 | "string", |
| 6398 | "null" |
| 6399 | ] |
| 6400 | }, |
| 6401 | "developerInstructions": { |
| 6402 | "type": [ |
| 6403 | "string", |
| 6404 | "null" |
| 6405 | ] |
| 6406 | }, |
| 6407 | "ephemeral": { |
| 6408 | "type": "boolean" |
| 6409 | }, |
| 6410 | "excludeTurns": { |
| 6411 | "description": "When true, return only thread metadata and live fork state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after forking. Full-history hydration is deprecated for paginated threads; use this with `thread/turns/list` and `thread/items/list` instead.", |
| 6412 | "type": "boolean" |
| 6413 | }, |
| 6414 | "lastTurnId": { |
| 6415 | "description": "Optional last turn id to fork through, inclusive.\n\nWhen specified, turns after `last_turn_id` are omitted from the fork. The referenced turn cannot be in progress.", |
| 6416 | "type": [ |
| 6417 | "string", |
| 6418 | "null" |
| 6419 | ] |
| 6420 | }, |
| 6421 | "model": { |
| 6422 | "description": "Configuration overrides for the forked thread, if any.", |
| 6423 | "type": [ |
| 6424 | "string", |
| 6425 | "null" |
| 6426 | ] |
| 6427 | }, |
| 6428 | "modelProvider": { |
| 6429 | "type": [ |
| 6430 | "string", |
| 6431 | "null" |
| 6432 | ] |
| 6433 | }, |
| 6434 | "sandbox": { |
| 6435 | "anyOf": [ |
| 6436 | { |
| 6437 | "$ref": "#/definitions/SandboxMode" |
| 6438 | }, |
| 6439 | { |
| 6440 | "type": "null" |
| 6441 | } |
| 6442 | ] |
| 6443 | }, |
| 6444 | "serviceTier": { |
| 6445 | "type": [ |
| 6446 | "string", |
| 6447 | "null" |
| 6448 | ] |
| 6449 | }, |
| 6450 | "threadId": { |
| 6451 | "type": "string" |
| 6452 | }, |
| 6453 | "threadSource": { |
| 6454 | "anyOf": [ |
| 6455 | { |
| 6456 | "$ref": "#/definitions/ThreadSource" |
| 6457 | }, |
| 6458 | { |
| 6459 | "type": "null" |
| 6460 | } |
| 6461 | ], |
| 6462 | "description": "Optional client-supplied analytics source classification for this forked thread." |
| 6463 | } |
| 6464 | }, |
| 6465 | "required": [ |
| 6466 | "threadId" |
| 6467 | ], |
| 6468 | "title": "ThreadForkParams", |
| 6469 | "type": "object" |
| 6470 | }, |
| 6471 | "ThreadForkResponse": { |
| 6472 | "properties": { |
| 6473 | "approvalPolicy": { |
| 6474 | "$ref": "#/definitions/AskForApproval" |
| 6475 | }, |
| 6476 | "approvalsReviewer": { |
| 6477 | "allOf": [ |
| 6478 | { |
| 6479 | "$ref": "#/definitions/ApprovalsReviewer" |
| 6480 | } |
| 6481 | ], |
| 6482 | "description": "Reviewer currently used for approval requests on this thread." |
| 6483 | }, |
| 6484 | "cwd": { |
| 6485 | "$ref": "#/definitions/AbsolutePathBuf" |
| 6486 | }, |
| 6487 | "disabledPluginIds": { |
| 6488 | "default": [], |
| 6489 | "description": "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.", |
| 6490 | "items": { |
| 6491 | "type": "string" |
| 6492 | }, |
| 6493 | "type": "array" |
| 6494 | }, |
| 6495 | "instructionSources": { |
| 6496 | "default": [], |
| 6497 | "description": "Environment-native paths to instruction source files currently loaded for this thread.", |
| 6498 | "items": { |
| 6499 | "$ref": "#/definitions/LegacyAppPathString" |
| 6500 | }, |
| 6501 | "type": "array" |
| 6502 | }, |
| 6503 | "model": { |
| 6504 | "type": "string" |
| 6505 | }, |
| 6506 | "modelProvider": { |
| 6507 | "type": "string" |
| 6508 | }, |
| 6509 | "reasoningEffort": { |
| 6510 | "anyOf": [ |
| 6511 | { |
| 6512 | "$ref": "#/definitions/ReasoningEffort" |
| 6513 | }, |
| 6514 | { |
| 6515 | "type": "null" |
| 6516 | } |
| 6517 | ] |
| 6518 | }, |
| 6519 | "sandbox": { |
| 6520 | "allOf": [ |
| 6521 | { |
| 6522 | "$ref": "#/definitions/SandboxPolicy" |
| 6523 | } |
| 6524 | ], |
| 6525 | "description": "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance." |
| 6526 | }, |
| 6527 | "serviceTier": { |
| 6528 | "type": [ |
| 6529 | "string", |
| 6530 | "null" |
| 6531 | ] |
| 6532 | }, |
| 6533 | "thread": { |
| 6534 | "$ref": "#/definitions/Thread" |
| 6535 | } |
| 6536 | }, |
| 6537 | "required": [ |
| 6538 | "approvalPolicy", |
| 6539 | "approvalsReviewer", |
| 6540 | "cwd", |
| 6541 | "model", |
| 6542 | "modelProvider", |
| 6543 | "sandbox", |
| 6544 | "thread" |
| 6545 | ], |
| 6546 | "title": "ThreadForkResponse", |
| 6547 | "type": "object" |
| 6548 | }, |
| 6549 | "ThreadGoal": { |
| 6550 | "properties": { |
| 6551 | "createdAt": { |
| 6552 | "format": "int64", |
| 6553 | "type": "integer" |
| 6554 | }, |
| 6555 | "objective": { |
| 6556 | "type": "string" |
| 6557 | }, |
| 6558 | "status": { |
| 6559 | "$ref": "#/definitions/ThreadGoalStatus" |
| 6560 | }, |
| 6561 | "threadId": { |
| 6562 | "type": "string" |
| 6563 | }, |
| 6564 | "timeUsedSeconds": { |
| 6565 | "format": "int64", |
| 6566 | "type": "integer" |
| 6567 | }, |
| 6568 | "tokenBudget": { |
| 6569 | "format": "int64", |
| 6570 | "type": [ |
| 6571 | "integer", |
| 6572 | "null" |
| 6573 | ] |
| 6574 | }, |
| 6575 | "tokensUsed": { |
| 6576 | "format": "int64", |
| 6577 | "type": "integer" |
| 6578 | }, |
| 6579 | "updatedAt": { |
| 6580 | "format": "int64", |
| 6581 | "type": "integer" |
| 6582 | } |
| 6583 | }, |
| 6584 | "required": [ |
| 6585 | "createdAt", |
| 6586 | "objective", |
| 6587 | "status", |
| 6588 | "threadId", |
| 6589 | "timeUsedSeconds", |
| 6590 | "tokensUsed", |
| 6591 | "updatedAt" |
| 6592 | ], |
| 6593 | "type": "object" |
| 6594 | }, |
| 6595 | "ThreadGoalClearParams": { |
| 6596 | "properties": { |
| 6597 | "origin": { |
| 6598 | "anyOf": [ |
| 6599 | { |
| 6600 | "$ref": "#/definitions/ThreadGoalMutationOrigin" |
| 6601 | }, |
| 6602 | { |
| 6603 | "type": "null" |
| 6604 | } |
| 6605 | ], |
| 6606 | "description": "Missing provenance does not supply user authorization." |
| 6607 | }, |
| 6608 | "threadId": { |
| 6609 | "type": "string" |
| 6610 | } |
| 6611 | }, |
| 6612 | "required": [ |
| 6613 | "threadId" |
| 6614 | ], |
| 6615 | "title": "ThreadGoalClearParams", |
| 6616 | "type": "object" |
| 6617 | }, |
| 6618 | "ThreadGoalClearResponse": { |
| 6619 | "properties": { |
| 6620 | "cleared": { |
| 6621 | "type": "boolean" |
| 6622 | } |
| 6623 | }, |
| 6624 | "required": [ |
| 6625 | "cleared" |
| 6626 | ], |
| 6627 | "title": "ThreadGoalClearResponse", |
| 6628 | "type": "object" |
| 6629 | }, |
| 6630 | "ThreadGoalClearedNotification": { |
| 6631 | "properties": { |
| 6632 | "threadId": { |
| 6633 | "type": "string" |
| 6634 | } |
| 6635 | }, |
| 6636 | "required": [ |
| 6637 | "threadId" |
| 6638 | ], |
| 6639 | "title": "ThreadGoalClearedNotification", |
| 6640 | "type": "object" |
| 6641 | }, |
| 6642 | "ThreadGoalGetParams": { |
| 6643 | "properties": { |
| 6644 | "threadId": { |
| 6645 | "type": "string" |
| 6646 | } |
| 6647 | }, |
| 6648 | "required": [ |
| 6649 | "threadId" |
| 6650 | ], |
| 6651 | "title": "ThreadGoalGetParams", |
| 6652 | "type": "object" |
| 6653 | }, |
| 6654 | "ThreadGoalGetResponse": { |
| 6655 | "properties": { |
| 6656 | "goal": { |
| 6657 | "anyOf": [ |
| 6658 | { |
| 6659 | "$ref": "#/definitions/ThreadGoal" |
| 6660 | }, |
| 6661 | { |
| 6662 | "type": "null" |
| 6663 | } |
| 6664 | ] |
| 6665 | } |
| 6666 | }, |
| 6667 | "title": "ThreadGoalGetResponse", |
| 6668 | "type": "object" |
| 6669 | }, |
| 6670 | "ThreadGoalMutationOrigin": { |
| 6671 | "description": "Distinguishes explicit user actions from automatic goal lifecycle mutations.", |
| 6672 | "enum": [ |
| 6673 | "user", |
| 6674 | "automatic" |
| 6675 | ], |
| 6676 | "type": "string" |
| 6677 | }, |
| 6678 | "ThreadGoalSetParams": { |
| 6679 | "properties": { |
| 6680 | "objective": { |
| 6681 | "type": [ |
| 6682 | "string", |
| 6683 | "null" |
| 6684 | ] |
| 6685 | }, |
| 6686 | "origin": { |
| 6687 | "anyOf": [ |
| 6688 | { |
| 6689 | "$ref": "#/definitions/ThreadGoalMutationOrigin" |
| 6690 | }, |
| 6691 | { |
| 6692 | "type": "null" |
| 6693 | } |
| 6694 | ], |
| 6695 | "description": "Missing provenance does not supply user authorization." |
| 6696 | }, |
| 6697 | "status": { |
| 6698 | "anyOf": [ |
| 6699 | { |
| 6700 | "$ref": "#/definitions/ThreadGoalStatus" |
| 6701 | }, |
| 6702 | { |
| 6703 | "type": "null" |
| 6704 | } |
| 6705 | ] |
| 6706 | }, |
| 6707 | "threadId": { |
| 6708 | "type": "string" |
| 6709 | }, |
| 6710 | "tokenBudget": { |
| 6711 | "format": "int64", |
| 6712 | "type": [ |
| 6713 | "integer", |
| 6714 | "null" |
| 6715 | ] |
| 6716 | } |
| 6717 | }, |
| 6718 | "required": [ |
| 6719 | "threadId" |
| 6720 | ], |
| 6721 | "title": "ThreadGoalSetParams", |
| 6722 | "type": "object" |
| 6723 | }, |
| 6724 | "ThreadGoalSetResponse": { |
| 6725 | "properties": { |
| 6726 | "goal": { |
| 6727 | "$ref": "#/definitions/ThreadGoal" |
| 6728 | } |
| 6729 | }, |
| 6730 | "required": [ |
| 6731 | "goal" |
| 6732 | ], |
| 6733 | "title": "ThreadGoalSetResponse", |
| 6734 | "type": "object" |
| 6735 | }, |
| 6736 | "ThreadGoalStatus": { |
| 6737 | "enum": [ |
| 6738 | "active", |
| 6739 | "paused", |
| 6740 | "blocked", |
| 6741 | "usageLimited", |
| 6742 | "budgetLimited", |
| 6743 | "complete" |
| 6744 | ], |
| 6745 | "type": "string" |
| 6746 | }, |
| 6747 | "ThreadGoalUpdatedNotification": { |
| 6748 | "properties": { |
| 6749 | "goal": { |
| 6750 | "$ref": "#/definitions/ThreadGoal" |
| 6751 | }, |
| 6752 | "threadId": { |
| 6753 | "type": "string" |
| 6754 | }, |
| 6755 | "turnId": { |
| 6756 | "type": [ |
| 6757 | "string", |
| 6758 | "null" |
| 6759 | ] |
| 6760 | } |
| 6761 | }, |
| 6762 | "required": [ |
| 6763 | "goal", |
| 6764 | "threadId" |
| 6765 | ], |
| 6766 | "title": "ThreadGoalUpdatedNotification", |
| 6767 | "type": "object" |
| 6768 | }, |
| 6769 | "ThreadHistoryMode": { |
| 6770 | "enum": [ |
| 6771 | "legacy", |
| 6772 | "paginated" |
| 6773 | ], |
| 6774 | "type": "string" |
| 6775 | }, |
| 6776 | "ThreadId": { |
| 6777 | "type": "string" |
| 6778 | }, |
| 6779 | "ThreadItem": { |
| 6780 | "description": "A thread item and its recorded lifecycle times. The payload stays flat on the wire.", |
| 6781 | "oneOf": [ |
| 6782 | { |
| 6783 | "properties": { |
| 6784 | "clientId": { |
| 6785 | "type": [ |
| 6786 | "string", |
| 6787 | "null" |
| 6788 | ] |
| 6789 | }, |
| 6790 | "content": { |
| 6791 | "items": { |
| 6792 | "$ref": "#/definitions/UserInput" |
| 6793 | }, |
| 6794 | "type": "array" |
| 6795 | }, |
| 6796 | "id": { |
| 6797 | "type": "string" |
| 6798 | }, |
| 6799 | "type": { |
| 6800 | "enum": [ |
| 6801 | "userMessage" |
| 6802 | ], |
| 6803 | "title": "UserMessageThreadItemType", |
| 6804 | "type": "string" |
| 6805 | } |
| 6806 | }, |
| 6807 | "required": [ |
| 6808 | "content", |
| 6809 | "id", |
| 6810 | "type" |
| 6811 | ], |
| 6812 | "title": "UserMessageThreadItem", |
| 6813 | "type": "object" |
| 6814 | }, |
| 6815 | { |
| 6816 | "properties": { |
| 6817 | "fragments": { |
| 6818 | "items": { |
| 6819 | "$ref": "#/definitions/HookPromptFragment" |
| 6820 | }, |
| 6821 | "type": "array" |
| 6822 | }, |
| 6823 | "id": { |
| 6824 | "type": "string" |
| 6825 | }, |
| 6826 | "type": { |
| 6827 | "enum": [ |
| 6828 | "hookPrompt" |
| 6829 | ], |
| 6830 | "title": "HookPromptThreadItemType", |
| 6831 | "type": "string" |
| 6832 | } |
| 6833 | }, |
| 6834 | "required": [ |
| 6835 | "fragments", |
| 6836 | "id", |
| 6837 | "type" |
| 6838 | ], |
| 6839 | "title": "HookPromptThreadItem", |
| 6840 | "type": "object" |
| 6841 | }, |
| 6842 | { |
| 6843 | "properties": { |
| 6844 | "delivery": { |
| 6845 | "anyOf": [ |
| 6846 | { |
| 6847 | "$ref": "#/definitions/AgentMessageDelivery" |
| 6848 | }, |
| 6849 | { |
| 6850 | "type": "null" |
| 6851 | } |
| 6852 | ], |
| 6853 | "default": null |
| 6854 | }, |
| 6855 | "id": { |
| 6856 | "type": "string" |
| 6857 | }, |
| 6858 | "memoryCitation": { |
| 6859 | "anyOf": [ |
| 6860 | { |
| 6861 | "$ref": "#/definitions/MemoryCitation" |
| 6862 | }, |
| 6863 | { |
| 6864 | "type": "null" |
| 6865 | } |
| 6866 | ], |
| 6867 | "default": null |
| 6868 | }, |
| 6869 | "phase": { |
| 6870 | "anyOf": [ |
| 6871 | { |
| 6872 | "$ref": "#/definitions/MessagePhase" |
| 6873 | }, |
| 6874 | { |
| 6875 | "type": "null" |
| 6876 | } |
| 6877 | ], |
| 6878 | "default": null |
| 6879 | }, |
| 6880 | "questions": { |
| 6881 | "default": null, |
| 6882 | "items": { |
| 6883 | "$ref": "#/definitions/AsyncUserInputQuestion" |
| 6884 | }, |
| 6885 | "type": [ |
| 6886 | "array", |
| 6887 | "null" |
| 6888 | ] |
| 6889 | }, |
| 6890 | "text": { |
| 6891 | "type": "string" |
| 6892 | }, |
| 6893 | "type": { |
| 6894 | "enum": [ |
| 6895 | "agentMessage" |
| 6896 | ], |
| 6897 | "title": "AgentMessageThreadItemType", |
| 6898 | "type": "string" |
| 6899 | } |
| 6900 | }, |
| 6901 | "required": [ |
| 6902 | "id", |
| 6903 | "text", |
| 6904 | "type" |
| 6905 | ], |
| 6906 | "title": "AgentMessageThreadItem", |
| 6907 | "type": "object" |
| 6908 | }, |
| 6909 | { |
| 6910 | "properties": { |
| 6911 | "id": { |
| 6912 | "type": "string" |
| 6913 | }, |
| 6914 | "name": { |
| 6915 | "type": "string" |
| 6916 | }, |
| 6917 | "namespace": { |
| 6918 | "type": [ |
| 6919 | "string", |
| 6920 | "null" |
| 6921 | ] |
| 6922 | }, |
| 6923 | "output": { |
| 6924 | "$ref": "#/definitions/FunctionCallOutputBody" |
| 6925 | }, |
| 6926 | "type": { |
| 6927 | "enum": [ |
| 6928 | "functionCallOutput" |
| 6929 | ], |
| 6930 | "title": "FunctionCallOutputThreadItemType", |
| 6931 | "type": "string" |
| 6932 | } |
| 6933 | }, |
| 6934 | "required": [ |
| 6935 | "id", |
| 6936 | "name", |
| 6937 | "output", |
| 6938 | "type" |
| 6939 | ], |
| 6940 | "title": "FunctionCallOutputThreadItem", |
| 6941 | "type": "object" |
| 6942 | }, |
| 6943 | { |
| 6944 | "description": "EXPERIMENTAL - proposed plan item content. The completed plan item is authoritative and may not match the concatenation of `PlanDelta` text.", |
| 6945 | "properties": { |
| 6946 | "id": { |
| 6947 | "type": "string" |
| 6948 | }, |
| 6949 | "text": { |
| 6950 | "type": "string" |
| 6951 | }, |
| 6952 | "type": { |
| 6953 | "enum": [ |
| 6954 | "plan" |
| 6955 | ], |
| 6956 | "title": "PlanThreadItemType", |
| 6957 | "type": "string" |
| 6958 | } |
| 6959 | }, |
| 6960 | "required": [ |
| 6961 | "id", |
| 6962 | "text", |
| 6963 | "type" |
| 6964 | ], |
| 6965 | "title": "PlanThreadItem", |
| 6966 | "type": "object" |
| 6967 | }, |
| 6968 | { |
| 6969 | "properties": { |
| 6970 | "content": { |
| 6971 | "default": [], |
| 6972 | "items": { |
| 6973 | "type": "string" |
| 6974 | }, |
| 6975 | "type": "array" |
| 6976 | }, |
| 6977 | "id": { |
| 6978 | "type": "string" |
| 6979 | }, |
| 6980 | "summary": { |
| 6981 | "default": [], |
| 6982 | "items": { |
| 6983 | "type": "string" |
| 6984 | }, |
| 6985 | "type": "array" |
| 6986 | }, |
| 6987 | "type": { |
| 6988 | "enum": [ |
| 6989 | "reasoning" |
| 6990 | ], |
| 6991 | "title": "ReasoningThreadItemType", |
| 6992 | "type": "string" |
| 6993 | } |
| 6994 | }, |
| 6995 | "required": [ |
| 6996 | "id", |
| 6997 | "type" |
| 6998 | ], |
| 6999 | "title": "ReasoningThreadItem", |
| 7000 | "type": "object" |
| 7001 | }, |
| 7002 | { |
| 7003 | "properties": { |
| 7004 | "aggregatedOutput": { |
| 7005 | "description": "The command's output, aggregated from stdout and stderr.", |
| 7006 | "type": [ |
| 7007 | "string", |
| 7008 | "null" |
| 7009 | ] |
| 7010 | }, |
| 7011 | "command": { |
| 7012 | "description": "The command to be executed.", |
| 7013 | "type": "string" |
| 7014 | }, |
| 7015 | "commandActions": { |
| 7016 | "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.", |
| 7017 | "items": { |
| 7018 | "$ref": "#/definitions/CommandAction" |
| 7019 | }, |
| 7020 | "type": "array" |
| 7021 | }, |
| 7022 | "cwd": { |
| 7023 | "allOf": [ |
| 7024 | { |
| 7025 | "$ref": "#/definitions/LegacyAppPathString" |
| 7026 | } |
| 7027 | ], |
| 7028 | "description": "The command's working directory." |
| 7029 | }, |
| 7030 | "durationMs": { |
| 7031 | "description": "The duration of the command execution in milliseconds.", |
| 7032 | "format": "int64", |
| 7033 | "type": [ |
| 7034 | "integer", |
| 7035 | "null" |
| 7036 | ] |
| 7037 | }, |
| 7038 | "exitCode": { |
| 7039 | "description": "The command's exit code.", |
| 7040 | "format": "int32", |
| 7041 | "type": [ |
| 7042 | "integer", |
| 7043 | "null" |
| 7044 | ] |
| 7045 | }, |
| 7046 | "id": { |
| 7047 | "type": "string" |
| 7048 | }, |
| 7049 | "pluginId": { |
| 7050 | "default": null, |
| 7051 | "description": "Trusted first-party plugin id when this command resolves to one plugin script.", |
| 7052 | "type": [ |
| 7053 | "string", |
| 7054 | "null" |
| 7055 | ] |
| 7056 | }, |
| 7057 | "processId": { |
| 7058 | "description": "Identifier for the underlying PTY process (when available).", |
| 7059 | "type": [ |
| 7060 | "string", |
| 7061 | "null" |
| 7062 | ] |
| 7063 | }, |
| 7064 | "scriptPath": { |
| 7065 | "default": null, |
| 7066 | "description": "Safe plugin-relative path when this command resolves to one plugin script.", |
| 7067 | "type": [ |
| 7068 | "string", |
| 7069 | "null" |
| 7070 | ] |
| 7071 | }, |
| 7072 | "source": { |
| 7073 | "allOf": [ |
| 7074 | { |
| 7075 | "$ref": "#/definitions/CommandExecutionSource" |
| 7076 | } |
| 7077 | ], |
| 7078 | "default": "agent" |
| 7079 | }, |
| 7080 | "status": { |
| 7081 | "$ref": "#/definitions/CommandExecutionStatus" |
| 7082 | }, |
| 7083 | "type": { |
| 7084 | "enum": [ |
| 7085 | "commandExecution" |
| 7086 | ], |
| 7087 | "title": "CommandExecutionThreadItemType", |
| 7088 | "type": "string" |
| 7089 | } |
| 7090 | }, |
| 7091 | "required": [ |
| 7092 | "command", |
| 7093 | "commandActions", |
| 7094 | "cwd", |
| 7095 | "id", |
| 7096 | "status", |
| 7097 | "type" |
| 7098 | ], |
| 7099 | "title": "CommandExecutionThreadItem", |
| 7100 | "type": "object" |
| 7101 | }, |
| 7102 | { |
| 7103 | "properties": { |
| 7104 | "changes": { |
| 7105 | "items": { |
| 7106 | "$ref": "#/definitions/FileUpdateChange" |
| 7107 | }, |
| 7108 | "type": "array" |
| 7109 | }, |
| 7110 | "id": { |
| 7111 | "type": "string" |
| 7112 | }, |
| 7113 | "status": { |
| 7114 | "$ref": "#/definitions/PatchApplyStatus" |
| 7115 | }, |
| 7116 | "type": { |
| 7117 | "enum": [ |
| 7118 | "fileChange" |
| 7119 | ], |
| 7120 | "title": "FileChangeThreadItemType", |
| 7121 | "type": "string" |
| 7122 | } |
| 7123 | }, |
| 7124 | "required": [ |
| 7125 | "changes", |
| 7126 | "id", |
| 7127 | "status", |
| 7128 | "type" |
| 7129 | ], |
| 7130 | "title": "FileChangeThreadItem", |
| 7131 | "type": "object" |
| 7132 | }, |
| 7133 | { |
| 7134 | "properties": { |
| 7135 | "appContext": { |
| 7136 | "anyOf": [ |
| 7137 | { |
| 7138 | "$ref": "#/definitions/McpToolCallAppContext" |
| 7139 | }, |
| 7140 | { |
| 7141 | "type": "null" |
| 7142 | } |
| 7143 | ] |
| 7144 | }, |
| 7145 | "arguments": true, |
| 7146 | "durationMs": { |
| 7147 | "description": "The duration of the MCP tool call in milliseconds.", |
| 7148 | "format": "int64", |
| 7149 | "type": [ |
| 7150 | "integer", |
| 7151 | "null" |
| 7152 | ] |
| 7153 | }, |
| 7154 | "error": { |
| 7155 | "anyOf": [ |
| 7156 | { |
| 7157 | "$ref": "#/definitions/McpToolCallError" |
| 7158 | }, |
| 7159 | { |
| 7160 | "type": "null" |
| 7161 | } |
| 7162 | ] |
| 7163 | }, |
| 7164 | "id": { |
| 7165 | "type": "string" |
| 7166 | }, |
| 7167 | "mcpAppResourceUri": { |
| 7168 | "description": "Legacy compatibility field; prefer `mcpAppUi.resourceUri` when available.", |
| 7169 | "type": [ |
| 7170 | "string", |
| 7171 | "null" |
| 7172 | ] |
| 7173 | }, |
| 7174 | "mcpAppUi": { |
| 7175 | "anyOf": [ |
| 7176 | { |
| 7177 | "$ref": "#/definitions/McpAppUi" |
| 7178 | }, |
| 7179 | { |
| 7180 | "type": "null" |
| 7181 | } |
| 7182 | ], |
| 7183 | "description": "Presentation captured from the invoked descriptor; absent in older history." |
| 7184 | }, |
| 7185 | "pluginId": { |
| 7186 | "type": [ |
| 7187 | "string", |
| 7188 | "null" |
| 7189 | ] |
| 7190 | }, |
| 7191 | "readOnlyHint": { |
| 7192 | "type": [ |
| 7193 | "boolean", |
| 7194 | "null" |
| 7195 | ] |
| 7196 | }, |
| 7197 | "result": { |
| 7198 | "anyOf": [ |
| 7199 | { |
| 7200 | "$ref": "#/definitions/McpToolCallResult" |
| 7201 | }, |
| 7202 | { |
| 7203 | "type": "null" |
| 7204 | } |
| 7205 | ] |
| 7206 | }, |
| 7207 | "server": { |
| 7208 | "type": "string" |
| 7209 | }, |
| 7210 | "status": { |
| 7211 | "$ref": "#/definitions/McpToolCallStatus" |
| 7212 | }, |
| 7213 | "tool": { |
| 7214 | "type": "string" |
| 7215 | }, |
| 7216 | "type": { |
| 7217 | "enum": [ |
| 7218 | "mcpToolCall" |
| 7219 | ], |
| 7220 | "title": "McpToolCallThreadItemType", |
| 7221 | "type": "string" |
| 7222 | } |
| 7223 | }, |
| 7224 | "required": [ |
| 7225 | "arguments", |
| 7226 | "id", |
| 7227 | "server", |
| 7228 | "status", |
| 7229 | "tool", |
| 7230 | "type" |
| 7231 | ], |
| 7232 | "title": "McpToolCallThreadItem", |
| 7233 | "type": "object" |
| 7234 | }, |
| 7235 | { |
| 7236 | "properties": { |
| 7237 | "arguments": true, |
| 7238 | "contentItems": { |
| 7239 | "items": { |
| 7240 | "$ref": "#/definitions/DynamicToolCallOutputContentItem" |
| 7241 | }, |
| 7242 | "type": [ |
| 7243 | "array", |
| 7244 | "null" |
| 7245 | ] |
| 7246 | }, |
| 7247 | "durationMs": { |
| 7248 | "description": "The duration of the dynamic tool call in milliseconds.", |
| 7249 | "format": "int64", |
| 7250 | "type": [ |
| 7251 | "integer", |
| 7252 | "null" |
| 7253 | ] |
| 7254 | }, |
| 7255 | "id": { |
| 7256 | "type": "string" |
| 7257 | }, |
| 7258 | "namespace": { |
| 7259 | "type": [ |
| 7260 | "string", |
| 7261 | "null" |
| 7262 | ] |
| 7263 | }, |
| 7264 | "status": { |
| 7265 | "$ref": "#/definitions/DynamicToolCallStatus" |
| 7266 | }, |
| 7267 | "success": { |
| 7268 | "type": [ |
| 7269 | "boolean", |
| 7270 | "null" |
| 7271 | ] |
| 7272 | }, |
| 7273 | "tool": { |
| 7274 | "type": "string" |
| 7275 | }, |
| 7276 | "type": { |
| 7277 | "enum": [ |
| 7278 | "dynamicToolCall" |
| 7279 | ], |
| 7280 | "title": "DynamicToolCallThreadItemType", |
| 7281 | "type": "string" |
| 7282 | } |
| 7283 | }, |
| 7284 | "required": [ |
| 7285 | "arguments", |
| 7286 | "id", |
| 7287 | "status", |
| 7288 | "tool", |
| 7289 | "type" |
| 7290 | ], |
| 7291 | "title": "DynamicToolCallThreadItem", |
| 7292 | "type": "object" |
| 7293 | }, |
| 7294 | { |
| 7295 | "properties": { |
| 7296 | "agentsStates": { |
| 7297 | "additionalProperties": { |
| 7298 | "$ref": "#/definitions/CollabAgentState" |
| 7299 | }, |
| 7300 | "description": "Last known status of the target agents, when available.", |
| 7301 | "type": "object" |
| 7302 | }, |
| 7303 | "id": { |
| 7304 | "description": "Unique identifier for this collab tool call.", |
| 7305 | "type": "string" |
| 7306 | }, |
| 7307 | "model": { |
| 7308 | "description": "Model requested for the spawned agent, when applicable.", |
| 7309 | "type": [ |
| 7310 | "string", |
| 7311 | "null" |
| 7312 | ] |
| 7313 | }, |
| 7314 | "prompt": { |
| 7315 | "description": "Prompt text sent as part of the collab tool call, when available.", |
| 7316 | "type": [ |
| 7317 | "string", |
| 7318 | "null" |
| 7319 | ] |
| 7320 | }, |
| 7321 | "reasoningEffort": { |
| 7322 | "anyOf": [ |
| 7323 | { |
| 7324 | "$ref": "#/definitions/ReasoningEffort" |
| 7325 | }, |
| 7326 | { |
| 7327 | "type": "null" |
| 7328 | } |
| 7329 | ], |
| 7330 | "description": "Reasoning effort requested for the spawned agent, when applicable." |
| 7331 | }, |
| 7332 | "receiverThreadIds": { |
| 7333 | "description": "Thread ID of the receiving agent, when applicable. In case of spawn operation, this corresponds to the newly spawned agent.", |
| 7334 | "items": { |
| 7335 | "type": "string" |
| 7336 | }, |
| 7337 | "type": "array" |
| 7338 | }, |
| 7339 | "senderThreadId": { |
| 7340 | "description": "Thread ID of the agent issuing the collab request.", |
| 7341 | "type": "string" |
| 7342 | }, |
| 7343 | "status": { |
| 7344 | "allOf": [ |
| 7345 | { |
| 7346 | "$ref": "#/definitions/CollabAgentToolCallStatus" |
| 7347 | } |
| 7348 | ], |
| 7349 | "description": "Current status of the collab tool call." |
| 7350 | }, |
| 7351 | "tool": { |
| 7352 | "allOf": [ |
| 7353 | { |
| 7354 | "$ref": "#/definitions/CollabAgentTool" |
| 7355 | } |
| 7356 | ], |
| 7357 | "description": "Name of the collab tool that was invoked." |
| 7358 | }, |
| 7359 | "type": { |
| 7360 | "enum": [ |
| 7361 | "collabAgentToolCall" |
| 7362 | ], |
| 7363 | "title": "CollabAgentToolCallThreadItemType", |
| 7364 | "type": "string" |
| 7365 | } |
| 7366 | }, |
| 7367 | "required": [ |
| 7368 | "agentsStates", |
| 7369 | "id", |
| 7370 | "receiverThreadIds", |
| 7371 | "senderThreadId", |
| 7372 | "status", |
| 7373 | "tool", |
| 7374 | "type" |
| 7375 | ], |
| 7376 | "title": "CollabAgentToolCallThreadItem", |
| 7377 | "type": "object" |
| 7378 | }, |
| 7379 | { |
| 7380 | "properties": { |
| 7381 | "agentPath": { |
| 7382 | "type": "string" |
| 7383 | }, |
| 7384 | "agentThreadId": { |
| 7385 | "type": "string" |
| 7386 | }, |
| 7387 | "id": { |
| 7388 | "type": "string" |
| 7389 | }, |
| 7390 | "kind": { |
| 7391 | "$ref": "#/definitions/SubAgentActivityKind" |
| 7392 | }, |
| 7393 | "model": { |
| 7394 | "description": "Resolved model at sub-agent creation; absent from older records and other activities.", |
| 7395 | "type": [ |
| 7396 | "string", |
| 7397 | "null" |
| 7398 | ] |
| 7399 | }, |
| 7400 | "reasoningEffort": { |
| 7401 | "anyOf": [ |
| 7402 | { |
| 7403 | "$ref": "#/definitions/ReasoningEffort" |
| 7404 | }, |
| 7405 | { |
| 7406 | "type": "null" |
| 7407 | } |
| 7408 | ], |
| 7409 | "description": "Resolved reasoning effort at sub-agent creation, when known." |
| 7410 | }, |
| 7411 | "type": { |
| 7412 | "enum": [ |
| 7413 | "subAgentActivity" |
| 7414 | ], |
| 7415 | "title": "SubAgentActivityThreadItemType", |
| 7416 | "type": "string" |
| 7417 | } |
| 7418 | }, |
| 7419 | "required": [ |
| 7420 | "agentPath", |
| 7421 | "agentThreadId", |
| 7422 | "id", |
| 7423 | "kind", |
| 7424 | "type" |
| 7425 | ], |
| 7426 | "title": "SubAgentActivityThreadItem", |
| 7427 | "type": "object" |
| 7428 | }, |
| 7429 | { |
| 7430 | "properties": { |
| 7431 | "action": { |
| 7432 | "anyOf": [ |
| 7433 | { |
| 7434 | "$ref": "#/definitions/WebSearchAction" |
| 7435 | }, |
| 7436 | { |
| 7437 | "type": "null" |
| 7438 | } |
| 7439 | ] |
| 7440 | }, |
| 7441 | "id": { |
| 7442 | "type": "string" |
| 7443 | }, |
| 7444 | "query": { |
| 7445 | "type": "string" |
| 7446 | }, |
| 7447 | "results": { |
| 7448 | "default": null, |
| 7449 | "description": "Structured search results returned out-of-band by standalone web search.\n\nThese stay as opaque JSON at the extension/app-server boundary so new result fields and result types can pass through without a Codex release.", |
| 7450 | "items": true, |
| 7451 | "type": [ |
| 7452 | "array", |
| 7453 | "null" |
| 7454 | ] |
| 7455 | }, |
| 7456 | "type": { |
| 7457 | "enum": [ |
| 7458 | "webSearch" |
| 7459 | ], |
| 7460 | "title": "WebSearchThreadItemType", |
| 7461 | "type": "string" |
| 7462 | } |
| 7463 | }, |
| 7464 | "required": [ |
| 7465 | "id", |
| 7466 | "query", |
| 7467 | "type" |
| 7468 | ], |
| 7469 | "title": "WebSearchThreadItem", |
| 7470 | "type": "object" |
| 7471 | }, |
| 7472 | { |
| 7473 | "properties": { |
| 7474 | "id": { |
| 7475 | "type": "string" |
| 7476 | }, |
| 7477 | "path": { |
| 7478 | "$ref": "#/definitions/LegacyAppPathString" |
| 7479 | }, |
| 7480 | "type": { |
| 7481 | "enum": [ |
| 7482 | "imageView" |
| 7483 | ], |
| 7484 | "title": "ImageViewThreadItemType", |
| 7485 | "type": "string" |
| 7486 | } |
| 7487 | }, |
| 7488 | "required": [ |
| 7489 | "id", |
| 7490 | "path", |
| 7491 | "type" |
| 7492 | ], |
| 7493 | "title": "ImageViewThreadItem", |
| 7494 | "type": "object" |
| 7495 | }, |
| 7496 | { |
| 7497 | "description": "Display item emitted by the interruptible `clock.sleep` tool.", |
| 7498 | "properties": { |
| 7499 | "durationMs": { |
| 7500 | "format": "uint64", |
| 7501 | "minimum": 0.0, |
| 7502 | "type": "integer" |
| 7503 | }, |
| 7504 | "id": { |
| 7505 | "type": "string" |
| 7506 | }, |
| 7507 | "type": { |
| 7508 | "enum": [ |
| 7509 | "sleep" |
| 7510 | ], |
| 7511 | "title": "SleepThreadItemType", |
| 7512 | "type": "string" |
| 7513 | } |
| 7514 | }, |
| 7515 | "required": [ |
| 7516 | "durationMs", |
| 7517 | "id", |
| 7518 | "type" |
| 7519 | ], |
| 7520 | "title": "SleepThreadItem", |
| 7521 | "type": "object" |
| 7522 | }, |
| 7523 | { |
| 7524 | "anyOf": [ |
| 7525 | { |
| 7526 | "properties": { |
| 7527 | "fileId": { |
| 7528 | "type": "string" |
| 7529 | } |
| 7530 | }, |
| 7531 | "required": [ |
| 7532 | "fileId" |
| 7533 | ], |
| 7534 | "title": "FileIdThreadItem", |
| 7535 | "type": "object" |
| 7536 | }, |
| 7537 | { |
| 7538 | "properties": { |
| 7539 | "result": { |
| 7540 | "type": "string" |
| 7541 | } |
| 7542 | }, |
| 7543 | "required": [ |
| 7544 | "result" |
| 7545 | ], |
| 7546 | "title": "ResultThreadItem", |
| 7547 | "type": "object" |
| 7548 | } |
| 7549 | ], |
| 7550 | "description": "Either inline generated-image data or its durable attachment-store identity.\n\n`File` must remain first so rollouts written during the migration, which contain both an empty `result` and a `fileId`, retain the file reference when deserialized.", |
| 7551 | "properties": { |
| 7552 | "failure": { |
| 7553 | "anyOf": [ |
| 7554 | { |
| 7555 | "$ref": "#/definitions/ImageGenerationFailure" |
| 7556 | }, |
| 7557 | { |
| 7558 | "type": "null" |
| 7559 | } |
| 7560 | ], |
| 7561 | "default": null |
| 7562 | }, |
| 7563 | "generationId": { |
| 7564 | "default": null, |
| 7565 | "description": "Image generation identifier for the generated image, when provided by the image backend.", |
| 7566 | "type": [ |
| 7567 | "string", |
| 7568 | "null" |
| 7569 | ] |
| 7570 | }, |
| 7571 | "id": { |
| 7572 | "type": "string" |
| 7573 | }, |
| 7574 | "inputImages": { |
| 7575 | "description": "Observed local inputs for a completed generation, absent on older items.", |
| 7576 | "items": { |
| 7577 | "$ref": "#/definitions/ImageGenerationInputImage" |
| 7578 | }, |
| 7579 | "type": "array" |
| 7580 | }, |
| 7581 | "revisedPrompt": { |
| 7582 | "type": [ |
| 7583 | "string", |
| 7584 | "null" |
| 7585 | ] |
| 7586 | }, |
| 7587 | "savedPath": { |
| 7588 | "anyOf": [ |
| 7589 | { |
| 7590 | "$ref": "#/definitions/AbsolutePathBuf" |
| 7591 | }, |
| 7592 | { |
| 7593 | "type": "null" |
| 7594 | } |
| 7595 | ] |
| 7596 | }, |
| 7597 | "status": { |
| 7598 | "type": "string" |
| 7599 | }, |
| 7600 | "transparentBackground": { |
| 7601 | "default": null, |
| 7602 | "type": [ |
| 7603 | "boolean", |
| 7604 | "null" |
| 7605 | ] |
| 7606 | }, |
| 7607 | "type": { |
| 7608 | "enum": [ |
| 7609 | "imageGeneration" |
| 7610 | ], |
| 7611 | "title": "ImageGenerationThreadItemType", |
| 7612 | "type": "string" |
| 7613 | } |
| 7614 | }, |
| 7615 | "required": [ |
| 7616 | "id", |
| 7617 | "status", |
| 7618 | "type" |
| 7619 | ], |
| 7620 | "title": "ImageGenerationThreadItem", |
| 7621 | "type": "object" |
| 7622 | }, |
| 7623 | { |
| 7624 | "properties": { |
| 7625 | "id": { |
| 7626 | "type": "string" |
| 7627 | }, |
| 7628 | "review": { |
| 7629 | "type": "string" |
| 7630 | }, |
| 7631 | "type": { |
| 7632 | "enum": [ |
| 7633 | "enteredReviewMode" |
| 7634 | ], |
| 7635 | "title": "EnteredReviewModeThreadItemType", |
| 7636 | "type": "string" |
| 7637 | } |
| 7638 | }, |
| 7639 | "required": [ |
| 7640 | "id", |
| 7641 | "review", |
| 7642 | "type" |
| 7643 | ], |
| 7644 | "title": "EnteredReviewModeThreadItem", |
| 7645 | "type": "object" |
| 7646 | }, |
| 7647 | { |
| 7648 | "properties": { |
| 7649 | "id": { |
| 7650 | "type": "string" |
| 7651 | }, |
| 7652 | "review": { |
| 7653 | "type": "string" |
| 7654 | }, |
| 7655 | "type": { |
| 7656 | "enum": [ |
| 7657 | "exitedReviewMode" |
| 7658 | ], |
| 7659 | "title": "ExitedReviewModeThreadItemType", |
| 7660 | "type": "string" |
| 7661 | } |
| 7662 | }, |
| 7663 | "required": [ |
| 7664 | "id", |
| 7665 | "review", |
| 7666 | "type" |
| 7667 | ], |
| 7668 | "title": "ExitedReviewModeThreadItem", |
| 7669 | "type": "object" |
| 7670 | }, |
| 7671 | { |
| 7672 | "properties": { |
| 7673 | "id": { |
| 7674 | "type": "string" |
| 7675 | }, |
| 7676 | "type": { |
| 7677 | "enum": [ |
| 7678 | "contextCompaction" |
| 7679 | ], |
| 7680 | "title": "ContextCompactionThreadItemType", |
| 7681 | "type": "string" |
| 7682 | } |
| 7683 | }, |
| 7684 | "required": [ |
| 7685 | "id", |
| 7686 | "type" |
| 7687 | ], |
| 7688 | "title": "ContextCompactionThreadItem", |
| 7689 | "type": "object" |
| 7690 | } |
| 7691 | ], |
| 7692 | "properties": { |
| 7693 | "completedAtMs": { |
| 7694 | "default": null, |
| 7695 | "description": "Unix timestamp in milliseconds when the item completed, if recorded.", |
| 7696 | "format": "int64", |
| 7697 | "type": [ |
| 7698 | "integer", |
| 7699 | "null" |
| 7700 | ] |
| 7701 | }, |
| 7702 | "startedAtMs": { |
| 7703 | "default": null, |
| 7704 | "description": "Unix timestamp in milliseconds when the item started, if recorded.", |
| 7705 | "format": "int64", |
| 7706 | "type": [ |
| 7707 | "integer", |
| 7708 | "null" |
| 7709 | ] |
| 7710 | } |
| 7711 | }, |
| 7712 | "type": "object" |
| 7713 | }, |
| 7714 | "ThreadItemEntry": { |
| 7715 | "properties": { |
| 7716 | "completedAtMs": { |
| 7717 | "description": "Unix timestamp (milliseconds) when the item completed, if recorded by the producer.", |
| 7718 | "format": "int64", |
| 7719 | "type": [ |
| 7720 | "integer", |
| 7721 | "null" |
| 7722 | ] |
| 7723 | }, |
| 7724 | "item": { |
| 7725 | "$ref": "#/definitions/ThreadItem" |
| 7726 | }, |
| 7727 | "startedAtMs": { |
| 7728 | "description": "Unix timestamp (milliseconds) when the item started, if recorded by the producer.", |
| 7729 | "format": "int64", |
| 7730 | "type": [ |
| 7731 | "integer", |
| 7732 | "null" |
| 7733 | ] |
| 7734 | }, |
| 7735 | "turnId": { |
| 7736 | "description": "Turn containing this item.", |
| 7737 | "type": "string" |
| 7738 | } |
| 7739 | }, |
| 7740 | "required": [ |
| 7741 | "item", |
| 7742 | "turnId" |
| 7743 | ], |
| 7744 | "type": "object" |
| 7745 | }, |
| 7746 | "ThreadItemsListAnchor": { |
| 7747 | "description": "An exclusive item position within the requested visible turn.", |
| 7748 | "oneOf": [ |
| 7749 | { |
| 7750 | "properties": { |
| 7751 | "itemId": { |
| 7752 | "type": "string" |
| 7753 | }, |
| 7754 | "type": { |
| 7755 | "enum": [ |
| 7756 | "item" |
| 7757 | ], |
| 7758 | "title": "ItemThreadItemsListAnchorType", |
| 7759 | "type": "string" |
| 7760 | } |
| 7761 | }, |
| 7762 | "required": [ |
| 7763 | "itemId", |
| 7764 | "type" |
| 7765 | ], |
| 7766 | "title": "ItemThreadItemsListAnchor", |
| 7767 | "type": "object" |
| 7768 | } |
| 7769 | ] |
| 7770 | }, |
| 7771 | "ThreadItemsListCursor": { |
| 7772 | "anyOf": [ |
| 7773 | { |
| 7774 | "type": "string" |
| 7775 | }, |
| 7776 | { |
| 7777 | "$ref": "#/definitions/ThreadItemsListAnchor" |
| 7778 | } |
| 7779 | ], |
| 7780 | "description": "Starting position for an item-history page." |
| 7781 | }, |
| 7782 | "ThreadItemsListParams": { |
| 7783 | "properties": { |
| 7784 | "cursor": { |
| 7785 | "anyOf": [ |
| 7786 | { |
| 7787 | "$ref": "#/definitions/ThreadItemsListCursor" |
| 7788 | }, |
| 7789 | { |
| 7790 | "type": "null" |
| 7791 | } |
| 7792 | ], |
| 7793 | "description": "Opaque continuation cursor or an exclusive item anchor in the requested visible turn. An item anchor requires a non-empty `turnId`; ascending (the default) returns items after it, and descending returns items before it. Continue with the returned string cursor." |
| 7794 | }, |
| 7795 | "limit": { |
| 7796 | "description": "Optional item page size.", |
| 7797 | "format": "uint32", |
| 7798 | "minimum": 0.0, |
| 7799 | "type": [ |
| 7800 | "integer", |
| 7801 | "null" |
| 7802 | ] |
| 7803 | }, |
| 7804 | "sortDirection": { |
| 7805 | "anyOf": [ |
| 7806 | { |
| 7807 | "$ref": "#/definitions/SortDirection" |
| 7808 | }, |
| 7809 | { |
| 7810 | "type": "null" |
| 7811 | } |
| 7812 | ], |
| 7813 | "description": "Optional item pagination direction; defaults to ascending." |
| 7814 | }, |
| 7815 | "threadId": { |
| 7816 | "type": "string" |
| 7817 | }, |
| 7818 | "turnId": { |
| 7819 | "description": "Optional turn id to filter by. When omitted, returns items across the thread.", |
| 7820 | "type": [ |
| 7821 | "string", |
| 7822 | "null" |
| 7823 | ] |
| 7824 | } |
| 7825 | }, |
| 7826 | "required": [ |
| 7827 | "threadId" |
| 7828 | ], |
| 7829 | "title": "ThreadItemsListParams", |
| 7830 | "type": "object" |
| 7831 | }, |
| 7832 | "ThreadItemsListResponse": { |
| 7833 | "properties": { |
| 7834 | "backwardsCursor": { |
| 7835 | "description": "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one item.", |
| 7836 | "type": [ |
| 7837 | "string", |
| 7838 | "null" |
| 7839 | ] |
| 7840 | }, |
| 7841 | "data": { |
| 7842 | "items": { |
| 7843 | "$ref": "#/definitions/ThreadItemEntry" |
| 7844 | }, |
| 7845 | "type": "array" |
| 7846 | }, |
| 7847 | "nextCursor": { |
| 7848 | "description": "Opaque cursor to pass to the next call to continue after the last item. if None, there are no more items to return.", |
| 7849 | "type": [ |
| 7850 | "string", |
| 7851 | "null" |
| 7852 | ] |
| 7853 | } |
| 7854 | }, |
| 7855 | "required": [ |
| 7856 | "data" |
| 7857 | ], |
| 7858 | "title": "ThreadItemsListResponse", |
| 7859 | "type": "object" |
| 7860 | }, |
| 7861 | "ThreadListCwdFilter": { |
| 7862 | "anyOf": [ |
| 7863 | { |
| 7864 | "type": "string" |
| 7865 | }, |
| 7866 | { |
| 7867 | "items": { |
| 7868 | "type": "string" |
| 7869 | }, |
| 7870 | "type": "array" |
| 7871 | } |
| 7872 | ] |
| 7873 | }, |
| 7874 | "ThreadListParams": { |
| 7875 | "properties": { |
| 7876 | "archived": { |
| 7877 | "description": "Optional archived filter; when set to true, only archived threads are returned. If false or null, only non-archived threads are returned.", |
| 7878 | "type": [ |
| 7879 | "boolean", |
| 7880 | "null" |
| 7881 | ] |
| 7882 | }, |
| 7883 | "cursor": { |
| 7884 | "description": "Opaque pagination cursor returned by a previous call.", |
| 7885 | "type": [ |
| 7886 | "string", |
| 7887 | "null" |
| 7888 | ] |
| 7889 | }, |
| 7890 | "cwd": { |
| 7891 | "anyOf": [ |
| 7892 | { |
| 7893 | "$ref": "#/definitions/ThreadListCwdFilter" |
| 7894 | }, |
| 7895 | { |
| 7896 | "type": "null" |
| 7897 | } |
| 7898 | ], |
| 7899 | "description": "Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned." |
| 7900 | }, |
| 7901 | "excludedThreadIds": { |
| 7902 | "description": "Thread IDs to exclude before applying the result limit. Up to 100 entries; invalid IDs or a larger list are rejected, never truncated. Send the same exclusions on each page. Omitted, null, or empty means no exclusions.", |
| 7903 | "items": { |
| 7904 | "type": "string" |
| 7905 | }, |
| 7906 | "type": [ |
| 7907 | "array", |
| 7908 | "null" |
| 7909 | ] |
| 7910 | }, |
| 7911 | "limit": { |
| 7912 | "description": "Optional page size; defaults to a reasonable server-side value.", |
| 7913 | "format": "uint32", |
| 7914 | "minimum": 0.0, |
| 7915 | "type": [ |
| 7916 | "integer", |
| 7917 | "null" |
| 7918 | ] |
| 7919 | }, |
| 7920 | "modelProviders": { |
| 7921 | "description": "Optional provider filter; when set, only sessions recorded under these providers are returned. When present but empty, includes all providers.", |
| 7922 | "items": { |
| 7923 | "type": "string" |
| 7924 | }, |
| 7925 | "type": [ |
| 7926 | "array", |
| 7927 | "null" |
| 7928 | ] |
| 7929 | }, |
| 7930 | "originators": { |
| 7931 | "description": "Optional originator allowlist, matching any supplied value exactly. Supported by hosted backends only; the local app-server rejects a nonempty list. Omitted or empty lists leave originators unrestricted.", |
| 7932 | "items": { |
| 7933 | "type": "string" |
| 7934 | }, |
| 7935 | "type": [ |
| 7936 | "array", |
| 7937 | "null" |
| 7938 | ] |
| 7939 | }, |
| 7940 | "searchTerm": { |
| 7941 | "description": "Optional substring filter for the extracted thread title.", |
| 7942 | "type": [ |
| 7943 | "string", |
| 7944 | "null" |
| 7945 | ] |
| 7946 | }, |
| 7947 | "sectionId": { |
| 7948 | "description": "Omit to include every section, set to `null` for unsectioned threads, or provide a section ID to return only threads in that section.", |
| 7949 | "type": [ |
| 7950 | "string", |
| 7951 | "null" |
| 7952 | ] |
| 7953 | }, |
| 7954 | "sortDirection": { |
| 7955 | "anyOf": [ |
| 7956 | { |
| 7957 | "$ref": "#/definitions/SortDirection" |
| 7958 | }, |
| 7959 | { |
| 7960 | "type": "null" |
| 7961 | } |
| 7962 | ], |
| 7963 | "description": "Optional sort direction; defaults to descending (newest first)." |
| 7964 | }, |
| 7965 | "sortKey": { |
| 7966 | "anyOf": [ |
| 7967 | { |
| 7968 | "$ref": "#/definitions/ThreadSortKey" |
| 7969 | }, |
| 7970 | { |
| 7971 | "type": "null" |
| 7972 | } |
| 7973 | ], |
| 7974 | "description": "Optional sort key; defaults to created_at." |
| 7975 | }, |
| 7976 | "sourceKinds": { |
| 7977 | "description": "Optional source filter; when set, only sessions from these source kinds are returned. When omitted or empty, defaults to interactive sources.", |
| 7978 | "items": { |
| 7979 | "$ref": "#/definitions/ThreadSourceKind" |
| 7980 | }, |
| 7981 | "type": [ |
| 7982 | "array", |
| 7983 | "null" |
| 7984 | ] |
| 7985 | }, |
| 7986 | "useStateDbOnly": { |
| 7987 | "description": "If true, return from the state DB without scanning JSONL rollouts to repair thread metadata. Omitted or false preserves scan-and-repair behavior.", |
| 7988 | "type": "boolean" |
| 7989 | } |
| 7990 | }, |
| 7991 | "title": "ThreadListParams", |
| 7992 | "type": "object" |
| 7993 | }, |
| 7994 | "ThreadListResponse": { |
| 7995 | "properties": { |
| 7996 | "backwardsCursor": { |
| 7997 | "description": "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one thread. Use it with the opposite `sortDirection`; for timestamp sorts it anchors at the start of the page timestamp so same-second updates are not skipped.", |
| 7998 | "type": [ |
| 7999 | "string", |
| 8000 | "null" |
| 8001 | ] |
| 8002 | }, |
| 8003 | "data": { |
| 8004 | "items": { |
| 8005 | "$ref": "#/definitions/Thread" |
| 8006 | }, |
| 8007 | "type": "array" |
| 8008 | }, |
| 8009 | "nextCursor": { |
| 8010 | "description": "Opaque cursor to pass to the next call to continue after the last item. if None, there are no more items to return.", |
| 8011 | "type": [ |
| 8012 | "string", |
| 8013 | "null" |
| 8014 | ] |
| 8015 | } |
| 8016 | }, |
| 8017 | "required": [ |
| 8018 | "data" |
| 8019 | ], |
| 8020 | "title": "ThreadListResponse", |
| 8021 | "type": "object" |
| 8022 | }, |
| 8023 | "ThreadLoadedListParams": { |
| 8024 | "properties": { |
| 8025 | "cursor": { |
| 8026 | "description": "Opaque pagination cursor returned by a previous call.", |
| 8027 | "type": [ |
| 8028 | "string", |
| 8029 | "null" |
| 8030 | ] |
| 8031 | }, |
| 8032 | "limit": { |
| 8033 | "description": "Optional page size; defaults to no limit.", |
| 8034 | "format": "uint32", |
| 8035 | "minimum": 0.0, |
| 8036 | "type": [ |
| 8037 | "integer", |
| 8038 | "null" |
| 8039 | ] |
| 8040 | } |
| 8041 | }, |
| 8042 | "title": "ThreadLoadedListParams", |
| 8043 | "type": "object" |
| 8044 | }, |
| 8045 | "ThreadLoadedListResponse": { |
| 8046 | "properties": { |
| 8047 | "data": { |
| 8048 | "description": "Thread ids for sessions currently loaded in memory.", |
| 8049 | "items": { |
| 8050 | "type": "string" |
| 8051 | }, |
| 8052 | "type": "array" |
| 8053 | }, |
| 8054 | "nextCursor": { |
| 8055 | "description": "Opaque cursor to pass to the next call to continue after the last item. if None, there are no more items to return.", |
| 8056 | "type": [ |
| 8057 | "string", |
| 8058 | "null" |
| 8059 | ] |
| 8060 | } |
| 8061 | }, |
| 8062 | "required": [ |
| 8063 | "data" |
| 8064 | ], |
| 8065 | "title": "ThreadLoadedListResponse", |
| 8066 | "type": "object" |
| 8067 | }, |
| 8068 | "ThreadNameUpdatedNotification": { |
| 8069 | "properties": { |
| 8070 | "threadId": { |
| 8071 | "type": "string" |
| 8072 | }, |
| 8073 | "threadName": { |
| 8074 | "type": [ |
| 8075 | "string", |
| 8076 | "null" |
| 8077 | ] |
| 8078 | } |
| 8079 | }, |
| 8080 | "required": [ |
| 8081 | "threadId" |
| 8082 | ], |
| 8083 | "title": "ThreadNameUpdatedNotification", |
| 8084 | "type": "object" |
| 8085 | }, |
| 8086 | "ThreadPlacement": { |
| 8087 | "type": "object", |
| 8088 | "properties": { |
| 8089 | "id": { |
| 8090 | "type": "string" |
| 8091 | }, |
| 8092 | "providerKind": { |
| 8093 | "type": "string" |
| 8094 | } |
| 8095 | }, |
| 8096 | "required": [ |
| 8097 | "id", |
| 8098 | "providerKind" |
| 8099 | ] |
| 8100 | }, |
| 8101 | "ThreadReadParams": { |
| 8102 | "properties": { |
| 8103 | "includeTurns": { |
| 8104 | "description": "When true, include turns and their items from rollout history. Full-history hydration is deprecated for paginated threads; prefer a metadata-only read and page with `thread/turns/list` and `thread/items/list`.", |
| 8105 | "type": "boolean" |
| 8106 | }, |
| 8107 | "threadId": { |
| 8108 | "type": "string" |
| 8109 | } |
| 8110 | }, |
| 8111 | "required": [ |
| 8112 | "threadId" |
| 8113 | ], |
| 8114 | "title": "ThreadReadParams", |
| 8115 | "type": "object" |
| 8116 | }, |
| 8117 | "ThreadReadResponse": { |
| 8118 | "properties": { |
| 8119 | "thread": { |
| 8120 | "$ref": "#/definitions/Thread" |
| 8121 | } |
| 8122 | }, |
| 8123 | "required": [ |
| 8124 | "thread" |
| 8125 | ], |
| 8126 | "title": "ThreadReadResponse", |
| 8127 | "type": "object" |
| 8128 | }, |
| 8129 | "ThreadResumeParams": { |
| 8130 | "description": "There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.\n\nFor non-running threads, the precedence is: history > non-empty path > thread_id. If using history or a non-empty path for a non-running thread, the thread_id param will be ignored.\n\nIf thread_id identifies a running thread, app-server rejoins that thread and treats a non-empty path as a consistency check against the active rollout path. Empty string path values are treated as absent.\n\nPrefer using thread_id whenever possible.", |
| 8131 | "properties": { |
| 8132 | "approvalPolicy": { |
| 8133 | "anyOf": [ |
| 8134 | { |
| 8135 | "$ref": "#/definitions/AskForApproval" |
| 8136 | }, |
| 8137 | { |
| 8138 | "type": "null" |
| 8139 | } |
| 8140 | ] |
| 8141 | }, |
| 8142 | "approvalsReviewer": { |
| 8143 | "anyOf": [ |
| 8144 | { |
| 8145 | "$ref": "#/definitions/ApprovalsReviewer" |
| 8146 | }, |
| 8147 | { |
| 8148 | "type": "null" |
| 8149 | } |
| 8150 | ], |
| 8151 | "description": "Override where approval requests are routed for review on this thread and subsequent turns." |
| 8152 | }, |
| 8153 | "baseInstructions": { |
| 8154 | "type": [ |
| 8155 | "string", |
| 8156 | "null" |
| 8157 | ] |
| 8158 | }, |
| 8159 | "config": { |
| 8160 | "additionalProperties": true, |
| 8161 | "type": [ |
| 8162 | "object", |
| 8163 | "null" |
| 8164 | ] |
| 8165 | }, |
| 8166 | "cwd": { |
| 8167 | "type": [ |
| 8168 | "string", |
| 8169 | "null" |
| 8170 | ] |
| 8171 | }, |
| 8172 | "developerInstructions": { |
| 8173 | "type": [ |
| 8174 | "string", |
| 8175 | "null" |
| 8176 | ] |
| 8177 | }, |
| 8178 | "excludeTurns": { |
| 8179 | "description": "When true, return only thread metadata and live-resume state without populating `thread.turns`. This is useful when the client plans to call `thread/turns/list` immediately after resuming. Full-history hydration is deprecated for paginated threads; use this with `thread/turns/list` and `thread/items/list` instead.", |
| 8180 | "type": "boolean" |
| 8181 | }, |
| 8182 | "model": { |
| 8183 | "description": "Configuration overrides for the resumed thread, if any.", |
| 8184 | "type": [ |
| 8185 | "string", |
| 8186 | "null" |
| 8187 | ] |
| 8188 | }, |
| 8189 | "modelProvider": { |
| 8190 | "type": [ |
| 8191 | "string", |
| 8192 | "null" |
| 8193 | ] |
| 8194 | }, |
| 8195 | "personality": { |
| 8196 | "anyOf": [ |
| 8197 | { |
| 8198 | "$ref": "#/definitions/Personality" |
| 8199 | }, |
| 8200 | { |
| 8201 | "type": "null" |
| 8202 | } |
| 8203 | ], |
| 8204 | "description": "@deprecated `friendly` and `pragmatic` no longer select a style. Changing this does not rewrite the thread's existing instructions." |
| 8205 | }, |
| 8206 | "sandbox": { |
| 8207 | "anyOf": [ |
| 8208 | { |
| 8209 | "$ref": "#/definitions/SandboxMode" |
| 8210 | }, |
| 8211 | { |
| 8212 | "type": "null" |
| 8213 | } |
| 8214 | ] |
| 8215 | }, |
| 8216 | "serviceTier": { |
| 8217 | "type": [ |
| 8218 | "string", |
| 8219 | "null" |
| 8220 | ] |
| 8221 | }, |
| 8222 | "threadId": { |
| 8223 | "type": "string" |
| 8224 | } |
| 8225 | }, |
| 8226 | "required": [ |
| 8227 | "threadId" |
| 8228 | ], |
| 8229 | "title": "ThreadResumeParams", |
| 8230 | "type": "object" |
| 8231 | }, |
| 8232 | "ThreadResumeResponse": { |
| 8233 | "properties": { |
| 8234 | "approvalPolicy": { |
| 8235 | "$ref": "#/definitions/AskForApproval" |
| 8236 | }, |
| 8237 | "approvalsReviewer": { |
| 8238 | "allOf": [ |
| 8239 | { |
| 8240 | "$ref": "#/definitions/ApprovalsReviewer" |
| 8241 | } |
| 8242 | ], |
| 8243 | "description": "Reviewer currently used for approval requests on this thread." |
| 8244 | }, |
| 8245 | "collaborationMode": { |
| 8246 | "anyOf": [ |
| 8247 | { |
| 8248 | "$ref": "#/definitions/CollaborationMode" |
| 8249 | }, |
| 8250 | { |
| 8251 | "type": "null" |
| 8252 | } |
| 8253 | ], |
| 8254 | "description": "Effective collaboration mode. Absent when resuming from an older server." |
| 8255 | }, |
| 8256 | "cwd": { |
| 8257 | "$ref": "#/definitions/AbsolutePathBuf" |
| 8258 | }, |
| 8259 | "disabledPluginIds": { |
| 8260 | "default": [], |
| 8261 | "description": "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.", |
| 8262 | "items": { |
| 8263 | "type": "string" |
| 8264 | }, |
| 8265 | "type": "array" |
| 8266 | }, |
| 8267 | "instructionSources": { |
| 8268 | "default": [], |
| 8269 | "description": "Environment-native paths to instruction source files currently loaded for this thread.", |
| 8270 | "items": { |
| 8271 | "$ref": "#/definitions/LegacyAppPathString" |
| 8272 | }, |
| 8273 | "type": "array" |
| 8274 | }, |
| 8275 | "itemsBackwardsCursor": { |
| 8276 | "default": null, |
| 8277 | "description": "Opaque cursor for hydrating paginated items backwards.\n\nPass this as `cursor` to `thread/items/list` with `sortDirection: \"desc\"`. The first page includes the item identified by the cursor.", |
| 8278 | "type": [ |
| 8279 | "string", |
| 8280 | "null" |
| 8281 | ] |
| 8282 | }, |
| 8283 | "model": { |
| 8284 | "type": "string" |
| 8285 | }, |
| 8286 | "modelProvider": { |
| 8287 | "type": "string" |
| 8288 | }, |
| 8289 | "reasoningEffort": { |
| 8290 | "anyOf": [ |
| 8291 | { |
| 8292 | "$ref": "#/definitions/ReasoningEffort" |
| 8293 | }, |
| 8294 | { |
| 8295 | "type": "null" |
| 8296 | } |
| 8297 | ] |
| 8298 | }, |
| 8299 | "sandbox": { |
| 8300 | "allOf": [ |
| 8301 | { |
| 8302 | "$ref": "#/definitions/SandboxPolicy" |
| 8303 | } |
| 8304 | ], |
| 8305 | "description": "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance." |
| 8306 | }, |
| 8307 | "serviceTier": { |
| 8308 | "type": [ |
| 8309 | "string", |
| 8310 | "null" |
| 8311 | ] |
| 8312 | }, |
| 8313 | "thread": { |
| 8314 | "$ref": "#/definitions/Thread" |
| 8315 | }, |
| 8316 | "turnsBackwardsCursor": { |
| 8317 | "default": null, |
| 8318 | "description": "Opaque cursor for hydrating paginated turns backwards.\n\nPass this as `cursor` to `thread/turns/list` with `sortDirection: \"desc\"`. The first page includes the turn identified by the cursor.", |
| 8319 | "type": [ |
| 8320 | "string", |
| 8321 | "null" |
| 8322 | ] |
| 8323 | } |
| 8324 | }, |
| 8325 | "required": [ |
| 8326 | "approvalPolicy", |
| 8327 | "approvalsReviewer", |
| 8328 | "cwd", |
| 8329 | "model", |
| 8330 | "modelProvider", |
| 8331 | "sandbox", |
| 8332 | "thread" |
| 8333 | ], |
| 8334 | "title": "ThreadResumeResponse", |
| 8335 | "type": "object" |
| 8336 | }, |
| 8337 | "ThreadRevertParams": { |
| 8338 | "description": "Replace a paginated thread's durable history with the prefix before one turn.\n\nThis only changes persisted conversation history. It does not revert local file changes.", |
| 8339 | "properties": { |
| 8340 | "beforeTurnId": { |
| 8341 | "description": "Turn excluded from the replacement history, together with every later turn.", |
| 8342 | "type": "string" |
| 8343 | }, |
| 8344 | "threadId": { |
| 8345 | "type": "string" |
| 8346 | } |
| 8347 | }, |
| 8348 | "required": [ |
| 8349 | "beforeTurnId", |
| 8350 | "threadId" |
| 8351 | ], |
| 8352 | "title": "ThreadRevertParams", |
| 8353 | "type": "object" |
| 8354 | }, |
| 8355 | "ThreadRevertResponse": { |
| 8356 | "properties": { |
| 8357 | "itemsBackwardsCursor": { |
| 8358 | "description": "Opaque cursor for hydrating paginated items backwards.\n\nPass this as `cursor` to `thread/items/list` with `sortDirection: \"desc\"`. The first page includes the item identified by the cursor.", |
| 8359 | "type": [ |
| 8360 | "string", |
| 8361 | "null" |
| 8362 | ] |
| 8363 | }, |
| 8364 | "thread": { |
| 8365 | "allOf": [ |
| 8366 | { |
| 8367 | "$ref": "#/definitions/Thread" |
| 8368 | } |
| 8369 | ], |
| 8370 | "description": "Updated loaded thread metadata. `turns` is always empty; hydrate retained history through `thread/turns/list`." |
| 8371 | }, |
| 8372 | "turnsBackwardsCursor": { |
| 8373 | "description": "Opaque cursor for hydrating paginated turns backwards.\n\nPass this as `cursor` to `thread/turns/list` with `sortDirection: \"desc\"`. The first page includes the turn identified by the cursor.", |
| 8374 | "type": [ |
| 8375 | "string", |
| 8376 | "null" |
| 8377 | ] |
| 8378 | } |
| 8379 | }, |
| 8380 | "required": [ |
| 8381 | "thread" |
| 8382 | ], |
| 8383 | "title": "ThreadRevertResponse", |
| 8384 | "type": "object" |
| 8385 | }, |
| 8386 | "ThreadRevertedNotification": { |
| 8387 | "properties": { |
| 8388 | "threadId": { |
| 8389 | "type": "string" |
| 8390 | } |
| 8391 | }, |
| 8392 | "required": [ |
| 8393 | "threadId" |
| 8394 | ], |
| 8395 | "title": "ThreadRevertedNotification", |
| 8396 | "type": "object" |
| 8397 | }, |
| 8398 | "ThreadSection": { |
| 8399 | "description": "An independently persisted, user-visible thread section.", |
| 8400 | "properties": { |
| 8401 | "appearance": { |
| 8402 | "anyOf": [ |
| 8403 | { |
| 8404 | "$ref": "#/definitions/ThreadSectionAppearance" |
| 8405 | }, |
| 8406 | { |
| 8407 | "type": "null" |
| 8408 | } |
| 8409 | ], |
| 8410 | "default": null, |
| 8411 | "description": "Optional appearance synchronized across clients." |
| 8412 | }, |
| 8413 | "id": { |
| 8414 | "description": "Opaque UUIDv7 identity that remains stable when the section is renamed.", |
| 8415 | "type": "string" |
| 8416 | }, |
| 8417 | "name": { |
| 8418 | "description": "The current user-visible section name.", |
| 8419 | "type": "string" |
| 8420 | } |
| 8421 | }, |
| 8422 | "required": [ |
| 8423 | "id", |
| 8424 | "name" |
| 8425 | ], |
| 8426 | "type": "object" |
| 8427 | }, |
| 8428 | "ThreadSectionAppearance": { |
| 8429 | "description": "Extensible visual presentation for a custom thread section.", |
| 8430 | "properties": { |
| 8431 | "color": { |
| 8432 | "type": [ |
| 8433 | "string", |
| 8434 | "null" |
| 8435 | ] |
| 8436 | }, |
| 8437 | "icon": { |
| 8438 | "type": [ |
| 8439 | "string", |
| 8440 | "null" |
| 8441 | ] |
| 8442 | } |
| 8443 | }, |
| 8444 | "type": "object" |
| 8445 | }, |
| 8446 | "ThreadSetNameParams": { |
| 8447 | "properties": { |
| 8448 | "name": { |
| 8449 | "type": "string" |
| 8450 | }, |
| 8451 | "threadId": { |
| 8452 | "type": "string" |
| 8453 | } |
| 8454 | }, |
| 8455 | "required": [ |
| 8456 | "name", |
| 8457 | "threadId" |
| 8458 | ], |
| 8459 | "title": "ThreadSetNameParams", |
| 8460 | "type": "object" |
| 8461 | }, |
| 8462 | "ThreadSetNameResponse": { |
| 8463 | "title": "ThreadSetNameResponse", |
| 8464 | "type": "object" |
| 8465 | }, |
| 8466 | "ThreadShellCommandParams": { |
| 8467 | "properties": { |
| 8468 | "command": { |
| 8469 | "description": "Shell command string evaluated by the thread's configured shell. Unlike `command/exec`, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.", |
| 8470 | "type": "string" |
| 8471 | }, |
| 8472 | "threadId": { |
| 8473 | "type": "string" |
| 8474 | }, |
| 8475 | "timeoutMs": { |
| 8476 | "description": "Maximum execution time in milliseconds. Defaults to one hour when omitted or null. Must be non-negative; zero requests an immediate timeout, not unlimited execution. Does not affect the immediate RPC acknowledgement.", |
| 8477 | "format": "int64", |
| 8478 | "type": [ |
| 8479 | "integer", |
| 8480 | "null" |
| 8481 | ] |
| 8482 | } |
| 8483 | }, |
| 8484 | "required": [ |
| 8485 | "command", |
| 8486 | "threadId" |
| 8487 | ], |
| 8488 | "title": "ThreadShellCommandParams", |
| 8489 | "type": "object" |
| 8490 | }, |
| 8491 | "ThreadShellCommandResponse": { |
| 8492 | "title": "ThreadShellCommandResponse", |
| 8493 | "type": "object" |
| 8494 | }, |
| 8495 | "ThreadSortKey": { |
| 8496 | "enum": [ |
| 8497 | "created_at", |
| 8498 | "updated_at", |
| 8499 | "recency_at", |
| 8500 | "section_position" |
| 8501 | ], |
| 8502 | "type": "string" |
| 8503 | }, |
| 8504 | "ThreadSource": { |
| 8505 | "type": "string" |
| 8506 | }, |
| 8507 | "ThreadSourceKind": { |
| 8508 | "enum": [ |
| 8509 | "cli", |
| 8510 | "vscode", |
| 8511 | "exec", |
| 8512 | "appServer", |
| 8513 | "subAgent", |
| 8514 | "subAgentReview", |
| 8515 | "subAgentCompact", |
| 8516 | "subAgentThreadSpawn", |
| 8517 | "subAgentOther", |
| 8518 | "unknown" |
| 8519 | ], |
| 8520 | "type": "string" |
| 8521 | }, |
| 8522 | "ThreadStartParams": { |
| 8523 | "properties": { |
| 8524 | "approvalPolicy": { |
| 8525 | "anyOf": [ |
| 8526 | { |
| 8527 | "$ref": "#/definitions/AskForApproval" |
| 8528 | }, |
| 8529 | { |
| 8530 | "type": "null" |
| 8531 | } |
| 8532 | ] |
| 8533 | }, |
| 8534 | "approvalsReviewer": { |
| 8535 | "anyOf": [ |
| 8536 | { |
| 8537 | "$ref": "#/definitions/ApprovalsReviewer" |
| 8538 | }, |
| 8539 | { |
| 8540 | "type": "null" |
| 8541 | } |
| 8542 | ], |
| 8543 | "description": "Override where approval requests are routed for review on this thread and subsequent turns." |
| 8544 | }, |
| 8545 | "baseInstructions": { |
| 8546 | "type": [ |
| 8547 | "string", |
| 8548 | "null" |
| 8549 | ] |
| 8550 | }, |
| 8551 | "config": { |
| 8552 | "additionalProperties": true, |
| 8553 | "type": [ |
| 8554 | "object", |
| 8555 | "null" |
| 8556 | ] |
| 8557 | }, |
| 8558 | "cwd": { |
| 8559 | "type": [ |
| 8560 | "string", |
| 8561 | "null" |
| 8562 | ] |
| 8563 | }, |
| 8564 | "developerInstructions": { |
| 8565 | "type": [ |
| 8566 | "string", |
| 8567 | "null" |
| 8568 | ] |
| 8569 | }, |
| 8570 | "ephemeral": { |
| 8571 | "type": [ |
| 8572 | "boolean", |
| 8573 | "null" |
| 8574 | ] |
| 8575 | }, |
| 8576 | "model": { |
| 8577 | "type": [ |
| 8578 | "string", |
| 8579 | "null" |
| 8580 | ] |
| 8581 | }, |
| 8582 | "modelProvider": { |
| 8583 | "type": [ |
| 8584 | "string", |
| 8585 | "null" |
| 8586 | ] |
| 8587 | }, |
| 8588 | "personality": { |
| 8589 | "anyOf": [ |
| 8590 | { |
| 8591 | "$ref": "#/definitions/Personality" |
| 8592 | }, |
| 8593 | { |
| 8594 | "type": "null" |
| 8595 | } |
| 8596 | ], |
| 8597 | "description": "@deprecated `friendly` and `pragmatic` no longer select a style." |
| 8598 | }, |
| 8599 | "sandbox": { |
| 8600 | "anyOf": [ |
| 8601 | { |
| 8602 | "$ref": "#/definitions/SandboxMode" |
| 8603 | }, |
| 8604 | { |
| 8605 | "type": "null" |
| 8606 | } |
| 8607 | ] |
| 8608 | }, |
| 8609 | "serviceName": { |
| 8610 | "type": [ |
| 8611 | "string", |
| 8612 | "null" |
| 8613 | ] |
| 8614 | }, |
| 8615 | "serviceTier": { |
| 8616 | "type": [ |
| 8617 | "string", |
| 8618 | "null" |
| 8619 | ] |
| 8620 | }, |
| 8621 | "sessionStartSource": { |
| 8622 | "anyOf": [ |
| 8623 | { |
| 8624 | "$ref": "#/definitions/ThreadStartSource" |
| 8625 | }, |
| 8626 | { |
| 8627 | "type": "null" |
| 8628 | } |
| 8629 | ] |
| 8630 | }, |
| 8631 | "threadSource": { |
| 8632 | "anyOf": [ |
| 8633 | { |
| 8634 | "$ref": "#/definitions/ThreadSource" |
| 8635 | }, |
| 8636 | { |
| 8637 | "type": "null" |
| 8638 | } |
| 8639 | ], |
| 8640 | "description": "Optional client-supplied analytics source classification for this thread." |
| 8641 | } |
| 8642 | }, |
| 8643 | "title": "ThreadStartParams", |
| 8644 | "type": "object" |
| 8645 | }, |
| 8646 | "ThreadStartResponse": { |
| 8647 | "properties": { |
| 8648 | "approvalPolicy": { |
| 8649 | "$ref": "#/definitions/AskForApproval" |
| 8650 | }, |
| 8651 | "approvalsReviewer": { |
| 8652 | "allOf": [ |
| 8653 | { |
| 8654 | "$ref": "#/definitions/ApprovalsReviewer" |
| 8655 | } |
| 8656 | ], |
| 8657 | "description": "Reviewer currently used for approval requests on this thread." |
| 8658 | }, |
| 8659 | "cwd": { |
| 8660 | "$ref": "#/definitions/AbsolutePathBuf" |
| 8661 | }, |
| 8662 | "disabledPluginIds": { |
| 8663 | "default": [], |
| 8664 | "description": "Saved list of disabled plugin IDs. Does not yet filter plugin capabilities.", |
| 8665 | "items": { |
| 8666 | "type": "string" |
| 8667 | }, |
| 8668 | "type": "array" |
| 8669 | }, |
| 8670 | "instructionSources": { |
| 8671 | "default": [], |
| 8672 | "description": "Environment-native paths to instruction source files currently loaded for this thread.", |
| 8673 | "items": { |
| 8674 | "$ref": "#/definitions/LegacyAppPathString" |
| 8675 | }, |
| 8676 | "type": "array" |
| 8677 | }, |
| 8678 | "model": { |
| 8679 | "type": "string" |
| 8680 | }, |
| 8681 | "modelProvider": { |
| 8682 | "type": "string" |
| 8683 | }, |
| 8684 | "reasoningEffort": { |
| 8685 | "anyOf": [ |
| 8686 | { |
| 8687 | "$ref": "#/definitions/ReasoningEffort" |
| 8688 | }, |
| 8689 | { |
| 8690 | "type": "null" |
| 8691 | } |
| 8692 | ] |
| 8693 | }, |
| 8694 | "sandbox": { |
| 8695 | "allOf": [ |
| 8696 | { |
| 8697 | "$ref": "#/definitions/SandboxPolicy" |
| 8698 | } |
| 8699 | ], |
| 8700 | "description": "Legacy sandbox policy retained for compatibility. Experimental clients should prefer `activePermissionProfile` for profile provenance." |
| 8701 | }, |
| 8702 | "serviceTier": { |
| 8703 | "type": [ |
| 8704 | "string", |
| 8705 | "null" |
| 8706 | ] |
| 8707 | }, |
| 8708 | "thread": { |
| 8709 | "$ref": "#/definitions/Thread" |
| 8710 | } |
| 8711 | }, |
| 8712 | "required": [ |
| 8713 | "approvalPolicy", |
| 8714 | "approvalsReviewer", |
| 8715 | "cwd", |
| 8716 | "model", |
| 8717 | "modelProvider", |
| 8718 | "sandbox", |
| 8719 | "thread" |
| 8720 | ], |
| 8721 | "title": "ThreadStartResponse", |
| 8722 | "type": "object" |
| 8723 | }, |
| 8724 | "ThreadStartSource": { |
| 8725 | "enum": [ |
| 8726 | "startup", |
| 8727 | "clear" |
| 8728 | ], |
| 8729 | "type": "string" |
| 8730 | }, |
| 8731 | "ThreadStartedNotification": { |
| 8732 | "properties": { |
| 8733 | "thread": { |
| 8734 | "$ref": "#/definitions/Thread" |
| 8735 | } |
| 8736 | }, |
| 8737 | "required": [ |
| 8738 | "thread" |
| 8739 | ], |
| 8740 | "title": "ThreadStartedNotification", |
| 8741 | "type": "object" |
| 8742 | }, |
| 8743 | "ThreadStatus": { |
| 8744 | "oneOf": [ |
| 8745 | { |
| 8746 | "properties": { |
| 8747 | "type": { |
| 8748 | "enum": [ |
| 8749 | "notLoaded" |
| 8750 | ], |
| 8751 | "title": "NotLoadedThreadStatusType", |
| 8752 | "type": "string" |
| 8753 | } |
| 8754 | }, |
| 8755 | "required": [ |
| 8756 | "type" |
| 8757 | ], |
| 8758 | "title": "NotLoadedThreadStatus", |
| 8759 | "type": "object" |
| 8760 | }, |
| 8761 | { |
| 8762 | "properties": { |
| 8763 | "type": { |
| 8764 | "enum": [ |
| 8765 | "idle" |
| 8766 | ], |
| 8767 | "title": "IdleThreadStatusType", |
| 8768 | "type": "string" |
| 8769 | } |
| 8770 | }, |
| 8771 | "required": [ |
| 8772 | "type" |
| 8773 | ], |
| 8774 | "title": "IdleThreadStatus", |
| 8775 | "type": "object" |
| 8776 | }, |
| 8777 | { |
| 8778 | "properties": { |
| 8779 | "type": { |
| 8780 | "enum": [ |
| 8781 | "systemError" |
| 8782 | ], |
| 8783 | "title": "SystemErrorThreadStatusType", |
| 8784 | "type": "string" |
| 8785 | } |
| 8786 | }, |
| 8787 | "required": [ |
| 8788 | "type" |
| 8789 | ], |
| 8790 | "title": "SystemErrorThreadStatus", |
| 8791 | "type": "object" |
| 8792 | }, |
| 8793 | { |
| 8794 | "properties": { |
| 8795 | "activeFlags": { |
| 8796 | "items": { |
| 8797 | "$ref": "#/definitions/ThreadActiveFlag" |
| 8798 | }, |
| 8799 | "type": "array" |
| 8800 | }, |
| 8801 | "type": { |
| 8802 | "enum": [ |
| 8803 | "active" |
| 8804 | ], |
| 8805 | "title": "ActiveThreadStatusType", |
| 8806 | "type": "string" |
| 8807 | } |
| 8808 | }, |
| 8809 | "required": [ |
| 8810 | "activeFlags", |
| 8811 | "type" |
| 8812 | ], |
| 8813 | "title": "ActiveThreadStatus", |
| 8814 | "type": "object" |
| 8815 | } |
| 8816 | ] |
| 8817 | }, |
| 8818 | "ThreadStatusChangedNotification": { |
| 8819 | "properties": { |
| 8820 | "status": { |
| 8821 | "$ref": "#/definitions/ThreadStatus" |
| 8822 | }, |
| 8823 | "threadId": { |
| 8824 | "type": "string" |
| 8825 | } |
| 8826 | }, |
| 8827 | "required": [ |
| 8828 | "status", |
| 8829 | "threadId" |
| 8830 | ], |
| 8831 | "title": "ThreadStatusChangedNotification", |
| 8832 | "type": "object" |
| 8833 | }, |
| 8834 | "ThreadTokenUsage": { |
| 8835 | "properties": { |
| 8836 | "last": { |
| 8837 | "$ref": "#/definitions/TokenUsageBreakdown" |
| 8838 | }, |
| 8839 | "modelContextWindow": { |
| 8840 | "format": "int64", |
| 8841 | "type": [ |
| 8842 | "integer", |
| 8843 | "null" |
| 8844 | ] |
| 8845 | }, |
| 8846 | "total": { |
| 8847 | "$ref": "#/definitions/TokenUsageBreakdown" |
| 8848 | } |
| 8849 | }, |
| 8850 | "required": [ |
| 8851 | "last", |
| 8852 | "total" |
| 8853 | ], |
| 8854 | "type": "object" |
| 8855 | }, |
| 8856 | "ThreadTokenUsageUpdatedNotification": { |
| 8857 | "properties": { |
| 8858 | "threadId": { |
| 8859 | "type": "string" |
| 8860 | }, |
| 8861 | "tokenUsage": { |
| 8862 | "$ref": "#/definitions/ThreadTokenUsage" |
| 8863 | }, |
| 8864 | "turnId": { |
| 8865 | "type": "string" |
| 8866 | } |
| 8867 | }, |
| 8868 | "required": [ |
| 8869 | "threadId", |
| 8870 | "tokenUsage", |
| 8871 | "turnId" |
| 8872 | ], |
| 8873 | "title": "ThreadTokenUsageUpdatedNotification", |
| 8874 | "type": "object" |
| 8875 | }, |
| 8876 | "ThreadTurnsListParams": { |
| 8877 | "properties": { |
| 8878 | "cursor": { |
| 8879 | "description": "Opaque cursor to pass to the next call to continue after the last turn.", |
| 8880 | "type": [ |
| 8881 | "string", |
| 8882 | "null" |
| 8883 | ] |
| 8884 | }, |
| 8885 | "itemsView": { |
| 8886 | "anyOf": [ |
| 8887 | { |
| 8888 | "$ref": "#/definitions/TurnItemsView" |
| 8889 | }, |
| 8890 | { |
| 8891 | "type": "null" |
| 8892 | } |
| 8893 | ], |
| 8894 | "description": "How much item detail to include for each returned turn; defaults to summary." |
| 8895 | }, |
| 8896 | "limit": { |
| 8897 | "description": "Optional turn page size.", |
| 8898 | "format": "uint32", |
| 8899 | "minimum": 0.0, |
| 8900 | "type": [ |
| 8901 | "integer", |
| 8902 | "null" |
| 8903 | ] |
| 8904 | }, |
| 8905 | "sortDirection": { |
| 8906 | "anyOf": [ |
| 8907 | { |
| 8908 | "$ref": "#/definitions/SortDirection" |
| 8909 | }, |
| 8910 | { |
| 8911 | "type": "null" |
| 8912 | } |
| 8913 | ], |
| 8914 | "description": "Optional turn pagination direction; defaults to descending." |
| 8915 | }, |
| 8916 | "threadId": { |
| 8917 | "type": "string" |
| 8918 | } |
| 8919 | }, |
| 8920 | "required": [ |
| 8921 | "threadId" |
| 8922 | ], |
| 8923 | "title": "ThreadTurnsListParams", |
| 8924 | "type": "object" |
| 8925 | }, |
| 8926 | "ThreadTurnsListResponse": { |
| 8927 | "properties": { |
| 8928 | "backwardsCursor": { |
| 8929 | "description": "Opaque cursor to pass as `cursor` when reversing `sortDirection`. This is only populated when the page contains at least one turn. Use it with the opposite `sortDirection` to include the anchor turn again and catch updates to that turn.", |
| 8930 | "type": [ |
| 8931 | "string", |
| 8932 | "null" |
| 8933 | ] |
| 8934 | }, |
| 8935 | "data": { |
| 8936 | "items": { |
| 8937 | "$ref": "#/definitions/Turn" |
| 8938 | }, |
| 8939 | "type": "array" |
| 8940 | }, |
| 8941 | "nextCursor": { |
| 8942 | "description": "Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.", |
| 8943 | "type": [ |
| 8944 | "string", |
| 8945 | "null" |
| 8946 | ] |
| 8947 | } |
| 8948 | }, |
| 8949 | "required": [ |
| 8950 | "data" |
| 8951 | ], |
| 8952 | "title": "ThreadTurnsListResponse", |
| 8953 | "type": "object" |
| 8954 | }, |
| 8955 | "ThreadUnarchiveParams": { |
| 8956 | "properties": { |
| 8957 | "threadId": { |
| 8958 | "type": "string" |
| 8959 | } |
| 8960 | }, |
| 8961 | "required": [ |
| 8962 | "threadId" |
| 8963 | ], |
| 8964 | "title": "ThreadUnarchiveParams", |
| 8965 | "type": "object" |
| 8966 | }, |
| 8967 | "ThreadUnarchiveResponse": { |
| 8968 | "properties": { |
| 8969 | "thread": { |
| 8970 | "$ref": "#/definitions/Thread" |
| 8971 | } |
| 8972 | }, |
| 8973 | "required": [ |
| 8974 | "thread" |
| 8975 | ], |
| 8976 | "title": "ThreadUnarchiveResponse", |
| 8977 | "type": "object" |
| 8978 | }, |
| 8979 | "ThreadUnarchivedNotification": { |
| 8980 | "properties": { |
| 8981 | "threadId": { |
| 8982 | "type": "string" |
| 8983 | } |
| 8984 | }, |
| 8985 | "required": [ |
| 8986 | "threadId" |
| 8987 | ], |
| 8988 | "title": "ThreadUnarchivedNotification", |
| 8989 | "type": "object" |
| 8990 | }, |
| 8991 | "ThreadUnsubscribeParams": { |
| 8992 | "properties": { |
| 8993 | "threadId": { |
| 8994 | "type": "string" |
| 8995 | } |
| 8996 | }, |
| 8997 | "required": [ |
| 8998 | "threadId" |
| 8999 | ], |
| 9000 | "title": "ThreadUnsubscribeParams", |
| 9001 | "type": "object" |
| 9002 | }, |
| 9003 | "ThreadUnsubscribeResponse": { |
| 9004 | "properties": { |
| 9005 | "status": { |
| 9006 | "$ref": "#/definitions/ThreadUnsubscribeStatus" |
| 9007 | } |
| 9008 | }, |
| 9009 | "required": [ |
| 9010 | "status" |
| 9011 | ], |
| 9012 | "title": "ThreadUnsubscribeResponse", |
| 9013 | "type": "object" |
| 9014 | }, |
| 9015 | "ThreadUnsubscribeStatus": { |
| 9016 | "enum": [ |
| 9017 | "notLoaded", |
| 9018 | "notSubscribed", |
| 9019 | "unsubscribed" |
| 9020 | ], |
| 9021 | "type": "string" |
| 9022 | }, |
| 9023 | "TokenUsageBreakdown": { |
| 9024 | "properties": { |
| 9025 | "cacheWriteInputTokens": { |
| 9026 | "default": 0, |
| 9027 | "format": "int64", |
| 9028 | "type": "integer" |
| 9029 | }, |
| 9030 | "cachedInputTokens": { |
| 9031 | "format": "int64", |
| 9032 | "type": "integer" |
| 9033 | }, |
| 9034 | "inputTokens": { |
| 9035 | "format": "int64", |
| 9036 | "type": "integer" |
| 9037 | }, |
| 9038 | "outputTokens": { |
| 9039 | "format": "int64", |
| 9040 | "type": "integer" |
| 9041 | }, |
| 9042 | "reasoningOutputTokens": { |
| 9043 | "format": "int64", |
| 9044 | "type": "integer" |
| 9045 | }, |
| 9046 | "totalTokens": { |
| 9047 | "format": "int64", |
| 9048 | "type": "integer" |
| 9049 | } |
| 9050 | }, |
| 9051 | "required": [ |
| 9052 | "cachedInputTokens", |
| 9053 | "inputTokens", |
| 9054 | "outputTokens", |
| 9055 | "reasoningOutputTokens", |
| 9056 | "totalTokens" |
| 9057 | ], |
| 9058 | "type": "object" |
| 9059 | }, |
| 9060 | "Tool": { |
| 9061 | "description": "Definition for a tool the client can call.", |
| 9062 | "properties": { |
| 9063 | "_meta": true, |
| 9064 | "annotations": true, |
| 9065 | "description": { |
| 9066 | "type": [ |
| 9067 | "string", |
| 9068 | "null" |
| 9069 | ] |
| 9070 | }, |
| 9071 | "icons": { |
| 9072 | "items": true, |
| 9073 | "type": [ |
| 9074 | "array", |
| 9075 | "null" |
| 9076 | ] |
| 9077 | }, |
| 9078 | "inputSchema": true, |
| 9079 | "name": { |
| 9080 | "type": "string" |
| 9081 | }, |
| 9082 | "outputSchema": true, |
| 9083 | "title": { |
| 9084 | "type": [ |
| 9085 | "string", |
| 9086 | "null" |
| 9087 | ] |
| 9088 | } |
| 9089 | }, |
| 9090 | "required": [ |
| 9091 | "inputSchema", |
| 9092 | "name" |
| 9093 | ], |
| 9094 | "type": "object" |
| 9095 | }, |
| 9096 | "ToolRequestUserInputAnswer": { |
| 9097 | "description": "EXPERIMENTAL. Captures a user's answer to a request_user_input question.", |
| 9098 | "properties": { |
| 9099 | "answers": { |
| 9100 | "items": { |
| 9101 | "type": "string" |
| 9102 | }, |
| 9103 | "type": "array" |
| 9104 | } |
| 9105 | }, |
| 9106 | "required": [ |
| 9107 | "answers" |
| 9108 | ], |
| 9109 | "type": "object" |
| 9110 | }, |
| 9111 | "ToolRequestUserInputOption": { |
| 9112 | "description": "EXPERIMENTAL. Defines a single selectable option for request_user_input.", |
| 9113 | "properties": { |
| 9114 | "description": { |
| 9115 | "type": "string" |
| 9116 | }, |
| 9117 | "label": { |
| 9118 | "type": "string" |
| 9119 | } |
| 9120 | }, |
| 9121 | "required": [ |
| 9122 | "description", |
| 9123 | "label" |
| 9124 | ], |
| 9125 | "type": "object" |
| 9126 | }, |
| 9127 | "ToolRequestUserInputParams": { |
| 9128 | "description": "EXPERIMENTAL. Params sent with a request_user_input event.", |
| 9129 | "properties": { |
| 9130 | "autoResolutionMs": { |
| 9131 | "default": null, |
| 9132 | "description": "@deprecated Use `isBlocking` to decide whether the request should block.", |
| 9133 | "format": "uint64", |
| 9134 | "minimum": 0.0, |
| 9135 | "type": [ |
| 9136 | "integer", |
| 9137 | "null" |
| 9138 | ] |
| 9139 | }, |
| 9140 | "isBlocking": { |
| 9141 | "type": "boolean" |
| 9142 | }, |
| 9143 | "itemId": { |
| 9144 | "type": "string" |
| 9145 | }, |
| 9146 | "questions": { |
| 9147 | "items": { |
| 9148 | "$ref": "#/definitions/ToolRequestUserInputQuestion" |
| 9149 | }, |
| 9150 | "type": "array" |
| 9151 | }, |
| 9152 | "threadId": { |
| 9153 | "type": "string" |
| 9154 | }, |
| 9155 | "turnId": { |
| 9156 | "type": "string" |
| 9157 | } |
| 9158 | }, |
| 9159 | "required": [ |
| 9160 | "isBlocking", |
| 9161 | "itemId", |
| 9162 | "questions", |
| 9163 | "threadId", |
| 9164 | "turnId" |
| 9165 | ], |
| 9166 | "title": "ToolRequestUserInputParams", |
| 9167 | "type": "object" |
| 9168 | }, |
| 9169 | "ToolRequestUserInputQuestion": { |
| 9170 | "description": "EXPERIMENTAL. Represents one request_user_input question and its required options.", |
| 9171 | "properties": { |
| 9172 | "header": { |
| 9173 | "type": "string" |
| 9174 | }, |
| 9175 | "id": { |
| 9176 | "type": "string" |
| 9177 | }, |
| 9178 | "isOther": { |
| 9179 | "default": false, |
| 9180 | "type": "boolean" |
| 9181 | }, |
| 9182 | "isSecret": { |
| 9183 | "default": false, |
| 9184 | "type": "boolean" |
| 9185 | }, |
| 9186 | "options": { |
| 9187 | "items": { |
| 9188 | "$ref": "#/definitions/ToolRequestUserInputOption" |
| 9189 | }, |
| 9190 | "type": [ |
| 9191 | "array", |
| 9192 | "null" |
| 9193 | ] |
| 9194 | }, |
| 9195 | "question": { |
| 9196 | "type": "string" |
| 9197 | } |
| 9198 | }, |
| 9199 | "required": [ |
| 9200 | "header", |
| 9201 | "id", |
| 9202 | "question" |
| 9203 | ], |
| 9204 | "type": "object" |
| 9205 | }, |
| 9206 | "ToolRequestUserInputResponse": { |
| 9207 | "description": "EXPERIMENTAL. Response payload mapping question ids to answers.", |
| 9208 | "properties": { |
| 9209 | "answers": { |
| 9210 | "additionalProperties": { |
| 9211 | "$ref": "#/definitions/ToolRequestUserInputAnswer" |
| 9212 | }, |
| 9213 | "type": "object" |
| 9214 | } |
| 9215 | }, |
| 9216 | "required": [ |
| 9217 | "answers" |
| 9218 | ], |
| 9219 | "title": "ToolRequestUserInputResponse", |
| 9220 | "type": "object" |
| 9221 | }, |
| 9222 | "ToolsV2": { |
| 9223 | "properties": { |
| 9224 | "web_search": { |
| 9225 | "anyOf": [ |
| 9226 | { |
| 9227 | "$ref": "#/definitions/WebSearchToolConfig" |
| 9228 | }, |
| 9229 | { |
| 9230 | "type": "null" |
| 9231 | } |
| 9232 | ] |
| 9233 | } |
| 9234 | }, |
| 9235 | "type": "object" |
| 9236 | }, |
| 9237 | "Turn": { |
| 9238 | "properties": { |
| 9239 | "completedAt": { |
| 9240 | "description": "Unix timestamp (in seconds) when the turn completed.", |
| 9241 | "format": "int64", |
| 9242 | "type": [ |
| 9243 | "integer", |
| 9244 | "null" |
| 9245 | ] |
| 9246 | }, |
| 9247 | "durationMs": { |
| 9248 | "description": "Duration between turn start and completion in milliseconds, if known.", |
| 9249 | "format": "int64", |
| 9250 | "type": [ |
| 9251 | "integer", |
| 9252 | "null" |
| 9253 | ] |
| 9254 | }, |
| 9255 | "error": { |
| 9256 | "anyOf": [ |
| 9257 | { |
| 9258 | "$ref": "#/definitions/TurnError" |
| 9259 | }, |
| 9260 | { |
| 9261 | "type": "null" |
| 9262 | } |
| 9263 | ], |
| 9264 | "description": "Error associated with a failed or interrupted turn." |
| 9265 | }, |
| 9266 | "id": { |
| 9267 | "description": "Identifier for this turn. Codex-generated turn IDs are UUIDv7.", |
| 9268 | "type": "string" |
| 9269 | }, |
| 9270 | "items": { |
| 9271 | "description": "Thread items currently included in this turn payload.", |
| 9272 | "items": { |
| 9273 | "$ref": "#/definitions/ThreadItem" |
| 9274 | }, |
| 9275 | "type": "array" |
| 9276 | }, |
| 9277 | "itemsView": { |
| 9278 | "allOf": [ |
| 9279 | { |
| 9280 | "$ref": "#/definitions/TurnItemsView" |
| 9281 | } |
| 9282 | ], |
| 9283 | "default": "full", |
| 9284 | "description": "Describes how much of `items` has been loaded for this turn." |
| 9285 | }, |
| 9286 | "rootTurnId": { |
| 9287 | "description": "ID of the first turn in the chain of work that led to this turn. Pass this as `rootTurnId` when starting work on behalf of this turn. May be null in older history or a `review/start` response.", |
| 9288 | "type": [ |
| 9289 | "string", |
| 9290 | "null" |
| 9291 | ] |
| 9292 | }, |
| 9293 | "startedAt": { |
| 9294 | "description": "Unix timestamp (in seconds) when the turn started.", |
| 9295 | "format": "int64", |
| 9296 | "type": [ |
| 9297 | "integer", |
| 9298 | "null" |
| 9299 | ] |
| 9300 | }, |
| 9301 | "status": { |
| 9302 | "$ref": "#/definitions/TurnStatus" |
| 9303 | } |
| 9304 | }, |
| 9305 | "required": [ |
| 9306 | "id", |
| 9307 | "items", |
| 9308 | "status" |
| 9309 | ], |
| 9310 | "type": "object" |
| 9311 | }, |
| 9312 | "TurnCompletedNotification": { |
| 9313 | "properties": { |
| 9314 | "threadId": { |
| 9315 | "type": "string" |
| 9316 | }, |
| 9317 | "turn": { |
| 9318 | "$ref": "#/definitions/Turn" |
| 9319 | } |
| 9320 | }, |
| 9321 | "required": [ |
| 9322 | "threadId", |
| 9323 | "turn" |
| 9324 | ], |
| 9325 | "title": "TurnCompletedNotification", |
| 9326 | "type": "object" |
| 9327 | }, |
| 9328 | "TurnDiffUpdatedNotification": { |
| 9329 | "description": "Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.", |
| 9330 | "properties": { |
| 9331 | "diff": { |
| 9332 | "type": "string" |
| 9333 | }, |
| 9334 | "threadId": { |
| 9335 | "type": "string" |
| 9336 | }, |
| 9337 | "turnId": { |
| 9338 | "type": "string" |
| 9339 | } |
| 9340 | }, |
| 9341 | "required": [ |
| 9342 | "diff", |
| 9343 | "threadId", |
| 9344 | "turnId" |
| 9345 | ], |
| 9346 | "title": "TurnDiffUpdatedNotification", |
| 9347 | "type": "object" |
| 9348 | }, |
| 9349 | "TurnError": { |
| 9350 | "properties": { |
| 9351 | "additionalDetails": { |
| 9352 | "default": null, |
| 9353 | "type": [ |
| 9354 | "string", |
| 9355 | "null" |
| 9356 | ] |
| 9357 | }, |
| 9358 | "codexErrorInfo": { |
| 9359 | "anyOf": [ |
| 9360 | { |
| 9361 | "$ref": "#/definitions/CodexErrorInfo" |
| 9362 | }, |
| 9363 | { |
| 9364 | "type": "null" |
| 9365 | } |
| 9366 | ] |
| 9367 | }, |
| 9368 | "message": { |
| 9369 | "type": "string" |
| 9370 | }, |
| 9371 | "misalignment": { |
| 9372 | "anyOf": [ |
| 9373 | { |
| 9374 | "$ref": "#/definitions/MisalignmentErrorDetails" |
| 9375 | }, |
| 9376 | { |
| 9377 | "type": "null" |
| 9378 | } |
| 9379 | ], |
| 9380 | "default": null, |
| 9381 | "description": "Optional public explanation and continuation instruction for a misalignment block." |
| 9382 | } |
| 9383 | }, |
| 9384 | "required": [ |
| 9385 | "message" |
| 9386 | ], |
| 9387 | "type": "object" |
| 9388 | }, |
| 9389 | "TurnInterruptParams": { |
| 9390 | "properties": { |
| 9391 | "threadId": { |
| 9392 | "type": "string" |
| 9393 | }, |
| 9394 | "turnId": { |
| 9395 | "type": "string" |
| 9396 | } |
| 9397 | }, |
| 9398 | "required": [ |
| 9399 | "threadId", |
| 9400 | "turnId" |
| 9401 | ], |
| 9402 | "title": "TurnInterruptParams", |
| 9403 | "type": "object" |
| 9404 | }, |
| 9405 | "TurnInterruptResponse": { |
| 9406 | "title": "TurnInterruptResponse", |
| 9407 | "type": "object" |
| 9408 | }, |
| 9409 | "TurnItemsView": { |
| 9410 | "oneOf": [ |
| 9411 | { |
| 9412 | "description": "`items` was not loaded for this turn. The field is intentionally empty.", |
| 9413 | "enum": [ |
| 9414 | "notLoaded" |
| 9415 | ], |
| 9416 | "type": "string" |
| 9417 | }, |
| 9418 | { |
| 9419 | "description": "`items` contains only a display summary for this turn.", |
| 9420 | "enum": [ |
| 9421 | "summary" |
| 9422 | ], |
| 9423 | "type": "string" |
| 9424 | }, |
| 9425 | { |
| 9426 | "description": "`items` contains every ThreadItem available from persisted app-server history for this turn.", |
| 9427 | "enum": [ |
| 9428 | "full" |
| 9429 | ], |
| 9430 | "type": "string" |
| 9431 | } |
| 9432 | ] |
| 9433 | }, |
| 9434 | "TurnPlanStep": { |
| 9435 | "properties": { |
| 9436 | "status": { |
| 9437 | "$ref": "#/definitions/TurnPlanStepStatus" |
| 9438 | }, |
| 9439 | "step": { |
| 9440 | "type": "string" |
| 9441 | } |
| 9442 | }, |
| 9443 | "required": [ |
| 9444 | "status", |
| 9445 | "step" |
| 9446 | ], |
| 9447 | "type": "object" |
| 9448 | }, |
| 9449 | "TurnPlanStepStatus": { |
| 9450 | "enum": [ |
| 9451 | "pending", |
| 9452 | "inProgress", |
| 9453 | "completed" |
| 9454 | ], |
| 9455 | "type": "string" |
| 9456 | }, |
| 9457 | "TurnPlanUpdatedNotification": { |
| 9458 | "properties": { |
| 9459 | "explanation": { |
| 9460 | "type": [ |
| 9461 | "string", |
| 9462 | "null" |
| 9463 | ] |
| 9464 | }, |
| 9465 | "plan": { |
| 9466 | "items": { |
| 9467 | "$ref": "#/definitions/TurnPlanStep" |
| 9468 | }, |
| 9469 | "type": "array" |
| 9470 | }, |
| 9471 | "threadId": { |
| 9472 | "type": "string" |
| 9473 | }, |
| 9474 | "turnId": { |
| 9475 | "type": "string" |
| 9476 | } |
| 9477 | }, |
| 9478 | "required": [ |
| 9479 | "plan", |
| 9480 | "threadId", |
| 9481 | "turnId" |
| 9482 | ], |
| 9483 | "title": "TurnPlanUpdatedNotification", |
| 9484 | "type": "object" |
| 9485 | }, |
| 9486 | "TurnStartParams": { |
| 9487 | "properties": { |
| 9488 | "approvalPolicy": { |
| 9489 | "anyOf": [ |
| 9490 | { |
| 9491 | "$ref": "#/definitions/AskForApproval" |
| 9492 | }, |
| 9493 | { |
| 9494 | "type": "null" |
| 9495 | } |
| 9496 | ], |
| 9497 | "description": "Override the approval policy for this turn and subsequent turns." |
| 9498 | }, |
| 9499 | "approvalsReviewer": { |
| 9500 | "anyOf": [ |
| 9501 | { |
| 9502 | "$ref": "#/definitions/ApprovalsReviewer" |
| 9503 | }, |
| 9504 | { |
| 9505 | "type": "null" |
| 9506 | } |
| 9507 | ], |
| 9508 | "description": "Override where approval requests are routed for review on this turn and subsequent turns." |
| 9509 | }, |
| 9510 | "clientUserMessageId": { |
| 9511 | "type": [ |
| 9512 | "string", |
| 9513 | "null" |
| 9514 | ] |
| 9515 | }, |
| 9516 | "cwd": { |
| 9517 | "description": "Override the working directory for this turn and subsequent turns.", |
| 9518 | "type": [ |
| 9519 | "string", |
| 9520 | "null" |
| 9521 | ] |
| 9522 | }, |
| 9523 | "disabledPluginIds": { |
| 9524 | "description": "Replace this thread's disabled plugin IDs. Omitted/null preserves the list; [] clears it.", |
| 9525 | "items": { |
| 9526 | "type": "string" |
| 9527 | }, |
| 9528 | "type": [ |
| 9529 | "array", |
| 9530 | "null" |
| 9531 | ] |
| 9532 | }, |
| 9533 | "effort": { |
| 9534 | "anyOf": [ |
| 9535 | { |
| 9536 | "$ref": "#/definitions/ReasoningEffort" |
| 9537 | }, |
| 9538 | { |
| 9539 | "type": "null" |
| 9540 | } |
| 9541 | ], |
| 9542 | "description": "Override the reasoning effort for this turn and subsequent turns." |
| 9543 | }, |
| 9544 | "input": { |
| 9545 | "items": { |
| 9546 | "$ref": "#/definitions/UserInput" |
| 9547 | }, |
| 9548 | "type": "array" |
| 9549 | }, |
| 9550 | "model": { |
| 9551 | "description": "Override the model for this turn and subsequent turns.", |
| 9552 | "type": [ |
| 9553 | "string", |
| 9554 | "null" |
| 9555 | ] |
| 9556 | }, |
| 9557 | "outputSchema": { |
| 9558 | "description": "Optional JSON Schema used to constrain the final assistant message for this turn." |
| 9559 | }, |
| 9560 | "parentTurnId": { |
| 9561 | "description": "ID of the turn that caused this new turn to start.\n\nSet this when starting work on behalf of another turn, such as delegated work in a different thread. Leave unset for work started directly by the user. Ignored when this request adds input to an active turn.", |
| 9562 | "type": [ |
| 9563 | "string", |
| 9564 | "null" |
| 9565 | ] |
| 9566 | }, |
| 9567 | "personality": { |
| 9568 | "anyOf": [ |
| 9569 | { |
| 9570 | "$ref": "#/definitions/Personality" |
| 9571 | }, |
| 9572 | { |
| 9573 | "type": "null" |
| 9574 | } |
| 9575 | ], |
| 9576 | "description": "@deprecated `friendly` and `pragmatic` no longer select a style. Changing this does not rewrite the thread's existing instructions." |
| 9577 | }, |
| 9578 | "rootTurnId": { |
| 9579 | "description": "ID of the first turn in the chain of work that led to this new turn.\n\nWhen setting `parentTurnId`, set this to the parent turn's `rootTurnId` when known. This keeps descendant work attributed to the original turn. If omitted, the new turn becomes its own root. Ignored when this request adds input to an active turn.", |
| 9580 | "type": [ |
| 9581 | "string", |
| 9582 | "null" |
| 9583 | ] |
| 9584 | }, |
| 9585 | "sandboxPolicy": { |
| 9586 | "anyOf": [ |
| 9587 | { |
| 9588 | "$ref": "#/definitions/SandboxPolicy" |
| 9589 | }, |
| 9590 | { |
| 9591 | "type": "null" |
| 9592 | } |
| 9593 | ], |
| 9594 | "description": "Override the sandbox policy for this turn and subsequent turns." |
| 9595 | }, |
| 9596 | "serviceTier": { |
| 9597 | "description": "Override the service tier for this turn and subsequent turns.", |
| 9598 | "type": [ |
| 9599 | "string", |
| 9600 | "null" |
| 9601 | ] |
| 9602 | }, |
| 9603 | "serviceTierForTurn": { |
| 9604 | "description": "Override the service tier only when this request starts a new turn. Use \"default\" for standard speed. Omitted or null inherits the thread's tier. Does not change the thread's tier or a turn being steered.", |
| 9605 | "type": [ |
| 9606 | "string", |
| 9607 | "null" |
| 9608 | ] |
| 9609 | }, |
| 9610 | "summary": { |
| 9611 | "anyOf": [ |
| 9612 | { |
| 9613 | "$ref": "#/definitions/ReasoningSummary" |
| 9614 | }, |
| 9615 | { |
| 9616 | "type": "null" |
| 9617 | } |
| 9618 | ], |
| 9619 | "description": "Override the reasoning summary for this turn and subsequent turns." |
| 9620 | }, |
| 9621 | "threadId": { |
| 9622 | "type": "string" |
| 9623 | }, |
| 9624 | "toolOutput": { |
| 9625 | "anyOf": [ |
| 9626 | { |
| 9627 | "$ref": "#/definitions/TurnToolOutput" |
| 9628 | }, |
| 9629 | { |
| 9630 | "type": "null" |
| 9631 | } |
| 9632 | ] |
| 9633 | }, |
| 9634 | "turnTrigger": { |
| 9635 | "description": "Optional source classification for the caller that starts this turn. Ignored when this request steers an already-active turn.", |
| 9636 | "type": [ |
| 9637 | "string", |
| 9638 | "null" |
| 9639 | ] |
| 9640 | } |
| 9641 | }, |
| 9642 | "required": [ |
| 9643 | "input", |
| 9644 | "threadId" |
| 9645 | ], |
| 9646 | "title": "TurnStartParams", |
| 9647 | "type": "object" |
| 9648 | }, |
| 9649 | "TurnStartResponse": { |
| 9650 | "properties": { |
| 9651 | "turn": { |
| 9652 | "$ref": "#/definitions/Turn" |
| 9653 | } |
| 9654 | }, |
| 9655 | "required": [ |
| 9656 | "turn" |
| 9657 | ], |
| 9658 | "title": "TurnStartResponse", |
| 9659 | "type": "object" |
| 9660 | }, |
| 9661 | "TurnStartedNotification": { |
| 9662 | "properties": { |
| 9663 | "threadId": { |
| 9664 | "type": "string" |
| 9665 | }, |
| 9666 | "turn": { |
| 9667 | "$ref": "#/definitions/Turn" |
| 9668 | } |
| 9669 | }, |
| 9670 | "required": [ |
| 9671 | "threadId", |
| 9672 | "turn" |
| 9673 | ], |
| 9674 | "title": "TurnStartedNotification", |
| 9675 | "type": "object" |
| 9676 | }, |
| 9677 | "TurnStatus": { |
| 9678 | "enum": [ |
| 9679 | "completed", |
| 9680 | "interrupted", |
| 9681 | "failed", |
| 9682 | "inProgress" |
| 9683 | ], |
| 9684 | "type": "string" |
| 9685 | }, |
| 9686 | "TurnSteerParams": { |
| 9687 | "properties": { |
| 9688 | "clientUserMessageId": { |
| 9689 | "type": [ |
| 9690 | "string", |
| 9691 | "null" |
| 9692 | ] |
| 9693 | }, |
| 9694 | "expectedTurnId": { |
| 9695 | "description": "Required active turn id precondition. The request fails when it does not match the currently active turn.", |
| 9696 | "type": "string" |
| 9697 | }, |
| 9698 | "input": { |
| 9699 | "items": { |
| 9700 | "$ref": "#/definitions/UserInput" |
| 9701 | }, |
| 9702 | "type": "array" |
| 9703 | }, |
| 9704 | "threadId": { |
| 9705 | "type": "string" |
| 9706 | } |
| 9707 | }, |
| 9708 | "required": [ |
| 9709 | "expectedTurnId", |
| 9710 | "input", |
| 9711 | "threadId" |
| 9712 | ], |
| 9713 | "title": "TurnSteerParams", |
| 9714 | "type": "object" |
| 9715 | }, |
| 9716 | "TurnSteerResponse": { |
| 9717 | "properties": { |
| 9718 | "turnId": { |
| 9719 | "type": "string" |
| 9720 | } |
| 9721 | }, |
| 9722 | "required": [ |
| 9723 | "turnId" |
| 9724 | ], |
| 9725 | "title": "TurnSteerResponse", |
| 9726 | "type": "object" |
| 9727 | }, |
| 9728 | "TurnToolOutput": { |
| 9729 | "properties": { |
| 9730 | "name": { |
| 9731 | "type": "string" |
| 9732 | }, |
| 9733 | "namespace": { |
| 9734 | "type": [ |
| 9735 | "string", |
| 9736 | "null" |
| 9737 | ] |
| 9738 | }, |
| 9739 | "output": { |
| 9740 | "$ref": "#/definitions/FunctionCallOutputBody" |
| 9741 | }, |
| 9742 | "retain": { |
| 9743 | "description": "Requests retention of this output in the thread's model history.", |
| 9744 | "type": "boolean" |
| 9745 | } |
| 9746 | }, |
| 9747 | "required": [ |
| 9748 | "name", |
| 9749 | "output" |
| 9750 | ], |
| 9751 | "type": "object" |
| 9752 | }, |
| 9753 | "UserInput": { |
| 9754 | "oneOf": [ |
| 9755 | { |
| 9756 | "properties": { |
| 9757 | "text": { |
| 9758 | "type": "string" |
| 9759 | }, |
| 9760 | "text_elements": { |
| 9761 | "default": [], |
| 9762 | "description": "UI-defined spans within `text` used to render or persist special elements.", |
| 9763 | "items": { |
| 9764 | "$ref": "#/definitions/TextElement" |
| 9765 | }, |
| 9766 | "type": "array" |
| 9767 | }, |
| 9768 | "type": { |
| 9769 | "enum": [ |
| 9770 | "text" |
| 9771 | ], |
| 9772 | "title": "TextUserInputType", |
| 9773 | "type": "string" |
| 9774 | } |
| 9775 | }, |
| 9776 | "required": [ |
| 9777 | "text", |
| 9778 | "type" |
| 9779 | ], |
| 9780 | "title": "TextUserInput", |
| 9781 | "type": "object" |
| 9782 | }, |
| 9783 | { |
| 9784 | "anyOf": [ |
| 9785 | { |
| 9786 | "properties": { |
| 9787 | "url": { |
| 9788 | "type": "string" |
| 9789 | } |
| 9790 | }, |
| 9791 | "required": [ |
| 9792 | "url" |
| 9793 | ], |
| 9794 | "title": "UrlUserInput", |
| 9795 | "type": "object" |
| 9796 | }, |
| 9797 | { |
| 9798 | "properties": { |
| 9799 | "fileId": { |
| 9800 | "type": "string" |
| 9801 | } |
| 9802 | }, |
| 9803 | "required": [ |
| 9804 | "fileId" |
| 9805 | ], |
| 9806 | "title": "FileIdUserInput", |
| 9807 | "type": "object" |
| 9808 | } |
| 9809 | ], |
| 9810 | "properties": { |
| 9811 | "detail": { |
| 9812 | "anyOf": [ |
| 9813 | { |
| 9814 | "$ref": "#/definitions/ImageDetail" |
| 9815 | }, |
| 9816 | { |
| 9817 | "type": "null" |
| 9818 | } |
| 9819 | ], |
| 9820 | "default": null |
| 9821 | }, |
| 9822 | "type": { |
| 9823 | "enum": [ |
| 9824 | "image" |
| 9825 | ], |
| 9826 | "title": "ImageUserInputType", |
| 9827 | "type": "string" |
| 9828 | } |
| 9829 | }, |
| 9830 | "required": [ |
| 9831 | "type" |
| 9832 | ], |
| 9833 | "title": "ImageUserInput", |
| 9834 | "type": "object" |
| 9835 | }, |
| 9836 | { |
| 9837 | "properties": { |
| 9838 | "detail": { |
| 9839 | "anyOf": [ |
| 9840 | { |
| 9841 | "$ref": "#/definitions/ImageDetail" |
| 9842 | }, |
| 9843 | { |
| 9844 | "type": "null" |
| 9845 | } |
| 9846 | ], |
| 9847 | "default": null |
| 9848 | }, |
| 9849 | "path": { |
| 9850 | "type": "string" |
| 9851 | }, |
| 9852 | "type": { |
| 9853 | "enum": [ |
| 9854 | "localImage" |
| 9855 | ], |
| 9856 | "title": "LocalImageUserInputType", |
| 9857 | "type": "string" |
| 9858 | } |
| 9859 | }, |
| 9860 | "required": [ |
| 9861 | "path", |
| 9862 | "type" |
| 9863 | ], |
| 9864 | "title": "LocalImageUserInput", |
| 9865 | "type": "object" |
| 9866 | }, |
| 9867 | { |
| 9868 | "properties": { |
| 9869 | "type": { |
| 9870 | "enum": [ |
| 9871 | "audio" |
| 9872 | ], |
| 9873 | "title": "AudioUserInputType", |
| 9874 | "type": "string" |
| 9875 | }, |
| 9876 | "url": { |
| 9877 | "type": "string" |
| 9878 | } |
| 9879 | }, |
| 9880 | "required": [ |
| 9881 | "type", |
| 9882 | "url" |
| 9883 | ], |
| 9884 | "title": "AudioUserInput", |
| 9885 | "type": "object" |
| 9886 | }, |
| 9887 | { |
| 9888 | "properties": { |
| 9889 | "path": { |
| 9890 | "type": "string" |
| 9891 | }, |
| 9892 | "type": { |
| 9893 | "enum": [ |
| 9894 | "localAudio" |
| 9895 | ], |
| 9896 | "title": "LocalAudioUserInputType", |
| 9897 | "type": "string" |
| 9898 | } |
| 9899 | }, |
| 9900 | "required": [ |
| 9901 | "path", |
| 9902 | "type" |
| 9903 | ], |
| 9904 | "title": "LocalAudioUserInput", |
| 9905 | "type": "object" |
| 9906 | }, |
| 9907 | { |
| 9908 | "properties": { |
| 9909 | "name": { |
| 9910 | "type": "string" |
| 9911 | }, |
| 9912 | "path": { |
| 9913 | "type": "string" |
| 9914 | }, |
| 9915 | "type": { |
| 9916 | "enum": [ |
| 9917 | "skill" |
| 9918 | ], |
| 9919 | "title": "SkillUserInputType", |
| 9920 | "type": "string" |
| 9921 | } |
| 9922 | }, |
| 9923 | "required": [ |
| 9924 | "name", |
| 9925 | "path", |
| 9926 | "type" |
| 9927 | ], |
| 9928 | "title": "SkillUserInput", |
| 9929 | "type": "object" |
| 9930 | }, |
| 9931 | { |
| 9932 | "properties": { |
| 9933 | "name": { |
| 9934 | "type": "string" |
| 9935 | }, |
| 9936 | "path": { |
| 9937 | "type": "string" |
| 9938 | }, |
| 9939 | "type": { |
| 9940 | "enum": [ |
| 9941 | "mention" |
| 9942 | ], |
| 9943 | "title": "MentionUserInputType", |
| 9944 | "type": "string" |
| 9945 | } |
| 9946 | }, |
| 9947 | "required": [ |
| 9948 | "name", |
| 9949 | "path", |
| 9950 | "type" |
| 9951 | ], |
| 9952 | "title": "MentionUserInput", |
| 9953 | "type": "object" |
| 9954 | } |
| 9955 | ] |
| 9956 | }, |
| 9957 | "Verbosity": { |
| 9958 | "description": "Controls output length/detail on GPT-5 models via the Responses API. Serialized with lowercase values to match the OpenAI API.", |
| 9959 | "enum": [ |
| 9960 | "low", |
| 9961 | "medium", |
| 9962 | "high" |
| 9963 | ], |
| 9964 | "type": "string" |
| 9965 | }, |
| 9966 | "WebSearchAction": { |
| 9967 | "oneOf": [ |
| 9968 | { |
| 9969 | "properties": { |
| 9970 | "queries": { |
| 9971 | "items": { |
| 9972 | "type": "string" |
| 9973 | }, |
| 9974 | "type": [ |
| 9975 | "array", |
| 9976 | "null" |
| 9977 | ] |
| 9978 | }, |
| 9979 | "query": { |
| 9980 | "type": [ |
| 9981 | "string", |
| 9982 | "null" |
| 9983 | ] |
| 9984 | }, |
| 9985 | "type": { |
| 9986 | "enum": [ |
| 9987 | "search" |
| 9988 | ], |
| 9989 | "title": "SearchWebSearchActionType", |
| 9990 | "type": "string" |
| 9991 | } |
| 9992 | }, |
| 9993 | "required": [ |
| 9994 | "type" |
| 9995 | ], |
| 9996 | "title": "SearchWebSearchAction", |
| 9997 | "type": "object" |
| 9998 | }, |
| 9999 | { |
| 10000 | "properties": { |
| 10001 | "type": { |
| 10002 | "enum": [ |
| 10003 | "openPage" |
| 10004 | ], |
| 10005 | "title": "OpenPageWebSearchActionType", |
| 10006 | "type": "string" |
| 10007 | }, |
| 10008 | "url": { |
| 10009 | "type": [ |
| 10010 | "string", |
| 10011 | "null" |
| 10012 | ] |
| 10013 | } |
| 10014 | }, |
| 10015 | "required": [ |
| 10016 | "type" |
| 10017 | ], |
| 10018 | "title": "OpenPageWebSearchAction", |
| 10019 | "type": "object" |
| 10020 | }, |
| 10021 | { |
| 10022 | "properties": { |
| 10023 | "pattern": { |
| 10024 | "type": [ |
| 10025 | "string", |
| 10026 | "null" |
| 10027 | ] |
| 10028 | }, |
| 10029 | "type": { |
| 10030 | "enum": [ |
| 10031 | "findInPage" |
| 10032 | ], |
| 10033 | "title": "FindInPageWebSearchActionType", |
| 10034 | "type": "string" |
| 10035 | }, |
| 10036 | "url": { |
| 10037 | "type": [ |
| 10038 | "string", |
| 10039 | "null" |
| 10040 | ] |
| 10041 | } |
| 10042 | }, |
| 10043 | "required": [ |
| 10044 | "type" |
| 10045 | ], |
| 10046 | "title": "FindInPageWebSearchAction", |
| 10047 | "type": "object" |
| 10048 | }, |
| 10049 | { |
| 10050 | "properties": { |
| 10051 | "type": { |
| 10052 | "enum": [ |
| 10053 | "other" |
| 10054 | ], |
| 10055 | "title": "OtherWebSearchActionType", |
| 10056 | "type": "string" |
| 10057 | } |
| 10058 | }, |
| 10059 | "required": [ |
| 10060 | "type" |
| 10061 | ], |
| 10062 | "title": "OtherWebSearchAction", |
| 10063 | "type": "object" |
| 10064 | } |
| 10065 | ] |
| 10066 | }, |
| 10067 | "WebSearchContextSize": { |
| 10068 | "enum": [ |
| 10069 | "low", |
| 10070 | "medium", |
| 10071 | "high" |
| 10072 | ], |
| 10073 | "type": "string" |
| 10074 | }, |
| 10075 | "WebSearchLocation": { |
| 10076 | "additionalProperties": false, |
| 10077 | "properties": { |
| 10078 | "city": { |
| 10079 | "type": [ |
| 10080 | "string", |
| 10081 | "null" |
| 10082 | ] |
| 10083 | }, |
| 10084 | "country": { |
| 10085 | "type": [ |
| 10086 | "string", |
| 10087 | "null" |
| 10088 | ] |
| 10089 | }, |
| 10090 | "region": { |
| 10091 | "type": [ |
| 10092 | "string", |
| 10093 | "null" |
| 10094 | ] |
| 10095 | }, |
| 10096 | "timezone": { |
| 10097 | "type": [ |
| 10098 | "string", |
| 10099 | "null" |
| 10100 | ] |
| 10101 | } |
| 10102 | }, |
| 10103 | "type": "object" |
| 10104 | }, |
| 10105 | "WebSearchMode": { |
| 10106 | "enum": [ |
| 10107 | "disabled", |
| 10108 | "cached", |
| 10109 | "indexed", |
| 10110 | "live" |
| 10111 | ], |
| 10112 | "type": "string" |
| 10113 | }, |
| 10114 | "WebSearchToolConfig": { |
| 10115 | "additionalProperties": false, |
| 10116 | "properties": { |
| 10117 | "allowed_domains": { |
| 10118 | "items": { |
| 10119 | "type": "string" |
| 10120 | }, |
| 10121 | "type": [ |
| 10122 | "array", |
| 10123 | "null" |
| 10124 | ] |
| 10125 | }, |
| 10126 | "context_size": { |
| 10127 | "anyOf": [ |
| 10128 | { |
| 10129 | "$ref": "#/definitions/WebSearchContextSize" |
| 10130 | }, |
| 10131 | { |
| 10132 | "type": "null" |
| 10133 | } |
| 10134 | ] |
| 10135 | }, |
| 10136 | "location": { |
| 10137 | "anyOf": [ |
| 10138 | { |
| 10139 | "$ref": "#/definitions/WebSearchLocation" |
| 10140 | }, |
| 10141 | { |
| 10142 | "type": "null" |
| 10143 | } |
| 10144 | ] |
| 10145 | } |
| 10146 | }, |
| 10147 | "type": "object" |
| 10148 | }, |
| 10149 | "WriteStatus": { |
| 10150 | "enum": [ |
| 10151 | "ok", |
| 10152 | "okOverridden" |
| 10153 | ], |
| 10154 | "type": "string" |
| 10155 | } |
| 10156 | } |
| 10157 | } |
| 10158 |