{ "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "AbsolutePathBuf": { "type": "string" }, "ActivePermissionProfile": { "properties": { "extends": { "default": null, "type": [ "string", "null" ] }, "id": { "type": "string" } }, "required": [ "id" ], "type": "object" }, "AgentMessageDelivery": { "enum": [ "async" ], "type": "string" }, "AgentPath": { "type": "string" }, "ApprovalsReviewer": { "enum": [ "user", "auto_review", "guardian_subagent" ], "type": "string" }, "AskForApproval": { "oneOf": [ { "enum": [ "untrusted", "on-request", "never" ], "type": "string" }, { "additionalProperties": false, "properties": { "granular": { "properties": { "mcp_elicitations": { "type": "boolean" }, "request_permissions": { "default": false, "type": "boolean" }, "rules": { "type": "boolean" }, "sandbox_approval": { "type": "boolean" }, "skill_approval": { "default": false, "type": "boolean" } }, "required": [ "mcp_elicitations", "rules", "sandbox_approval" ], "type": "object" } }, "required": [ "granular" ], "type": "object" } ] }, "AsyncUserInputQuestion": { "additionalProperties": false, "properties": { "options": { "items": { "type": "string" }, "type": [ "array", "null" ] } }, "required": [ "title" ], "type": "object" }, "ByteRange": { "properties": { "end": { "format": "uint", "minimum": 0.0, "type": "integer" }, "start": { "format": "uint", "minimum": 0.0, "type": "integer" } }, "required": [ "end", "start" ], "type": "object" }, "CodexErrorInfo": { "anyOf": [ { "enum": [ "contextWindowExceeded", "sessionBudgetExceeded", "usageLimitExceeded", "rateLimitExceeded", "flexUnavailable", "serverOverloaded", "modelNotFound", "cyberPolicy", "misalignmentPolicyViolation", "tooManyDenials", "internalServerError", "unauthorized", "badRequest", "threadRollbackFailed", "sandboxError", "other" ], "type": "string" }, { "additionalProperties": false, "properties": { "httpConnectionFailed": { "properties": { "httpStatusCode": { "format": "uint16", "minimum": 0.0, "type": [ "integer", "null" ] } }, "type": "object" } }, "required": [ "httpConnectionFailed" ], "type": "object" }, { "additionalProperties": false, "properties": { "responseStreamConnectionFailed": { "properties": { "httpStatusCode": { "format": "uint16", "minimum": 0.0, "type": [ "integer", "null" ] } }, "type": "object" } }, "required": [ "responseStreamConnectionFailed" ], "type": "object" }, { "additionalProperties": false, "properties": { "responseStreamDisconnected": { "properties": { "httpStatusCode": { "format": "uint16", "minimum": 0.0, "type": [ "integer", "null" ] } }, "type": "object" } }, "required": [ "responseStreamDisconnected" ], "type": "object" }, { "additionalProperties": false, "properties": { "responseTooManyFailedAttempts": { "properties": { "httpStatusCode": { "format": "uint16", "minimum": 0.0, "type": [ "integer", "null" ] } }, "type": "object" } }, "required": [ "responseTooManyFailedAttempts" ], "type": "object" }, { "additionalProperties": false, "properties": { "activeTurnNotSteerable": { "properties": { "turnKind": { "$ref": "#/definitions/NonSteerableTurnKind" } }, "required": [ "turnKind" ], "type": "object" } }, "required": [ "activeTurnNotSteerable" ], "type": "object" }, { "type": [ "string", "object" ] } ] }, "CollabAgentState": { "properties": { "message": { "type": [ "string", "null" ] }, "status": { "$ref": "#/definitions/CollabAgentStatus" } }, "required": [ "status" ], "type": "object" }, "CollabAgentStatus": { "enum": [ "pendingInit", "running", "interrupted", "completed", "errored", "shutdown", "notFound" ], "type": "string" }, "CollabAgentTool": { "enum": [ "spawnAgent", "sendInput", "resumeAgent", "wait", "closeAgent", "sendMessage", "followupTask", "interruptAgent", "listAgents" ], "type": "string" }, "CollabAgentToolCallStatus": { "enum": [ "inProgress", "completed", "failed", "interrupted" ], "type": "string" }, "CollaborationMode": { "properties": { "mode": { "$ref": "#/definitions/ModeKind" }, "settings": { "$ref": "#/definitions/Settings" } }, "required": [ "mode", "settings" ], "type": "object" }, "CommandAction": { "oneOf": [ { "properties": { "command": { "type": "string" }, "name": { "type": "string" }, "path": { "$ref": "#/definitions/LegacyAppPathString" }, "type": { "enum": [ "read" ], "type": "string" } }, "required": [ "command", "name", "path", "type" ], "type": "object" }, { "properties": { "command": { "type": "string" }, "path": { "type": [ "string", "null" ] }, "type": { "enum": [ "listFiles" ], "type": "string" } }, "required": [ "command", "type" ], "type": "object" }, { "properties": { "command": { "type": "string" }, "path": { "type": [ "string", "null" ] }, "query": { "type": [ "string", "null" ] }, "type": { "enum": [ "search" ], "type": "string" } }, "required": [ "command", "type" ], "type": "object" }, { "properties": { "command": { "type": "string" }, "type": { "enum": [ "unknown" ], "type": "string" } }, "required": [ "command", "type" ], "type": "object" } ] }, "CommandExecutionSource": { "enum": [ "agent", "userShell", "unifiedExecStartup", "unifiedExecInteraction" ], "type": "string" }, "CommandExecutionStatus": { "enum": [ "inProgress", "completed", "failed", "declined" ], "type": "string" }, "DynamicToolCallOutputContentItem": { "oneOf": [ { "properties": { "text": { "type": "string" }, "type": { "enum": [ "inputText" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" }, { "properties": { "imageUrl": { "type": "string" }, "type": { "enum": [ "inputImage" ], "type": "string" } }, "required": [ "imageUrl", "type" ], "type": "object" }, { "properties": { "audioUrl": { "type": "string" }, "type": { "enum": [ "inputAudio" ], "type": "string" } }, "required": [ "audioUrl", "type" ], "type": "object" } ] }, "DynamicToolCallStatus": { "enum": [ "inProgress", "completed", "failed" ], "type": "string" }, "FileUpdateChange": { "properties": { "diff": { "type": "string" }, "kind": { "$ref": "#/definitions/PatchChangeKind" }, "path": { "type": "string" } }, "required": [ "diff", "kind", "path" ], "type": "object" }, "FunctionCallOutputBody": { "anyOf": [ { "type": "string" }, { "items": { "$ref": "#/definitions/FunctionCallOutputContentItem" }, "type": "array" } ] }, "FunctionCallOutputContentItem": { "oneOf": [ { "properties": { "text": { "type": "string" }, "type": { "enum": [ "input_text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" }, { "anyOf": [ { "properties": { "image_url": { "type": "string" } }, "required": [ "image_url" ], "type": "object" }, { "properties": { "file_id": { "type": "string" } }, "required": [ "file_id" ], "type": "object" } ], "properties": { "detail": { "anyOf": [ { "$ref": "#/definitions/ImageDetail" }, { "type": "null" } ] }, "type": { "enum": [ "input_image" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "audio_url": { "type": "string" }, "type": { "enum": [ "input_audio" ], "type": "string" } }, "required": [ "audio_url", "type" ], "type": "object" }, { "properties": { "encrypted_content": { "type": "string" }, "type": { "enum": [ "encrypted_content" ], "type": "string" } }, "required": [ "encrypted_content", "type" ], "type": "object" } ] }, "GitInfo": { "properties": { "branch": { "type": [ "string", "null" ] }, "originUrl": { "type": [ "string", "null" ] }, "sha": { "type": [ "string", "null" ] } }, "type": "object" }, "HookPromptFragment": { "properties": { "hookRunId": { "type": "string" }, "text": { "type": "string" } }, "required": [ "hookRunId", "text" ], "type": "object" }, "ImageDetail": { "enum": [ "auto", "low", "high", "original" ], "type": "string" }, "ImageGenerationFailure": { "oneOf": [ { "properties": { "limitId": { "type": "string" }, "resetsAt": { "format": "int64", "type": [ "integer", "null" ] }, "type": { "enum": [ "usageLimitExceeded" ], "type": "string" } }, "required": [ "limitId", "type" ], "type": "object" } ] }, "ImageGenerationInputImage": { "properties": { "path": { "$ref": "#/definitions/AbsolutePathBuf" }, "sha256": { "type": "string" } }, "required": [ "path", "sha256" ], "type": "object" }, "LegacyAppPathString": { "type": "string" }, "McpAppDisplayMode": { "enum": [ "inline", "fullscreen" ], "type": "string" }, "McpAppUi": { "properties": { "preferredModelDisplayMode": { "$ref": "#/definitions/McpAppDisplayMode" }, "resourceUri": { "type": "string" } }, "required": [ "preferredModelDisplayMode", "resourceUri" ], "type": "object" }, "McpToolCallAppContext": { "properties": { "actionName": { "type": [ "string", "null" ] }, "appName": { "type": [ "string", "null" ] }, "connectorId": { "type": "string" }, "linkId": { "type": [ "string", "null" ] }, "resourceUri": { "type": [ "string", "null" ] } }, "required": [ "connectorId" ], "type": "object" }, "McpToolCallError": { "properties": { "message": { "type": "string" } }, "required": [ "message" ], "type": "object" }, "McpToolCallResult": { "properties": { "_meta": true, "content": { "items": true, "type": "array" }, "structuredContent": true }, "required": [ "content" ], "type": "object" }, "McpToolCallStatus": { "enum": [ "inProgress", "completed", "failed" ], "type": "string" }, "MemoryCitation": { "properties": { "entries": { "items": { "$ref": "#/definitions/MemoryCitationEntry" }, "type": "array" }, "threadIds": { "items": { "type": "string" }, "type": "array" } }, "required": [ "entries", "threadIds" ], "type": "object" }, "MemoryCitationEntry": { "properties": { "lineEnd": { "format": "uint32", "minimum": 0.0, "type": "integer" }, "lineStart": { "format": "uint32", "minimum": 0.0, "type": "integer" }, "note": { "type": "string" }, "path": { "type": "string" } }, "required": [ "lineEnd", "lineStart", "note", "path" ], "type": "object" }, "MessagePhase": { "oneOf": [ { "enum": [ "commentary" ], "type": "string" }, { "enum": [ "partial_answer" ], "type": "string" }, { "enum": [ "final_answer" ], "type": "string" } ] }, "MisalignmentErrorDetails": { "properties": { "detailedExplanation": { "type": [ "string", "null" ] }, "errorType": { "type": [ "string", "null" ] }, "reviewTarget": { "type": [ "string", "null" ] }, "steer": { "anyOf": [ { "$ref": "#/definitions/MisalignmentSteer" }, { "type": "null" } ] } }, "type": "object" }, "MisalignmentSteer": { "properties": { "message": { "type": "string" } }, "required": [ "message" ], "type": "object" }, "ModeKind": { "enum": [ "plan", "default" ], "type": "string" }, "MultiAgentMode": { "oneOf": [ { "enum": [ "explicitRequestOnly", "proactive" ], "type": "string" }, { "additionalProperties": false, "properties": { "custom": { "type": "string" } }, "required": [ "custom" ], "type": "object" } ] }, "NetworkAccess": { "enum": [ "restricted", "enabled" ], "type": "string" }, "NonSteerableTurnKind": { "enum": [ "review", "compact" ], "type": "string" }, "PatchApplyStatus": { "enum": [ "inProgress", "completed", "failed", "declined" ], "type": "string" }, "PatchChangeKind": { "oneOf": [ { "properties": { "type": { "enum": [ "add" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "delete" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "move_path": { "type": [ "string", "null" ] }, "type": { "enum": [ "update" ], "type": "string" } }, "required": [ "type" ], "type": "object" } ] }, "ReasoningEffort": { "minLength": 1, "type": "string" }, "SandboxPolicy": { "oneOf": [ { "properties": { "type": { "enum": [ "dangerFullAccess" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "networkAccess": { "default": false, "type": "boolean" }, "type": { "enum": [ "readOnly" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "networkAccess": { "allOf": [ { "$ref": "#/definitions/NetworkAccess" } ], "default": "restricted" }, "type": { "enum": [ "externalSandbox" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "excludeSlashTmp": { "default": false, "type": "boolean" }, "excludeTmpdirEnvVar": { "default": false, "type": "boolean" }, "networkAccess": { "default": false, "type": "boolean" }, "type": { "enum": [ "workspaceWrite" ], "type": "string" }, "writableRoots": { "default": [], "items": { "$ref": "#/definitions/AbsolutePathBuf" }, "type": "array" } }, "required": [ "type" ], "type": "object" } ] }, "SessionSource": { "oneOf": [ { "enum": [ "cli", "vscode", "exec", "appServer", "unknown" ], "type": "string" }, { "additionalProperties": false, "properties": { "custom": { "type": "string" } }, "required": [ "custom" ], "type": "object" }, { "additionalProperties": false, "properties": { "subAgent": { "$ref": "#/definitions/SubAgentSource" } }, "required": [ "subAgent" ], "type": "object" } ] }, "Settings": { "properties": { "developer_instructions": { "type": [ "string", "null" ] }, "model": { "type": "string" }, "reasoning_effort": { "anyOf": [ { "$ref": "#/definitions/ReasoningEffort" }, { "type": "null" } ] } }, "required": [ "model" ], "type": "object" }, "SubAgentActivityKind": { "enum": [ "started", "interacted", "interrupted", "completed" ], "type": "string" }, "SubAgentSource": { "oneOf": [ { "enum": [ "review", "compact", "memory_consolidation" ], "type": "string" }, { "additionalProperties": false, "properties": { "thread_spawn": { "properties": { "agent_nickname": { "default": null, "type": [ "string", "null" ] }, "agent_path": { "anyOf": [ { "$ref": "#/definitions/AgentPath" }, { "type": "null" } ], "default": null }, "agent_role": { "default": null, "type": [ "string", "null" ] }, "depth": { "format": "int32", "type": "integer" }, "parent_thread_id": { "$ref": "#/definitions/ThreadId" } }, "required": [ "depth", "parent_thread_id" ], "type": "object" } }, "required": [ "thread_spawn" ], "type": "object" }, { "additionalProperties": false, "properties": { "other": { "type": "string" } }, "required": [ "other" ], "type": "object" } ] }, "TextElement": { "properties": { "byteRange": { "allOf": [ { "$ref": "#/definitions/ByteRange" } ] }, "placeholder": { "type": [ "string", "null" ] } }, "required": [ "byteRange" ], "type": "object" }, "Thread": { "properties": { "agentNickname": { "type": [ "string", "null" ] }, "agentRole": { "type": [ "string", "null" ] }, "canAcceptDirectInput": { "type": [ "boolean", "null" ] }, "cliVersion": { "type": "string" }, "createdAt": { "format": "int64", "type": "integer" }, "cwd": { "allOf": [ { "$ref": "#/definitions/AbsolutePathBuf" } ] }, "daybreakEnabled": { "type": [ "boolean", "null" ] }, "environments": { "default": null, "items": { "$ref": "#/definitions/ThreadEnvironment" }, "type": [ "array", "null" ] }, "ephemeral": { "type": "boolean" }, "extra": { "anyOf": [ { "$ref": "#/definitions/ThreadExtra" }, { "type": "null" } ] }, "forkedFromId": { "type": [ "string", "null" ] }, "gitInfo": { "anyOf": [ { "$ref": "#/definitions/GitInfo" }, { "type": "null" } ] }, "historyMode": { "allOf": [ { "$ref": "#/definitions/ThreadHistoryMode" } ], "default": "legacy" }, "id": { "type": "string" }, "model": { "type": [ "string", "null" ] }, "modelProvider": { "type": "string" }, "name": { "type": [ "string", "null" ] }, "originator": { "type": [ "string", "null" ] }, "parentThreadId": { "type": [ "string", "null" ] }, "path": { "type": [ "string", "null" ] }, "preview": { "type": "string" }, "projectId": { "type": [ "string", "null" ] }, "reasoningEffort": { "anyOf": [ { "$ref": "#/definitions/ReasoningEffort" }, { "type": "null" } ] }, "recencyAt": { "format": "int64", "type": [ "integer", "null" ] }, "section": { "anyOf": [ { "$ref": "#/definitions/ThreadSection" }, { "type": "null" } ], "default": null }, "sectionEnteredAt": { "default": null, "format": "int64", "type": [ "integer", "null" ] }, "sessionId": { "type": "string" }, "source": { "allOf": [ { "$ref": "#/definitions/SessionSource" } ] }, "status": { "allOf": [ { "$ref": "#/definitions/ThreadStatus" } ] }, "threadSource": { "anyOf": [ { "$ref": "#/definitions/ThreadSource" }, { "type": "null" } ] }, "turns": { "items": { "$ref": "#/definitions/Turn" }, "type": "array" }, "updatedAt": { "format": "int64", "type": "integer" } }, "required": [ "cliVersion", "createdAt", "cwd", "ephemeral", "id", "modelProvider", "preview", "projectId", "sessionId", "source", "status", "turns", "updatedAt" ], "type": "object" }, "ThreadActiveFlag": { "enum": [ "waitingOnApproval", "waitingOnUserInput" ], "type": "string" }, "ThreadEnvironment": { "properties": { "cwd": { "$ref": "#/definitions/LegacyAppPathString" }, "environmentId": { "type": "string" }, "runtimeWorkspaceRoots": { "items": { "$ref": "#/definitions/LegacyAppPathString" }, "type": "array" } }, "required": [ "cwd", "environmentId", "runtimeWorkspaceRoots" ], "type": "object" }, "ThreadExtra": { "type": "object" }, "ThreadHistoryMode": { "enum": [ "legacy", "paginated" ], "type": "string" }, "ThreadId": { "type": "string" }, "ThreadItem": { "oneOf": [ { "properties": { "clientId": { "type": [ "string", "null" ] }, "content": { "items": { "$ref": "#/definitions/UserInput" }, "type": "array" }, "id": { "type": "string" }, "type": { "enum": [ "userMessage" ], "type": "string" } }, "required": [ "content", "id", "type" ], "type": "object" }, { "properties": { "fragments": { "items": { "$ref": "#/definitions/HookPromptFragment" }, "type": "array" }, "id": { "type": "string" }, "type": { "enum": [ "hookPrompt" ], "type": "string" } }, "required": [ "fragments", "id", "type" ], "type": "object" }, { "properties": { "delivery": { "anyOf": [ { "$ref": "#/definitions/AgentMessageDelivery" }, { "type": "null" } ], "default": null }, "id": { "type": "string" }, "memoryCitation": { "anyOf": [ { "$ref": "#/definitions/MemoryCitation" }, { "type": "null" } ], "default": null }, "phase": { "anyOf": [ { "$ref": "#/definitions/MessagePhase" }, { "type": "null" } ], "default": null }, "questions": { "default": null, "items": { "$ref": "#/definitions/AsyncUserInputQuestion" }, "type": [ "array", "null" ] }, "text": { "type": "string" }, "type": { "enum": [ "agentMessage" ], "type": "string" } }, "required": [ "id", "text", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "namespace": { "type": [ "string", "null" ] }, "output": { "$ref": "#/definitions/FunctionCallOutputBody" }, "type": { "enum": [ "functionCallOutput" ], "type": "string" } }, "required": [ "id", "name", "output", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "text": { "type": "string" }, "type": { "enum": [ "plan" ], "type": "string" } }, "required": [ "id", "text", "type" ], "type": "object" }, { "properties": { "content": { "default": [], "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "summary": { "default": [], "items": { "type": "string" }, "type": "array" }, "type": { "enum": [ "reasoning" ], "type": "string" } }, "required": [ "id", "type" ], "type": "object" }, { "properties": { "aggregatedOutput": { "type": [ "string", "null" ] }, "command": { "type": "string" }, "commandActions": { "items": { "$ref": "#/definitions/CommandAction" }, "type": "array" }, "cwd": { "allOf": [ { "$ref": "#/definitions/LegacyAppPathString" } ] }, "durationMs": { "format": "int64", "type": [ "integer", "null" ] }, "exitCode": { "format": "int32", "type": [ "integer", "null" ] }, "id": { "type": "string" }, "pluginId": { "default": null, "type": [ "string", "null" ] }, "processId": { "type": [ "string", "null" ] }, "scriptPath": { "default": null, "type": [ "string", "null" ] }, "source": { "allOf": [ { "$ref": "#/definitions/CommandExecutionSource" } ], "default": "agent" }, "status": { "$ref": "#/definitions/CommandExecutionStatus" }, "type": { "enum": [ "commandExecution" ], "type": "string" } }, "required": [ "command", "commandActions", "cwd", "id", "status", "type" ], "type": "object" }, { "properties": { "changes": { "items": { "$ref": "#/definitions/FileUpdateChange" }, "type": "array" }, "id": { "type": "string" }, "status": { "$ref": "#/definitions/PatchApplyStatus" }, "type": { "enum": [ "fileChange" ], "type": "string" } }, "required": [ "changes", "id", "status", "type" ], "type": "object" }, { "properties": { "appContext": { "anyOf": [ { "$ref": "#/definitions/McpToolCallAppContext" }, { "type": "null" } ] }, "arguments": true, "durationMs": { "format": "int64", "type": [ "integer", "null" ] }, "error": { "anyOf": [ { "$ref": "#/definitions/McpToolCallError" }, { "type": "null" } ] }, "id": { "type": "string" }, "mcpAppResourceUri": { "type": [ "string", "null" ] }, "mcpAppUi": { "anyOf": [ { "$ref": "#/definitions/McpAppUi" }, { "type": "null" } ] }, "pluginId": { "type": [ "string", "null" ] }, "readOnlyHint": { "type": [ "boolean", "null" ] }, "result": { "anyOf": [ { "$ref": "#/definitions/McpToolCallResult" }, { "type": "null" } ] }, "server": { "type": "string" }, "status": { "$ref": "#/definitions/McpToolCallStatus" }, "tool": { "type": "string" }, "type": { "enum": [ "mcpToolCall" ], "type": "string" } }, "required": [ "arguments", "id", "server", "status", "tool", "type" ], "type": "object" }, { "properties": { "arguments": true, "contentItems": { "items": { "$ref": "#/definitions/DynamicToolCallOutputContentItem" }, "type": [ "array", "null" ] }, "durationMs": { "format": "int64", "type": [ "integer", "null" ] }, "id": { "type": "string" }, "namespace": { "type": [ "string", "null" ] }, "status": { "$ref": "#/definitions/DynamicToolCallStatus" }, "success": { "type": [ "boolean", "null" ] }, "tool": { "type": "string" }, "type": { "enum": [ "dynamicToolCall" ], "type": "string" } }, "required": [ "arguments", "id", "status", "tool", "type" ], "type": "object" }, { "properties": { "agentsStates": { "additionalProperties": { "$ref": "#/definitions/CollabAgentState" }, "type": "object" }, "id": { "type": "string" }, "model": { "type": [ "string", "null" ] }, "prompt": { "type": [ "string", "null" ] }, "reasoningEffort": { "anyOf": [ { "$ref": "#/definitions/ReasoningEffort" }, { "type": "null" } ] }, "receiverThreadIds": { "items": { "type": "string" }, "type": "array" }, "senderThreadId": { "type": "string" }, "status": { "allOf": [ { "$ref": "#/definitions/CollabAgentToolCallStatus" } ] }, "tool": { "allOf": [ { "$ref": "#/definitions/CollabAgentTool" } ] }, "type": { "enum": [ "collabAgentToolCall" ], "type": "string" } }, "required": [ "agentsStates", "id", "receiverThreadIds", "senderThreadId", "status", "tool", "type" ], "type": "object" }, { "properties": { "agentPath": { "type": "string" }, "agentThreadId": { "type": "string" }, "id": { "type": "string" }, "kind": { "$ref": "#/definitions/SubAgentActivityKind" }, "model": { "type": [ "string", "null" ] }, "reasoningEffort": { "anyOf": [ { "$ref": "#/definitions/ReasoningEffort" }, { "type": "null" } ] }, "type": { "enum": [ "subAgentActivity" ], "type": "string" } }, "required": [ "agentPath", "agentThreadId", "id", "kind", "type" ], "type": "object" }, { "properties": { "action": { "anyOf": [ { "$ref": "#/definitions/WebSearchAction" }, { "type": "null" } ] }, "id": { "type": "string" }, "query": { "type": "string" }, "results": { "default": null, "items": true, "type": [ "array", "null" ] }, "type": { "enum": [ "webSearch" ], "type": "string" } }, "required": [ "id", "query", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "path": { "$ref": "#/definitions/LegacyAppPathString" }, "type": { "enum": [ "imageView" ], "type": "string" } }, "required": [ "id", "path", "type" ], "type": "object" }, { "properties": { "durationMs": { "format": "uint64", "minimum": 0.0, "type": "integer" }, "id": { "type": "string" }, "type": { "enum": [ "sleep" ], "type": "string" } }, "required": [ "durationMs", "id", "type" ], "type": "object" }, { "anyOf": [ { "properties": { "fileId": { "type": "string" } }, "required": [ "fileId" ], "type": "object" }, { "properties": { "result": { "type": "string" } }, "required": [ "result" ], "type": "object" } ], "properties": { "failure": { "anyOf": [ { "$ref": "#/definitions/ImageGenerationFailure" }, { "type": "null" } ], "default": null }, "id": { "type": "string" }, "inputImages": { "items": { "$ref": "#/definitions/ImageGenerationInputImage" }, "type": "array" }, "revisedPrompt": { "type": [ "string", "null" ] }, "savedPath": { "anyOf": [ { "$ref": "#/definitions/AbsolutePathBuf" }, { "type": "null" } ] }, "status": { "type": "string" }, "transparentBackground": { "default": null, "type": [ "boolean", "null" ] }, "type": { "enum": [ "imageGeneration" ], "type": "string" } }, "required": [ "id", "status", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "review": { "type": "string" }, "type": { "enum": [ "enteredReviewMode" ], "type": "string" } }, "required": [ "id", "review", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "review": { "type": "string" }, "type": { "enum": [ "exitedReviewMode" ], "type": "string" } }, "required": [ "id", "review", "type" ], "type": "object" }, { "properties": { "id": { "type": "string" }, "type": { "enum": [ "contextCompaction" ], "type": "string" } }, "required": [ "id", "type" ], "type": "object" } ] }, "ThreadSection": { "properties": { "appearance": { "anyOf": [ { "$ref": "#/definitions/ThreadSectionAppearance" }, { "type": "null" } ], "default": null }, "id": { "type": "string" }, "name": { "type": "string" } }, "required": [ "id", "name" ], "type": "object" }, "ThreadSectionAppearance": { "properties": { "color": { "type": [ "string", "null" ] }, "icon": { "type": [ "string", "null" ] } }, "type": "object" }, "ThreadSource": { "type": "string" }, "ThreadStatus": { "oneOf": [ { "properties": { "type": { "enum": [ "notLoaded" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "idle" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "systemError" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "activeFlags": { "items": { "$ref": "#/definitions/ThreadActiveFlag" }, "type": "array" }, "type": { "enum": [ "active" ], "type": "string" } }, "required": [ "activeFlags", "type" ], "type": "object" } ] }, "Turn": { "properties": { "completedAt": { "format": "int64", "type": [ "integer", "null" ] }, "durationMs": { "format": "int64", "type": [ "integer", "null" ] }, "error": { "anyOf": [ { "$ref": "#/definitions/TurnError" }, { "type": "null" } ] }, "id": { "type": "string" }, "items": { "items": { "$ref": "#/definitions/ThreadItem" }, "type": "array" }, "itemsView": { "allOf": [ { "$ref": "#/definitions/TurnItemsView" } ], "default": "full" }, "rootTurnId": { "type": [ "string", "null" ] }, "startedAt": { "format": "int64", "type": [ "integer", "null" ] }, "status": { "$ref": "#/definitions/TurnStatus" } }, "required": [ "id", "items", "status" ], "type": "object" }, "TurnError": { "properties": { "additionalDetails": { "default": null, "type": [ "string", "null" ] }, "codexErrorInfo": { "anyOf": [ { "$ref": "#/definitions/CodexErrorInfo" }, { "type": "null" } ] }, "message": { "type": "string" }, "misalignment": { "anyOf": [ { "$ref": "#/definitions/MisalignmentErrorDetails" }, { "type": "null" } ], "default": null } }, "required": [ "message" ], "type": "object" }, "TurnItemsView": { "oneOf": [ { "enum": [ "notLoaded" ], "type": "string" }, { "enum": [ "summary" ], "type": "string" }, { "enum": [ "full" ], "type": "string" } ] }, "TurnStatus": { "enum": [ "completed", "interrupted", "failed", "inProgress" ], "type": "string" }, "TurnsPage": { "properties": { "backwardsCursor": { "type": [ "string", "null" ] }, "data": { "items": { "$ref": "#/definitions/Turn" }, "type": "array" }, "nextCursor": { "type": [ "string", "null" ] } }, "required": [ "data" ], "type": "object" }, "UserInput": { "oneOf": [ { "properties": { "text": { "type": "string" }, "text_elements": { "default": [], "items": { "$ref": "#/definitions/TextElement" }, "type": "array" }, "type": { "enum": [ "text" ], "type": "string" } }, "required": [ "text", "type" ], "type": "object" }, { "anyOf": [ { "properties": { "url": { "type": "string" } }, "required": [ "url" ], "type": "object" }, { "properties": { "fileId": { "type": "string" } }, "required": [ "fileId" ], "type": "object" } ], "properties": { "detail": { "anyOf": [ { "$ref": "#/definitions/ImageDetail" }, { "type": "null" } ], "default": null }, "type": { "enum": [ "image" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "detail": { "anyOf": [ { "$ref": "#/definitions/ImageDetail" }, { "type": "null" } ], "default": null }, "path": { "type": "string" }, "type": { "enum": [ "localImage" ], "type": "string" } }, "required": [ "path", "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "audio" ], "type": "string" }, "url": { "type": "string" } }, "required": [ "type", "url" ], "type": "object" }, { "properties": { "path": { "type": "string" }, "type": { "enum": [ "localAudio" ], "type": "string" } }, "required": [ "path", "type" ], "type": "object" }, { "properties": { "name": { "type": "string" }, "path": { "type": "string" }, "type": { "enum": [ "skill" ], "type": "string" } }, "required": [ "name", "path", "type" ], "type": "object" }, { "properties": { "name": { "type": "string" }, "path": { "type": "string" }, "type": { "enum": [ "mention" ], "type": "string" } }, "required": [ "name", "path", "type" ], "type": "object" } ] }, "WebSearchAction": { "oneOf": [ { "properties": { "queries": { "items": { "type": "string" }, "type": [ "array", "null" ] }, "query": { "type": [ "string", "null" ] }, "type": { "enum": [ "search" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "openPage" ], "type": "string" }, "url": { "type": [ "string", "null" ] } }, "required": [ "type" ], "type": "object" }, { "properties": { "pattern": { "type": [ "string", "null" ] }, "type": { "enum": [ "findInPage" ], "type": "string" }, "url": { "type": [ "string", "null" ] } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "other" ], "type": "string" } }, "required": [ "type" ], "type": "object" } ] } }, "properties": { "activePermissionProfile": { "anyOf": [ { "$ref": "#/definitions/ActivePermissionProfile" }, { "type": "null" } ], "default": null }, "approvalPolicy": { "$ref": "#/definitions/AskForApproval" }, "approvalsReviewer": { "allOf": [ { "$ref": "#/definitions/ApprovalsReviewer" } ] }, "collaborationMode": { "anyOf": [ { "$ref": "#/definitions/CollaborationMode" }, { "type": "null" } ] }, "cwd": { "$ref": "#/definitions/AbsolutePathBuf" }, "disabledPluginIds": { "default": [], "items": { "type": "string" }, "type": "array" }, "initialTurnsPage": { "anyOf": [ { "$ref": "#/definitions/TurnsPage" }, { "type": "null" } ], "default": null }, "instructionSources": { "default": [], "items": { "$ref": "#/definitions/LegacyAppPathString" }, "type": "array" }, "itemsBackwardsCursor": { "default": null, "type": [ "string", "null" ] }, "model": { "type": "string" }, "modelProvider": { "type": "string" }, "multiAgentMode": { "allOf": [ { "$ref": "#/definitions/MultiAgentMode" } ], "default": "explicitRequestOnly" }, "reasoningEffort": { "anyOf": [ { "$ref": "#/definitions/ReasoningEffort" }, { "type": "null" } ] }, "runtimeWorkspaceRoots": { "default": [], "items": { "$ref": "#/definitions/AbsolutePathBuf" }, "type": "array" }, "sandbox": { "allOf": [ { "$ref": "#/definitions/SandboxPolicy" } ] }, "serviceTier": { "type": [ "string", "null" ] }, "thread": { "$ref": "#/definitions/Thread" }, "turnsBackwardsCursor": { "default": null, "type": [ "string", "null" ] } }, "required": [ "approvalPolicy", "approvalsReviewer", "cwd", "model", "modelProvider", "sandbox", "thread" ], "type": "object" }