Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

chore(app-server): stop exporting EventMsg schemas (#14478)

Owen Lin4724a2e9e791
diff --git a/codex-rs/app-server-protocol/schema/json/EventMsg.json b/codex-rs/app-server-protocol/schema/json/EventMsg.json
deleted file mode 100644
index ad420594b1..0000000000
--- a/codex-rs/app-server-protocol/schema/json/EventMsg.json
+++ /dev/null
@@ -1,9799 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "definitions": {
- "AbsolutePathBuf": {
- "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.",
- "type": "string"
- },
- "AgentMessageContent": {
- "oneOf": [
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "Text"
- ],
- "title": "TextAgentMessageContentType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "TextAgentMessageContent",
- "type": "object"
- }
- ]
- },
- "AgentStatus": {
- "description": "Agent lifecycle status, derived from emitted events.",
- "oneOf": [
- {
- "description": "Agent is waiting for initialization.",
- "enum": [
- "pending_init"
- ],
- "type": "string"
- },
- {
- "description": "Agent is currently running.",
- "enum": [
- "running"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "description": "Agent is done. Contains the final assistant message.",
- "properties": {
- "completed": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "completed"
- ],
- "title": "CompletedAgentStatus",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Agent encountered an error.",
- "properties": {
- "errored": {
- "type": "string"
- }
- },
- "required": [
- "errored"
- ],
- "title": "ErroredAgentStatus",
- "type": "object"
- },
- {
- "description": "Agent has been shutdown.",
- "enum": [
- "shutdown"
- ],
- "type": "string"
- },
- {
- "description": "Agent is not found.",
- "enum": [
- "not_found"
- ],
- "type": "string"
- }
- ]
- },
- "AskForApproval": {
- "description": "Determines the conditions under which the user is consulted to approve running the command proposed by Codex.",
- "oneOf": [
- {
- "description": "Under this policy, only \"known safe\" commands—as determined by `is_safe_command()`—that **only read files** are auto‑approved. Everything else will ask the user to approve.",
- "enum": [
- "untrusted"
- ],
- "type": "string"
- },
- {
- "description": "DEPRECATED: *All* commands are auto‑approved, but they are expected to run inside a sandbox where network access is disabled and writes are confined to a specific set of paths. If the command fails, it will be escalated to the user to approve execution without a sandbox. Prefer `OnRequest` for interactive runs or `Never` for non-interactive runs.",
- "enum": [
- "on-failure"
- ],
- "type": "string"
- },
- {
- "description": "The model decides when to ask the user for approval.",
- "enum": [
- "on-request"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "description": "Fine-grained rejection controls for approval prompts.\n\nWhen a field is `true`, prompts of that category are automatically rejected instead of shown to the user.",
- "properties": {
- "reject": {
- "$ref": "#/definitions/RejectConfig"
- }
- },
- "required": [
- "reject"
- ],
- "title": "RejectAskForApproval",
- "type": "object"
- },
- {
- "description": "Never ask the user to approve commands. Failures are immediately returned to the model, and never escalated to the user for approval.",
- "enum": [
- "never"
- ],
- "type": "string"
- }
- ]
- },
- "ByteRange": {
- "properties": {
- "end": {
- "description": "End byte offset (exclusive) within the UTF-8 text buffer.",
- "format": "uint",
- "minimum": 0.0,
- "type": "integer"
- },
- "start": {
- "description": "Start byte offset (inclusive) within the UTF-8 text buffer.",
- "format": "uint",
- "minimum": 0.0,
- "type": "integer"
- }
- },
- "required": [
- "end",
- "start"
- ],
- "type": "object"
- },
- "CallToolResult": {
- "description": "The server's response to a tool call.",
- "properties": {
- "_meta": true,
- "content": {
- "items": true,
- "type": "array"
- },
- "isError": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "structuredContent": true
- },
- "required": [
- "content"
- ],
- "type": "object"
- },
- "CodexErrorInfo": {
- "description": "Codex errors that we expose to clients.",
- "oneOf": [
- {
- "enum": [
- "context_window_exceeded",
- "usage_limit_exceeded",
- "server_overloaded",
- "internal_server_error",
- "unauthorized",
- "bad_request",
- "sandbox_error",
- "thread_rollback_failed",
- "other"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "http_connection_failed": {
- "properties": {
- "http_status_code": {
- "format": "uint16",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "type": "object"
- }
- },
- "required": [
- "http_connection_failed"
- ],
- "title": "HttpConnectionFailedCodexErrorInfo",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Failed to connect to the response SSE stream.",
- "properties": {
- "response_stream_connection_failed": {
- "properties": {
- "http_status_code": {
- "format": "uint16",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "type": "object"
- }
- },
- "required": [
- "response_stream_connection_failed"
- ],
- "title": "ResponseStreamConnectionFailedCodexErrorInfo",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "The response SSE stream disconnected in the middle of a turnbefore completion.",
- "properties": {
- "response_stream_disconnected": {
- "properties": {
- "http_status_code": {
- "format": "uint16",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "type": "object"
- }
- },
- "required": [
- "response_stream_disconnected"
- ],
- "title": "ResponseStreamDisconnectedCodexErrorInfo",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Reached the retry limit for responses.",
- "properties": {
- "response_too_many_failed_attempts": {
- "properties": {
- "http_status_code": {
- "format": "uint16",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "type": "object"
- }
- },
- "required": [
- "response_too_many_failed_attempts"
- ],
- "title": "ResponseTooManyFailedAttemptsCodexErrorInfo",
- "type": "object"
- }
- ]
- },
- "CollabAgentRef": {
- "properties": {
- "agent_nickname": {
- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "agent_role": {
- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver/new agent."
- }
- },
- "required": [
- "thread_id"
- ],
- "type": "object"
- },
- "CollabAgentStatusEntry": {
- "properties": {
- "agent_nickname": {
- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "agent_role": {
- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the agent."
- },
- "thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver/new agent."
- }
- },
- "required": [
- "status",
- "thread_id"
- ],
- "type": "object"
- },
- "ContentItem": {
- "oneOf": [
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "input_text"
- ],
- "title": "InputTextContentItemType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "InputTextContentItem",
- "type": "object"
- },
- {
- "properties": {
- "image_url": {
- "type": "string"
- },
- "type": {
- "enum": [
- "input_image"
- ],
- "title": "InputImageContentItemType",
- "type": "string"
- }
- },
- "required": [
- "image_url",
- "type"
- ],
- "title": "InputImageContentItem",
- "type": "object"
- },
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "output_text"
- ],
- "title": "OutputTextContentItemType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "OutputTextContentItem",
- "type": "object"
- }
- ]
- },
- "CreditsSnapshot": {
- "properties": {
- "balance": {
- "type": [
- "string",
- "null"
- ]
- },
- "has_credits": {
- "type": "boolean"
- },
- "unlimited": {
- "type": "boolean"
- }
- },
- "required": [
- "has_credits",
- "unlimited"
- ],
- "type": "object"
- },
- "CustomPrompt": {
- "properties": {
- "argument_hint": {
- "type": [
- "string",
- "null"
- ]
- },
- "content": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "name",
- "path"
- ],
- "type": "object"
- },
- "Duration": {
- "properties": {
- "nanos": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "secs": {
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- }
- },
- "required": [
- "nanos",
- "secs"
- ],
- "type": "object"
- },
- "DynamicToolCallOutputContentItem": {
- "oneOf": [
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "inputText"
- ],
- "title": "InputTextDynamicToolCallOutputContentItemType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "InputTextDynamicToolCallOutputContentItem",
- "type": "object"
- },
- {
- "properties": {
- "imageUrl": {
- "type": "string"
- },
- "type": {
- "enum": [
- "inputImage"
- ],
- "title": "InputImageDynamicToolCallOutputContentItemType",
- "type": "string"
- }
- },
- "required": [
- "imageUrl",
- "type"
- ],
- "title": "InputImageDynamicToolCallOutputContentItem",
- "type": "object"
- }
- ]
- },
- "ElicitationRequest": {
- "oneOf": [
- {
- "properties": {
- "_meta": true,
- "message": {
- "type": "string"
- },
- "mode": {
- "enum": [
- "form"
- ],
- "type": "string"
- },
- "requested_schema": true
- },
- "required": [
- "message",
- "mode",
- "requested_schema"
- ],
- "type": "object"
- },
- {
- "properties": {
- "_meta": true,
- "elicitation_id": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "mode": {
- "enum": [
- "url"
- ],
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "elicitation_id",
- "message",
- "mode",
- "url"
- ],
- "type": "object"
- }
- ]
- },
- "EventMsg": {
- "description": "Response event from the agent NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.",
- "oneOf": [
- {
- "description": "Error while executing a submission",
- "properties": {
- "codex_error_info": {
- "anyOf": [
- {
- "$ref": "#/definitions/CodexErrorInfo"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "error"
- ],
- "title": "ErrorEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "ErrorEventMsg",
- "type": "object"
- },
- {
- "description": "Warning issued while processing a submission. Unlike `Error`, this indicates the turn continued but the user should still be notified.",
- "properties": {
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "warning"
- ],
- "title": "WarningEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "WarningEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation lifecycle start event.",
- "properties": {
- "session_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "realtime_conversation_started"
- ],
- "title": "RealtimeConversationStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "RealtimeConversationStartedEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation streaming payload event.",
- "properties": {
- "payload": {
- "$ref": "#/definitions/RealtimeEvent"
- },
- "type": {
- "enum": [
- "realtime_conversation_realtime"
- ],
- "title": "RealtimeConversationRealtimeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "payload",
- "type"
- ],
- "title": "RealtimeConversationRealtimeEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation lifecycle close event.",
- "properties": {
- "reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "realtime_conversation_closed"
- ],
- "title": "RealtimeConversationClosedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "RealtimeConversationClosedEventMsg",
- "type": "object"
- },
- {
- "description": "Model routing changed from the requested model to a different model.",
- "properties": {
- "from_model": {
- "type": "string"
- },
- "reason": {
- "$ref": "#/definitions/ModelRerouteReason"
- },
- "to_model": {
- "type": "string"
- },
- "type": {
- "enum": [
- "model_reroute"
- ],
- "title": "ModelRerouteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "from_model",
- "reason",
- "to_model",
- "type"
- ],
- "title": "ModelRerouteEventMsg",
- "type": "object"
- },
- {
- "description": "Conversation history was compacted (either automatically or manually).",
- "properties": {
- "type": {
- "enum": [
- "context_compacted"
- ],
- "title": "ContextCompactedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ContextCompactedEventMsg",
- "type": "object"
- },
- {
- "description": "Conversation history was rolled back by dropping the last N user turns.",
- "properties": {
- "num_turns": {
- "description": "Number of user turns that were removed from context.",
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "type": {
- "enum": [
- "thread_rolled_back"
- ],
- "title": "ThreadRolledBackEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "num_turns",
- "type"
- ],
- "title": "ThreadRolledBackEventMsg",
- "type": "object"
- },
- {
- "description": "Agent has started a turn. v1 wire format uses `task_started`; accept `turn_started` for v2 interop.",
- "properties": {
- "collaboration_mode_kind": {
- "allOf": [
- {
- "$ref": "#/definitions/ModeKind"
- }
- ],
- "default": "default"
- },
- "model_context_window": {
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "task_started"
- ],
- "title": "TaskStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "turn_id",
- "type"
- ],
- "title": "TaskStartedEventMsg",
- "type": "object"
- },
- {
- "description": "Agent has completed all actions. v1 wire format uses `task_complete`; accept `turn_complete` for v2 interop.",
- "properties": {
- "last_agent_message": {
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "task_complete"
- ],
- "title": "TaskCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "turn_id",
- "type"
- ],
- "title": "TaskCompleteEventMsg",
- "type": "object"
- },
- {
- "description": "Usage update for the current session, including totals and last turn. Optional means unknown — UIs should not display when `None`.",
- "properties": {
- "info": {
- "anyOf": [
- {
- "$ref": "#/definitions/TokenUsageInfo"
- },
- {
- "type": "null"
- }
- ]
- },
- "rate_limits": {
- "anyOf": [
- {
- "$ref": "#/definitions/RateLimitSnapshot"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "enum": [
- "token_count"
- ],
- "title": "TokenCountEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "TokenCountEventMsg",
- "type": "object"
- },
- {
- "description": "Agent text output message",
- "properties": {
- "message": {
- "type": "string"
- },
- "phase": {
- "anyOf": [
- {
- "$ref": "#/definitions/MessagePhase"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "type": {
- "enum": [
- "agent_message"
- ],
- "title": "AgentMessageEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "AgentMessageEventMsg",
- "type": "object"
- },
- {
- "description": "User/system input message (what was sent to the model)",
- "properties": {
- "images": {
- "description": "Image URLs sourced from `UserInput::Image`. These are safe to replay in legacy UI history events and correspond to images sent to the model.",
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "local_images": {
- "default": [],
- "description": "Local file paths sourced from `UserInput::LocalImage`. These are kept so the UI can reattach images when editing history, and should not be sent to the model or treated as API-ready URLs.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "text_elements": {
- "default": [],
- "description": "UI-defined spans within `message` used to render or persist special elements.",
- "items": {
- "$ref": "#/definitions/TextElement"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "user_message"
- ],
- "title": "UserMessageEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "UserMessageEventMsg",
- "type": "object"
- },
- {
- "description": "Agent text output delta message",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_message_delta"
- ],
- "title": "AgentMessageDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentMessageDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Reasoning event from agent.",
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning"
- ],
- "title": "AgentReasoningEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "AgentReasoningEventMsg",
- "type": "object"
- },
- {
- "description": "Agent reasoning delta event from agent.",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_delta"
- ],
- "title": "AgentReasoningDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentReasoningDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Raw chain-of-thought from agent.",
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_raw_content"
- ],
- "title": "AgentReasoningRawContentEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "AgentReasoningRawContentEventMsg",
- "type": "object"
- },
- {
- "description": "Agent reasoning content delta event from agent.",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_raw_content_delta"
- ],
- "title": "AgentReasoningRawContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentReasoningRawContentDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Signaled when the model begins a new reasoning summary section (e.g., a new titled block).",
- "properties": {
- "item_id": {
- "default": "",
- "type": "string"
- },
- "summary_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "type": {
- "enum": [
- "agent_reasoning_section_break"
- ],
- "title": "AgentReasoningSectionBreakEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "AgentReasoningSectionBreakEventMsg",
- "type": "object"
- },
- {
- "description": "Ack the client's configure message.",
- "properties": {
- "approval_policy": {
- "allOf": [
- {
- "$ref": "#/definitions/AskForApproval"
- }
- ],
- "description": "When to escalate for approval for execution"
- },
- "cwd": {
- "description": "Working directory that should be treated as the *root* of the session.",
- "type": "string"
- },
- "forked_from_id": {
- "anyOf": [
- {
- "$ref": "#/definitions/ThreadId"
- },
- {
- "type": "null"
- }
- ]
- },
- "history_entry_count": {
- "description": "Current number of entries in the history log.",
- "format": "uint",
- "minimum": 0.0,
- "type": "integer"
- },
- "history_log_id": {
- "description": "Identifier of the history log file (inode on Unix, 0 otherwise).",
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- },
- "initial_messages": {
- "description": "Optional initial messages (as events) for resumed sessions. When present, UIs can use these to seed the history.",
- "items": {
- "$ref": "#/definitions/EventMsg"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "model": {
- "description": "Tell the client what model is being queried.",
- "type": "string"
- },
- "model_provider_id": {
- "type": "string"
- },
- "network_proxy": {
- "anyOf": [
- {
- "$ref": "#/definitions/SessionNetworkProxyRuntime"
- },
- {
- "type": "null"
- }
- ],
- "description": "Runtime proxy bind addresses, when the managed proxy was started for this session."
- },
- "reasoning_effort": {
- "anyOf": [
- {
- "$ref": "#/definitions/ReasoningEffort"
- },
- {
- "type": "null"
- }
- ],
- "description": "The effort the model is putting into reasoning about the user's request."
- },
- "rollout_path": {
- "description": "Path in which the rollout is stored. Can be `None` for ephemeral threads",
- "type": [
- "string",
- "null"
- ]
- },
- "sandbox_policy": {
- "allOf": [
- {
- "$ref": "#/definitions/SandboxPolicy"
- }
- ],
- "description": "How to sandbox commands executed in the system"
- },
- "service_tier": {
- "anyOf": [
- {
- "$ref": "#/definitions/ServiceTier"
- },
- {
- "type": "null"
- }
- ]
- },
- "session_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "thread_name": {
- "description": "Optional user-facing thread name (may be unset).",
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "session_configured"
- ],
- "title": "SessionConfiguredEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "approval_policy",
- "cwd",
- "history_entry_count",
- "history_log_id",
- "model",
- "model_provider_id",
- "sandbox_policy",
- "session_id",
- "type"
- ],
- "title": "SessionConfiguredEventMsg",
- "type": "object"
- },
- {
- "description": "Updated session metadata (e.g., thread name changes).",
- "properties": {
- "thread_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "thread_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "thread_name_updated"
- ],
- "title": "ThreadNameUpdatedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "thread_id",
- "type"
- ],
- "title": "ThreadNameUpdatedEventMsg",
- "type": "object"
- },
- {
- "description": "Incremental MCP startup progress updates.",
- "properties": {
- "server": {
- "description": "Server name being started.",
- "type": "string"
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/McpStartupStatus"
- }
- ],
- "description": "Current startup status."
- },
- "type": {
- "enum": [
- "mcp_startup_update"
- ],
- "title": "McpStartupUpdateEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "server",
- "status",
- "type"
- ],
- "title": "McpStartupUpdateEventMsg",
- "type": "object"
- },
- {
- "description": "Aggregate MCP startup completion summary.",
- "properties": {
- "cancelled": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "failed": {
- "items": {
- "$ref": "#/definitions/McpStartupFailure"
- },
- "type": "array"
- },
- "ready": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "mcp_startup_complete"
- ],
- "title": "McpStartupCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "cancelled",
- "failed",
- "ready",
- "type"
- ],
- "title": "McpStartupCompleteEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Identifier so this can be paired with the McpToolCallEnd event.",
- "type": "string"
- },
- "invocation": {
- "$ref": "#/definitions/McpInvocation"
- },
- "type": {
- "enum": [
- "mcp_tool_call_begin"
- ],
- "title": "McpToolCallBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "invocation",
- "type"
- ],
- "title": "McpToolCallBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Identifier for the corresponding McpToolCallBegin that finished.",
- "type": "string"
- },
- "duration": {
- "$ref": "#/definitions/Duration"
- },
- "invocation": {
- "$ref": "#/definitions/McpInvocation"
- },
- "result": {
- "allOf": [
- {
- "$ref": "#/definitions/Result_of_CallToolResult_or_String"
- }
- ],
- "description": "Result of the tool call. Note this could be an error."
- },
- "type": {
- "enum": [
- "mcp_tool_call_end"
- ],
- "title": "McpToolCallEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "duration",
- "invocation",
- "result",
- "type"
- ],
- "title": "McpToolCallEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "web_search_begin"
- ],
- "title": "WebSearchBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "type"
- ],
- "title": "WebSearchBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "action": {
- "$ref": "#/definitions/ResponsesApiWebSearchAction"
- },
- "call_id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "type": {
- "enum": [
- "web_search_end"
- ],
- "title": "WebSearchEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "action",
- "call_id",
- "query",
- "type"
- ],
- "title": "WebSearchEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "image_generation_begin"
- ],
- "title": "ImageGenerationBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "type"
- ],
- "title": "ImageGenerationBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "result": {
- "type": "string"
- },
- "revised_prompt": {
- "type": [
- "string",
- "null"
- ]
- },
- "saved_path": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "type": "string"
- },
- "type": {
- "enum": [
- "image_generation_end"
- ],
- "title": "ImageGenerationEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "result",
- "status",
- "type"
- ],
- "title": "ImageGenerationEndEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the server is about to execute a command.",
- "properties": {
- "call_id": {
- "description": "Identifier so this can be paired with the ExecCommandEnd event.",
- "type": "string"
- },
- "command": {
- "description": "The command to be executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory if not the default cwd for the agent.",
- "type": "string"
- },
- "interaction_input": {
- "description": "Raw input sent to a unified exec session (if this is an interaction event).",
- "type": [
- "string",
- "null"
- ]
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "process_id": {
- "description": "Identifier for the underlying PTY process (when available).",
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandSource"
- }
- ],
- "default": "agent",
- "description": "Where the command originated. Defaults to Agent for backward compatibility."
- },
- "turn_id": {
- "description": "Turn ID that this command belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_command_begin"
- ],
- "title": "ExecCommandBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "parsed_cmd",
- "turn_id",
- "type"
- ],
- "title": "ExecCommandBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Incremental chunk of output from a running command.",
- "properties": {
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that produced this chunk.",
- "type": "string"
- },
- "chunk": {
- "description": "Raw bytes from the stream (may not be valid UTF-8).",
- "type": "string"
- },
- "stream": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecOutputStream"
- }
- ],
- "description": "Which stream produced this chunk."
- },
- "type": {
- "enum": [
- "exec_command_output_delta"
- ],
- "title": "ExecCommandOutputDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "chunk",
- "stream",
- "type"
- ],
- "title": "ExecCommandOutputDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Terminal interaction for an in-progress command (stdin sent and stdout observed).",
- "properties": {
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that produced this chunk.",
- "type": "string"
- },
- "process_id": {
- "description": "Process id associated with the running command.",
- "type": "string"
- },
- "stdin": {
- "description": "Stdin sent to the running session.",
- "type": "string"
- },
- "type": {
- "enum": [
- "terminal_interaction"
- ],
- "title": "TerminalInteractionEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "process_id",
- "stdin",
- "type"
- ],
- "title": "TerminalInteractionEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "aggregated_output": {
- "default": "",
- "description": "Captured aggregated output",
- "type": "string"
- },
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that finished.",
- "type": "string"
- },
- "command": {
- "description": "The command that was executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory if not the default cwd for the agent.",
- "type": "string"
- },
- "duration": {
- "allOf": [
- {
- "$ref": "#/definitions/Duration"
- }
- ],
- "description": "The duration of the command execution."
- },
- "exit_code": {
- "description": "The command's exit code.",
- "format": "int32",
- "type": "integer"
- },
- "formatted_output": {
- "description": "Formatted output from the command, as seen by the model.",
- "type": "string"
- },
- "interaction_input": {
- "description": "Raw input sent to a unified exec session (if this is an interaction event).",
- "type": [
- "string",
- "null"
- ]
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "process_id": {
- "description": "Identifier for the underlying PTY process (when available).",
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandSource"
- }
- ],
- "default": "agent",
- "description": "Where the command originated. Defaults to Agent for backward compatibility."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandStatus"
- }
- ],
- "description": "Completion status for this command execution."
- },
- "stderr": {
- "description": "Captured stderr",
- "type": "string"
- },
- "stdout": {
- "description": "Captured stdout",
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this command belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_command_end"
- ],
- "title": "ExecCommandEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "duration",
- "exit_code",
- "formatted_output",
- "parsed_cmd",
- "status",
- "stderr",
- "stdout",
- "turn_id",
- "type"
- ],
- "title": "ExecCommandEndEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent attached a local image via the view_image tool.",
- "properties": {
- "call_id": {
- "description": "Identifier for the originating tool call.",
- "type": "string"
- },
- "path": {
- "description": "Local filesystem path provided to the tool.",
- "type": "string"
- },
- "type": {
- "enum": [
- "view_image_tool_call"
- ],
- "title": "ViewImageToolCallEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "path",
- "type"
- ],
- "title": "ViewImageToolCallEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "additional_permissions": {
- "anyOf": [
- {
- "$ref": "#/definitions/PermissionProfile"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional additional filesystem permissions requested for this command."
- },
- "approval_id": {
- "description": "Identifier for this specific approval callback.\n\nWhen absent, the approval is for the command item itself (`call_id`). This is present for subcommand approvals (via execve intercept).",
- "type": [
- "string",
- "null"
- ]
- },
- "available_decisions": {
- "description": "Ordered list of decisions the client may present for this prompt.\n\nWhen absent, clients should derive the legacy default set from the other fields on this request.",
- "items": {
- "$ref": "#/definitions/ReviewDecision"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "call_id": {
- "description": "Identifier for the associated command execution item.",
- "type": "string"
- },
- "command": {
- "description": "The command to be executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory.",
- "type": "string"
- },
- "network_approval_context": {
- "anyOf": [
- {
- "$ref": "#/definitions/NetworkApprovalContext"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional network context for a blocked request that can be approved."
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "proposed_execpolicy_amendment": {
- "description": "Proposed execpolicy amendment that can be applied to allow future runs.",
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "proposed_network_policy_amendments": {
- "description": "Proposed network policy amendments (for example allow/deny this host in future).",
- "items": {
- "$ref": "#/definitions/NetworkPolicyAmendment"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "reason": {
- "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",
- "type": [
- "string",
- "null"
- ]
- },
- "skill_metadata": {
- "anyOf": [
- {
- "$ref": "#/definitions/ExecApprovalRequestSkillMetadata"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional skill metadata when the approval was triggered by a skill script."
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this command belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_approval_request"
- ],
- "title": "ExecApprovalRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "parsed_cmd",
- "type"
- ],
- "title": "ExecApprovalRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated tool call, if available.",
- "type": "string"
- },
- "permissions": {
- "$ref": "#/definitions/PermissionProfile"
- },
- "reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "request_permissions"
- ],
- "title": "RequestPermissionsEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "permissions",
- "type"
- ],
- "title": "RequestPermissionsEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated tool call, if available.",
- "type": "string"
- },
- "questions": {
- "items": {
- "$ref": "#/definitions/RequestUserInputQuestion"
- },
- "type": "array"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "request_user_input"
- ],
- "title": "RequestUserInputEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "questions",
- "type"
- ],
- "title": "RequestUserInputEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "arguments": true,
- "callId": {
- "type": "string"
- },
- "tool": {
- "type": "string"
- },
- "turnId": {
- "type": "string"
- },
- "type": {
- "enum": [
- "dynamic_tool_call_request"
- ],
- "title": "DynamicToolCallRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "arguments",
- "callId",
- "tool",
- "turnId",
- "type"
- ],
- "title": "DynamicToolCallRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "arguments": {
- "description": "Dynamic tool call arguments."
- },
- "call_id": {
- "description": "Identifier for the corresponding DynamicToolCallRequest.",
- "type": "string"
- },
- "content_items": {
- "description": "Dynamic tool response content items.",
- "items": {
- "$ref": "#/definitions/DynamicToolCallOutputContentItem"
- },
- "type": "array"
- },
- "duration": {
- "allOf": [
- {
- "$ref": "#/definitions/Duration"
- }
- ],
- "description": "The duration of the dynamic tool call."
- },
- "error": {
- "description": "Optional error text when the tool call failed before producing a response.",
- "type": [
- "string",
- "null"
- ]
- },
- "success": {
- "description": "Whether the tool call succeeded.",
- "type": "boolean"
- },
- "tool": {
- "description": "Dynamic tool name.",
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this dynamic tool call belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "dynamic_tool_call_response"
- ],
- "title": "DynamicToolCallResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "arguments",
- "call_id",
- "content_items",
- "duration",
- "success",
- "tool",
- "turn_id",
- "type"
- ],
- "title": "DynamicToolCallResponseEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "$ref": "#/definitions/RequestId"
- },
- "request": {
- "$ref": "#/definitions/ElicitationRequest"
- },
- "server_name": {
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this elicitation belongs to, when known.",
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "elicitation_request"
- ],
- "title": "ElicitationRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "request",
- "server_name",
- "type"
- ],
- "title": "ElicitationRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated patch apply call, if available.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "type": "object"
- },
- "grant_root": {
- "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session.",
- "type": [
- "string",
- "null"
- ]
- },
- "reason": {
- "description": "Optional explanatory reason (e.g. request for extra write access).",
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility with older senders.",
- "type": "string"
- },
- "type": {
- "enum": [
- "apply_patch_approval_request"
- ],
- "title": "ApplyPatchApprovalRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "changes",
- "type"
- ],
- "title": "ApplyPatchApprovalRequestEventMsg",
- "type": "object"
- },
- {
- "description": "Notification advising the user that something they are using has been deprecated and should be phased out.",
- "properties": {
- "details": {
- "description": "Optional extra guidance, such as migration steps or rationale.",
- "type": [
- "string",
- "null"
- ]
- },
- "summary": {
- "description": "Concise summary of what is deprecated.",
- "type": "string"
- },
- "type": {
- "enum": [
- "deprecation_notice"
- ],
- "title": "DeprecationNoticeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "summary",
- "type"
- ],
- "title": "DeprecationNoticeEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "background_event"
- ],
- "title": "BackgroundEventEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "BackgroundEventEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "undo_started"
- ],
- "title": "UndoStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "UndoStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": [
- "string",
- "null"
- ]
- },
- "success": {
- "type": "boolean"
- },
- "type": {
- "enum": [
- "undo_completed"
- ],
- "title": "UndoCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "success",
- "type"
- ],
- "title": "UndoCompletedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that a model stream experienced an error or disconnect and the system is handling it (e.g., retrying with backoff).",
- "properties": {
- "additional_details": {
- "default": null,
- "description": "Optional details about the underlying stream failure (often the same human-readable message that is surfaced as the terminal error if retries are exhausted).",
- "type": [
- "string",
- "null"
- ]
- },
- "codex_error_info": {
- "anyOf": [
- {
- "$ref": "#/definitions/CodexErrorInfo"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "stream_error"
- ],
- "title": "StreamErrorEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "StreamErrorEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent is about to apply a code patch. Mirrors `ExecCommandBegin` so front‑ends can show progress indicators.",
- "properties": {
- "auto_approved": {
- "description": "If true, there was no ApplyPatchApprovalRequest for this patch.",
- "type": "boolean"
- },
- "call_id": {
- "description": "Identifier so this can be paired with the PatchApplyEnd event.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "description": "The changes to be applied.",
- "type": "object"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "patch_apply_begin"
- ],
- "title": "PatchApplyBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "auto_approved",
- "call_id",
- "changes",
- "type"
- ],
- "title": "PatchApplyBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that a patch application has finished.",
- "properties": {
- "call_id": {
- "description": "Identifier for the PatchApplyBegin that finished.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "default": {},
- "description": "The changes that were applied (mirrors PatchApplyBeginEvent::changes).",
- "type": "object"
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/PatchApplyStatus"
- }
- ],
- "description": "Completion status for this patch application."
- },
- "stderr": {
- "description": "Captured stderr (parser errors, IO failures, etc.).",
- "type": "string"
- },
- "stdout": {
- "description": "Captured stdout (summary printed by apply_patch).",
- "type": "string"
- },
- "success": {
- "description": "Whether the patch was applied successfully.",
- "type": "boolean"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "patch_apply_end"
- ],
- "title": "PatchApplyEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "status",
- "stderr",
- "stdout",
- "success",
- "type"
- ],
- "title": "PatchApplyEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": [
- "turn_diff"
- ],
- "title": "TurnDiffEventMsgType",
- "type": "string"
- },
- "unified_diff": {
- "type": "string"
- }
- },
- "required": [
- "type",
- "unified_diff"
- ],
- "title": "TurnDiffEventMsg",
- "type": "object"
- },
- {
- "description": "Response to GetHistoryEntryRequest.",
- "properties": {
- "entry": {
- "anyOf": [
- {
- "$ref": "#/definitions/HistoryEntry"
- },
- {
- "type": "null"
- }
- ],
- "description": "The entry at the requested offset, if available and parseable."
- },
- "log_id": {
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- },
- "offset": {
- "format": "uint",
- "minimum": 0.0,
- "type": "integer"
- },
- "type": {
- "enum": [
- "get_history_entry_response"
- ],
- "title": "GetHistoryEntryResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "log_id",
- "offset",
- "type"
- ],
- "title": "GetHistoryEntryResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of MCP tools available to the agent.",
- "properties": {
- "auth_statuses": {
- "additionalProperties": {
- "$ref": "#/definitions/McpAuthStatus"
- },
- "description": "Authentication status for each configured MCP server.",
- "type": "object"
- },
- "resource_templates": {
- "additionalProperties": {
- "items": {
- "$ref": "#/definitions/ResourceTemplate"
- },
- "type": "array"
- },
- "description": "Known resource templates grouped by server name.",
- "type": "object"
- },
- "resources": {
- "additionalProperties": {
- "items": {
- "$ref": "#/definitions/Resource"
- },
- "type": "array"
- },
- "description": "Known resources grouped by server name.",
- "type": "object"
- },
- "tools": {
- "additionalProperties": {
- "$ref": "#/definitions/Tool"
- },
- "description": "Fully qualified tool name -> tool definition.",
- "type": "object"
- },
- "type": {
- "enum": [
- "mcp_list_tools_response"
- ],
- "title": "McpListToolsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "auth_statuses",
- "resource_templates",
- "resources",
- "tools",
- "type"
- ],
- "title": "McpListToolsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of custom prompts available to the agent.",
- "properties": {
- "custom_prompts": {
- "items": {
- "$ref": "#/definitions/CustomPrompt"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_custom_prompts_response"
- ],
- "title": "ListCustomPromptsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "custom_prompts",
- "type"
- ],
- "title": "ListCustomPromptsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of skills available to the agent.",
- "properties": {
- "skills": {
- "items": {
- "$ref": "#/definitions/SkillsListEntry"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_skills_response"
- ],
- "title": "ListSkillsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "skills",
- "type"
- ],
- "title": "ListSkillsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of remote skills available to the agent.",
- "properties": {
- "skills": {
- "items": {
- "$ref": "#/definitions/RemoteSkillSummary"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_remote_skills_response"
- ],
- "title": "ListRemoteSkillsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "skills",
- "type"
- ],
- "title": "ListRemoteSkillsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "Remote skill downloaded to local cache.",
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "type": {
- "enum": [
- "remote_skill_downloaded"
- ],
- "title": "RemoteSkillDownloadedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "path",
- "type"
- ],
- "title": "RemoteSkillDownloadedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that skill data may have been updated and clients may want to reload.",
- "properties": {
- "type": {
- "enum": [
- "skills_update_available"
- ],
- "title": "SkillsUpdateAvailableEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "SkillsUpdateAvailableEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "explanation": {
- "default": null,
- "description": "Arguments for the `update_plan` todo/checklist tool (not plan mode).",
- "type": [
- "string",
- "null"
- ]
- },
- "plan": {
- "items": {
- "$ref": "#/definitions/PlanItemArg"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "plan_update"
- ],
- "title": "PlanUpdateEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "plan",
- "type"
- ],
- "title": "PlanUpdateEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "reason": {
- "$ref": "#/definitions/TurnAbortReason"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "turn_aborted"
- ],
- "title": "TurnAbortedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "reason",
- "type"
- ],
- "title": "TurnAbortedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent is shutting down.",
- "properties": {
- "type": {
- "enum": [
- "shutdown_complete"
- ],
- "title": "ShutdownCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ShutdownCompleteEventMsg",
- "type": "object"
- },
- {
- "description": "Entered review mode.",
- "properties": {
- "target": {
- "$ref": "#/definitions/ReviewTarget"
- },
- "type": {
- "enum": [
- "entered_review_mode"
- ],
- "title": "EnteredReviewModeEventMsgType",
- "type": "string"
- },
- "user_facing_hint": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "target",
- "type"
- ],
- "title": "EnteredReviewModeEventMsg",
- "type": "object"
- },
- {
- "description": "Exited review mode with an optional final result to apply.",
- "properties": {
- "review_output": {
- "anyOf": [
- {
- "$ref": "#/definitions/ReviewOutputEvent"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "enum": [
- "exited_review_mode"
- ],
- "title": "ExitedReviewModeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ExitedReviewModeEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/ResponseItem"
- },
- "type": {
- "enum": [
- "raw_response_item"
- ],
- "title": "RawResponseItemEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "type"
- ],
- "title": "RawResponseItemEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/TurnItem"
- },
- "thread_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "item_started"
- ],
- "title": "ItemStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ItemStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/TurnItem"
- },
- "thread_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "item_completed"
- ],
- "title": "ItemCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ItemCompletedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "run": {
- "$ref": "#/definitions/HookRunSummary"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "hook_started"
- ],
- "title": "HookStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "run",
- "type"
- ],
- "title": "HookStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "run": {
- "$ref": "#/definitions/HookRunSummary"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "hook_completed"
- ],
- "title": "HookCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "run",
- "type"
- ],
- "title": "HookCompletedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_message_content_delta"
- ],
- "title": "AgentMessageContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "AgentMessageContentDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "plan_delta"
- ],
- "title": "PlanDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "PlanDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "summary_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "reasoning_content_delta"
- ],
- "title": "ReasoningContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ReasoningContentDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "content_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "reasoning_raw_content_delta"
- ],
- "title": "ReasoningRawContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ReasoningRawContentDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent spawn begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "model": {
- "type": "string"
- },
- "prompt": {
- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "reasoning_effort": {
- "$ref": "#/definitions/ReasoningEffort"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_agent_spawn_begin"
- ],
- "title": "CollabAgentSpawnBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "model",
- "prompt",
- "reasoning_effort",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabAgentSpawnBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent spawn end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "model": {
- "description": "Model requested for the spawned agent.",
- "type": "string"
- },
- "new_agent_nickname": {
- "description": "Optional nickname assigned to the new agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "new_agent_role": {
- "description": "Optional role assigned to the new agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "new_thread_id": {
- "anyOf": [
- {
- "$ref": "#/definitions/ThreadId"
- },
- {
- "type": "null"
- }
- ],
- "description": "Thread ID of the newly spawned agent, if it was created."
- },
- "prompt": {
- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "reasoning_effort": {
- "allOf": [
- {
- "$ref": "#/definitions/ReasoningEffort"
- }
- ],
- "description": "Reasoning effort requested for the spawned agent."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the new agent reported to the sender agent."
- },
- "type": {
- "enum": [
- "collab_agent_spawn_end"
- ],
- "title": "CollabAgentSpawnEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "model",
- "prompt",
- "reasoning_effort",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabAgentSpawnEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent interaction begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "prompt": {
- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_agent_interaction_begin"
- ],
- "title": "CollabAgentInteractionBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "prompt",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabAgentInteractionBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent interaction end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "prompt": {
- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent."
- },
- "type": {
- "enum": [
- "collab_agent_interaction_end"
- ],
- "title": "CollabAgentInteractionEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "prompt",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabAgentInteractionEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: waiting begin.",
- "properties": {
- "call_id": {
- "description": "ID of the waiting call.",
- "type": "string"
- },
- "receiver_agents": {
- "description": "Optional nicknames/roles for receivers.",
- "items": {
- "$ref": "#/definitions/CollabAgentRef"
- },
- "type": "array"
- },
- "receiver_thread_ids": {
- "description": "Thread ID of the receivers.",
- "items": {
- "$ref": "#/definitions/ThreadId"
- },
- "type": "array"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_waiting_begin"
- ],
- "title": "CollabWaitingBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_ids",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabWaitingBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: waiting end.",
- "properties": {
- "agent_statuses": {
- "description": "Optional receiver metadata paired with final statuses.",
- "items": {
- "$ref": "#/definitions/CollabAgentStatusEntry"
- },
- "type": "array"
- },
- "call_id": {
- "description": "ID of the waiting call.",
- "type": "string"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "statuses": {
- "additionalProperties": {
- "$ref": "#/definitions/AgentStatus"
- },
- "description": "Last known status of the receiver agents reported to the sender agent.",
- "type": "object"
- },
- "type": {
- "enum": [
- "collab_waiting_end"
- ],
- "title": "CollabWaitingEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "sender_thread_id",
- "statuses",
- "type"
- ],
- "title": "CollabWaitingEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: close begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_close_begin"
- ],
- "title": "CollabCloseBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabCloseBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: close end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent before the close."
- },
- "type": {
- "enum": [
- "collab_close_end"
- ],
- "title": "CollabCloseEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabCloseEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: resume begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_resume_begin"
- ],
- "title": "CollabResumeBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabResumeBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: resume end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent after resume."
- },
- "type": {
- "enum": [
- "collab_resume_end"
- ],
- "title": "CollabResumeEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabResumeEndEventMsg",
- "type": "object"
- }
- ]
- },
- "ExecApprovalRequestSkillMetadata": {
- "properties": {
- "path_to_skills_md": {
- "type": "string"
- }
- },
- "required": [
- "path_to_skills_md"
- ],
- "type": "object"
- },
- "ExecCommandSource": {
- "enum": [
- "agent",
- "user_shell",
- "unified_exec_startup",
- "unified_exec_interaction"
- ],
- "type": "string"
- },
- "ExecCommandStatus": {
- "enum": [
- "completed",
- "failed",
- "declined"
- ],
- "type": "string"
- },
- "ExecOutputStream": {
- "enum": [
- "stdout",
- "stderr"
- ],
- "type": "string"
- },
- "FileChange": {
- "oneOf": [
- {
- "properties": {
- "content": {
- "type": "string"
- },
- "type": {
- "enum": [
- "add"
- ],
- "title": "AddFileChangeType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "type"
- ],
- "title": "AddFileChange",
- "type": "object"
- },
- {
- "properties": {
- "content": {
- "type": "string"
- },
- "type": {
- "enum": [
- "delete"
- ],
- "title": "DeleteFileChangeType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "type"
- ],
- "title": "DeleteFileChange",
- "type": "object"
- },
- {
- "properties": {
- "move_path": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "update"
- ],
- "title": "UpdateFileChangeType",
- "type": "string"
- },
- "unified_diff": {
- "type": "string"
- }
- },
- "required": [
- "type",
- "unified_diff"
- ],
- "title": "UpdateFileChange",
- "type": "object"
- }
- ]
- },
- "FileSystemPermissions": {
- "properties": {
- "read": {
- "items": {
- "$ref": "#/definitions/AbsolutePathBuf"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "write": {
- "items": {
- "$ref": "#/definitions/AbsolutePathBuf"
- },
- "type": [
- "array",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "FunctionCallOutputBody": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "items": {
- "$ref": "#/definitions/FunctionCallOutputContentItem"
- },
- "type": "array"
- }
- ]
- },
- "FunctionCallOutputContentItem": {
- "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.",
- "oneOf": [
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "input_text"
- ],
- "title": "InputTextFunctionCallOutputContentItemType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "InputTextFunctionCallOutputContentItem",
- "type": "object"
- },
- {
- "properties": {
- "detail": {
- "anyOf": [
- {
- "$ref": "#/definitions/ImageDetail"
- },
- {
- "type": "null"
- }
- ]
- },
- "image_url": {
- "type": "string"
- },
- "type": {
- "enum": [
- "input_image"
- ],
- "title": "InputImageFunctionCallOutputContentItemType",
- "type": "string"
- }
- },
- "required": [
- "image_url",
- "type"
- ],
- "title": "InputImageFunctionCallOutputContentItem",
- "type": "object"
- }
- ]
- },
- "FunctionCallOutputPayload": {
- "description": "The payload we send back to OpenAI when reporting a tool call result.\n\n`body` serializes directly as the wire value for `function_call_output.output`. `success` remains internal metadata for downstream handling.",
- "properties": {
- "body": {
- "$ref": "#/definitions/FunctionCallOutputBody"
- },
- "success": {
- "type": [
- "boolean",
- "null"
- ]
- }
- },
- "required": [
- "body"
- ],
- "type": "object"
- },
- "GhostCommit": {
- "description": "Details of a ghost commit created from a repository state.",
- "properties": {
- "id": {
- "type": "string"
- },
- "parent": {
- "type": [
- "string",
- "null"
- ]
- },
- "preexisting_untracked_dirs": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "preexisting_untracked_files": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "id",
- "preexisting_untracked_dirs",
- "preexisting_untracked_files"
- ],
- "type": "object"
- },
- "HistoryEntry": {
- "properties": {
- "conversation_id": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "ts": {
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- }
- },
- "required": [
- "conversation_id",
- "text",
- "ts"
- ],
- "type": "object"
- },
- "HookEventName": {
- "enum": [
- "session_start",
- "stop"
- ],
- "type": "string"
- },
- "HookExecutionMode": {
- "enum": [
- "sync",
- "async"
- ],
- "type": "string"
- },
- "HookHandlerType": {
- "enum": [
- "command",
- "prompt",
- "agent"
- ],
- "type": "string"
- },
- "HookOutputEntry": {
- "properties": {
- "kind": {
- "$ref": "#/definitions/HookOutputEntryKind"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "text"
- ],
- "type": "object"
- },
- "HookOutputEntryKind": {
- "enum": [
- "warning",
- "stop",
- "feedback",
- "context",
- "error"
- ],
- "type": "string"
- },
- "HookRunStatus": {
- "enum": [
- "running",
- "completed",
- "failed",
- "blocked",
- "stopped"
- ],
- "type": "string"
- },
- "HookRunSummary": {
- "properties": {
- "completed_at": {
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "display_order": {
- "format": "int64",
- "type": "integer"
- },
- "duration_ms": {
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "entries": {
- "items": {
- "$ref": "#/definitions/HookOutputEntry"
- },
- "type": "array"
- },
- "event_name": {
- "$ref": "#/definitions/HookEventName"
- },
- "execution_mode": {
- "$ref": "#/definitions/HookExecutionMode"
- },
- "handler_type": {
- "$ref": "#/definitions/HookHandlerType"
- },
- "id": {
- "type": "string"
- },
- "scope": {
- "$ref": "#/definitions/HookScope"
- },
- "source_path": {
- "type": "string"
- },
- "started_at": {
- "format": "int64",
- "type": "integer"
- },
- "status": {
- "$ref": "#/definitions/HookRunStatus"
- },
- "status_message": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "display_order",
- "entries",
- "event_name",
- "execution_mode",
- "handler_type",
- "id",
- "scope",
- "source_path",
- "started_at",
- "status"
- ],
- "type": "object"
- },
- "HookScope": {
- "enum": [
- "thread",
- "turn"
- ],
- "type": "string"
- },
- "ImageDetail": {
- "enum": [
- "auto",
- "low",
- "high",
- "original"
- ],
- "type": "string"
- },
- "LocalShellAction": {
- "oneOf": [
- {
- "properties": {
- "command": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "env": {
- "additionalProperties": {
- "type": "string"
- },
- "type": [
- "object",
- "null"
- ]
- },
- "timeout_ms": {
- "format": "uint64",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- },
- "type": {
- "enum": [
- "exec"
- ],
- "title": "ExecLocalShellActionType",
- "type": "string"
- },
- "user": {
- "type": [
- "string",
- "null"
- ]
- },
- "working_directory": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "command",
- "type"
- ],
- "title": "ExecLocalShellAction",
- "type": "object"
- }
- ]
- },
- "LocalShellStatus": {
- "enum": [
- "completed",
- "in_progress",
- "incomplete"
- ],
- "type": "string"
- },
- "MacOsAutomationPermission": {
- "oneOf": [
- {
- "enum": [
- "none",
- "all"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "bundle_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "bundle_ids"
- ],
- "title": "BundleIdsMacOsAutomationPermission",
- "type": "object"
- }
- ]
- },
- "MacOsContactsPermission": {
- "enum": [
- "none",
- "read_only",
- "read_write"
- ],
- "type": "string"
- },
- "MacOsPreferencesPermission": {
- "enum": [
- "none",
- "read_only",
- "read_write"
- ],
- "type": "string"
- },
- "MacOsSeatbeltProfileExtensions": {
- "properties": {
- "macos_accessibility": {
- "default": false,
- "type": "boolean"
- },
- "macos_automation": {
- "allOf": [
- {
- "$ref": "#/definitions/MacOsAutomationPermission"
- }
- ],
- "default": "none"
- },
- "macos_calendar": {
- "default": false,
- "type": "boolean"
- },
- "macos_contacts": {
- "allOf": [
- {
- "$ref": "#/definitions/MacOsContactsPermission"
- }
- ],
- "default": "none"
- },
- "macos_launch_services": {
- "default": false,
- "type": "boolean"
- },
- "macos_preferences": {
- "allOf": [
- {
- "$ref": "#/definitions/MacOsPreferencesPermission"
- }
- ],
- "default": "read_only"
- },
- "macos_reminders": {
- "default": false,
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "McpAuthStatus": {
- "enum": [
- "unsupported",
- "not_logged_in",
- "bearer_token",
- "o_auth"
- ],
- "type": "string"
- },
- "McpInvocation": {
- "properties": {
- "arguments": {
- "description": "Arguments to the tool call."
- },
- "server": {
- "description": "Name of the MCP server as defined in the config.",
- "type": "string"
- },
- "tool": {
- "description": "Name of the tool as given by the MCP server.",
- "type": "string"
- }
- },
- "required": [
- "server",
- "tool"
- ],
- "type": "object"
- },
- "McpStartupFailure": {
- "properties": {
- "error": {
- "type": "string"
- },
- "server": {
- "type": "string"
- }
- },
- "required": [
- "error",
- "server"
- ],
- "type": "object"
- },
- "McpStartupStatus": {
- "oneOf": [
- {
- "properties": {
- "state": {
- "enum": [
- "starting"
- ],
- "type": "string"
- }
- },
- "required": [
- "state"
- ],
- "title": "StartingMcpStartupStatus",
- "type": "object"
- },
- {
- "properties": {
- "state": {
- "enum": [
- "ready"
- ],
- "type": "string"
- }
- },
- "required": [
- "state"
- ],
- "title": "ReadyMcpStartupStatus",
- "type": "object"
- },
- {
- "properties": {
- "error": {
- "type": "string"
- },
- "state": {
- "enum": [
- "failed"
- ],
- "type": "string"
- }
- },
- "required": [
- "error",
- "state"
- ],
- "type": "object"
- },
- {
- "properties": {
- "state": {
- "enum": [
- "cancelled"
- ],
- "type": "string"
- }
- },
- "required": [
- "state"
- ],
- "title": "CancelledMcpStartupStatus",
- "type": "object"
- }
- ]
- },
- "MessagePhase": {
- "description": "Classifies an assistant message as interim commentary or final answer text.\n\nProviders do not emit this consistently, so callers must treat `None` as \"phase unknown\" and keep compatibility behavior for legacy models.",
- "oneOf": [
- {
- "description": "Mid-turn assistant text (for example preamble/progress narration).\n\nAdditional tool calls or assistant output may follow before turn completion.",
- "enum": [
- "commentary"
- ],
- "type": "string"
- },
- {
- "description": "The assistant's terminal answer text for the current turn.",
- "enum": [
- "final_answer"
- ],
- "type": "string"
- }
- ]
- },
- "ModeKind": {
- "description": "Initial collaboration mode to use when the TUI starts.",
- "enum": [
- "plan",
- "default"
- ],
- "type": "string"
- },
- "ModelRerouteReason": {
- "enum": [
- "high_risk_cyber_activity"
- ],
- "type": "string"
- },
- "NetworkAccess": {
- "description": "Represents whether outbound network access is available to the agent.",
- "enum": [
- "restricted",
- "enabled"
- ],
- "type": "string"
- },
- "NetworkApprovalContext": {
- "properties": {
- "host": {
- "type": "string"
- },
- "protocol": {
- "$ref": "#/definitions/NetworkApprovalProtocol"
- }
- },
- "required": [
- "host",
- "protocol"
- ],
- "type": "object"
- },
- "NetworkApprovalProtocol": {
- "enum": [
- "http",
- "https",
- "socks5_tcp",
- "socks5_udp"
- ],
- "type": "string"
- },
- "NetworkPermissions": {
- "properties": {
- "enabled": {
- "type": [
- "boolean",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "NetworkPolicyAmendment": {
- "properties": {
- "action": {
- "$ref": "#/definitions/NetworkPolicyRuleAction"
- },
- "host": {
- "type": "string"
- }
- },
- "required": [
- "action",
- "host"
- ],
- "type": "object"
- },
- "NetworkPolicyRuleAction": {
- "enum": [
- "allow",
- "deny"
- ],
- "type": "string"
- },
- "ParsedCommand": {
- "oneOf": [
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "description": "(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.",
- "type": "string"
- },
- "type": {
- "enum": [
- "read"
- ],
- "title": "ReadParsedCommandType",
- "type": "string"
- }
- },
- "required": [
- "cmd",
- "name",
- "path",
- "type"
- ],
- "title": "ReadParsedCommand",
- "type": "object"
- },
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "path": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "list_files"
- ],
- "title": "ListFilesParsedCommandType",
- "type": "string"
- }
- },
- "required": [
- "cmd",
- "type"
- ],
- "title": "ListFilesParsedCommand",
- "type": "object"
- },
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "path": {
- "type": [
- "string",
- "null"
- ]
- },
- "query": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "search"
- ],
- "title": "SearchParsedCommandType",
- "type": "string"
- }
- },
- "required": [
- "cmd",
- "type"
- ],
- "title": "SearchParsedCommand",
- "type": "object"
- },
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "type": {
- "enum": [
- "unknown"
- ],
- "title": "UnknownParsedCommandType",
- "type": "string"
- }
- },
- "required": [
- "cmd",
- "type"
- ],
- "title": "UnknownParsedCommand",
- "type": "object"
- }
- ]
- },
- "PatchApplyStatus": {
- "enum": [
- "completed",
- "failed",
- "declined"
- ],
- "type": "string"
- },
- "PermissionProfile": {
- "properties": {
- "file_system": {
- "anyOf": [
- {
- "$ref": "#/definitions/FileSystemPermissions"
- },
- {
- "type": "null"
- }
- ]
- },
- "macos": {
- "anyOf": [
- {
- "$ref": "#/definitions/MacOsSeatbeltProfileExtensions"
- },
- {
- "type": "null"
- }
- ]
- },
- "network": {
- "anyOf": [
- {
- "$ref": "#/definitions/NetworkPermissions"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "type": "object"
- },
- "PlanItemArg": {
- "additionalProperties": false,
- "properties": {
- "status": {
- "$ref": "#/definitions/StepStatus"
- },
- "step": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "step"
- ],
- "type": "object"
- },
- "PlanType": {
- "enum": [
- "free",
- "go",
- "plus",
- "pro",
- "team",
- "business",
- "enterprise",
- "edu",
- "unknown"
- ],
- "type": "string"
- },
- "RateLimitSnapshot": {
- "properties": {
- "credits": {
- "anyOf": [
- {
- "$ref": "#/definitions/CreditsSnapshot"
- },
- {
- "type": "null"
- }
- ]
- },
- "limit_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "limit_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "plan_type": {
- "anyOf": [
- {
- "$ref": "#/definitions/PlanType"
- },
- {
- "type": "null"
- }
- ]
- },
- "primary": {
- "anyOf": [
- {
- "$ref": "#/definitions/RateLimitWindow"
- },
- {
- "type": "null"
- }
- ]
- },
- "secondary": {
- "anyOf": [
- {
- "$ref": "#/definitions/RateLimitWindow"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "type": "object"
- },
- "RateLimitWindow": {
- "properties": {
- "resets_at": {
- "description": "Unix timestamp (seconds since epoch) when the window resets.",
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "used_percent": {
- "description": "Percentage (0-100) of the window that has been consumed.",
- "format": "double",
- "type": "number"
- },
- "window_minutes": {
- "description": "Rolling window duration, in minutes.",
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "required": [
- "used_percent"
- ],
- "type": "object"
- },
- "ReadOnlyAccess": {
- "description": "Determines how read-only file access is granted inside a restricted sandbox.",
- "oneOf": [
- {
- "description": "Restrict reads to an explicit set of roots.\n\nWhen `include_platform_defaults` is `true`, platform defaults required for basic execution are included in addition to `readable_roots`.",
- "properties": {
- "include_platform_defaults": {
- "default": true,
- "description": "Include built-in platform read roots required for basic process execution.",
- "type": "boolean"
- },
- "readable_roots": {
- "description": "Additional absolute roots that should be readable.",
- "items": {
- "$ref": "#/definitions/AbsolutePathBuf"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "restricted"
- ],
- "title": "RestrictedReadOnlyAccessType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "RestrictedReadOnlyAccess",
- "type": "object"
- },
- {
- "description": "Allow unrestricted file reads.",
- "properties": {
- "type": {
- "enum": [
- "full-access"
- ],
- "title": "FullAccessReadOnlyAccessType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "FullAccessReadOnlyAccess",
- "type": "object"
- }
- ]
- },
- "RealtimeAudioFrame": {
- "properties": {
- "data": {
- "type": "string"
- },
- "num_channels": {
- "format": "uint16",
- "minimum": 0.0,
- "type": "integer"
- },
- "sample_rate": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "samples_per_channel": {
- "format": "uint32",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "required": [
- "data",
- "num_channels",
- "sample_rate"
- ],
- "type": "object"
- },
- "RealtimeEvent": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "SessionUpdated": {
- "properties": {
- "instructions": {
- "type": [
- "string",
- "null"
- ]
- },
- "session_id": {
- "type": "string"
- }
- },
- "required": [
- "session_id"
- ],
- "type": "object"
- }
- },
- "required": [
- "SessionUpdated"
- ],
- "title": "SessionUpdatedRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "InputTranscriptDelta": {
- "$ref": "#/definitions/RealtimeTranscriptDelta"
- }
- },
- "required": [
- "InputTranscriptDelta"
- ],
- "title": "InputTranscriptDeltaRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "OutputTranscriptDelta": {
- "$ref": "#/definitions/RealtimeTranscriptDelta"
- }
- },
- "required": [
- "OutputTranscriptDelta"
- ],
- "title": "OutputTranscriptDeltaRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "AudioOut": {
- "$ref": "#/definitions/RealtimeAudioFrame"
- }
- },
- "required": [
- "AudioOut"
- ],
- "title": "AudioOutRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ConversationItemAdded": true
- },
- "required": [
- "ConversationItemAdded"
- ],
- "title": "ConversationItemAddedRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ConversationItemDone": {
- "properties": {
- "item_id": {
- "type": "string"
- }
- },
- "required": [
- "item_id"
- ],
- "type": "object"
- }
- },
- "required": [
- "ConversationItemDone"
- ],
- "title": "ConversationItemDoneRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "HandoffRequested": {
- "$ref": "#/definitions/RealtimeHandoffRequested"
- }
- },
- "required": [
- "HandoffRequested"
- ],
- "title": "HandoffRequestedRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "Error": {
- "type": "string"
- }
- },
- "required": [
- "Error"
- ],
- "title": "ErrorRealtimeEvent",
- "type": "object"
- }
- ]
- },
- "RealtimeHandoffRequested": {
- "properties": {
- "active_transcript": {
- "items": {
- "$ref": "#/definitions/RealtimeTranscriptEntry"
- },
- "type": "array"
- },
- "handoff_id": {
- "type": "string"
- },
- "input_transcript": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- }
- },
- "required": [
- "active_transcript",
- "handoff_id",
- "input_transcript",
- "item_id"
- ],
- "type": "object"
- },
- "RealtimeTranscriptDelta": {
- "properties": {
- "delta": {
- "type": "string"
- }
- },
- "required": [
- "delta"
- ],
- "type": "object"
- },
- "RealtimeTranscriptEntry": {
- "properties": {
- "role": {
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "role",
- "text"
- ],
- "type": "object"
- },
- "ReasoningEffort": {
- "description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
- "enum": [
- "none",
- "minimal",
- "low",
- "medium",
- "high",
- "xhigh"
- ],
- "type": "string"
- },
- "ReasoningItemContent": {
- "oneOf": [
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "reasoning_text"
- ],
- "title": "ReasoningTextReasoningItemContentType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "ReasoningTextReasoningItemContent",
- "type": "object"
- },
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "text"
- ],
- "title": "TextReasoningItemContentType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "TextReasoningItemContent",
- "type": "object"
- }
- ]
- },
- "ReasoningItemReasoningSummary": {
- "oneOf": [
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "summary_text"
- ],
- "title": "SummaryTextReasoningItemReasoningSummaryType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "SummaryTextReasoningItemReasoningSummary",
- "type": "object"
- }
- ]
- },
- "RejectConfig": {
- "properties": {
- "mcp_elicitations": {
- "description": "Reject MCP elicitation prompts.",
- "type": "boolean"
- },
- "request_permissions": {
- "default": false,
- "description": "Reject approval prompts related to built-in permission requests.",
- "type": "boolean"
- },
- "rules": {
- "description": "Reject prompts triggered by execpolicy `prompt` rules.",
- "type": "boolean"
- },
- "sandbox_approval": {
- "description": "Reject approval prompts related to sandbox escalation.",
- "type": "boolean"
- },
- "skill_approval": {
- "default": false,
- "description": "Reject approval prompts triggered by skill script execution.",
- "type": "boolean"
- }
- },
- "required": [
- "mcp_elicitations",
- "rules",
- "sandbox_approval"
- ],
- "type": "object"
- },
- "RemoteSkillSummary": {
- "properties": {
- "description": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "description",
- "id",
- "name"
- ],
- "type": "object"
- },
- "RequestId": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "format": "int64",
- "type": "integer"
- }
- ],
- "description": "ID of a request, which can be either a string or an integer."
- },
- "RequestUserInputQuestion": {
- "properties": {
- "header": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "isOther": {
- "default": false,
- "type": "boolean"
- },
- "isSecret": {
- "default": false,
- "type": "boolean"
- },
- "options": {
- "items": {
- "$ref": "#/definitions/RequestUserInputQuestionOption"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "question": {
- "type": "string"
- }
- },
- "required": [
- "header",
- "id",
- "question"
- ],
- "type": "object"
- },
- "RequestUserInputQuestionOption": {
- "properties": {
- "description": {
- "type": "string"
- },
- "label": {
- "type": "string"
- }
- },
- "required": [
- "description",
- "label"
- ],
- "type": "object"
- },
- "Resource": {
- "description": "A known resource that the server is capable of reading.",
- "properties": {
- "_meta": true,
- "annotations": true,
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "icons": {
- "items": true,
- "type": [
- "array",
- "null"
- ]
- },
- "mimeType": {
- "type": [
- "string",
- "null"
- ]
- },
- "name": {
- "type": "string"
- },
- "size": {
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "title": {
- "type": [
- "string",
- "null"
- ]
- },
- "uri": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "uri"
- ],
- "type": "object"
- },
- "ResourceTemplate": {
- "description": "A template description for resources available on the server.",
- "properties": {
- "annotations": true,
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "mimeType": {
- "type": [
- "string",
- "null"
- ]
- },
- "name": {
- "type": "string"
- },
- "title": {
- "type": [
- "string",
- "null"
- ]
- },
- "uriTemplate": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "uriTemplate"
- ],
- "type": "object"
- },
- "ResponseItem": {
- "oneOf": [
- {
- "properties": {
- "content": {
- "items": {
- "$ref": "#/definitions/ContentItem"
- },
- "type": "array"
- },
- "end_turn": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "id": {
- "type": [
- "string",
- "null"
- ],
- "writeOnly": true
- },
- "phase": {
- "anyOf": [
- {
- "$ref": "#/definitions/MessagePhase"
- },
- {
- "type": "null"
- }
- ]
- },
- "role": {
- "type": "string"
- },
- "type": {
- "enum": [
- "message"
- ],
- "title": "MessageResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "role",
- "type"
- ],
- "title": "MessageResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "content": {
- "default": null,
- "items": {
- "$ref": "#/definitions/ReasoningItemContent"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "encrypted_content": {
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "type": "string",
- "writeOnly": true
- },
- "summary": {
- "items": {
- "$ref": "#/definitions/ReasoningItemReasoningSummary"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "reasoning"
- ],
- "title": "ReasoningResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "summary",
- "type"
- ],
- "title": "ReasoningResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "action": {
- "$ref": "#/definitions/LocalShellAction"
- },
- "call_id": {
- "description": "Set when using the Responses API.",
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "description": "Legacy id field retained for compatibility with older payloads.",
- "type": [
- "string",
- "null"
- ],
- "writeOnly": true
- },
- "status": {
- "$ref": "#/definitions/LocalShellStatus"
- },
- "type": {
- "enum": [
- "local_shell_call"
- ],
- "title": "LocalShellCallResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "action",
- "status",
- "type"
- ],
- "title": "LocalShellCallResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "arguments": {
- "type": "string"
- },
- "call_id": {
- "type": "string"
- },
- "id": {
- "type": [
- "string",
- "null"
- ],
- "writeOnly": true
- },
- "name": {
- "type": "string"
- },
- "namespace": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "function_call"
- ],
- "title": "FunctionCallResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "arguments",
- "call_id",
- "name",
- "type"
- ],
- "title": "FunctionCallResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "arguments": true,
- "call_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "execution": {
- "type": "string"
- },
- "id": {
- "type": [
- "string",
- "null"
- ],
- "writeOnly": true
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "tool_search_call"
- ],
- "title": "ToolSearchCallResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "arguments",
- "execution",
- "type"
- ],
- "title": "ToolSearchCallResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "output": {
- "$ref": "#/definitions/FunctionCallOutputPayload"
- },
- "type": {
- "enum": [
- "function_call_output"
- ],
- "title": "FunctionCallOutputResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "output",
- "type"
- ],
- "title": "FunctionCallOutputResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "id": {
- "type": [
- "string",
- "null"
- ],
- "writeOnly": true
- },
- "input": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "custom_tool_call"
- ],
- "title": "CustomToolCallResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "input",
- "name",
- "type"
- ],
- "title": "CustomToolCallResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "output": {
- "$ref": "#/definitions/FunctionCallOutputPayload"
- },
- "type": {
- "enum": [
- "custom_tool_call_output"
- ],
- "title": "CustomToolCallOutputResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "output",
- "type"
- ],
- "title": "CustomToolCallOutputResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "execution": {
- "type": "string"
- },
- "status": {
- "type": "string"
- },
- "tools": {
- "items": true,
- "type": "array"
- },
- "type": {
- "enum": [
- "tool_search_output"
- ],
- "title": "ToolSearchOutputResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "execution",
- "status",
- "tools",
- "type"
- ],
- "title": "ToolSearchOutputResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "action": {
- "anyOf": [
- {
- "$ref": "#/definitions/ResponsesApiWebSearchAction"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": [
- "string",
- "null"
- ],
- "writeOnly": true
- },
- "status": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "web_search_call"
- ],
- "title": "WebSearchCallResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "WebSearchCallResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "result": {
- "type": "string"
- },
- "revised_prompt": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "type": "string"
- },
- "type": {
- "enum": [
- "image_generation_call"
- ],
- "title": "ImageGenerationCallResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "result",
- "status",
- "type"
- ],
- "title": "ImageGenerationCallResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "ghost_commit": {
- "$ref": "#/definitions/GhostCommit"
- },
- "type": {
- "enum": [
- "ghost_snapshot"
- ],
- "title": "GhostSnapshotResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "ghost_commit",
- "type"
- ],
- "title": "GhostSnapshotResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "encrypted_content": {
- "type": "string"
- },
- "type": {
- "enum": [
- "compaction"
- ],
- "title": "CompactionResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "encrypted_content",
- "type"
- ],
- "title": "CompactionResponseItem",
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": [
- "other"
- ],
- "title": "OtherResponseItemType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "OtherResponseItem",
- "type": "object"
- }
- ]
- },
- "ResponsesApiWebSearchAction": {
- "oneOf": [
- {
- "properties": {
- "queries": {
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "query": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "search"
- ],
- "title": "SearchResponsesApiWebSearchActionType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "SearchResponsesApiWebSearchAction",
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": [
- "open_page"
- ],
- "title": "OpenPageResponsesApiWebSearchActionType",
- "type": "string"
- },
- "url": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "type"
- ],
- "title": "OpenPageResponsesApiWebSearchAction",
- "type": "object"
- },
- {
- "properties": {
- "pattern": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "find_in_page"
- ],
- "title": "FindInPageResponsesApiWebSearchActionType",
- "type": "string"
- },
- "url": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "type"
- ],
- "title": "FindInPageResponsesApiWebSearchAction",
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": [
- "other"
- ],
- "title": "OtherResponsesApiWebSearchActionType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "OtherResponsesApiWebSearchAction",
- "type": "object"
- }
- ]
- },
- "Result_of_CallToolResult_or_String": {
- "oneOf": [
- {
- "properties": {
- "Ok": {
- "$ref": "#/definitions/CallToolResult"
- }
- },
- "required": [
- "Ok"
- ],
- "title": "OkResult_of_CallToolResult_or_String",
- "type": "object"
- },
- {
- "properties": {
- "Err": {
- "type": "string"
- }
- },
- "required": [
- "Err"
- ],
- "title": "ErrResult_of_CallToolResult_or_String",
- "type": "object"
- }
- ]
- },
- "ReviewCodeLocation": {
- "description": "Location of the code related to a review finding.",
- "properties": {
- "absolute_file_path": {
- "type": "string"
- },
- "line_range": {
- "$ref": "#/definitions/ReviewLineRange"
- }
- },
- "required": [
- "absolute_file_path",
- "line_range"
- ],
- "type": "object"
- },
- "ReviewDecision": {
- "description": "User's decision in response to an ExecApprovalRequest.",
- "oneOf": [
- {
- "description": "User has approved this command and the agent should execute it.",
- "enum": [
- "approved"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "description": "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.",
- "properties": {
- "approved_execpolicy_amendment": {
- "properties": {
- "proposed_execpolicy_amendment": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "proposed_execpolicy_amendment"
- ],
- "type": "object"
- }
- },
- "required": [
- "approved_execpolicy_amendment"
- ],
- "title": "ApprovedExecpolicyAmendmentReviewDecision",
- "type": "object"
- },
- {
- "description": "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.",
- "enum": [
- "approved_for_session"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "description": "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",
- "properties": {
- "network_policy_amendment": {
- "properties": {
- "network_policy_amendment": {
- "$ref": "#/definitions/NetworkPolicyAmendment"
- }
- },
- "required": [
- "network_policy_amendment"
- ],
- "type": "object"
- }
- },
- "required": [
- "network_policy_amendment"
- ],
- "title": "NetworkPolicyAmendmentReviewDecision",
- "type": "object"
- },
- {
- "description": "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",
- "enum": [
- "denied"
- ],
- "type": "string"
- },
- {
- "description": "User has denied this command and the agent should not do anything until the user's next command.",
- "enum": [
- "abort"
- ],
- "type": "string"
- }
- ]
- },
- "ReviewFinding": {
- "description": "A single review finding describing an observed issue or recommendation.",
- "properties": {
- "body": {
- "type": "string"
- },
- "code_location": {
- "$ref": "#/definitions/ReviewCodeLocation"
- },
- "confidence_score": {
- "format": "float",
- "type": "number"
- },
- "priority": {
- "format": "int32",
- "type": "integer"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "body",
- "code_location",
- "confidence_score",
- "priority",
- "title"
- ],
- "type": "object"
- },
- "ReviewLineRange": {
- "description": "Inclusive line range in a file associated with the finding.",
- "properties": {
- "end": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "start": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- }
- },
- "required": [
- "end",
- "start"
- ],
- "type": "object"
- },
- "ReviewOutputEvent": {
- "description": "Structured review result produced by a child review session.",
- "properties": {
- "findings": {
- "items": {
- "$ref": "#/definitions/ReviewFinding"
- },
- "type": "array"
- },
- "overall_confidence_score": {
- "format": "float",
- "type": "number"
- },
- "overall_correctness": {
- "type": "string"
- },
- "overall_explanation": {
- "type": "string"
- }
- },
- "required": [
- "findings",
- "overall_confidence_score",
- "overall_correctness",
- "overall_explanation"
- ],
- "type": "object"
- },
- "ReviewTarget": {
- "oneOf": [
- {
- "description": "Review the working tree: staged, unstaged, and untracked files.",
- "properties": {
- "type": {
- "enum": [
- "uncommittedChanges"
- ],
- "title": "UncommittedChangesReviewTargetType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "UncommittedChangesReviewTarget",
- "type": "object"
- },
- {
- "description": "Review changes between the current branch and the given base branch.",
- "properties": {
- "branch": {
- "type": "string"
- },
- "type": {
- "enum": [
- "baseBranch"
- ],
- "title": "BaseBranchReviewTargetType",
- "type": "string"
- }
- },
- "required": [
- "branch",
- "type"
- ],
- "title": "BaseBranchReviewTarget",
- "type": "object"
- },
- {
- "description": "Review the changes introduced by a specific commit.",
- "properties": {
- "sha": {
- "type": "string"
- },
- "title": {
- "description": "Optional human-readable label (e.g., commit subject) for UIs.",
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "commit"
- ],
- "title": "CommitReviewTargetType",
- "type": "string"
- }
- },
- "required": [
- "sha",
- "type"
- ],
- "title": "CommitReviewTarget",
- "type": "object"
- },
- {
- "description": "Arbitrary instructions provided by the user.",
- "properties": {
- "instructions": {
- "type": "string"
- },
- "type": {
- "enum": [
- "custom"
- ],
- "title": "CustomReviewTargetType",
- "type": "string"
- }
- },
- "required": [
- "instructions",
- "type"
- ],
- "title": "CustomReviewTarget",
- "type": "object"
- }
- ]
- },
- "SandboxPolicy": {
- "description": "Determines execution restrictions for model shell commands.",
- "oneOf": [
- {
- "description": "No restrictions whatsoever. Use with caution.",
- "properties": {
- "type": {
- "enum": [
- "danger-full-access"
- ],
- "title": "DangerFullAccessSandboxPolicyType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "DangerFullAccessSandboxPolicy",
- "type": "object"
- },
- {
- "description": "Read-only access configuration.",
- "properties": {
- "access": {
- "allOf": [
- {
- "$ref": "#/definitions/ReadOnlyAccess"
- }
- ],
- "description": "Read access granted while running under this policy."
- },
- "network_access": {
- "description": "When set to `true`, outbound network access is allowed. `false` by default.",
- "type": "boolean"
- },
- "type": {
- "enum": [
- "read-only"
- ],
- "title": "ReadOnlySandboxPolicyType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ReadOnlySandboxPolicy",
- "type": "object"
- },
- {
- "description": "Indicates the process is already in an external sandbox. Allows full disk access while honoring the provided network setting.",
- "properties": {
- "network_access": {
- "allOf": [
- {
- "$ref": "#/definitions/NetworkAccess"
- }
- ],
- "default": "restricted",
- "description": "Whether the external sandbox permits outbound network traffic."
- },
- "type": {
- "enum": [
- "external-sandbox"
- ],
- "title": "ExternalSandboxSandboxPolicyType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ExternalSandboxSandboxPolicy",
- "type": "object"
- },
- {
- "description": "Same as `ReadOnly` but additionally grants write access to the current working directory (\"workspace\").",
- "properties": {
- "exclude_slash_tmp": {
- "default": false,
- "description": "When set to `true`, will NOT include the `/tmp` among the default writable roots on UNIX. Defaults to `false`.",
- "type": "boolean"
- },
- "exclude_tmpdir_env_var": {
- "default": false,
- "description": "When set to `true`, will NOT include the per-user `TMPDIR` environment variable among the default writable roots. Defaults to `false`.",
- "type": "boolean"
- },
- "network_access": {
- "default": false,
- "description": "When set to `true`, outbound network access is allowed. `false` by default.",
- "type": "boolean"
- },
- "read_only_access": {
- "allOf": [
- {
- "$ref": "#/definitions/ReadOnlyAccess"
- }
- ],
- "description": "Read access granted while running under this policy."
- },
- "type": {
- "enum": [
- "workspace-write"
- ],
- "title": "WorkspaceWriteSandboxPolicyType",
- "type": "string"
- },
- "writable_roots": {
- "description": "Additional folders (beyond cwd and possibly TMPDIR) that should be writable from within the sandbox.",
- "items": {
- "$ref": "#/definitions/AbsolutePathBuf"
- },
- "type": "array"
- }
- },
- "required": [
- "type"
- ],
- "title": "WorkspaceWriteSandboxPolicy",
- "type": "object"
- }
- ]
- },
- "ServiceTier": {
- "enum": [
- "fast",
- "flex"
- ],
- "type": "string"
- },
- "SessionNetworkProxyRuntime": {
- "properties": {
- "http_addr": {
- "type": "string"
- },
- "socks_addr": {
- "type": "string"
- }
- },
- "required": [
- "http_addr",
- "socks_addr"
- ],
- "type": "object"
- },
- "SkillDependencies": {
- "properties": {
- "tools": {
- "items": {
- "$ref": "#/definitions/SkillToolDependency"
- },
- "type": "array"
- }
- },
- "required": [
- "tools"
- ],
- "type": "object"
- },
- "SkillErrorInfo": {
- "properties": {
- "message": {
- "type": "string"
- },
- "path": {
- "type": "string"
- }
- },
- "required": [
- "message",
- "path"
- ],
- "type": "object"
- },
- "SkillInterface": {
- "properties": {
- "brand_color": {
- "type": [
- "string",
- "null"
- ]
- },
- "default_prompt": {
- "type": [
- "string",
- "null"
- ]
- },
- "display_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "icon_large": {
- "type": [
- "string",
- "null"
- ]
- },
- "icon_small": {
- "type": [
- "string",
- "null"
- ]
- },
- "short_description": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "SkillMetadata": {
- "properties": {
- "dependencies": {
- "anyOf": [
- {
- "$ref": "#/definitions/SkillDependencies"
- },
- {
- "type": "null"
- }
- ]
- },
- "description": {
- "type": "string"
- },
- "enabled": {
- "type": "boolean"
- },
- "interface": {
- "anyOf": [
- {
- "$ref": "#/definitions/SkillInterface"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "scope": {
- "$ref": "#/definitions/SkillScope"
- },
- "short_description": {
- "description": "Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "description",
- "enabled",
- "name",
- "path",
- "scope"
- ],
- "type": "object"
- },
- "SkillScope": {
- "enum": [
- "user",
- "repo",
- "system",
- "admin"
- ],
- "type": "string"
- },
- "SkillToolDependency": {
- "properties": {
- "command": {
- "type": [
- "string",
- "null"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "transport": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "type": "string"
- },
- "url": {
- "type": [
- "string",
- "null"
- ]
- },
- "value": {
- "type": "string"
- }
- },
- "required": [
- "type",
- "value"
- ],
- "type": "object"
- },
- "SkillsListEntry": {
- "properties": {
- "cwd": {
- "type": "string"
- },
- "errors": {
- "items": {
- "$ref": "#/definitions/SkillErrorInfo"
- },
- "type": "array"
- },
- "skills": {
- "items": {
- "$ref": "#/definitions/SkillMetadata"
- },
- "type": "array"
- }
- },
- "required": [
- "cwd",
- "errors",
- "skills"
- ],
- "type": "object"
- },
- "StepStatus": {
- "enum": [
- "pending",
- "in_progress",
- "completed"
- ],
- "type": "string"
- },
- "TextElement": {
- "properties": {
- "byte_range": {
- "allOf": [
- {
- "$ref": "#/definitions/ByteRange"
- }
- ],
- "description": "Byte range in the parent `text` buffer that this element occupies."
- },
- "placeholder": {
- "description": "Optional human-readable placeholder for the element, displayed in the UI.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "byte_range"
- ],
- "type": "object"
- },
- "ThreadId": {
- "type": "string"
- },
- "TokenUsage": {
- "properties": {
- "cached_input_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "input_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "output_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "reasoning_output_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "total_tokens": {
- "format": "int64",
- "type": "integer"
- }
- },
- "required": [
- "cached_input_tokens",
- "input_tokens",
- "output_tokens",
- "reasoning_output_tokens",
- "total_tokens"
- ],
- "type": "object"
- },
- "TokenUsageInfo": {
- "properties": {
- "last_token_usage": {
- "$ref": "#/definitions/TokenUsage"
- },
- "model_context_window": {
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "total_token_usage": {
- "$ref": "#/definitions/TokenUsage"
- }
- },
- "required": [
- "last_token_usage",
- "total_token_usage"
- ],
- "type": "object"
- },
- "Tool": {
- "description": "Definition for a tool the client can call.",
- "properties": {
- "_meta": true,
- "annotations": true,
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "icons": {
- "items": true,
- "type": [
- "array",
- "null"
- ]
- },
- "inputSchema": true,
- "name": {
- "type": "string"
- },
- "outputSchema": true,
- "title": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "inputSchema",
- "name"
- ],
- "type": "object"
- },
- "TurnAbortReason": {
- "enum": [
- "interrupted",
- "replaced",
- "review_ended"
- ],
- "type": "string"
- },
- "TurnItem": {
- "oneOf": [
- {
- "properties": {
- "content": {
- "items": {
- "$ref": "#/definitions/UserInput"
- },
- "type": "array"
- },
- "id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "UserMessage"
- ],
- "title": "UserMessageTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "id",
- "type"
- ],
- "title": "UserMessageTurnItem",
- "type": "object"
- },
- {
- "description": "Assistant-authored message payload used in turn-item streams.\n\n`phase` is optional because not all providers/models emit it. Consumers should use it when present, but retain legacy completion semantics when it is `None`.",
- "properties": {
- "content": {
- "items": {
- "$ref": "#/definitions/AgentMessageContent"
- },
- "type": "array"
- },
- "id": {
- "type": "string"
- },
- "phase": {
- "anyOf": [
- {
- "$ref": "#/definitions/MessagePhase"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional phase metadata carried through from `ResponseItem::Message`.\n\nThis is currently used by TUI rendering to distinguish mid-turn commentary from a final answer and avoid status-indicator jitter."
- },
- "type": {
- "enum": [
- "AgentMessage"
- ],
- "title": "AgentMessageTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "id",
- "type"
- ],
- "title": "AgentMessageTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "Plan"
- ],
- "title": "PlanTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "text",
- "type"
- ],
- "title": "PlanTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "raw_content": {
- "default": [],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "summary_text": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "Reasoning"
- ],
- "title": "ReasoningTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "summary_text",
- "type"
- ],
- "title": "ReasoningTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "action": {
- "$ref": "#/definitions/ResponsesApiWebSearchAction"
- },
- "id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "type": {
- "enum": [
- "WebSearch"
- ],
- "title": "WebSearchTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "action",
- "id",
- "query",
- "type"
- ],
- "title": "WebSearchTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "result": {
- "type": "string"
- },
- "revised_prompt": {
- "type": [
- "string",
- "null"
- ]
- },
- "saved_path": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "type": "string"
- },
- "type": {
- "enum": [
- "ImageGeneration"
- ],
- "title": "ImageGenerationTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "result",
- "status",
- "type"
- ],
- "title": "ImageGenerationTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "ContextCompaction"
- ],
- "title": "ContextCompactionTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "type"
- ],
- "title": "ContextCompactionTurnItem",
- "type": "object"
- }
- ]
- },
- "UserInput": {
- "description": "User input",
- "oneOf": [
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "text_elements": {
- "default": [],
- "description": "UI-defined spans within `text` that should be treated as special elements. These are byte ranges into the UTF-8 `text` buffer and are used to render or persist rich input markers (e.g., image placeholders) across history and resume without mutating the literal text.",
- "items": {
- "$ref": "#/definitions/TextElement"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "text"
- ],
- "title": "TextUserInputType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "TextUserInput",
- "type": "object"
- },
- {
- "description": "Pre‑encoded data: URI image.",
- "properties": {
- "image_url": {
- "type": "string"
- },
- "type": {
- "enum": [
- "image"
- ],
- "title": "ImageUserInputType",
- "type": "string"
- }
- },
- "required": [
- "image_url",
- "type"
- ],
- "title": "ImageUserInput",
- "type": "object"
- },
- {
- "description": "Local image path provided by the user. This will be converted to an `Image` variant (base64 data URL) during request serialization.",
- "properties": {
- "path": {
- "type": "string"
- },
- "type": {
- "enum": [
- "local_image"
- ],
- "title": "LocalImageUserInputType",
- "type": "string"
- }
- },
- "required": [
- "path",
- "type"
- ],
- "title": "LocalImageUserInput",
- "type": "object"
- },
- {
- "description": "Skill selected by the user (name + path to SKILL.md).",
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "type": {
- "enum": [
- "skill"
- ],
- "title": "SkillUserInputType",
- "type": "string"
- }
- },
- "required": [
- "name",
- "path",
- "type"
- ],
- "title": "SkillUserInput",
- "type": "object"
- },
- {
- "description": "Explicit structured mention selected by the user.\n\n`path` identifies the exact mention target, for example `app://<connector-id>` or `plugin://<plugin-name>@<marketplace-name>`.",
- "properties": {
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "type": {
- "enum": [
- "mention"
- ],
- "title": "MentionUserInputType",
- "type": "string"
- }
- },
- "required": [
- "name",
- "path",
- "type"
- ],
- "title": "MentionUserInput",
- "type": "object"
- }
- ]
- }
- },
- "description": "Response event from the agent NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.",
- "oneOf": [
- {
- "description": "Error while executing a submission",
- "properties": {
- "codex_error_info": {
- "anyOf": [
- {
- "$ref": "#/definitions/CodexErrorInfo"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "error"
- ],
- "title": "ErrorEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "ErrorEventMsg",
- "type": "object"
- },
- {
- "description": "Warning issued while processing a submission. Unlike `Error`, this indicates the turn continued but the user should still be notified.",
- "properties": {
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "warning"
- ],
- "title": "WarningEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "WarningEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation lifecycle start event.",
- "properties": {
- "session_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "realtime_conversation_started"
- ],
- "title": "RealtimeConversationStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "RealtimeConversationStartedEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation streaming payload event.",
- "properties": {
- "payload": {
- "$ref": "#/definitions/RealtimeEvent"
- },
- "type": {
- "enum": [
- "realtime_conversation_realtime"
- ],
- "title": "RealtimeConversationRealtimeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "payload",
- "type"
- ],
- "title": "RealtimeConversationRealtimeEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation lifecycle close event.",
- "properties": {
- "reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "realtime_conversation_closed"
- ],
- "title": "RealtimeConversationClosedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "RealtimeConversationClosedEventMsg",
- "type": "object"
- },
- {
- "description": "Model routing changed from the requested model to a different model.",
- "properties": {
- "from_model": {
- "type": "string"
- },
- "reason": {
- "$ref": "#/definitions/ModelRerouteReason"
- },
- "to_model": {
- "type": "string"
- },
- "type": {
- "enum": [
- "model_reroute"
- ],
- "title": "ModelRerouteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "from_model",
- "reason",
- "to_model",
- "type"
- ],
- "title": "ModelRerouteEventMsg",
- "type": "object"
- },
- {
- "description": "Conversation history was compacted (either automatically or manually).",
- "properties": {
- "type": {
- "enum": [
- "context_compacted"
- ],
- "title": "ContextCompactedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ContextCompactedEventMsg",
- "type": "object"
- },
- {
- "description": "Conversation history was rolled back by dropping the last N user turns.",
- "properties": {
- "num_turns": {
- "description": "Number of user turns that were removed from context.",
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "type": {
- "enum": [
- "thread_rolled_back"
- ],
- "title": "ThreadRolledBackEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "num_turns",
- "type"
- ],
- "title": "ThreadRolledBackEventMsg",
- "type": "object"
- },
- {
- "description": "Agent has started a turn. v1 wire format uses `task_started`; accept `turn_started` for v2 interop.",
- "properties": {
- "collaboration_mode_kind": {
- "allOf": [
- {
- "$ref": "#/definitions/ModeKind"
- }
- ],
- "default": "default"
- },
- "model_context_window": {
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "task_started"
- ],
- "title": "TaskStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "turn_id",
- "type"
- ],
- "title": "TaskStartedEventMsg",
- "type": "object"
- },
- {
- "description": "Agent has completed all actions. v1 wire format uses `task_complete`; accept `turn_complete` for v2 interop.",
- "properties": {
- "last_agent_message": {
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "task_complete"
- ],
- "title": "TaskCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "turn_id",
- "type"
- ],
- "title": "TaskCompleteEventMsg",
- "type": "object"
- },
- {
- "description": "Usage update for the current session, including totals and last turn. Optional means unknown — UIs should not display when `None`.",
- "properties": {
- "info": {
- "anyOf": [
- {
- "$ref": "#/definitions/TokenUsageInfo"
- },
- {
- "type": "null"
- }
- ]
- },
- "rate_limits": {
- "anyOf": [
- {
- "$ref": "#/definitions/RateLimitSnapshot"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "enum": [
- "token_count"
- ],
- "title": "TokenCountEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "TokenCountEventMsg",
- "type": "object"
- },
- {
- "description": "Agent text output message",
- "properties": {
- "message": {
- "type": "string"
- },
- "phase": {
- "anyOf": [
- {
- "$ref": "#/definitions/MessagePhase"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "type": {
- "enum": [
- "agent_message"
- ],
- "title": "AgentMessageEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "AgentMessageEventMsg",
- "type": "object"
- },
- {
- "description": "User/system input message (what was sent to the model)",
- "properties": {
- "images": {
- "description": "Image URLs sourced from `UserInput::Image`. These are safe to replay in legacy UI history events and correspond to images sent to the model.",
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "local_images": {
- "default": [],
- "description": "Local file paths sourced from `UserInput::LocalImage`. These are kept so the UI can reattach images when editing history, and should not be sent to the model or treated as API-ready URLs.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "text_elements": {
- "default": [],
- "description": "UI-defined spans within `message` used to render or persist special elements.",
- "items": {
- "$ref": "#/definitions/TextElement"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "user_message"
- ],
- "title": "UserMessageEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "UserMessageEventMsg",
- "type": "object"
- },
- {
- "description": "Agent text output delta message",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_message_delta"
- ],
- "title": "AgentMessageDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentMessageDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Reasoning event from agent.",
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning"
- ],
- "title": "AgentReasoningEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "AgentReasoningEventMsg",
- "type": "object"
- },
- {
- "description": "Agent reasoning delta event from agent.",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_delta"
- ],
- "title": "AgentReasoningDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentReasoningDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Raw chain-of-thought from agent.",
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_raw_content"
- ],
- "title": "AgentReasoningRawContentEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "AgentReasoningRawContentEventMsg",
- "type": "object"
- },
- {
- "description": "Agent reasoning content delta event from agent.",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_raw_content_delta"
- ],
- "title": "AgentReasoningRawContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentReasoningRawContentDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Signaled when the model begins a new reasoning summary section (e.g., a new titled block).",
- "properties": {
- "item_id": {
- "default": "",
- "type": "string"
- },
- "summary_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "type": {
- "enum": [
- "agent_reasoning_section_break"
- ],
- "title": "AgentReasoningSectionBreakEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "AgentReasoningSectionBreakEventMsg",
- "type": "object"
- },
- {
- "description": "Ack the client's configure message.",
- "properties": {
- "approval_policy": {
- "allOf": [
- {
- "$ref": "#/definitions/AskForApproval"
- }
- ],
- "description": "When to escalate for approval for execution"
- },
- "cwd": {
- "description": "Working directory that should be treated as the *root* of the session.",
- "type": "string"
- },
- "forked_from_id": {
- "anyOf": [
- {
- "$ref": "#/definitions/ThreadId"
- },
- {
- "type": "null"
- }
- ]
- },
- "history_entry_count": {
- "description": "Current number of entries in the history log.",
- "format": "uint",
- "minimum": 0.0,
- "type": "integer"
- },
- "history_log_id": {
- "description": "Identifier of the history log file (inode on Unix, 0 otherwise).",
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- },
- "initial_messages": {
- "description": "Optional initial messages (as events) for resumed sessions. When present, UIs can use these to seed the history.",
- "items": {
- "$ref": "#/definitions/EventMsg"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "model": {
- "description": "Tell the client what model is being queried.",
- "type": "string"
- },
- "model_provider_id": {
- "type": "string"
- },
- "network_proxy": {
- "anyOf": [
- {
- "$ref": "#/definitions/SessionNetworkProxyRuntime"
- },
- {
- "type": "null"
- }
- ],
- "description": "Runtime proxy bind addresses, when the managed proxy was started for this session."
- },
- "reasoning_effort": {
- "anyOf": [
- {
- "$ref": "#/definitions/ReasoningEffort"
- },
- {
- "type": "null"
- }
- ],
- "description": "The effort the model is putting into reasoning about the user's request."
- },
- "rollout_path": {
- "description": "Path in which the rollout is stored. Can be `None` for ephemeral threads",
- "type": [
- "string",
- "null"
- ]
- },
- "sandbox_policy": {
- "allOf": [
- {
- "$ref": "#/definitions/SandboxPolicy"
- }
- ],
- "description": "How to sandbox commands executed in the system"
- },
- "service_tier": {
- "anyOf": [
- {
- "$ref": "#/definitions/ServiceTier"
- },
- {
- "type": "null"
- }
- ]
- },
- "session_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "thread_name": {
- "description": "Optional user-facing thread name (may be unset).",
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "session_configured"
- ],
- "title": "SessionConfiguredEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "approval_policy",
- "cwd",
- "history_entry_count",
- "history_log_id",
- "model",
- "model_provider_id",
- "sandbox_policy",
- "session_id",
- "type"
- ],
- "title": "SessionConfiguredEventMsg",
- "type": "object"
- },
- {
- "description": "Updated session metadata (e.g., thread name changes).",
- "properties": {
- "thread_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "thread_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "thread_name_updated"
- ],
- "title": "ThreadNameUpdatedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "thread_id",
- "type"
- ],
- "title": "ThreadNameUpdatedEventMsg",
- "type": "object"
- },
- {
- "description": "Incremental MCP startup progress updates.",
- "properties": {
- "server": {
- "description": "Server name being started.",
- "type": "string"
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/McpStartupStatus"
- }
- ],
- "description": "Current startup status."
- },
- "type": {
- "enum": [
- "mcp_startup_update"
- ],
- "title": "McpStartupUpdateEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "server",
- "status",
- "type"
- ],
- "title": "McpStartupUpdateEventMsg",
- "type": "object"
- },
- {
- "description": "Aggregate MCP startup completion summary.",
- "properties": {
- "cancelled": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "failed": {
- "items": {
- "$ref": "#/definitions/McpStartupFailure"
- },
- "type": "array"
- },
- "ready": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "mcp_startup_complete"
- ],
- "title": "McpStartupCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "cancelled",
- "failed",
- "ready",
- "type"
- ],
- "title": "McpStartupCompleteEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Identifier so this can be paired with the McpToolCallEnd event.",
- "type": "string"
- },
- "invocation": {
- "$ref": "#/definitions/McpInvocation"
- },
- "type": {
- "enum": [
- "mcp_tool_call_begin"
- ],
- "title": "McpToolCallBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "invocation",
- "type"
- ],
- "title": "McpToolCallBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Identifier for the corresponding McpToolCallBegin that finished.",
- "type": "string"
- },
- "duration": {
- "$ref": "#/definitions/Duration"
- },
- "invocation": {
- "$ref": "#/definitions/McpInvocation"
- },
- "result": {
- "allOf": [
- {
- "$ref": "#/definitions/Result_of_CallToolResult_or_String"
- }
- ],
- "description": "Result of the tool call. Note this could be an error."
- },
- "type": {
- "enum": [
- "mcp_tool_call_end"
- ],
- "title": "McpToolCallEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "duration",
- "invocation",
- "result",
- "type"
- ],
- "title": "McpToolCallEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "web_search_begin"
- ],
- "title": "WebSearchBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "type"
- ],
- "title": "WebSearchBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "action": {
- "$ref": "#/definitions/ResponsesApiWebSearchAction"
- },
- "call_id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "type": {
- "enum": [
- "web_search_end"
- ],
- "title": "WebSearchEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "action",
- "call_id",
- "query",
- "type"
- ],
- "title": "WebSearchEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "image_generation_begin"
- ],
- "title": "ImageGenerationBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "type"
- ],
- "title": "ImageGenerationBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "result": {
- "type": "string"
- },
- "revised_prompt": {
- "type": [
- "string",
- "null"
- ]
- },
- "saved_path": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "type": "string"
- },
- "type": {
- "enum": [
- "image_generation_end"
- ],
- "title": "ImageGenerationEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "result",
- "status",
- "type"
- ],
- "title": "ImageGenerationEndEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the server is about to execute a command.",
- "properties": {
- "call_id": {
- "description": "Identifier so this can be paired with the ExecCommandEnd event.",
- "type": "string"
- },
- "command": {
- "description": "The command to be executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory if not the default cwd for the agent.",
- "type": "string"
- },
- "interaction_input": {
- "description": "Raw input sent to a unified exec session (if this is an interaction event).",
- "type": [
- "string",
- "null"
- ]
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "process_id": {
- "description": "Identifier for the underlying PTY process (when available).",
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandSource"
- }
- ],
- "default": "agent",
- "description": "Where the command originated. Defaults to Agent for backward compatibility."
- },
- "turn_id": {
- "description": "Turn ID that this command belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_command_begin"
- ],
- "title": "ExecCommandBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "parsed_cmd",
- "turn_id",
- "type"
- ],
- "title": "ExecCommandBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Incremental chunk of output from a running command.",
- "properties": {
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that produced this chunk.",
- "type": "string"
- },
- "chunk": {
- "description": "Raw bytes from the stream (may not be valid UTF-8).",
- "type": "string"
- },
- "stream": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecOutputStream"
- }
- ],
- "description": "Which stream produced this chunk."
- },
- "type": {
- "enum": [
- "exec_command_output_delta"
- ],
- "title": "ExecCommandOutputDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "chunk",
- "stream",
- "type"
- ],
- "title": "ExecCommandOutputDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Terminal interaction for an in-progress command (stdin sent and stdout observed).",
- "properties": {
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that produced this chunk.",
- "type": "string"
- },
- "process_id": {
- "description": "Process id associated with the running command.",
- "type": "string"
- },
- "stdin": {
- "description": "Stdin sent to the running session.",
- "type": "string"
- },
- "type": {
- "enum": [
- "terminal_interaction"
- ],
- "title": "TerminalInteractionEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "process_id",
- "stdin",
- "type"
- ],
- "title": "TerminalInteractionEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "aggregated_output": {
- "default": "",
- "description": "Captured aggregated output",
- "type": "string"
- },
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that finished.",
- "type": "string"
- },
- "command": {
- "description": "The command that was executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory if not the default cwd for the agent.",
- "type": "string"
- },
- "duration": {
- "allOf": [
- {
- "$ref": "#/definitions/Duration"
- }
- ],
- "description": "The duration of the command execution."
- },
- "exit_code": {
- "description": "The command's exit code.",
- "format": "int32",
- "type": "integer"
- },
- "formatted_output": {
- "description": "Formatted output from the command, as seen by the model.",
- "type": "string"
- },
- "interaction_input": {
- "description": "Raw input sent to a unified exec session (if this is an interaction event).",
- "type": [
- "string",
- "null"
- ]
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "process_id": {
- "description": "Identifier for the underlying PTY process (when available).",
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandSource"
- }
- ],
- "default": "agent",
- "description": "Where the command originated. Defaults to Agent for backward compatibility."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandStatus"
- }
- ],
- "description": "Completion status for this command execution."
- },
- "stderr": {
- "description": "Captured stderr",
- "type": "string"
- },
- "stdout": {
- "description": "Captured stdout",
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this command belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_command_end"
- ],
- "title": "ExecCommandEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "duration",
- "exit_code",
- "formatted_output",
- "parsed_cmd",
- "status",
- "stderr",
- "stdout",
- "turn_id",
- "type"
- ],
- "title": "ExecCommandEndEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent attached a local image via the view_image tool.",
- "properties": {
- "call_id": {
- "description": "Identifier for the originating tool call.",
- "type": "string"
- },
- "path": {
- "description": "Local filesystem path provided to the tool.",
- "type": "string"
- },
- "type": {
- "enum": [
- "view_image_tool_call"
- ],
- "title": "ViewImageToolCallEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "path",
- "type"
- ],
- "title": "ViewImageToolCallEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "additional_permissions": {
- "anyOf": [
- {
- "$ref": "#/definitions/PermissionProfile"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional additional filesystem permissions requested for this command."
- },
- "approval_id": {
- "description": "Identifier for this specific approval callback.\n\nWhen absent, the approval is for the command item itself (`call_id`). This is present for subcommand approvals (via execve intercept).",
- "type": [
- "string",
- "null"
- ]
- },
- "available_decisions": {
- "description": "Ordered list of decisions the client may present for this prompt.\n\nWhen absent, clients should derive the legacy default set from the other fields on this request.",
- "items": {
- "$ref": "#/definitions/ReviewDecision"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "call_id": {
- "description": "Identifier for the associated command execution item.",
- "type": "string"
- },
- "command": {
- "description": "The command to be executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory.",
- "type": "string"
- },
- "network_approval_context": {
- "anyOf": [
- {
- "$ref": "#/definitions/NetworkApprovalContext"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional network context for a blocked request that can be approved."
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "proposed_execpolicy_amendment": {
- "description": "Proposed execpolicy amendment that can be applied to allow future runs.",
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "proposed_network_policy_amendments": {
- "description": "Proposed network policy amendments (for example allow/deny this host in future).",
- "items": {
- "$ref": "#/definitions/NetworkPolicyAmendment"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "reason": {
- "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",
- "type": [
- "string",
- "null"
- ]
- },
- "skill_metadata": {
- "anyOf": [
- {
- "$ref": "#/definitions/ExecApprovalRequestSkillMetadata"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional skill metadata when the approval was triggered by a skill script."
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this command belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_approval_request"
- ],
- "title": "ExecApprovalRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "parsed_cmd",
- "type"
- ],
- "title": "ExecApprovalRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated tool call, if available.",
- "type": "string"
- },
- "permissions": {
- "$ref": "#/definitions/PermissionProfile"
- },
- "reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "request_permissions"
- ],
- "title": "RequestPermissionsEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "permissions",
- "type"
- ],
- "title": "RequestPermissionsEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated tool call, if available.",
- "type": "string"
- },
- "questions": {
- "items": {
- "$ref": "#/definitions/RequestUserInputQuestion"
- },
- "type": "array"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "request_user_input"
- ],
- "title": "RequestUserInputEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "questions",
- "type"
- ],
- "title": "RequestUserInputEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "arguments": true,
- "callId": {
- "type": "string"
- },
- "tool": {
- "type": "string"
- },
- "turnId": {
- "type": "string"
- },
- "type": {
- "enum": [
- "dynamic_tool_call_request"
- ],
- "title": "DynamicToolCallRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "arguments",
- "callId",
- "tool",
- "turnId",
- "type"
- ],
- "title": "DynamicToolCallRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "arguments": {
- "description": "Dynamic tool call arguments."
- },
- "call_id": {
- "description": "Identifier for the corresponding DynamicToolCallRequest.",
- "type": "string"
- },
- "content_items": {
- "description": "Dynamic tool response content items.",
- "items": {
- "$ref": "#/definitions/DynamicToolCallOutputContentItem"
- },
- "type": "array"
- },
- "duration": {
- "allOf": [
- {
- "$ref": "#/definitions/Duration"
- }
- ],
- "description": "The duration of the dynamic tool call."
- },
- "error": {
- "description": "Optional error text when the tool call failed before producing a response.",
- "type": [
- "string",
- "null"
- ]
- },
- "success": {
- "description": "Whether the tool call succeeded.",
- "type": "boolean"
- },
- "tool": {
- "description": "Dynamic tool name.",
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this dynamic tool call belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "dynamic_tool_call_response"
- ],
- "title": "DynamicToolCallResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "arguments",
- "call_id",
- "content_items",
- "duration",
- "success",
- "tool",
- "turn_id",
- "type"
- ],
- "title": "DynamicToolCallResponseEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "$ref": "#/definitions/RequestId"
- },
- "request": {
- "$ref": "#/definitions/ElicitationRequest"
- },
- "server_name": {
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this elicitation belongs to, when known.",
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "elicitation_request"
- ],
- "title": "ElicitationRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "request",
- "server_name",
- "type"
- ],
- "title": "ElicitationRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated patch apply call, if available.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "type": "object"
- },
- "grant_root": {
- "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session.",
- "type": [
- "string",
- "null"
- ]
- },
- "reason": {
- "description": "Optional explanatory reason (e.g. request for extra write access).",
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility with older senders.",
- "type": "string"
- },
- "type": {
- "enum": [
- "apply_patch_approval_request"
- ],
- "title": "ApplyPatchApprovalRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "changes",
- "type"
- ],
- "title": "ApplyPatchApprovalRequestEventMsg",
- "type": "object"
- },
- {
- "description": "Notification advising the user that something they are using has been deprecated and should be phased out.",
- "properties": {
- "details": {
- "description": "Optional extra guidance, such as migration steps or rationale.",
- "type": [
- "string",
- "null"
- ]
- },
- "summary": {
- "description": "Concise summary of what is deprecated.",
- "type": "string"
- },
- "type": {
- "enum": [
- "deprecation_notice"
- ],
- "title": "DeprecationNoticeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "summary",
- "type"
- ],
- "title": "DeprecationNoticeEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "background_event"
- ],
- "title": "BackgroundEventEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "BackgroundEventEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "undo_started"
- ],
- "title": "UndoStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "UndoStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": [
- "string",
- "null"
- ]
- },
- "success": {
- "type": "boolean"
- },
- "type": {
- "enum": [
- "undo_completed"
- ],
- "title": "UndoCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "success",
- "type"
- ],
- "title": "UndoCompletedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that a model stream experienced an error or disconnect and the system is handling it (e.g., retrying with backoff).",
- "properties": {
- "additional_details": {
- "default": null,
- "description": "Optional details about the underlying stream failure (often the same human-readable message that is surfaced as the terminal error if retries are exhausted).",
- "type": [
- "string",
- "null"
- ]
- },
- "codex_error_info": {
- "anyOf": [
- {
- "$ref": "#/definitions/CodexErrorInfo"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "stream_error"
- ],
- "title": "StreamErrorEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "StreamErrorEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent is about to apply a code patch. Mirrors `ExecCommandBegin` so front‑ends can show progress indicators.",
- "properties": {
- "auto_approved": {
- "description": "If true, there was no ApplyPatchApprovalRequest for this patch.",
- "type": "boolean"
- },
- "call_id": {
- "description": "Identifier so this can be paired with the PatchApplyEnd event.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "description": "The changes to be applied.",
- "type": "object"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "patch_apply_begin"
- ],
- "title": "PatchApplyBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "auto_approved",
- "call_id",
- "changes",
- "type"
- ],
- "title": "PatchApplyBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that a patch application has finished.",
- "properties": {
- "call_id": {
- "description": "Identifier for the PatchApplyBegin that finished.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "default": {},
- "description": "The changes that were applied (mirrors PatchApplyBeginEvent::changes).",
- "type": "object"
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/PatchApplyStatus"
- }
- ],
- "description": "Completion status for this patch application."
- },
- "stderr": {
- "description": "Captured stderr (parser errors, IO failures, etc.).",
- "type": "string"
- },
- "stdout": {
- "description": "Captured stdout (summary printed by apply_patch).",
- "type": "string"
- },
- "success": {
- "description": "Whether the patch was applied successfully.",
- "type": "boolean"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "patch_apply_end"
- ],
- "title": "PatchApplyEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "status",
- "stderr",
- "stdout",
- "success",
- "type"
- ],
- "title": "PatchApplyEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": [
- "turn_diff"
- ],
- "title": "TurnDiffEventMsgType",
- "type": "string"
- },
- "unified_diff": {
- "type": "string"
- }
- },
- "required": [
- "type",
- "unified_diff"
- ],
- "title": "TurnDiffEventMsg",
- "type": "object"
- },
- {
- "description": "Response to GetHistoryEntryRequest.",
- "properties": {
- "entry": {
- "anyOf": [
- {
- "$ref": "#/definitions/HistoryEntry"
- },
- {
- "type": "null"
- }
- ],
- "description": "The entry at the requested offset, if available and parseable."
- },
- "log_id": {
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- },
- "offset": {
- "format": "uint",
- "minimum": 0.0,
- "type": "integer"
- },
- "type": {
- "enum": [
- "get_history_entry_response"
- ],
- "title": "GetHistoryEntryResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "log_id",
- "offset",
- "type"
- ],
- "title": "GetHistoryEntryResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of MCP tools available to the agent.",
- "properties": {
- "auth_statuses": {
- "additionalProperties": {
- "$ref": "#/definitions/McpAuthStatus"
- },
- "description": "Authentication status for each configured MCP server.",
- "type": "object"
- },
- "resource_templates": {
- "additionalProperties": {
- "items": {
- "$ref": "#/definitions/ResourceTemplate"
- },
- "type": "array"
- },
- "description": "Known resource templates grouped by server name.",
- "type": "object"
- },
- "resources": {
- "additionalProperties": {
- "items": {
- "$ref": "#/definitions/Resource"
- },
- "type": "array"
- },
- "description": "Known resources grouped by server name.",
- "type": "object"
- },
- "tools": {
- "additionalProperties": {
- "$ref": "#/definitions/Tool"
- },
- "description": "Fully qualified tool name -> tool definition.",
- "type": "object"
- },
- "type": {
- "enum": [
- "mcp_list_tools_response"
- ],
- "title": "McpListToolsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "auth_statuses",
- "resource_templates",
- "resources",
- "tools",
- "type"
- ],
- "title": "McpListToolsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of custom prompts available to the agent.",
- "properties": {
- "custom_prompts": {
- "items": {
- "$ref": "#/definitions/CustomPrompt"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_custom_prompts_response"
- ],
- "title": "ListCustomPromptsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "custom_prompts",
- "type"
- ],
- "title": "ListCustomPromptsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of skills available to the agent.",
- "properties": {
- "skills": {
- "items": {
- "$ref": "#/definitions/SkillsListEntry"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_skills_response"
- ],
- "title": "ListSkillsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "skills",
- "type"
- ],
- "title": "ListSkillsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of remote skills available to the agent.",
- "properties": {
- "skills": {
- "items": {
- "$ref": "#/definitions/RemoteSkillSummary"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_remote_skills_response"
- ],
- "title": "ListRemoteSkillsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "skills",
- "type"
- ],
- "title": "ListRemoteSkillsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "Remote skill downloaded to local cache.",
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "type": {
- "enum": [
- "remote_skill_downloaded"
- ],
- "title": "RemoteSkillDownloadedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "path",
- "type"
- ],
- "title": "RemoteSkillDownloadedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that skill data may have been updated and clients may want to reload.",
- "properties": {
- "type": {
- "enum": [
- "skills_update_available"
- ],
- "title": "SkillsUpdateAvailableEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "SkillsUpdateAvailableEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "explanation": {
- "default": null,
- "description": "Arguments for the `update_plan` todo/checklist tool (not plan mode).",
- "type": [
- "string",
- "null"
- ]
- },
- "plan": {
- "items": {
- "$ref": "#/definitions/PlanItemArg"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "plan_update"
- ],
- "title": "PlanUpdateEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "plan",
- "type"
- ],
- "title": "PlanUpdateEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "reason": {
- "$ref": "#/definitions/TurnAbortReason"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "turn_aborted"
- ],
- "title": "TurnAbortedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "reason",
- "type"
- ],
- "title": "TurnAbortedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent is shutting down.",
- "properties": {
- "type": {
- "enum": [
- "shutdown_complete"
- ],
- "title": "ShutdownCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ShutdownCompleteEventMsg",
- "type": "object"
- },
- {
- "description": "Entered review mode.",
- "properties": {
- "target": {
- "$ref": "#/definitions/ReviewTarget"
- },
- "type": {
- "enum": [
- "entered_review_mode"
- ],
- "title": "EnteredReviewModeEventMsgType",
- "type": "string"
- },
- "user_facing_hint": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "target",
- "type"
- ],
- "title": "EnteredReviewModeEventMsg",
- "type": "object"
- },
- {
- "description": "Exited review mode with an optional final result to apply.",
- "properties": {
- "review_output": {
- "anyOf": [
- {
- "$ref": "#/definitions/ReviewOutputEvent"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "enum": [
- "exited_review_mode"
- ],
- "title": "ExitedReviewModeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ExitedReviewModeEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/ResponseItem"
- },
- "type": {
- "enum": [
- "raw_response_item"
- ],
- "title": "RawResponseItemEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "type"
- ],
- "title": "RawResponseItemEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/TurnItem"
- },
- "thread_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "item_started"
- ],
- "title": "ItemStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ItemStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/TurnItem"
- },
- "thread_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "item_completed"
- ],
- "title": "ItemCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ItemCompletedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "run": {
- "$ref": "#/definitions/HookRunSummary"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "hook_started"
- ],
- "title": "HookStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "run",
- "type"
- ],
- "title": "HookStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "run": {
- "$ref": "#/definitions/HookRunSummary"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "hook_completed"
- ],
- "title": "HookCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "run",
- "type"
- ],
- "title": "HookCompletedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_message_content_delta"
- ],
- "title": "AgentMessageContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "AgentMessageContentDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "plan_delta"
- ],
- "title": "PlanDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "PlanDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "summary_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "reasoning_content_delta"
- ],
- "title": "ReasoningContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ReasoningContentDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "content_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "reasoning_raw_content_delta"
- ],
- "title": "ReasoningRawContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ReasoningRawContentDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent spawn begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "model": {
- "type": "string"
- },
- "prompt": {
- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "reasoning_effort": {
- "$ref": "#/definitions/ReasoningEffort"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_agent_spawn_begin"
- ],
- "title": "CollabAgentSpawnBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "model",
- "prompt",
- "reasoning_effort",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabAgentSpawnBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent spawn end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "model": {
- "description": "Model requested for the spawned agent.",
- "type": "string"
- },
- "new_agent_nickname": {
- "description": "Optional nickname assigned to the new agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "new_agent_role": {
- "description": "Optional role assigned to the new agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "new_thread_id": {
- "anyOf": [
- {
- "$ref": "#/definitions/ThreadId"
- },
- {
- "type": "null"
- }
- ],
- "description": "Thread ID of the newly spawned agent, if it was created."
- },
- "prompt": {
- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "reasoning_effort": {
- "allOf": [
- {
- "$ref": "#/definitions/ReasoningEffort"
- }
- ],
- "description": "Reasoning effort requested for the spawned agent."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the new agent reported to the sender agent."
- },
- "type": {
- "enum": [
- "collab_agent_spawn_end"
- ],
- "title": "CollabAgentSpawnEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "model",
- "prompt",
- "reasoning_effort",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabAgentSpawnEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent interaction begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "prompt": {
- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_agent_interaction_begin"
- ],
- "title": "CollabAgentInteractionBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "prompt",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabAgentInteractionBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent interaction end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "prompt": {
- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent."
- },
- "type": {
- "enum": [
- "collab_agent_interaction_end"
- ],
- "title": "CollabAgentInteractionEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "prompt",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabAgentInteractionEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: waiting begin.",
- "properties": {
- "call_id": {
- "description": "ID of the waiting call.",
- "type": "string"
- },
- "receiver_agents": {
- "description": "Optional nicknames/roles for receivers.",
- "items": {
- "$ref": "#/definitions/CollabAgentRef"
- },
- "type": "array"
- },
- "receiver_thread_ids": {
- "description": "Thread ID of the receivers.",
- "items": {
- "$ref": "#/definitions/ThreadId"
- },
- "type": "array"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_waiting_begin"
- ],
- "title": "CollabWaitingBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_ids",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabWaitingBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: waiting end.",
- "properties": {
- "agent_statuses": {
- "description": "Optional receiver metadata paired with final statuses.",
- "items": {
- "$ref": "#/definitions/CollabAgentStatusEntry"
- },
- "type": "array"
- },
- "call_id": {
- "description": "ID of the waiting call.",
- "type": "string"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "statuses": {
- "additionalProperties": {
- "$ref": "#/definitions/AgentStatus"
- },
- "description": "Last known status of the receiver agents reported to the sender agent.",
- "type": "object"
- },
- "type": {
- "enum": [
- "collab_waiting_end"
- ],
- "title": "CollabWaitingEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "sender_thread_id",
- "statuses",
- "type"
- ],
- "title": "CollabWaitingEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: close begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_close_begin"
- ],
- "title": "CollabCloseBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabCloseBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: close end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent before the close."
- },
- "type": {
- "enum": [
- "collab_close_end"
- ],
- "title": "CollabCloseEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabCloseEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: resume begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_resume_begin"
- ],
- "title": "CollabResumeBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabResumeBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: resume end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent after resume."
- },
- "type": {
- "enum": [
- "collab_resume_end"
- ],
- "title": "CollabResumeEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabResumeEndEventMsg",
- "type": "object"
- }
- ],
- "title": "EventMsg"
-}
\ No newline at end of file
diff --git a/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json b/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json
index c159cf7be0..343393cd13 100644
--- a/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json
+++ b/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json
@@ -105,94 +105,6 @@
},
"type": "object"
},
- "AgentMessageContent": {
- "oneOf": [
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "Text"
- ],
- "title": "TextAgentMessageContentType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "TextAgentMessageContent",
- "type": "object"
- }
- ]
- },
- "AgentStatus": {
- "description": "Agent lifecycle status, derived from emitted events.",
- "oneOf": [
- {
- "description": "Agent is waiting for initialization.",
- "enum": [
- "pending_init"
- ],
- "type": "string"
- },
- {
- "description": "Agent is currently running.",
- "enum": [
- "running"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "description": "Agent is done. Contains the final assistant message.",
- "properties": {
- "completed": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "completed"
- ],
- "title": "CompletedAgentStatus",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Agent encountered an error.",
- "properties": {
- "errored": {
- "type": "string"
- }
- },
- "required": [
- "errored"
- ],
- "title": "ErroredAgentStatus",
- "type": "object"
- },
- {
- "description": "Agent has been shutdown.",
- "enum": [
- "shutdown"
- ],
- "type": "string"
- },
- {
- "description": "Agent is not found.",
- "enum": [
- "not_found"
- ],
- "type": "string"
- }
- ]
- },
"ApplyPatchApprovalParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -245,27 +157,6 @@
"title": "ApplyPatchApprovalResponse",
"type": "object"
},
- "CallToolResult": {
- "description": "The server's response to a tool call.",
- "properties": {
- "_meta": true,
- "content": {
- "items": true,
- "type": "array"
- },
- "isError": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "structuredContent": true
- },
- "required": [
- "content"
- ],
- "type": "object"
- },
"ChatgptAuthTokensRefreshParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -1547,75 +1438,6 @@
],
"title": "ClientRequest"
},
- "CollabAgentRef": {
- "properties": {
- "agent_nickname": {
- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "agent_role": {
- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver/new agent."
- }
- },
- "required": [
- "thread_id"
- ],
- "type": "object"
- },
- "CollabAgentStatusEntry": {
- "properties": {
- "agent_nickname": {
- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "agent_role": {
- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the agent."
- },
- "thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver/new agent."
- }
- },
- "required": [
- "status",
- "thread_id"
- ],
- "type": "object"
- },
"CommandExecutionApprovalDecision": {
"oneOf": [
{
@@ -1809,56 +1631,6 @@
],
"type": "object"
},
- "CustomPrompt": {
- "properties": {
- "argument_hint": {
- "type": [
- "string",
- "null"
- ]
- },
- "content": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "name",
- "path"
- ],
- "type": "object"
- },
- "Duration": {
- "properties": {
- "nanos": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "secs": {
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- }
- },
- "required": [
- "nanos",
- "secs"
- ],
- "type": "object"
- },
"DynamicToolCallParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -1906,3156 +1678,100 @@
"title": "DynamicToolCallResponse",
"type": "object"
},
- "ElicitationRequest": {
+ "ExecCommandApprovalParams": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "properties": {
+ "approvalId": {
+ "description": "Identifier for this specific approval callback.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "callId": {
+ "description": "Use to correlate this with [codex_protocol::protocol::ExecCommandBeginEvent] and [codex_protocol::protocol::ExecCommandEndEvent].",
+ "type": "string"
+ },
+ "command": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "conversationId": {
+ "$ref": "#/definitions/v2/ThreadId"
+ },
+ "cwd": {
+ "type": "string"
+ },
+ "parsedCmd": {
+ "items": {
+ "$ref": "#/definitions/ParsedCommand"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "callId",
+ "command",
+ "conversationId",
+ "cwd",
+ "parsedCmd"
+ ],
+ "title": "ExecCommandApprovalParams",
+ "type": "object"
+ },
+ "ExecCommandApprovalResponse": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "properties": {
+ "decision": {
+ "$ref": "#/definitions/ReviewDecision"
+ }
+ },
+ "required": [
+ "decision"
+ ],
+ "title": "ExecCommandApprovalResponse",
+ "type": "object"
+ },
+ "FileChange": {
"oneOf": [
{
"properties": {
- "_meta": true,
- "message": {
+ "content": {
"type": "string"
},
- "mode": {
+ "type": {
"enum": [
- "form"
+ "add"
],
+ "title": "AddFileChangeType",
"type": "string"
- },
- "requested_schema": true
+ }
},
"required": [
- "message",
- "mode",
- "requested_schema"
+ "content",
+ "type"
],
+ "title": "AddFileChange",
"type": "object"
},
{
"properties": {
- "_meta": true,
- "elicitation_id": {
- "type": "string"
- },
- "message": {
+ "content": {
"type": "string"
},
- "mode": {
+ "type": {
"enum": [
- "url"
+ "delete"
],
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "elicitation_id",
- "message",
- "mode",
- "url"
- ],
- "type": "object"
- }
- ]
- },
- "EventMsg": {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "description": "Response event from the agent NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.",
- "oneOf": [
- {
- "description": "Error while executing a submission",
- "properties": {
- "codex_error_info": {
- "anyOf": [
- {
- "$ref": "#/definitions/v2/CodexErrorInfo"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "error"
- ],
- "title": "ErrorEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "ErrorEventMsg",
- "type": "object"
- },
- {
- "description": "Warning issued while processing a submission. Unlike `Error`, this indicates the turn continued but the user should still be notified.",
- "properties": {
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "warning"
- ],
- "title": "WarningEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "WarningEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation lifecycle start event.",
- "properties": {
- "session_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "realtime_conversation_started"
- ],
- "title": "RealtimeConversationStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "RealtimeConversationStartedEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation streaming payload event.",
- "properties": {
- "payload": {
- "$ref": "#/definitions/RealtimeEvent"
- },
- "type": {
- "enum": [
- "realtime_conversation_realtime"
- ],
- "title": "RealtimeConversationRealtimeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "payload",
- "type"
- ],
- "title": "RealtimeConversationRealtimeEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation lifecycle close event.",
- "properties": {
- "reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "realtime_conversation_closed"
- ],
- "title": "RealtimeConversationClosedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "RealtimeConversationClosedEventMsg",
- "type": "object"
- },
- {
- "description": "Model routing changed from the requested model to a different model.",
- "properties": {
- "from_model": {
- "type": "string"
- },
- "reason": {
- "$ref": "#/definitions/v2/ModelRerouteReason"
- },
- "to_model": {
- "type": "string"
- },
- "type": {
- "enum": [
- "model_reroute"
- ],
- "title": "ModelRerouteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "from_model",
- "reason",
- "to_model",
- "type"
- ],
- "title": "ModelRerouteEventMsg",
- "type": "object"
- },
- {
- "description": "Conversation history was compacted (either automatically or manually).",
- "properties": {
- "type": {
- "enum": [
- "context_compacted"
- ],
- "title": "ContextCompactedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ContextCompactedEventMsg",
- "type": "object"
- },
- {
- "description": "Conversation history was rolled back by dropping the last N user turns.",
- "properties": {
- "num_turns": {
- "description": "Number of user turns that were removed from context.",
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "type": {
- "enum": [
- "thread_rolled_back"
- ],
- "title": "ThreadRolledBackEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "num_turns",
- "type"
- ],
- "title": "ThreadRolledBackEventMsg",
- "type": "object"
- },
- {
- "description": "Agent has started a turn. v1 wire format uses `task_started`; accept `turn_started` for v2 interop.",
- "properties": {
- "collaboration_mode_kind": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ModeKind"
- }
- ],
- "default": "default"
- },
- "model_context_window": {
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "task_started"
- ],
- "title": "TaskStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "turn_id",
- "type"
- ],
- "title": "TaskStartedEventMsg",
- "type": "object"
- },
- {
- "description": "Agent has completed all actions. v1 wire format uses `task_complete`; accept `turn_complete` for v2 interop.",
- "properties": {
- "last_agent_message": {
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "task_complete"
- ],
- "title": "TaskCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "turn_id",
- "type"
- ],
- "title": "TaskCompleteEventMsg",
- "type": "object"
- },
- {
- "description": "Usage update for the current session, including totals and last turn. Optional means unknown — UIs should not display when `None`.",
- "properties": {
- "info": {
- "anyOf": [
- {
- "$ref": "#/definitions/TokenUsageInfo"
- },
- {
- "type": "null"
- }
- ]
- },
- "rate_limits": {
- "anyOf": [
- {
- "$ref": "#/definitions/v2/RateLimitSnapshot"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "enum": [
- "token_count"
- ],
- "title": "TokenCountEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "TokenCountEventMsg",
- "type": "object"
- },
- {
- "description": "Agent text output message",
- "properties": {
- "message": {
- "type": "string"
- },
- "phase": {
- "anyOf": [
- {
- "$ref": "#/definitions/v2/MessagePhase"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "type": {
- "enum": [
- "agent_message"
- ],
- "title": "AgentMessageEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "AgentMessageEventMsg",
- "type": "object"
- },
- {
- "description": "User/system input message (what was sent to the model)",
- "properties": {
- "images": {
- "description": "Image URLs sourced from `UserInput::Image`. These are safe to replay in legacy UI history events and correspond to images sent to the model.",
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "local_images": {
- "default": [],
- "description": "Local file paths sourced from `UserInput::LocalImage`. These are kept so the UI can reattach images when editing history, and should not be sent to the model or treated as API-ready URLs.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "text_elements": {
- "default": [],
- "description": "UI-defined spans within `message` used to render or persist special elements.",
- "items": {
- "$ref": "#/definitions/v2/TextElement"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "user_message"
- ],
- "title": "UserMessageEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "UserMessageEventMsg",
- "type": "object"
- },
- {
- "description": "Agent text output delta message",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_message_delta"
- ],
- "title": "AgentMessageDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentMessageDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Reasoning event from agent.",
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning"
- ],
- "title": "AgentReasoningEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "AgentReasoningEventMsg",
- "type": "object"
- },
- {
- "description": "Agent reasoning delta event from agent.",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_delta"
- ],
- "title": "AgentReasoningDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentReasoningDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Raw chain-of-thought from agent.",
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_raw_content"
- ],
- "title": "AgentReasoningRawContentEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "AgentReasoningRawContentEventMsg",
- "type": "object"
- },
- {
- "description": "Agent reasoning content delta event from agent.",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_raw_content_delta"
- ],
- "title": "AgentReasoningRawContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentReasoningRawContentDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Signaled when the model begins a new reasoning summary section (e.g., a new titled block).",
- "properties": {
- "item_id": {
- "default": "",
- "type": "string"
- },
- "summary_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "type": {
- "enum": [
- "agent_reasoning_section_break"
- ],
- "title": "AgentReasoningSectionBreakEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "AgentReasoningSectionBreakEventMsg",
- "type": "object"
- },
- {
- "description": "Ack the client's configure message.",
- "properties": {
- "approval_policy": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/AskForApproval"
- }
- ],
- "description": "When to escalate for approval for execution"
- },
- "cwd": {
- "description": "Working directory that should be treated as the *root* of the session.",
- "type": "string"
- },
- "forked_from_id": {
- "anyOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- },
- {
- "type": "null"
- }
- ]
- },
- "history_entry_count": {
- "description": "Current number of entries in the history log.",
- "format": "uint",
- "minimum": 0.0,
- "type": "integer"
- },
- "history_log_id": {
- "description": "Identifier of the history log file (inode on Unix, 0 otherwise).",
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- },
- "initial_messages": {
- "description": "Optional initial messages (as events) for resumed sessions. When present, UIs can use these to seed the history.",
- "items": {
- "$ref": "#/definitions/EventMsg"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "model": {
- "description": "Tell the client what model is being queried.",
- "type": "string"
- },
- "model_provider_id": {
- "type": "string"
- },
- "network_proxy": {
- "anyOf": [
- {
- "$ref": "#/definitions/SessionNetworkProxyRuntime"
- },
- {
- "type": "null"
- }
- ],
- "description": "Runtime proxy bind addresses, when the managed proxy was started for this session."
- },
- "reasoning_effort": {
- "anyOf": [
- {
- "$ref": "#/definitions/v2/ReasoningEffort"
- },
- {
- "type": "null"
- }
- ],
- "description": "The effort the model is putting into reasoning about the user's request."
- },
- "rollout_path": {
- "description": "Path in which the rollout is stored. Can be `None` for ephemeral threads",
- "type": [
- "string",
- "null"
- ]
- },
- "sandbox_policy": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/SandboxPolicy"
- }
- ],
- "description": "How to sandbox commands executed in the system"
- },
- "service_tier": {
- "anyOf": [
- {
- "$ref": "#/definitions/v2/ServiceTier"
- },
- {
- "type": "null"
- }
- ]
- },
- "session_id": {
- "$ref": "#/definitions/v2/ThreadId"
- },
- "thread_name": {
- "description": "Optional user-facing thread name (may be unset).",
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "session_configured"
- ],
- "title": "SessionConfiguredEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "approval_policy",
- "cwd",
- "history_entry_count",
- "history_log_id",
- "model",
- "model_provider_id",
- "sandbox_policy",
- "session_id",
- "type"
- ],
- "title": "SessionConfiguredEventMsg",
- "type": "object"
- },
- {
- "description": "Updated session metadata (e.g., thread name changes).",
- "properties": {
- "thread_id": {
- "$ref": "#/definitions/v2/ThreadId"
- },
- "thread_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "thread_name_updated"
- ],
- "title": "ThreadNameUpdatedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "thread_id",
- "type"
- ],
- "title": "ThreadNameUpdatedEventMsg",
- "type": "object"
- },
- {
- "description": "Incremental MCP startup progress updates.",
- "properties": {
- "server": {
- "description": "Server name being started.",
- "type": "string"
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/McpStartupStatus"
- }
- ],
- "description": "Current startup status."
- },
- "type": {
- "enum": [
- "mcp_startup_update"
- ],
- "title": "McpStartupUpdateEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "server",
- "status",
- "type"
- ],
- "title": "McpStartupUpdateEventMsg",
- "type": "object"
- },
- {
- "description": "Aggregate MCP startup completion summary.",
- "properties": {
- "cancelled": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "failed": {
- "items": {
- "$ref": "#/definitions/McpStartupFailure"
- },
- "type": "array"
- },
- "ready": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "mcp_startup_complete"
- ],
- "title": "McpStartupCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "cancelled",
- "failed",
- "ready",
- "type"
- ],
- "title": "McpStartupCompleteEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Identifier so this can be paired with the McpToolCallEnd event.",
- "type": "string"
- },
- "invocation": {
- "$ref": "#/definitions/McpInvocation"
- },
- "type": {
- "enum": [
- "mcp_tool_call_begin"
- ],
- "title": "McpToolCallBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "invocation",
- "type"
- ],
- "title": "McpToolCallBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Identifier for the corresponding McpToolCallBegin that finished.",
- "type": "string"
- },
- "duration": {
- "$ref": "#/definitions/Duration"
- },
- "invocation": {
- "$ref": "#/definitions/McpInvocation"
- },
- "result": {
- "allOf": [
- {
- "$ref": "#/definitions/Result_of_CallToolResult_or_String"
- }
- ],
- "description": "Result of the tool call. Note this could be an error."
- },
- "type": {
- "enum": [
- "mcp_tool_call_end"
- ],
- "title": "McpToolCallEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "duration",
- "invocation",
- "result",
- "type"
- ],
- "title": "McpToolCallEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "web_search_begin"
- ],
- "title": "WebSearchBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "type"
- ],
- "title": "WebSearchBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "action": {
- "$ref": "#/definitions/v2/ResponsesApiWebSearchAction"
- },
- "call_id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "type": {
- "enum": [
- "web_search_end"
- ],
- "title": "WebSearchEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "action",
- "call_id",
- "query",
- "type"
- ],
- "title": "WebSearchEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "image_generation_begin"
- ],
- "title": "ImageGenerationBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "type"
- ],
- "title": "ImageGenerationBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "result": {
- "type": "string"
- },
- "revised_prompt": {
- "type": [
- "string",
- "null"
- ]
- },
- "saved_path": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "type": "string"
- },
- "type": {
- "enum": [
- "image_generation_end"
- ],
- "title": "ImageGenerationEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "result",
- "status",
- "type"
- ],
- "title": "ImageGenerationEndEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the server is about to execute a command.",
- "properties": {
- "call_id": {
- "description": "Identifier so this can be paired with the ExecCommandEnd event.",
- "type": "string"
- },
- "command": {
- "description": "The command to be executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory if not the default cwd for the agent.",
- "type": "string"
- },
- "interaction_input": {
- "description": "Raw input sent to a unified exec session (if this is an interaction event).",
- "type": [
- "string",
- "null"
- ]
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "process_id": {
- "description": "Identifier for the underlying PTY process (when available).",
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandSource"
- }
- ],
- "default": "agent",
- "description": "Where the command originated. Defaults to Agent for backward compatibility."
- },
- "turn_id": {
- "description": "Turn ID that this command belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_command_begin"
- ],
- "title": "ExecCommandBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "parsed_cmd",
- "turn_id",
- "type"
- ],
- "title": "ExecCommandBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Incremental chunk of output from a running command.",
- "properties": {
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that produced this chunk.",
- "type": "string"
- },
- "chunk": {
- "description": "Raw bytes from the stream (may not be valid UTF-8).",
- "type": "string"
- },
- "stream": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecOutputStream"
- }
- ],
- "description": "Which stream produced this chunk."
- },
- "type": {
- "enum": [
- "exec_command_output_delta"
- ],
- "title": "ExecCommandOutputDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "chunk",
- "stream",
- "type"
- ],
- "title": "ExecCommandOutputDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Terminal interaction for an in-progress command (stdin sent and stdout observed).",
- "properties": {
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that produced this chunk.",
- "type": "string"
- },
- "process_id": {
- "description": "Process id associated with the running command.",
- "type": "string"
- },
- "stdin": {
- "description": "Stdin sent to the running session.",
- "type": "string"
- },
- "type": {
- "enum": [
- "terminal_interaction"
- ],
- "title": "TerminalInteractionEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "process_id",
- "stdin",
- "type"
- ],
- "title": "TerminalInteractionEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "aggregated_output": {
- "default": "",
- "description": "Captured aggregated output",
- "type": "string"
- },
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that finished.",
- "type": "string"
- },
- "command": {
- "description": "The command that was executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory if not the default cwd for the agent.",
- "type": "string"
- },
- "duration": {
- "allOf": [
- {
- "$ref": "#/definitions/Duration"
- }
- ],
- "description": "The duration of the command execution."
- },
- "exit_code": {
- "description": "The command's exit code.",
- "format": "int32",
- "type": "integer"
- },
- "formatted_output": {
- "description": "Formatted output from the command, as seen by the model.",
- "type": "string"
- },
- "interaction_input": {
- "description": "Raw input sent to a unified exec session (if this is an interaction event).",
- "type": [
- "string",
- "null"
- ]
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "process_id": {
- "description": "Identifier for the underlying PTY process (when available).",
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandSource"
- }
- ],
- "default": "agent",
- "description": "Where the command originated. Defaults to Agent for backward compatibility."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandStatus"
- }
- ],
- "description": "Completion status for this command execution."
- },
- "stderr": {
- "description": "Captured stderr",
- "type": "string"
- },
- "stdout": {
- "description": "Captured stdout",
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this command belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_command_end"
- ],
- "title": "ExecCommandEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "duration",
- "exit_code",
- "formatted_output",
- "parsed_cmd",
- "status",
- "stderr",
- "stdout",
- "turn_id",
- "type"
- ],
- "title": "ExecCommandEndEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent attached a local image via the view_image tool.",
- "properties": {
- "call_id": {
- "description": "Identifier for the originating tool call.",
- "type": "string"
- },
- "path": {
- "description": "Local filesystem path provided to the tool.",
- "type": "string"
- },
- "type": {
- "enum": [
- "view_image_tool_call"
- ],
- "title": "ViewImageToolCallEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "path",
- "type"
- ],
- "title": "ViewImageToolCallEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "additional_permissions": {
- "anyOf": [
- {
- "$ref": "#/definitions/PermissionProfile"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional additional filesystem permissions requested for this command."
- },
- "approval_id": {
- "description": "Identifier for this specific approval callback.\n\nWhen absent, the approval is for the command item itself (`call_id`). This is present for subcommand approvals (via execve intercept).",
- "type": [
- "string",
- "null"
- ]
- },
- "available_decisions": {
- "description": "Ordered list of decisions the client may present for this prompt.\n\nWhen absent, clients should derive the legacy default set from the other fields on this request.",
- "items": {
- "$ref": "#/definitions/ReviewDecision"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "call_id": {
- "description": "Identifier for the associated command execution item.",
- "type": "string"
- },
- "command": {
- "description": "The command to be executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory.",
- "type": "string"
- },
- "network_approval_context": {
- "anyOf": [
- {
- "$ref": "#/definitions/NetworkApprovalContext"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional network context for a blocked request that can be approved."
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "proposed_execpolicy_amendment": {
- "description": "Proposed execpolicy amendment that can be applied to allow future runs.",
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "proposed_network_policy_amendments": {
- "description": "Proposed network policy amendments (for example allow/deny this host in future).",
- "items": {
- "$ref": "#/definitions/NetworkPolicyAmendment"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "reason": {
- "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",
- "type": [
- "string",
- "null"
- ]
- },
- "skill_metadata": {
- "anyOf": [
- {
- "$ref": "#/definitions/ExecApprovalRequestSkillMetadata"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional skill metadata when the approval was triggered by a skill script."
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this command belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_approval_request"
- ],
- "title": "ExecApprovalRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "parsed_cmd",
- "type"
- ],
- "title": "ExecApprovalRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated tool call, if available.",
- "type": "string"
- },
- "permissions": {
- "$ref": "#/definitions/PermissionProfile"
- },
- "reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "request_permissions"
- ],
- "title": "RequestPermissionsEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "permissions",
- "type"
- ],
- "title": "RequestPermissionsEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated tool call, if available.",
- "type": "string"
- },
- "questions": {
- "items": {
- "$ref": "#/definitions/RequestUserInputQuestion"
- },
- "type": "array"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "request_user_input"
- ],
- "title": "RequestUserInputEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "questions",
- "type"
- ],
- "title": "RequestUserInputEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "arguments": true,
- "callId": {
- "type": "string"
- },
- "tool": {
- "type": "string"
- },
- "turnId": {
- "type": "string"
- },
- "type": {
- "enum": [
- "dynamic_tool_call_request"
- ],
- "title": "DynamicToolCallRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "arguments",
- "callId",
- "tool",
- "turnId",
- "type"
- ],
- "title": "DynamicToolCallRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "arguments": {
- "description": "Dynamic tool call arguments."
- },
- "call_id": {
- "description": "Identifier for the corresponding DynamicToolCallRequest.",
- "type": "string"
- },
- "content_items": {
- "description": "Dynamic tool response content items.",
- "items": {
- "$ref": "#/definitions/v2/DynamicToolCallOutputContentItem"
- },
- "type": "array"
- },
- "duration": {
- "allOf": [
- {
- "$ref": "#/definitions/Duration"
- }
- ],
- "description": "The duration of the dynamic tool call."
- },
- "error": {
- "description": "Optional error text when the tool call failed before producing a response.",
- "type": [
- "string",
- "null"
- ]
- },
- "success": {
- "description": "Whether the tool call succeeded.",
- "type": "boolean"
- },
- "tool": {
- "description": "Dynamic tool name.",
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this dynamic tool call belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "dynamic_tool_call_response"
- ],
- "title": "DynamicToolCallResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "arguments",
- "call_id",
- "content_items",
- "duration",
- "success",
- "tool",
- "turn_id",
- "type"
- ],
- "title": "DynamicToolCallResponseEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "$ref": "#/definitions/v2/RequestId"
- },
- "request": {
- "$ref": "#/definitions/ElicitationRequest"
- },
- "server_name": {
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this elicitation belongs to, when known.",
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "elicitation_request"
- ],
- "title": "ElicitationRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "request",
- "server_name",
- "type"
- ],
- "title": "ElicitationRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated patch apply call, if available.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "type": "object"
- },
- "grant_root": {
- "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session.",
- "type": [
- "string",
- "null"
- ]
- },
- "reason": {
- "description": "Optional explanatory reason (e.g. request for extra write access).",
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility with older senders.",
- "type": "string"
- },
- "type": {
- "enum": [
- "apply_patch_approval_request"
- ],
- "title": "ApplyPatchApprovalRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "changes",
- "type"
- ],
- "title": "ApplyPatchApprovalRequestEventMsg",
- "type": "object"
- },
- {
- "description": "Notification advising the user that something they are using has been deprecated and should be phased out.",
- "properties": {
- "details": {
- "description": "Optional extra guidance, such as migration steps or rationale.",
- "type": [
- "string",
- "null"
- ]
- },
- "summary": {
- "description": "Concise summary of what is deprecated.",
- "type": "string"
- },
- "type": {
- "enum": [
- "deprecation_notice"
- ],
- "title": "DeprecationNoticeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "summary",
- "type"
- ],
- "title": "DeprecationNoticeEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "background_event"
- ],
- "title": "BackgroundEventEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "BackgroundEventEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "undo_started"
- ],
- "title": "UndoStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "UndoStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": [
- "string",
- "null"
- ]
- },
- "success": {
- "type": "boolean"
- },
- "type": {
- "enum": [
- "undo_completed"
- ],
- "title": "UndoCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "success",
- "type"
- ],
- "title": "UndoCompletedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that a model stream experienced an error or disconnect and the system is handling it (e.g., retrying with backoff).",
- "properties": {
- "additional_details": {
- "default": null,
- "description": "Optional details about the underlying stream failure (often the same human-readable message that is surfaced as the terminal error if retries are exhausted).",
- "type": [
- "string",
- "null"
- ]
- },
- "codex_error_info": {
- "anyOf": [
- {
- "$ref": "#/definitions/v2/CodexErrorInfo"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "stream_error"
- ],
- "title": "StreamErrorEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "StreamErrorEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent is about to apply a code patch. Mirrors `ExecCommandBegin` so front‑ends can show progress indicators.",
- "properties": {
- "auto_approved": {
- "description": "If true, there was no ApplyPatchApprovalRequest for this patch.",
- "type": "boolean"
- },
- "call_id": {
- "description": "Identifier so this can be paired with the PatchApplyEnd event.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "description": "The changes to be applied.",
- "type": "object"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "patch_apply_begin"
- ],
- "title": "PatchApplyBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "auto_approved",
- "call_id",
- "changes",
- "type"
- ],
- "title": "PatchApplyBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that a patch application has finished.",
- "properties": {
- "call_id": {
- "description": "Identifier for the PatchApplyBegin that finished.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "default": {},
- "description": "The changes that were applied (mirrors PatchApplyBeginEvent::changes).",
- "type": "object"
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/PatchApplyStatus"
- }
- ],
- "description": "Completion status for this patch application."
- },
- "stderr": {
- "description": "Captured stderr (parser errors, IO failures, etc.).",
- "type": "string"
- },
- "stdout": {
- "description": "Captured stdout (summary printed by apply_patch).",
- "type": "string"
- },
- "success": {
- "description": "Whether the patch was applied successfully.",
- "type": "boolean"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "patch_apply_end"
- ],
- "title": "PatchApplyEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "status",
- "stderr",
- "stdout",
- "success",
- "type"
- ],
- "title": "PatchApplyEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": [
- "turn_diff"
- ],
- "title": "TurnDiffEventMsgType",
- "type": "string"
- },
- "unified_diff": {
- "type": "string"
- }
- },
- "required": [
- "type",
- "unified_diff"
- ],
- "title": "TurnDiffEventMsg",
- "type": "object"
- },
- {
- "description": "Response to GetHistoryEntryRequest.",
- "properties": {
- "entry": {
- "anyOf": [
- {
- "$ref": "#/definitions/HistoryEntry"
- },
- {
- "type": "null"
- }
- ],
- "description": "The entry at the requested offset, if available and parseable."
- },
- "log_id": {
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- },
- "offset": {
- "format": "uint",
- "minimum": 0.0,
- "type": "integer"
- },
- "type": {
- "enum": [
- "get_history_entry_response"
- ],
- "title": "GetHistoryEntryResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "log_id",
- "offset",
- "type"
- ],
- "title": "GetHistoryEntryResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of MCP tools available to the agent.",
- "properties": {
- "auth_statuses": {
- "additionalProperties": {
- "$ref": "#/definitions/v2/McpAuthStatus"
- },
- "description": "Authentication status for each configured MCP server.",
- "type": "object"
- },
- "resource_templates": {
- "additionalProperties": {
- "items": {
- "$ref": "#/definitions/v2/ResourceTemplate"
- },
- "type": "array"
- },
- "description": "Known resource templates grouped by server name.",
- "type": "object"
- },
- "resources": {
- "additionalProperties": {
- "items": {
- "$ref": "#/definitions/v2/Resource"
- },
- "type": "array"
- },
- "description": "Known resources grouped by server name.",
- "type": "object"
- },
- "tools": {
- "additionalProperties": {
- "$ref": "#/definitions/v2/Tool"
- },
- "description": "Fully qualified tool name -> tool definition.",
- "type": "object"
- },
- "type": {
- "enum": [
- "mcp_list_tools_response"
- ],
- "title": "McpListToolsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "auth_statuses",
- "resource_templates",
- "resources",
- "tools",
- "type"
- ],
- "title": "McpListToolsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of custom prompts available to the agent.",
- "properties": {
- "custom_prompts": {
- "items": {
- "$ref": "#/definitions/CustomPrompt"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_custom_prompts_response"
- ],
- "title": "ListCustomPromptsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "custom_prompts",
- "type"
- ],
- "title": "ListCustomPromptsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of skills available to the agent.",
- "properties": {
- "skills": {
- "items": {
- "$ref": "#/definitions/v2/SkillsListEntry"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_skills_response"
- ],
- "title": "ListSkillsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "skills",
- "type"
- ],
- "title": "ListSkillsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of remote skills available to the agent.",
- "properties": {
- "skills": {
- "items": {
- "$ref": "#/definitions/v2/RemoteSkillSummary"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_remote_skills_response"
- ],
- "title": "ListRemoteSkillsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "skills",
- "type"
- ],
- "title": "ListRemoteSkillsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "Remote skill downloaded to local cache.",
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "type": {
- "enum": [
- "remote_skill_downloaded"
- ],
- "title": "RemoteSkillDownloadedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "path",
- "type"
- ],
- "title": "RemoteSkillDownloadedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that skill data may have been updated and clients may want to reload.",
- "properties": {
- "type": {
- "enum": [
- "skills_update_available"
- ],
- "title": "SkillsUpdateAvailableEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "SkillsUpdateAvailableEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "explanation": {
- "default": null,
- "description": "Arguments for the `update_plan` todo/checklist tool (not plan mode).",
- "type": [
- "string",
- "null"
- ]
- },
- "plan": {
- "items": {
- "$ref": "#/definitions/PlanItemArg"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "plan_update"
- ],
- "title": "PlanUpdateEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "plan",
- "type"
- ],
- "title": "PlanUpdateEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "reason": {
- "$ref": "#/definitions/TurnAbortReason"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "turn_aborted"
- ],
- "title": "TurnAbortedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "reason",
- "type"
- ],
- "title": "TurnAbortedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent is shutting down.",
- "properties": {
- "type": {
- "enum": [
- "shutdown_complete"
- ],
- "title": "ShutdownCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ShutdownCompleteEventMsg",
- "type": "object"
- },
- {
- "description": "Entered review mode.",
- "properties": {
- "target": {
- "$ref": "#/definitions/v2/ReviewTarget"
- },
- "type": {
- "enum": [
- "entered_review_mode"
- ],
- "title": "EnteredReviewModeEventMsgType",
- "type": "string"
- },
- "user_facing_hint": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "target",
- "type"
- ],
- "title": "EnteredReviewModeEventMsg",
- "type": "object"
- },
- {
- "description": "Exited review mode with an optional final result to apply.",
- "properties": {
- "review_output": {
- "anyOf": [
- {
- "$ref": "#/definitions/ReviewOutputEvent"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "enum": [
- "exited_review_mode"
- ],
- "title": "ExitedReviewModeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ExitedReviewModeEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/v2/ResponseItem"
- },
- "type": {
- "enum": [
- "raw_response_item"
- ],
- "title": "RawResponseItemEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "type"
- ],
- "title": "RawResponseItemEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/TurnItem"
- },
- "thread_id": {
- "$ref": "#/definitions/v2/ThreadId"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "item_started"
- ],
- "title": "ItemStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ItemStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/TurnItem"
- },
- "thread_id": {
- "$ref": "#/definitions/v2/ThreadId"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "item_completed"
- ],
- "title": "ItemCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ItemCompletedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "run": {
- "$ref": "#/definitions/v2/HookRunSummary"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "hook_started"
- ],
- "title": "HookStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "run",
- "type"
- ],
- "title": "HookStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "run": {
- "$ref": "#/definitions/v2/HookRunSummary"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "hook_completed"
- ],
- "title": "HookCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "run",
- "type"
- ],
- "title": "HookCompletedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_message_content_delta"
- ],
- "title": "AgentMessageContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "AgentMessageContentDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "plan_delta"
- ],
- "title": "PlanDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "PlanDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "summary_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "reasoning_content_delta"
- ],
- "title": "ReasoningContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ReasoningContentDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "content_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "reasoning_raw_content_delta"
- ],
- "title": "ReasoningRawContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ReasoningRawContentDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent spawn begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "model": {
- "type": "string"
- },
- "prompt": {
- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "reasoning_effort": {
- "$ref": "#/definitions/v2/ReasoningEffort"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_agent_spawn_begin"
- ],
- "title": "CollabAgentSpawnBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "model",
- "prompt",
- "reasoning_effort",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabAgentSpawnBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent spawn end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "model": {
- "description": "Model requested for the spawned agent.",
- "type": "string"
- },
- "new_agent_nickname": {
- "description": "Optional nickname assigned to the new agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "new_agent_role": {
- "description": "Optional role assigned to the new agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "new_thread_id": {
- "anyOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- },
- {
- "type": "null"
- }
- ],
- "description": "Thread ID of the newly spawned agent, if it was created."
- },
- "prompt": {
- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "reasoning_effort": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ReasoningEffort"
- }
- ],
- "description": "Reasoning effort requested for the spawned agent."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the new agent reported to the sender agent."
- },
- "type": {
- "enum": [
- "collab_agent_spawn_end"
- ],
- "title": "CollabAgentSpawnEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "model",
- "prompt",
- "reasoning_effort",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabAgentSpawnEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent interaction begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "prompt": {
- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_agent_interaction_begin"
- ],
- "title": "CollabAgentInteractionBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "prompt",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabAgentInteractionBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent interaction end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "prompt": {
- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent."
- },
- "type": {
- "enum": [
- "collab_agent_interaction_end"
- ],
- "title": "CollabAgentInteractionEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "prompt",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabAgentInteractionEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: waiting begin.",
- "properties": {
- "call_id": {
- "description": "ID of the waiting call.",
- "type": "string"
- },
- "receiver_agents": {
- "description": "Optional nicknames/roles for receivers.",
- "items": {
- "$ref": "#/definitions/CollabAgentRef"
- },
- "type": "array"
- },
- "receiver_thread_ids": {
- "description": "Thread ID of the receivers.",
- "items": {
- "$ref": "#/definitions/v2/ThreadId"
- },
- "type": "array"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_waiting_begin"
- ],
- "title": "CollabWaitingBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_ids",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabWaitingBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: waiting end.",
- "properties": {
- "agent_statuses": {
- "description": "Optional receiver metadata paired with final statuses.",
- "items": {
- "$ref": "#/definitions/CollabAgentStatusEntry"
- },
- "type": "array"
- },
- "call_id": {
- "description": "ID of the waiting call.",
- "type": "string"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "statuses": {
- "additionalProperties": {
- "$ref": "#/definitions/AgentStatus"
- },
- "description": "Last known status of the receiver agents reported to the sender agent.",
- "type": "object"
- },
- "type": {
- "enum": [
- "collab_waiting_end"
- ],
- "title": "CollabWaitingEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "sender_thread_id",
- "statuses",
- "type"
- ],
- "title": "CollabWaitingEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: close begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_close_begin"
- ],
- "title": "CollabCloseBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabCloseBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: close end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent before the close."
- },
- "type": {
- "enum": [
- "collab_close_end"
- ],
- "title": "CollabCloseEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabCloseEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: resume begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_resume_begin"
- ],
- "title": "CollabResumeBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabResumeBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: resume end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/v2/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent after resume."
- },
- "type": {
- "enum": [
- "collab_resume_end"
- ],
- "title": "CollabResumeEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabResumeEndEventMsg",
- "type": "object"
- }
- ],
- "title": "EventMsg"
- },
- "ExecApprovalRequestSkillMetadata": {
- "properties": {
- "path_to_skills_md": {
- "type": "string"
- }
- },
- "required": [
- "path_to_skills_md"
- ],
- "type": "object"
- },
- "ExecCommandApprovalParams": {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "properties": {
- "approvalId": {
- "description": "Identifier for this specific approval callback.",
- "type": [
- "string",
- "null"
- ]
- },
- "callId": {
- "description": "Use to correlate this with [codex_protocol::protocol::ExecCommandBeginEvent] and [codex_protocol::protocol::ExecCommandEndEvent].",
- "type": "string"
- },
- "command": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "conversationId": {
- "$ref": "#/definitions/v2/ThreadId"
- },
- "cwd": {
- "type": "string"
- },
- "parsedCmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "reason": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "callId",
- "command",
- "conversationId",
- "cwd",
- "parsedCmd"
- ],
- "title": "ExecCommandApprovalParams",
- "type": "object"
- },
- "ExecCommandApprovalResponse": {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "properties": {
- "decision": {
- "$ref": "#/definitions/ReviewDecision"
- }
- },
- "required": [
- "decision"
- ],
- "title": "ExecCommandApprovalResponse",
- "type": "object"
- },
- "ExecCommandSource": {
- "enum": [
- "agent",
- "user_shell",
- "unified_exec_startup",
- "unified_exec_interaction"
- ],
- "type": "string"
- },
- "ExecCommandStatus": {
- "enum": [
- "completed",
- "failed",
- "declined"
- ],
- "type": "string"
- },
- "ExecOutputStream": {
- "enum": [
- "stdout",
- "stderr"
- ],
- "type": "string"
- },
- "FileChange": {
- "oneOf": [
- {
- "properties": {
- "content": {
- "type": "string"
- },
- "type": {
- "enum": [
- "add"
- ],
- "title": "AddFileChangeType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "type"
- ],
- "title": "AddFileChange",
- "type": "object"
- },
- {
- "properties": {
- "content": {
- "type": "string"
- },
- "type": {
- "enum": [
- "delete"
- ],
- "title": "DeleteFileChangeType",
+ "title": "DeleteFileChangeType",
"type": "string"
}
},
@@ -5174,29 +1890,6 @@
"title": "FileChangeRequestApprovalResponse",
"type": "object"
},
- "FileSystemPermissions": {
- "properties": {
- "read": {
- "items": {
- "$ref": "#/definitions/v2/AbsolutePathBuf"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "write": {
- "items": {
- "$ref": "#/definitions/v2/AbsolutePathBuf"
- },
- "type": [
- "array",
- "null"
- ]
- }
- },
- "type": "object"
- },
"FuzzyFileSearchParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -5407,27 +2100,6 @@
},
"type": "object"
},
- "HistoryEntry": {
- "properties": {
- "conversation_id": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "ts": {
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- }
- },
- "required": [
- "conversation_id",
- "text",
- "ts"
- ],
- "type": "object"
- },
"InitializeCapabilities": {
"description": "Client-declared capabilities negotiated during initialize.",
"properties": {
@@ -5618,77 +2290,32 @@
"items": {
"type": "string"
},
- "type": "array"
- }
- },
- "required": [
- "bundle_ids"
- ],
- "title": "BundleIdsMacOsAutomationPermission",
- "type": "object"
- }
- ]
- },
- "MacOsContactsPermission": {
- "enum": [
- "none",
- "read_only",
- "read_write"
- ],
- "type": "string"
- },
- "MacOsPreferencesPermission": {
- "enum": [
- "none",
- "read_only",
- "read_write"
- ],
- "type": "string"
- },
- "MacOsSeatbeltProfileExtensions": {
- "properties": {
- "macos_accessibility": {
- "default": false,
- "type": "boolean"
- },
- "macos_automation": {
- "allOf": [
- {
- "$ref": "#/definitions/MacOsAutomationPermission"
- }
- ],
- "default": "none"
- },
- "macos_calendar": {
- "default": false,
- "type": "boolean"
- },
- "macos_contacts": {
- "allOf": [
- {
- "$ref": "#/definitions/MacOsContactsPermission"
- }
- ],
- "default": "none"
- },
- "macos_launch_services": {
- "default": false,
- "type": "boolean"
- },
- "macos_preferences": {
- "allOf": [
- {
- "$ref": "#/definitions/MacOsPreferencesPermission"
+ "type": "array"
}
+ },
+ "required": [
+ "bundle_ids"
],
- "default": "read_only"
- },
- "macos_reminders": {
- "default": false,
- "type": "boolean"
+ "title": "BundleIdsMacOsAutomationPermission",
+ "type": "object"
}
- },
- "type": "object"
+ ]
+ },
+ "MacOsContactsPermission": {
+ "enum": [
+ "none",
+ "read_only",
+ "read_write"
+ ],
+ "type": "string"
+ },
+ "MacOsPreferencesPermission": {
+ "enum": [
+ "none",
+ "read_only",
+ "read_write"
+ ],
+ "type": "string"
},
"McpElicitationArrayType": {
"enum": [
@@ -6094,857 +2721,450 @@
"items": {
"$ref": "#/definitions/McpElicitationConstOption"
},
- "type": "array"
- },
- "title": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "$ref": "#/definitions/McpElicitationStringType"
- }
- },
- "required": [
- "oneOf",
- "type"
- ],
- "type": "object"
- },
- "McpElicitationUntitledEnumItems": {
- "additionalProperties": false,
- "properties": {
- "enum": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "$ref": "#/definitions/McpElicitationStringType"
- }
- },
- "required": [
- "enum",
- "type"
- ],
- "type": "object"
- },
- "McpElicitationUntitledMultiSelectEnumSchema": {
- "additionalProperties": false,
- "properties": {
- "default": {
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "items": {
- "$ref": "#/definitions/McpElicitationUntitledEnumItems"
- },
- "maxItems": {
- "format": "uint64",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- },
- "minItems": {
- "format": "uint64",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- },
- "title": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "$ref": "#/definitions/McpElicitationArrayType"
- }
- },
- "required": [
- "items",
- "type"
- ],
- "type": "object"
- },
- "McpElicitationUntitledSingleSelectEnumSchema": {
- "additionalProperties": false,
- "properties": {
- "default": {
- "type": [
- "string",
- "null"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "enum": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "title": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "$ref": "#/definitions/McpElicitationStringType"
- }
- },
- "required": [
- "enum",
- "type"
- ],
- "type": "object"
- },
- "McpInvocation": {
- "properties": {
- "arguments": {
- "description": "Arguments to the tool call."
- },
- "server": {
- "description": "Name of the MCP server as defined in the config.",
- "type": "string"
- },
- "tool": {
- "description": "Name of the tool as given by the MCP server.",
- "type": "string"
- }
- },
- "required": [
- "server",
- "tool"
- ],
- "type": "object"
- },
- "McpServerElicitationAction": {
- "enum": [
- "accept",
- "decline",
- "cancel"
- ],
- "type": "string"
- },
- "McpServerElicitationRequestParams": {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "oneOf": [
- {
- "properties": {
- "_meta": true,
- "message": {
- "type": "string"
- },
- "mode": {
- "enum": [
- "form"
- ],
- "type": "string"
- },
- "requestedSchema": {
- "$ref": "#/definitions/McpElicitationSchema"
- }
- },
- "required": [
- "message",
- "mode",
- "requestedSchema"
- ],
- "type": "object"
- },
- {
- "properties": {
- "_meta": true,
- "elicitationId": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "mode": {
- "enum": [
- "url"
- ],
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "elicitationId",
- "message",
- "mode",
- "url"
- ],
- "type": "object"
- }
- ],
- "properties": {
- "serverName": {
- "type": "string"
- },
- "threadId": {
- "type": "string"
- },
- "turnId": {
- "description": "Active Codex turn when this elicitation was observed, if app-server could correlate one.\n\nThis is nullable because MCP models elicitation as a standalone server-to-client request identified by the MCP server request id. It may be triggered during a turn, but turn context is app-server correlation rather than part of the protocol identity of the elicitation itself.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "serverName",
- "threadId"
- ],
- "title": "McpServerElicitationRequestParams",
- "type": "object"
- },
- "McpServerElicitationRequestResponse": {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "properties": {
- "_meta": {
- "description": "Optional client metadata for form-mode action handling."
+ "type": "array"
},
- "action": {
- "$ref": "#/definitions/McpServerElicitationAction"
+ "title": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- "content": {
- "description": "Structured user input for accepted elicitations, mirroring RMCP `CreateElicitationResult`.\n\nThis is nullable because decline/cancel responses have no content."
+ "type": {
+ "$ref": "#/definitions/McpElicitationStringType"
}
},
"required": [
- "action"
+ "oneOf",
+ "type"
],
- "title": "McpServerElicitationRequestResponse",
"type": "object"
},
- "McpStartupFailure": {
+ "McpElicitationUntitledEnumItems": {
+ "additionalProperties": false,
"properties": {
- "error": {
- "type": "string"
+ "enum": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
},
- "server": {
- "type": "string"
+ "type": {
+ "$ref": "#/definitions/McpElicitationStringType"
}
},
"required": [
- "error",
- "server"
+ "enum",
+ "type"
],
"type": "object"
},
- "McpStartupStatus": {
- "oneOf": [
- {
- "properties": {
- "state": {
- "enum": [
- "starting"
- ],
- "type": "string"
- }
+ "McpElicitationUntitledMultiSelectEnumSchema": {
+ "additionalProperties": false,
+ "properties": {
+ "default": {
+ "items": {
+ "type": "string"
},
- "required": [
- "state"
- ],
- "title": "StartingMcpStartupStatus",
- "type": "object"
+ "type": [
+ "array",
+ "null"
+ ]
},
- {
- "properties": {
- "state": {
- "enum": [
- "ready"
- ],
- "type": "string"
- }
- },
- "required": [
- "state"
- ],
- "title": "ReadyMcpStartupStatus",
- "type": "object"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
},
- {
- "properties": {
- "error": {
- "type": "string"
- },
- "state": {
- "enum": [
- "failed"
- ],
- "type": "string"
- }
- },
- "required": [
- "error",
- "state"
- ],
- "type": "object"
+ "items": {
+ "$ref": "#/definitions/McpElicitationUntitledEnumItems"
},
- {
- "properties": {
- "state": {
- "enum": [
- "cancelled"
- ],
- "type": "string"
- }
- },
- "required": [
- "state"
- ],
- "title": "CancelledMcpStartupStatus",
- "type": "object"
- }
- ]
- },
- "NetworkApprovalContext": {
- "properties": {
- "host": {
- "type": "string"
+ "maxItems": {
+ "format": "uint64",
+ "minimum": 0.0,
+ "type": [
+ "integer",
+ "null"
+ ]
},
- "protocol": {
- "$ref": "#/definitions/NetworkApprovalProtocol"
+ "minItems": {
+ "format": "uint64",
+ "minimum": 0.0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "title": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "type": {
+ "$ref": "#/definitions/McpElicitationArrayType"
}
},
"required": [
- "host",
- "protocol"
+ "items",
+ "type"
],
"type": "object"
},
- "NetworkApprovalProtocol": {
- "enum": [
- "http",
- "https",
- "socks5Tcp",
- "socks5Udp"
- ],
- "type": "string"
- },
- "NetworkPermissions": {
+ "McpElicitationUntitledSingleSelectEnumSchema": {
+ "additionalProperties": false,
"properties": {
- "enabled": {
+ "default": {
"type": [
- "boolean",
+ "string",
"null"
]
- }
- },
- "type": "object"
- },
- "NetworkPolicyAmendment": {
- "properties": {
- "action": {
- "$ref": "#/definitions/NetworkPolicyRuleAction"
},
- "host": {
- "type": "string"
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "enum": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "title": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "type": {
+ "$ref": "#/definitions/McpElicitationStringType"
}
},
"required": [
- "action",
- "host"
+ "enum",
+ "type"
],
"type": "object"
},
- "NetworkPolicyRuleAction": {
+ "McpServerElicitationAction": {
"enum": [
- "allow",
- "deny"
+ "accept",
+ "decline",
+ "cancel"
],
"type": "string"
},
- "ParsedCommand": {
- "oneOf": [
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "description": "(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.",
- "type": "string"
- },
- "type": {
- "enum": [
- "read"
- ],
- "title": "ReadParsedCommandType",
- "type": "string"
- }
- },
- "required": [
- "cmd",
- "name",
- "path",
- "type"
- ],
- "title": "ReadParsedCommand",
- "type": "object"
- },
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "path": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "list_files"
- ],
- "title": "ListFilesParsedCommandType",
- "type": "string"
- }
- },
- "required": [
- "cmd",
- "type"
- ],
- "title": "ListFilesParsedCommand",
- "type": "object"
- },
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "path": {
- "type": [
- "string",
- "null"
- ]
- },
- "query": {
- "type": [
- "string",
- "null"
- ]
+ "McpServerElicitationRequestParams": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "oneOf": [
+ {
+ "properties": {
+ "_meta": true,
+ "message": {
+ "type": "string"
},
- "type": {
+ "mode": {
"enum": [
- "search"
+ "form"
],
- "title": "SearchParsedCommandType",
"type": "string"
+ },
+ "requestedSchema": {
+ "$ref": "#/definitions/McpElicitationSchema"
}
},
"required": [
- "cmd",
- "type"
+ "message",
+ "mode",
+ "requestedSchema"
],
- "title": "SearchParsedCommand",
"type": "object"
},
{
"properties": {
- "cmd": {
+ "_meta": true,
+ "elicitationId": {
"type": "string"
},
- "type": {
+ "message": {
+ "type": "string"
+ },
+ "mode": {
"enum": [
- "unknown"
+ "url"
],
- "title": "UnknownParsedCommandType",
+ "type": "string"
+ },
+ "url": {
"type": "string"
}
},
"required": [
- "cmd",
- "type"
+ "elicitationId",
+ "message",
+ "mode",
+ "url"
],
- "title": "UnknownParsedCommand",
"type": "object"
}
- ]
- },
- "PermissionGrantScope": {
- "enum": [
- "turn",
- "session"
],
- "type": "string"
- },
- "PermissionProfile": {
- "properties": {
- "file_system": {
- "anyOf": [
- {
- "$ref": "#/definitions/FileSystemPermissions"
- },
- {
- "type": "null"
- }
- ]
- },
- "macos": {
- "anyOf": [
- {
- "$ref": "#/definitions/MacOsSeatbeltProfileExtensions"
- },
- {
- "type": "null"
- }
- ]
- },
- "network": {
- "anyOf": [
- {
- "$ref": "#/definitions/NetworkPermissions"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "type": "object"
- },
- "PermissionsRequestApprovalParams": {
- "$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
- "itemId": {
+ "serverName": {
"type": "string"
},
- "permissions": {
- "$ref": "#/definitions/AdditionalPermissionProfile"
+ "threadId": {
+ "type": "string"
},
- "reason": {
+ "turnId": {
+ "description": "Active Codex turn when this elicitation was observed, if app-server could correlate one.\n\nThis is nullable because MCP models elicitation as a standalone server-to-client request identified by the MCP server request id. It may be triggered during a turn, but turn context is app-server correlation rather than part of the protocol identity of the elicitation itself.",
"type": [
"string",
"null"
]
- },
- "threadId": {
- "type": "string"
- },
- "turnId": {
- "type": "string"
}
},
"required": [
- "itemId",
- "permissions",
- "threadId",
- "turnId"
+ "serverName",
+ "threadId"
],
- "title": "PermissionsRequestApprovalParams",
+ "title": "McpServerElicitationRequestParams",
"type": "object"
},
- "PermissionsRequestApprovalResponse": {
+ "McpServerElicitationRequestResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
- "permissions": {
- "$ref": "#/definitions/GrantedPermissionProfile"
+ "_meta": {
+ "description": "Optional client metadata for form-mode action handling."
},
- "scope": {
- "allOf": [
- {
- "$ref": "#/definitions/PermissionGrantScope"
- }
- ],
- "default": "turn"
+ "action": {
+ "$ref": "#/definitions/McpServerElicitationAction"
+ },
+ "content": {
+ "description": "Structured user input for accepted elicitations, mirroring RMCP `CreateElicitationResult`.\n\nThis is nullable because decline/cancel responses have no content."
}
},
"required": [
- "permissions"
+ "action"
],
- "title": "PermissionsRequestApprovalResponse",
+ "title": "McpServerElicitationRequestResponse",
"type": "object"
},
- "PlanItemArg": {
- "additionalProperties": false,
+ "NetworkApprovalContext": {
"properties": {
- "status": {
- "$ref": "#/definitions/StepStatus"
- },
- "step": {
+ "host": {
"type": "string"
+ },
+ "protocol": {
+ "$ref": "#/definitions/NetworkApprovalProtocol"
}
},
"required": [
- "status",
- "step"
+ "host",
+ "protocol"
],
"type": "object"
},
- "RealtimeAudioFrame": {
+ "NetworkApprovalProtocol": {
+ "enum": [
+ "http",
+ "https",
+ "socks5Tcp",
+ "socks5Udp"
+ ],
+ "type": "string"
+ },
+ "NetworkPolicyAmendment": {
"properties": {
- "data": {
- "type": "string"
- },
- "num_channels": {
- "format": "uint16",
- "minimum": 0.0,
- "type": "integer"
- },
- "sample_rate": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
+ "action": {
+ "$ref": "#/definitions/NetworkPolicyRuleAction"
},
- "samples_per_channel": {
- "format": "uint32",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
+ "host": {
+ "type": "string"
}
},
"required": [
- "data",
- "num_channels",
- "sample_rate"
+ "action",
+ "host"
],
"type": "object"
},
- "RealtimeEvent": {
+ "NetworkPolicyRuleAction": {
+ "enum": [
+ "allow",
+ "deny"
+ ],
+ "type": "string"
+ },
+ "ParsedCommand": {
"oneOf": [
{
- "additionalProperties": false,
"properties": {
- "SessionUpdated": {
- "properties": {
- "instructions": {
- "type": [
- "string",
- "null"
- ]
- },
- "session_id": {
- "type": "string"
- }
- },
- "required": [
- "session_id"
+ "cmd": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "path": {
+ "description": "(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.",
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "read"
],
- "type": "object"
- }
- },
- "required": [
- "SessionUpdated"
- ],
- "title": "SessionUpdatedRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "InputTranscriptDelta": {
- "$ref": "#/definitions/RealtimeTranscriptDelta"
- }
- },
- "required": [
- "InputTranscriptDelta"
- ],
- "title": "InputTranscriptDeltaRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "OutputTranscriptDelta": {
- "$ref": "#/definitions/RealtimeTranscriptDelta"
- }
- },
- "required": [
- "OutputTranscriptDelta"
- ],
- "title": "OutputTranscriptDeltaRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "AudioOut": {
- "$ref": "#/definitions/RealtimeAudioFrame"
+ "title": "ReadParsedCommandType",
+ "type": "string"
}
},
"required": [
- "AudioOut"
- ],
- "title": "AudioOutRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ConversationItemAdded": true
- },
- "required": [
- "ConversationItemAdded"
+ "cmd",
+ "name",
+ "path",
+ "type"
],
- "title": "ConversationItemAddedRealtimeEvent",
+ "title": "ReadParsedCommand",
"type": "object"
},
{
- "additionalProperties": false,
"properties": {
- "ConversationItemDone": {
- "properties": {
- "item_id": {
- "type": "string"
- }
- },
- "required": [
- "item_id"
+ "cmd": {
+ "type": "string"
+ },
+ "path": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "type": {
+ "enum": [
+ "list_files"
],
- "type": "object"
+ "title": "ListFilesParsedCommandType",
+ "type": "string"
}
},
"required": [
- "ConversationItemDone"
+ "cmd",
+ "type"
],
- "title": "ConversationItemDoneRealtimeEvent",
+ "title": "ListFilesParsedCommand",
"type": "object"
},
{
- "additionalProperties": false,
"properties": {
- "HandoffRequested": {
- "$ref": "#/definitions/RealtimeHandoffRequested"
+ "cmd": {
+ "type": "string"
+ },
+ "path": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "query": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "type": {
+ "enum": [
+ "search"
+ ],
+ "title": "SearchParsedCommandType",
+ "type": "string"
}
},
"required": [
- "HandoffRequested"
+ "cmd",
+ "type"
],
- "title": "HandoffRequestedRealtimeEvent",
+ "title": "SearchParsedCommand",
"type": "object"
},
{
- "additionalProperties": false,
"properties": {
- "Error": {
+ "cmd": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "unknown"
+ ],
+ "title": "UnknownParsedCommandType",
"type": "string"
}
},
"required": [
- "Error"
+ "cmd",
+ "type"
],
- "title": "ErrorRealtimeEvent",
+ "title": "UnknownParsedCommand",
"type": "object"
}
]
},
- "RealtimeHandoffRequested": {
- "properties": {
- "active_transcript": {
- "items": {
- "$ref": "#/definitions/RealtimeTranscriptEntry"
- },
- "type": "array"
- },
- "handoff_id": {
- "type": "string"
- },
- "input_transcript": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- }
- },
- "required": [
- "active_transcript",
- "handoff_id",
- "input_transcript",
- "item_id"
+ "PermissionGrantScope": {
+ "enum": [
+ "turn",
+ "session"
],
- "type": "object"
+ "type": "string"
},
- "RealtimeTranscriptDelta": {
+ "PermissionsRequestApprovalParams": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
- "delta": {
+ "itemId": {
"type": "string"
- }
- },
- "required": [
- "delta"
- ],
- "type": "object"
- },
- "RealtimeTranscriptEntry": {
- "properties": {
- "role": {
+ },
+ "permissions": {
+ "$ref": "#/definitions/AdditionalPermissionProfile"
+ },
+ "reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "threadId": {
"type": "string"
},
- "text": {
+ "turnId": {
"type": "string"
}
},
"required": [
- "role",
- "text"
+ "itemId",
+ "permissions",
+ "threadId",
+ "turnId"
],
+ "title": "PermissionsRequestApprovalParams",
"type": "object"
},
- "RejectConfig": {
+ "PermissionsRequestApprovalResponse": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
- "mcp_elicitations": {
- "description": "Reject MCP elicitation prompts.",
- "type": "boolean"
- },
- "request_permissions": {
- "default": false,
- "description": "Reject approval prompts related to built-in permission requests.",
- "type": "boolean"
- },
- "rules": {
- "description": "Reject prompts triggered by execpolicy `prompt` rules.",
- "type": "boolean"
- },
- "sandbox_approval": {
- "description": "Reject approval prompts related to sandbox escalation.",
- "type": "boolean"
+ "permissions": {
+ "$ref": "#/definitions/GrantedPermissionProfile"
},
- "skill_approval": {
- "default": false,
- "description": "Reject approval prompts triggered by skill script execution.",
- "type": "boolean"
+ "scope": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/PermissionGrantScope"
+ }
+ ],
+ "default": "turn"
}
},
"required": [
- "mcp_elicitations",
- "rules",
- "sandbox_approval"
+ "permissions"
],
+ "title": "PermissionsRequestApprovalResponse",
"type": "object"
},
"RequestId": {
@@ -6960,101 +3180,6 @@
],
"title": "RequestId"
},
- "RequestUserInputQuestion": {
- "properties": {
- "header": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "isOther": {
- "default": false,
- "type": "boolean"
- },
- "isSecret": {
- "default": false,
- "type": "boolean"
- },
- "options": {
- "items": {
- "$ref": "#/definitions/RequestUserInputQuestionOption"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "question": {
- "type": "string"
- }
- },
- "required": [
- "header",
- "id",
- "question"
- ],
- "type": "object"
- },
- "RequestUserInputQuestionOption": {
- "properties": {
- "description": {
- "type": "string"
- },
- "label": {
- "type": "string"
- }
- },
- "required": [
- "description",
- "label"
- ],
- "type": "object"
- },
- "Result_of_CallToolResult_or_String": {
- "oneOf": [
- {
- "properties": {
- "Ok": {
- "$ref": "#/definitions/CallToolResult"
- }
- },
- "required": [
- "Ok"
- ],
- "title": "OkResult_of_CallToolResult_or_String",
- "type": "object"
- },
- {
- "properties": {
- "Err": {
- "type": "string"
- }
- },
- "required": [
- "Err"
- ],
- "title": "ErrResult_of_CallToolResult_or_String",
- "type": "object"
- }
- ]
- },
- "ReviewCodeLocation": {
- "description": "Location of the code related to a review finding.",
- "properties": {
- "absolute_file_path": {
- "type": "string"
- },
- "line_range": {
- "$ref": "#/definitions/ReviewLineRange"
- }
- },
- "required": [
- "absolute_file_path",
- "line_range"
- ],
- "type": "object"
- },
"ReviewDecision": {
"description": "User's decision in response to an ExecApprovalRequest.",
"oneOf": [
@@ -7099,119 +3224,41 @@
},
{
"additionalProperties": false,
- "description": "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",
- "properties": {
- "network_policy_amendment": {
- "properties": {
- "network_policy_amendment": {
- "$ref": "#/definitions/NetworkPolicyAmendment"
- }
- },
- "required": [
- "network_policy_amendment"
- ],
- "type": "object"
- }
- },
- "required": [
- "network_policy_amendment"
- ],
- "title": "NetworkPolicyAmendmentReviewDecision",
- "type": "object"
- },
- {
- "description": "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",
- "enum": [
- "denied"
- ],
- "type": "string"
- },
- {
- "description": "User has denied this command and the agent should not do anything until the user's next command.",
- "enum": [
- "abort"
- ],
- "type": "string"
- }
- ]
- },
- "ReviewFinding": {
- "description": "A single review finding describing an observed issue or recommendation.",
- "properties": {
- "body": {
- "type": "string"
- },
- "code_location": {
- "$ref": "#/definitions/ReviewCodeLocation"
- },
- "confidence_score": {
- "format": "float",
- "type": "number"
- },
- "priority": {
- "format": "int32",
- "type": "integer"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "body",
- "code_location",
- "confidence_score",
- "priority",
- "title"
- ],
- "type": "object"
- },
- "ReviewLineRange": {
- "description": "Inclusive line range in a file associated with the finding.",
- "properties": {
- "end": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "start": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- }
- },
- "required": [
- "end",
- "start"
- ],
- "type": "object"
- },
- "ReviewOutputEvent": {
- "description": "Structured review result produced by a child review session.",
- "properties": {
- "findings": {
- "items": {
- "$ref": "#/definitions/ReviewFinding"
+ "description": "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",
+ "properties": {
+ "network_policy_amendment": {
+ "properties": {
+ "network_policy_amendment": {
+ "$ref": "#/definitions/NetworkPolicyAmendment"
+ }
+ },
+ "required": [
+ "network_policy_amendment"
+ ],
+ "type": "object"
+ }
},
- "type": "array"
- },
- "overall_confidence_score": {
- "format": "float",
- "type": "number"
+ "required": [
+ "network_policy_amendment"
+ ],
+ "title": "NetworkPolicyAmendmentReviewDecision",
+ "type": "object"
},
- "overall_correctness": {
+ {
+ "description": "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",
+ "enum": [
+ "denied"
+ ],
"type": "string"
},
- "overall_explanation": {
+ {
+ "description": "User has denied this command and the agent should not do anything until the user's next command.",
+ "enum": [
+ "abort"
+ ],
"type": "string"
}
- },
- "required": [
- "findings",
- "overall_confidence_score",
- "overall_correctness",
- "overall_explanation"
- ],
- "type": "object"
+ ]
},
"ServerNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
@@ -8376,83 +4423,6 @@
],
"title": "ServerRequest"
},
- "SessionNetworkProxyRuntime": {
- "properties": {
- "http_addr": {
- "type": "string"
- },
- "socks_addr": {
- "type": "string"
- }
- },
- "required": [
- "http_addr",
- "socks_addr"
- ],
- "type": "object"
- },
- "StepStatus": {
- "enum": [
- "pending",
- "in_progress",
- "completed"
- ],
- "type": "string"
- },
- "TokenUsage": {
- "properties": {
- "cached_input_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "input_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "output_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "reasoning_output_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "total_tokens": {
- "format": "int64",
- "type": "integer"
- }
- },
- "required": [
- "cached_input_tokens",
- "input_tokens",
- "output_tokens",
- "reasoning_output_tokens",
- "total_tokens"
- ],
- "type": "object"
- },
- "TokenUsageInfo": {
- "properties": {
- "last_token_usage": {
- "$ref": "#/definitions/TokenUsage"
- },
- "model_context_window": {
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "total_token_usage": {
- "$ref": "#/definitions/TokenUsage"
- }
- },
- "required": [
- "last_token_usage",
- "total_token_usage"
- ],
- "type": "object"
- },
"ToolRequestUserInputAnswer": {
"description": "EXPERIMENTAL. Captures a user's answer to a request_user_input question.",
"properties": {
@@ -8567,230 +4537,6 @@
"title": "ToolRequestUserInputResponse",
"type": "object"
},
- "TurnAbortReason": {
- "enum": [
- "interrupted",
- "replaced",
- "review_ended"
- ],
- "type": "string"
- },
- "TurnItem": {
- "oneOf": [
- {
- "properties": {
- "content": {
- "items": {
- "$ref": "#/definitions/v2/UserInput"
- },
- "type": "array"
- },
- "id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "UserMessage"
- ],
- "title": "UserMessageTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "id",
- "type"
- ],
- "title": "UserMessageTurnItem",
- "type": "object"
- },
- {
- "description": "Assistant-authored message payload used in turn-item streams.\n\n`phase` is optional because not all providers/models emit it. Consumers should use it when present, but retain legacy completion semantics when it is `None`.",
- "properties": {
- "content": {
- "items": {
- "$ref": "#/definitions/AgentMessageContent"
- },
- "type": "array"
- },
- "id": {
- "type": "string"
- },
- "phase": {
- "anyOf": [
- {
- "$ref": "#/definitions/v2/MessagePhase"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional phase metadata carried through from `ResponseItem::Message`.\n\nThis is currently used by TUI rendering to distinguish mid-turn commentary from a final answer and avoid status-indicator jitter."
- },
- "type": {
- "enum": [
- "AgentMessage"
- ],
- "title": "AgentMessageTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "id",
- "type"
- ],
- "title": "AgentMessageTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "Plan"
- ],
- "title": "PlanTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "text",
- "type"
- ],
- "title": "PlanTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "raw_content": {
- "default": [],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "summary_text": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "Reasoning"
- ],
- "title": "ReasoningTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "summary_text",
- "type"
- ],
- "title": "ReasoningTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "action": {
- "$ref": "#/definitions/v2/ResponsesApiWebSearchAction"
- },
- "id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "type": {
- "enum": [
- "WebSearch"
- ],
- "title": "WebSearchTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "action",
- "id",
- "query",
- "type"
- ],
- "title": "WebSearchTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "result": {
- "type": "string"
- },
- "revised_prompt": {
- "type": [
- "string",
- "null"
- ]
- },
- "saved_path": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "type": "string"
- },
- "type": {
- "enum": [
- "ImageGeneration"
- ],
- "title": "ImageGenerationTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "result",
- "status",
- "type"
- ],
- "title": "ImageGenerationTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "ContextCompaction"
- ],
- "title": "ContextCompactionTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "type"
- ],
- "title": "ContextCompactionTurnItem",
- "type": "object"
- }
- ]
- },
"W3cTraceContext": {
"properties": {
"traceparent": {
diff --git a/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json b/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json
index 9afc7201cc..edf3080827 100644
--- a/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json
+++ b/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json
@@ -114,30 +114,6 @@
"title": "AccountUpdatedNotification",
"type": "object"
},
- "AgentMessageContent": {
- "oneOf": [
- {
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "Text"
- ],
- "title": "TextAgentMessageContentType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "TextAgentMessageContent",
- "type": "object"
- }
- ]
- },
"AgentMessageDeltaNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -163,70 +139,6 @@
"title": "AgentMessageDeltaNotification",
"type": "object"
},
- "AgentStatus": {
- "description": "Agent lifecycle status, derived from emitted events.",
- "oneOf": [
- {
- "description": "Agent is waiting for initialization.",
- "enum": [
- "pending_init"
- ],
- "type": "string"
- },
- {
- "description": "Agent is currently running.",
- "enum": [
- "running"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "description": "Agent is done. Contains the final assistant message.",
- "properties": {
- "completed": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "completed"
- ],
- "title": "CompletedAgentStatus",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Agent encountered an error.",
- "properties": {
- "errored": {
- "type": "string"
- }
- },
- "required": [
- "errored"
- ],
- "title": "ErroredAgentStatus",
- "type": "object"
- },
- {
- "description": "Agent has been shutdown.",
- "enum": [
- "shutdown"
- ],
- "type": "string"
- },
- {
- "description": "Agent is not found.",
- "enum": [
- "not_found"
- ],
- "type": "string"
- }
- ]
- },
"AnalyticsConfig": {
"additionalProperties": true,
"properties": {
@@ -807,27 +719,6 @@
],
"type": "object"
},
- "CallToolResult": {
- "description": "The server's response to a tool call.",
- "properties": {
- "_meta": true,
- "content": {
- "items": true,
- "type": "array"
- },
- "isError": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "structuredContent": true
- },
- "required": [
- "content"
- ],
- "type": "object"
- },
"CancelLoginAccountParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -2180,36 +2071,6 @@
}
]
},
- "CollabAgentRef": {
- "properties": {
- "agent_nickname": {
- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "agent_role": {
- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver/new agent."
- }
- },
- "required": [
- "thread_id"
- ],
- "type": "object"
- },
"CollabAgentState": {
"properties": {
"message": {
@@ -2238,45 +2099,6 @@
],
"type": "string"
},
- "CollabAgentStatusEntry": {
- "properties": {
- "agent_nickname": {
- "description": "Optional nickname assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "agent_role": {
- "description": "Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the agent."
- },
- "thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver/new agent."
- }
- },
- "required": [
- "status",
- "thread_id"
- ],
- "type": "object"
- },
"CollabAgentTool": {
"enum": [
"spawnAgent",
@@ -3543,37 +3365,6 @@
],
"type": "object"
},
- "CustomPrompt": {
- "properties": {
- "argument_hint": {
- "type": [
- "string",
- "null"
- ]
- },
- "content": {
- "type": "string"
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- }
- },
- "required": [
- "content",
- "name",
- "path"
- ],
- "type": "object"
- },
"DeprecationNoticeNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -3595,25 +3386,6 @@
"title": "DeprecationNoticeNotification",
"type": "object"
},
- "Duration": {
- "properties": {
- "nanos": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "secs": {
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- }
- },
- "required": [
- "nanos",
- "secs"
- ],
- "type": "object"
- },
"DynamicToolCallOutputContentItem": {
"oneOf": [
{
@@ -3683,58 +3455,6 @@
],
"type": "object"
},
- "ElicitationRequest": {
- "oneOf": [
- {
- "properties": {
- "_meta": true,
- "message": {
- "type": "string"
- },
- "mode": {
- "enum": [
- "form"
- ],
- "type": "string"
- },
- "requested_schema": true
- },
- "required": [
- "message",
- "mode",
- "requested_schema"
- ],
- "type": "object"
- },
- {
- "properties": {
- "_meta": true,
- "elicitation_id": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "mode": {
- "enum": [
- "url"
- ],
- "type": "string"
- },
- "url": {
- "type": "string"
- }
- },
- "required": [
- "elicitation_id",
- "message",
- "mode",
- "url"
- ],
- "type": "object"
- }
- ]
- },
"ErrorNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -3760,3018 +3480,14 @@
"title": "ErrorNotification",
"type": "object"
},
- "EventMsg": {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "description": "Response event from the agent NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.",
- "oneOf": [
- {
- "description": "Error while executing a submission",
- "properties": {
- "codex_error_info": {
- "anyOf": [
- {
- "$ref": "#/definitions/CodexErrorInfo"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "error"
- ],
- "title": "ErrorEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "ErrorEventMsg",
- "type": "object"
- },
- {
- "description": "Warning issued while processing a submission. Unlike `Error`, this indicates the turn continued but the user should still be notified.",
- "properties": {
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "warning"
- ],
- "title": "WarningEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "WarningEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation lifecycle start event.",
- "properties": {
- "session_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "realtime_conversation_started"
- ],
- "title": "RealtimeConversationStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "RealtimeConversationStartedEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation streaming payload event.",
- "properties": {
- "payload": {
- "$ref": "#/definitions/RealtimeEvent"
- },
- "type": {
- "enum": [
- "realtime_conversation_realtime"
- ],
- "title": "RealtimeConversationRealtimeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "payload",
- "type"
- ],
- "title": "RealtimeConversationRealtimeEventMsg",
- "type": "object"
- },
- {
- "description": "Realtime conversation lifecycle close event.",
- "properties": {
- "reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "realtime_conversation_closed"
- ],
- "title": "RealtimeConversationClosedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "RealtimeConversationClosedEventMsg",
- "type": "object"
- },
- {
- "description": "Model routing changed from the requested model to a different model.",
- "properties": {
- "from_model": {
- "type": "string"
- },
- "reason": {
- "$ref": "#/definitions/ModelRerouteReason"
- },
- "to_model": {
- "type": "string"
- },
- "type": {
- "enum": [
- "model_reroute"
- ],
- "title": "ModelRerouteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "from_model",
- "reason",
- "to_model",
- "type"
- ],
- "title": "ModelRerouteEventMsg",
- "type": "object"
- },
- {
- "description": "Conversation history was compacted (either automatically or manually).",
- "properties": {
- "type": {
- "enum": [
- "context_compacted"
- ],
- "title": "ContextCompactedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ContextCompactedEventMsg",
- "type": "object"
- },
- {
- "description": "Conversation history was rolled back by dropping the last N user turns.",
- "properties": {
- "num_turns": {
- "description": "Number of user turns that were removed from context.",
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "type": {
- "enum": [
- "thread_rolled_back"
- ],
- "title": "ThreadRolledBackEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "num_turns",
- "type"
- ],
- "title": "ThreadRolledBackEventMsg",
- "type": "object"
- },
- {
- "description": "Agent has started a turn. v1 wire format uses `task_started`; accept `turn_started` for v2 interop.",
- "properties": {
- "collaboration_mode_kind": {
- "allOf": [
- {
- "$ref": "#/definitions/ModeKind"
- }
- ],
- "default": "default"
- },
- "model_context_window": {
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "task_started"
- ],
- "title": "TaskStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "turn_id",
- "type"
- ],
- "title": "TaskStartedEventMsg",
- "type": "object"
- },
- {
- "description": "Agent has completed all actions. v1 wire format uses `task_complete`; accept `turn_complete` for v2 interop.",
- "properties": {
- "last_agent_message": {
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "task_complete"
- ],
- "title": "TaskCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "turn_id",
- "type"
- ],
- "title": "TaskCompleteEventMsg",
- "type": "object"
- },
- {
- "description": "Usage update for the current session, including totals and last turn. Optional means unknown — UIs should not display when `None`.",
- "properties": {
- "info": {
- "anyOf": [
- {
- "$ref": "#/definitions/TokenUsageInfo"
- },
- {
- "type": "null"
- }
- ]
- },
- "rate_limits": {
- "anyOf": [
- {
- "$ref": "#/definitions/RateLimitSnapshot"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "enum": [
- "token_count"
- ],
- "title": "TokenCountEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "TokenCountEventMsg",
- "type": "object"
- },
- {
- "description": "Agent text output message",
- "properties": {
- "message": {
- "type": "string"
- },
- "phase": {
- "anyOf": [
- {
- "$ref": "#/definitions/MessagePhase"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "type": {
- "enum": [
- "agent_message"
- ],
- "title": "AgentMessageEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "AgentMessageEventMsg",
- "type": "object"
- },
- {
- "description": "User/system input message (what was sent to the model)",
- "properties": {
- "images": {
- "description": "Image URLs sourced from `UserInput::Image`. These are safe to replay in legacy UI history events and correspond to images sent to the model.",
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "local_images": {
- "default": [],
- "description": "Local file paths sourced from `UserInput::LocalImage`. These are kept so the UI can reattach images when editing history, and should not be sent to the model or treated as API-ready URLs.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "text_elements": {
- "default": [],
- "description": "UI-defined spans within `message` used to render or persist special elements.",
- "items": {
- "$ref": "#/definitions/TextElement"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "user_message"
- ],
- "title": "UserMessageEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "UserMessageEventMsg",
- "type": "object"
- },
- {
- "description": "Agent text output delta message",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_message_delta"
- ],
- "title": "AgentMessageDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentMessageDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Reasoning event from agent.",
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning"
- ],
- "title": "AgentReasoningEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "AgentReasoningEventMsg",
- "type": "object"
- },
- {
- "description": "Agent reasoning delta event from agent.",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_delta"
- ],
- "title": "AgentReasoningDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentReasoningDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Raw chain-of-thought from agent.",
- "properties": {
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_raw_content"
- ],
- "title": "AgentReasoningRawContentEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "text",
- "type"
- ],
- "title": "AgentReasoningRawContentEventMsg",
- "type": "object"
- },
- {
- "description": "Agent reasoning content delta event from agent.",
- "properties": {
- "delta": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_reasoning_raw_content_delta"
- ],
- "title": "AgentReasoningRawContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "type"
- ],
- "title": "AgentReasoningRawContentDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Signaled when the model begins a new reasoning summary section (e.g., a new titled block).",
- "properties": {
- "item_id": {
- "default": "",
- "type": "string"
- },
- "summary_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "type": {
- "enum": [
- "agent_reasoning_section_break"
- ],
- "title": "AgentReasoningSectionBreakEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "AgentReasoningSectionBreakEventMsg",
- "type": "object"
- },
- {
- "description": "Ack the client's configure message.",
- "properties": {
- "approval_policy": {
- "allOf": [
- {
- "$ref": "#/definitions/AskForApproval"
- }
- ],
- "description": "When to escalate for approval for execution"
- },
- "cwd": {
- "description": "Working directory that should be treated as the *root* of the session.",
- "type": "string"
- },
- "forked_from_id": {
- "anyOf": [
- {
- "$ref": "#/definitions/ThreadId"
- },
- {
- "type": "null"
- }
- ]
- },
- "history_entry_count": {
- "description": "Current number of entries in the history log.",
- "format": "uint",
- "minimum": 0.0,
- "type": "integer"
- },
- "history_log_id": {
- "description": "Identifier of the history log file (inode on Unix, 0 otherwise).",
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- },
- "initial_messages": {
- "description": "Optional initial messages (as events) for resumed sessions. When present, UIs can use these to seed the history.",
- "items": {
- "$ref": "#/definitions/EventMsg"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "model": {
- "description": "Tell the client what model is being queried.",
- "type": "string"
- },
- "model_provider_id": {
- "type": "string"
- },
- "network_proxy": {
- "anyOf": [
- {
- "$ref": "#/definitions/SessionNetworkProxyRuntime"
- },
- {
- "type": "null"
- }
- ],
- "description": "Runtime proxy bind addresses, when the managed proxy was started for this session."
- },
- "reasoning_effort": {
- "anyOf": [
- {
- "$ref": "#/definitions/ReasoningEffort"
- },
- {
- "type": "null"
- }
- ],
- "description": "The effort the model is putting into reasoning about the user's request."
- },
- "rollout_path": {
- "description": "Path in which the rollout is stored. Can be `None` for ephemeral threads",
- "type": [
- "string",
- "null"
- ]
- },
- "sandbox_policy": {
- "allOf": [
- {
- "$ref": "#/definitions/SandboxPolicy"
- }
- ],
- "description": "How to sandbox commands executed in the system"
- },
- "service_tier": {
- "anyOf": [
- {
- "$ref": "#/definitions/ServiceTier"
- },
- {
- "type": "null"
- }
- ]
- },
- "session_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "thread_name": {
- "description": "Optional user-facing thread name (may be unset).",
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "session_configured"
- ],
- "title": "SessionConfiguredEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "approval_policy",
- "cwd",
- "history_entry_count",
- "history_log_id",
- "model",
- "model_provider_id",
- "sandbox_policy",
- "session_id",
- "type"
- ],
- "title": "SessionConfiguredEventMsg",
- "type": "object"
- },
- {
- "description": "Updated session metadata (e.g., thread name changes).",
- "properties": {
- "thread_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "thread_name": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "thread_name_updated"
- ],
- "title": "ThreadNameUpdatedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "thread_id",
- "type"
- ],
- "title": "ThreadNameUpdatedEventMsg",
- "type": "object"
- },
- {
- "description": "Incremental MCP startup progress updates.",
- "properties": {
- "server": {
- "description": "Server name being started.",
- "type": "string"
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/McpStartupStatus"
- }
- ],
- "description": "Current startup status."
- },
- "type": {
- "enum": [
- "mcp_startup_update"
- ],
- "title": "McpStartupUpdateEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "server",
- "status",
- "type"
- ],
- "title": "McpStartupUpdateEventMsg",
- "type": "object"
- },
- {
- "description": "Aggregate MCP startup completion summary.",
- "properties": {
- "cancelled": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "failed": {
- "items": {
- "$ref": "#/definitions/McpStartupFailure"
- },
- "type": "array"
- },
- "ready": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "mcp_startup_complete"
- ],
- "title": "McpStartupCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "cancelled",
- "failed",
- "ready",
- "type"
- ],
- "title": "McpStartupCompleteEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Identifier so this can be paired with the McpToolCallEnd event.",
- "type": "string"
- },
- "invocation": {
- "$ref": "#/definitions/McpInvocation"
- },
- "type": {
- "enum": [
- "mcp_tool_call_begin"
- ],
- "title": "McpToolCallBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "invocation",
- "type"
- ],
- "title": "McpToolCallBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Identifier for the corresponding McpToolCallBegin that finished.",
- "type": "string"
- },
- "duration": {
- "$ref": "#/definitions/Duration"
- },
- "invocation": {
- "$ref": "#/definitions/McpInvocation"
- },
- "result": {
- "allOf": [
- {
- "$ref": "#/definitions/Result_of_CallToolResult_or_String"
- }
- ],
- "description": "Result of the tool call. Note this could be an error."
- },
- "type": {
- "enum": [
- "mcp_tool_call_end"
- ],
- "title": "McpToolCallEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "duration",
- "invocation",
- "result",
- "type"
- ],
- "title": "McpToolCallEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "web_search_begin"
- ],
- "title": "WebSearchBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "type"
- ],
- "title": "WebSearchBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "action": {
- "$ref": "#/definitions/ResponsesApiWebSearchAction"
- },
- "call_id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "type": {
- "enum": [
- "web_search_end"
- ],
- "title": "WebSearchEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "action",
- "call_id",
- "query",
- "type"
- ],
- "title": "WebSearchEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "image_generation_begin"
- ],
- "title": "ImageGenerationBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "type"
- ],
- "title": "ImageGenerationBeginEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "type": "string"
- },
- "result": {
- "type": "string"
- },
- "revised_prompt": {
- "type": [
- "string",
- "null"
- ]
- },
- "saved_path": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "type": "string"
- },
- "type": {
- "enum": [
- "image_generation_end"
- ],
- "title": "ImageGenerationEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "result",
- "status",
- "type"
- ],
- "title": "ImageGenerationEndEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the server is about to execute a command.",
- "properties": {
- "call_id": {
- "description": "Identifier so this can be paired with the ExecCommandEnd event.",
- "type": "string"
- },
- "command": {
- "description": "The command to be executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory if not the default cwd for the agent.",
- "type": "string"
- },
- "interaction_input": {
- "description": "Raw input sent to a unified exec session (if this is an interaction event).",
- "type": [
- "string",
- "null"
- ]
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "process_id": {
- "description": "Identifier for the underlying PTY process (when available).",
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandSource"
- }
- ],
- "default": "agent",
- "description": "Where the command originated. Defaults to Agent for backward compatibility."
- },
- "turn_id": {
- "description": "Turn ID that this command belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_command_begin"
- ],
- "title": "ExecCommandBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "parsed_cmd",
- "turn_id",
- "type"
- ],
- "title": "ExecCommandBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Incremental chunk of output from a running command.",
- "properties": {
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that produced this chunk.",
- "type": "string"
- },
- "chunk": {
- "description": "Raw bytes from the stream (may not be valid UTF-8).",
- "type": "string"
- },
- "stream": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecOutputStream"
- }
- ],
- "description": "Which stream produced this chunk."
- },
- "type": {
- "enum": [
- "exec_command_output_delta"
- ],
- "title": "ExecCommandOutputDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "chunk",
- "stream",
- "type"
- ],
- "title": "ExecCommandOutputDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Terminal interaction for an in-progress command (stdin sent and stdout observed).",
- "properties": {
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that produced this chunk.",
- "type": "string"
- },
- "process_id": {
- "description": "Process id associated with the running command.",
- "type": "string"
- },
- "stdin": {
- "description": "Stdin sent to the running session.",
- "type": "string"
- },
- "type": {
- "enum": [
- "terminal_interaction"
- ],
- "title": "TerminalInteractionEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "process_id",
- "stdin",
- "type"
- ],
- "title": "TerminalInteractionEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "aggregated_output": {
- "default": "",
- "description": "Captured aggregated output",
- "type": "string"
- },
- "call_id": {
- "description": "Identifier for the ExecCommandBegin that finished.",
- "type": "string"
- },
- "command": {
- "description": "The command that was executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory if not the default cwd for the agent.",
- "type": "string"
- },
- "duration": {
- "allOf": [
- {
- "$ref": "#/definitions/Duration"
- }
- ],
- "description": "The duration of the command execution."
- },
- "exit_code": {
- "description": "The command's exit code.",
- "format": "int32",
- "type": "integer"
- },
- "formatted_output": {
- "description": "Formatted output from the command, as seen by the model.",
- "type": "string"
- },
- "interaction_input": {
- "description": "Raw input sent to a unified exec session (if this is an interaction event).",
- "type": [
- "string",
- "null"
- ]
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "process_id": {
- "description": "Identifier for the underlying PTY process (when available).",
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandSource"
- }
- ],
- "default": "agent",
- "description": "Where the command originated. Defaults to Agent for backward compatibility."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/ExecCommandStatus"
- }
- ],
- "description": "Completion status for this command execution."
- },
- "stderr": {
- "description": "Captured stderr",
- "type": "string"
- },
- "stdout": {
- "description": "Captured stdout",
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this command belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_command_end"
- ],
- "title": "ExecCommandEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "duration",
- "exit_code",
- "formatted_output",
- "parsed_cmd",
- "status",
- "stderr",
- "stdout",
- "turn_id",
- "type"
- ],
- "title": "ExecCommandEndEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent attached a local image via the view_image tool.",
- "properties": {
- "call_id": {
- "description": "Identifier for the originating tool call.",
- "type": "string"
- },
- "path": {
- "description": "Local filesystem path provided to the tool.",
- "type": "string"
- },
- "type": {
- "enum": [
- "view_image_tool_call"
- ],
- "title": "ViewImageToolCallEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "path",
- "type"
- ],
- "title": "ViewImageToolCallEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "additional_permissions": {
- "anyOf": [
- {
- "$ref": "#/definitions/PermissionProfile"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional additional filesystem permissions requested for this command."
- },
- "approval_id": {
- "description": "Identifier for this specific approval callback.\n\nWhen absent, the approval is for the command item itself (`call_id`). This is present for subcommand approvals (via execve intercept).",
- "type": [
- "string",
- "null"
- ]
- },
- "available_decisions": {
- "description": "Ordered list of decisions the client may present for this prompt.\n\nWhen absent, clients should derive the legacy default set from the other fields on this request.",
- "items": {
- "$ref": "#/definitions/ReviewDecision"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "call_id": {
- "description": "Identifier for the associated command execution item.",
- "type": "string"
- },
- "command": {
- "description": "The command to be executed.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "cwd": {
- "description": "The command's working directory.",
- "type": "string"
- },
- "network_approval_context": {
- "anyOf": [
- {
- "$ref": "#/definitions/NetworkApprovalContext"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional network context for a blocked request that can be approved."
- },
- "parsed_cmd": {
- "items": {
- "$ref": "#/definitions/ParsedCommand"
- },
- "type": "array"
- },
- "proposed_execpolicy_amendment": {
- "description": "Proposed execpolicy amendment that can be applied to allow future runs.",
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "proposed_network_policy_amendments": {
- "description": "Proposed network policy amendments (for example allow/deny this host in future).",
- "items": {
- "$ref": "#/definitions/NetworkPolicyAmendment"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "reason": {
- "description": "Optional human-readable reason for the approval (e.g. retry without sandbox).",
- "type": [
- "string",
- "null"
- ]
- },
- "skill_metadata": {
- "anyOf": [
- {
- "$ref": "#/definitions/ExecApprovalRequestSkillMetadata"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional skill metadata when the approval was triggered by a skill script."
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this command belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "exec_approval_request"
- ],
- "title": "ExecApprovalRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "command",
- "cwd",
- "parsed_cmd",
- "type"
- ],
- "title": "ExecApprovalRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated tool call, if available.",
- "type": "string"
- },
- "permissions": {
- "$ref": "#/definitions/PermissionProfile"
- },
- "reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "request_permissions"
- ],
- "title": "RequestPermissionsEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "permissions",
- "type"
- ],
- "title": "RequestPermissionsEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated tool call, if available.",
- "type": "string"
- },
- "questions": {
- "items": {
- "$ref": "#/definitions/RequestUserInputQuestion"
- },
- "type": "array"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "request_user_input"
- ],
- "title": "RequestUserInputEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "questions",
- "type"
- ],
- "title": "RequestUserInputEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "arguments": true,
- "callId": {
- "type": "string"
- },
- "tool": {
- "type": "string"
- },
- "turnId": {
- "type": "string"
- },
- "type": {
- "enum": [
- "dynamic_tool_call_request"
- ],
- "title": "DynamicToolCallRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "arguments",
- "callId",
- "tool",
- "turnId",
- "type"
- ],
- "title": "DynamicToolCallRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "arguments": {
- "description": "Dynamic tool call arguments."
- },
- "call_id": {
- "description": "Identifier for the corresponding DynamicToolCallRequest.",
- "type": "string"
- },
- "content_items": {
- "description": "Dynamic tool response content items.",
- "items": {
- "$ref": "#/definitions/DynamicToolCallOutputContentItem"
- },
- "type": "array"
- },
- "duration": {
- "allOf": [
- {
- "$ref": "#/definitions/Duration"
- }
- ],
- "description": "The duration of the dynamic tool call."
- },
- "error": {
- "description": "Optional error text when the tool call failed before producing a response.",
- "type": [
- "string",
- "null"
- ]
- },
- "success": {
- "description": "Whether the tool call succeeded.",
- "type": "boolean"
- },
- "tool": {
- "description": "Dynamic tool name.",
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this dynamic tool call belongs to.",
- "type": "string"
- },
- "type": {
- "enum": [
- "dynamic_tool_call_response"
- ],
- "title": "DynamicToolCallResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "arguments",
- "call_id",
- "content_items",
- "duration",
- "success",
- "tool",
- "turn_id",
- "type"
- ],
- "title": "DynamicToolCallResponseEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "$ref": "#/definitions/RequestId"
- },
- "request": {
- "$ref": "#/definitions/ElicitationRequest"
- },
- "server_name": {
- "type": "string"
- },
- "turn_id": {
- "description": "Turn ID that this elicitation belongs to, when known.",
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "elicitation_request"
- ],
- "title": "ElicitationRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "request",
- "server_name",
- "type"
- ],
- "title": "ElicitationRequestEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "call_id": {
- "description": "Responses API call id for the associated patch apply call, if available.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "type": "object"
- },
- "grant_root": {
- "description": "When set, the agent is asking the user to allow writes under this root for the remainder of the session.",
- "type": [
- "string",
- "null"
- ]
- },
- "reason": {
- "description": "Optional explanatory reason (e.g. request for extra write access).",
- "type": [
- "string",
- "null"
- ]
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility with older senders.",
- "type": "string"
- },
- "type": {
- "enum": [
- "apply_patch_approval_request"
- ],
- "title": "ApplyPatchApprovalRequestEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "changes",
- "type"
- ],
- "title": "ApplyPatchApprovalRequestEventMsg",
- "type": "object"
- },
- {
- "description": "Notification advising the user that something they are using has been deprecated and should be phased out.",
- "properties": {
- "details": {
- "description": "Optional extra guidance, such as migration steps or rationale.",
- "type": [
- "string",
- "null"
- ]
- },
- "summary": {
- "description": "Concise summary of what is deprecated.",
- "type": "string"
- },
- "type": {
- "enum": [
- "deprecation_notice"
- ],
- "title": "DeprecationNoticeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "summary",
- "type"
- ],
- "title": "DeprecationNoticeEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "background_event"
- ],
- "title": "BackgroundEventEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "BackgroundEventEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "undo_started"
- ],
- "title": "UndoStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "UndoStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "message": {
- "type": [
- "string",
- "null"
- ]
- },
- "success": {
- "type": "boolean"
- },
- "type": {
- "enum": [
- "undo_completed"
- ],
- "title": "UndoCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "success",
- "type"
- ],
- "title": "UndoCompletedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that a model stream experienced an error or disconnect and the system is handling it (e.g., retrying with backoff).",
- "properties": {
- "additional_details": {
- "default": null,
- "description": "Optional details about the underlying stream failure (often the same human-readable message that is surfaced as the terminal error if retries are exhausted).",
- "type": [
- "string",
- "null"
- ]
- },
- "codex_error_info": {
- "anyOf": [
- {
- "$ref": "#/definitions/CodexErrorInfo"
- },
- {
- "type": "null"
- }
- ],
- "default": null
- },
- "message": {
- "type": "string"
- },
- "type": {
- "enum": [
- "stream_error"
- ],
- "title": "StreamErrorEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "message",
- "type"
- ],
- "title": "StreamErrorEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent is about to apply a code patch. Mirrors `ExecCommandBegin` so front‑ends can show progress indicators.",
- "properties": {
- "auto_approved": {
- "description": "If true, there was no ApplyPatchApprovalRequest for this patch.",
- "type": "boolean"
- },
- "call_id": {
- "description": "Identifier so this can be paired with the PatchApplyEnd event.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "description": "The changes to be applied.",
- "type": "object"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "patch_apply_begin"
- ],
- "title": "PatchApplyBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "auto_approved",
- "call_id",
- "changes",
- "type"
- ],
- "title": "PatchApplyBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that a patch application has finished.",
- "properties": {
- "call_id": {
- "description": "Identifier for the PatchApplyBegin that finished.",
- "type": "string"
- },
- "changes": {
- "additionalProperties": {
- "$ref": "#/definitions/FileChange"
- },
- "default": {},
- "description": "The changes that were applied (mirrors PatchApplyBeginEvent::changes).",
- "type": "object"
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/PatchApplyStatus"
- }
- ],
- "description": "Completion status for this patch application."
- },
- "stderr": {
- "description": "Captured stderr (parser errors, IO failures, etc.).",
- "type": "string"
- },
- "stdout": {
- "description": "Captured stdout (summary printed by apply_patch).",
- "type": "string"
- },
- "success": {
- "description": "Whether the patch was applied successfully.",
- "type": "boolean"
- },
- "turn_id": {
- "default": "",
- "description": "Turn ID that this patch belongs to. Uses `#[serde(default)]` for backwards compatibility.",
- "type": "string"
- },
- "type": {
- "enum": [
- "patch_apply_end"
- ],
- "title": "PatchApplyEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "status",
- "stderr",
- "stdout",
- "success",
- "type"
- ],
- "title": "PatchApplyEndEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": [
- "turn_diff"
- ],
- "title": "TurnDiffEventMsgType",
- "type": "string"
- },
- "unified_diff": {
- "type": "string"
- }
- },
- "required": [
- "type",
- "unified_diff"
- ],
- "title": "TurnDiffEventMsg",
- "type": "object"
- },
- {
- "description": "Response to GetHistoryEntryRequest.",
- "properties": {
- "entry": {
- "anyOf": [
- {
- "$ref": "#/definitions/HistoryEntry"
- },
- {
- "type": "null"
- }
- ],
- "description": "The entry at the requested offset, if available and parseable."
- },
- "log_id": {
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- },
- "offset": {
- "format": "uint",
- "minimum": 0.0,
- "type": "integer"
- },
- "type": {
- "enum": [
- "get_history_entry_response"
- ],
- "title": "GetHistoryEntryResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "log_id",
- "offset",
- "type"
- ],
- "title": "GetHistoryEntryResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of MCP tools available to the agent.",
- "properties": {
- "auth_statuses": {
- "additionalProperties": {
- "$ref": "#/definitions/McpAuthStatus"
- },
- "description": "Authentication status for each configured MCP server.",
- "type": "object"
- },
- "resource_templates": {
- "additionalProperties": {
- "items": {
- "$ref": "#/definitions/ResourceTemplate"
- },
- "type": "array"
- },
- "description": "Known resource templates grouped by server name.",
- "type": "object"
- },
- "resources": {
- "additionalProperties": {
- "items": {
- "$ref": "#/definitions/Resource"
- },
- "type": "array"
- },
- "description": "Known resources grouped by server name.",
- "type": "object"
- },
- "tools": {
- "additionalProperties": {
- "$ref": "#/definitions/Tool"
- },
- "description": "Fully qualified tool name -> tool definition.",
- "type": "object"
- },
- "type": {
- "enum": [
- "mcp_list_tools_response"
- ],
- "title": "McpListToolsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "auth_statuses",
- "resource_templates",
- "resources",
- "tools",
- "type"
- ],
- "title": "McpListToolsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of custom prompts available to the agent.",
- "properties": {
- "custom_prompts": {
- "items": {
- "$ref": "#/definitions/CustomPrompt"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_custom_prompts_response"
- ],
- "title": "ListCustomPromptsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "custom_prompts",
- "type"
- ],
- "title": "ListCustomPromptsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of skills available to the agent.",
- "properties": {
- "skills": {
- "items": {
- "$ref": "#/definitions/SkillsListEntry"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_skills_response"
- ],
- "title": "ListSkillsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "skills",
- "type"
- ],
- "title": "ListSkillsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "List of remote skills available to the agent.",
- "properties": {
- "skills": {
- "items": {
- "$ref": "#/definitions/RemoteSkillSummary"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "list_remote_skills_response"
- ],
- "title": "ListRemoteSkillsResponseEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "skills",
- "type"
- ],
- "title": "ListRemoteSkillsResponseEventMsg",
- "type": "object"
- },
- {
- "description": "Remote skill downloaded to local cache.",
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "type": {
- "enum": [
- "remote_skill_downloaded"
- ],
- "title": "RemoteSkillDownloadedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "path",
- "type"
- ],
- "title": "RemoteSkillDownloadedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that skill data may have been updated and clients may want to reload.",
- "properties": {
- "type": {
- "enum": [
- "skills_update_available"
- ],
- "title": "SkillsUpdateAvailableEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "SkillsUpdateAvailableEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "explanation": {
- "default": null,
- "description": "Arguments for the `update_plan` todo/checklist tool (not plan mode).",
- "type": [
- "string",
- "null"
- ]
- },
- "plan": {
- "items": {
- "$ref": "#/definitions/PlanItemArg"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "plan_update"
- ],
- "title": "PlanUpdateEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "plan",
- "type"
- ],
- "title": "PlanUpdateEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "reason": {
- "$ref": "#/definitions/TurnAbortReason"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "turn_aborted"
- ],
- "title": "TurnAbortedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "reason",
- "type"
- ],
- "title": "TurnAbortedEventMsg",
- "type": "object"
- },
- {
- "description": "Notification that the agent is shutting down.",
- "properties": {
- "type": {
- "enum": [
- "shutdown_complete"
- ],
- "title": "ShutdownCompleteEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ShutdownCompleteEventMsg",
- "type": "object"
- },
- {
- "description": "Entered review mode.",
- "properties": {
- "target": {
- "$ref": "#/definitions/ReviewTarget"
- },
- "type": {
- "enum": [
- "entered_review_mode"
- ],
- "title": "EnteredReviewModeEventMsgType",
- "type": "string"
- },
- "user_facing_hint": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "target",
- "type"
- ],
- "title": "EnteredReviewModeEventMsg",
- "type": "object"
- },
- {
- "description": "Exited review mode with an optional final result to apply.",
- "properties": {
- "review_output": {
- "anyOf": [
- {
- "$ref": "#/definitions/ReviewOutputEvent"
- },
- {
- "type": "null"
- }
- ]
- },
- "type": {
- "enum": [
- "exited_review_mode"
- ],
- "title": "ExitedReviewModeEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "ExitedReviewModeEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/ResponseItem"
- },
- "type": {
- "enum": [
- "raw_response_item"
- ],
- "title": "RawResponseItemEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "type"
- ],
- "title": "RawResponseItemEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/TurnItem"
- },
- "thread_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "item_started"
- ],
- "title": "ItemStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ItemStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "item": {
- "$ref": "#/definitions/TurnItem"
- },
- "thread_id": {
- "$ref": "#/definitions/ThreadId"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "item_completed"
- ],
- "title": "ItemCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "item",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ItemCompletedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "run": {
- "$ref": "#/definitions/HookRunSummary"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "hook_started"
- ],
- "title": "HookStartedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "run",
- "type"
- ],
- "title": "HookStartedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "run": {
- "$ref": "#/definitions/HookRunSummary"
- },
- "turn_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "hook_completed"
- ],
- "title": "HookCompletedEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "run",
- "type"
- ],
- "title": "HookCompletedEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "agent_message_content_delta"
- ],
- "title": "AgentMessageContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "AgentMessageContentDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "plan_delta"
- ],
- "title": "PlanDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "PlanDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "summary_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "reasoning_content_delta"
- ],
- "title": "ReasoningContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ReasoningContentDeltaEventMsg",
- "type": "object"
- },
- {
- "properties": {
- "content_index": {
- "default": 0,
- "format": "int64",
- "type": "integer"
- },
- "delta": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "turn_id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "reasoning_raw_content_delta"
- ],
- "title": "ReasoningRawContentDeltaEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "delta",
- "item_id",
- "thread_id",
- "turn_id",
- "type"
- ],
- "title": "ReasoningRawContentDeltaEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent spawn begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "model": {
- "type": "string"
- },
- "prompt": {
- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "reasoning_effort": {
- "$ref": "#/definitions/ReasoningEffort"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_agent_spawn_begin"
- ],
- "title": "CollabAgentSpawnBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "model",
- "prompt",
- "reasoning_effort",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabAgentSpawnBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent spawn end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "model": {
- "description": "Model requested for the spawned agent.",
- "type": "string"
- },
- "new_agent_nickname": {
- "description": "Optional nickname assigned to the new agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "new_agent_role": {
- "description": "Optional role assigned to the new agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "new_thread_id": {
- "anyOf": [
- {
- "$ref": "#/definitions/ThreadId"
- },
- {
- "type": "null"
- }
- ],
- "description": "Thread ID of the newly spawned agent, if it was created."
- },
- "prompt": {
- "description": "Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "reasoning_effort": {
- "allOf": [
- {
- "$ref": "#/definitions/ReasoningEffort"
- }
- ],
- "description": "Reasoning effort requested for the spawned agent."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the new agent reported to the sender agent."
- },
- "type": {
- "enum": [
- "collab_agent_spawn_end"
- ],
- "title": "CollabAgentSpawnEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "model",
- "prompt",
- "reasoning_effort",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabAgentSpawnEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent interaction begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "prompt": {
- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_agent_interaction_begin"
- ],
- "title": "CollabAgentInteractionBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "prompt",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabAgentInteractionBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: agent interaction end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "prompt": {
- "description": "Prompt sent from the sender to the receiver. Can be empty to prevent CoT leaking at the beginning.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent."
- },
- "type": {
- "enum": [
- "collab_agent_interaction_end"
- ],
- "title": "CollabAgentInteractionEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "prompt",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabAgentInteractionEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: waiting begin.",
- "properties": {
- "call_id": {
- "description": "ID of the waiting call.",
- "type": "string"
- },
- "receiver_agents": {
- "description": "Optional nicknames/roles for receivers.",
- "items": {
- "$ref": "#/definitions/CollabAgentRef"
- },
- "type": "array"
- },
- "receiver_thread_ids": {
- "description": "Thread ID of the receivers.",
- "items": {
- "$ref": "#/definitions/ThreadId"
- },
- "type": "array"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_waiting_begin"
- ],
- "title": "CollabWaitingBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_ids",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabWaitingBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: waiting end.",
- "properties": {
- "agent_statuses": {
- "description": "Optional receiver metadata paired with final statuses.",
- "items": {
- "$ref": "#/definitions/CollabAgentStatusEntry"
- },
- "type": "array"
- },
- "call_id": {
- "description": "ID of the waiting call.",
- "type": "string"
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "statuses": {
- "additionalProperties": {
- "$ref": "#/definitions/AgentStatus"
- },
- "description": "Last known status of the receiver agents reported to the sender agent.",
- "type": "object"
- },
- "type": {
- "enum": [
- "collab_waiting_end"
- ],
- "title": "CollabWaitingEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "sender_thread_id",
- "statuses",
- "type"
- ],
- "title": "CollabWaitingEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: close begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_close_begin"
- ],
- "title": "CollabCloseBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabCloseBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: close end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent before the close."
- },
- "type": {
- "enum": [
- "collab_close_end"
- ],
- "title": "CollabCloseEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabCloseEndEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: resume begin.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "type": {
- "enum": [
- "collab_resume_begin"
- ],
- "title": "CollabResumeBeginEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "type"
- ],
- "title": "CollabResumeBeginEventMsg",
- "type": "object"
- },
- {
- "description": "Collab interaction: resume end.",
- "properties": {
- "call_id": {
- "description": "Identifier for the collab tool call.",
- "type": "string"
- },
- "receiver_agent_nickname": {
- "description": "Optional nickname assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_agent_role": {
- "description": "Optional role assigned to the receiver agent.",
- "type": [
- "string",
- "null"
- ]
- },
- "receiver_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the receiver."
- },
- "sender_thread_id": {
- "allOf": [
- {
- "$ref": "#/definitions/ThreadId"
- }
- ],
- "description": "Thread ID of the sender."
- },
- "status": {
- "allOf": [
- {
- "$ref": "#/definitions/AgentStatus"
- }
- ],
- "description": "Last known status of the receiver agent reported to the sender agent after resume."
- },
- "type": {
- "enum": [
- "collab_resume_end"
- ],
- "title": "CollabResumeEndEventMsgType",
- "type": "string"
- }
- },
- "required": [
- "call_id",
- "receiver_thread_id",
- "sender_thread_id",
- "status",
- "type"
- ],
- "title": "CollabResumeEndEventMsg",
- "type": "object"
- }
- ],
- "title": "EventMsg"
- },
- "ExecApprovalRequestSkillMetadata": {
- "properties": {
- "path_to_skills_md": {
- "type": "string"
- }
- },
- "required": [
- "path_to_skills_md"
- ],
- "type": "object"
- },
- "ExecCommandSource": {
- "enum": [
- "agent",
- "user_shell",
- "unified_exec_startup",
- "unified_exec_interaction"
- ],
- "type": "string"
- },
- "ExecCommandStatus": {
- "enum": [
- "completed",
- "failed",
- "declined"
- ],
- "type": "string"
- },
- "ExecOutputStream": {
- "enum": [
- "stdout",
- "stderr"
- ],
- "type": "string"
- },
- "ExperimentalFeature": {
- "properties": {
- "announcement": {
- "description": "Announcement copy shown to users when the feature is introduced. Null when this feature is not in beta.",
- "type": [
- "string",
- "null"
- ]
+ "ExperimentalFeature": {
+ "properties": {
+ "announcement": {
+ "description": "Announcement copy shown to users when the feature is introduced. Null when this feature is not in beta.",
+ "type": [
+ "string",
+ "null"
+ ]
},
"defaultEnabled": {
"description": "Whether this feature is enabled by default.",
@@ -7041,76 +3757,6 @@
"title": "FeedbackUploadResponse",
"type": "object"
},
- "FileChange": {
- "oneOf": [
- {
- "properties": {
- "content": {
- "type": "string"
- },
- "type": {
- "enum": [
- "add"
- ],
- "title": "AddFileChangeType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "type"
- ],
- "title": "AddFileChange",
- "type": "object"
- },
- {
- "properties": {
- "content": {
- "type": "string"
- },
- "type": {
- "enum": [
- "delete"
- ],
- "title": "DeleteFileChangeType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "type"
- ],
- "title": "DeleteFileChange",
- "type": "object"
- },
- {
- "properties": {
- "move_path": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "update"
- ],
- "title": "UpdateFileChangeType",
- "type": "string"
- },
- "unified_diff": {
- "type": "string"
- }
- },
- "required": [
- "type",
- "unified_diff"
- ],
- "title": "UpdateFileChange",
- "type": "object"
- }
- ]
- },
"FileChangeOutputDeltaNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -7136,29 +3782,6 @@
"title": "FileChangeOutputDeltaNotification",
"type": "object"
},
- "FileSystemPermissions": {
- "properties": {
- "read": {
- "items": {
- "$ref": "#/definitions/AbsolutePathBuf"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "write": {
- "items": {
- "$ref": "#/definitions/AbsolutePathBuf"
- },
- "type": [
- "array",
- "null"
- ]
- }
- },
- "type": "object"
- },
"FileUpdateChange": {
"properties": {
"diff": {
@@ -7498,27 +4121,6 @@
],
"type": "string"
},
- "HistoryEntry": {
- "properties": {
- "conversation_id": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "ts": {
- "format": "uint64",
- "minimum": 0.0,
- "type": "integer"
- }
- },
- "required": [
- "conversation_id",
- "text",
- "ts"
- ],
- "type": "object"
- },
"HookCompletedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -8059,102 +4661,14 @@
"type"
],
"title": "ChatgptAuthTokensv2::LoginAccountResponse",
- "type": "object"
- }
- ],
- "title": "LoginAccountResponse"
- },
- "LogoutAccountResponse": {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "LogoutAccountResponse",
- "type": "object"
- },
- "MacOsAutomationPermission": {
- "oneOf": [
- {
- "enum": [
- "none",
- "all"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "properties": {
- "bundle_ids": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "bundle_ids"
- ],
- "title": "BundleIdsMacOsAutomationPermission",
- "type": "object"
- }
- ]
- },
- "MacOsContactsPermission": {
- "enum": [
- "none",
- "read_only",
- "read_write"
- ],
- "type": "string"
- },
- "MacOsPreferencesPermission": {
- "enum": [
- "none",
- "read_only",
- "read_write"
- ],
- "type": "string"
- },
- "MacOsSeatbeltProfileExtensions": {
- "properties": {
- "macos_accessibility": {
- "default": false,
- "type": "boolean"
- },
- "macos_automation": {
- "allOf": [
- {
- "$ref": "#/definitions/MacOsAutomationPermission"
- }
- ],
- "default": "none"
- },
- "macos_calendar": {
- "default": false,
- "type": "boolean"
- },
- "macos_contacts": {
- "allOf": [
- {
- "$ref": "#/definitions/MacOsContactsPermission"
- }
- ],
- "default": "none"
- },
- "macos_launch_services": {
- "default": false,
- "type": "boolean"
- },
- "macos_preferences": {
- "allOf": [
- {
- "$ref": "#/definitions/MacOsPreferencesPermission"
- }
- ],
- "default": "read_only"
- },
- "macos_reminders": {
- "default": false,
- "type": "boolean"
+ "type": "object"
}
- },
+ ],
+ "title": "LoginAccountResponse"
+ },
+ "LogoutAccountResponse": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "title": "LogoutAccountResponse",
"type": "object"
},
"McpAuthStatus": {
@@ -8166,26 +4680,6 @@
],
"type": "string"
},
- "McpInvocation": {
- "properties": {
- "arguments": {
- "description": "Arguments to the tool call."
- },
- "server": {
- "description": "Name of the MCP server as defined in the config.",
- "type": "string"
- },
- "tool": {
- "description": "Name of the tool as given by the MCP server.",
- "type": "string"
- }
- },
- "required": [
- "server",
- "tool"
- ],
- "type": "object"
- },
"McpServerOauthLoginCompletedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -8292,88 +4786,6 @@
],
"type": "object"
},
- "McpStartupFailure": {
- "properties": {
- "error": {
- "type": "string"
- },
- "server": {
- "type": "string"
- }
- },
- "required": [
- "error",
- "server"
- ],
- "type": "object"
- },
- "McpStartupStatus": {
- "oneOf": [
- {
- "properties": {
- "state": {
- "enum": [
- "starting"
- ],
- "type": "string"
- }
- },
- "required": [
- "state"
- ],
- "title": "StartingMcpStartupStatus",
- "type": "object"
- },
- {
- "properties": {
- "state": {
- "enum": [
- "ready"
- ],
- "type": "string"
- }
- },
- "required": [
- "state"
- ],
- "title": "ReadyMcpStartupStatus",
- "type": "object"
- },
- {
- "properties": {
- "error": {
- "type": "string"
- },
- "state": {
- "enum": [
- "failed"
- ],
- "type": "string"
- }
- },
- "required": [
- "error",
- "state"
- ],
- "type": "object"
- },
- {
- "properties": {
- "state": {
- "enum": [
- "cancelled"
- ],
- "type": "string"
- }
- },
- "required": [
- "state"
- ],
- "title": "CancelledMcpStartupStatus",
- "type": "object"
- }
- ]
- },
"McpToolCallError": {
"properties": {
"message": {
@@ -8682,63 +5094,6 @@
],
"type": "string"
},
- "NetworkApprovalContext": {
- "properties": {
- "host": {
- "type": "string"
- },
- "protocol": {
- "$ref": "#/definitions/NetworkApprovalProtocol"
- }
- },
- "required": [
- "host",
- "protocol"
- ],
- "type": "object"
- },
- "NetworkApprovalProtocol": {
- "enum": [
- "http",
- "https",
- "socks5Tcp",
- "socks5Udp"
- ],
- "type": "string"
- },
- "NetworkPermissions": {
- "properties": {
- "enabled": {
- "type": [
- "boolean",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "NetworkPolicyAmendment": {
- "properties": {
- "action": {
- "$ref": "#/definitions/NetworkPolicyRuleAction"
- },
- "host": {
- "type": "string"
- }
- },
- "required": [
- "action",
- "host"
- ],
- "type": "object"
- },
- "NetworkPolicyRuleAction": {
- "enum": [
- "allow",
- "deny"
- ],
- "type": "string"
- },
"NetworkRequirements": {
"properties": {
"allowLocalBinding": {
@@ -8763,187 +5118,76 @@
]
},
"allowedDomains": {
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "dangerouslyAllowAllUnixSockets": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "dangerouslyAllowNonLoopbackProxy": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "deniedDomains": {
- "items": {
- "type": "string"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "enabled": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "httpPort": {
- "format": "uint16",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- },
- "socksPort": {
- "format": "uint16",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "OverriddenMetadata": {
- "properties": {
- "effectiveValue": true,
- "message": {
- "type": "string"
- },
- "overridingLayer": {
- "$ref": "#/definitions/ConfigLayerMetadata"
- }
- },
- "required": [
- "effectiveValue",
- "message",
- "overridingLayer"
- ],
- "type": "object"
- },
- "ParsedCommand": {
- "oneOf": [
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "path": {
- "description": "(Best effort) Path to the file being read by the command. When possible, this is an absolute path, though when relative, it should be resolved against the `cwd`` that will be used to run the command to derive the absolute path.",
- "type": "string"
- },
- "type": {
- "enum": [
- "read"
- ],
- "title": "ReadParsedCommandType",
- "type": "string"
- }
- },
- "required": [
- "cmd",
- "name",
- "path",
- "type"
- ],
- "title": "ReadParsedCommand",
- "type": "object"
- },
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "path": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "list_files"
- ],
- "title": "ListFilesParsedCommandType",
- "type": "string"
- }
- },
- "required": [
- "cmd",
- "type"
- ],
- "title": "ListFilesParsedCommand",
- "type": "object"
- },
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "path": {
- "type": [
- "string",
- "null"
- ]
- },
- "query": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "enum": [
- "search"
- ],
- "title": "SearchParsedCommandType",
- "type": "string"
- }
+ "items": {
+ "type": "string"
},
- "required": [
- "cmd",
- "type"
- ],
- "title": "SearchParsedCommand",
- "type": "object"
+ "type": [
+ "array",
+ "null"
+ ]
},
- {
- "properties": {
- "cmd": {
- "type": "string"
- },
- "type": {
- "enum": [
- "unknown"
- ],
- "title": "UnknownParsedCommandType",
- "type": "string"
- }
+ "dangerouslyAllowAllUnixSockets": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "dangerouslyAllowNonLoopbackProxy": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "deniedDomains": {
+ "items": {
+ "type": "string"
},
- "required": [
- "cmd",
- "type"
- ],
- "title": "UnknownParsedCommand",
- "type": "object"
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "enabled": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "httpPort": {
+ "format": "uint16",
+ "minimum": 0.0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "socksPort": {
+ "format": "uint16",
+ "minimum": 0.0,
+ "type": [
+ "integer",
+ "null"
+ ]
}
- ]
+ },
+ "type": "object"
+ },
+ "OverriddenMetadata": {
+ "properties": {
+ "effectiveValue": true,
+ "message": {
+ "type": "string"
+ },
+ "overridingLayer": {
+ "$ref": "#/definitions/ConfigLayerMetadata"
+ }
+ },
+ "required": [
+ "effectiveValue",
+ "message",
+ "overridingLayer"
+ ],
+ "type": "object"
},
"PatchApplyStatus": {
"enum": [
@@ -9012,41 +5256,6 @@
}
]
},
- "PermissionProfile": {
- "properties": {
- "file_system": {
- "anyOf": [
- {
- "$ref": "#/definitions/FileSystemPermissions"
- },
- {
- "type": "null"
- }
- ]
- },
- "macos": {
- "anyOf": [
- {
- "$ref": "#/definitions/MacOsSeatbeltProfileExtensions"
- },
- {
- "type": "null"
- }
- ]
- },
- "network": {
- "anyOf": [
- {
- "$ref": "#/definitions/NetworkPermissions"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "type": "object"
- },
"Personality": {
"enum": [
"none",
@@ -9081,22 +5290,6 @@
"title": "PlanDeltaNotification",
"type": "object"
},
- "PlanItemArg": {
- "additionalProperties": false,
- "properties": {
- "status": {
- "$ref": "#/definitions/StepStatus"
- },
- "step": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "step"
- ],
- "type": "object"
- },
"PlanType": {
"enum": [
"free",
@@ -9622,265 +5815,54 @@
],
"title": "RawResponseItemCompletedNotification",
"type": "object"
- },
- "ReadOnlyAccess": {
- "oneOf": [
- {
- "properties": {
- "includePlatformDefaults": {
- "default": true,
- "type": "boolean"
- },
- "readableRoots": {
- "default": [],
- "items": {
- "$ref": "#/definitions/AbsolutePathBuf"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "restricted"
- ],
- "title": "RestrictedReadOnlyAccessType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "RestrictedReadOnlyAccess",
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": [
- "fullAccess"
- ],
- "title": "FullAccessReadOnlyAccessType",
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "title": "FullAccessReadOnlyAccess",
- "type": "object"
- }
- ]
- },
- "RealtimeAudioFrame": {
- "properties": {
- "data": {
- "type": "string"
- },
- "num_channels": {
- "format": "uint16",
- "minimum": 0.0,
- "type": "integer"
- },
- "sample_rate": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "samples_per_channel": {
- "format": "uint32",
- "minimum": 0.0,
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "required": [
- "data",
- "num_channels",
- "sample_rate"
- ],
- "type": "object"
- },
- "RealtimeEvent": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "SessionUpdated": {
- "properties": {
- "instructions": {
- "type": [
- "string",
- "null"
- ]
- },
- "session_id": {
- "type": "string"
- }
- },
- "required": [
- "session_id"
- ],
- "type": "object"
- }
- },
- "required": [
- "SessionUpdated"
- ],
- "title": "SessionUpdatedRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "InputTranscriptDelta": {
- "$ref": "#/definitions/RealtimeTranscriptDelta"
- }
- },
- "required": [
- "InputTranscriptDelta"
- ],
- "title": "InputTranscriptDeltaRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "OutputTranscriptDelta": {
- "$ref": "#/definitions/RealtimeTranscriptDelta"
- }
- },
- "required": [
- "OutputTranscriptDelta"
- ],
- "title": "OutputTranscriptDeltaRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "AudioOut": {
- "$ref": "#/definitions/RealtimeAudioFrame"
- }
- },
- "required": [
- "AudioOut"
- ],
- "title": "AudioOutRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "ConversationItemAdded": true
- },
- "required": [
- "ConversationItemAdded"
- ],
- "title": "ConversationItemAddedRealtimeEvent",
- "type": "object"
- },
+ },
+ "ReadOnlyAccess": {
+ "oneOf": [
{
- "additionalProperties": false,
"properties": {
- "ConversationItemDone": {
- "properties": {
- "item_id": {
- "type": "string"
- }
+ "includePlatformDefaults": {
+ "default": true,
+ "type": "boolean"
+ },
+ "readableRoots": {
+ "default": [],
+ "items": {
+ "$ref": "#/definitions/AbsolutePathBuf"
},
- "required": [
- "item_id"
+ "type": "array"
+ },
+ "type": {
+ "enum": [
+ "restricted"
],
- "type": "object"
- }
- },
- "required": [
- "ConversationItemDone"
- ],
- "title": "ConversationItemDoneRealtimeEvent",
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "HandoffRequested": {
- "$ref": "#/definitions/RealtimeHandoffRequested"
+ "title": "RestrictedReadOnlyAccessType",
+ "type": "string"
}
},
"required": [
- "HandoffRequested"
+ "type"
],
- "title": "HandoffRequestedRealtimeEvent",
+ "title": "RestrictedReadOnlyAccess",
"type": "object"
},
{
- "additionalProperties": false,
"properties": {
- "Error": {
+ "type": {
+ "enum": [
+ "fullAccess"
+ ],
+ "title": "FullAccessReadOnlyAccessType",
"type": "string"
}
},
"required": [
- "Error"
+ "type"
],
- "title": "ErrorRealtimeEvent",
+ "title": "FullAccessReadOnlyAccess",
"type": "object"
}
]
},
- "RealtimeHandoffRequested": {
- "properties": {
- "active_transcript": {
- "items": {
- "$ref": "#/definitions/RealtimeTranscriptEntry"
- },
- "type": "array"
- },
- "handoff_id": {
- "type": "string"
- },
- "input_transcript": {
- "type": "string"
- },
- "item_id": {
- "type": "string"
- }
- },
- "required": [
- "active_transcript",
- "handoff_id",
- "input_transcript",
- "item_id"
- ],
- "type": "object"
- },
- "RealtimeTranscriptDelta": {
- "properties": {
- "delta": {
- "type": "string"
- }
- },
- "required": [
- "delta"
- ],
- "type": "object"
- },
- "RealtimeTranscriptEntry": {
- "properties": {
- "role": {
- "type": "string"
- },
- "text": {
- "type": "string"
- }
- },
- "required": [
- "role",
- "text"
- ],
- "type": "object"
- },
"ReasoningEffort": {
"description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
"enum": [
@@ -10112,57 +6094,6 @@
}
]
},
- "RequestUserInputQuestion": {
- "properties": {
- "header": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "isOther": {
- "default": false,
- "type": "boolean"
- },
- "isSecret": {
- "default": false,
- "type": "boolean"
- },
- "options": {
- "items": {
- "$ref": "#/definitions/RequestUserInputQuestionOption"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "question": {
- "type": "string"
- }
- },
- "required": [
- "header",
- "id",
- "question"
- ],
- "type": "object"
- },
- "RequestUserInputQuestionOption": {
- "properties": {
- "description": {
- "type": "string"
- },
- "label": {
- "type": "string"
- }
- },
- "required": [
- "description",
- "label"
- ],
- "type": "object"
- },
"ResidencyRequirement": {
"enum": [
"us"
@@ -10822,219 +6753,17 @@
"required": [
"type"
],
- "title": "OtherResponsesApiWebSearchAction",
- "type": "object"
- }
- ]
- },
- "Result_of_CallToolResult_or_String": {
- "oneOf": [
- {
- "properties": {
- "Ok": {
- "$ref": "#/definitions/CallToolResult"
- }
- },
- "required": [
- "Ok"
- ],
- "title": "OkResult_of_CallToolResult_or_String",
- "type": "object"
- },
- {
- "properties": {
- "Err": {
- "type": "string"
- }
- },
- "required": [
- "Err"
- ],
- "title": "ErrResult_of_CallToolResult_or_String",
- "type": "object"
- }
- ]
- },
- "ReviewCodeLocation": {
- "description": "Location of the code related to a review finding.",
- "properties": {
- "absolute_file_path": {
- "type": "string"
- },
- "line_range": {
- "$ref": "#/definitions/ReviewLineRange"
- }
- },
- "required": [
- "absolute_file_path",
- "line_range"
- ],
- "type": "object"
- },
- "ReviewDecision": {
- "description": "User's decision in response to an ExecApprovalRequest.",
- "oneOf": [
- {
- "description": "User has approved this command and the agent should execute it.",
- "enum": [
- "approved"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "description": "User has approved this command and wants to apply the proposed execpolicy amendment so future matching commands are permitted.",
- "properties": {
- "approved_execpolicy_amendment": {
- "properties": {
- "proposed_execpolicy_amendment": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "proposed_execpolicy_amendment"
- ],
- "type": "object"
- }
- },
- "required": [
- "approved_execpolicy_amendment"
- ],
- "title": "ApprovedExecpolicyAmendmentReviewDecision",
- "type": "object"
- },
- {
- "description": "User has approved this request and wants future prompts in the same session-scoped approval cache to be automatically approved for the remainder of the session.",
- "enum": [
- "approved_for_session"
- ],
- "type": "string"
- },
- {
- "additionalProperties": false,
- "description": "User chose to persist a network policy rule (allow/deny) for future requests to the same host.",
- "properties": {
- "network_policy_amendment": {
- "properties": {
- "network_policy_amendment": {
- "$ref": "#/definitions/NetworkPolicyAmendment"
- }
- },
- "required": [
- "network_policy_amendment"
- ],
- "type": "object"
- }
- },
- "required": [
- "network_policy_amendment"
- ],
- "title": "NetworkPolicyAmendmentReviewDecision",
- "type": "object"
- },
- {
- "description": "User has denied this command and the agent should not execute it, but it should continue the session and try something else.",
- "enum": [
- "denied"
- ],
- "type": "string"
- },
- {
- "description": "User has denied this command and the agent should not do anything until the user's next command.",
- "enum": [
- "abort"
- ],
- "type": "string"
- }
- ]
- },
- "ReviewDelivery": {
- "enum": [
- "inline",
- "detached"
- ],
- "type": "string"
- },
- "ReviewFinding": {
- "description": "A single review finding describing an observed issue or recommendation.",
- "properties": {
- "body": {
- "type": "string"
- },
- "code_location": {
- "$ref": "#/definitions/ReviewCodeLocation"
- },
- "confidence_score": {
- "format": "float",
- "type": "number"
- },
- "priority": {
- "format": "int32",
- "type": "integer"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "body",
- "code_location",
- "confidence_score",
- "priority",
- "title"
- ],
- "type": "object"
- },
- "ReviewLineRange": {
- "description": "Inclusive line range in a file associated with the finding.",
- "properties": {
- "end": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- },
- "start": {
- "format": "uint32",
- "minimum": 0.0,
- "type": "integer"
- }
- },
- "required": [
- "end",
- "start"
- ],
- "type": "object"
- },
- "ReviewOutputEvent": {
- "description": "Structured review result produced by a child review session.",
- "properties": {
- "findings": {
- "items": {
- "$ref": "#/definitions/ReviewFinding"
- },
- "type": "array"
- },
- "overall_confidence_score": {
- "format": "float",
- "type": "number"
- },
- "overall_correctness": {
- "type": "string"
- },
- "overall_explanation": {
- "type": "string"
+ "title": "OtherResponsesApiWebSearchAction",
+ "type": "object"
}
- },
- "required": [
- "findings",
- "overall_confidence_score",
- "overall_correctness",
- "overall_explanation"
+ ]
+ },
+ "ReviewDelivery": {
+ "enum": [
+ "inline",
+ "detached"
],
- "type": "object"
+ "type": "string"
},
"ReviewStartParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
@@ -12281,21 +8010,6 @@
],
"type": "string"
},
- "SessionNetworkProxyRuntime": {
- "properties": {
- "http_addr": {
- "type": "string"
- },
- "socks_addr": {
- "type": "string"
- }
- },
- "required": [
- "http_addr",
- "socks_addr"
- ],
- "type": "object"
- },
"SessionSource": {
"oneOf": [
{
@@ -12720,14 +8434,6 @@
"title": "SkillsRemoteWriteResponse",
"type": "object"
},
- "StepStatus": {
- "enum": [
- "pending",
- "in_progress",
- "completed"
- ],
- "type": "string"
- },
"SubAgentSource": {
"oneOf": [
{
@@ -14792,38 +10498,6 @@
],
"type": "string"
},
- "TokenUsage": {
- "properties": {
- "cached_input_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "input_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "output_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "reasoning_output_tokens": {
- "format": "int64",
- "type": "integer"
- },
- "total_tokens": {
- "format": "int64",
- "type": "integer"
- }
- },
- "required": [
- "cached_input_tokens",
- "input_tokens",
- "output_tokens",
- "reasoning_output_tokens",
- "total_tokens"
- ],
- "type": "object"
- },
"TokenUsageBreakdown": {
"properties": {
"cachedInputTokens": {
@@ -14856,28 +10530,6 @@
],
"type": "object"
},
- "TokenUsageInfo": {
- "properties": {
- "last_token_usage": {
- "$ref": "#/definitions/TokenUsage"
- },
- "model_context_window": {
- "format": "int64",
- "type": [
- "integer",
- "null"
- ]
- },
- "total_token_usage": {
- "$ref": "#/definitions/TokenUsage"
- }
- },
- "required": [
- "last_token_usage",
- "total_token_usage"
- ],
- "type": "object"
- },
"Tool": {
"description": "Definition for a tool the client can call.",
"properties": {
@@ -14969,14 +10621,6 @@
],
"type": "object"
},
- "TurnAbortReason": {
- "enum": [
- "interrupted",
- "replaced",
- "review_ended"
- ],
- "type": "string"
- },
"TurnCompletedNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
@@ -15066,222 +10710,6 @@
"title": "TurnInterruptResponse",
"type": "object"
},
- "TurnItem": {
- "oneOf": [
- {
- "properties": {
- "content": {
- "items": {
- "$ref": "#/definitions/UserInput"
- },
- "type": "array"
- },
- "id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "UserMessage"
- ],
- "title": "UserMessageTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "id",
- "type"
- ],
- "title": "UserMessageTurnItem",
- "type": "object"
- },
- {
- "description": "Assistant-authored message payload used in turn-item streams.\n\n`phase` is optional because not all providers/models emit it. Consumers should use it when present, but retain legacy completion semantics when it is `None`.",
- "properties": {
- "content": {
- "items": {
- "$ref": "#/definitions/AgentMessageContent"
- },
- "type": "array"
- },
- "id": {
- "type": "string"
- },
- "phase": {
- "anyOf": [
- {
- "$ref": "#/definitions/MessagePhase"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional phase metadata carried through from `ResponseItem::Message`.\n\nThis is currently used by TUI rendering to distinguish mid-turn commentary from a final answer and avoid status-indicator jitter."
- },
- "type": {
- "enum": [
- "AgentMessage"
- ],
- "title": "AgentMessageTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "content",
- "id",
- "type"
- ],
- "title": "AgentMessageTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "Plan"
- ],
- "title": "PlanTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "text",
- "type"
- ],
- "title": "PlanTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "raw_content": {
- "default": [],
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "summary_text": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "enum": [
- "Reasoning"
- ],
- "title": "ReasoningTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "summary_text",
- "type"
- ],
- "title": "ReasoningTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "action": {
- "$ref": "#/definitions/ResponsesApiWebSearchAction"
- },
- "id": {
- "type": "string"
- },
- "query": {
- "type": "string"
- },
- "type": {
- "enum": [
- "WebSearch"
- ],
- "title": "WebSearchTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "action",
- "id",
- "query",
- "type"
- ],
- "title": "WebSearchTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "result": {
- "type": "string"
- },
- "revised_prompt": {
- "type": [
- "string",
- "null"
- ]
- },
- "saved_path": {
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "type": "string"
- },
- "type": {
- "enum": [
- "ImageGeneration"
- ],
- "title": "ImageGenerationTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "result",
- "status",
- "type"
- ],
- "title": "ImageGenerationTurnItem",
- "type": "object"
- },
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "type": {
- "enum": [
- "ContextCompaction"
- ],
- "title": "ContextCompactionTurnItemType",
- "type": "string"
- }
- },
- "required": [
- "id",
- "type"
- ],
- "title": "ContextCompactionTurnItem",
- "type": "object"
- }
- ]
- },
"TurnPlanStep": {
"properties": {
"status": {
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentMessageContent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentMessageContent.ts
deleted file mode 100644
index dc2cfb77e3..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentMessageContent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type AgentMessageContent = { "type": "Text", text: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentMessageContentDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentMessageContentDeltaEvent.ts
deleted file mode 100644
index 1473a4f2bc..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentMessageContentDeltaEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type AgentMessageContentDeltaEvent = { thread_id: string, turn_id: string, item_id: string, delta: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentMessageDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentMessageDeltaEvent.ts
deleted file mode 100644
index 1e12d85fbb..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentMessageDeltaEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type AgentMessageDeltaEvent = { delta: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentMessageEvent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentMessageEvent.ts
deleted file mode 100644
index b32680055f..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentMessageEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { MessagePhase } from "./MessagePhase";
-
-export type AgentMessageEvent = { message: string, phase: MessagePhase | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentMessageItem.ts b/codex-rs/app-server-protocol/schema/typescript/AgentMessageItem.ts
deleted file mode 100644
index ee67a3e23b..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentMessageItem.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AgentMessageContent } from "./AgentMessageContent";
-import type { MessagePhase } from "./MessagePhase";
-
-/**
- * Assistant-authored message payload used in turn-item streams.
- *
- * `phase` is optional because not all providers/models emit it. Consumers
- * should use it when present, but retain legacy completion semantics when it
- * is `None`.
- */
-export type AgentMessageItem = { id: string, content: Array<AgentMessageContent>,
-/**
- * Optional phase metadata carried through from `ResponseItem::Message`.
- *
- * This is currently used by TUI rendering to distinguish mid-turn
- * commentary from a final answer and avoid status-indicator jitter.
- */
-phase?: MessagePhase, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningDeltaEvent.ts
deleted file mode 100644
index fc2c221937..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningDeltaEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type AgentReasoningDeltaEvent = { delta: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningEvent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningEvent.ts
deleted file mode 100644
index bf0062cd43..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type AgentReasoningEvent = { text: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningRawContentDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningRawContentDeltaEvent.ts
deleted file mode 100644
index fcfa816f5d..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningRawContentDeltaEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type AgentReasoningRawContentDeltaEvent = { delta: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningRawContentEvent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningRawContentEvent.ts
deleted file mode 100644
index 364c278229..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningRawContentEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type AgentReasoningRawContentEvent = { text: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningSectionBreakEvent.ts b/codex-rs/app-server-protocol/schema/typescript/AgentReasoningSectionBreakEvent.ts
deleted file mode 100644
index 604aceed93..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentReasoningSectionBreakEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type AgentReasoningSectionBreakEvent = { item_id: string, summary_index: bigint, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AgentStatus.ts b/codex-rs/app-server-protocol/schema/typescript/AgentStatus.ts
deleted file mode 100644
index ddf6789c78..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AgentStatus.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-/**
- * Agent lifecycle status, derived from emitted events.
- */
-export type AgentStatus = "pending_init" | "running" | { "completed": string | null } | { "errored": string } | "shutdown" | "not_found";
diff --git a/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalRequestEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalRequestEvent.ts
deleted file mode 100644
index 0c53cf50b8..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ApplyPatchApprovalRequestEvent.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { FileChange } from "./FileChange";
-
-export type ApplyPatchApprovalRequestEvent = {
-/**
- * Responses API call id for the associated patch apply call, if available.
- */
-call_id: string,
-/**
- * Turn ID that this patch belongs to.
- * Uses `#[serde(default)]` for backwards compatibility with older senders.
- */
-turn_id: string, changes: { [key in string]?: FileChange },
-/**
- * Optional explanatory reason (e.g. request for extra write access).
- */
-reason: string | null,
-/**
- * When set, the agent is asking the user to allow writes under this root for the remainder of the session.
- */
-grant_root: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/AskForApproval.ts b/codex-rs/app-server-protocol/schema/typescript/AskForApproval.ts
deleted file mode 100644
index 227eb44e77..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/AskForApproval.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { RejectConfig } from "./RejectConfig";
-
-/**
- * Determines the conditions under which the user is consulted to approve
- * running the command proposed by Codex.
- */
-export type AskForApproval = "untrusted" | "on-failure" | "on-request" | { "reject": RejectConfig } | "never";
diff --git a/codex-rs/app-server-protocol/schema/typescript/BackgroundEventEvent.ts b/codex-rs/app-server-protocol/schema/typescript/BackgroundEventEvent.ts
deleted file mode 100644
index 236b1dd888..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/BackgroundEventEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type BackgroundEventEvent = { message: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ByteRange.ts b/codex-rs/app-server-protocol/schema/typescript/ByteRange.ts
deleted file mode 100644
index ab36a79acd..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ByteRange.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ByteRange = {
-/**
- * Start byte offset (inclusive) within the UTF-8 text buffer.
- */
-start: number,
-/**
- * End byte offset (exclusive) within the UTF-8 text buffer.
- */
-end: number, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CallToolResult.ts b/codex-rs/app-server-protocol/schema/typescript/CallToolResult.ts
deleted file mode 100644
index e7a471d465..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CallToolResult.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { JsonValue } from "./serde_json/JsonValue";
-
-/**
- * The server's response to a tool call.
- */
-export type CallToolResult = { content: Array<JsonValue>, structuredContent?: JsonValue, isError?: boolean, _meta?: JsonValue, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CodexErrorInfo.ts b/codex-rs/app-server-protocol/schema/typescript/CodexErrorInfo.ts
deleted file mode 100644
index 522b91ce20..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CodexErrorInfo.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-/**
- * Codex errors that we expose to clients.
- */
-export type CodexErrorInfo = "context_window_exceeded" | "usage_limit_exceeded" | "server_overloaded" | { "http_connection_failed": { http_status_code: number | null, } } | { "response_stream_connection_failed": { http_status_code: number | null, } } | "internal_server_error" | "unauthorized" | "bad_request" | "sandbox_error" | { "response_stream_disconnected": { http_status_code: number | null, } } | { "response_too_many_failed_attempts": { http_status_code: number | null, } } | "thread_rollback_failed" | "other";
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionBeginEvent.ts
deleted file mode 100644
index 7109741999..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionBeginEvent.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ThreadId } from "./ThreadId";
-
-export type CollabAgentInteractionBeginEvent = {
-/**
- * Identifier for the collab tool call.
- */
-call_id: string,
-/**
- * Thread ID of the sender.
- */
-sender_thread_id: ThreadId,
-/**
- * Thread ID of the receiver.
- */
-receiver_thread_id: ThreadId,
-/**
- * Prompt sent from the sender to the receiver. Can be empty to prevent CoT
- * leaking at the beginning.
- */
-prompt: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionEndEvent.ts
deleted file mode 100644
index 5458e06dce..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabAgentInteractionEndEvent.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AgentStatus } from "./AgentStatus";
-import type { ThreadId } from "./ThreadId";
-
-export type CollabAgentInteractionEndEvent = {
-/**
- * Identifier for the collab tool call.
- */
-call_id: string,
-/**
- * Thread ID of the sender.
- */
-sender_thread_id: ThreadId,
-/**
- * Thread ID of the receiver.
- */
-receiver_thread_id: ThreadId,
-/**
- * Optional nickname assigned to the receiver agent.
- */
-receiver_agent_nickname?: string | null,
-/**
- * Optional role assigned to the receiver agent.
- */
-receiver_agent_role?: string | null,
-/**
- * Prompt sent from the sender to the receiver. Can be empty to prevent CoT
- * leaking at the beginning.
- */
-prompt: string,
-/**
- * Last known status of the receiver agent reported to the sender agent.
- */
-status: AgentStatus, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentRef.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentRef.ts
deleted file mode 100644
index cae7bf88b8..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabAgentRef.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ThreadId } from "./ThreadId";
-
-export type CollabAgentRef = {
-/**
- * Thread ID of the receiver/new agent.
- */
-thread_id: ThreadId,
-/**
- * Optional nickname assigned to an AgentControl-spawned sub-agent.
- */
-agent_nickname?: string | null,
-/**
- * Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.
- */
-agent_role?: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnBeginEvent.ts
deleted file mode 100644
index 5f86922442..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnBeginEvent.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ReasoningEffort } from "./ReasoningEffort";
-import type { ThreadId } from "./ThreadId";
-
-export type CollabAgentSpawnBeginEvent = {
-/**
- * Identifier for the collab tool call.
- */
-call_id: string,
-/**
- * Thread ID of the sender.
- */
-sender_thread_id: ThreadId,
-/**
- * Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the
- * beginning.
- */
-prompt: string, model: string, reasoning_effort: ReasoningEffort, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnEndEvent.ts
deleted file mode 100644
index 1ec1835a61..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabAgentSpawnEndEvent.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AgentStatus } from "./AgentStatus";
-import type { ReasoningEffort } from "./ReasoningEffort";
-import type { ThreadId } from "./ThreadId";
-
-export type CollabAgentSpawnEndEvent = {
-/**
- * Identifier for the collab tool call.
- */
-call_id: string,
-/**
- * Thread ID of the sender.
- */
-sender_thread_id: ThreadId,
-/**
- * Thread ID of the newly spawned agent, if it was created.
- */
-new_thread_id: ThreadId | null,
-/**
- * Optional nickname assigned to the new agent.
- */
-new_agent_nickname?: string | null,
-/**
- * Optional role assigned to the new agent.
- */
-new_agent_role?: string | null,
-/**
- * Initial prompt sent to the agent. Can be empty to prevent CoT leaking at the
- * beginning.
- */
-prompt: string,
-/**
- * Model requested for the spawned agent.
- */
-model: string,
-/**
- * Reasoning effort requested for the spawned agent.
- */
-reasoning_effort: ReasoningEffort,
-/**
- * Last known status of the new agent reported to the sender agent.
- */
-status: AgentStatus, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabAgentStatusEntry.ts b/codex-rs/app-server-protocol/schema/typescript/CollabAgentStatusEntry.ts
deleted file mode 100644
index 286d19423d..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabAgentStatusEntry.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AgentStatus } from "./AgentStatus";
-import type { ThreadId } from "./ThreadId";
-
-export type CollabAgentStatusEntry = {
-/**
- * Thread ID of the receiver/new agent.
- */
-thread_id: ThreadId,
-/**
- * Optional nickname assigned to an AgentControl-spawned sub-agent.
- */
-agent_nickname?: string | null,
-/**
- * Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.
- */
-agent_role?: string | null,
-/**
- * Last known status of the agent.
- */
-status: AgentStatus, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabCloseBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabCloseBeginEvent.ts
deleted file mode 100644
index 355d59523a..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabCloseBeginEvent.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ThreadId } from "./ThreadId";
-
-export type CollabCloseBeginEvent = {
-/**
- * Identifier for the collab tool call.
- */
-call_id: string,
-/**
- * Thread ID of the sender.
- */
-sender_thread_id: ThreadId,
-/**
- * Thread ID of the receiver.
- */
-receiver_thread_id: ThreadId, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabCloseEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabCloseEndEvent.ts
deleted file mode 100644
index 171886f1ef..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabCloseEndEvent.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AgentStatus } from "./AgentStatus";
-import type { ThreadId } from "./ThreadId";
-
-export type CollabCloseEndEvent = {
-/**
- * Identifier for the collab tool call.
- */
-call_id: string,
-/**
- * Thread ID of the sender.
- */
-sender_thread_id: ThreadId,
-/**
- * Thread ID of the receiver.
- */
-receiver_thread_id: ThreadId,
-/**
- * Optional nickname assigned to the receiver agent.
- */
-receiver_agent_nickname?: string | null,
-/**
- * Optional role assigned to the receiver agent.
- */
-receiver_agent_role?: string | null,
-/**
- * Last known status of the receiver agent reported to the sender agent before
- * the close.
- */
-status: AgentStatus, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabResumeBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabResumeBeginEvent.ts
deleted file mode 100644
index e6c1c3d5cd..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabResumeBeginEvent.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ThreadId } from "./ThreadId";
-
-export type CollabResumeBeginEvent = {
-/**
- * Identifier for the collab tool call.
- */
-call_id: string,
-/**
- * Thread ID of the sender.
- */
-sender_thread_id: ThreadId,
-/**
- * Thread ID of the receiver.
- */
-receiver_thread_id: ThreadId,
-/**
- * Optional nickname assigned to the receiver agent.
- */
-receiver_agent_nickname?: string | null,
-/**
- * Optional role assigned to the receiver agent.
- */
-receiver_agent_role?: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabResumeEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabResumeEndEvent.ts
deleted file mode 100644
index caf970ec28..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabResumeEndEvent.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AgentStatus } from "./AgentStatus";
-import type { ThreadId } from "./ThreadId";
-
-export type CollabResumeEndEvent = {
-/**
- * Identifier for the collab tool call.
- */
-call_id: string,
-/**
- * Thread ID of the sender.
- */
-sender_thread_id: ThreadId,
-/**
- * Thread ID of the receiver.
- */
-receiver_thread_id: ThreadId,
-/**
- * Optional nickname assigned to the receiver agent.
- */
-receiver_agent_nickname?: string | null,
-/**
- * Optional role assigned to the receiver agent.
- */
-receiver_agent_role?: string | null,
-/**
- * Last known status of the receiver agent reported to the sender agent after
- * resume.
- */
-status: AgentStatus, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabWaitingBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabWaitingBeginEvent.ts
deleted file mode 100644
index f2f07f87ea..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabWaitingBeginEvent.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { CollabAgentRef } from "./CollabAgentRef";
-import type { ThreadId } from "./ThreadId";
-
-export type CollabWaitingBeginEvent = {
-/**
- * Thread ID of the sender.
- */
-sender_thread_id: ThreadId,
-/**
- * Thread ID of the receivers.
- */
-receiver_thread_ids: Array<ThreadId>,
-/**
- * Optional nicknames/roles for receivers.
- */
-receiver_agents?: Array<CollabAgentRef>,
-/**
- * ID of the waiting call.
- */
-call_id: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CollabWaitingEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/CollabWaitingEndEvent.ts
deleted file mode 100644
index 929d59c611..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CollabWaitingEndEvent.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AgentStatus } from "./AgentStatus";
-import type { CollabAgentStatusEntry } from "./CollabAgentStatusEntry";
-import type { ThreadId } from "./ThreadId";
-
-export type CollabWaitingEndEvent = {
-/**
- * Thread ID of the sender.
- */
-sender_thread_id: ThreadId,
-/**
- * ID of the waiting call.
- */
-call_id: string,
-/**
- * Optional receiver metadata paired with final statuses.
- */
-agent_statuses?: Array<CollabAgentStatusEntry>,
-/**
- * Last known status of the receiver agents reported to the sender agent.
- */
-statuses: { [key in ThreadId]?: AgentStatus }, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ContextCompactedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ContextCompactedEvent.ts
deleted file mode 100644
index 538ca7a1bc..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ContextCompactedEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ContextCompactedEvent = null;
diff --git a/codex-rs/app-server-protocol/schema/typescript/ContextCompactionItem.ts b/codex-rs/app-server-protocol/schema/typescript/ContextCompactionItem.ts
deleted file mode 100644
index dc3ab6388e..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ContextCompactionItem.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ContextCompactionItem = { id: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CreditsSnapshot.ts b/codex-rs/app-server-protocol/schema/typescript/CreditsSnapshot.ts
deleted file mode 100644
index 737bf99bef..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CreditsSnapshot.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type CreditsSnapshot = { has_credits: boolean, unlimited: boolean, balance: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/CustomPrompt.ts b/codex-rs/app-server-protocol/schema/typescript/CustomPrompt.ts
deleted file mode 100644
index 96fe75e969..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/CustomPrompt.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type CustomPrompt = { name: string, path: string, content: string, description: string | null, argument_hint: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/DeprecationNoticeEvent.ts b/codex-rs/app-server-protocol/schema/typescript/DeprecationNoticeEvent.ts
deleted file mode 100644
index c1a7d81314..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/DeprecationNoticeEvent.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type DeprecationNoticeEvent = {
-/**
- * Concise summary of what is deprecated.
- */
-summary: string,
-/**
- * Optional extra guidance, such as migration steps or rationale.
- */
-details: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallOutputContentItem.ts b/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallOutputContentItem.ts
deleted file mode 100644
index 8f432109d1..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallOutputContentItem.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type DynamicToolCallOutputContentItem = { "type": "inputText", text: string, } | { "type": "inputImage", imageUrl: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallRequest.ts b/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallRequest.ts
deleted file mode 100644
index 94b0c65c66..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallRequest.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { JsonValue } from "./serde_json/JsonValue";
-
-export type DynamicToolCallRequest = { callId: string, turnId: string, tool: string, arguments: JsonValue, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallResponseEvent.ts
deleted file mode 100644
index 442c0ce6f3..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/DynamicToolCallResponseEvent.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { DynamicToolCallOutputContentItem } from "./DynamicToolCallOutputContentItem";
-import type { JsonValue } from "./serde_json/JsonValue";
-
-export type DynamicToolCallResponseEvent = {
-/**
- * Identifier for the corresponding DynamicToolCallRequest.
- */
-call_id: string,
-/**
- * Turn ID that this dynamic tool call belongs to.
- */
-turn_id: string,
-/**
- * Dynamic tool name.
- */
-tool: string,
-/**
- * Dynamic tool call arguments.
- */
-arguments: JsonValue,
-/**
- * Dynamic tool response content items.
- */
-content_items: Array<DynamicToolCallOutputContentItem>,
-/**
- * Whether the tool call succeeded.
- */
-success: boolean,
-/**
- * Optional error text when the tool call failed before producing a response.
- */
-error: string | null,
-/**
- * The duration of the dynamic tool call.
- */
-duration: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ElicitationRequest.ts b/codex-rs/app-server-protocol/schema/typescript/ElicitationRequest.ts
deleted file mode 100644
index 7f8de78518..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ElicitationRequest.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { JsonValue } from "./serde_json/JsonValue";
-
-export type ElicitationRequest = { "mode": "form", _meta?: JsonValue, message: string, requested_schema: JsonValue, } | { "mode": "url", _meta?: JsonValue, message: string, url: string, elicitation_id: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ElicitationRequestEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ElicitationRequestEvent.ts
deleted file mode 100644
index 0603291d76..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ElicitationRequestEvent.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ElicitationRequest } from "./ElicitationRequest";
-
-export type ElicitationRequestEvent = {
-/**
- * Turn ID that this elicitation belongs to, when known.
- */
-turn_id?: string, server_name: string, id: string | number, request: ElicitationRequest, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ErrorEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ErrorEvent.ts
deleted file mode 100644
index fafde767e0..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ErrorEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { CodexErrorInfo } from "./CodexErrorInfo";
-
-export type ErrorEvent = { message: string, codex_error_info: CodexErrorInfo | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/EventMsg.ts b/codex-rs/app-server-protocol/schema/typescript/EventMsg.ts
deleted file mode 100644
index a36d317b25..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/EventMsg.ts
+++ /dev/null
@@ -1,87 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AgentMessageContentDeltaEvent } from "./AgentMessageContentDeltaEvent";
-import type { AgentMessageDeltaEvent } from "./AgentMessageDeltaEvent";
-import type { AgentMessageEvent } from "./AgentMessageEvent";
-import type { AgentReasoningDeltaEvent } from "./AgentReasoningDeltaEvent";
-import type { AgentReasoningEvent } from "./AgentReasoningEvent";
-import type { AgentReasoningRawContentDeltaEvent } from "./AgentReasoningRawContentDeltaEvent";
-import type { AgentReasoningRawContentEvent } from "./AgentReasoningRawContentEvent";
-import type { AgentReasoningSectionBreakEvent } from "./AgentReasoningSectionBreakEvent";
-import type { ApplyPatchApprovalRequestEvent } from "./ApplyPatchApprovalRequestEvent";
-import type { BackgroundEventEvent } from "./BackgroundEventEvent";
-import type { CollabAgentInteractionBeginEvent } from "./CollabAgentInteractionBeginEvent";
-import type { CollabAgentInteractionEndEvent } from "./CollabAgentInteractionEndEvent";
-import type { CollabAgentSpawnBeginEvent } from "./CollabAgentSpawnBeginEvent";
-import type { CollabAgentSpawnEndEvent } from "./CollabAgentSpawnEndEvent";
-import type { CollabCloseBeginEvent } from "./CollabCloseBeginEvent";
-import type { CollabCloseEndEvent } from "./CollabCloseEndEvent";
-import type { CollabResumeBeginEvent } from "./CollabResumeBeginEvent";
-import type { CollabResumeEndEvent } from "./CollabResumeEndEvent";
-import type { CollabWaitingBeginEvent } from "./CollabWaitingBeginEvent";
-import type { CollabWaitingEndEvent } from "./CollabWaitingEndEvent";
-import type { ContextCompactedEvent } from "./ContextCompactedEvent";
-import type { DeprecationNoticeEvent } from "./DeprecationNoticeEvent";
-import type { DynamicToolCallRequest } from "./DynamicToolCallRequest";
-import type { DynamicToolCallResponseEvent } from "./DynamicToolCallResponseEvent";
-import type { ElicitationRequestEvent } from "./ElicitationRequestEvent";
-import type { ErrorEvent } from "./ErrorEvent";
-import type { ExecApprovalRequestEvent } from "./ExecApprovalRequestEvent";
-import type { ExecCommandBeginEvent } from "./ExecCommandBeginEvent";
-import type { ExecCommandEndEvent } from "./ExecCommandEndEvent";
-import type { ExecCommandOutputDeltaEvent } from "./ExecCommandOutputDeltaEvent";
-import type { ExitedReviewModeEvent } from "./ExitedReviewModeEvent";
-import type { GetHistoryEntryResponseEvent } from "./GetHistoryEntryResponseEvent";
-import type { HookCompletedEvent } from "./HookCompletedEvent";
-import type { HookStartedEvent } from "./HookStartedEvent";
-import type { ImageGenerationBeginEvent } from "./ImageGenerationBeginEvent";
-import type { ImageGenerationEndEvent } from "./ImageGenerationEndEvent";
-import type { ItemCompletedEvent } from "./ItemCompletedEvent";
-import type { ItemStartedEvent } from "./ItemStartedEvent";
-import type { ListCustomPromptsResponseEvent } from "./ListCustomPromptsResponseEvent";
-import type { ListRemoteSkillsResponseEvent } from "./ListRemoteSkillsResponseEvent";
-import type { ListSkillsResponseEvent } from "./ListSkillsResponseEvent";
-import type { McpListToolsResponseEvent } from "./McpListToolsResponseEvent";
-import type { McpStartupCompleteEvent } from "./McpStartupCompleteEvent";
-import type { McpStartupUpdateEvent } from "./McpStartupUpdateEvent";
-import type { McpToolCallBeginEvent } from "./McpToolCallBeginEvent";
-import type { McpToolCallEndEvent } from "./McpToolCallEndEvent";
-import type { ModelRerouteEvent } from "./ModelRerouteEvent";
-import type { PatchApplyBeginEvent } from "./PatchApplyBeginEvent";
-import type { PatchApplyEndEvent } from "./PatchApplyEndEvent";
-import type { PlanDeltaEvent } from "./PlanDeltaEvent";
-import type { RawResponseItemEvent } from "./RawResponseItemEvent";
-import type { RealtimeConversationClosedEvent } from "./RealtimeConversationClosedEvent";
-import type { RealtimeConversationRealtimeEvent } from "./RealtimeConversationRealtimeEvent";
-import type { RealtimeConversationStartedEvent } from "./RealtimeConversationStartedEvent";
-import type { ReasoningContentDeltaEvent } from "./ReasoningContentDeltaEvent";
-import type { ReasoningRawContentDeltaEvent } from "./ReasoningRawContentDeltaEvent";
-import type { RemoteSkillDownloadedEvent } from "./RemoteSkillDownloadedEvent";
-import type { RequestPermissionsEvent } from "./RequestPermissionsEvent";
-import type { RequestUserInputEvent } from "./RequestUserInputEvent";
-import type { ReviewRequest } from "./ReviewRequest";
-import type { SessionConfiguredEvent } from "./SessionConfiguredEvent";
-import type { StreamErrorEvent } from "./StreamErrorEvent";
-import type { TerminalInteractionEvent } from "./TerminalInteractionEvent";
-import type { ThreadNameUpdatedEvent } from "./ThreadNameUpdatedEvent";
-import type { ThreadRolledBackEvent } from "./ThreadRolledBackEvent";
-import type { TokenCountEvent } from "./TokenCountEvent";
-import type { TurnAbortedEvent } from "./TurnAbortedEvent";
-import type { TurnCompleteEvent } from "./TurnCompleteEvent";
-import type { TurnDiffEvent } from "./TurnDiffEvent";
-import type { TurnStartedEvent } from "./TurnStartedEvent";
-import type { UndoCompletedEvent } from "./UndoCompletedEvent";
-import type { UndoStartedEvent } from "./UndoStartedEvent";
-import type { UpdatePlanArgs } from "./UpdatePlanArgs";
-import type { UserMessageEvent } from "./UserMessageEvent";
-import type { ViewImageToolCallEvent } from "./ViewImageToolCallEvent";
-import type { WarningEvent } from "./WarningEvent";
-import type { WebSearchBeginEvent } from "./WebSearchBeginEvent";
-import type { WebSearchEndEvent } from "./WebSearchEndEvent";
-
-/**
- * Response event from the agent
- * NOTE: Make sure none of these values have optional types, as it will mess up the extension code-gen.
- */
-export type EventMsg = { "type": "error" } & ErrorEvent | { "type": "warning" } & WarningEvent | { "type": "realtime_conversation_started" } & RealtimeConversationStartedEvent | { "type": "realtime_conversation_realtime" } & RealtimeConversationRealtimeEvent | { "type": "realtime_conversation_closed" } & RealtimeConversationClosedEvent | { "type": "model_reroute" } & ModelRerouteEvent | { "type": "context_compacted" } & ContextCompactedEvent | { "type": "thread_rolled_back" } & ThreadRolledBackEvent | { "type": "task_started" } & TurnStartedEvent | { "type": "task_complete" } & TurnCompleteEvent | { "type": "token_count" } & TokenCountEvent | { "type": "agent_message" } & AgentMessageEvent | { "type": "user_message" } & UserMessageEvent | { "type": "agent_message_delta" } & AgentMessageDeltaEvent | { "type": "agent_reasoning" } & AgentReasoningEvent | { "type": "agent_reasoning_delta" } & AgentReasoningDeltaEvent | { "type": "agent_reasoning_raw_content" } & AgentReasoningRawContentEvent | { "type": "agent_reasoning_raw_content_delta" } & AgentReasoningRawContentDeltaEvent | { "type": "agent_reasoning_section_break" } & AgentReasoningSectionBreakEvent | { "type": "session_configured" } & SessionConfiguredEvent | { "type": "thread_name_updated" } & ThreadNameUpdatedEvent | { "type": "mcp_startup_update" } & McpStartupUpdateEvent | { "type": "mcp_startup_complete" } & McpStartupCompleteEvent | { "type": "mcp_tool_call_begin" } & McpToolCallBeginEvent | { "type": "mcp_tool_call_end" } & McpToolCallEndEvent | { "type": "web_search_begin" } & WebSearchBeginEvent | { "type": "web_search_end" } & WebSearchEndEvent | { "type": "image_generation_begin" } & ImageGenerationBeginEvent | { "type": "image_generation_end" } & ImageGenerationEndEvent | { "type": "exec_command_begin" } & ExecCommandBeginEvent | { "type": "exec_command_output_delta" } & ExecCommandOutputDeltaEvent | { "type": "terminal_interaction" } & TerminalInteractionEvent | { "type": "exec_command_end" } & ExecCommandEndEvent | { "type": "view_image_tool_call" } & ViewImageToolCallEvent | { "type": "exec_approval_request" } & ExecApprovalRequestEvent | { "type": "request_permissions" } & RequestPermissionsEvent | { "type": "request_user_input" } & RequestUserInputEvent | { "type": "dynamic_tool_call_request" } & DynamicToolCallRequest | { "type": "dynamic_tool_call_response" } & DynamicToolCallResponseEvent | { "type": "elicitation_request" } & ElicitationRequestEvent | { "type": "apply_patch_approval_request" } & ApplyPatchApprovalRequestEvent | { "type": "deprecation_notice" } & DeprecationNoticeEvent | { "type": "background_event" } & BackgroundEventEvent | { "type": "undo_started" } & UndoStartedEvent | { "type": "undo_completed" } & UndoCompletedEvent | { "type": "stream_error" } & StreamErrorEvent | { "type": "patch_apply_begin" } & PatchApplyBeginEvent | { "type": "patch_apply_end" } & PatchApplyEndEvent | { "type": "turn_diff" } & TurnDiffEvent | { "type": "get_history_entry_response" } & GetHistoryEntryResponseEvent | { "type": "mcp_list_tools_response" } & McpListToolsResponseEvent | { "type": "list_custom_prompts_response" } & ListCustomPromptsResponseEvent | { "type": "list_skills_response" } & ListSkillsResponseEvent | { "type": "list_remote_skills_response" } & ListRemoteSkillsResponseEvent | { "type": "remote_skill_downloaded" } & RemoteSkillDownloadedEvent | { "type": "skills_update_available" } | { "type": "plan_update" } & UpdatePlanArgs | { "type": "turn_aborted" } & TurnAbortedEvent | { "type": "shutdown_complete" } | { "type": "entered_review_mode" } & ReviewRequest | { "type": "exited_review_mode" } & ExitedReviewModeEvent | { "type": "raw_response_item" } & RawResponseItemEvent | { "type": "item_started" } & ItemStartedEvent | { "type": "item_completed" } & ItemCompletedEvent | { "type": "hook_started" } & HookStartedEvent | { "type": "hook_completed" } & HookCompletedEvent | { "type": "agent_message_content_delta" } & AgentMessageContentDeltaEvent | { "type": "plan_delta" } & PlanDeltaEvent | { "type": "reasoning_content_delta" } & ReasoningContentDeltaEvent | { "type": "reasoning_raw_content_delta" } & ReasoningRawContentDeltaEvent | { "type": "collab_agent_spawn_begin" } & CollabAgentSpawnBeginEvent | { "type": "collab_agent_spawn_end" } & CollabAgentSpawnEndEvent | { "type": "collab_agent_interaction_begin" } & CollabAgentInteractionBeginEvent | { "type": "collab_agent_interaction_end" } & CollabAgentInteractionEndEvent | { "type": "collab_waiting_begin" } & CollabWaitingBeginEvent | { "type": "collab_waiting_end" } & CollabWaitingEndEvent | { "type": "collab_close_begin" } & CollabCloseBeginEvent | { "type": "collab_close_end" } & CollabCloseEndEvent | { "type": "collab_resume_begin" } & CollabResumeBeginEvent | { "type": "collab_resume_end" } & CollabResumeEndEvent;
diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestEvent.ts
deleted file mode 100644
index 5f305f521d..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestEvent.ts
+++ /dev/null
@@ -1,67 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ExecApprovalRequestSkillMetadata } from "./ExecApprovalRequestSkillMetadata";
-import type { ExecPolicyAmendment } from "./ExecPolicyAmendment";
-import type { NetworkApprovalContext } from "./NetworkApprovalContext";
-import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment";
-import type { ParsedCommand } from "./ParsedCommand";
-import type { PermissionProfile } from "./PermissionProfile";
-import type { ReviewDecision } from "./ReviewDecision";
-
-export type ExecApprovalRequestEvent = {
-/**
- * Identifier for the associated command execution item.
- */
-call_id: string,
-/**
- * Identifier for this specific approval callback.
- *
- * When absent, the approval is for the command item itself (`call_id`).
- * This is present for subcommand approvals (via execve intercept).
- */
-approval_id?: string,
-/**
- * Turn ID that this command belongs to.
- * Uses `#[serde(default)]` for backwards compatibility.
- */
-turn_id: string,
-/**
- * The command to be executed.
- */
-command: Array<string>,
-/**
- * The command's working directory.
- */
-cwd: string,
-/**
- * Optional human-readable reason for the approval (e.g. retry without sandbox).
- */
-reason: string | null,
-/**
- * Optional network context for a blocked request that can be approved.
- */
-network_approval_context?: NetworkApprovalContext,
-/**
- * Proposed execpolicy amendment that can be applied to allow future runs.
- */
-proposed_execpolicy_amendment?: ExecPolicyAmendment,
-/**
- * Proposed network policy amendments (for example allow/deny this host in future).
- */
-proposed_network_policy_amendments?: Array<NetworkPolicyAmendment>,
-/**
- * Optional additional filesystem permissions requested for this command.
- */
-additional_permissions?: PermissionProfile,
-/**
- * Optional skill metadata when the approval was triggered by a skill script.
- */
-skill_metadata?: ExecApprovalRequestSkillMetadata,
-/**
- * Ordered list of decisions the client may present for this prompt.
- *
- * When absent, clients should derive the legacy default set from the
- * other fields on this request.
- */
-available_decisions?: Array<ReviewDecision>, parsed_cmd: Array<ParsedCommand>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestSkillMetadata.ts b/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestSkillMetadata.ts
deleted file mode 100644
index 1121e214eb..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ExecApprovalRequestSkillMetadata.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ExecApprovalRequestSkillMetadata = { path_to_skills_md: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecCommandBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandBeginEvent.ts
deleted file mode 100644
index a9b4bc9393..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ExecCommandBeginEvent.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ExecCommandSource } from "./ExecCommandSource";
-import type { ParsedCommand } from "./ParsedCommand";
-
-export type ExecCommandBeginEvent = {
-/**
- * Identifier so this can be paired with the ExecCommandEnd event.
- */
-call_id: string,
-/**
- * Identifier for the underlying PTY process (when available).
- */
-process_id?: string,
-/**
- * Turn ID that this command belongs to.
- */
-turn_id: string,
-/**
- * The command to be executed.
- */
-command: Array<string>,
-/**
- * The command's working directory if not the default cwd for the agent.
- */
-cwd: string, parsed_cmd: Array<ParsedCommand>,
-/**
- * Where the command originated. Defaults to Agent for backward compatibility.
- */
-source: ExecCommandSource,
-/**
- * Raw input sent to a unified exec session (if this is an interaction event).
- */
-interaction_input?: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecCommandEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandEndEvent.ts
deleted file mode 100644
index 0bfc41ea81..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ExecCommandEndEvent.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ExecCommandSource } from "./ExecCommandSource";
-import type { ExecCommandStatus } from "./ExecCommandStatus";
-import type { ParsedCommand } from "./ParsedCommand";
-
-export type ExecCommandEndEvent = {
-/**
- * Identifier for the ExecCommandBegin that finished.
- */
-call_id: string,
-/**
- * Identifier for the underlying PTY process (when available).
- */
-process_id?: string,
-/**
- * Turn ID that this command belongs to.
- */
-turn_id: string,
-/**
- * The command that was executed.
- */
-command: Array<string>,
-/**
- * The command's working directory if not the default cwd for the agent.
- */
-cwd: string, parsed_cmd: Array<ParsedCommand>,
-/**
- * Where the command originated. Defaults to Agent for backward compatibility.
- */
-source: ExecCommandSource,
-/**
- * Raw input sent to a unified exec session (if this is an interaction event).
- */
-interaction_input?: string,
-/**
- * Captured stdout
- */
-stdout: string,
-/**
- * Captured stderr
- */
-stderr: string,
-/**
- * Captured aggregated output
- */
-aggregated_output: string,
-/**
- * The command's exit code.
- */
-exit_code: number,
-/**
- * The duration of the command execution.
- */
-duration: string,
-/**
- * Formatted output from the command, as seen by the model.
- */
-formatted_output: string,
-/**
- * Completion status for this command execution.
- */
-status: ExecCommandStatus, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecCommandOutputDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandOutputDeltaEvent.ts
deleted file mode 100644
index 0930bdd827..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ExecCommandOutputDeltaEvent.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ExecOutputStream } from "./ExecOutputStream";
-
-export type ExecCommandOutputDeltaEvent = {
-/**
- * Identifier for the ExecCommandBegin that produced this chunk.
- */
-call_id: string,
-/**
- * Which stream produced this chunk.
- */
-stream: ExecOutputStream,
-/**
- * Raw bytes from the stream (may not be valid UTF-8).
- */
-chunk: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecCommandSource.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandSource.ts
deleted file mode 100644
index b665441bc2..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ExecCommandSource.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ExecCommandSource = "agent" | "user_shell" | "unified_exec_startup" | "unified_exec_interaction";
diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecCommandStatus.ts b/codex-rs/app-server-protocol/schema/typescript/ExecCommandStatus.ts
deleted file mode 100644
index d8d91fb19f..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ExecCommandStatus.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ExecCommandStatus = "completed" | "failed" | "declined";
diff --git a/codex-rs/app-server-protocol/schema/typescript/ExecOutputStream.ts b/codex-rs/app-server-protocol/schema/typescript/ExecOutputStream.ts
deleted file mode 100644
index 96aa74483d..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ExecOutputStream.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ExecOutputStream = "stdout" | "stderr";
diff --git a/codex-rs/app-server-protocol/schema/typescript/ExitedReviewModeEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ExitedReviewModeEvent.ts
deleted file mode 100644
index 7271f07a3f..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ExitedReviewModeEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ReviewOutputEvent } from "./ReviewOutputEvent";
-
-export type ExitedReviewModeEvent = { review_output: ReviewOutputEvent | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/FileSystemPermissions.ts b/codex-rs/app-server-protocol/schema/typescript/FileSystemPermissions.ts
deleted file mode 100644
index aedf84de80..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/FileSystemPermissions.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AbsolutePathBuf } from "./AbsolutePathBuf";
-
-export type FileSystemPermissions = { read: Array<AbsolutePathBuf> | null, write: Array<AbsolutePathBuf> | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/GetHistoryEntryResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/GetHistoryEntryResponseEvent.ts
deleted file mode 100644
index d46019c1dc..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/GetHistoryEntryResponseEvent.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { HistoryEntry } from "./HistoryEntry";
-
-export type GetHistoryEntryResponseEvent = { offset: number, log_id: bigint,
-/**
- * The entry at the requested offset, if available and parseable.
- */
-entry: HistoryEntry | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/HistoryEntry.ts b/codex-rs/app-server-protocol/schema/typescript/HistoryEntry.ts
deleted file mode 100644
index da5bc37c21..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HistoryEntry.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type HistoryEntry = { conversation_id: string, ts: bigint, text: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/HookCompletedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/HookCompletedEvent.ts
deleted file mode 100644
index af439c5126..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HookCompletedEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { HookRunSummary } from "./HookRunSummary";
-
-export type HookCompletedEvent = { turn_id: string | null, run: HookRunSummary, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/HookEventName.ts b/codex-rs/app-server-protocol/schema/typescript/HookEventName.ts
deleted file mode 100644
index 45e6489d12..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HookEventName.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type HookEventName = "session_start" | "stop";
diff --git a/codex-rs/app-server-protocol/schema/typescript/HookExecutionMode.ts b/codex-rs/app-server-protocol/schema/typescript/HookExecutionMode.ts
deleted file mode 100644
index 61f98564ca..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HookExecutionMode.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type HookExecutionMode = "sync" | "async";
diff --git a/codex-rs/app-server-protocol/schema/typescript/HookHandlerType.ts b/codex-rs/app-server-protocol/schema/typescript/HookHandlerType.ts
deleted file mode 100644
index dc3f087bff..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HookHandlerType.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type HookHandlerType = "command" | "prompt" | "agent";
diff --git a/codex-rs/app-server-protocol/schema/typescript/HookOutputEntry.ts b/codex-rs/app-server-protocol/schema/typescript/HookOutputEntry.ts
deleted file mode 100644
index 834f0c4e0c..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HookOutputEntry.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { HookOutputEntryKind } from "./HookOutputEntryKind";
-
-export type HookOutputEntry = { kind: HookOutputEntryKind, text: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/HookOutputEntryKind.ts b/codex-rs/app-server-protocol/schema/typescript/HookOutputEntryKind.ts
deleted file mode 100644
index 090dfe3874..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HookOutputEntryKind.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type HookOutputEntryKind = "warning" | "stop" | "feedback" | "context" | "error";
diff --git a/codex-rs/app-server-protocol/schema/typescript/HookRunStatus.ts b/codex-rs/app-server-protocol/schema/typescript/HookRunStatus.ts
deleted file mode 100644
index ffca7e0e2c..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HookRunStatus.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type HookRunStatus = "running" | "completed" | "failed" | "blocked" | "stopped";
diff --git a/codex-rs/app-server-protocol/schema/typescript/HookRunSummary.ts b/codex-rs/app-server-protocol/schema/typescript/HookRunSummary.ts
deleted file mode 100644
index 3725ff81d6..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HookRunSummary.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { HookEventName } from "./HookEventName";
-import type { HookExecutionMode } from "./HookExecutionMode";
-import type { HookHandlerType } from "./HookHandlerType";
-import type { HookOutputEntry } from "./HookOutputEntry";
-import type { HookRunStatus } from "./HookRunStatus";
-import type { HookScope } from "./HookScope";
-
-export type HookRunSummary = { id: string, event_name: HookEventName, handler_type: HookHandlerType, execution_mode: HookExecutionMode, scope: HookScope, source_path: string, display_order: bigint, status: HookRunStatus, status_message: string | null, started_at: number, completed_at: number | null, duration_ms: number | null, entries: Array<HookOutputEntry>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/HookScope.ts b/codex-rs/app-server-protocol/schema/typescript/HookScope.ts
deleted file mode 100644
index ff6f8bfee4..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HookScope.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type HookScope = "thread" | "turn";
diff --git a/codex-rs/app-server-protocol/schema/typescript/HookStartedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/HookStartedEvent.ts
deleted file mode 100644
index e6387f5166..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/HookStartedEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { HookRunSummary } from "./HookRunSummary";
-
-export type HookStartedEvent = { turn_id: string | null, run: HookRunSummary, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ImageGenerationBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ImageGenerationBeginEvent.ts
deleted file mode 100644
index 3e424dbd05..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ImageGenerationBeginEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ImageGenerationBeginEvent = { call_id: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ImageGenerationEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ImageGenerationEndEvent.ts
deleted file mode 100644
index a1a71ce380..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ImageGenerationEndEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ImageGenerationEndEvent = { call_id: string, status: string, revised_prompt?: string, result: string, saved_path?: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ImageGenerationItem.ts b/codex-rs/app-server-protocol/schema/typescript/ImageGenerationItem.ts
deleted file mode 100644
index 0edb7c22e6..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ImageGenerationItem.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ImageGenerationItem = { id: string, status: string, revised_prompt?: string, result: string, saved_path?: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ItemCompletedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ItemCompletedEvent.ts
deleted file mode 100644
index 97de348dff..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ItemCompletedEvent.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ThreadId } from "./ThreadId";
-import type { TurnItem } from "./TurnItem";
-
-export type ItemCompletedEvent = { thread_id: ThreadId, turn_id: string, item: TurnItem, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ItemStartedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ItemStartedEvent.ts
deleted file mode 100644
index e82f78f965..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ItemStartedEvent.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ThreadId } from "./ThreadId";
-import type { TurnItem } from "./TurnItem";
-
-export type ItemStartedEvent = { thread_id: ThreadId, turn_id: string, item: TurnItem, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ListCustomPromptsResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ListCustomPromptsResponseEvent.ts
deleted file mode 100644
index 9ebb43afb7..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ListCustomPromptsResponseEvent.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { CustomPrompt } from "./CustomPrompt";
-
-/**
- * Response payload for `Op::ListCustomPrompts`.
- */
-export type ListCustomPromptsResponseEvent = { custom_prompts: Array<CustomPrompt>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ListRemoteSkillsResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ListRemoteSkillsResponseEvent.ts
deleted file mode 100644
index e3b277f4d6..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ListRemoteSkillsResponseEvent.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { RemoteSkillSummary } from "./RemoteSkillSummary";
-
-/**
- * Response payload for `Op::ListRemoteSkills`.
- */
-export type ListRemoteSkillsResponseEvent = { skills: Array<RemoteSkillSummary>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ListSkillsResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ListSkillsResponseEvent.ts
deleted file mode 100644
index efdd547596..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ListSkillsResponseEvent.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { SkillsListEntry } from "./SkillsListEntry";
-
-/**
- * Response payload for `Op::ListSkills`.
- */
-export type ListSkillsResponseEvent = { skills: Array<SkillsListEntry>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/MacOsSeatbeltProfileExtensions.ts b/codex-rs/app-server-protocol/schema/typescript/MacOsSeatbeltProfileExtensions.ts
deleted file mode 100644
index 4fa47f1441..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/MacOsSeatbeltProfileExtensions.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { MacOsAutomationPermission } from "./MacOsAutomationPermission";
-import type { MacOsContactsPermission } from "./MacOsContactsPermission";
-import type { MacOsPreferencesPermission } from "./MacOsPreferencesPermission";
-
-export type MacOsSeatbeltProfileExtensions = { macos_preferences: MacOsPreferencesPermission, macos_automation: MacOsAutomationPermission, macos_launch_services: boolean, macos_accessibility: boolean, macos_calendar: boolean, macos_reminders: boolean, macos_contacts: MacOsContactsPermission, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/McpAuthStatus.ts b/codex-rs/app-server-protocol/schema/typescript/McpAuthStatus.ts
deleted file mode 100644
index 919ae85fd0..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/McpAuthStatus.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type McpAuthStatus = "unsupported" | "not_logged_in" | "bearer_token" | "o_auth";
diff --git a/codex-rs/app-server-protocol/schema/typescript/McpInvocation.ts b/codex-rs/app-server-protocol/schema/typescript/McpInvocation.ts
deleted file mode 100644
index 5b7103a60c..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/McpInvocation.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { JsonValue } from "./serde_json/JsonValue";
-
-export type McpInvocation = {
-/**
- * Name of the MCP server as defined in the config.
- */
-server: string,
-/**
- * Name of the tool as given by the MCP server.
- */
-tool: string,
-/**
- * Arguments to the tool call.
- */
-arguments: JsonValue | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/McpListToolsResponseEvent.ts b/codex-rs/app-server-protocol/schema/typescript/McpListToolsResponseEvent.ts
deleted file mode 100644
index 945959431a..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/McpListToolsResponseEvent.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { McpAuthStatus } from "./McpAuthStatus";
-import type { Resource } from "./Resource";
-import type { ResourceTemplate } from "./ResourceTemplate";
-import type { Tool } from "./Tool";
-
-export type McpListToolsResponseEvent = {
-/**
- * Fully qualified tool name -> tool definition.
- */
-tools: { [key in string]?: Tool },
-/**
- * Known resources grouped by server name.
- */
-resources: { [key in string]?: Array<Resource> },
-/**
- * Known resource templates grouped by server name.
- */
-resource_templates: { [key in string]?: Array<ResourceTemplate> },
-/**
- * Authentication status for each configured MCP server.
- */
-auth_statuses: { [key in string]?: McpAuthStatus }, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/McpStartupCompleteEvent.ts b/codex-rs/app-server-protocol/schema/typescript/McpStartupCompleteEvent.ts
deleted file mode 100644
index 67354adfbe..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/McpStartupCompleteEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { McpStartupFailure } from "./McpStartupFailure";
-
-export type McpStartupCompleteEvent = { ready: Array<string>, failed: Array<McpStartupFailure>, cancelled: Array<string>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/McpStartupFailure.ts b/codex-rs/app-server-protocol/schema/typescript/McpStartupFailure.ts
deleted file mode 100644
index b12009b15b..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/McpStartupFailure.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type McpStartupFailure = { server: string, error: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/McpStartupStatus.ts b/codex-rs/app-server-protocol/schema/typescript/McpStartupStatus.ts
deleted file mode 100644
index 48c08226f4..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/McpStartupStatus.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type McpStartupStatus = { "state": "starting" } | { "state": "ready" } | { "state": "failed", error: string, } | { "state": "cancelled" };
diff --git a/codex-rs/app-server-protocol/schema/typescript/McpStartupUpdateEvent.ts b/codex-rs/app-server-protocol/schema/typescript/McpStartupUpdateEvent.ts
deleted file mode 100644
index ecfe7d551e..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/McpStartupUpdateEvent.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { McpStartupStatus } from "./McpStartupStatus";
-
-export type McpStartupUpdateEvent = {
-/**
- * Server name being started.
- */
-server: string,
-/**
- * Current startup status.
- */
-status: McpStartupStatus, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/McpToolCallBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/McpToolCallBeginEvent.ts
deleted file mode 100644
index feb7ca7c21..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/McpToolCallBeginEvent.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { McpInvocation } from "./McpInvocation";
-
-export type McpToolCallBeginEvent = {
-/**
- * Identifier so this can be paired with the McpToolCallEnd event.
- */
-call_id: string, invocation: McpInvocation, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/McpToolCallEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/McpToolCallEndEvent.ts
deleted file mode 100644
index 0ca82b2bc6..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/McpToolCallEndEvent.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { CallToolResult } from "./CallToolResult";
-import type { McpInvocation } from "./McpInvocation";
-
-export type McpToolCallEndEvent = {
-/**
- * Identifier for the corresponding McpToolCallBegin that finished.
- */
-call_id: string, invocation: McpInvocation, duration: string,
-/**
- * Result of the tool call. Note this could be an error.
- */
-result: { Ok : CallToolResult } | { Err : string }, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ModelRerouteEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ModelRerouteEvent.ts
deleted file mode 100644
index 23a4e1efb6..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ModelRerouteEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ModelRerouteReason } from "./ModelRerouteReason";
-
-export type ModelRerouteEvent = { from_model: string, to_model: string, reason: ModelRerouteReason, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ModelRerouteReason.ts b/codex-rs/app-server-protocol/schema/typescript/ModelRerouteReason.ts
deleted file mode 100644
index f5e1abf1e3..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ModelRerouteReason.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ModelRerouteReason = "high_risk_cyber_activity";
diff --git a/codex-rs/app-server-protocol/schema/typescript/NetworkAccess.ts b/codex-rs/app-server-protocol/schema/typescript/NetworkAccess.ts
deleted file mode 100644
index f259e67b99..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/NetworkAccess.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-/**
- * Represents whether outbound network access is available to the agent.
- */
-export type NetworkAccess = "restricted" | "enabled";
diff --git a/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalContext.ts b/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalContext.ts
deleted file mode 100644
index b4b78e473c..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalContext.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { NetworkApprovalProtocol } from "./NetworkApprovalProtocol";
-
-export type NetworkApprovalContext = { host: string, protocol: NetworkApprovalProtocol, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalProtocol.ts b/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalProtocol.ts
deleted file mode 100644
index a33eab566f..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/NetworkApprovalProtocol.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type NetworkApprovalProtocol = "http" | "https" | "socks5_tcp" | "socks5_udp";
diff --git a/codex-rs/app-server-protocol/schema/typescript/NetworkPermissions.ts b/codex-rs/app-server-protocol/schema/typescript/NetworkPermissions.ts
deleted file mode 100644
index 7fb197b0e7..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/NetworkPermissions.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type NetworkPermissions = { enabled: boolean | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/PatchApplyBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/PatchApplyBeginEvent.ts
deleted file mode 100644
index 19ff0d5754..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/PatchApplyBeginEvent.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { FileChange } from "./FileChange";
-
-export type PatchApplyBeginEvent = {
-/**
- * Identifier so this can be paired with the PatchApplyEnd event.
- */
-call_id: string,
-/**
- * Turn ID that this patch belongs to.
- * Uses `#[serde(default)]` for backwards compatibility.
- */
-turn_id: string,
-/**
- * If true, there was no ApplyPatchApprovalRequest for this patch.
- */
-auto_approved: boolean,
-/**
- * The changes to be applied.
- */
-changes: { [key in string]?: FileChange }, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/PatchApplyEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/PatchApplyEndEvent.ts
deleted file mode 100644
index 9dacb00e44..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/PatchApplyEndEvent.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { FileChange } from "./FileChange";
-import type { PatchApplyStatus } from "./PatchApplyStatus";
-
-export type PatchApplyEndEvent = {
-/**
- * Identifier for the PatchApplyBegin that finished.
- */
-call_id: string,
-/**
- * Turn ID that this patch belongs to.
- * Uses `#[serde(default)]` for backwards compatibility.
- */
-turn_id: string,
-/**
- * Captured stdout (summary printed by apply_patch).
- */
-stdout: string,
-/**
- * Captured stderr (parser errors, IO failures, etc.).
- */
-stderr: string,
-/**
- * Whether the patch was applied successfully.
- */
-success: boolean,
-/**
- * The changes that were applied (mirrors PatchApplyBeginEvent::changes).
- */
-changes: { [key in string]?: FileChange },
-/**
- * Completion status for this patch application.
- */
-status: PatchApplyStatus, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/PatchApplyStatus.ts b/codex-rs/app-server-protocol/schema/typescript/PatchApplyStatus.ts
deleted file mode 100644
index 721fcd9b1f..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/PatchApplyStatus.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type PatchApplyStatus = "completed" | "failed" | "declined";
diff --git a/codex-rs/app-server-protocol/schema/typescript/PermissionProfile.ts b/codex-rs/app-server-protocol/schema/typescript/PermissionProfile.ts
deleted file mode 100644
index a81fd86b5a..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/PermissionProfile.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { FileSystemPermissions } from "./FileSystemPermissions";
-import type { MacOsSeatbeltProfileExtensions } from "./MacOsSeatbeltProfileExtensions";
-import type { NetworkPermissions } from "./NetworkPermissions";
-
-export type PermissionProfile = { network: NetworkPermissions | null, file_system: FileSystemPermissions | null, macos: MacOsSeatbeltProfileExtensions | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/PlanDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/PlanDeltaEvent.ts
deleted file mode 100644
index f2ff588442..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/PlanDeltaEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type PlanDeltaEvent = { thread_id: string, turn_id: string, item_id: string, delta: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/PlanItem.ts b/codex-rs/app-server-protocol/schema/typescript/PlanItem.ts
deleted file mode 100644
index 909ab40e64..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/PlanItem.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type PlanItem = { id: string, text: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/PlanItemArg.ts b/codex-rs/app-server-protocol/schema/typescript/PlanItemArg.ts
deleted file mode 100644
index a9c8acfa75..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/PlanItemArg.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { StepStatus } from "./StepStatus";
-
-export type PlanItemArg = { step: string, status: StepStatus, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RateLimitSnapshot.ts b/codex-rs/app-server-protocol/schema/typescript/RateLimitSnapshot.ts
deleted file mode 100644
index 8604128b4e..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RateLimitSnapshot.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { CreditsSnapshot } from "./CreditsSnapshot";
-import type { PlanType } from "./PlanType";
-import type { RateLimitWindow } from "./RateLimitWindow";
-
-export type RateLimitSnapshot = { limit_id: string | null, limit_name: string | null, primary: RateLimitWindow | null, secondary: RateLimitWindow | null, credits: CreditsSnapshot | null, plan_type: PlanType | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RateLimitWindow.ts b/codex-rs/app-server-protocol/schema/typescript/RateLimitWindow.ts
deleted file mode 100644
index 4a85062bf7..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RateLimitWindow.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type RateLimitWindow = {
-/**
- * Percentage (0-100) of the window that has been consumed.
- */
-used_percent: number,
-/**
- * Rolling window duration, in minutes.
- */
-window_minutes: number | null,
-/**
- * Unix timestamp (seconds since epoch) when the window resets.
- */
-resets_at: number | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RawResponseItemEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RawResponseItemEvent.ts
deleted file mode 100644
index 62dd4f0018..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RawResponseItemEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ResponseItem } from "./ResponseItem";
-
-export type RawResponseItemEvent = { item: ResponseItem, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ReadOnlyAccess.ts b/codex-rs/app-server-protocol/schema/typescript/ReadOnlyAccess.ts
deleted file mode 100644
index c01bdd37c6..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ReadOnlyAccess.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AbsolutePathBuf } from "./AbsolutePathBuf";
-
-/**
- * Determines how read-only file access is granted inside a restricted
- * sandbox.
- */
-export type ReadOnlyAccess = { "type": "restricted",
-/**
- * Include built-in platform read roots required for basic process
- * execution.
- */
-include_platform_defaults: boolean,
-/**
- * Additional absolute roots that should be readable.
- */
-readable_roots?: Array<AbsolutePathBuf>, } | { "type": "full-access" };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeAudioFrame.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeAudioFrame.ts
deleted file mode 100644
index 99c0c1063c..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RealtimeAudioFrame.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type RealtimeAudioFrame = { data: string, sample_rate: number, num_channels: number, samples_per_channel: number | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationClosedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationClosedEvent.ts
deleted file mode 100644
index c73e6833ae..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationClosedEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type RealtimeConversationClosedEvent = { reason: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationRealtimeEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationRealtimeEvent.ts
deleted file mode 100644
index 4ff24a8281..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationRealtimeEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { RealtimeEvent } from "./RealtimeEvent";
-
-export type RealtimeConversationRealtimeEvent = { payload: RealtimeEvent, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationStartedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationStartedEvent.ts
deleted file mode 100644
index f2894fcb1e..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RealtimeConversationStartedEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type RealtimeConversationStartedEvent = { session_id: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeEvent.ts
deleted file mode 100644
index 490400b4e0..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RealtimeEvent.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { RealtimeAudioFrame } from "./RealtimeAudioFrame";
-import type { RealtimeHandoffRequested } from "./RealtimeHandoffRequested";
-import type { RealtimeTranscriptDelta } from "./RealtimeTranscriptDelta";
-import type { JsonValue } from "./serde_json/JsonValue";
-
-export type RealtimeEvent = { "SessionUpdated": { session_id: string, instructions: string | null, } } | { "InputTranscriptDelta": RealtimeTranscriptDelta } | { "OutputTranscriptDelta": RealtimeTranscriptDelta } | { "AudioOut": RealtimeAudioFrame } | { "ConversationItemAdded": JsonValue } | { "ConversationItemDone": { item_id: string, } } | { "HandoffRequested": RealtimeHandoffRequested } | { "Error": string };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeHandoffRequested.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeHandoffRequested.ts
deleted file mode 100644
index 5fbe237910..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RealtimeHandoffRequested.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { RealtimeTranscriptEntry } from "./RealtimeTranscriptEntry";
-
-export type RealtimeHandoffRequested = { handoff_id: string, item_id: string, input_transcript: string, active_transcript: Array<RealtimeTranscriptEntry>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeTranscriptDelta.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeTranscriptDelta.ts
deleted file mode 100644
index 99cf24f77a..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RealtimeTranscriptDelta.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type RealtimeTranscriptDelta = { delta: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RealtimeTranscriptEntry.ts b/codex-rs/app-server-protocol/schema/typescript/RealtimeTranscriptEntry.ts
deleted file mode 100644
index e7420f3c73..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RealtimeTranscriptEntry.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type RealtimeTranscriptEntry = { role: string, text: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ReasoningContentDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ReasoningContentDeltaEvent.ts
deleted file mode 100644
index 70dfc01d24..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ReasoningContentDeltaEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ReasoningContentDeltaEvent = { thread_id: string, turn_id: string, item_id: string, delta: string, summary_index: bigint, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ReasoningItem.ts b/codex-rs/app-server-protocol/schema/typescript/ReasoningItem.ts
deleted file mode 100644
index 80bcb65fd1..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ReasoningItem.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ReasoningItem = { id: string, summary_text: Array<string>, raw_content: Array<string>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ReasoningRawContentDeltaEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ReasoningRawContentDeltaEvent.ts
deleted file mode 100644
index ef3a792caf..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ReasoningRawContentDeltaEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ReasoningRawContentDeltaEvent = { thread_id: string, turn_id: string, item_id: string, delta: string, content_index: bigint, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RejectConfig.ts b/codex-rs/app-server-protocol/schema/typescript/RejectConfig.ts
deleted file mode 100644
index 67e5c26166..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RejectConfig.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type RejectConfig = {
-/**
- * Reject approval prompts related to sandbox escalation.
- */
-sandbox_approval: boolean,
-/**
- * Reject prompts triggered by execpolicy `prompt` rules.
- */
-rules: boolean,
-/**
- * Reject approval prompts triggered by skill script execution.
- */
-skill_approval: boolean,
-/**
- * Reject approval prompts related to built-in permission requests.
- */
-request_permissions: boolean,
-/**
- * Reject MCP elicitation prompts.
- */
-mcp_elicitations: boolean, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RemoteSkillDownloadedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RemoteSkillDownloadedEvent.ts
deleted file mode 100644
index 83082f2a57..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RemoteSkillDownloadedEvent.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-/**
- * Response payload for `Op::DownloadRemoteSkill`.
- */
-export type RemoteSkillDownloadedEvent = { id: string, name: string, path: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RemoteSkillSummary.ts b/codex-rs/app-server-protocol/schema/typescript/RemoteSkillSummary.ts
deleted file mode 100644
index 7bf57b3b09..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RemoteSkillSummary.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type RemoteSkillSummary = { id: string, name: string, description: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RequestPermissionsEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RequestPermissionsEvent.ts
deleted file mode 100644
index 33a109f46e..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RequestPermissionsEvent.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { PermissionProfile } from "./PermissionProfile";
-
-export type RequestPermissionsEvent = {
-/**
- * Responses API call id for the associated tool call, if available.
- */
-call_id: string,
-/**
- * Turn ID that this request belongs to.
- * Uses `#[serde(default)]` for backwards compatibility.
- */
-turn_id: string, reason: string | null, permissions: PermissionProfile, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RequestUserInputEvent.ts b/codex-rs/app-server-protocol/schema/typescript/RequestUserInputEvent.ts
deleted file mode 100644
index 8ea6453de9..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RequestUserInputEvent.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { RequestUserInputQuestion } from "./RequestUserInputQuestion";
-
-export type RequestUserInputEvent = {
-/**
- * Responses API call id for the associated tool call, if available.
- */
-call_id: string,
-/**
- * Turn ID that this request belongs to.
- * Uses `#[serde(default)]` for backwards compatibility.
- */
-turn_id: string, questions: Array<RequestUserInputQuestion>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RequestUserInputQuestion.ts b/codex-rs/app-server-protocol/schema/typescript/RequestUserInputQuestion.ts
deleted file mode 100644
index 2a68f7b4c8..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RequestUserInputQuestion.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { RequestUserInputQuestionOption } from "./RequestUserInputQuestionOption";
-
-export type RequestUserInputQuestion = { id: string, header: string, question: string, isOther: boolean, isSecret: boolean, options: Array<RequestUserInputQuestionOption> | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/RequestUserInputQuestionOption.ts b/codex-rs/app-server-protocol/schema/typescript/RequestUserInputQuestionOption.ts
deleted file mode 100644
index b2d2a0db48..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/RequestUserInputQuestionOption.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type RequestUserInputQuestionOption = { label: string, description: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ReviewCodeLocation.ts b/codex-rs/app-server-protocol/schema/typescript/ReviewCodeLocation.ts
deleted file mode 100644
index 752589fe55..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ReviewCodeLocation.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ReviewLineRange } from "./ReviewLineRange";
-
-/**
- * Location of the code related to a review finding.
- */
-export type ReviewCodeLocation = { absolute_file_path: string, line_range: ReviewLineRange, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ReviewFinding.ts b/codex-rs/app-server-protocol/schema/typescript/ReviewFinding.ts
deleted file mode 100644
index e7c96bd170..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ReviewFinding.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ReviewCodeLocation } from "./ReviewCodeLocation";
-
-/**
- * A single review finding describing an observed issue or recommendation.
- */
-export type ReviewFinding = { title: string, body: string, confidence_score: number, priority: number, code_location: ReviewCodeLocation, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ReviewLineRange.ts b/codex-rs/app-server-protocol/schema/typescript/ReviewLineRange.ts
deleted file mode 100644
index c57ec6ed60..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ReviewLineRange.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-/**
- * Inclusive line range in a file associated with the finding.
- */
-export type ReviewLineRange = { start: number, end: number, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ReviewOutputEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ReviewOutputEvent.ts
deleted file mode 100644
index c45747424b..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ReviewOutputEvent.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ReviewFinding } from "./ReviewFinding";
-
-/**
- * Structured review result produced by a child review session.
- */
-export type ReviewOutputEvent = { findings: Array<ReviewFinding>, overall_correctness: string, overall_explanation: string, overall_confidence_score: number, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ReviewRequest.ts b/codex-rs/app-server-protocol/schema/typescript/ReviewRequest.ts
deleted file mode 100644
index 1e9b8ad2ee..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ReviewRequest.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ReviewTarget } from "./ReviewTarget";
-
-/**
- * Review request sent to the review session.
- */
-export type ReviewRequest = { target: ReviewTarget, user_facing_hint?: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ReviewTarget.ts b/codex-rs/app-server-protocol/schema/typescript/ReviewTarget.ts
deleted file mode 100644
index a79f1e993c..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ReviewTarget.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ReviewTarget = { "type": "uncommittedChanges" } | { "type": "baseBranch", branch: string, } | { "type": "commit", sha: string,
-/**
- * Optional human-readable label (e.g., commit subject) for UIs.
- */
-title: string | null, } | { "type": "custom", instructions: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/SandboxPolicy.ts b/codex-rs/app-server-protocol/schema/typescript/SandboxPolicy.ts
deleted file mode 100644
index 8440fd8043..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/SandboxPolicy.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AbsolutePathBuf } from "./AbsolutePathBuf";
-import type { NetworkAccess } from "./NetworkAccess";
-import type { ReadOnlyAccess } from "./ReadOnlyAccess";
-
-/**
- * Determines execution restrictions for model shell commands.
- */
-export type SandboxPolicy = { "type": "danger-full-access" } | { "type": "read-only",
-/**
- * Read access granted while running under this policy.
- */
-access?: ReadOnlyAccess,
-/**
- * When set to `true`, outbound network access is allowed. `false` by
- * default.
- */
-network_access?: boolean, } | { "type": "external-sandbox",
-/**
- * Whether the external sandbox permits outbound network traffic.
- */
-network_access: NetworkAccess, } | { "type": "workspace-write",
-/**
- * Additional folders (beyond cwd and possibly TMPDIR) that should be
- * writable from within the sandbox.
- */
-writable_roots?: Array<AbsolutePathBuf>,
-/**
- * Read access granted while running under this policy.
- */
-read_only_access?: ReadOnlyAccess,
-/**
- * When set to `true`, outbound network access is allowed. `false` by
- * default.
- */
-network_access: boolean,
-/**
- * When set to `true`, will NOT include the per-user `TMPDIR`
- * environment variable among the default writable roots. Defaults to
- * `false`.
- */
-exclude_tmpdir_env_var: boolean,
-/**
- * When set to `true`, will NOT include the `/tmp` among the default
- * writable roots on UNIX. Defaults to `false`.
- */
-exclude_slash_tmp: boolean, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredEvent.ts b/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredEvent.ts
deleted file mode 100644
index b4696a0e4c..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/SessionConfiguredEvent.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AskForApproval } from "./AskForApproval";
-import type { EventMsg } from "./EventMsg";
-import type { ReasoningEffort } from "./ReasoningEffort";
-import type { SandboxPolicy } from "./SandboxPolicy";
-import type { ServiceTier } from "./ServiceTier";
-import type { SessionNetworkProxyRuntime } from "./SessionNetworkProxyRuntime";
-import type { ThreadId } from "./ThreadId";
-
-export type SessionConfiguredEvent = { session_id: ThreadId, forked_from_id: ThreadId | null,
-/**
- * Optional user-facing thread name (may be unset).
- */
-thread_name?: string,
-/**
- * Tell the client what model is being queried.
- */
-model: string, model_provider_id: string, service_tier: ServiceTier | null,
-/**
- * When to escalate for approval for execution
- */
-approval_policy: AskForApproval,
-/**
- * How to sandbox commands executed in the system
- */
-sandbox_policy: SandboxPolicy,
-/**
- * Working directory that should be treated as the *root* of the
- * session.
- */
-cwd: string,
-/**
- * The effort the model is putting into reasoning about the user's request.
- */
-reasoning_effort: ReasoningEffort | null,
-/**
- * Identifier of the history log file (inode on Unix, 0 otherwise).
- */
-history_log_id: bigint,
-/**
- * Current number of entries in the history log.
- */
-history_entry_count: number,
-/**
- * Optional initial messages (as events) for resumed sessions.
- * When present, UIs can use these to seed the history.
- */
-initial_messages: Array<EventMsg> | null,
-/**
- * Runtime proxy bind addresses, when the managed proxy was started for this session.
- */
-network_proxy?: SessionNetworkProxyRuntime,
-/**
- * Path in which the rollout is stored. Can be `None` for ephemeral threads
- */
-rollout_path: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/SessionNetworkProxyRuntime.ts b/codex-rs/app-server-protocol/schema/typescript/SessionNetworkProxyRuntime.ts
deleted file mode 100644
index fb8c2d29e9..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/SessionNetworkProxyRuntime.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type SessionNetworkProxyRuntime = { http_addr: string, socks_addr: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/SkillDependencies.ts b/codex-rs/app-server-protocol/schema/typescript/SkillDependencies.ts
deleted file mode 100644
index e2dd4f4241..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/SkillDependencies.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { SkillToolDependency } from "./SkillToolDependency";
-
-export type SkillDependencies = { tools: Array<SkillToolDependency>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/SkillErrorInfo.ts b/codex-rs/app-server-protocol/schema/typescript/SkillErrorInfo.ts
deleted file mode 100644
index 6eaf035d8c..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/SkillErrorInfo.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type SkillErrorInfo = { path: string, message: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/SkillInterface.ts b/codex-rs/app-server-protocol/schema/typescript/SkillInterface.ts
deleted file mode 100644
index 30250b9383..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/SkillInterface.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type SkillInterface = { display_name?: string, short_description?: string, icon_small?: string, icon_large?: string, brand_color?: string, default_prompt?: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/SkillMetadata.ts b/codex-rs/app-server-protocol/schema/typescript/SkillMetadata.ts
deleted file mode 100644
index 088abc406a..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/SkillMetadata.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { SkillDependencies } from "./SkillDependencies";
-import type { SkillInterface } from "./SkillInterface";
-import type { SkillScope } from "./SkillScope";
-
-export type SkillMetadata = { name: string, description: string,
-/**
- * Legacy short_description from SKILL.md. Prefer SKILL.json interface.short_description.
- */
-short_description?: string, interface?: SkillInterface, dependencies?: SkillDependencies, path: string, scope: SkillScope, enabled: boolean, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/SkillScope.ts b/codex-rs/app-server-protocol/schema/typescript/SkillScope.ts
deleted file mode 100644
index 997006f5b8..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/SkillScope.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type SkillScope = "user" | "repo" | "system" | "admin";
diff --git a/codex-rs/app-server-protocol/schema/typescript/SkillToolDependency.ts b/codex-rs/app-server-protocol/schema/typescript/SkillToolDependency.ts
deleted file mode 100644
index a5da45e178..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/SkillToolDependency.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type SkillToolDependency = { type: string, value: string, description?: string, transport?: string, command?: string, url?: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/SkillsListEntry.ts b/codex-rs/app-server-protocol/schema/typescript/SkillsListEntry.ts
deleted file mode 100644
index 3f46c98a4a..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/SkillsListEntry.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { SkillErrorInfo } from "./SkillErrorInfo";
-import type { SkillMetadata } from "./SkillMetadata";
-
-export type SkillsListEntry = { cwd: string, skills: Array<SkillMetadata>, errors: Array<SkillErrorInfo>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/StepStatus.ts b/codex-rs/app-server-protocol/schema/typescript/StepStatus.ts
deleted file mode 100644
index 8494a76e0b..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/StepStatus.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type StepStatus = "pending" | "in_progress" | "completed";
diff --git a/codex-rs/app-server-protocol/schema/typescript/StreamErrorEvent.ts b/codex-rs/app-server-protocol/schema/typescript/StreamErrorEvent.ts
deleted file mode 100644
index b88993a344..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/StreamErrorEvent.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { CodexErrorInfo } from "./CodexErrorInfo";
-
-export type StreamErrorEvent = { message: string, codex_error_info: CodexErrorInfo | null,
-/**
- * Optional details about the underlying stream failure (often the same
- * human-readable message that is surfaced as the terminal error if retries
- * are exhausted).
- */
-additional_details: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/TerminalInteractionEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TerminalInteractionEvent.ts
deleted file mode 100644
index 5f300e6ca5..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TerminalInteractionEvent.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type TerminalInteractionEvent = {
-/**
- * Identifier for the ExecCommandBegin that produced this chunk.
- */
-call_id: string,
-/**
- * Process id associated with the running command.
- */
-process_id: string,
-/**
- * Stdin sent to the running session.
- */
-stdin: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/TextElement.ts b/codex-rs/app-server-protocol/schema/typescript/TextElement.ts
deleted file mode 100644
index 3dcd369d82..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TextElement.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ByteRange } from "./ByteRange";
-
-export type TextElement = {
-/**
- * Byte range in the parent `text` buffer that this element occupies.
- */
-byte_range: ByteRange,
-/**
- * Optional human-readable placeholder for the element, displayed in the UI.
- */
-placeholder: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ThreadNameUpdatedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ThreadNameUpdatedEvent.ts
deleted file mode 100644
index 639e29f9d7..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ThreadNameUpdatedEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ThreadId } from "./ThreadId";
-
-export type ThreadNameUpdatedEvent = { thread_id: ThreadId, thread_name?: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ThreadRolledBackEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ThreadRolledBackEvent.ts
deleted file mode 100644
index 30bc64c9c1..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ThreadRolledBackEvent.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ThreadRolledBackEvent = {
-/**
- * Number of user turns that were removed from context.
- */
-num_turns: number, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/TokenCountEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TokenCountEvent.ts
deleted file mode 100644
index f58b574641..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TokenCountEvent.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { RateLimitSnapshot } from "./RateLimitSnapshot";
-import type { TokenUsageInfo } from "./TokenUsageInfo";
-
-export type TokenCountEvent = { info: TokenUsageInfo | null, rate_limits: RateLimitSnapshot | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/TokenUsage.ts b/codex-rs/app-server-protocol/schema/typescript/TokenUsage.ts
deleted file mode 100644
index 41186b25b9..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TokenUsage.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type TokenUsage = { input_tokens: number, cached_input_tokens: number, output_tokens: number, reasoning_output_tokens: number, total_tokens: number, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/TokenUsageInfo.ts b/codex-rs/app-server-protocol/schema/typescript/TokenUsageInfo.ts
deleted file mode 100644
index cb15de42e7..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TokenUsageInfo.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { TokenUsage } from "./TokenUsage";
-
-export type TokenUsageInfo = { total_token_usage: TokenUsage, last_token_usage: TokenUsage, model_context_window: number | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnAbortReason.ts b/codex-rs/app-server-protocol/schema/typescript/TurnAbortReason.ts
deleted file mode 100644
index f07cde6292..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TurnAbortReason.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type TurnAbortReason = "interrupted" | "replaced" | "review_ended";
diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnAbortedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TurnAbortedEvent.ts
deleted file mode 100644
index 0b4e9075b3..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TurnAbortedEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { TurnAbortReason } from "./TurnAbortReason";
-
-export type TurnAbortedEvent = { turn_id: string | null, reason: TurnAbortReason, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnCompleteEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TurnCompleteEvent.ts
deleted file mode 100644
index 6987d59f98..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TurnCompleteEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type TurnCompleteEvent = { turn_id: string, last_agent_message: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnDiffEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TurnDiffEvent.ts
deleted file mode 100644
index 52e3df09b0..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TurnDiffEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type TurnDiffEvent = { unified_diff: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnItem.ts b/codex-rs/app-server-protocol/schema/typescript/TurnItem.ts
deleted file mode 100644
index 965fb18481..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TurnItem.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { AgentMessageItem } from "./AgentMessageItem";
-import type { ContextCompactionItem } from "./ContextCompactionItem";
-import type { ImageGenerationItem } from "./ImageGenerationItem";
-import type { PlanItem } from "./PlanItem";
-import type { ReasoningItem } from "./ReasoningItem";
-import type { UserMessageItem } from "./UserMessageItem";
-import type { WebSearchItem } from "./WebSearchItem";
-
-export type TurnItem = { "type": "UserMessage" } & UserMessageItem | { "type": "AgentMessage" } & AgentMessageItem | { "type": "Plan" } & PlanItem | { "type": "Reasoning" } & ReasoningItem | { "type": "WebSearch" } & WebSearchItem | { "type": "ImageGeneration" } & ImageGenerationItem | { "type": "ContextCompaction" } & ContextCompactionItem;
diff --git a/codex-rs/app-server-protocol/schema/typescript/TurnStartedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/TurnStartedEvent.ts
deleted file mode 100644
index 14c0d76707..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/TurnStartedEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { ModeKind } from "./ModeKind";
-
-export type TurnStartedEvent = { turn_id: string, model_context_window: bigint | null, collaboration_mode_kind: ModeKind, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/UndoCompletedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/UndoCompletedEvent.ts
deleted file mode 100644
index 2d94e2e18d..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/UndoCompletedEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type UndoCompletedEvent = { success: boolean, message: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/UndoStartedEvent.ts b/codex-rs/app-server-protocol/schema/typescript/UndoStartedEvent.ts
deleted file mode 100644
index 712082adff..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/UndoStartedEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type UndoStartedEvent = { message: string | null, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/UpdatePlanArgs.ts b/codex-rs/app-server-protocol/schema/typescript/UpdatePlanArgs.ts
deleted file mode 100644
index 61613fcb5f..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/UpdatePlanArgs.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { PlanItemArg } from "./PlanItemArg";
-
-export type UpdatePlanArgs = {
-/**
- * Arguments for the `update_plan` todo/checklist tool (not plan mode).
- */
-explanation: string | null, plan: Array<PlanItemArg>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/UserInput.ts b/codex-rs/app-server-protocol/schema/typescript/UserInput.ts
deleted file mode 100644
index e6a9c3a580..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/UserInput.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { TextElement } from "./TextElement";
-
-/**
- * User input
- */
-export type UserInput = { "type": "text", text: string,
-/**
- * UI-defined spans within `text` that should be treated as special elements.
- * These are byte ranges into the UTF-8 `text` buffer and are used to render
- * or persist rich input markers (e.g., image placeholders) across history
- * and resume without mutating the literal text.
- */
-text_elements: Array<TextElement>, } | { "type": "image", image_url: string, } | { "type": "local_image", path: string, } | { "type": "skill", name: string, path: string, } | { "type": "mention", name: string, path: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/UserMessageEvent.ts b/codex-rs/app-server-protocol/schema/typescript/UserMessageEvent.ts
deleted file mode 100644
index 2fde364d67..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/UserMessageEvent.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { TextElement } from "./TextElement";
-
-export type UserMessageEvent = { message: string,
-/**
- * Image URLs sourced from `UserInput::Image`. These are safe
- * to replay in legacy UI history events and correspond to images sent to
- * the model.
- */
-images: Array<string> | null,
-/**
- * Local file paths sourced from `UserInput::LocalImage`. These are kept so
- * the UI can reattach images when editing history, and should not be sent
- * to the model or treated as API-ready URLs.
- */
-local_images: Array<string>,
-/**
- * UI-defined spans within `message` used to render or persist special elements.
- */
-text_elements: Array<TextElement>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/UserMessageItem.ts b/codex-rs/app-server-protocol/schema/typescript/UserMessageItem.ts
deleted file mode 100644
index df856287a5..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/UserMessageItem.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { UserInput } from "./UserInput";
-
-export type UserMessageItem = { id: string, content: Array<UserInput>, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/ViewImageToolCallEvent.ts b/codex-rs/app-server-protocol/schema/typescript/ViewImageToolCallEvent.ts
deleted file mode 100644
index 76541a773a..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/ViewImageToolCallEvent.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type ViewImageToolCallEvent = {
-/**
- * Identifier for the originating tool call.
- */
-call_id: string,
-/**
- * Local filesystem path provided to the tool.
- */
-path: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/WarningEvent.ts b/codex-rs/app-server-protocol/schema/typescript/WarningEvent.ts
deleted file mode 100644
index 35ec40f7cd..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/WarningEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type WarningEvent = { message: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/WebSearchBeginEvent.ts b/codex-rs/app-server-protocol/schema/typescript/WebSearchBeginEvent.ts
deleted file mode 100644
index 4a8d881914..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/WebSearchBeginEvent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type WebSearchBeginEvent = { call_id: string, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/WebSearchEndEvent.ts b/codex-rs/app-server-protocol/schema/typescript/WebSearchEndEvent.ts
deleted file mode 100644
index 5b8b67c28b..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/WebSearchEndEvent.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { WebSearchAction } from "./WebSearchAction";
-
-export type WebSearchEndEvent = { call_id: string, query: string, action: WebSearchAction, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/WebSearchItem.ts b/codex-rs/app-server-protocol/schema/typescript/WebSearchItem.ts
deleted file mode 100644
index 46b1406519..0000000000
--- a/codex-rs/app-server-protocol/schema/typescript/WebSearchItem.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// GENERATED CODE! DO NOT MODIFY BY HAND!
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-import type { WebSearchAction } from "./WebSearchAction";
-
-export type WebSearchItem = { id: string, query: string, action: WebSearchAction, };
diff --git a/codex-rs/app-server-protocol/schema/typescript/index.ts b/codex-rs/app-server-protocol/schema/typescript/index.ts
index a1209c75bc..08a04de5a6 100644
--- a/codex-rs/app-server-protocol/schema/typescript/index.ts
+++ b/codex-rs/app-server-protocol/schema/typescript/index.ts
@@ -1,71 +1,20 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
export type { AbsolutePathBuf } from "./AbsolutePathBuf";
-export type { AgentMessageContent } from "./AgentMessageContent";
-export type { AgentMessageContentDeltaEvent } from "./AgentMessageContentDeltaEvent";
-export type { AgentMessageDeltaEvent } from "./AgentMessageDeltaEvent";
-export type { AgentMessageEvent } from "./AgentMessageEvent";
-export type { AgentMessageItem } from "./AgentMessageItem";
-export type { AgentReasoningDeltaEvent } from "./AgentReasoningDeltaEvent";
-export type { AgentReasoningEvent } from "./AgentReasoningEvent";
-export type { AgentReasoningRawContentDeltaEvent } from "./AgentReasoningRawContentDeltaEvent";
-export type { AgentReasoningRawContentEvent } from "./AgentReasoningRawContentEvent";
-export type { AgentReasoningSectionBreakEvent } from "./AgentReasoningSectionBreakEvent";
-export type { AgentStatus } from "./AgentStatus";
export type { ApplyPatchApprovalParams } from "./ApplyPatchApprovalParams";
-export type { ApplyPatchApprovalRequestEvent } from "./ApplyPatchApprovalRequestEvent";
export type { ApplyPatchApprovalResponse } from "./ApplyPatchApprovalResponse";
-export type { AskForApproval } from "./AskForApproval";
export type { AuthMode } from "./AuthMode";
-export type { BackgroundEventEvent } from "./BackgroundEventEvent";
-export type { ByteRange } from "./ByteRange";
-export type { CallToolResult } from "./CallToolResult";
export type { ClientInfo } from "./ClientInfo";
export type { ClientNotification } from "./ClientNotification";
export type { ClientRequest } from "./ClientRequest";
-export type { CodexErrorInfo } from "./CodexErrorInfo";
-export type { CollabAgentInteractionBeginEvent } from "./CollabAgentInteractionBeginEvent";
-export type { CollabAgentInteractionEndEvent } from "./CollabAgentInteractionEndEvent";
-export type { CollabAgentRef } from "./CollabAgentRef";
-export type { CollabAgentSpawnBeginEvent } from "./CollabAgentSpawnBeginEvent";
-export type { CollabAgentSpawnEndEvent } from "./CollabAgentSpawnEndEvent";
-export type { CollabAgentStatusEntry } from "./CollabAgentStatusEntry";
-export type { CollabCloseBeginEvent } from "./CollabCloseBeginEvent";
-export type { CollabCloseEndEvent } from "./CollabCloseEndEvent";
-export type { CollabResumeBeginEvent } from "./CollabResumeBeginEvent";
-export type { CollabResumeEndEvent } from "./CollabResumeEndEvent";
-export type { CollabWaitingBeginEvent } from "./CollabWaitingBeginEvent";
-export type { CollabWaitingEndEvent } from "./CollabWaitingEndEvent";
export type { CollaborationMode } from "./CollaborationMode";
export type { ContentItem } from "./ContentItem";
-export type { ContextCompactedEvent } from "./ContextCompactedEvent";
-export type { ContextCompactionItem } from "./ContextCompactionItem";
export type { ConversationGitInfo } from "./ConversationGitInfo";
export type { ConversationSummary } from "./ConversationSummary";
-export type { CreditsSnapshot } from "./CreditsSnapshot";
-export type { CustomPrompt } from "./CustomPrompt";
-export type { DeprecationNoticeEvent } from "./DeprecationNoticeEvent";
-export type { DynamicToolCallOutputContentItem } from "./DynamicToolCallOutputContentItem";
-export type { DynamicToolCallRequest } from "./DynamicToolCallRequest";
-export type { DynamicToolCallResponseEvent } from "./DynamicToolCallResponseEvent";
-export type { ElicitationRequest } from "./ElicitationRequest";
-export type { ElicitationRequestEvent } from "./ElicitationRequestEvent";
-export type { ErrorEvent } from "./ErrorEvent";
-export type { EventMsg } from "./EventMsg";
-export type { ExecApprovalRequestEvent } from "./ExecApprovalRequestEvent";
-export type { ExecApprovalRequestSkillMetadata } from "./ExecApprovalRequestSkillMetadata";
export type { ExecCommandApprovalParams } from "./ExecCommandApprovalParams";
export type { ExecCommandApprovalResponse } from "./ExecCommandApprovalResponse";
-export type { ExecCommandBeginEvent } from "./ExecCommandBeginEvent";
-export type { ExecCommandEndEvent } from "./ExecCommandEndEvent";
-export type { ExecCommandOutputDeltaEvent } from "./ExecCommandOutputDeltaEvent";
-export type { ExecCommandSource } from "./ExecCommandSource";
-export type { ExecCommandStatus } from "./ExecCommandStatus";
-export type { ExecOutputStream } from "./ExecOutputStream";
export type { ExecPolicyAmendment } from "./ExecPolicyAmendment";
-export type { ExitedReviewModeEvent } from "./ExitedReviewModeEvent";
export type { FileChange } from "./FileChange";
-export type { FileSystemPermissions } from "./FileSystemPermissions";
export type { ForcedLoginMethod } from "./ForcedLoginMethod";
export type { FunctionCallOutputBody } from "./FunctionCallOutputBody";
export type { FunctionCallOutputContentItem } from "./FunctionCallOutputContentItem";
@@ -79,155 +28,48 @@ export type { GetAuthStatusParams } from "./GetAuthStatusParams";
export type { GetAuthStatusResponse } from "./GetAuthStatusResponse";
export type { GetConversationSummaryParams } from "./GetConversationSummaryParams";
export type { GetConversationSummaryResponse } from "./GetConversationSummaryResponse";
-export type { GetHistoryEntryResponseEvent } from "./GetHistoryEntryResponseEvent";
export type { GhostCommit } from "./GhostCommit";
export type { GitDiffToRemoteParams } from "./GitDiffToRemoteParams";
export type { GitDiffToRemoteResponse } from "./GitDiffToRemoteResponse";
export type { GitSha } from "./GitSha";
-export type { HistoryEntry } from "./HistoryEntry";
-export type { HookCompletedEvent } from "./HookCompletedEvent";
-export type { HookEventName } from "./HookEventName";
-export type { HookExecutionMode } from "./HookExecutionMode";
-export type { HookHandlerType } from "./HookHandlerType";
-export type { HookOutputEntry } from "./HookOutputEntry";
-export type { HookOutputEntryKind } from "./HookOutputEntryKind";
-export type { HookRunStatus } from "./HookRunStatus";
-export type { HookRunSummary } from "./HookRunSummary";
-export type { HookScope } from "./HookScope";
-export type { HookStartedEvent } from "./HookStartedEvent";
export type { ImageDetail } from "./ImageDetail";
-export type { ImageGenerationBeginEvent } from "./ImageGenerationBeginEvent";
-export type { ImageGenerationEndEvent } from "./ImageGenerationEndEvent";
-export type { ImageGenerationItem } from "./ImageGenerationItem";
export type { InitializeCapabilities } from "./InitializeCapabilities";
export type { InitializeParams } from "./InitializeParams";
export type { InitializeResponse } from "./InitializeResponse";
export type { InputModality } from "./InputModality";
-export type { ItemCompletedEvent } from "./ItemCompletedEvent";
-export type { ItemStartedEvent } from "./ItemStartedEvent";
-export type { ListCustomPromptsResponseEvent } from "./ListCustomPromptsResponseEvent";
-export type { ListRemoteSkillsResponseEvent } from "./ListRemoteSkillsResponseEvent";
-export type { ListSkillsResponseEvent } from "./ListSkillsResponseEvent";
export type { LocalShellAction } from "./LocalShellAction";
export type { LocalShellExecAction } from "./LocalShellExecAction";
export type { LocalShellStatus } from "./LocalShellStatus";
export type { MacOsAutomationPermission } from "./MacOsAutomationPermission";
export type { MacOsContactsPermission } from "./MacOsContactsPermission";
export type { MacOsPreferencesPermission } from "./MacOsPreferencesPermission";
-export type { MacOsSeatbeltProfileExtensions } from "./MacOsSeatbeltProfileExtensions";
-export type { McpAuthStatus } from "./McpAuthStatus";
-export type { McpInvocation } from "./McpInvocation";
-export type { McpListToolsResponseEvent } from "./McpListToolsResponseEvent";
-export type { McpStartupCompleteEvent } from "./McpStartupCompleteEvent";
-export type { McpStartupFailure } from "./McpStartupFailure";
-export type { McpStartupStatus } from "./McpStartupStatus";
-export type { McpStartupUpdateEvent } from "./McpStartupUpdateEvent";
-export type { McpToolCallBeginEvent } from "./McpToolCallBeginEvent";
-export type { McpToolCallEndEvent } from "./McpToolCallEndEvent";
export type { MessagePhase } from "./MessagePhase";
export type { ModeKind } from "./ModeKind";
-export type { ModelRerouteEvent } from "./ModelRerouteEvent";
-export type { ModelRerouteReason } from "./ModelRerouteReason";
-export type { NetworkAccess } from "./NetworkAccess";
-export type { NetworkApprovalContext } from "./NetworkApprovalContext";
-export type { NetworkApprovalProtocol } from "./NetworkApprovalProtocol";
-export type { NetworkPermissions } from "./NetworkPermissions";
export type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment";
export type { NetworkPolicyRuleAction } from "./NetworkPolicyRuleAction";
export type { ParsedCommand } from "./ParsedCommand";
-export type { PatchApplyBeginEvent } from "./PatchApplyBeginEvent";
-export type { PatchApplyEndEvent } from "./PatchApplyEndEvent";
-export type { PatchApplyStatus } from "./PatchApplyStatus";
-export type { PermissionProfile } from "./PermissionProfile";
export type { Personality } from "./Personality";
-export type { PlanDeltaEvent } from "./PlanDeltaEvent";
-export type { PlanItem } from "./PlanItem";
-export type { PlanItemArg } from "./PlanItemArg";
export type { PlanType } from "./PlanType";
-export type { RateLimitSnapshot } from "./RateLimitSnapshot";
-export type { RateLimitWindow } from "./RateLimitWindow";
-export type { RawResponseItemEvent } from "./RawResponseItemEvent";
-export type { ReadOnlyAccess } from "./ReadOnlyAccess";
-export type { RealtimeAudioFrame } from "./RealtimeAudioFrame";
-export type { RealtimeConversationClosedEvent } from "./RealtimeConversationClosedEvent";
-export type { RealtimeConversationRealtimeEvent } from "./RealtimeConversationRealtimeEvent";
-export type { RealtimeConversationStartedEvent } from "./RealtimeConversationStartedEvent";
-export type { RealtimeEvent } from "./RealtimeEvent";
-export type { RealtimeHandoffRequested } from "./RealtimeHandoffRequested";
-export type { RealtimeTranscriptDelta } from "./RealtimeTranscriptDelta";
-export type { RealtimeTranscriptEntry } from "./RealtimeTranscriptEntry";
-export type { ReasoningContentDeltaEvent } from "./ReasoningContentDeltaEvent";
export type { ReasoningEffort } from "./ReasoningEffort";
-export type { ReasoningItem } from "./ReasoningItem";
export type { ReasoningItemContent } from "./ReasoningItemContent";
export type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary";
-export type { ReasoningRawContentDeltaEvent } from "./ReasoningRawContentDeltaEvent";
export type { ReasoningSummary } from "./ReasoningSummary";
-export type { RejectConfig } from "./RejectConfig";
-export type { RemoteSkillDownloadedEvent } from "./RemoteSkillDownloadedEvent";
-export type { RemoteSkillSummary } from "./RemoteSkillSummary";
export type { RequestId } from "./RequestId";
-export type { RequestPermissionsEvent } from "./RequestPermissionsEvent";
-export type { RequestUserInputEvent } from "./RequestUserInputEvent";
-export type { RequestUserInputQuestion } from "./RequestUserInputQuestion";
-export type { RequestUserInputQuestionOption } from "./RequestUserInputQuestionOption";
export type { Resource } from "./Resource";
export type { ResourceTemplate } from "./ResourceTemplate";
export type { ResponseItem } from "./ResponseItem";
-export type { ReviewCodeLocation } from "./ReviewCodeLocation";
export type { ReviewDecision } from "./ReviewDecision";
-export type { ReviewFinding } from "./ReviewFinding";
-export type { ReviewLineRange } from "./ReviewLineRange";
-export type { ReviewOutputEvent } from "./ReviewOutputEvent";
-export type { ReviewRequest } from "./ReviewRequest";
-export type { ReviewTarget } from "./ReviewTarget";
-export type { SandboxPolicy } from "./SandboxPolicy";
export type { ServerNotification } from "./ServerNotification";
export type { ServerRequest } from "./ServerRequest";
export type { ServiceTier } from "./ServiceTier";
-export type { SessionConfiguredEvent } from "./SessionConfiguredEvent";
-export type { SessionNetworkProxyRuntime } from "./SessionNetworkProxyRuntime";
export type { SessionSource } from "./SessionSource";
export type { Settings } from "./Settings";
-export type { SkillDependencies } from "./SkillDependencies";
-export type { SkillErrorInfo } from "./SkillErrorInfo";
-export type { SkillInterface } from "./SkillInterface";
-export type { SkillMetadata } from "./SkillMetadata";
-export type { SkillScope } from "./SkillScope";
-export type { SkillToolDependency } from "./SkillToolDependency";
-export type { SkillsListEntry } from "./SkillsListEntry";
-export type { StepStatus } from "./StepStatus";
-export type { StreamErrorEvent } from "./StreamErrorEvent";
export type { SubAgentSource } from "./SubAgentSource";
-export type { TerminalInteractionEvent } from "./TerminalInteractionEvent";
-export type { TextElement } from "./TextElement";
export type { ThreadId } from "./ThreadId";
-export type { ThreadNameUpdatedEvent } from "./ThreadNameUpdatedEvent";
-export type { ThreadRolledBackEvent } from "./ThreadRolledBackEvent";
-export type { TokenCountEvent } from "./TokenCountEvent";
-export type { TokenUsage } from "./TokenUsage";
-export type { TokenUsageInfo } from "./TokenUsageInfo";
export type { Tool } from "./Tool";
-export type { TurnAbortReason } from "./TurnAbortReason";
-export type { TurnAbortedEvent } from "./TurnAbortedEvent";
-export type { TurnCompleteEvent } from "./TurnCompleteEvent";
-export type { TurnDiffEvent } from "./TurnDiffEvent";
-export type { TurnItem } from "./TurnItem";
-export type { TurnStartedEvent } from "./TurnStartedEvent";
-export type { UndoCompletedEvent } from "./UndoCompletedEvent";
-export type { UndoStartedEvent } from "./UndoStartedEvent";
-export type { UpdatePlanArgs } from "./UpdatePlanArgs";
-export type { UserInput } from "./UserInput";
-export type { UserMessageEvent } from "./UserMessageEvent";
-export type { UserMessageItem } from "./UserMessageItem";
export type { Verbosity } from "./Verbosity";
-export type { ViewImageToolCallEvent } from "./ViewImageToolCallEvent";
-export type { WarningEvent } from "./WarningEvent";
export type { WebSearchAction } from "./WebSearchAction";
-export type { WebSearchBeginEvent } from "./WebSearchBeginEvent";
export type { WebSearchContextSize } from "./WebSearchContextSize";
-export type { WebSearchEndEvent } from "./WebSearchEndEvent";
-export type { WebSearchItem } from "./WebSearchItem";
export type { WebSearchLocation } from "./WebSearchLocation";
export type { WebSearchMode } from "./WebSearchMode";
export type { WebSearchToolConfig } from "./WebSearchToolConfig";
diff --git a/codex-rs/app-server-protocol/src/export.rs b/codex-rs/app-server-protocol/src/export.rs
index 10fca2a198..35c4eb7763 100644
--- a/codex-rs/app-server-protocol/src/export.rs
+++ b/codex-rs/app-server-protocol/src/export.rs
@@ -17,7 +17,6 @@ use crate::protocol::common::EXPERIMENTAL_CLIENT_METHODS;
use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
-use codex_protocol::protocol::EventMsg;
use schemars::JsonSchema;
use schemars::schema_for;
use serde::Serialize;
@@ -42,11 +41,10 @@ const JSON_V1_ALLOWLIST: &[&str] = &["InitializeParams", "InitializeResponse"];
const SPECIAL_DEFINITIONS: &[&str] = &[
"ClientNotification",
"ClientRequest",
- "EventMsg",
"ServerNotification",
"ServerRequest",
];
-const FLAT_V2_SHARED_DEFINITIONS: &[&str] = &["ClientRequest", "EventMsg", "ServerNotification"];
+const FLAT_V2_SHARED_DEFINITIONS: &[&str] = &["ClientRequest", "ServerNotification"];
const V1_CLIENT_REQUEST_METHODS: &[&str] =
&["getConversationSummary", "gitDiffToRemote", "getAuthStatus"];
const EXCLUDED_SERVER_NOTIFICATION_METHODS_FOR_JSON: &[&str] = &["rawResponseItem/completed"];
@@ -119,7 +117,6 @@ pub fn generate_ts_with_options(
ServerRequest::export_all_to(out_dir)?;
export_server_responses(out_dir)?;
ServerNotification::export_all_to(out_dir)?;
- EventMsg::export_all_to(out_dir)?;
if !options.experimental_api {
filter_experimental_ts(out_dir)?;
@@ -202,7 +199,6 @@ pub fn generate_json_with_experimental(out_dir: &Path, experimental_api: bool) -
|d| write_json_schema_with_return::<crate::ServerRequest>(d, "ServerRequest"),
|d| write_json_schema_with_return::<crate::ClientNotification>(d, "ClientNotification"),
|d| write_json_schema_with_return::<crate::ServerNotification>(d, "ServerNotification"),
- |d| write_json_schema_with_return::<EventMsg>(d, "EventMsg"),
];
let mut schemas: Vec<GeneratedSchema> = Vec::new();
@@ -1026,8 +1022,8 @@ fn build_schema_bundle(schemas: Vec<GeneratedSchema>) -> Result<Value> {
/// Build a datamodel-code-generator-friendly v2 bundle from the mixed export.
///
/// The full bundle keeps v2 schemas nested under `definitions.v2`, plus a few
-/// shared root definitions like `ClientRequest`, `EventMsg`, and
-/// `ServerNotification`. Python codegen only walks one definitions map level, so
+/// shared root definitions like `ClientRequest` and `ServerNotification`.
+/// Python codegen only walks one definitions map level, so
/// a direct feed would treat `v2` itself as a schema and miss unreferenced v2
/// leaves. This helper flattens all v2 definitions to the root definitions map,
/// then pulls in the shared root schemas and any non-v2 transitive deps they
@@ -2008,6 +2004,7 @@ fn index_ts_entries(paths: &[&Path], has_v2_ts: bool) -> String {
let stem = path.file_stem()?.to_string_lossy().into_owned();
if stem == "index" { None } else { Some(stem) }
})
+ .filter(|stem| stem != "EventMsg")
.collect();
stems.sort();
stems.dedup();
@@ -2050,7 +2047,12 @@ mod tests {
client_request_ts.contains("MockExperimentalMethodParams"),
false
);
- assert_eq!(fixture_tree.contains_key(Path::new("EventMsg.ts")), true);
+ let typescript_index = std::str::from_utf8(
+ fixture_tree
+ .get(Path::new("index.ts"))
+ .ok_or_else(|| anyhow::anyhow!("missing index.ts fixture"))?,
+ )?;
+ assert_eq!(typescript_index.contains("export type { EventMsg }"), false);
let thread_start_ts = std::str::from_utf8(
fixture_tree
.get(Path::new("v2/ThreadStartParams.ts"))
@@ -2530,7 +2532,6 @@ mod tests {
assert_eq!(definitions.contains_key("v2"), false);
assert_eq!(definitions.contains_key("ThreadStartParams"), true);
assert_eq!(definitions.contains_key("ThreadStartResponse"), true);
- assert_eq!(definitions.contains_key("ThreadStartedEventMsg"), true);
assert_eq!(definitions.contains_key("ThreadStartedNotification"), true);
assert_eq!(definitions.contains_key("SharedHelper"), true);
assert_eq!(definitions.contains_key("SharedLeaf"), true);
@@ -2558,22 +2559,6 @@ mod tests {
"StartRequest".to_string(),
])
);
- let event_titles: BTreeSet<String> = definitions["EventMsg"]["oneOf"]
- .as_array()
- .expect("EventMsg should remain a oneOf")
- .iter()
- .map(|variant| {
- variant
- .get("title")
- .and_then(Value::as_str)
- .unwrap_or_default()
- .to_string()
- })
- .collect();
- assert_eq!(
- event_titles,
- BTreeSet::from(["".to_string(), "WarningEventMsg".to_string(),])
- );
let notification_titles: BTreeSet<String> = definitions["ServerNotification"]["oneOf"]
.as_array()
.expect("ServerNotification should remain a oneOf")
@@ -2723,6 +2708,7 @@ export type Config = { stableField: Keep, unstableField: string | null } & ({ [k
client_request_json.contains("mock/experimentalMethod"),
false
);
+ assert_eq!(output_dir.join("EventMsg.json").exists(), false);
let bundle_json =
fs::read_to_string(output_dir.join("codex_app_server_protocol.schemas.json"))?;
@@ -2805,29 +2791,7 @@ export type Config = { stableField: Keep, unstableField: string | null } & ({ [k
.map(str::to_string)
.collect();
assert_eq!(missing_server_notification_methods, Vec::<String>::new());
- let event_types: BTreeSet<String> = definitions["EventMsg"]["oneOf"]
- .as_array()
- .expect("flat v2 EventMsg should remain a oneOf")
- .iter()
- .filter_map(|variant| {
- variant["properties"]["type"]["enum"]
- .as_array()
- .and_then(|values| values.first())
- .and_then(Value::as_str)
- .map(str::to_string)
- })
- .collect();
- let missing_event_types: Vec<String> = [
- "agent_message_delta",
- "task_complete",
- "warning",
- "web_search_begin",
- ]
- .into_iter()
- .filter(|event_type| !event_types.contains(*event_type))
- .map(str::to_string)
- .collect();
- assert_eq!(missing_event_types, Vec::<String>::new());
+ assert_eq!(definitions.contains_key("EventMsg"), false);
assert_eq!(
output_dir
.join("v2")
diff --git a/codex-rs/app-server-protocol/src/schema_fixtures.rs b/codex-rs/app-server-protocol/src/schema_fixtures.rs
index 2af015b684..56dcf33a4d 100644
--- a/codex-rs/app-server-protocol/src/schema_fixtures.rs
+++ b/codex-rs/app-server-protocol/src/schema_fixtures.rs
@@ -9,7 +9,6 @@ use crate::protocol::common::visit_client_response_types;
use crate::protocol::common::visit_server_response_types;
use anyhow::Context;
use anyhow::Result;
-use codex_protocol::protocol::EventMsg;
use serde_json::Map;
use serde_json::Value;
use std::any::TypeId;
@@ -66,7 +65,6 @@ pub fn generate_typescript_schema_fixture_subtree_for_tests() -> Result<BTreeMap
visit_server_response_types(visitor);
})?;
collect_typescript_fixture_file::<ServerNotification>(&mut files, &mut seen)?;
- collect_typescript_fixture_file::<EventMsg>(&mut files, &mut seen)?;
filter_experimental_ts_tree(&mut files)?;
generate_index_ts_tree(&mut files);